ovh / manager

OVHcloud Control Panel
https://ovh.github.io/manager/
BSD 3-Clause "New" or "Revised" License
212 stars 96 forks source link

[manager-component] Quantity Selector component #12514

Open lionel95200x opened 1 month ago

lionel95200x commented 1 month ago

Have you already checked if a similar item is present on manager-components?

What do you expect from this request?

Component

Description

Simple Quantity Selector without Ods Boilerplate

Update: Component design,

<ManagerQuantity
   value={}
   setValue={}
   min={}
   max={}
   step={}
   onChange={}
   disabled
/>

Where do you expect to use this?

Savings Plans for the moment

Do you have mock-up?

https://github.com/ovh/manager/blob/4a500578a22e2ef4adda97e128b4edb360888e0a/packages/manager/apps/pci-savings-plan/src/components/QuantitySelector/QuantitySelector.tsx

Update: Must match the existing component on ui-kit: https://ovh.github.io/ovh-ui-kit/?path=/docs/design-system-components-numeric-webcomponent--simple

When do you expect this to be delivered?

_

anooparveti commented 1 month ago

@lionel95200x ODS plans to simplify the usage in v18. So we will consider the issue after ODS upgrade to see if it's really required.