aristid-ds 16.2.0 → 17.0.0-1471ace
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/CHANGELOG.md +90 -0
- package/README.md +1 -1
- package/dist/Kit/App/index.js +1 -1
- package/dist/Kit/DataDisplay/Avatar/index.js +1 -1
- package/dist/Kit/DataDisplay/Badge/index.js +1 -1
- package/dist/Kit/DataDisplay/Badge/types.d.ts +2 -0
- package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
- package/dist/Kit/DataDisplay/Collapse/types.d.ts +1 -0
- package/dist/Kit/DataDisplay/Comment/index.js +1 -1
- package/dist/Kit/DataDisplay/Comment/types.d.ts +1 -0
- package/dist/Kit/DataDisplay/Empty/index.js +1 -1
- package/dist/Kit/DataDisplay/Error/index.js +1 -1
- package/dist/Kit/DataDisplay/IdCard/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemCard/types.d.ts +4 -4
- package/dist/Kit/DataDisplay/ItemList/index.js +1 -1
- package/dist/Kit/DataDisplay/RedirectCard/index.js +1 -1
- package/dist/Kit/DataDisplay/Table/KitTableExpandButton.d.ts +1 -1
- package/dist/Kit/DataDisplay/Table/Table.d.ts +1 -1
- package/dist/Kit/DataDisplay/Table/index.js +1 -1
- package/dist/Kit/DataDisplay/Tabs/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/types.d.ts +7 -1
- package/dist/Kit/DataDisplay/Tag/useTagGroup.d.ts +3 -12
- package/dist/Kit/DataDisplay/Tree/index.js +1 -1
- package/dist/Kit/DataDisplay/Tree/types.d.ts +1 -1
- package/dist/Kit/DataDisplay/types.d.ts +3 -0
- package/dist/Kit/DataEntry/AutoComplete/index.js +60 -2
- package/dist/Kit/DataEntry/AutoComplete/types.d.ts +3 -2
- package/dist/Kit/DataEntry/Checkbox/index.js +1 -1
- package/dist/Kit/DataEntry/ColorPicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/DatePicker.d.ts +1 -1
- package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +2 -2
- package/dist/Kit/DataEntry/DatePicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/preset/useActiveDatePickerPreset.d.ts +2 -2
- package/dist/Kit/DataEntry/DatePicker/types.d.ts +7 -3
- package/dist/Kit/DataEntry/Filter/index.js +1 -1
- package/dist/Kit/DataEntry/Input/index.js +1 -1
- package/dist/Kit/DataEntry/Input/types.d.ts +5 -2
- package/dist/Kit/DataEntry/InputNumber/index.d.ts +1 -1
- package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
- package/dist/Kit/DataEntry/InputNumber/types.d.ts +3 -2
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/InputWrapper/types.d.ts +8 -1
- package/dist/Kit/DataEntry/Radio/index.js +1 -1
- package/dist/Kit/DataEntry/Rate/index.d.ts +1 -1
- package/dist/Kit/DataEntry/Rate/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js +5 -5
- package/dist/Kit/DataEntry/RichText/MenuBar/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/index.js +1 -1
- package/dist/Kit/DataEntry/SearchInput/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +1 -1
- package/dist/Kit/DataEntry/Select/renders.d.ts +2 -2
- package/dist/Kit/DataEntry/Select/types.d.ts +7 -2
- package/dist/Kit/DataEntry/Slider/index.d.ts +1 -1
- package/dist/Kit/DataEntry/Switch/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/renders.d.ts +2 -2
- package/dist/Kit/DataEntry/TreeSelect/types.d.ts +8 -1
- package/dist/Kit/DataEntry/Upload/index.js +1 -1
- package/dist/Kit/Feedback/Alert/index.js +1 -1
- package/dist/Kit/Feedback/Alert/types.d.ts +9 -5
- package/dist/Kit/Feedback/Loader/index.js +1 -1
- package/dist/Kit/Feedback/Loader/types.d.ts +1 -1
- package/dist/Kit/Feedback/Modal/index.js +1 -1
- package/dist/Kit/Feedback/Notification/index.js +1 -1
- package/dist/Kit/Feedback/Progress/index.js +1 -1
- package/dist/Kit/Feedback/SnackBar/index.js +1 -1
- package/dist/Kit/General/Button/index.js +1 -1
- package/dist/Kit/General/DynamicActions/index.js +1 -1
- package/dist/Kit/General/Icon/types.d.ts +1 -2
- package/dist/Kit/General/Typography/index.js +1 -1
- package/dist/Kit/General/Typography/types.d.ts +1 -1
- package/dist/Kit/Layout/Divider/types.d.ts +2 -1
- package/dist/Kit/Layout/PageLayout/index.js +1 -1
- package/dist/Kit/Layout/Space/index.js +18 -12
- package/dist/Kit/Navigation/DropDown/index.js +21 -15
- package/dist/Kit/Navigation/Header/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/types.d.ts +1 -0
- package/dist/Kit/Navigation/Pagination/index.js +1 -1
- package/dist/Kit/Navigation/SideMenu/index.js +1 -1
- package/dist/Kit/Navigation/SidePanel/index.js +1 -1
- package/dist/Kit/Navigation/Steps/index.js +1 -1
- package/dist/Kit/Navigation/Steps/types.d.ts +2 -1
- package/dist/Kit/index.js +48 -48
- package/dist/assets/Alert.css +1 -1
- package/dist/assets/App.css +1 -1
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/Badge.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Collapse.css +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/ItemCard.css +1 -1
- package/dist/assets/Loader.css +1 -1
- package/dist/assets/Notification.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/Radio.css +1 -1
- package/dist/assets/SideMenu.css +1 -1
- package/dist/assets/Steps.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/Tree.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/chunks/{Alert.CptjyHNo.js → Alert.DBSUI1YQ.js} +2 -2
- package/dist/chunks/{App.B-o65pBo.js → App.DMKfu33b.js} +1 -1
- package/dist/chunks/{Avatar.C7Y05jlE.js → Avatar.Cod8BuVs.js} +5 -4
- package/dist/chunks/{Avatar.BkWsGZQz.js → Avatar.DMy3wRdr.js} +1 -1
- package/dist/chunks/Badge.lE7m-vaK.js +36 -0
- package/dist/chunks/{Button.W4yUc4_g.js → Button.BwZ9TVAy.js} +8 -8
- package/dist/chunks/{Checkbox.CD7_4xKA.js → Checkbox.UZ_xOkpB.js} +59 -58
- package/dist/chunks/{Collapse.Kx-SBhE4.js → Collapse.UQswQLdu.js} +63 -52
- package/dist/chunks/{ColorPicker.CiLVQ7ma.js → ColorPicker.CIfnJxzt.js} +1 -1
- package/dist/chunks/Comment.C28oythd.js +48 -0
- package/dist/chunks/{DatePicker.s-w_Yoy_.js → DatePicker.B6MnduRh.js} +7 -7
- package/dist/chunks/{DynamicActions.DLAChqhe.js → DynamicActions.Cm8BsY8r.js} +1 -1
- package/dist/chunks/{Empty.kKYv59Zi.js → Empty.ChbH81Kb.js} +1 -1
- package/dist/chunks/{Error.BUEl7nbL.js → Error.B1hGHo8i.js} +2 -2
- package/dist/chunks/{Filter.CEQpPFYE.js → Filter.BZGFrvpc.js} +2 -2
- package/dist/chunks/{FontSizeSelect.XLWRKIOf.js → FontSizeSelect.Rc82wPGZ.js} +1 -1
- package/dist/chunks/{Header.BJgzh9IF.js → Header.Dy-_xRYz.js} +4 -4
- package/dist/chunks/{IdCard.BBfDw0-e.js → IdCard.CWE38g68.js} +3 -1
- package/dist/chunks/{Input.CtZ4tgRD.js → Input.CpnF5RXW.js} +3 -3
- package/dist/chunks/{InputNumber.BEYbLzDt.js → InputNumber.CUVPnyxG.js} +1 -1
- package/dist/chunks/{InputWrapper.DuqdZ-tp.js → InputWrapper.By9kN0xU.js} +2 -1
- package/dist/chunks/ItemCard.IfukwSXw.js +188 -0
- package/dist/chunks/ItemList.B4WlfX8P.js +129 -0
- package/dist/chunks/{LinkButton.BBk_vytt.js → LinkButton.D9hS3_Ah.js} +3 -3
- package/dist/chunks/Loader.BL2-LOk7.js +35 -0
- package/dist/chunks/{MenuBar.pdIb57up.js → MenuBar.CMHSAtol.js} +4 -4
- package/dist/chunks/{Modal.CvtoS2TF.js → Modal.CsGHowNT.js} +3 -3
- package/dist/chunks/{Notification.DRllbqkG.js → Notification.0bSpwSG0.js} +6 -5
- package/dist/chunks/PageHeader.DrBzIAkD.js +61 -0
- package/dist/chunks/{PageLayout.BS_4gV3M.js → PageLayout.BxWR52f1.js} +2 -2
- package/dist/chunks/{Pagination.D4RHg4eu.js → Pagination.D0KoqOs0.js} +1 -1
- package/dist/chunks/{Progress.ZWy41SUW.js → Progress.5NGz8Onb.js} +2 -1
- package/dist/chunks/Radio.CEJd1j6E.js +118 -0
- package/dist/chunks/Rate.66ssppnZ.js +34 -0
- package/dist/chunks/{RedirectCard.DvR9Spw2.js → RedirectCard.C9L2Ym_b.js} +3 -2
- package/dist/chunks/{RichText.BR_A94YI.js → RichText.DnxqGaDh.js} +72 -67
- package/dist/chunks/{SearchInput.CZnUAGz5.js → SearchInput.Bfq_95YB.js} +1 -1
- package/dist/chunks/Select.BN-Gg1B9.js +226 -0
- package/dist/chunks/SideMenu.ImYCXDC3.js +137 -0
- package/dist/chunks/{SidePanel.CaUEt3pC.js → SidePanel.CTtyKSw5.js} +2 -2
- package/dist/chunks/{SnackBar.Dvnae0aa.js → SnackBar.Bdq4XTnk.js} +4 -4
- package/dist/chunks/{Steps.CF_4sPDw.js → Steps.Cv9QH9E2.js} +10 -6
- package/dist/chunks/{Switch.6L3-gRH2.js → Switch.D4X2HkVR.js} +1 -1
- package/dist/chunks/{Table.DvFA660k.js → Table.COyj-GZ5.js} +11 -14
- package/dist/chunks/{Tabs.YH0DNmKq.js → Tabs.BHToGNhL.js} +4 -3
- package/dist/chunks/Tag.C48VnN6a.js +158 -0
- package/dist/chunks/{Tree.DI2X_dWa.js → Tree.UCxeoAGW.js} +1 -1
- package/dist/chunks/{TreeSelect.k8HffaA-.js → TreeSelect.B6ts83Xs.js} +65 -57
- package/dist/chunks/{Typography.LjOcXtjO.js → Typography.DVDv9LwQ.js} +12 -4
- package/dist/chunks/{Upload.C_TOub0N.js → Upload.BGoYUqae.js} +7 -5
- package/dist/chunks/{styles.module.Bfe7jTpt.js → styles.module.I-VT2CFc.js} +1 -1
- package/dist/index.es.js +48 -48
- package/dist/index.umd.js +3 -3
- package/dist/theme/aristid/general/colors/index.js +18 -0
- package/dist/theme/aristid/general/utilities/index.js +12 -0
- package/dist/theme/types/general/colors/index.d.ts +37 -0
- package/dist/theme/types/utilities/index.d.ts +28 -0
- package/dist/translation/en-US/components/DataDisplay/Collapse/index.js +5 -1
- package/dist/translation/en-US/components/Feedback/Progress/index.d.ts +2 -0
- package/dist/translation/en-US/components/Feedback/Progress/index.js +4 -0
- package/dist/translation/en-US/components/Navigation/PageHeader/index.d.ts +2 -0
- package/dist/translation/en-US/components/Navigation/PageHeader/index.js +4 -0
- package/dist/translation/en-US/components/Navigation/SideMenu/index.d.ts +2 -0
- package/dist/translation/en-US/components/Navigation/SideMenu/index.js +7 -0
- package/dist/translation/en-US/index.js +18 -12
- package/dist/translation/fr-FR/components/DataDisplay/Collapse/index.js +5 -1
- package/dist/translation/fr-FR/components/Feedback/Progress/index.d.ts +2 -0
- package/dist/translation/fr-FR/components/Feedback/Progress/index.js +4 -0
- package/dist/translation/fr-FR/components/Navigation/PageHeader/index.d.ts +2 -0
- package/dist/translation/fr-FR/components/Navigation/PageHeader/index.js +4 -0
- package/dist/translation/fr-FR/components/Navigation/SideMenu/index.d.ts +2 -0
- package/dist/translation/fr-FR/components/Navigation/SideMenu/index.js +7 -0
- package/dist/translation/fr-FR/index.js +18 -12
- package/dist/translation/pt-PT/components/DataDisplay/Collapse/index.js +5 -1
- package/dist/translation/pt-PT/components/Feedback/Progress/index.d.ts +2 -0
- package/dist/translation/pt-PT/components/Feedback/Progress/index.js +4 -0
- package/dist/translation/pt-PT/components/Navigation/PageHeader/index.d.ts +2 -0
- package/dist/translation/pt-PT/components/Navigation/PageHeader/index.js +4 -0
- package/dist/translation/pt-PT/components/Navigation/SideMenu/index.d.ts +2 -0
- package/dist/translation/pt-PT/components/Navigation/SideMenu/index.js +7 -0
- package/dist/translation/pt-PT/index.js +18 -12
- package/dist/translation/types/components/DataDisplay/Collapse/index.d.ts +2 -0
- package/dist/translation/types/components/Feedback/Progress/index.d.ts +3 -0
- package/dist/translation/types/components/Navigation/PageHeader/index.d.ts +3 -0
- package/dist/translation/types/components/Navigation/SideMenu/index.d.ts +4 -0
- package/dist/translation/types/index.d.ts +6 -0
- package/dist/utils/functions/index.d.ts +1 -1
- package/dist/utils/hooks/useGetPopupContainer.d.ts +2 -2
- package/package.json +150 -151
- package/dist/Kit/DataEntry/DatePicker/preset/useActiveRangePickerPreset.d.ts +0 -17
- package/dist/assets/AutoComplete.css +0 -1
- package/dist/chunks/AutoComplete.DjcjDCwe.js +0 -55
- package/dist/chunks/Badge.BmH3YSz4.js +0 -57
- package/dist/chunks/Comment.Cd7i1Ope.js +0 -47
- package/dist/chunks/ItemCard.CZWby7um.js +0 -160
- package/dist/chunks/ItemList.D3ZOFW5C.js +0 -112
- package/dist/chunks/Loader.C-wRwi_O.js +0 -16
- package/dist/chunks/PageHeader.StAURUeV.js +0 -54
- package/dist/chunks/Radio.DWGDlt8U.js +0 -117
- package/dist/chunks/Rate.Dmfwlgev.js +0 -27
- package/dist/chunks/Select.CepppHZ6.js +0 -223
- package/dist/chunks/SideMenu.BFZc2x69.js +0 -135
- package/dist/chunks/Tag.B9K2nEub.js +0 -158
- package/dist/theme/utils/convert.d.ts +0 -1
- package/dist/theme/utils/testTokens.d.ts +0 -2643
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,81 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [X.X.X](https://www.npmjs.com/package/aristid-ds/v/X.X.X) (2026-XX-XX)
|
|
4
|
+
|
|
5
|
+
### ✨ Features
|
|
6
|
+
|
|
7
|
+
- **ItemList:**
|
|
8
|
+
- Use `KitTooltip` instead of the native HTML `title` on action buttons, and add `aria-label` for accessibility (@philippechevieux)
|
|
9
|
+
|
|
10
|
+
### 🐛 Bug Fixes
|
|
11
|
+
|
|
12
|
+
- **Table:**
|
|
13
|
+
- Fix fixed columns (`fixed: 'left'`/`'right'`) losing `position: sticky` under Ant Design 6, which shifted the fixed header cell and prevented columns from sticking on horizontal scroll (@philippechevieux)
|
|
14
|
+
- **ItemCard:**
|
|
15
|
+
- Fix cards overlapping each other when placed in a CSS grid layout without an explicit width (@evoiron, @frykten)
|
|
16
|
+
- Fix the activate switch staying enabled while the card is in a loading state (@evoiron)
|
|
17
|
+
- **Tag:**
|
|
18
|
+
- Fix tags not being evenly spaced in the "+N others" popup opened from a truncated `Tag.Group` (@evoiron)
|
|
19
|
+
- Remove unused ellipsis in Tag.Group to fix display calculus in flex layouts (@frykten)
|
|
20
|
+
- **Badge:**
|
|
21
|
+
- Fix z-index issue with badge using `dot` prop (@philippechevieux)
|
|
22
|
+
- **Switch:**
|
|
23
|
+
- Replace deprecated `size="default"` with `size="medium"` to remove the Ant Design 6 deprecation warning (@philippechevieux)
|
|
24
|
+
- **Select:**
|
|
25
|
+
- Fix `popupRender` being ignored unless the deprecated `dropdownRender` prop was also passed (@frykten)
|
|
26
|
+
- Fix a consumer-provided `classNames.popup.root` being overwritten instead of merged with the design system's own popup classes (@frykten)
|
|
27
|
+
- Fix `value`/`defaultValue` shape: they now properly accept `labelInValue` objects and arrays (`LabeledValue` / `LabeledValue[]`) in addition to raw string/number values, and fix tag rendering to correctly resolve the tag's icon, avatar and label (@frykten)
|
|
28
|
+
- **DropDown:**
|
|
29
|
+
- Fix a consumer-provided `styles.root` being overwritten instead of merged with the design system's own popup styles when the deprecated `overlayStyle` prop was also used (@frykten)
|
|
30
|
+
- **TreeSelect:**
|
|
31
|
+
- Fix `popupRender` being ignored unless the deprecated `dropdownRender` prop was also passed (@frykten)
|
|
32
|
+
- Fix a consumer-provided `classNames.popup.root` being overwritten instead of merged with the design system's own popup classes (@frykten)
|
|
33
|
+
- Remove the deprecated `bordered`, `dropdownMatchSelectWidth`, `removeIcon` and `maxTagTextLength` props from the public type — they were already dead (ignored due to the custom `tagRender`) or could silently override the design system's own variant/tag styling (@frykten)
|
|
34
|
+
- **RichText:**
|
|
35
|
+
- Remove the Tiptap `Duplicate extension names ['link','underline']` warning by relying on StarterKit v3's bundled `Underline` and disabling only its bundled `Link`, which is re-registered explicitly to keep `inclusive: false` (@philippechevieux)
|
|
36
|
+
- **Alert:**
|
|
37
|
+
- Add the missing `info` semantic color scale (`--general-utilities-info-*`) to the general utilities tokens, fixing Alert's `info` instead of borrowing the `main` scale (@frykten)
|
|
38
|
+
- **Notification:**
|
|
39
|
+
- Switch Notification's `info` variant to the new dedicated `info` tokens instead of borrowing the `main` scale (@frykten)
|
|
40
|
+
- **DatePicker:**
|
|
41
|
+
- Fix the hover background not wrapping long labels in the month/quarter/year/decade panels, where Ant Design pins the cell to a fixed 60px width (@philippechevieux)
|
|
42
|
+
|
|
43
|
+
## [17.0.0](https://www.npmjs.com/package/aristid-ds/v/17.0.0) (2026-07-08)
|
|
44
|
+
|
|
45
|
+
### ✨ Features
|
|
46
|
+
|
|
47
|
+
- **⚠️ Breaking change - Badge**
|
|
48
|
+
- Replace dynamic offsets by predefined offsets and allow custom offsets (@baloche)
|
|
49
|
+
- **Comment:**
|
|
50
|
+
- Add `inThread` prop, and now renders as li in a `Thread` component, as a `div` otherwise (@evoiron)
|
|
51
|
+
- **Rate:**
|
|
52
|
+
- Fix a11y errors (@evoiron)
|
|
53
|
+
- **⚠️ Breaking change - TreeSelect:**
|
|
54
|
+
- Remove `treeCheckable` prop. Checkboxes are now shown when mode is set to multiple (@evoiron)
|
|
55
|
+
- Fix scrollbar appearing in dropdown when opening treeSelect (@evoiron)
|
|
56
|
+
- **Loader:**
|
|
57
|
+
- Add AI type to `Loader` (@evoiron)
|
|
58
|
+
- **ItemCard:**
|
|
59
|
+
- Add `actionsLimit` and `Loader` props to `ItemCard` (@evoiron)
|
|
60
|
+
|
|
61
|
+
### 🐛 Bug Fixes
|
|
62
|
+
|
|
63
|
+
- **SideMenu:**
|
|
64
|
+
- Align item text to start (@philippechevieux)
|
|
65
|
+
- **RichText:**
|
|
66
|
+
- Fix a11y errors: add an accessible name to the editor (`aria-input-field-name`) and make the read-only scrollable region keyboard-focusable (`scrollable-region-focusable`) (@evoiron)
|
|
67
|
+
- **Tag:**
|
|
68
|
+
- Fix tag group blinking between full list and truncated list in some cases (@evoiron)
|
|
69
|
+
|
|
70
|
+
### 📦 Upgrade
|
|
71
|
+
|
|
72
|
+
- Upgrade Ant Design from `5.22.2` to `5.29.3` (@philippechevieux)
|
|
73
|
+
- Resolve antd deprecation warnings ahead of v6 (public component props unchanged)
|
|
74
|
+
- **InputNumber**: the forwarded `ref` is now typed as antd's `InputNumberRef` (previously `HTMLInputElement`)
|
|
75
|
+
- **⚠️ Breaking change** — Upgrade Ant Design from `5.29.3` to `6.4.5` (@philippechevieux)
|
|
76
|
+
- **Divider**: the title alignment prop `orientation` is renamed to `titlePlacement`. In v6 `orientation` now controls the divider direction (`horizontal` / `vertical`)
|
|
77
|
+
- Adopt antd's new `@rc-component/*` scope (`rc-util` → `@rc-component/util`, internal `rc-*` imports rewritten to `@rc-component/*`)
|
|
78
|
+
|
|
3
79
|
## [16.2.0](https://www.npmjs.com/package/aristid-ds/v/16.2.0) (2026-06-19)
|
|
4
80
|
|
|
5
81
|
### 🐛 Bug Fixes
|
|
@@ -11,6 +87,16 @@
|
|
|
11
87
|
- Fix actions alignment problem on small screens (@evoiron)
|
|
12
88
|
- **Tests:**
|
|
13
89
|
- Add e2e and accessibility tests for components (@evoiron)
|
|
90
|
+
- **a11y:**
|
|
91
|
+
- fix color contrast issues for components Avatar, IdCard, Tabs, Tag, InputWrapper, TreeSelect, Typography (@evoiron)
|
|
92
|
+
- **Collapse:**
|
|
93
|
+
- fix some accessibility issues (@evoiron)
|
|
94
|
+
- **ItemCard:**
|
|
95
|
+
- fix some accessibility issues (@evoiron)
|
|
96
|
+
- **Upload:**
|
|
97
|
+
- fix some accessibility issues (@evoiron)
|
|
98
|
+
- **Progress:**
|
|
99
|
+
- fix some accessibility issues (@evoiron)
|
|
14
100
|
|
|
15
101
|
## [16.1.0](https://www.npmjs.com/package/aristid-ds/v/16.1.0) (2026-06-10)
|
|
16
102
|
|
|
@@ -173,6 +259,10 @@
|
|
|
173
259
|
- Fix search feature (@evoiron)
|
|
174
260
|
- Fix wrong height for select/TreeSelect with multiple attribute (@alechapelain)
|
|
175
261
|
- Fix wrong tag size not matching select size (@alechapelain)
|
|
262
|
+
- **Avatar:**
|
|
263
|
+
- Fix a11y color-contrast error (@evoiron)
|
|
264
|
+
- **Tooltip:**
|
|
265
|
+
- Fix a11y flaky test due to css animations (@evoiron)
|
|
176
266
|
|
|
177
267
|
### 📝 Documentation
|
|
178
268
|
|
package/README.md
CHANGED
|
@@ -134,5 +134,5 @@ With npm + Jest:
|
|
|
134
134
|
|
|
135
135
|
- [Storybook](https://storybook.aristid.com) — component documentation and live examples
|
|
136
136
|
- [CONTRIBUTING.md](./CONTRIBUTING.md) — how to add components, locales, run tests, commit conventions
|
|
137
|
-
- [
|
|
137
|
+
- [CLAUDE.md](./CLAUDE.md) — AI assistant context for working on this repo
|
|
138
138
|
- [docs/ADR.md](./docs/ADR.md) — architecture decision records
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../chunks/App.
|
|
1
|
+
import { t as e } from "../../chunks/App.DMKfu33b.js";
|
|
2
2
|
export { e as KitApp };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Avatar.
|
|
1
|
+
import { t as e } from "../../../chunks/Avatar.DMy3wRdr.js";
|
|
2
2
|
export { e as KitAvatar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Badge.
|
|
1
|
+
import { t as e } from "../../../chunks/Badge.lE7m-vaK.js";
|
|
2
2
|
export { e as KitBadge };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BadgeProps } from 'antd';
|
|
2
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
3
3
|
import { KitColorProp } from '../../../utils/functions/types';
|
|
4
|
+
import { IKitBorder } from '../../../theme/types/general/border';
|
|
4
5
|
type AntdBadgeTypesToOmit = 'color' | 'size' | 'offset' | 'text';
|
|
5
6
|
|
|
6
7
|
export interface IKitBadge extends KitHTMLAttributes<HTMLDivElement>, Omit<BadgeProps, AntdBadgeTypesToOmit> {
|
|
7
8
|
color?: KitColorProp;
|
|
8
9
|
secondaryColorInvert?: boolean;
|
|
10
|
+
offset?: BadgeProps['offset'] | Exclude<keyof IKitBorder['radius'], 'square' | 'pills'>;
|
|
9
11
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Collapse.
|
|
1
|
+
import { t as e } from "../../../chunks/Collapse.UQswQLdu.js";
|
|
2
2
|
export { e as KitCollapse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../../chunks/Comment.
|
|
1
|
+
import { n as e, t } from "../../../chunks/Comment.C28oythd.js";
|
|
2
2
|
export { e as KitComment, t as KitThread };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Empty.
|
|
1
|
+
import { t as e } from "../../../chunks/Empty.ChbH81Kb.js";
|
|
2
2
|
export { e as KitEmpty };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Error.
|
|
1
|
+
import { t as e } from "../../../chunks/Error.B1hGHo8i.js";
|
|
2
2
|
export { e as KitError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/IdCard.
|
|
1
|
+
import { t as e } from "../../../chunks/IdCard.CWE38g68.js";
|
|
2
2
|
export { e as KitIdCard };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/ItemCard.
|
|
1
|
+
import { t as e } from "../../../chunks/ItemCard.IfukwSXw.js";
|
|
2
2
|
export { e as KitItemCard };
|
|
@@ -18,15 +18,14 @@ export type IKitItemCard = {
|
|
|
18
18
|
breadcrumbItems?: IKitBreadcrumbItem[];
|
|
19
19
|
draggableHandler?: ReactNode;
|
|
20
20
|
selected?: boolean;
|
|
21
|
+
loading?: boolean;
|
|
21
22
|
onSelect?: (e: CheckboxChangeEvent) => void;
|
|
22
23
|
activateLabel?: string;
|
|
23
24
|
activated?: boolean;
|
|
24
25
|
onActivate?: SwitchChangeEventHandler;
|
|
25
26
|
extra?: ReactNode;
|
|
26
|
-
actions?:
|
|
27
|
-
|
|
28
|
-
| [IKitActionButton, IKitActionButton]
|
|
29
|
-
| [IKitActionButton, IKitActionButton, IKitActionButton];
|
|
27
|
+
actions?: IKitActionButton[];
|
|
28
|
+
actionsLimit?: number;
|
|
30
29
|
imageCover?: boolean;
|
|
31
30
|
};
|
|
32
31
|
|
|
@@ -34,4 +33,5 @@ export type IKitItemCardActions = {
|
|
|
34
33
|
display: IKitItemCard['display'];
|
|
35
34
|
disabled: IKitItemCard['disabled'];
|
|
36
35
|
actions: IKitItemCard['actions'];
|
|
36
|
+
threshold?: number;
|
|
37
37
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/ItemList.
|
|
1
|
+
import { t as e } from "../../../chunks/ItemList.B4WlfX8P.js";
|
|
2
2
|
export { e as KitItemList };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/RedirectCard.
|
|
1
|
+
import { t as e } from "../../../chunks/RedirectCard.C9L2Ym_b.js";
|
|
2
2
|
export { e as KitRedirectCard };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RenderExpandIconProps } from 'rc-table/lib/interface';
|
|
1
|
+
import { RenderExpandIconProps } from '@rc-component/table/lib/interface';
|
|
2
2
|
export declare function KitTableExpandButton<T>({ record, expanded, onExpand, expandable }: RenderExpandIconProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IKitTable } from './types';
|
|
2
|
-
import { DefaultRecordType } from 'rc-table/lib/interface';
|
|
2
|
+
import { DefaultRecordType } from '@rc-component/table/lib/interface';
|
|
3
3
|
export declare function KitTable<T extends DefaultRecordType>({ className, style, cellsBackgroundColor, backgroundColor, borderedRows, columns, onChange, components, showDragHandle, showHeader, dragHandleElement, headerLineSize, lineSize, ...tableProps }: IKitTable<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../../chunks/Table.
|
|
1
|
+
import { n as e, t } from "../../../chunks/Table.COyj-GZ5.js";
|
|
2
2
|
export { t as KitTable, e as KitTableExpandButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Tabs.
|
|
1
|
+
import { t as e } from "../../../chunks/Tabs.BHToGNhL.js";
|
|
2
2
|
export { e as KitTabs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Tag.
|
|
1
|
+
import { t as e } from "../../../chunks/Tag.C48VnN6a.js";
|
|
2
2
|
export { e as KitTag };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TagProps } from 'antd';
|
|
2
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
4
4
|
import { IKitIdCard } from '../IdCard/types';
|
|
5
5
|
import { IKitAvatar } from '../Avatar/types';
|
|
6
6
|
export type KitTagType = 'primary' | 'secondary' | 'neutral' | 'error' | 'success' | 'ai';
|
|
@@ -11,6 +11,12 @@ type KitHTMLAttributesToOmit = 'color';
|
|
|
11
11
|
|
|
12
12
|
type KitIdCardToOmit = 'title' | 'disabled' | 'size' | 'avatarProps';
|
|
13
13
|
|
|
14
|
+
type TagGroupProps = {
|
|
15
|
+
tags: IKitTagConfig[];
|
|
16
|
+
containerRef: RefObject<HTMLDivElement>;
|
|
17
|
+
measureRef: RefObject<HTMLDivElement>;
|
|
18
|
+
};
|
|
19
|
+
|
|
14
20
|
export type IKitTag = Omit<TagProps, AntdTagPropsToOmit> &
|
|
15
21
|
Omit<KitHTMLAttributes<HTMLSpanElement>, KitHTMLAttributesToOmit> & {
|
|
16
22
|
type?: KitTagType;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
tags: IKitTagConfig[];
|
|
5
|
-
containerRef: RefObject<HTMLDivElement>;
|
|
6
|
-
measureRef: RefObject<HTMLDivElement>;
|
|
7
|
-
handleCloseTag?: (index: number) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const useTagGroup: ({ tags, containerRef, measureRef, handleCloseTag }: TagGroupProps) => {
|
|
10
|
-
measureTags: import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
visibleTags: IKitTagConfig[];
|
|
1
|
+
import { TagGroupProps } from './types';
|
|
2
|
+
export declare const useTagGroup: ({ tags, containerRef, measureRef }: TagGroupProps) => {
|
|
3
|
+
visibleTags: import('./types').IKitTagConfig[];
|
|
12
4
|
hiddenCount: number;
|
|
13
5
|
};
|
|
14
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Tree.
|
|
1
|
+
import { t as e } from "../../../chunks/Tree.UCxeoAGW.js";
|
|
2
2
|
export { e as KitTree };
|
|
@@ -7,4 +7,7 @@ export interface IKitActionButton {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
title?: string;
|
|
9
9
|
className?: string;
|
|
10
|
+
// antd 5.29 added a `data-${string}` index signature to MenuItemType (DataAttributes).
|
|
11
|
+
// Mirror it so action buttons stay assignable to KitDropDown's `menu.items`.
|
|
12
|
+
[dataAttribute: `data-${string}`]: unknown;
|
|
10
13
|
}
|
|
@@ -1,2 +1,60 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/
|
|
2
|
-
|
|
1
|
+
import { t as e } from "../../../chunks/InputWrapper.By9kN0xU.js";
|
|
2
|
+
import { t } from "../../../chunks/useGetPopupContainer.C6KjVnVk.js";
|
|
3
|
+
import { t as n } from "../../../chunks/Input.CpnF5RXW.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import { forwardRef as i, useRef as a, useState as o } from "react";
|
|
6
|
+
import { AutoComplete as s } from "antd";
|
|
7
|
+
import c from "classnames";
|
|
8
|
+
import { FontAwesomeIcon as l } from "@fortawesome/react-fontawesome";
|
|
9
|
+
import { faMagnifyingGlass as u } from "@fortawesome/free-solid-svg-icons";
|
|
10
|
+
//#region src/Kit/DataEntry/AutoComplete/index.tsx
|
|
11
|
+
var d = (e, t, n) => c(e, "ant-select-dropdown", "kit-select-dropdown-bottom", {
|
|
12
|
+
"kit-select-dropdown-focus": t,
|
|
13
|
+
"kit-select-dropdown-error": n === "error",
|
|
14
|
+
"kit-select-dropdown-warning": n === "warning"
|
|
15
|
+
}), f = i(({ allowClear: i, label: c, helper: f, htmlFor: p, autoFocus: m, defaultValue: h, disabled: g, placeholder: _, status: v, value: y, getPopupContainer: b, onFocus: x, onBlur: S, popupClassName: C, wrapperClassName: w, required: T, actions: E, size: D = "large", extra: O, ...k }, A) => {
|
|
16
|
+
let [j, M] = o(!1), N = a(null), P = A ?? N, F = t(P, b), I = (e) => {
|
|
17
|
+
M(!0), x && x(e);
|
|
18
|
+
}, L = (e) => {
|
|
19
|
+
M(!1), S && S(e);
|
|
20
|
+
}, R = typeof k.classNames == "function" ? void 0 : k.classNames;
|
|
21
|
+
return r(e, {
|
|
22
|
+
label: c,
|
|
23
|
+
helper: f,
|
|
24
|
+
htmlFor: p,
|
|
25
|
+
disabled: g,
|
|
26
|
+
status: v,
|
|
27
|
+
className: w,
|
|
28
|
+
extra: O ?? E,
|
|
29
|
+
children: r(s, {
|
|
30
|
+
...k,
|
|
31
|
+
id: k.id ?? p,
|
|
32
|
+
disabled: g,
|
|
33
|
+
ref: P,
|
|
34
|
+
getPopupContainer: F,
|
|
35
|
+
classNames: {
|
|
36
|
+
...R,
|
|
37
|
+
popup: {
|
|
38
|
+
...R?.popup,
|
|
39
|
+
root: d(C, j, v)
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
children: r(n, {
|
|
43
|
+
prefix: r(l, { icon: u }),
|
|
44
|
+
allowClear: i,
|
|
45
|
+
autoFocus: m,
|
|
46
|
+
required: T,
|
|
47
|
+
size: D,
|
|
48
|
+
defaultValue: h,
|
|
49
|
+
placeholder: _,
|
|
50
|
+
status: v,
|
|
51
|
+
value: y,
|
|
52
|
+
onBlur: L,
|
|
53
|
+
onFocus: I
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
f.displayName = "KitAutoComplete";
|
|
59
|
+
//#endregion
|
|
60
|
+
export { f as KitAutoComplete };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AutoCompleteProps } from 'antd';
|
|
2
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
-
import { IKitInputWrapperBase } from '../InputWrapper/types';
|
|
3
|
+
import { IKitInputWrapperBase, KitInputStatus } from '../InputWrapper/types';
|
|
4
4
|
export interface IKitAutoComplete
|
|
5
|
-
extends AutoCompleteProps<T, E>, KitHTMLAttributes<HTMLInputElement>, IKitInputWrapperBase {
|
|
5
|
+
extends Omit<AutoCompleteProps<T, E>, 'status'>, KitHTMLAttributes<HTMLInputElement>, IKitInputWrapperBase {
|
|
6
6
|
allowClear?: boolean;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
wrapperClassName?: string;
|
|
9
9
|
required?: boolean;
|
|
10
|
+
status?: KitInputStatus;
|
|
10
11
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Checkbox.
|
|
1
|
+
import { t as e } from "../../../chunks/Checkbox.UZ_xOkpB.js";
|
|
2
2
|
export { e as KitCheckbox };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/ColorPicker.
|
|
1
|
+
import { t as e } from "../../../chunks/ColorPicker.CIfnJxzt.js";
|
|
2
2
|
export { e as KitColorPicker };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PickerRef } from 'rc-picker';
|
|
1
|
+
import { PickerRef } from '@rc-component/picker';
|
|
2
2
|
import { IKitDatePicker } from './types';
|
|
3
3
|
declare const KitDatePicker: import('react').ForwardRefExoticComponent<Omit<IKitDatePicker, "ref"> & import('react').RefAttributes<PickerRef>>;
|
|
4
4
|
export default KitDatePicker;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PickerRef } from 'rc-picker';
|
|
2
|
-
declare const KitRangePicker: import('react').ForwardRefExoticComponent<Omit<import('antd/es/date-picker').RangePickerProps, "readOnly"> & import('./types').IInternalRangerPicker & import('../InputWrapper/types').IKitInputWrapperBase & import('react').RefAttributes<PickerRef>>;
|
|
1
|
+
import { PickerRef } from '@rc-component/picker';
|
|
2
|
+
declare const KitRangePicker: import('react').ForwardRefExoticComponent<Omit<import('antd/es/date-picker').RangePickerProps, "status" | "readOnly"> & import('./types').IInternalRangerPicker & import('../InputWrapper/types').IKitInputWrapperBase & import('react').RefAttributes<PickerRef>>;
|
|
3
3
|
export default KitRangePicker;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/DatePicker.
|
|
1
|
+
import { t as e } from "../../../chunks/DatePicker.B6MnduRh.js";
|
|
2
2
|
export { e as KitDatePicker };
|
|
@@ -11,7 +11,7 @@ export declare const useActiveDatePickerPreset: ({ presets, picker, showTime, on
|
|
|
11
11
|
label: import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
value: import('dayjs').Dayjs | (() => import('dayjs').Dayjs);
|
|
13
13
|
}[] | undefined;
|
|
14
|
-
onChange: (date: import('dayjs').Dayjs, dateString: string | string[]) => void;
|
|
15
|
-
onCalendarChange: (date: import('dayjs').Dayjs | import('dayjs').Dayjs[], dateString: string | string[], info: import('rc-picker/
|
|
14
|
+
onChange: (date: import('dayjs').Dayjs | import('dayjs').Dayjs[] | null, dateString: string | string[] | null) => void;
|
|
15
|
+
onCalendarChange: (date: import('dayjs').Dayjs | import('dayjs').Dayjs[], dateString: string | string[], info: import('@rc-component/picker/interface').BaseInfo) => void;
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DatePickerProps, RangePickerProps } from 'antd/es/date-picker';
|
|
2
|
-
import { IKitInputWrapperBase } from '../InputWrapper/types';
|
|
2
|
+
import { IKitInputWrapperBase, KitInputStatus } from '../InputWrapper/types';
|
|
3
3
|
// Use "never" instead of Omit properties to avoid issues with Antd type/interface declarations
|
|
4
4
|
interface IInternalDatePicker {
|
|
5
5
|
size?: 'small' | 'middle' | 'large';
|
|
@@ -11,9 +11,10 @@ interface IInternalDatePicker {
|
|
|
11
11
|
required?: boolean;
|
|
12
12
|
readonlyLight?: boolean;
|
|
13
13
|
readonly?: boolean;
|
|
14
|
+
status?: KitInputStatus;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
interface IDatePickerProps extends Omit<DatePickerProps, 'picker' | 'readOnly'> {
|
|
17
|
+
interface IDatePickerProps extends Omit<DatePickerProps, 'picker' | 'readOnly' | 'status'> {
|
|
17
18
|
picker?: 'time' | 'date' | 'week' | 'month' | 'year' | 'quarter';
|
|
18
19
|
showTime?: boolean | object;
|
|
19
20
|
}
|
|
@@ -27,6 +28,9 @@ interface IInternalRangerPicker {
|
|
|
27
28
|
required?: boolean;
|
|
28
29
|
readonlyLight?: boolean;
|
|
29
30
|
readonly?: boolean;
|
|
31
|
+
status?: KitInputStatus;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
export type IKitRangePicker = Omit<RangePickerProps, 'readOnly'
|
|
34
|
+
export type IKitRangePicker = Omit<RangePickerProps, 'readOnly' | 'status'> &
|
|
35
|
+
IInternalRangerPicker &
|
|
36
|
+
IKitInputWrapperBase;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Filter.
|
|
1
|
+
import { t as e } from "../../../chunks/Filter.BZGFrvpc.js";
|
|
2
2
|
export { e as KitFilter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Input.
|
|
1
|
+
import { t as e } from "../../../chunks/Input.CpnF5RXW.js";
|
|
2
2
|
export { e as KitInput };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InputProps } from 'antd';
|
|
2
2
|
import { PasswordProps, TextAreaProps } from 'antd/es/input';
|
|
3
3
|
import { KitHTMLAttributes } from '../../../types';
|
|
4
|
-
import { IKitInputWrapper, IKitInputWrapperBase } from '../InputWrapper/types';
|
|
5
|
-
type AntdInputTypesToOmit = 'styles' | 'bordered' | 'addonBefore' | 'addonAfter' | 'readOnly';
|
|
4
|
+
import { IKitInputWrapper, IKitInputWrapperBase, KitInputStatus } from '../InputWrapper/types';
|
|
5
|
+
type AntdInputTypesToOmit = 'styles' | 'bordered' | 'addonBefore' | 'addonAfter' | 'readOnly' | 'status';
|
|
6
6
|
|
|
7
7
|
export interface IKitInput
|
|
8
8
|
extends
|
|
@@ -17,6 +17,7 @@ export interface IKitInput
|
|
|
17
17
|
readonlyLight?: boolean;
|
|
18
18
|
enableSpellCheck?: boolean;
|
|
19
19
|
AI?: boolean;
|
|
20
|
+
status?: KitInputStatus;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export interface IKitTextArea
|
|
@@ -31,6 +32,7 @@ export interface IKitTextArea
|
|
|
31
32
|
readonlyLight?: boolean;
|
|
32
33
|
enableSpellCheck?: boolean;
|
|
33
34
|
AI?: boolean;
|
|
35
|
+
status?: KitInputStatus;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
export interface IKitPassword
|
|
@@ -42,4 +44,5 @@ export interface IKitPassword
|
|
|
42
44
|
wrapperClassName?: string;
|
|
43
45
|
required?: boolean;
|
|
44
46
|
readonly?: boolean;
|
|
47
|
+
status?: KitInputStatus;
|
|
45
48
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { KitInputNumberProps } from './types';
|
|
2
|
-
export declare const KitInputNumber: import('react').ForwardRefExoticComponent<KitInputNumberProps & import('react').RefAttributes<
|
|
2
|
+
export declare const KitInputNumber: import('react').ForwardRefExoticComponent<KitInputNumberProps & import('react').RefAttributes<import('@rc-component/input-number').InputNumberRef>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/InputNumber.
|
|
1
|
+
import { t as e } from "../../../chunks/InputNumber.CUVPnyxG.js";
|
|
2
2
|
export { e as KitInputNumber };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InputNumberProps } from 'antd';
|
|
2
2
|
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
-
import { IKitInputWrapperBase } from '../InputWrapper/types';
|
|
4
|
-
type AntdInputNumberTypesToOmit = 'addonBefore' | 'addonAfter' | 'borderless' | 'suffix' | 'readOnly';
|
|
3
|
+
import { IKitInputWrapperBase, KitInputStatus } from '../InputWrapper/types';
|
|
4
|
+
type AntdInputNumberTypesToOmit = 'addonBefore' | 'addonAfter' | 'borderless' | 'suffix' | 'readOnly' | 'status';
|
|
5
5
|
|
|
6
6
|
export interface KitInputNumberProps
|
|
7
7
|
extends
|
|
@@ -11,4 +11,5 @@ export interface KitInputNumberProps
|
|
|
11
11
|
wrapperClassName?: string;
|
|
12
12
|
required?: boolean;
|
|
13
13
|
readonly?: boolean;
|
|
14
|
+
status?: KitInputStatus;
|
|
14
15
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/InputWrapper.
|
|
1
|
+
import { t as e } from "../../../chunks/InputWrapper.By9kN0xU.js";
|
|
2
2
|
export { e as KitInputWrapper };
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { KitHTMLAttributes } from '../../../types';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Only `error` and `warning` have a dedicated rendering in KitInputWrapper.
|
|
5
|
+
* antd v6 widens its `InputStatus` to also include `success`/`validating`, but we
|
|
6
|
+
* intentionally don't expose those since the wrapper has no rendering for them.
|
|
7
|
+
*/
|
|
8
|
+
export type KitInputStatus = '' | 'warning' | 'error';
|
|
9
|
+
|
|
3
10
|
export interface IKitInputWrapperBase {
|
|
4
11
|
label?: string;
|
|
5
12
|
helper?: string;
|
|
@@ -14,7 +21,7 @@ export interface IKitInputWrapperBase {
|
|
|
14
21
|
export interface IKitInputWrapper extends IKitInputWrapperBase, KitHTMLAttributes<HTMLDivElement> {
|
|
15
22
|
childrenOnly?: boolean;
|
|
16
23
|
disabled?: boolean;
|
|
17
|
-
status?:
|
|
24
|
+
status?: KitInputStatus;
|
|
18
25
|
className?: string;
|
|
19
26
|
bordered?: boolean;
|
|
20
27
|
hoverable?: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Radio.
|
|
1
|
+
import { t as e } from "../../../chunks/Radio.CEJd1j6E.js";
|
|
2
2
|
export { e as KitRadio };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Rate.
|
|
1
|
+
import { t as e } from "../../../chunks/Rate.66ssppnZ.js";
|
|
2
2
|
export { e as KitRate };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../../chunks/FontSizeSelect.
|
|
1
|
+
import { t as e } from "../../../../../chunks/FontSizeSelect.Rc82wPGZ.js";
|
|
2
2
|
export { e as KitFontSizeSelect };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../../chunks/LinkButton.
|
|
1
|
+
import { t as e } from "../../../../../chunks/LinkButton.D9hS3_Ah.js";
|
|
2
2
|
export { e as KitLinkButton };
|