@ensi-platform/admin-ui 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Component-CBWeJZfB.js +92 -0
- package/dist/Component-CBWeJZfB.js.map +1 -0
- package/dist/Component-DFwWbzFS.js +128 -0
- package/dist/Component-DFwWbzFS.js.map +1 -0
- package/dist/{Component-Bk0VFhAQ.js → Component-DhhrZEMr.js} +2 -2
- package/dist/{Component-Bk0VFhAQ.js.map → Component-DhhrZEMr.js.map} +1 -1
- package/dist/Component-Dkvzqo0L.js +155 -0
- package/dist/Component-Dkvzqo0L.js.map +1 -0
- package/dist/action-popup/index.js +1 -1
- package/dist/arrangement-settings/index.js +1 -1
- package/dist/assets/Component16.css +1 -1
- package/dist/assets/Component5.css +1 -1
- package/dist/assets/Component7.css +1 -1
- package/dist/assets/Component9.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/autocomplete/index.js +1 -1
- package/dist/autocomplete-async/index.js +1 -1
- package/dist/button/Component.d.ts +1 -1
- package/dist/button/Component.d.ts.map +1 -1
- package/dist/button/index.js +1 -1
- package/dist/button/theme.d.ts +1 -0
- package/dist/button/theme.d.ts.map +1 -1
- package/dist/button/types.d.ts +2 -0
- package/dist/button/types.d.ts.map +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/data-table/index.js +1 -1
- package/dist/date-picker/index.js +1 -1
- package/dist/date-range-picker/index.js +1 -1
- package/dist/form/Component.d.ts +1 -1
- package/dist/form/Component.d.ts.map +1 -1
- package/dist/form/context.d.ts +3 -1
- package/dist/form/context.d.ts.map +1 -1
- package/dist/form/hooks/useFieldHook.d.ts +2 -1
- package/dist/form/hooks/useFieldHook.d.ts.map +1 -1
- package/dist/form/index.js +84 -74
- package/dist/form/index.js.map +1 -1
- package/dist/form/types.d.ts +15 -2
- package/dist/form/types.d.ts.map +1 -1
- package/dist/form/utils.d.ts +3 -0
- package/dist/form/utils.d.ts.map +1 -1
- package/dist/input/Component.d.ts +1 -1
- package/dist/input/Component.d.ts.map +1 -1
- package/dist/input/FormInput.d.ts +1 -1
- package/dist/input/FormInput.d.ts.map +1 -1
- package/dist/input/index.js +27 -25
- package/dist/input/index.js.map +1 -1
- package/dist/input/types.d.ts +5 -1
- package/dist/input/types.d.ts.map +1 -1
- package/dist/multi-autocomplete/index.js +1 -1
- package/dist/multi-autocomplete-async/index.js +1 -1
- package/dist/multi-select/index.js +1 -1
- package/dist/number-input/Component.d.ts +1 -1
- package/dist/number-input/Component.d.ts.map +1 -1
- package/dist/number-input/FormNumberInput.d.ts +1 -1
- package/dist/number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/number-input/index.js +41 -39
- package/dist/number-input/index.js.map +1 -1
- package/dist/number-input/types.d.ts +5 -1
- package/dist/number-input/types.d.ts.map +1 -1
- package/dist/number-range/index.js +2 -2
- package/dist/select/index.js +1 -1
- package/dist/slider/index.js +1 -1
- package/dist/suggest-checklist/index.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/textarea/Component.d.ts +1 -1
- package/dist/textarea/Component.d.ts.map +1 -1
- package/dist/textarea/FormTextArea.d.ts +1 -1
- package/dist/textarea/FormTextArea.d.ts.map +1 -1
- package/dist/textarea/index.js +91 -86
- package/dist/textarea/index.js.map +1 -1
- package/dist/textarea/types.d.ts +5 -1
- package/dist/textarea/types.d.ts.map +1 -1
- package/dist/time-field/index.js +1 -1
- package/dist/useFieldHook-Bt9nST7g.js +52 -0
- package/dist/useFieldHook-Bt9nST7g.js.map +1 -0
- package/docs/README.md +3 -4
- package/docs/ai.md +42 -28
- package/docs/architecture.md +23 -23
- package/docs/design-language.md +103 -0
- package/docs/skills/SKILL.md +64 -25
- package/package.json +10 -6
- package/scripts/sync-agents-consumer.ts +2 -1
- package/src/button/docs/{Description.en.md → Description.md} +1 -0
- package/src/button/types.ts +2 -0
- package/src/cascade-menu/docs/cssVariables.ts +2 -1
- package/src/combobox/docs/Description.md +27 -0
- package/src/combobox/docs/Example.md +11 -0
- package/src/docs/ai/Description.md +60 -0
- package/src/docs/getting-started/Description.md +81 -0
- package/src/ds/tokens/docs/Description.md +30 -0
- package/src/ds/typography/docs/{Description.en.md → Description.md} +3 -3
- package/src/form/docs/{Description.en.md → Description.md} +2 -1
- package/src/form/types.ts +18 -3
- package/src/hooks/docs/Description.md +30 -0
- package/src/hooks/docs/Example.md +9 -0
- package/src/icons/docs/Description.md +23 -0
- package/src/icons/docs/Example.md +5 -0
- package/src/input/docs/{Description.en.md → Description.md} +3 -1
- package/src/input/docs/cssVariables.ts +1 -0
- package/src/input/types.ts +5 -1
- package/src/link/docs/cssVariables.ts +1 -1
- package/src/number-input/docs/{Description.en.md → Description.md} +3 -1
- package/src/number-input/docs/cssVariables.ts +1 -0
- package/src/number-input/types.ts +5 -0
- package/src/table/docs/cssVariables.ts +3 -3
- package/src/tabs/docs/{Description.en.md → Description.md} +17 -0
- package/src/textarea/docs/{Description.en.md → Description.md} +3 -1
- package/src/textarea/docs/cssVariables.ts +1 -0
- package/src/textarea/types.ts +5 -1
- package/src/toast/docs/cssVariables.ts +1 -1
- package/src/tooltip/docs/cssVariables.ts +2 -2
- package/dist/Component-BBFBVrTt.js +0 -152
- package/dist/Component-BBFBVrTt.js.map +0 -1
- package/dist/Component-C4pVS7OW.js +0 -125
- package/dist/Component-C4pVS7OW.js.map +0 -1
- package/dist/Component-VS3iDpxE.js +0 -85
- package/dist/Component-VS3iDpxE.js.map +0 -1
- package/dist/utils-CizYZV2a.js +0 -50
- package/dist/utils-CizYZV2a.js.map +0 -1
- package/docs/skills/evals/evals.json +0 -23
- package/src/action-popup/docs/Description.ru.md +0 -40
- package/src/action-popup/docs/Example.ru.md +0 -14
- package/src/active-filters/docs/Description.ru.md +0 -49
- package/src/active-filters/docs/Example.ru.md +0 -15
- package/src/arrangement-settings/docs/Description.ru.md +0 -25
- package/src/arrangement-settings/docs/Example.ru.md +0 -15
- package/src/autocomplete/docs/Description.ru.md +0 -51
- package/src/autocomplete/docs/Example.ru.md +0 -17
- package/src/autocomplete-async/docs/Description.ru.md +0 -71
- package/src/autocomplete-async/docs/Example.ru.md +0 -19
- package/src/avatar/docs/Description.ru.md +0 -23
- package/src/avatar/docs/Example.ru.md +0 -7
- package/src/badge/docs/Description.ru.md +0 -22
- package/src/badge/docs/Example.ru.md +0 -8
- package/src/bottom-sheet/docs/Description.ru.md +0 -27
- package/src/bottom-sheet/docs/Example.ru.md +0 -14
- package/src/button/docs/Description.ru.md +0 -24
- package/src/button/docs/Example.ru.md +0 -11
- package/src/cascade-menu/docs/Description.ru.md +0 -43
- package/src/cascade-menu/docs/Example.ru.md +0 -107
- package/src/checkbox/docs/Description.ru.md +0 -42
- package/src/checkbox/docs/Example.ru.md +0 -13
- package/src/checkbox-group/docs/Description.ru.md +0 -39
- package/src/checkbox-group/docs/Example.ru.md +0 -17
- package/src/context-menu/docs/Description.ru.md +0 -44
- package/src/context-menu/docs/Example.ru.md +0 -22
- package/src/data-table/docs/Description.ru.md +0 -33
- package/src/data-table/docs/Example.ru.md +0 -82
- package/src/date-picker/docs/Description.ru.md +0 -43
- package/src/date-picker/docs/Example.ru.md +0 -15
- package/src/date-range-picker/docs/Description.ru.md +0 -39
- package/src/date-range-picker/docs/Example.ru.md +0 -19
- package/src/drawer/docs/Description.ru.md +0 -28
- package/src/drawer/docs/Example.ru.md +0 -14
- package/src/ds/typography/docs/Description.ru.md +0 -35
- package/src/field/docs/Description.ru.md +0 -28
- package/src/field/docs/Example.ru.md +0 -16
- package/src/filters/docs/Description.ru.md +0 -40
- package/src/filters/docs/Example.ru.md +0 -21
- package/src/form/docs/Description.ru.md +0 -33
- package/src/form/docs/Example.ru.md +0 -18
- package/src/input/docs/Description.ru.md +0 -41
- package/src/input/docs/Example.ru.md +0 -21
- package/src/link/docs/Description.ru.md +0 -21
- package/src/link/docs/Example.ru.md +0 -16
- package/src/loader/docs/Description.ru.md +0 -21
- package/src/loader/docs/Example.ru.md +0 -10
- package/src/menu-list/docs/Description.ru.md +0 -45
- package/src/menu-list/docs/Example.ru.md +0 -14
- package/src/modal/docs/Description.ru.md +0 -25
- package/src/modal/docs/Example.ru.md +0 -15
- package/src/modal-hub/docs/Description.ru.md +0 -35
- package/src/modal-hub/docs/Example.ru.md +0 -20
- package/src/multi-autocomplete/docs/Description.ru.md +0 -52
- package/src/multi-autocomplete/docs/Example.ru.md +0 -12
- package/src/multi-autocomplete-async/docs/Description.ru.md +0 -55
- package/src/multi-autocomplete-async/docs/Example.ru.md +0 -5
- package/src/multi-select/docs/Description.ru.md +0 -46
- package/src/multi-select/docs/Example.ru.md +0 -20
- package/src/number-input/docs/Description.ru.md +0 -46
- package/src/number-input/docs/Example.ru.md +0 -19
- package/src/number-range/docs/Description.ru.md +0 -49
- package/src/number-range/docs/Example.ru.md +0 -25
- package/src/popover/docs/Description.ru.md +0 -33
- package/src/popover/docs/Example.ru.md +0 -13
- package/src/provider/docs/Description.ru.md +0 -27
- package/src/provider/docs/Example.ru.md +0 -10
- package/src/select/docs/Description.ru.md +0 -46
- package/src/select/docs/Example.ru.md +0 -20
- package/src/slider/docs/Description.ru.md +0 -45
- package/src/slider/docs/Example.ru.md +0 -17
- package/src/suggest-checklist/docs/Description.ru.md +0 -26
- package/src/suggest-checklist/docs/Example.ru.md +0 -11
- package/src/switch/docs/Description.ru.md +0 -39
- package/src/switch/docs/Example.ru.md +0 -13
- package/src/table/docs/Description.ru.md +0 -32
- package/src/table/docs/Example.ru.md +0 -67
- package/src/tabs/docs/Description.ru.md +0 -24
- package/src/tabs/docs/Example.ru.md +0 -12
- package/src/tag/docs/Description.ru.md +0 -24
- package/src/tag/docs/Example.ru.md +0 -6
- package/src/textarea/docs/Description.ru.md +0 -40
- package/src/textarea/docs/Example.ru.md +0 -21
- package/src/time-field/docs/Description.ru.md +0 -41
- package/src/time-field/docs/Example.ru.md +0 -9
- package/src/toast/docs/Description.ru.md +0 -57
- package/src/toast/docs/Example.ru.md +0 -25
- package/src/tooltip/docs/Description.ru.md +0 -34
- package/src/tooltip/docs/Example.ru.md +0 -10
- /package/src/action-popup/docs/{Description.en.md → Description.md} +0 -0
- /package/src/action-popup/docs/{Example.en.md → Example.md} +0 -0
- /package/src/active-filters/docs/{Description.en.md → Description.md} +0 -0
- /package/src/active-filters/docs/{Example.en.md → Example.md} +0 -0
- /package/src/arrangement-settings/docs/{Description.en.md → Description.md} +0 -0
- /package/src/arrangement-settings/docs/{Example.en.md → Example.md} +0 -0
- /package/src/autocomplete/docs/{Description.en.md → Description.md} +0 -0
- /package/src/autocomplete/docs/{Example.en.md → Example.md} +0 -0
- /package/src/autocomplete-async/docs/{Description.en.md → Description.md} +0 -0
- /package/src/autocomplete-async/docs/{Example.en.md → Example.md} +0 -0
- /package/src/avatar/docs/{Description.en.md → Description.md} +0 -0
- /package/src/avatar/docs/{Example.en.md → Example.md} +0 -0
- /package/src/badge/docs/{Description.en.md → Description.md} +0 -0
- /package/src/badge/docs/{Example.en.md → Example.md} +0 -0
- /package/src/bottom-sheet/docs/{Description.en.md → Description.md} +0 -0
- /package/src/bottom-sheet/docs/{Example.en.md → Example.md} +0 -0
- /package/src/button/docs/{Example.en.md → Example.md} +0 -0
- /package/src/cascade-menu/docs/{Description.en.md → Description.md} +0 -0
- /package/src/cascade-menu/docs/{Example.en.md → Example.md} +0 -0
- /package/src/checkbox/docs/{Description.en.md → Description.md} +0 -0
- /package/src/checkbox/docs/{Example.en.md → Example.md} +0 -0
- /package/src/checkbox-group/docs/{Description.en.md → Description.md} +0 -0
- /package/src/checkbox-group/docs/{Example.en.md → Example.md} +0 -0
- /package/src/context-menu/docs/{Description.en.md → Description.md} +0 -0
- /package/src/context-menu/docs/{Example.en.md → Example.md} +0 -0
- /package/src/data-table/docs/{Description.en.md → Description.md} +0 -0
- /package/src/data-table/docs/{Example.en.md → Example.md} +0 -0
- /package/src/date-picker/docs/{Description.en.md → Description.md} +0 -0
- /package/src/date-picker/docs/{Example.en.md → Example.md} +0 -0
- /package/src/date-range-picker/docs/{Description.en.md → Description.md} +0 -0
- /package/src/date-range-picker/docs/{Example.en.md → Example.md} +0 -0
- /package/src/drawer/docs/{Description.en.md → Description.md} +0 -0
- /package/src/drawer/docs/{Example.en.md → Example.md} +0 -0
- /package/src/field/docs/{Description.en.md → Description.md} +0 -0
- /package/src/field/docs/{Example.en.md → Example.md} +0 -0
- /package/src/filters/docs/{Description.en.md → Description.md} +0 -0
- /package/src/filters/docs/{Example.en.md → Example.md} +0 -0
- /package/src/form/docs/{Example.en.md → Example.md} +0 -0
- /package/src/input/docs/{Example.en.md → Example.md} +0 -0
- /package/src/link/docs/{Description.en.md → Description.md} +0 -0
- /package/src/link/docs/{Example.en.md → Example.md} +0 -0
- /package/src/loader/docs/{Description.en.md → Description.md} +0 -0
- /package/src/loader/docs/{Example.en.md → Example.md} +0 -0
- /package/src/menu-list/docs/{Description.en.md → Description.md} +0 -0
- /package/src/menu-list/docs/{Example.en.md → Example.md} +0 -0
- /package/src/modal/docs/{Description.en.md → Description.md} +0 -0
- /package/src/modal/docs/{Example.en.md → Example.md} +0 -0
- /package/src/modal-hub/docs/{Description.en.md → Description.md} +0 -0
- /package/src/modal-hub/docs/{Example.en.md → Example.md} +0 -0
- /package/src/multi-autocomplete/docs/{Description.en.md → Description.md} +0 -0
- /package/src/multi-autocomplete/docs/{Example.en.md → Example.md} +0 -0
- /package/src/multi-autocomplete-async/docs/{Description.en.md → Description.md} +0 -0
- /package/src/multi-autocomplete-async/docs/{Example.en.md → Example.md} +0 -0
- /package/src/multi-select/docs/{Description.en.md → Description.md} +0 -0
- /package/src/multi-select/docs/{Example.en.md → Example.md} +0 -0
- /package/src/number-input/docs/{Example.en.md → Example.md} +0 -0
- /package/src/number-range/docs/{Description.en.md → Description.md} +0 -0
- /package/src/number-range/docs/{Example.en.md → Example.md} +0 -0
- /package/src/popover/docs/{Description.en.md → Description.md} +0 -0
- /package/src/popover/docs/{Example.en.md → Example.md} +0 -0
- /package/src/provider/docs/{Description.en.md → Description.md} +0 -0
- /package/src/provider/docs/{Example.en.md → Example.md} +0 -0
- /package/src/select/docs/{Description.en.md → Description.md} +0 -0
- /package/src/select/docs/{Example.en.md → Example.md} +0 -0
- /package/src/slider/docs/{Description.en.md → Description.md} +0 -0
- /package/src/slider/docs/{Example.en.md → Example.md} +0 -0
- /package/src/suggest-checklist/docs/{Description.en.md → Description.md} +0 -0
- /package/src/suggest-checklist/docs/{Example.en.md → Example.md} +0 -0
- /package/src/switch/docs/{Description.en.md → Description.md} +0 -0
- /package/src/switch/docs/{Example.en.md → Example.md} +0 -0
- /package/src/table/docs/{Description.en.md → Description.md} +0 -0
- /package/src/table/docs/{Example.en.md → Example.md} +0 -0
- /package/src/tabs/docs/{Example.en.md → Example.md} +0 -0
- /package/src/tag/docs/{Description.en.md → Description.md} +0 -0
- /package/src/tag/docs/{Example.en.md → Example.md} +0 -0
- /package/src/textarea/docs/{Example.en.md → Example.md} +0 -0
- /package/src/time-field/docs/{Description.en.md → Description.md} +0 -0
- /package/src/time-field/docs/{Example.en.md → Example.md} +0 -0
- /package/src/toast/docs/{Description.en.md → Description.md} +0 -0
- /package/src/toast/docs/{Example.en.md → Example.md} +0 -0
- /package/src/tooltip/docs/{Description.en.md → Description.md} +0 -0
- /package/src/tooltip/docs/{Example.en.md → Example.md} +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
SVG icons for buttons, menus, and chrome. Color is `currentColor`.
|
|
2
|
+
|
|
3
|
+
```tsx
|
|
4
|
+
import { Plus } from '@ensi-platform/admin-ui/icons';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
## When to use
|
|
8
|
+
|
|
9
|
+
- icon on a `Button` (`icon.Component`)
|
|
10
|
+
- sidebar brand mark — `LogoEnsiMark` (`LogoEnsi` is the full wordmark)
|
|
11
|
+
|
|
12
|
+
## API (short)
|
|
13
|
+
|
|
14
|
+
Each export is an SVG component.
|
|
15
|
+
|
|
16
|
+
| Prop | Values | Default | Description |
|
|
17
|
+
| ------ | ---------- | ------- | ------------------------------------------------ |
|
|
18
|
+
| `title` | `string` | — | accessible name; without it the svg is `aria-hidden` |
|
|
19
|
+
| rest | `svg` attributes | — | `className`, `width`, `height` |
|
|
20
|
+
|
|
21
|
+
On `Button`, size and gap come from `icon.size` / `icon.indent`, not from `svg` attributes.
|
|
22
|
+
|
|
23
|
+
Names: `Award`, `Bell`, `Birka`, `Book`, `Calculator`, `Calendar`, `Cart`, `Chart`, `Check`, `ChevronDown`, `ChevronLeft`, `ChevronRight`, `Clear`, `Copy`, `Download`, `ExternalLink`, `Funnel`, `Globe`, `GripVertical`, `House`, `Image`, `Info`, `LogoEnsi`, `LogoEnsiMark`, `Message`, `MoreVertical`, `Package`, `PanelLeft`, `PanelLeftClose`, `Pencil`, `Pin`, `PinOff`, `Plus`, `Search`, `Settings`, `SortAscending`, `SortDescending`, `Trash`, `Trello`, `Truck`, `Upload`, `Users`, `Warehouse`, `Warning`.
|
|
@@ -18,7 +18,8 @@ import { Input, FormInput } from '@ensi-platform/admin-ui/input';
|
|
|
18
18
|
| ------------- | -------------------- | ------- | ---------------------------------------- |
|
|
19
19
|
| `size` | `sm` \| `md` \| `lg` | `md` | size; inside Field inherits `Field.size` |
|
|
20
20
|
| `invalid` | `boolean` | `false` | invalid state |
|
|
21
|
-
| `disabled` | `boolean` | `false` | disabled
|
|
21
|
+
| `disabled` | `boolean` | `false` | disabled (no focus, no selection) |
|
|
22
|
+
| `readOnly` | `boolean` | `false` | visible and copyable, not editable |
|
|
22
23
|
| `clear` | `boolean` | `false` | clear button → `onChange` with `''` |
|
|
23
24
|
| `placeholder` | `string` | — | placeholder |
|
|
24
25
|
| `type` | HTML `type` | — | input type |
|
|
@@ -36,6 +37,7 @@ No `as` / prefix/suffix.
|
|
|
36
37
|
| `clear` | `boolean` | — | clear button |
|
|
37
38
|
| `size` | `sm` \| `md` \| `lg` | `md` | size (on Field) |
|
|
38
39
|
| `disabled` | `boolean` | — | disabled |
|
|
40
|
+
| `readOnly` | `boolean` | — | visible and copyable, not editable |
|
|
39
41
|
| `dataTestId` | `string` | — | `data-test-id` for tests |
|
|
40
42
|
|
|
41
43
|
value / onChange / onBlur / validity come from `Form`.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Input CSS variables from semantic tokens (--aui-input-*). */
|
|
2
2
|
export const docsCssVariables = `/* CSS variables — Input (--aui-input-*) */
|
|
3
3
|
--aui-input-bg-primary: var(--aui-surface-bg-primary); /* primary fill */
|
|
4
|
+
--aui-input-bg-readonly: var(--aui-surface-bg-muted); /* read-only fill */
|
|
4
5
|
--aui-input-fg-primary: var(--aui-page-fg-primary); /* primary foreground */
|
|
5
6
|
--aui-input-fg-muted: var(--aui-page-fg-muted); /* muted foreground */
|
|
6
7
|
--aui-input-border-primary: var(--aui-surface-border-primary); /* primary border */
|
package/src/input/types.ts
CHANGED
|
@@ -23,6 +23,8 @@ export interface IInputThemeProps {
|
|
|
23
23
|
export interface IInputOwnProps extends IDataTestIdProps {
|
|
24
24
|
/** Clear button for the current value. */
|
|
25
25
|
clear?: boolean;
|
|
26
|
+
/** Visible and copyable, but not editable. Not `disabled`. */
|
|
27
|
+
readOnly?: boolean;
|
|
26
28
|
/** Ref to the native input (React 19 prop). */
|
|
27
29
|
ref?: Ref<HTMLInputElement>;
|
|
28
30
|
}
|
|
@@ -30,7 +32,7 @@ export interface IInputOwnProps extends IDataTestIdProps {
|
|
|
30
32
|
export interface IInputBaseProps extends IInputThemeProps, IFieldStateProps, IInputOwnProps {}
|
|
31
33
|
|
|
32
34
|
/** RAC keys with different names / already in Base. */
|
|
33
|
-
export type TInputRacOmit = 'disabled' | 'size' | 'isDisabled' | 'isInvalid';
|
|
35
|
+
export type TInputRacOmit = 'disabled' | 'readOnly' | 'size' | 'isDisabled' | 'isInvalid' | 'isReadOnly';
|
|
34
36
|
|
|
35
37
|
export interface IInputProps extends IInputBaseProps, Omit<RacInputProps, keyof IInputBaseProps | TInputRacOmit> {}
|
|
36
38
|
|
|
@@ -40,6 +42,8 @@ export type TInputFormRacOmit =
|
|
|
40
42
|
|
|
41
43
|
export interface IInputContentProps extends Omit<RacInputProps, TInputFormRacOmit> {
|
|
42
44
|
clear?: boolean;
|
|
45
|
+
/** Visible and copyable, but not editable. Not `disabled`. */
|
|
46
|
+
readOnly?: boolean;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
export interface IFormInputProps extends IFormFieldLayoutProps, Pick<IInputThemeProps, 'variant'>, IInputContentProps {}
|
|
@@ -3,7 +3,7 @@ export const docsCssVariables = `/* CSS variables — Link (--aui-link-*)
|
|
|
3
3
|
* Light/default below (semantic.css). Dark: hover white in semantic.dark.css.
|
|
4
4
|
*/
|
|
5
5
|
--aui-link-fg: var(--aui-page-fg-link); /* link text = page fg */
|
|
6
|
-
--aui-link-fg-hover: var(--aui-
|
|
6
|
+
--aui-link-fg-hover: var(--aui-neutral-800); /* link hover (light near-black; dark = white) */
|
|
7
7
|
--aui-link-border-focus: var(--aui-control-border-focus); /* focus ring */
|
|
8
8
|
--aui-link-duration-fast: var(--aui-control-duration-fast); /* transition duration */
|
|
9
9
|
--aui-link-ease-out: var(--aui-control-ease-out); /* transition easing */`;
|
|
@@ -23,7 +23,8 @@ import { NumberInput, FormNumberInput } from '@ensi-platform/admin-ui/number-inp
|
|
|
23
23
|
| `clear` | `boolean` | `false` | clear → `onChange(null)` |
|
|
24
24
|
| `size` | `sm` \| `md` \| `lg` | `md` | size |
|
|
25
25
|
| `invalid` | `boolean` | `false` | invalid state |
|
|
26
|
-
| `disabled` | `boolean` | `false` | disabled
|
|
26
|
+
| `disabled` | `boolean` | `false` | disabled (no focus, no selection) |
|
|
27
|
+
| `readOnly` | `boolean` | `false` | visible and copyable, not editable |
|
|
27
28
|
| `formatOptions` | `Intl.NumberFormatOptions` | — | display/parse (RAC) |
|
|
28
29
|
| `placeholder` | `string` | — | placeholder |
|
|
29
30
|
| `dataTestId` | `string` | — | `data-test-id` for tests |
|
|
@@ -40,6 +41,7 @@ No stepper in v1.
|
|
|
40
41
|
| `clear` | `boolean` | — | clear button |
|
|
41
42
|
| `size` | `sm` \| `md` \| `lg` | `md` | size |
|
|
42
43
|
| `disabled` | `boolean` | — | disabled |
|
|
44
|
+
| `readOnly` | `boolean` | — | visible and copyable, not editable |
|
|
43
45
|
| `min` / `max` / `step` | `number` | — | bounds and step |
|
|
44
46
|
| `prefix` / `suffix` | `ReactNode` | — | content before/after the field |
|
|
45
47
|
| `formatOptions` | `Intl.NumberFormatOptions` | — | display/parse |
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** NumberInput CSS variables from semantic tokens (--aui-number-input-*). */
|
|
2
2
|
export const docsCssVariables = `/* CSS variables — NumberInput (--aui-number-input-*) */
|
|
3
3
|
--aui-number-input-bg-primary: var(--aui-input-bg-primary); /* primary fill */
|
|
4
|
+
--aui-number-input-bg-readonly: var(--aui-input-bg-readonly); /* read-only fill */
|
|
4
5
|
--aui-number-input-fg-primary: var(--aui-input-fg-primary); /* primary foreground */
|
|
5
6
|
--aui-number-input-fg-muted: var(--aui-input-fg-muted); /* muted foreground */
|
|
6
7
|
--aui-number-input-border-primary: var(--aui-input-border-primary); /* primary border */
|
|
@@ -44,6 +44,8 @@ export interface INumberInputOwnProps extends IDataTestIdProps {
|
|
|
44
44
|
suffix?: ReactNode;
|
|
45
45
|
/** Clear button for the current value. */
|
|
46
46
|
clear?: boolean;
|
|
47
|
+
/** Visible and copyable, but not editable. Not `disabled`. */
|
|
48
|
+
readOnly?: boolean;
|
|
47
49
|
/** Placeholder text. */
|
|
48
50
|
placeholder?: string;
|
|
49
51
|
/** Native input `name`. */
|
|
@@ -61,6 +63,8 @@ export interface INumberInputContentProps {
|
|
|
61
63
|
prefix?: ReactNode;
|
|
62
64
|
suffix?: ReactNode;
|
|
63
65
|
clear?: boolean;
|
|
66
|
+
/** Visible and copyable, but not editable. Not `disabled`. */
|
|
67
|
+
readOnly?: boolean;
|
|
64
68
|
placeholder?: string;
|
|
65
69
|
min?: number;
|
|
66
70
|
max?: number;
|
|
@@ -76,6 +80,7 @@ export interface INumberInputBaseProps
|
|
|
76
80
|
export type TNumberInputRacOmit =
|
|
77
81
|
| 'children'
|
|
78
82
|
| 'isDisabled'
|
|
83
|
+
| 'isReadOnly'
|
|
79
84
|
| 'isInvalid'
|
|
80
85
|
| 'value'
|
|
81
86
|
| 'defaultValue'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** Table CSS variables from semantic tokens (--aui-table-*). */
|
|
2
2
|
export const docsCssVariables = `/* CSS variables — Table (--aui-table-*) */
|
|
3
3
|
--aui-table-bg-primary: var(--aui-surface-bg-primary); /* primary fill */
|
|
4
|
-
--aui-table-bg-hover: var(--aui-
|
|
5
|
-
--aui-table-bg-selected: var(--aui-
|
|
6
|
-
--aui-table-bg-zebra:
|
|
4
|
+
--aui-table-bg-hover: var(--aui-neutral-300); /* hover fill; dark: grey-500 */
|
|
5
|
+
--aui-table-bg-selected: var(--aui-neutral-100); /* selected fill; dark: muted (grey-600) */
|
|
6
|
+
--aui-table-bg-zebra: var(--aui-neutral-50); /* zebra fill; dark: muted 18% on page */
|
|
7
7
|
--aui-table-bg-header: var(--aui-surface-bg-primary); /* header fill */
|
|
8
8
|
--aui-table-bg-footer: var(--aui-surface-bg-primary); /* footer fill */
|
|
9
9
|
|
|
@@ -22,3 +22,20 @@ import { Tabs } from '@ensi-platform/admin-ui/tabs';
|
|
|
22
22
|
| `dataTestId` | `string` | — | `data-test-id` for tests |
|
|
23
23
|
|
|
24
24
|
Slots: `Tabs.List` / `Tabs.Tab` (`id`, `disabled?`) / `Tabs.Panel` (`id`). `Tab` and `Panel` `id`s must match.
|
|
25
|
+
|
|
26
|
+
Nested `Tabs` are sections inside a tab panel. They differ from the top level only by `size="sm"`.
|
|
27
|
+
|
|
28
|
+
`Tabs` does not write the selection into the URL and does not store it outside the component. Sync it with `value` / `onChange` when you need to.
|
|
29
|
+
|
|
30
|
+
There is no vertical mode and no second visual level. A side section menu is built by the consumer on `react-aria-components`.
|
|
31
|
+
|
|
32
|
+
There is no error-count slot. Put a badge in `Tabs.Tab` as part of `children` (`Badge` with `variant="danger"`). The number must be text and have an `aria-label`: state must not be color alone.
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
<Tabs.Tab id="profile">
|
|
36
|
+
Profile
|
|
37
|
+
<Badge size="sm" variant="danger" aria-label="3 errors">
|
|
38
|
+
3
|
|
39
|
+
</Badge>
|
|
40
|
+
</Tabs.Tab>
|
|
41
|
+
```
|
|
@@ -17,7 +17,8 @@ import { TextArea, FormTextArea } from '@ensi-platform/admin-ui/textarea';
|
|
|
17
17
|
| ------------- | -------------------- | ------- | ---------------------------------------- |
|
|
18
18
|
| `size` | `sm` \| `md` \| `lg` | `md` | size; inside Field inherits `Field.size` |
|
|
19
19
|
| `invalid` | `boolean` | `false` | invalid state |
|
|
20
|
-
| `disabled` | `boolean` | `false` | disabled
|
|
20
|
+
| `disabled` | `boolean` | `false` | disabled (no focus, no selection) |
|
|
21
|
+
| `readOnly` | `boolean` | `false` | visible and copyable, not editable |
|
|
21
22
|
| `clear` | `boolean` | `false` | clear button → `onChange` with `''` |
|
|
22
23
|
| `placeholder` | `string` | — | placeholder |
|
|
23
24
|
| `rows` | `number` | — | row count |
|
|
@@ -35,6 +36,7 @@ No `as` / extra `variant` beyond `primary`.
|
|
|
35
36
|
| `clear` | `boolean` | — | clear button |
|
|
36
37
|
| `size` | `sm` \| `md` \| `lg` | `md` | size (on Field) |
|
|
37
38
|
| `disabled` | `boolean` | — | disabled |
|
|
39
|
+
| `readOnly` | `boolean` | — | visible and copyable, not editable |
|
|
38
40
|
| `dataTestId` | `string` | — | `data-test-id` for tests |
|
|
39
41
|
|
|
40
42
|
value / onChange / onBlur / validity come from `Form`.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Textarea CSS variables from semantic tokens (--aui-textarea-*). */
|
|
2
2
|
export const docsCssVariables = `/* CSS variables — Textarea (--aui-textarea-*) */
|
|
3
3
|
--aui-textarea-bg-primary: var(--aui-input-bg-primary); /* primary fill */
|
|
4
|
+
--aui-textarea-bg-readonly: var(--aui-input-bg-readonly); /* read-only fill */
|
|
4
5
|
--aui-textarea-fg-primary: var(--aui-input-fg-primary); /* primary foreground */
|
|
5
6
|
--aui-textarea-fg-muted: var(--aui-input-fg-muted); /* muted foreground */
|
|
6
7
|
--aui-textarea-border-primary: var(--aui-input-border-primary); /* primary border */
|
package/src/textarea/types.ts
CHANGED
|
@@ -23,13 +23,15 @@ export interface ITextAreaThemeProps {
|
|
|
23
23
|
export interface ITextAreaOwnProps extends IDataTestIdProps {
|
|
24
24
|
/** Clear button for the current value. */
|
|
25
25
|
clear?: boolean;
|
|
26
|
+
/** Visible and copyable, but not editable. Not `disabled`. */
|
|
27
|
+
readOnly?: boolean;
|
|
26
28
|
/** Ref to the native textarea (React 19 prop). */
|
|
27
29
|
ref?: Ref<HTMLTextAreaElement>;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
export interface ITextAreaBaseProps extends ITextAreaThemeProps, IFieldStateProps, ITextAreaOwnProps {}
|
|
31
33
|
|
|
32
|
-
export type TTextAreaRacOmit = 'disabled' | 'isDisabled' | 'isInvalid';
|
|
34
|
+
export type TTextAreaRacOmit = 'disabled' | 'readOnly' | 'isDisabled' | 'isInvalid' | 'isReadOnly';
|
|
33
35
|
|
|
34
36
|
export interface ITextAreaProps
|
|
35
37
|
extends ITextAreaBaseProps, Omit<RacTextAreaProps, keyof ITextAreaBaseProps | TTextAreaRacOmit> {}
|
|
@@ -47,6 +49,8 @@ export type TTextAreaFormRacOmit =
|
|
|
47
49
|
|
|
48
50
|
export interface ITextAreaContentProps extends Omit<RacTextAreaProps, TTextAreaFormRacOmit> {
|
|
49
51
|
clear?: boolean;
|
|
52
|
+
/** Visible and copyable, but not editable. Not `disabled`. */
|
|
53
|
+
readOnly?: boolean;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
export interface IFormTextAreaProps
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Toast CSS variables from semantic tokens (--aui-toast-*). */
|
|
2
2
|
export const docsCssVariables = `/* CSS variables — Toast (--aui-toast-*) */
|
|
3
3
|
--aui-toast-bg-neutral: var(--aui-surface-bg-muted); /* neutral fill */
|
|
4
|
-
--aui-toast-accent-neutral: var(--aui-
|
|
4
|
+
--aui-toast-accent-neutral: var(--aui-neutral-500); /* neutral accent */
|
|
5
5
|
--aui-toast-bg-success: var(--aui-green-50); /* success fill */
|
|
6
6
|
--aui-toast-accent-success: var(--aui-green-700); /* success accent */
|
|
7
7
|
--aui-toast-bg-warning: var(--aui-yellow-50); /* warning fill */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Tooltip CSS variables from semantic tokens (--aui-tooltip-*). */
|
|
2
2
|
export const docsCssVariables = `/* CSS variables — Tooltip (--aui-tooltip-*) */
|
|
3
|
-
--aui-tooltip-bg-primary: var(--aui-
|
|
4
|
-
--aui-tooltip-fg-primary: var(--aui-
|
|
3
|
+
--aui-tooltip-bg-primary: var(--aui-neutral-800); /* primary fill */
|
|
4
|
+
--aui-tooltip-fg-primary: var(--aui-neutral-50); /* primary foreground */
|
|
5
5
|
|
|
6
6
|
--aui-tooltip-radius-md: var(--aui-control-radius-sm); /* md radius */
|
|
7
7
|
--aui-tooltip-pad-y-sm: var(--aui-spacing-4); /* padding-y sm */
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as U } from "react/jsx-runtime";
|
|
2
|
-
import { useState as q } from "react";
|
|
3
|
-
import t from "classnames";
|
|
4
|
-
import { NumberField as E, Group as H, Input as J } from "react-aria-components";
|
|
5
|
-
import { s as K } from "./index-h8z54aFR.js";
|
|
6
|
-
import { C as O } from "./Clear-DcxADxz6.js";
|
|
7
|
-
import { u as Q } from "./hooks-BAkrGC45.js";
|
|
8
|
-
import { cva as T } from "class-variance-authority";
|
|
9
|
-
import { typographyStyles as i } from "./typography/index.js";
|
|
10
|
-
import './assets/Component5.css';const W = "aub_styles-module_group_61890", X = "aub_styles-module_block_2e468", Y = "aub_styles-module_sm_79cc4", Z = "aub_styles-module_md_3973b", $ = "aub_styles-module_lg_68fcb", L = "aub_styles-module_addon_a288a", ll = "aub_styles-module_fieldInput_b317c", ol = "aub_styles-module_clearIcon_73ee6", al = "aub_styles-module_clear_2e1be", el = "aub_styles-module_root_cb8bf", sl = "aub_styles-module_primary_59ee6", l = {
|
|
11
|
-
group: W,
|
|
12
|
-
block: X,
|
|
13
|
-
sm: Y,
|
|
14
|
-
md: Z,
|
|
15
|
-
lg: $,
|
|
16
|
-
addon: L,
|
|
17
|
-
fieldInput: ll,
|
|
18
|
-
clearIcon: ol,
|
|
19
|
-
clear: al,
|
|
20
|
-
root: el,
|
|
21
|
-
primary: sl
|
|
22
|
-
}, rl = T(l.group, {
|
|
23
|
-
variants: {
|
|
24
|
-
size: {
|
|
25
|
-
sm: t(l.sm, i.bodyS),
|
|
26
|
-
md: t(l.md, i.bodyS),
|
|
27
|
-
lg: t(l.lg, i.bodyM)
|
|
28
|
-
},
|
|
29
|
-
variant: {
|
|
30
|
-
primary: l.primary
|
|
31
|
-
},
|
|
32
|
-
block: {
|
|
33
|
-
true: l.block,
|
|
34
|
-
false: null
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
defaultVariants: {
|
|
38
|
-
size: "md",
|
|
39
|
-
variant: "primary",
|
|
40
|
-
block: !0
|
|
41
|
-
}
|
|
42
|
-
}), V = (o) => o == null || Number.isNaN(o) ? Number.NaN : o, tl = (o) => o != null && !Number.isNaN(o), nl = ({ onClear: o }) => {
|
|
43
|
-
const { clear: n } = Q();
|
|
44
|
-
return /* @__PURE__ */ e(
|
|
45
|
-
"button",
|
|
46
|
-
{
|
|
47
|
-
type: "button",
|
|
48
|
-
className: l.clear,
|
|
49
|
-
"aria-label": n,
|
|
50
|
-
onPointerDown: (a) => {
|
|
51
|
-
a.preventDefault(), a.stopPropagation();
|
|
52
|
-
},
|
|
53
|
-
onClick: (a) => {
|
|
54
|
-
a.preventDefault(), a.stopPropagation(), o();
|
|
55
|
-
},
|
|
56
|
-
children: /* @__PURE__ */ e(O, { className: l.clearIcon })
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
}, ul = K(
|
|
60
|
-
({
|
|
61
|
-
ref: o,
|
|
62
|
-
size: n = "md",
|
|
63
|
-
variant: a = "primary",
|
|
64
|
-
block: k = !0,
|
|
65
|
-
invalid: u = !1,
|
|
66
|
-
disabled: c = !1,
|
|
67
|
-
clear: d = !1,
|
|
68
|
-
value: b,
|
|
69
|
-
defaultValue: s,
|
|
70
|
-
onChange: p,
|
|
71
|
-
onBlur: C,
|
|
72
|
-
min: D,
|
|
73
|
-
max: S,
|
|
74
|
-
step: P,
|
|
75
|
-
prefix: y,
|
|
76
|
-
suffix: _,
|
|
77
|
-
placeholder: j,
|
|
78
|
-
name: w,
|
|
79
|
-
id: x,
|
|
80
|
-
className: z,
|
|
81
|
-
dataTestId: B,
|
|
82
|
-
"aria-label": m,
|
|
83
|
-
"aria-labelledby": G,
|
|
84
|
-
"aria-describedby": R,
|
|
85
|
-
...A
|
|
86
|
-
}) => {
|
|
87
|
-
const r = b !== void 0, [F, N] = q(
|
|
88
|
-
() => s === void 0 || Number.isNaN(s) ? null : s
|
|
89
|
-
), f = r ? b : F, M = d && !c && tl(f), I = r || d, g = m ? void 0 : G;
|
|
90
|
-
return /* @__PURE__ */ e(
|
|
91
|
-
E,
|
|
92
|
-
{
|
|
93
|
-
...A,
|
|
94
|
-
className: t(l.root, z),
|
|
95
|
-
value: I ? V(f) : void 0,
|
|
96
|
-
defaultValue: !I && s !== void 0 ? V(s) : void 0,
|
|
97
|
-
onChange: (v) => {
|
|
98
|
-
const h = Number.isNaN(v) ? null : v;
|
|
99
|
-
r || N(h), p?.(h);
|
|
100
|
-
},
|
|
101
|
-
isDisabled: c,
|
|
102
|
-
isInvalid: u,
|
|
103
|
-
minValue: D,
|
|
104
|
-
maxValue: S,
|
|
105
|
-
step: P,
|
|
106
|
-
"aria-label": m,
|
|
107
|
-
"aria-labelledby": g,
|
|
108
|
-
children: /* @__PURE__ */ U(
|
|
109
|
-
H,
|
|
110
|
-
{
|
|
111
|
-
className: rl({ size: n, variant: a, block: k }),
|
|
112
|
-
"data-test-id": B,
|
|
113
|
-
isInvalid: u,
|
|
114
|
-
isDisabled: c,
|
|
115
|
-
children: [
|
|
116
|
-
y ? /* @__PURE__ */ e("span", { className: l.addon, children: y }) : null,
|
|
117
|
-
/* @__PURE__ */ e(
|
|
118
|
-
J,
|
|
119
|
-
{
|
|
120
|
-
ref: o,
|
|
121
|
-
name: w,
|
|
122
|
-
id: x,
|
|
123
|
-
placeholder: j,
|
|
124
|
-
onBlur: C,
|
|
125
|
-
"aria-label": m,
|
|
126
|
-
"aria-labelledby": g,
|
|
127
|
-
"aria-describedby": R,
|
|
128
|
-
"aria-invalid": u || void 0,
|
|
129
|
-
className: l.fieldInput
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
M ? /* @__PURE__ */ e(
|
|
133
|
-
nl,
|
|
134
|
-
{
|
|
135
|
-
onClear: () => {
|
|
136
|
-
r || N(null), p?.(null);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
) : null,
|
|
140
|
-
_ ? /* @__PURE__ */ e("span", { className: l.addon, children: _ }) : null
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
}
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
);
|
|
148
|
-
ul.displayName = "NumberInput";
|
|
149
|
-
export {
|
|
150
|
-
ul as N
|
|
151
|
-
};
|
|
152
|
-
//# sourceMappingURL=Component-BBFBVrTt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component-BBFBVrTt.js","sources":["../src/number-input/theme.ts","../src/number-input/Component.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport styles from './styles.module.css';\n\nexport const numberInputGroupVariants = cva(styles.group, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyS),\n lg: cn(styles.lg, typographyStyles.bodyM),\n },\n variant: {\n primary: styles.primary,\n },\n block: {\n true: styles.block,\n false: null,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n block: true,\n },\n});\n","import { useState } from 'react';\n\nimport cn from 'classnames';\nimport { Group, Input as RacInput, NumberField } from 'react-aria-components';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { Clear } from '@/icons';\nimport { useAuiLabels } from '@/provider';\n\nimport { numberInputGroupVariants } from './theme';\nimport { type INumberInputProps } from './types';\n\nimport styles from './styles.module.css';\n\nconst toRacValue = (value: number | null | undefined) => (value == null || Number.isNaN(value) ? Number.NaN : value);\n\nconst hasNumberValue = (value: number | null | undefined) => value != null && !Number.isNaN(value);\n\nconst NumberInputClearButton = ({ onClear }: { onClear: () => void }) => {\n const { clear } = useAuiLabels();\n\n return (\n <button\n type=\"button\"\n className={styles.clear}\n aria-label={clear}\n onPointerDown={event => {\n event.preventDefault();\n event.stopPropagation();\n }}\n onClick={event => {\n event.preventDefault();\n event.stopPropagation();\n onClear();\n }}\n >\n <Clear className={styles.clearIcon} />\n </button>\n );\n};\n\nexport const NumberInput = supportRef(\n ({\n ref,\n size = 'md',\n variant = 'primary',\n block = true,\n invalid = false,\n disabled = false,\n clear = false,\n value,\n defaultValue,\n onChange,\n onBlur,\n min,\n max,\n step,\n prefix,\n suffix,\n placeholder,\n name,\n id,\n className,\n dataTestId,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n ...props\n }: INumberInputProps) => {\n const isControlled = value !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState<number | null>(() =>\n defaultValue === undefined || Number.isNaN(defaultValue) ? null : defaultValue\n );\n const currentValue = isControlled ? value : uncontrolledValue;\n const showClear = clear && !disabled && hasNumberValue(currentValue);\n /** When `clear` is on, drive RAC as controlled so clear can reset the field. */\n const driveValue = isControlled || clear;\n /** Prefer explicit aria-label over Field's phantom labelledby when Label is absent. */\n const labelledBy = ariaLabel ? undefined : ariaLabelledby;\n\n return (\n <NumberField\n {...props}\n className={cn(styles.root, className)}\n value={driveValue ? toRacValue(currentValue) : undefined}\n defaultValue={!driveValue && defaultValue !== undefined ? toRacValue(defaultValue) : undefined}\n onChange={next => {\n const nextValue = Number.isNaN(next) ? null : next;\n\n if (!isControlled) {\n setUncontrolledValue(nextValue);\n }\n\n onChange?.(nextValue);\n }}\n isDisabled={disabled}\n isInvalid={invalid}\n minValue={min}\n maxValue={max}\n step={step}\n aria-label={ariaLabel}\n aria-labelledby={labelledBy}\n >\n <Group\n className={numberInputGroupVariants({ size, variant, block })}\n data-test-id={dataTestId}\n isInvalid={invalid}\n isDisabled={disabled}\n >\n {prefix ? <span className={styles.addon}>{prefix}</span> : null}\n <RacInput\n ref={ref}\n name={name}\n id={id}\n placeholder={placeholder}\n onBlur={onBlur}\n aria-label={ariaLabel}\n aria-labelledby={labelledBy}\n aria-describedby={ariaDescribedby}\n aria-invalid={invalid || undefined}\n className={styles.fieldInput}\n />\n {showClear ? (\n <NumberInputClearButton\n onClear={() => {\n if (!isControlled) {\n setUncontrolledValue(null);\n }\n\n onChange?.(null);\n }}\n />\n ) : null}\n {suffix ? <span className={styles.addon}>{suffix}</span> : null}\n </Group>\n </NumberField>\n );\n }\n);\n\nNumberInput.displayName = 'NumberInput';\n"],"names":["numberInputGroupVariants","cva","styles","cn","typographyStyles","toRacValue","value","hasNumberValue","NumberInputClearButton","onClear","clear","useAuiLabels","jsx","event","Clear","NumberInput","supportRef","ref","size","variant","block","invalid","disabled","defaultValue","onChange","onBlur","min","max","step","prefix","suffix","placeholder","name","id","className","dataTestId","ariaLabel","ariaLabelledby","ariaDescribedby","props","isControlled","uncontrolledValue","setUncontrolledValue","useState","currentValue","showClear","driveValue","labelledBy","NumberField","next","nextValue","jsxs","Group","RacInput"],"mappings":";;;;;;;;;;;;;;;;;;;;;GAOaA,KAA2BC,EAAIC,EAAO,OAAO;AAAA,EACtD,UAAU;AAAA,IACN,MAAM;AAAA,MACF,IAAIC,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,MACxC,IAAID,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,MACxC,IAAID,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,IAAA;AAAA,IAE5C,SAAS;AAAA,MACL,SAASF,EAAO;AAAA,IAAA;AAAA,IAEpB,OAAO;AAAA,MACH,MAAMA,EAAO;AAAA,MACb,OAAO;AAAA,IAAA;AAAA,EACX;AAAA,EAEJ,iBAAiB;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,OAAO;AAAA,EAAA;AAEf,CAAC,GCZKG,IAAa,CAACC,MAAsCA,KAAS,QAAQ,OAAO,MAAMA,CAAK,IAAI,OAAO,MAAMA,GAExGC,KAAiB,CAACD,MAAqCA,KAAS,QAAQ,CAAC,OAAO,MAAMA,CAAK,GAE3FE,KAAyB,CAAC,EAAE,SAAAC,QAAuC;AACrE,QAAM,EAAE,OAAAC,EAAA,IAAUC,EAAA;AAElB,SACI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,MAAK;AAAA,MACL,WAAWV,EAAO;AAAA,MAClB,cAAYQ;AAAA,MACZ,eAAe,CAAAG,MAAS;AACpB,QAAAA,EAAM,eAAA,GACNA,EAAM,gBAAA;AAAA,MACV;AAAA,MACA,SAAS,CAAAA,MAAS;AACd,QAAAA,EAAM,eAAA,GACNA,EAAM,gBAAA,GACNJ,EAAA;AAAA,MACJ;AAAA,MAEA,UAAA,gBAAAG,EAACE,GA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"classnames";
|
|
4
|
-
import { Group as R, Input as j } from "react-aria-components";
|
|
5
|
-
import { s as x } from "./index-h8z54aFR.js";
|
|
6
|
-
import { C as z } from "./Clear-DcxADxz6.js";
|
|
7
|
-
import { u as L } from "./hooks-BAkrGC45.js";
|
|
8
|
-
import { cva as M } from "class-variance-authority";
|
|
9
|
-
import { typographyStyles as i } from "./typography/index.js";
|
|
10
|
-
import './assets/Component9.css';const O = "aub_styles-module_root_9598d", T = "aub_styles-module_block_06088", A = "aub_styles-module_sm_33b95", B = "aub_styles-module_md_0df45", G = "aub_styles-module_lg_0c550", H = "aub_styles-module_fieldInput_4bcd7", U = "aub_styles-module_clearIcon_ea389", $ = "aub_styles-module_clear_37bb3", q = "aub_styles-module_primary_ea589", o = {
|
|
11
|
-
root: O,
|
|
12
|
-
block: T,
|
|
13
|
-
sm: A,
|
|
14
|
-
md: B,
|
|
15
|
-
lg: G,
|
|
16
|
-
fieldInput: H,
|
|
17
|
-
clearIcon: U,
|
|
18
|
-
clear: $,
|
|
19
|
-
primary: q
|
|
20
|
-
}, F = M(o.root, {
|
|
21
|
-
variants: {
|
|
22
|
-
size: {
|
|
23
|
-
sm: n(o.sm, i.bodyS),
|
|
24
|
-
md: n(o.md, i.bodyS),
|
|
25
|
-
lg: n(o.lg, i.bodyM)
|
|
26
|
-
},
|
|
27
|
-
variant: {
|
|
28
|
-
primary: o.primary
|
|
29
|
-
},
|
|
30
|
-
block: {
|
|
31
|
-
true: o.block,
|
|
32
|
-
false: null
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
defaultVariants: {
|
|
36
|
-
size: "md",
|
|
37
|
-
variant: "primary",
|
|
38
|
-
block: !0
|
|
39
|
-
}
|
|
40
|
-
}), J = (t) => ({
|
|
41
|
-
target: t ?? { value: "" },
|
|
42
|
-
currentTarget: t ?? { value: "" }
|
|
43
|
-
}), K = (t) => {
|
|
44
|
-
if (!t)
|
|
45
|
-
return;
|
|
46
|
-
Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set?.call(t, "");
|
|
47
|
-
}, _ = (t) => t == null ? "" : String(t), Q = (t, r) => {
|
|
48
|
-
if (typeof t == "function") {
|
|
49
|
-
t(r);
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
t && (t.current = r);
|
|
53
|
-
}, W = ({ onClear: t }) => {
|
|
54
|
-
const { clear: r } = L();
|
|
55
|
-
return /* @__PURE__ */ a(
|
|
56
|
-
"button",
|
|
57
|
-
{
|
|
58
|
-
type: "button",
|
|
59
|
-
className: o.clear,
|
|
60
|
-
"aria-label": r,
|
|
61
|
-
onPointerDown: (s) => {
|
|
62
|
-
s.preventDefault(), s.stopPropagation();
|
|
63
|
-
},
|
|
64
|
-
onClick: (s) => {
|
|
65
|
-
s.preventDefault(), s.stopPropagation(), t();
|
|
66
|
-
},
|
|
67
|
-
children: /* @__PURE__ */ a(z, { className: o.clearIcon })
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
}, X = x(
|
|
71
|
-
({
|
|
72
|
-
ref: t,
|
|
73
|
-
size: r = "md",
|
|
74
|
-
variant: s = "primary",
|
|
75
|
-
block: b = !0,
|
|
76
|
-
invalid: m = !1,
|
|
77
|
-
disabled: l = !1,
|
|
78
|
-
clear: g = !1,
|
|
79
|
-
className: I,
|
|
80
|
-
dataTestId: C,
|
|
81
|
-
value: c,
|
|
82
|
-
defaultValue: p,
|
|
83
|
-
onChange: d,
|
|
84
|
-
...v
|
|
85
|
-
}) => {
|
|
86
|
-
const y = N(null), u = c !== void 0, [h, f] = P(() => _(p)), k = u ? _(c) : h, S = g && !l && k !== "", V = (e) => {
|
|
87
|
-
u || f(e.target.value), d?.(e);
|
|
88
|
-
}, w = () => {
|
|
89
|
-
const e = y.current, D = J(e);
|
|
90
|
-
K(e), u || f(""), d?.(D);
|
|
91
|
-
};
|
|
92
|
-
return /* @__PURE__ */ E(
|
|
93
|
-
R,
|
|
94
|
-
{
|
|
95
|
-
className: n(F({ size: r, variant: s, block: b }), I),
|
|
96
|
-
"data-test-id": C,
|
|
97
|
-
isInvalid: m,
|
|
98
|
-
isDisabled: l,
|
|
99
|
-
children: [
|
|
100
|
-
/* @__PURE__ */ a(
|
|
101
|
-
j,
|
|
102
|
-
{
|
|
103
|
-
...v,
|
|
104
|
-
ref: (e) => {
|
|
105
|
-
y.current = e, Q(t, e);
|
|
106
|
-
},
|
|
107
|
-
value: c,
|
|
108
|
-
defaultValue: p,
|
|
109
|
-
onChange: V,
|
|
110
|
-
disabled: l,
|
|
111
|
-
"aria-invalid": m || void 0,
|
|
112
|
-
className: o.fieldInput
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
S ? /* @__PURE__ */ a(W, { onClear: w }) : null
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
X.displayName = "Input";
|
|
122
|
-
export {
|
|
123
|
-
X as I
|
|
124
|
-
};
|
|
125
|
-
//# sourceMappingURL=Component-C4pVS7OW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component-C4pVS7OW.js","sources":["../src/input/theme.ts","../src/input/utils.ts","../src/input/Component.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport styles from './styles.module.css';\n\nexport const inputVariants = cva(styles.root, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyS),\n lg: cn(styles.lg, typographyStyles.bodyM),\n },\n variant: {\n primary: styles.primary,\n },\n block: {\n true: styles.block,\n false: null,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n block: true,\n },\n});\n","import { type ChangeEvent } from 'react';\n\n/** Synthetic change event used by clear control. */\nexport const toEmptyInputChangeEvent = (el: HTMLInputElement | null): ChangeEvent<HTMLInputElement> =>\n ({\n target: el ?? { value: '' },\n currentTarget: el ?? { value: '' },\n }) as ChangeEvent<HTMLInputElement>;\n\n/** Sets native input value via the prototype setter when the node exists. */\nexport const clearInputElementValue = (el: HTMLInputElement | null) => {\n if (!el) {\n return;\n }\n\n const setter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value')?.set;\n setter?.call(el, '');\n};\n","import { type ChangeEventHandler, useRef, useState } from 'react';\n\nimport cn from 'classnames';\nimport { Group, Input as RacInput } from 'react-aria-components';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { Clear } from '@/icons';\nimport { useAuiLabels } from '@/provider';\n\nimport { inputVariants } from './theme';\nimport { type IInputProps } from './types';\nimport { clearInputElementValue, toEmptyInputChangeEvent } from './utils';\n\nimport styles from './styles.module.css';\n\nconst toStringValue = (value: unknown) => (value == null ? '' : String(value));\n\nconst assignRef = <T,>(ref: IInputProps['ref'], node: T | null) => {\n if (typeof ref === 'function') {\n ref(node as never);\n return;\n }\n\n if (ref) {\n ref.current = node as never;\n }\n};\n\nconst InputClearButton = ({ onClear }: { onClear: () => void }) => {\n const { clear } = useAuiLabels();\n\n return (\n <button\n type=\"button\"\n className={styles.clear}\n aria-label={clear}\n onPointerDown={event => {\n event.preventDefault();\n event.stopPropagation();\n }}\n onClick={event => {\n event.preventDefault();\n event.stopPropagation();\n onClear();\n }}\n >\n <Clear className={styles.clearIcon} />\n </button>\n );\n};\n\nexport const Input = supportRef(\n ({\n ref,\n size = 'md',\n variant = 'primary',\n block = true,\n invalid = false,\n disabled = false,\n clear = false,\n className,\n dataTestId,\n value,\n defaultValue,\n onChange,\n ...props\n }: IInputProps) => {\n const inputRef = useRef<HTMLInputElement | null>(null);\n const isControlled = value !== undefined;\n const [uncontrolledValue, setUncontrolledValue] = useState(() => toStringValue(defaultValue));\n const currentValue = isControlled ? toStringValue(value) : uncontrolledValue;\n const showClear = clear && !disabled && currentValue !== '';\n\n const handleChange: ChangeEventHandler<HTMLInputElement> = event => {\n if (!isControlled) {\n setUncontrolledValue(event.target.value);\n }\n\n onChange?.(event);\n };\n\n const emitEmptyChange = () => {\n const el = inputRef.current;\n const event = toEmptyInputChangeEvent(el);\n\n clearInputElementValue(el);\n\n if (!isControlled) {\n setUncontrolledValue('');\n }\n\n onChange?.(event);\n };\n\n return (\n <Group\n className={cn(inputVariants({ size, variant, block }), className)}\n data-test-id={dataTestId}\n isInvalid={invalid}\n isDisabled={disabled}\n >\n <RacInput\n {...props}\n ref={node => {\n inputRef.current = node;\n assignRef(ref, node);\n }}\n value={value}\n defaultValue={defaultValue}\n onChange={handleChange}\n disabled={disabled}\n aria-invalid={invalid || undefined}\n className={styles.fieldInput}\n />\n {showClear ? <InputClearButton onClear={emitEmptyChange} /> : null}\n </Group>\n );\n }\n);\n\nInput.displayName = 'Input';\n"],"names":["inputVariants","cva","styles","cn","typographyStyles","toEmptyInputChangeEvent","el","clearInputElementValue","toStringValue","value","assignRef","ref","node","InputClearButton","onClear","clear","useAuiLabels","jsx","event","Clear","Input","supportRef","size","variant","block","invalid","disabled","className","dataTestId","defaultValue","onChange","props","inputRef","useRef","isControlled","uncontrolledValue","setUncontrolledValue","useState","currentValue","showClear","handleChange","emitEmptyChange","jsxs","Group","RacInput"],"mappings":";;;;;;;;;;;;;;;;;;;GAOaA,IAAgBC,EAAIC,EAAO,MAAM;AAAA,EAC1C,UAAU;AAAA,IACN,MAAM;AAAA,MACF,IAAIC,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,MACxC,IAAID,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,MACxC,IAAID,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,IAAA;AAAA,IAE5C,SAAS;AAAA,MACL,SAASF,EAAO;AAAA,IAAA;AAAA,IAEpB,OAAO;AAAA,MACH,MAAMA,EAAO;AAAA,MACb,OAAO;AAAA,IAAA;AAAA,EACX;AAAA,EAEJ,iBAAiB;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,IACT,OAAO;AAAA,EAAA;AAEf,CAAC,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