aristid-ds 14.0.0 → 15.0.0-7d2bb0b
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 +166 -78
- package/README.md +46 -25
- package/dist/Kit/App/index.js +20 -22
- package/dist/Kit/App/types.d.ts +2 -3
- package/dist/Kit/DataDisplay/Avatar/index.js +14 -14
- package/dist/Kit/DataDisplay/Avatar/types.d.ts +6 -6
- package/dist/Kit/DataDisplay/Badge/index.js +8 -9
- package/dist/Kit/DataDisplay/Badge/types.d.ts +3 -4
- package/dist/Kit/DataDisplay/Collapse/index.js +33 -34
- package/dist/Kit/DataDisplay/Collapse/types.d.ts +5 -6
- package/dist/Kit/DataDisplay/Comment/Comment.d.ts +3 -0
- package/dist/Kit/DataDisplay/Comment/Thread.d.ts +3 -0
- package/dist/Kit/DataDisplay/Comment/index.d.ts +2 -0
- package/dist/Kit/DataDisplay/Comment/index.js +5 -0
- package/dist/Kit/DataDisplay/Comment/types.d.ts +10 -0
- package/dist/Kit/DataDisplay/Empty/index.js +18 -18
- package/dist/Kit/DataDisplay/Empty/types.d.ts +4 -4
- package/dist/Kit/DataDisplay/Error/index.js +20 -21
- package/dist/Kit/DataDisplay/Error/types.d.ts +3 -4
- package/dist/Kit/DataDisplay/IdCard/index.d.ts +2 -2
- package/dist/Kit/DataDisplay/IdCard/index.js +60 -25
- package/dist/Kit/DataDisplay/IdCard/types.d.ts +8 -6
- package/dist/Kit/DataDisplay/Image/index.js +6 -7
- package/dist/Kit/DataDisplay/Image/types.d.ts +3 -5
- package/dist/Kit/DataDisplay/ItemCard/index.d.ts +1 -2
- package/dist/Kit/DataDisplay/ItemCard/index.js +23 -23
- package/dist/Kit/DataDisplay/ItemCard/types.d.ts +6 -7
- package/dist/Kit/DataDisplay/ItemList/index.d.ts +1 -2
- package/dist/Kit/DataDisplay/ItemList/index.js +31 -30
- package/dist/Kit/DataDisplay/ItemList/types.d.ts +4 -5
- package/dist/Kit/DataDisplay/RedirectCard/index.d.ts +1 -2
- package/dist/Kit/DataDisplay/RedirectCard/index.js +30 -30
- package/dist/Kit/DataDisplay/RedirectCard/types.d.ts +2 -3
- package/dist/Kit/DataDisplay/Table/DragHandle.d.ts +1 -2
- package/dist/Kit/DataDisplay/Table/Table.d.ts +2 -2
- package/dist/Kit/DataDisplay/Table/getRowClassName.d.ts +1 -0
- package/dist/Kit/DataDisplay/Table/index.js +85 -88
- package/dist/Kit/DataDisplay/Table/internalComponents.d.ts +1 -1
- package/dist/Kit/DataDisplay/Table/types.d.ts +17 -18
- package/dist/Kit/DataDisplay/Tabs/Tab.d.ts +10 -0
- package/dist/Kit/DataDisplay/Tabs/index.js +111 -25
- package/dist/Kit/DataDisplay/Tabs/types.d.ts +3 -3
- package/dist/Kit/DataDisplay/Tabs/useOverflowTabs.d.ts +18 -0
- package/dist/Kit/DataDisplay/Tag/Tag.d.ts +1 -2
- package/dist/Kit/DataDisplay/Tag/index.js +71 -65
- package/dist/Kit/DataDisplay/Tag/types.d.ts +33 -24
- package/dist/Kit/DataDisplay/Tooltip/types.d.ts +2 -3
- package/dist/Kit/DataDisplay/Tour/index.js +1 -1
- package/dist/Kit/DataDisplay/Tour/types.d.ts +1 -2
- package/dist/Kit/DataDisplay/Tree/index.js +10 -11
- package/dist/Kit/DataDisplay/Tree/types.d.ts +4 -5
- package/dist/Kit/DataDisplay/types.d.ts +1 -2
- package/dist/Kit/DataEntry/AutoComplete/index.d.ts +2 -3
- package/dist/Kit/DataEntry/AutoComplete/index.js +21 -21
- package/dist/Kit/DataEntry/AutoComplete/types.d.ts +3 -4
- package/dist/Kit/DataEntry/Checkbox/Checkbox.d.ts +1 -2
- package/dist/Kit/DataEntry/Checkbox/Group.d.ts +2 -2
- package/dist/Kit/DataEntry/Checkbox/index.js +44 -45
- package/dist/Kit/DataEntry/Checkbox/types.d.ts +5 -6
- package/dist/Kit/DataEntry/ColorPicker/index.d.ts +1 -2
- package/dist/Kit/DataEntry/ColorPicker/index.js +69 -63
- package/dist/Kit/DataEntry/ColorPicker/types.d.ts +8 -6
- package/dist/Kit/DataEntry/DatePicker/DatePicker.d.ts +1 -2
- package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +1 -13
- package/dist/Kit/DataEntry/DatePicker/index.js +29 -27
- package/dist/Kit/DataEntry/DatePicker/types.d.ts +7 -7
- package/dist/Kit/DataEntry/Filter/index.d.ts +1 -2
- package/dist/Kit/DataEntry/Filter/index.js +29 -19
- package/dist/Kit/DataEntry/Filter/types.d.ts +4 -3
- package/dist/Kit/DataEntry/Input/Input.d.ts +1 -2
- package/dist/Kit/DataEntry/Input/Password.d.ts +1 -2
- package/dist/Kit/DataEntry/Input/TextArea.d.ts +1 -2
- package/dist/Kit/DataEntry/Input/index.d.ts +1 -1
- package/dist/Kit/DataEntry/Input/index.js +36 -31
- package/dist/Kit/DataEntry/Input/types.d.ts +8 -6
- package/dist/Kit/DataEntry/InputNumber/index.d.ts +1 -2
- package/dist/Kit/DataEntry/InputNumber/index.js +19 -19
- package/dist/Kit/DataEntry/InputNumber/types.d.ts +5 -5
- package/dist/Kit/DataEntry/InputWrapper/InputWrapper.d.ts +1 -2
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/InputWrapper/types.d.ts +2 -3
- package/dist/Kit/DataEntry/Radio/Group.d.ts +1 -2
- package/dist/Kit/DataEntry/Radio/Radio.d.ts +1 -2
- package/dist/Kit/DataEntry/Radio/context.d.ts +3 -4
- package/dist/Kit/DataEntry/Radio/index.d.ts +4 -4
- package/dist/Kit/DataEntry/Radio/index.js +20 -21
- package/dist/Kit/DataEntry/Radio/types.d.ts +4 -6
- package/dist/Kit/DataEntry/Rate/index.d.ts +2 -3
- package/dist/Kit/DataEntry/Rate/index.js +5 -6
- package/dist/Kit/DataEntry/Rate/types.d.ts +4 -5
- package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/index.js +5 -6
- package/dist/Kit/DataEntry/RichText/EditorContentCharacterCount/types.d.ts +2 -3
- package/dist/Kit/DataEntry/RichText/Mention/MentionList.d.ts +5 -0
- package/dist/Kit/DataEntry/RichText/Mention/renderSuggestion.d.ts +7 -0
- package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +20 -21
- package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/types.d.ts +2 -3
- package/dist/Kit/DataEntry/RichText/MenuBar/FontStylesButtons/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/FontStylesButtons/types.d.ts +1 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/IndentListButtons/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/IndentListButtons/types.d.ts +1 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/getLinkMarkAtCursor.d.ts +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +18 -19
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/types.d.ts +1 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/ListButtons/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/ListButtons/types.d.ts +1 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/types.d.ts +1 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/ShowMoreButton.d.ts +3 -0
- package/dist/Kit/DataEntry/RichText/MenuBar/TextAlignButtons/index.js +2 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/TextAlignButtons/types.d.ts +1 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/UndoRedoButtons/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/UndoRedoButtons/types.d.ts +1 -2
- package/dist/Kit/DataEntry/RichText/MenuBar/getButtonActiveClass.d.ts +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/index.js +23 -38
- package/dist/Kit/DataEntry/RichText/MenuBar/types.d.ts +2 -6
- package/dist/Kit/DataEntry/RichText/index.d.ts +2 -3
- package/dist/Kit/DataEntry/RichText/index.js +114 -56
- package/dist/Kit/DataEntry/RichText/types.d.ts +10 -5
- package/dist/Kit/DataEntry/SearchInput/index.d.ts +2 -0
- package/dist/Kit/DataEntry/SearchInput/index.js +17 -0
- package/dist/Kit/DataEntry/SearchInput/types.d.ts +4 -0
- package/dist/Kit/DataEntry/Select/index.d.ts +2 -3
- package/dist/Kit/DataEntry/Select/index.js +106 -107
- package/dist/Kit/DataEntry/Select/renders.d.ts +2 -2
- package/dist/Kit/DataEntry/Select/types.d.ts +8 -7
- package/dist/Kit/DataEntry/Select/useIcons.d.ts +4 -5
- package/dist/Kit/DataEntry/Slider/index.d.ts +2 -3
- package/dist/Kit/DataEntry/Slider/index.js +9 -10
- package/dist/Kit/DataEntry/Slider/types.d.ts +3 -4
- package/dist/Kit/DataEntry/Switch/index.d.ts +1 -2
- package/dist/Kit/DataEntry/Switch/index.js +5 -6
- package/dist/Kit/DataEntry/Switch/types.d.ts +2 -3
- package/dist/Kit/DataEntry/TreeSelect/index.d.ts +3 -0
- package/dist/Kit/DataEntry/TreeSelect/index.js +85 -0
- package/dist/Kit/DataEntry/TreeSelect/renders.d.ts +7 -0
- package/dist/Kit/DataEntry/TreeSelect/types.d.ts +30 -0
- package/dist/Kit/DataEntry/TreeSelect/useIcons.d.ts +9 -0
- package/dist/Kit/DataEntry/Upload/Upload.d.ts +1 -2
- package/dist/Kit/DataEntry/Upload/index.js +30 -31
- package/dist/Kit/DataEntry/Upload/types.d.ts +5 -6
- package/dist/Kit/Feedback/Alert/index.js +8 -9
- package/dist/Kit/Feedback/Alert/types.d.ts +4 -5
- package/dist/Kit/Feedback/Loader/index.js +9 -10
- package/dist/Kit/Feedback/Modal/index.d.ts +1 -1
- package/dist/Kit/Feedback/Modal/index.js +101 -97
- package/dist/Kit/Feedback/Modal/types.d.ts +3 -4
- package/dist/Kit/Feedback/Notification/Notification.d.ts +4 -0
- package/dist/Kit/Feedback/Notification/index.d.ts +2 -2
- package/dist/Kit/Feedback/Notification/index.js +82 -3
- package/dist/Kit/Feedback/Notification/style.d.ts +4 -0
- package/dist/Kit/Feedback/Notification/types.d.ts +30 -22
- package/dist/Kit/Feedback/Progress/index.js +18 -19
- package/dist/Kit/Feedback/Progress/types.d.ts +2 -3
- package/dist/Kit/Feedback/Skeleton/KitAvatarSkeleton.d.ts +1 -1
- package/dist/Kit/Feedback/Skeleton/KitCustomSkeleton.d.ts +1 -1
- package/dist/Kit/Feedback/Skeleton/KitInputSkeleton.d.ts +1 -1
- package/dist/Kit/Feedback/Skeleton/KitItemCard.d.ts +1 -1
- package/dist/Kit/Feedback/Skeleton/KitItemListSkeleton.d.ts +1 -1
- package/dist/Kit/Feedback/Skeleton/index.js +3 -4
- package/dist/Kit/Feedback/Skeleton/types.d.ts +1 -2
- package/dist/Kit/Feedback/SnackBar/SnackBarProvider.d.ts +3 -1
- package/dist/Kit/Feedback/SnackBar/index.d.ts +4 -3
- package/dist/Kit/Feedback/SnackBar/index.js +24 -24
- package/dist/Kit/Feedback/SnackBar/snack-bar-function.d.ts +2 -2
- package/dist/Kit/Feedback/SnackBar/types.d.ts +7 -4
- package/dist/Kit/General/Button/Button.d.ts +1 -1
- package/dist/Kit/General/Button/SplitButton.d.ts +1 -1
- package/dist/Kit/General/Button/index.d.ts +1 -1
- package/dist/Kit/General/Button/index.js +57 -58
- package/dist/Kit/General/Button/types.d.ts +5 -6
- package/dist/Kit/General/DynamicActions/index.js +2 -2
- package/dist/Kit/General/DynamicActions/types.d.ts +3 -4
- package/dist/Kit/General/Icon/index.js +5 -6
- package/dist/Kit/General/Icon/types.d.ts +4 -5
- package/dist/Kit/General/Typography/AdvancedLink.d.ts +1 -2
- package/dist/Kit/General/Typography/AdvancedParagraph.d.ts +1 -2
- package/dist/Kit/General/Typography/AdvancedText.d.ts +1 -2
- package/dist/Kit/General/Typography/AdvancedTitle.d.ts +1 -1
- package/dist/Kit/General/Typography/Link.d.ts +2 -2
- package/dist/Kit/General/Typography/Paragraph.d.ts +2 -2
- package/dist/Kit/General/Typography/Text.d.ts +2 -2
- package/dist/Kit/General/Typography/Title.d.ts +2 -2
- package/dist/Kit/General/Typography/index.js +65 -64
- package/dist/Kit/General/Typography/types.d.ts +3 -5
- package/dist/Kit/Layout/Divider/index.js +10 -11
- package/dist/Kit/Layout/Divider/types.d.ts +2 -3
- package/dist/Kit/Layout/Grid/types.d.ts +2 -3
- package/dist/Kit/Layout/PageLayout/index.d.ts +1 -1
- package/dist/Kit/Layout/PageLayout/index.js +5 -6
- package/dist/Kit/Layout/PageLayout/types.d.ts +2 -3
- package/dist/Kit/Layout/Section/index.d.ts +1 -2
- package/dist/Kit/Layout/Section/index.js +10 -12
- package/dist/Kit/Layout/Section/types.d.ts +2 -3
- package/dist/Kit/Layout/Space/index.d.ts +1 -1
- package/dist/Kit/Layout/Space/index.js +1 -1
- package/dist/Kit/Layout/Space/types.d.ts +4 -5
- package/dist/Kit/Navigation/Breadcrumb/index.js +8 -9
- package/dist/Kit/Navigation/Breadcrumb/types.d.ts +4 -5
- package/dist/Kit/Navigation/DropDown/index.js +45 -31
- package/dist/Kit/Navigation/DropDown/types.d.ts +2 -3
- package/dist/Kit/Navigation/Header/index.d.ts +2 -1
- package/dist/Kit/Navigation/Header/index.js +49 -48
- package/dist/Kit/Navigation/Header/types.d.ts +7 -7
- package/dist/Kit/Navigation/PageHeader/index.js +8 -9
- package/dist/Kit/Navigation/PageHeader/types.d.ts +3 -4
- package/dist/Kit/Navigation/Pagination/index.d.ts +0 -1
- package/dist/Kit/Navigation/Pagination/index.js +8 -9
- package/dist/Kit/Navigation/Pagination/types.d.ts +2 -3
- package/dist/Kit/Navigation/SideMenu/index.d.ts +1 -1
- package/dist/Kit/Navigation/SideMenu/index.js +39 -40
- package/dist/Kit/Navigation/SideMenu/types.d.ts +3 -4
- package/dist/Kit/Navigation/SidePanel/SidePanel.d.ts +2 -3
- package/dist/Kit/Navigation/SidePanel/SidePanelContent.d.ts +4 -0
- package/dist/Kit/Navigation/SidePanel/SidePanelHeader.d.ts +4 -0
- package/dist/Kit/Navigation/SidePanel/index.d.ts +3 -1
- package/dist/Kit/Navigation/SidePanel/index.js +76 -57
- package/dist/Kit/Navigation/SidePanel/types.d.ts +17 -9
- package/dist/Kit/Navigation/Steps/index.js +2 -3
- package/dist/Kit/Navigation/Steps/types.d.ts +2 -3
- package/dist/Kit/index.d.ts +7 -1
- package/dist/Kit/index.js +184 -176
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/InputWrapper.css +1 -1
- package/dist/assets/Thread.css +1 -0
- package/dist/assets/empty/empty-no-comment.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index50.css +1 -1
- package/dist/assets/index51.css +1 -0
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/logo/aristid.d.ts +1 -0
- package/dist/assets/styles.css +1 -0
- package/dist/assets/styles2.css +1 -0
- package/dist/assets/useGetPopupContainer.css +1 -0
- package/dist/chunks/Avatar.B2Q0k3WU.js +46 -0
- package/dist/chunks/InputWrapper.D7QArlvo.js +25 -0
- package/dist/chunks/SnackBarProvider.D44OffUd.js +23 -0
- package/dist/chunks/Thread.Cb7BFNKI.js +25 -0
- package/dist/chunks/constants.CctH0M4n.js +6 -0
- package/dist/chunks/{constants.15jUQk8h.js → styles.module.BiErj37W.js} +3 -5
- package/dist/chunks/styles.module.wk7xi4kS.js +6 -0
- package/dist/chunks/useGetPopupContainer.bCZKSUsz.js +17 -0
- package/dist/chunks/{useKitLocale.96CdK3og.js → useKitLocale.C5F-tmnC.js} +3 -3
- package/dist/chunks/{useKitTheme.KSAU-Pdv.js → useKitTheme.BdeSOGoj.js} +3 -3
- package/dist/index.es.js +188 -180
- package/dist/index.umd.js +4 -4
- package/dist/theme/aristid/components/DataDisplay/Avatar/index.js +1 -1
- package/dist/theme/aristid/components/DataDisplay/Badge/index.js +1 -1
- package/dist/theme/aristid/components/DataDisplay/Collapse/index.js +1 -1
- package/dist/theme/aristid/components/DataDisplay/Image/index.js +1 -1
- package/dist/theme/aristid/components/DataDisplay/ItemList/index.js +1 -1
- package/dist/theme/aristid/components/DataDisplay/Tabs/index.js +1 -1
- package/dist/theme/aristid/components/DataDisplay/Tag/index.js +1 -1
- package/dist/theme/aristid/components/DataDisplay/Tooltip/index.js +1 -1
- package/dist/theme/aristid/components/DataDisplay/Tree/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/Checkbox/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/ColorPicker/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/DatePicker/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/Filter/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/Input/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/InputNumber/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/InputWrapper/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/Radio/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/Rate/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/Select/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/Slider/index.js +1 -1
- package/dist/theme/aristid/components/DataEntry/Switch/index.js +1 -1
- package/dist/theme/aristid/components/Feedback/Alert/index.js +1 -1
- package/dist/theme/aristid/components/Feedback/Modal/index.js +3 -4
- package/dist/theme/aristid/components/Feedback/Notification/index.js +5 -3
- package/dist/theme/aristid/components/Feedback/SnackBar/index.js +1 -1
- package/dist/theme/aristid/components/General/Icon/index.js +1 -1
- package/dist/theme/aristid/components/General/Typography/index.js +1 -1
- package/dist/theme/aristid/components/Layout/Divider/index.js +1 -1
- package/dist/theme/aristid/components/Navigation/Breadcrumb/index.js +1 -1
- package/dist/theme/aristid/components/Navigation/DropDown/index.js +1 -1
- package/dist/theme/aristid/components/Navigation/Header/index.js +1 -1
- package/dist/theme/aristid/components/Navigation/Pagination/index.js +1 -1
- package/dist/theme/aristid/components/Navigation/Steps/index.js +1 -1
- package/dist/theme/aristid/general/height/index.d.ts +3 -0
- package/dist/theme/aristid/general/height/index.js +13 -0
- package/dist/theme/aristid/general/index.js +4 -2
- package/dist/theme/types/components/Feedback/Modal/index.d.ts +0 -1
- package/dist/theme/types/components/Feedback/Notification/index.d.ts +2 -0
- package/dist/theme/types/components/Navigation/SidePanel/index.d.ts +6 -1
- package/dist/theme/types/general/height/index.d.ts +11 -0
- package/dist/theme/types/index.d.ts +46 -45
- package/dist/theme/useKitTheme.d.ts +1 -2
- package/dist/translation/en-US/components/DataDisplay/Tabs/index.d.ts +2 -0
- package/dist/translation/en-US/components/DataDisplay/Tabs/index.js +6 -0
- package/dist/translation/en-US/general/index.js +2 -1
- package/dist/translation/fr-FR/components/DataDisplay/Tabs/index.d.ts +2 -0
- package/dist/translation/fr-FR/components/DataDisplay/Tabs/index.js +6 -0
- package/dist/translation/fr-FR/general/index.js +2 -1
- package/dist/translation/types/components/DataDisplay/Tabs/index.d.ts +3 -0
- package/dist/translation/types/general/index.d.ts +1 -0
- package/dist/translation/types/index.d.ts +14 -13
- package/dist/translation/useKitLocale.d.ts +1 -2
- package/dist/translation/utils/index.d.ts +1 -1
- package/dist/translation/utils/index.js +1 -1
- package/dist/types.d.ts +1 -2
- package/dist/utils/constants.d.ts +3 -1
- package/dist/utils/functions/colors.d.ts +2 -0
- package/dist/utils/functions/index.d.ts +1 -0
- package/dist/utils/functions/index.js +98 -57
- package/dist/utils/functions/types.d.ts +1 -2
- package/dist/utils/hooks/useGetPopupContainer.d.ts +6 -0
- package/package.json +154 -164
- package/dist/Kit/DataEntry/RichText/MenuBar/miniLayout.d.ts +0 -3
- package/dist/Kit/Feedback/Notification/KitNotification.d.ts +0 -3
- package/dist/Kit/Feedback/Notification/notification-provider.d.ts +0 -6
- package/dist/Kit/Feedback/Notification/useKitNotification.d.ts +0 -1
- package/dist/assets/KitNotification.css +0 -1
- package/dist/assets/constants.css +0 -1
- package/dist/chunks/Avatar.N2w2jq_C.js +0 -30
- package/dist/chunks/InputWrapper.OorNja9G.js +0 -23
- package/dist/chunks/KitNotification.DzpYf5_j.js +0 -53
- package/dist/chunks/SnackBarProvider.T-xLQpTN.js +0 -23
- package/dist/chunks/notification-provider.9msrEKBe.js +0 -73
- /package/dist/chunks/{css-tokens-generator.q48Dpxx7.js → css-tokens-generator.BlwCHwrh.js} +0 -0
- /package/dist/chunks/{getButtonActiveClass.SjojTAbN.js → getButtonActiveClass.CdKy9gg4.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,173 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [15.0.0](https://www.npmjs.com/package/aristid-ds/v/15.0.0) (2026-01-23)
|
|
4
|
+
|
|
5
|
+
### ✨ Features
|
|
6
|
+
|
|
7
|
+
- **⚠️ Breaking change - Notification**:
|
|
8
|
+
- Update `Notification` component. We have moved from the Antd notification component to a home-made component using `react-hot-toast`. Please refer to the documentation for use. (@philippechevieux)
|
|
9
|
+
- **⚠️ Breaking change - Button**:
|
|
10
|
+
- Remove `checked` prop from segmented button (@evoiron)
|
|
11
|
+
- **⚠️ Breaking change - IdCard**:
|
|
12
|
+
- Replacing `size` options (@fatb38)
|
|
13
|
+
- removing `medium` and `large`
|
|
14
|
+
- adding `xxs-medium`, `xs-medium`, `xs-bold`, `s`, `m`, `l`, `xl`
|
|
15
|
+
- **⚠️ Breaking change - Input (Input,TextArea,Password)**:
|
|
16
|
+
- Rename `readonly` property to `readonlyLight` (@philippechevieux)
|
|
17
|
+
- Add `readonly` property whith a render similar to disabled state (@philippechevieux)
|
|
18
|
+
- **⚠️ Breaking change - DatePicker/RangePicker**:
|
|
19
|
+
- Rename `readonly` property to `readonlyLight` (@philippechevieux)
|
|
20
|
+
- Add `readonly` property whith a render similar to disabled state (@philippechevieux)
|
|
21
|
+
- Add `size` property to enable `small`, `middle` and `large` sizes (@fatb38)
|
|
22
|
+
- **⚠️ Breaking change - RichText**:
|
|
23
|
+
- Rename `readonly` property to `readonlyLight` (@philippechevieux)
|
|
24
|
+
- Add `readonly` property whith a render similar to disabled state (@philippechevieux)
|
|
25
|
+
- Remove `mini` prop (@alechapelain)
|
|
26
|
+
- Adapt component to use style attribute on component to override default width and height (@alechapelain)
|
|
27
|
+
- **⚠️ Breaking change - Select**:
|
|
28
|
+
- Rename `readonly` property to `readonlyLight` (@philippechevieux)
|
|
29
|
+
- Add `readonly` property whith a render similar to disabled state (@philippechevieux)
|
|
30
|
+
- Add `size` property to enable `small`, `middle` and `large` sizes (@fatb38)
|
|
31
|
+
- **⚠️ Breaking change - Avatar**:
|
|
32
|
+
- Replace `size` option by : `xs`, `s`, `m`, `l`, `xl` (@fatb38)
|
|
33
|
+
- **⚠️ Breaking change - Header**:
|
|
34
|
+
- Rename `profile` property to `extraRight` to display extra right content (@philippechevieux)
|
|
35
|
+
- Add `brandLogo` property to display brand logo (@evoiron)
|
|
36
|
+
- Change 'height' to 48px instead of 64px
|
|
37
|
+
- **Comment**:
|
|
38
|
+
- Add components Commment and Thread (@baloche)
|
|
39
|
+
- **SideMenu**:
|
|
40
|
+
- Change 'width' to 48px instead of 64px
|
|
41
|
+
- **AutoComplete**:
|
|
42
|
+
- Add `size` property to enable `small`, `middle` and `large` sizes (@fatb38)
|
|
43
|
+
- **ColorPicker**:
|
|
44
|
+
- Add `size` property to enable `small`, `middle` and `large` sizes (@fatb38)
|
|
45
|
+
- Add `readonly` property whith a render similar to disabled state (@philippechevieux)
|
|
46
|
+
- **InputNumber**:
|
|
47
|
+
- Add `size` property to enable `small`, `middle` and `large` sizes (@fatb38)
|
|
48
|
+
- Add `readonly` property whith a render similar to disabled state (@philippechevieux)
|
|
49
|
+
- **SearchInput**:
|
|
50
|
+
- Add component SearchInput (@baloche)
|
|
51
|
+
- **SidePanel**:
|
|
52
|
+
- Add opening and closing animations (@philippechevieux)
|
|
53
|
+
- Add `l` size (@7Remy)
|
|
54
|
+
- Add `useChildrenOnly` property to display the side panel as a container for other components or not. Also export two new components `KitSidePanelHeader` and `KitSidePanelContent` for layout purpose (@philippechevieux)
|
|
55
|
+
- Add `headerExtraButtons` property to display buttons or any components on the right side of the header next to the close button (@philippechevieux)
|
|
56
|
+
- Add `showSeparator` property to display a separator between header and content (@philippechevieux)
|
|
57
|
+
- Add `onCloseAfterAnimation` callback that triggers after the closing animation completes instead of immediately on close (@philippechevieux)
|
|
58
|
+
- Allow user to use `size` property when using `idCardProps` (@philippechevieux)
|
|
59
|
+
- Reduce internal paddings to save space (@philippechevieux)
|
|
60
|
+
- Improve alignments of `KitSidePanelHeader` (@philippechevieux)
|
|
61
|
+
- **IdCard:**
|
|
62
|
+
- Add support for ReactNode in `title` and `descriptions` props to allow custom rendering (@philippechevieux)
|
|
63
|
+
- Add support for prop `avatar` as a ReactNode as an alternative for `avatarProps` (@baloche)
|
|
64
|
+
- Add `color` for left border color (@sberthier)
|
|
65
|
+
- **Tabs:**
|
|
66
|
+
- Add `xsmall` size (@florianSimonAristid)
|
|
67
|
+
- Add `badgeOverflowCount` prop to display a badge with an overflow count (@philippechevieux)
|
|
68
|
+
- Make component responsive by displaying a dropdown with overflowed tabs (@renaudamsellem)
|
|
69
|
+
- **Tag:**
|
|
70
|
+
- Add `small` size (@florianSimonAristid)
|
|
71
|
+
- Add close icon tooltip with `closeText` prop to customize the text (@philippechevieux)
|
|
72
|
+
- **Table:**
|
|
73
|
+
- Add `expandable` props to config custom expandable content (@florianSimonAristid)
|
|
74
|
+
- Add `header` props with `wrapper`, `row` and `cell` variable in `KitTableComponents` type, same props as AntDesign (@florianSimonAristid)
|
|
75
|
+
- Add `getRowClassName` function to manage indentation in Table (@florianSimonAristid)
|
|
76
|
+
- Add `headerLineSize` property (@baloche)
|
|
77
|
+
- **All components with a DropDown:**
|
|
78
|
+
- All components using a dropdown inside a `SidePanel` component, will render the dropdown inside the `SidePanel`, to avoid issues with the `closeOnOutsideClick` property of `SidePanel` (@evoiron)
|
|
79
|
+
- **Snackbar**
|
|
80
|
+
- Allow multiple snackbar areas (@evoiron)
|
|
81
|
+
- **Button**
|
|
82
|
+
- Add size `m`and `s` to segmented button (@evoiron)
|
|
83
|
+
- **InputWrapper**:
|
|
84
|
+
- Add forwardRef support to enable ref forwarding to the wrapper element (@philippechevieux)
|
|
85
|
+
- **KitPagination:**
|
|
86
|
+
- Reduce size (@florianSimonAristid)
|
|
87
|
+
- **KitTreeSelect:**
|
|
88
|
+
- New TreeSelect component (@evoiron)
|
|
89
|
+
- **Filter:**
|
|
90
|
+
- Add `showSingleValue` to show value, if there is only 1 value selected (@florianSimonAristid)
|
|
91
|
+
- Add `readonly` prop to activate readonly state (@renaudamsellem)
|
|
92
|
+
- **Button:**
|
|
93
|
+
- Reduce padding of link button (@philippechevieux)
|
|
94
|
+
- Extend active state to `primary`, `secondary`, `tertiary` in addition to `segmented` type (@philippechevieux)
|
|
95
|
+
- **SidePanel:**
|
|
96
|
+
- Display a border left to the side panel when it is not floating (@philippechevieux)
|
|
97
|
+
- Display a shadow when the side panel is floating (@philippechevieux)
|
|
98
|
+
- **Breadcrumb:**
|
|
99
|
+
- Fix line height to 1 (@philippechevieux)
|
|
100
|
+
- **Modal:**
|
|
101
|
+
- Change default size of buttons to `m` (@philippechevieux)
|
|
102
|
+
- Add tooltip hover on close button (@philippechevieux)
|
|
103
|
+
- Add border bottom to modal header in fullscreen mode (@philippechevieux)
|
|
104
|
+
- **RichText**:
|
|
105
|
+
- Add Mentions support (@baloche)
|
|
106
|
+
- Add showMenubar prop option to choose the menubar visibility, either on `focus` or `always` (@alechapelain)
|
|
107
|
+
- Improve menu display behaviour on resize (@baloche)
|
|
108
|
+
- **Empty**:
|
|
109
|
+
- Add `no comment` image to the options (@alechapelain)
|
|
110
|
+
- **Collapse, ItemCard, RedirectCard**:
|
|
111
|
+
- Change hover border width to 2px and focus 3px (@Earnox)
|
|
112
|
+
- **Input / Select / DatePicker**:
|
|
113
|
+
- Update paddings, gaps and icon sizes for `small`, `middle` and `large` sizes to match new design specs. (@earnox)
|
|
114
|
+
|
|
115
|
+
### 🐛 Bug Fixes
|
|
116
|
+
|
|
117
|
+
- **Progress:**
|
|
118
|
+
- Fix height of progress line trail to auto (@philippechevieux)
|
|
119
|
+
- **Modal:**
|
|
120
|
+
- Fix double execution of close function when clicking the close button due to duplicate onClick handlers on button and icon (@philippechevieux)
|
|
121
|
+
- Fix event propagation on close Modal (@evoiron)
|
|
122
|
+
- Fix title display. If `title` props is a ReactNode, it's now not encapsulated in a `KitTypography` Element (@evoiron)
|
|
123
|
+
- Fix padding of modal header, content and footer (@philippechevieux)
|
|
124
|
+
- Fix horizontal scroll issue when content is too wide (@philippechevieux)
|
|
125
|
+
- **DropDown:**
|
|
126
|
+
- Clicking outside the `DropDown` now closes it even when inside an iframe (@philippechevieux)
|
|
127
|
+
- Keep the `DropDown` open when selecting items (@philippechevieux)
|
|
128
|
+
- Fix double toggle issue when clicking the trigger after closing via blur (@philippechevieux)
|
|
129
|
+
- **Upload:**
|
|
130
|
+
- Fix upload dragger height unexpectedly growing in some cases (@evoiron)
|
|
131
|
+
- **SidePanel**:
|
|
132
|
+
- Export `KitSidePanelHeader` and `KitSidePanelContent` components from the main package entry point (@philippechevieux)
|
|
133
|
+
- Fix CSS structure by extracting nested header and content styles into separate classes for proper component isolation (@philippechevieux)
|
|
134
|
+
- **TagGroup:**
|
|
135
|
+
- Fix event Propagation on click to sidplay hidden tags (@evoiron)
|
|
136
|
+
- **ColorPicker:**
|
|
137
|
+
- Fix clear button displaying when component is disabled or readonly (@philippechevieux)
|
|
138
|
+
- **Breadcrumb:**
|
|
139
|
+
- Fix `KitBreadcrumb` css is broken when displayed a `KitTypography` (@evoiron)
|
|
140
|
+
- Fix `KitBreadcrumb` css is broken when displayed a `KitModal` header (@evoiron)
|
|
141
|
+
- **Table**:
|
|
142
|
+
- Fix header and row borders issue when using `KitTable` with only one column (@philippechevieux)
|
|
143
|
+
- Update title example (@earnox)
|
|
144
|
+
- **Tabs:**
|
|
145
|
+
- Fix badge count issue when using `xsmall` size (@philippechevieux)
|
|
146
|
+
- **Filter:**
|
|
147
|
+
- Cursor should be `not-allowed` if filter has props disabled and expandable (@renaudamsellem)
|
|
148
|
+
- Added key to avoid wrong dropdown positioning due to possible content shifting when the dropdown is open (@alechapelain)
|
|
149
|
+
- **Radio:**
|
|
150
|
+
- Fix `danger` state styles (@alechapelain)
|
|
151
|
+
- **Checkbox:**
|
|
152
|
+
- Fix `danger` state styles (@alechapelain)
|
|
153
|
+
- **Tree:**
|
|
154
|
+
- Sets the tree node pseudo-element height to zero to remove unintended vertical spacing. (@philippechevieux)
|
|
155
|
+
|
|
156
|
+
### 📚 Documentation
|
|
157
|
+
|
|
158
|
+
- **Table**:
|
|
159
|
+
- Add `onRow` usage (@philippechevieux)
|
|
160
|
+
- **Filter**:
|
|
161
|
+
- Update `With custom Action` exemple implementation (@philippechevieux)
|
|
162
|
+
|
|
3
163
|
## [14.0.0](https://www.npmjs.com/package/aristid-ds/v/14.0.0) (2025-05-20)
|
|
4
164
|
|
|
5
165
|
### ✨ Features
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- `Text`, `Link`, `Title` and `Paragraph`
|
|
9
|
-
-
|
|
166
|
+
|
|
167
|
+
- **Typography**:
|
|
168
|
+
- Original `Text`, `Link`, `Title` and `Paragraph` have been renamed to `AdvancedText`, `AdvancedLink`, `AdvancedTitle` and `AdvancedParagraph`. (@evoiron)
|
|
169
|
+
- `Text`, `Link`, `Title` and `Paragraph` components are now lightweight versions of original ones providing only basic features. (@evoiron)
|
|
170
|
+
- Added `withTooltip` prop for non Advanced versions to add a tooltip which is now not displayed by deefault when content is ellipsed. (@evoiron)
|
|
10
171
|
- **IdCard**:
|
|
11
172
|
- Remove use of `Typography.Text` component (@evoiron)
|
|
12
173
|
- Add `disableTooltip` property to disable tooltip on title and description (@evoiron)
|
|
@@ -27,83 +188,10 @@
|
|
|
27
188
|
- **SidePanel**:
|
|
28
189
|
- Add opening and closing animations (@philippechevieux)
|
|
29
190
|
|
|
30
|
-
- Add a pre-commit hook. Now, `eslint` and `tscheck` are run before each commit (@evoiron)
|
|
31
|
-
|
|
32
|
-
### 📦 Upgrade
|
|
33
|
-
|
|
34
|
-
> **⚠️ Breaking change:** Upgrade AntDesign version to 5.22.2 (@evoiron, @7Remy, @philippechevieux, @P0ppoff)
|
|
35
|
-
|
|
36
|
-
The following points are the impact of this version upgrade:
|
|
37
|
-
|
|
38
|
-
- **Avatar**:
|
|
39
|
-
- Add `max` prop to set maximum display related configurations. The following props are now deprecated: (@philippechevieux)
|
|
40
|
-
- `maxCount`
|
|
41
|
-
- `maxStyle`
|
|
42
|
-
- `maxPopoverPlacement`
|
|
43
|
-
- `maxPopoverTrigger`
|
|
44
|
-
- **Table**:
|
|
45
|
-
- Add `onScroll` prop that will be triggered when table body is scrolled (@philippechevieux)
|
|
46
|
-
- Add `showSorterTooltip` prop to manage sorting tooltip (@philippechevieux)
|
|
47
|
-
- Add `minWidth` prop to set column min width (@philippechevieux)
|
|
48
|
-
- **Tree**:
|
|
49
|
-
- Add `switcherLoadingIcon` prop to customize loading icons for tree nodes (@philippechevieux)
|
|
50
|
-
- **Pagination**:
|
|
51
|
-
- Add `showSizeChanger` prop to show or not the pages selector (@7Remy)
|
|
52
|
-
- Disallow `simple` and `align` props (@7Remy)
|
|
53
|
-
- **Progress**:
|
|
54
|
-
- Add `percentPosition` prop to decide where the percentage is (@7Remy)
|
|
55
|
-
- **Typography**:
|
|
56
|
-
- `expandable` prop has new possible value `collapsible`, in addition to exisiting booleans (@7Remy)
|
|
57
|
-
- **Input**:
|
|
58
|
-
- Add `onClear` prop that will be triggered when the clear button is clicked (@evoiron)
|
|
59
|
-
- **InputNumber**:
|
|
60
|
-
- `focus` method on ref now accepts a `cursor` parameter that controls the cursor behavior on focus. See doc for details (@evoiron)
|
|
61
|
-
- `nativeElement` is now exposed by ref to get access to the dom Element (@evoiron)
|
|
62
|
-
- **Slider**:
|
|
63
|
-
- Add `editable` prop on the `range` props of `KitSlider` (@evoiron)
|
|
64
|
-
- Add `minCount` prop on the `range` props of `KitSlider` (@evoiron)
|
|
65
|
-
- Add `maxCount` prop on the `range` props of `KitSlider` (@evoiron)
|
|
66
|
-
- **Upload**:
|
|
67
|
-
- Add `extra` option to `showUploadList` prop (@evoiron)
|
|
68
|
-
- Options `showPreview`, `showRemoveIcon` and `showDownloadIcon` of `showUploadList` prop now accept a function (@evoiron)
|
|
69
|
-
- **Checkbox**:
|
|
70
|
-
- Add focus event listeners `onFocus` and `onBlur` props with documentation (@P0ppoff)
|
|
71
|
-
- Update documentation to avoid conflict in API section between `<Checkbox />` and `<Checkbox.Group />` (@P0ppoff)
|
|
72
|
-
- **ColorPicker**
|
|
73
|
-
- Disallow `mode` prop from upgrade (@P0ppoff)
|
|
74
|
-
- Add `disabledFormat` prop (@P0ppoff)
|
|
75
|
-
- Add method to convert CSS to string: `toCssString` (@P0ppoff)
|
|
76
|
-
- **DatePicker**
|
|
77
|
-
- Rework `prefix`/`suffixIcon` icon props + new example (Christmas theme) (@P0ppoff)
|
|
78
|
-
- **Select**
|
|
79
|
-
- Fix alignment for multiple values (@P0ppoff)
|
|
80
|
-
- Fix `oneLineTags` message (@P0ppoff)
|
|
81
|
-
- Allow to customize `prefix` and `suffixIcon` icons (@P0ppoff)
|
|
82
|
-
- Add `filterSort` prop to replace sort on array of selectable values (@P0ppoff)
|
|
83
|
-
|
|
84
|
-
### ✨ Features
|
|
85
|
-
|
|
86
|
-
- **Snackbar**:
|
|
87
|
-
- Add `snackbarId` property to allow to update a snackbar (@evoiron)
|
|
88
|
-
- **Button**:
|
|
89
|
-
- Add `action` type button (@evoiron)
|
|
90
|
-
- **⚠️ Breaking change - Tree**:
|
|
91
|
-
- Remove `showLine` and `switcherIcon` properties (@philippechevieux)
|
|
92
|
-
- Update component render (@philippechevieux)
|
|
93
|
-
- Wrap switcher icon to add `aria-label` to improve accessibility (@philippechevieux)
|
|
94
|
-
- **⚠️ Breaking change - Progress**:
|
|
95
|
-
- Complete rewriting of the `Progress` component without Ant (@philippechevieux)
|
|
96
|
-
- Remove all Ant props (@philippechevieux)
|
|
97
|
-
- `circle` and `dashboard` type are no longer available (@philippechevieux)
|
|
98
|
-
- **Tabs**:
|
|
99
|
-
- Add controlled state to handle navigation within tabs (@renaudamsellem)
|
|
100
|
-
- **SidePanel**:
|
|
101
|
-
- Add `headerExtra` prop to display extra content above header title (@philippechevieux)
|
|
102
|
-
|
|
103
191
|
### 🐛 Bug Fixes
|
|
104
192
|
|
|
105
193
|
- **Modal:**
|
|
106
|
-
-
|
|
194
|
+
- KitModal.setAppElement was defined in typescript but not implemented (@evoiron)
|
|
107
195
|
- **Tag:**
|
|
108
196
|
- Hide `closeIcon` for tags in a group if handleCloseTag is not provided (@philippechevieux)
|
|
109
197
|
- Remove tooltip for other tags in TagGroup (@NicoSourimant)
|
package/README.md
CHANGED
|
@@ -122,6 +122,15 @@ import {KitButton, Kitcheckbox} from 'aristid-ds';
|
|
|
122
122
|
|
|
123
123
|
<br/>
|
|
124
124
|
|
|
125
|
+
### Usage via Docker
|
|
126
|
+
|
|
127
|
+
We provide a containerized way to develop on the project. You need to have [Docker](https://www.docker.com/) installed
|
|
128
|
+
on your computer. The docker stack allows you to add stories to storybook and change in live the changes.
|
|
129
|
+
|
|
130
|
+
```shell
|
|
131
|
+
docker compose up -d
|
|
132
|
+
```
|
|
133
|
+
|
|
125
134
|
## Development
|
|
126
135
|
|
|
127
136
|
### Code structure
|
|
@@ -236,35 +245,35 @@ export {KitTooltip};
|
|
|
236
245
|
|
|
237
246
|
Every components **style** of the design system can be **override** by tokens.
|
|
238
247
|
|
|
239
|
-
1.
|
|
240
|
-
|
|
241
|
-
|
|
248
|
+
1. **Create a token file type**
|
|
249
|
+
The `theme`folder is structure as same as the Kit folder.
|
|
250
|
+
<br/>
|
|
242
251
|
|
|
243
252
|
```sh dark
|
|
244
253
|
mkdir DESIGN-SYSTEM/src/theme/type/components/DataDisplay/tooltip
|
|
245
254
|
```
|
|
246
255
|
|
|
247
|
-
|
|
248
|
-
|
|
256
|
+
<br/>
|
|
257
|
+
In this file, you have all the tokens type definition. The tokens follow some rules you can find here [TODO]
|
|
249
258
|
|
|
250
|
-
2.
|
|
251
|
-
|
|
259
|
+
2. **Create a token file**
|
|
260
|
+
The token file is the definition of all tokens with their value. It exports a function that create the theme for the cmponent. You define this file in the `aristid` that is the default theme of the design system.
|
|
252
261
|
|
|
253
262
|
```sh dark
|
|
254
263
|
mkdir DESIGN-SYSTEM/src/theme/aristid/components/DataDisplay/tooltip
|
|
255
264
|
```
|
|
256
265
|
|
|
257
|
-
3.
|
|
258
|
-
|
|
266
|
+
3. **Global theme type**
|
|
267
|
+
After that, go to file `src/theme/type/index.tsx`to add your component type. This files contains all components that can be override.
|
|
259
268
|
|
|
260
|
-
4.
|
|
261
|
-
|
|
269
|
+
4. **Global theme**
|
|
270
|
+
You can now add your component in the `src/theme/aristid/index.tsx` and you add your component and the function that creates tokens defined in point 2.
|
|
262
271
|
|
|
263
|
-
5.
|
|
264
|
-
|
|
272
|
+
5. **Component Antd mapper**
|
|
273
|
+
As we use both `antd` and `design system` tokens, we normalize all token to follow a same model. If your component uses antd tokens, you have to add a mapper in the `src/theme/utils/tokens-mapper` folder. This folder as the same folder structure as the rest of the application.
|
|
265
274
|
|
|
266
|
-
|
|
267
|
-
|
|
275
|
+
<br/>
|
|
276
|
+
Example of component mapper :
|
|
268
277
|
|
|
269
278
|
```tsx
|
|
270
279
|
// utils/tokens-mapper/DataDisplay/Tag
|
|
@@ -277,18 +286,18 @@ Every components **style** of the design system can be **override** by tokens.
|
|
|
277
286
|
return {
|
|
278
287
|
defaultBg: colors.default.background.default,
|
|
279
288
|
defaultColor: colors.default.typography.default,
|
|
280
|
-
borderRadiusSM: border.radius
|
|
289
|
+
borderRadiusSM: border.radius,
|
|
281
290
|
};
|
|
282
291
|
};
|
|
283
292
|
```
|
|
284
293
|
|
|
285
|
-
6.
|
|
286
|
-
|
|
294
|
+
6. **Global theme mapper**
|
|
295
|
+
After that, you have to add your component mapper to the global mapper in the file `src/theme/utils/tokens-mapper/index.tsx`.
|
|
287
296
|
|
|
288
|
-
7.
|
|
289
|
-
|
|
297
|
+
7. **Theme consumption**
|
|
298
|
+
You can use the theme in your styled component by calling the hook `useKitTheme`. You can get the component theme by calling `theme.components.Tooltip`.
|
|
290
299
|
|
|
291
|
-
|
|
300
|
+
</br>
|
|
292
301
|
|
|
293
302
|
```tsx
|
|
294
303
|
const {theme} = useKitTheme();
|
|
@@ -340,10 +349,10 @@ Every components **style** of the design system can be **override** by tokens.
|
|
|
340
349
|
import BasicSource from './basic?raw';
|
|
341
350
|
|
|
342
351
|
export const Sources = {
|
|
343
|
-
Basic: BasicSource
|
|
352
|
+
Basic: BasicSource,
|
|
344
353
|
};
|
|
345
354
|
export default {
|
|
346
|
-
Basic
|
|
355
|
+
Basic,
|
|
347
356
|
};
|
|
348
357
|
```
|
|
349
358
|
|
|
@@ -409,14 +418,14 @@ Every components **style** of the design system can be **override** by tokens.
|
|
|
409
418
|
const meta: Meta<typeof KitTooltip> = {
|
|
410
419
|
component: KitTooltip,
|
|
411
420
|
title: 'Design System/DataDisplay/Tooltip',
|
|
412
|
-
argTypes: argTypes
|
|
421
|
+
argTypes: argTypes,
|
|
413
422
|
};
|
|
414
423
|
|
|
415
424
|
export default meta;
|
|
416
425
|
type Story = StoryObj<typeof KitTooltip>;
|
|
417
426
|
|
|
418
427
|
export const Api: Story = {
|
|
419
|
-
render: Template
|
|
428
|
+
render: Template,
|
|
420
429
|
};
|
|
421
430
|
```
|
|
422
431
|
|
|
@@ -459,6 +468,18 @@ A nightly version of the package is published on daily basis on branch develop (
|
|
|
459
468
|
|
|
460
469
|
## Tests
|
|
461
470
|
|
|
471
|
+
### Accessing Chromatic tests locally
|
|
472
|
+
|
|
473
|
+
To access the test files used by Chromatic locally, replace `docs` with `chromatic-test` in the Storybook URL. For example:
|
|
474
|
+
|
|
475
|
+
```
|
|
476
|
+
http://localhost:6006/?path=/docs/design-system-datadisplay-idcard--chromatic-test
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
This will allow you to view and test components in the same context that Chromatic uses for automated testing.
|
|
480
|
+
|
|
481
|
+
### Performance issue
|
|
482
|
+
|
|
462
483
|
Tests can be slow when using the Design system. It is caused by jsdom which heavily use Window.GetComputedStyle. To workaround this performance issue, you shoud update the version of jsdom used by you test library (typically jest) to 21.1.0 or even 24.0.0. To achieve this, update your projects package.json and add these lines:
|
|
463
484
|
|
|
464
485
|
if using yarn:
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -1,49 +1,47 @@
|
|
|
1
|
-
import "../../assets/index28.css";
|
|
2
1
|
import { jsx as n, jsxs as f, Fragment as h } from "react/jsx-runtime";
|
|
3
|
-
import { useState as u, useLayoutEffect as L, useRef as S, useEffect as
|
|
4
|
-
import { ConfigProvider as
|
|
5
|
-
import { K as b } from "../../chunks/SnackBarProvider.
|
|
2
|
+
import { useState as u, useLayoutEffect as L, useRef as S, useEffect as C } from "react";
|
|
3
|
+
import { ConfigProvider as P } from "antd";
|
|
4
|
+
import { K as b } from "../../chunks/SnackBarProvider.D44OffUd.js";
|
|
6
5
|
import { toCssVariables as g, uuid as y } from "../../utils/functions/index.js";
|
|
7
6
|
import a from "lodash/merge";
|
|
8
7
|
import { Style as m } from "react-style-tag";
|
|
9
|
-
import { K as E } from "../../chunks/useKitTheme.
|
|
8
|
+
import { K as E } from "../../chunks/useKitTheme.BdeSOGoj.js";
|
|
10
9
|
import { KitAristidThemeGeneral as l } from "../../theme/aristid/general/index.js";
|
|
11
10
|
import { antdThemeConfig as T } from "../../theme/utils/tokens-mapper/index.js";
|
|
12
11
|
import { frFR as d } from "../../translation/fr-FR/index.js";
|
|
13
12
|
import { enUS as $ } from "../../translation/en-US/index.js";
|
|
14
|
-
import { K as j, u as k } from "../../chunks/useKitLocale.
|
|
13
|
+
import { K as j, u as k } from "../../chunks/useKitLocale.C5F-tmnC.js";
|
|
15
14
|
import { mapKitLocaleToAntdLocale as x } from "../../translation/utils/index.js";
|
|
16
|
-
import { d as A } from "../../chunks/notification-provider.9msrEKBe.js";
|
|
17
15
|
import { KitEmpty as p } from "../DataDisplay/Empty/index.js";
|
|
18
|
-
const
|
|
16
|
+
import '../../assets/index28.css';const A = "aristid-ds-global", F = (t, e) => {
|
|
19
17
|
const o = g(t);
|
|
20
18
|
return `
|
|
21
19
|
.${e} {
|
|
22
20
|
${Object.keys(o).map((r) => `${r}: ${o[r]}`).join(";")}
|
|
23
21
|
}
|
|
24
22
|
`;
|
|
25
|
-
},
|
|
26
|
-
const [r, i] = u(null), { theme: v, appId: c, spacing: K } =
|
|
23
|
+
}, I = ({ children: t, customTheme: e, id: o }) => {
|
|
24
|
+
const [r, i] = u(null), { theme: v, appId: c, spacing: K } = R(o, e);
|
|
27
25
|
return L(() => {
|
|
28
26
|
const s = g(l, "--general");
|
|
29
27
|
i(s);
|
|
30
|
-
}, []), n(E.Provider, { value: { theme: v, appId: c, spacing: K }, children: r !== null && f(h, { children: [n(m, { id:
|
|
28
|
+
}, []), n(E.Provider, { value: { theme: v, appId: c, spacing: K }, children: r !== null && f(h, { children: [n(m, { id: A, hasSourceMap: !1, children: `
|
|
31
29
|
:root {
|
|
32
30
|
${Object.keys(r).map((s) => `${s}: ${r[s]}`).join(";")}
|
|
33
31
|
}
|
|
34
|
-
` }), e && n(m, { hasSourceMap: !1, children:
|
|
35
|
-
},
|
|
32
|
+
` }), e && n(m, { hasSourceMap: !1, children: F(a({ general: { utilities: l.utilities } }, e), c) }), t] }) });
|
|
33
|
+
}, R = (t, e) => {
|
|
36
34
|
var o;
|
|
37
|
-
const r = S(t || "ds-" + y().substring(0, 8)), i = a(l.spacing, (o = e
|
|
35
|
+
const r = S(t || "ds-" + y().substring(0, 8)), i = a(l.spacing, (o = e?.general) === null || o === void 0 ? void 0 : o.spacing);
|
|
38
36
|
return {
|
|
39
37
|
theme: l,
|
|
40
38
|
appId: r.current,
|
|
41
39
|
spacing: i
|
|
42
40
|
};
|
|
43
|
-
},
|
|
44
|
-
const e =
|
|
41
|
+
}, _ = ({ children: t }) => {
|
|
42
|
+
const e = M();
|
|
45
43
|
return n(j.Provider, { value: e, children: t });
|
|
46
|
-
},
|
|
44
|
+
}, M = () => {
|
|
47
45
|
const [t, e] = u(d);
|
|
48
46
|
return { locale: t, setKitLocale: (r) => {
|
|
49
47
|
if (r.locale === "frFR") {
|
|
@@ -54,15 +52,15 @@ const F = "aristid-ds-global", I = (t, e) => {
|
|
|
54
52
|
e(i);
|
|
55
53
|
}
|
|
56
54
|
} };
|
|
57
|
-
},
|
|
55
|
+
}, Z = ({ children: t, locale: e, customTheme: o, id: r }) => n(I, { customTheme: o, id: r, children: n(_, { children: n(O, { locale: e, children: t }) }) }), O = ({ children: t, locale: e }) => {
|
|
58
56
|
const { locale: o, setKitLocale: r } = k();
|
|
59
|
-
return
|
|
57
|
+
return C(() => {
|
|
60
58
|
e !== void 0 && r(e);
|
|
61
|
-
}, [e, r]),
|
|
59
|
+
}, [e, r]), f(P, { theme: T, locale: x(e), renderEmpty: () => {
|
|
62
60
|
var i;
|
|
63
61
|
return n(p, { className: "default-render", image: p.ASSET_LIST, description: (i = o.Empty) === null || i === void 0 ? void 0 : i.noData });
|
|
64
|
-
}, children:
|
|
62
|
+
}, children: [n(b, {}), t] });
|
|
65
63
|
};
|
|
66
64
|
export {
|
|
67
|
-
|
|
65
|
+
Z as KitApp
|
|
68
66
|
};
|
package/dist/Kit/App/types.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { s as t, K as
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { Avatar as
|
|
4
|
-
import { u as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
var
|
|
8
|
-
const { appId: l } =
|
|
9
|
-
"override-last": !!
|
|
1
|
+
import { s as t, K as u } from "../../../chunks/Avatar.B2Q0k3WU.js";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { Avatar as d } from "antd";
|
|
4
|
+
import { u as c } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
5
|
+
import K from "classnames";
|
|
6
|
+
const f = ({ className: a, disabled: s, max: o, ...v }) => {
|
|
7
|
+
var r;
|
|
8
|
+
const { appId: l } = c(), p = K(l, t["kit-avatar-group"], a, {
|
|
9
|
+
"override-last": !!o?.count,
|
|
10
10
|
[t["kit-avatar-group-disabled"]]: s
|
|
11
11
|
}), e = {
|
|
12
|
-
...
|
|
12
|
+
...o,
|
|
13
13
|
style: {
|
|
14
|
-
...
|
|
15
|
-
cursor: ((
|
|
14
|
+
...o?.style,
|
|
15
|
+
cursor: ((r = o?.popover) === null || r === void 0 ? void 0 : r.trigger) === "click" ? "pointer" : "initial"
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
return
|
|
19
|
-
},
|
|
18
|
+
return n(d.Group, { ...v, max: e, className: p });
|
|
19
|
+
}, i = u;
|
|
20
20
|
i.displayName = "KitAvatar";
|
|
21
21
|
i.Group = f;
|
|
22
22
|
export {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {AvatarProps} from 'antd';
|
|
2
|
-
import {GroupProps} from 'antd/es/avatar';
|
|
3
|
-
import {KitHTMLAttributes} from '../../../types';
|
|
4
|
-
import {FunctionComponent} from 'react';
|
|
5
|
-
import {KitColorProp} from '../../../utils/functions/types';
|
|
6
|
-
|
|
1
|
+
import { AvatarProps } from 'antd';
|
|
2
|
+
import { GroupProps } from 'antd/es/avatar';
|
|
3
|
+
import { KitHTMLAttributes } from '../../../types';
|
|
4
|
+
import { FunctionComponent } from 'react';
|
|
5
|
+
import { KitColorProp } from '../../../utils/functions/types';
|
|
7
6
|
type AntdAvatarTypesToOmit = '';
|
|
8
7
|
type AntdAvatarGroupTypesToOmit = '';
|
|
9
8
|
|
|
@@ -16,6 +15,7 @@ export interface IKitAvatar extends Omit<AvatarProps, AntdAvatarTypesToOmit>, Ki
|
|
|
16
15
|
secondaryColorInvert?: boolean;
|
|
17
16
|
imageFit?: KitImageFit;
|
|
18
17
|
disabled?: boolean;
|
|
18
|
+
size?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface IKitAvatarGroup
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import { jsx as g } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
3
2
|
import { useMemo as l } from "react";
|
|
4
3
|
import { Badge as u } from "antd";
|
|
5
|
-
import { u as d } from "../../../chunks/useKitTheme.
|
|
6
|
-
import { isValidColor as f,
|
|
4
|
+
import { u as d } from "../../../chunks/useKitTheme.BdeSOGoj.js";
|
|
5
|
+
import { isValidColor as f, getLighterColor as n, getColor as c } from "../../../utils/functions/index.js";
|
|
7
6
|
import { kitBadgeCssTokens as s } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
|
|
8
7
|
import k from "classnames";
|
|
9
|
-
const b = {
|
|
8
|
+
import '../../../assets/index.css';const b = {
|
|
10
9
|
"kit-badge": "_kit-badge_8zlso_2"
|
|
11
10
|
}, B = (t, o) => !t || !f(t) ? null : {
|
|
12
|
-
[s.colors.background.default]:
|
|
13
|
-
[s.colors.typography.default]:
|
|
11
|
+
[s.colors.background.default]: c(t, o),
|
|
12
|
+
[s.colors.typography.default]: n(t, o)
|
|
14
13
|
}, C = ({ color: t, style: o, secondaryColorInvert: e = !1, className: m, ...r }) => {
|
|
15
|
-
const { appId: i } = d(), a = l(() => ({ ...o, ...B(t, e) }), [t, e, o]),
|
|
16
|
-
return
|
|
14
|
+
const { appId: i } = d(), a = l(() => ({ ...o, ...B(t, e) }), [t, e, o]), g = k(i, b["kit-badge"], m);
|
|
15
|
+
return p(u, { style: a, ...r, className: g });
|
|
17
16
|
};
|
|
18
17
|
C.displayName = "KitBadge";
|
|
19
18
|
export {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {BadgeProps} from 'antd';
|
|
2
|
-
import {KitHTMLAttributes} from '../../../types';
|
|
3
|
-
import {KitColorProp} from '../../../utils/functions/types';
|
|
4
|
-
|
|
1
|
+
import { BadgeProps } from 'antd';
|
|
2
|
+
import { KitHTMLAttributes } from '../../../types';
|
|
3
|
+
import { KitColorProp } from '../../../utils/functions/types';
|
|
5
4
|
type AntdBadgeTypesToOmit = 'color' | 'size' | 'offset' | 'text';
|
|
6
5
|
|
|
7
6
|
export interface IKitBadge extends KitHTMLAttributes<HTMLDivElement>, Omit<BadgeProps, AntdBadgeTypesToOmit> {
|