aristid-ds 20.0.0 → 20.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +129 -0
- 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/Card/index.js +1 -1
- package/dist/Kit/DataDisplay/Carousel/index.js +1 -1
- package/dist/Kit/DataDisplay/Comment/index.js +1 -1
- 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/ItemList/index.js +1 -1
- package/dist/Kit/DataDisplay/Kanban/KanbanCard.d.ts +12 -0
- package/dist/Kit/DataDisplay/Kanban/KanbanColumn.d.ts +20 -0
- package/dist/Kit/DataDisplay/Kanban/KanbanItem.d.ts +14 -0
- package/dist/Kit/DataDisplay/Kanban/index.d.ts +8 -0
- package/dist/Kit/DataDisplay/Kanban/index.js +1 -0
- package/dist/Kit/DataDisplay/Kanban/types.d.ts +114 -0
- package/dist/Kit/DataDisplay/RedirectCard/index.js +1 -1
- package/dist/Kit/DataDisplay/Tab/TabDropdownButton.d.ts +7 -0
- package/dist/Kit/DataDisplay/Tab/index.d.ts +6 -1
- package/dist/Kit/DataDisplay/Tab/index.js +1 -1
- package/dist/Kit/DataDisplay/Tab/types.d.ts +8 -0
- package/dist/Kit/DataDisplay/Table/KitTableExpandButton.d.ts +2 -1
- package/dist/Kit/DataDisplay/Table/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/types.d.ts +12 -1
- package/dist/Kit/DataDisplay/ToolBar/index.d.ts +3 -0
- package/dist/Kit/DataDisplay/ToolBar/index.js +1 -0
- package/dist/Kit/DataDisplay/ToolBar/types.d.ts +11 -0
- package/dist/Kit/DataEntry/AutoComplete/index.js +2 -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 +1 -1
- package/dist/Kit/DataEntry/DatePicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/preset/useActiveDatePickerPreset.d.ts +1 -1
- package/dist/Kit/DataEntry/DatePicker/types.d.ts +2 -0
- package/dist/Kit/DataEntry/Filter/FilterButton.d.ts +1 -2
- package/dist/Kit/DataEntry/Filter/index.js +1 -1
- package/dist/Kit/DataEntry/Filter/types.d.ts +19 -3
- package/dist/Kit/DataEntry/Input/index.js +1 -1
- package/dist/Kit/DataEntry/Input/types.d.ts +1 -0
- package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
- package/dist/Kit/DataEntry/InputNumber/types.d.ts +1 -0
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/index.js +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.d.ts +3 -3
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js +28 -18
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/types.d.ts +4 -0
- package/dist/Kit/DataEntry/RichText/MenuBar/ShowMoreButton.d.ts +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/index.d.ts +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/types.d.ts +2 -0
- package/dist/Kit/DataEntry/RichText/index.js +1 -1
- package/dist/Kit/DataEntry/SearchInput/index.js +1 -1
- package/dist/Kit/DataEntry/Select/LoadingSuffix.d.ts +2 -0
- package/dist/Kit/DataEntry/Select/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/useIcons.d.ts +4 -2
- package/dist/Kit/DataEntry/Upload/index.js +1 -1
- package/dist/Kit/Feedback/Alert/index.js +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 +5 -1
- package/dist/Kit/General/Button/index.js +1 -1
- package/dist/Kit/General/DynamicActions/index.js +1 -1
- package/dist/Kit/General/Icon/index.js +1 -1
- package/dist/Kit/General/Typography/index.js +1 -1
- package/dist/Kit/Layout/PageLayout/index.js +1 -1
- package/dist/Kit/Navigation/DropDown/index.js +52 -38
- package/dist/Kit/Navigation/Header/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/index.js +1 -1
- 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/index.d.ts +4 -0
- package/dist/Kit/index.js +62 -60
- package/dist/assets/App.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ColorPicker.css +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/Filter.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Kanban.css +1 -0
- package/dist/assets/LoadingSuffix.css +1 -0
- package/dist/assets/MenuBar.css +1 -1
- package/dist/assets/RichText.css +1 -1
- package/dist/assets/SideMenu.css +1 -1
- package/dist/assets/Tab.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/ToolBar.css +1 -0
- package/dist/assets/icons/loader/faKitLoader.d.ts +2 -0
- package/dist/chunks/{Alert.CQaVbuFR.js → Alert.CHcxwc-7.js} +2 -2
- package/dist/chunks/{App.D0rw9orm.js → App.DEAyG_cT.js} +4 -4
- package/dist/chunks/{Avatar.BHlNyW0q.js → Avatar.CHhPAXNx.js} +1 -1
- package/dist/chunks/{Avatar.DysCcyLq.js → Avatar.CPy-hK8w.js} +1 -1
- package/dist/chunks/{Badge.B__O4nmc.js → Badge.tu17MdMt.js} +1 -1
- package/dist/chunks/Button.Cf2t8x-g.js +152 -0
- package/dist/chunks/{Card.Cq08rN_s.js → Card.BifWds4Q.js} +1 -1
- package/dist/chunks/{Carousel.BlbPUDYo.js → Carousel.D_UPa7c6.js} +2 -1
- package/dist/chunks/{Checkbox.CklNShKc.js → Checkbox.C0E-Lf9F.js} +1 -1
- package/dist/chunks/{ColorPicker.gPY0qyUV.js → ColorPicker.CXPDOjlD.js} +5 -5
- package/dist/chunks/{Comment.DmUzK6J4.js → Comment.D3uQOVRA.js} +1 -1
- package/dist/chunks/DatePicker.CZ7uUpci.js +283 -0
- package/dist/chunks/{DynamicActions.DK0mupe6.js → DynamicActions.B0RCwP59.js} +1 -1
- package/dist/chunks/{Empty.kPH-hJ9V.js → Empty.C_H88Lwp.js} +1 -1
- package/dist/chunks/{Error.CYRnZXNg.js → Error.DtFtGSNd.js} +1 -1
- package/dist/chunks/Filter.bcFfECQ2.js +91 -0
- package/dist/chunks/{FontSizeSelect.CFAIqibs.js → FontSizeSelect.BEujUTOk.js} +1 -1
- package/dist/chunks/{Header.C7xrnZDI.js → Header.CjmOOvCM.js} +3 -3
- package/dist/chunks/{Icon.DRPmn7dQ.js → Icon.DbHbt0HM.js} +1 -1
- package/dist/chunks/{IdCard.Dx6_WU3t.js → IdCard.DcdzxJ6s.js} +1 -1
- package/dist/chunks/{Input.CNLvspAE.js → Input.NJ0gxOKB.js} +201 -177
- package/dist/chunks/InputNumber.ArmZWyjD.js +59 -0
- package/dist/chunks/{InputWrapper.DXw2Vcpa.js → InputWrapper.UG5UbUiq.js} +1 -1
- package/dist/chunks/{InternalSizeChanger.CvYkvotd.js → InternalSizeChanger.4uhUYdQf.js} +2 -2
- package/dist/chunks/{ItemCard.CyPAPDy2.js → ItemCard.I_EZWDr7.js} +4 -4
- package/dist/chunks/{ItemList.Cy8wRu3i.js → ItemList.ZRUcXI2B.js} +4 -4
- package/dist/chunks/Kanban.DlRMF3Pf.js +478 -0
- package/dist/chunks/{LinkButton.CzpCbe5U.js → LinkButton.VSCUoTOf.js} +3 -3
- package/dist/chunks/LoadingSuffix.DoHzo7nz.js +13 -0
- package/dist/chunks/MenuBar.BKo3YUWL.js +86 -0
- package/dist/chunks/{Modal.Bi8z9VE0.js → Modal.BGfgvCM-.js} +5 -5
- package/dist/chunks/{Notification.BrJDgjWr.js → Notification.BvB2WQpw.js} +4 -4
- package/dist/chunks/{PageHeader.CLKSCN4a.js → PageHeader.CK5neQHJ.js} +3 -3
- package/dist/chunks/{PageLayout.D4BnVUAq.js → PageLayout.CypWl6mK.js} +2 -2
- package/dist/chunks/{Pagination.Dqci6TDr.js → Pagination.D2RZjMJN.js} +1 -1
- package/dist/chunks/{Progress.DIpbT4Go.js → Progress.DGZSgm84.js} +1 -1
- package/dist/chunks/{Radio.Cik5u8WU.js → Radio.BpOV2_Ga.js} +1 -1
- package/dist/chunks/{Rate.DOR2Ky6x.js → Rate.ClZk2tCh.js} +1 -1
- package/dist/chunks/{RedirectCard.C-uKjgcb.js → RedirectCard.NBOpek7n.js} +3 -3
- package/dist/chunks/{RichText.D98AWkBw.js → RichText.D_VsFypi.js} +73 -73
- package/dist/chunks/{SearchInput.De_qSxro.js → SearchInput.C7EnHTpX.js} +1 -1
- package/dist/chunks/Select.DAAdVERs.js +247 -0
- package/dist/chunks/{SideMenu.DQiL42Il.js → SideMenu.Cd2GjK9u.js} +9 -9
- package/dist/chunks/{SidePanel.C5nMMMse.js → SidePanel.C-fXIhny.js} +3 -3
- package/dist/chunks/SnackBar.CEjyTWJG.js +82 -0
- package/dist/chunks/Tab.BQDQSuOg.js +281 -0
- package/dist/chunks/{Table.BN-UWSUv.js → Table.DPRSm9mV.js} +63 -55
- package/dist/chunks/{Tag.gcpIeECV.js → Tag.By8jS_2F.js} +9 -9
- package/dist/chunks/ToolBar.qYFzjJ3S.js +22 -0
- package/dist/chunks/{TreeSelect.BRaAmKyc.js → TreeSelect.DD8WhA4W.js} +97 -95
- package/dist/chunks/{Typography.MRyLnlCD.js → Typography.dSdY4EZz.js} +1 -1
- package/dist/chunks/{Upload.CXHhjlnm.js → Upload.DxszpKf4.js} +5 -5
- package/dist/chunks/faKitLoader.BJKbv-bm.js +13 -0
- package/dist/chunks/{functions.Cjvxsib3.js → functions.m4ADIGGk.js} +2 -2
- package/dist/chunks/useLoadingWidthLock.CzCPeVNp.js +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +56 -54
- package/dist/index.umd.js +4 -4
- package/dist/theme/aristid/general/utilities/index.js +12 -6
- package/dist/theme/types/utilities/index.d.ts +18 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.js +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.js +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.js +1 -0
- package/dist/translation/en-US/components/DataDisplay/Kanban/index.d.ts +2 -0
- package/dist/translation/en-US/components/DataDisplay/Kanban/index.js +16 -0
- package/dist/translation/en-US/components/DataDisplay/Tab/index.js +5 -1
- package/dist/translation/en-US/index.js +34 -30
- package/dist/translation/fr-FR/components/DataDisplay/Kanban/index.d.ts +2 -0
- package/dist/translation/fr-FR/components/DataDisplay/Kanban/index.js +16 -0
- package/dist/translation/fr-FR/components/DataDisplay/Tab/index.js +5 -1
- package/dist/translation/fr-FR/index.js +34 -30
- package/dist/translation/pt-PT/components/DataDisplay/Kanban/index.d.ts +2 -0
- package/dist/translation/pt-PT/components/DataDisplay/Kanban/index.js +16 -0
- package/dist/translation/pt-PT/components/DataDisplay/Tab/index.js +5 -1
- package/dist/translation/pt-PT/index.js +34 -30
- package/dist/translation/types/components/DataDisplay/Kanban/index.d.ts +16 -0
- package/dist/translation/types/components/DataDisplay/Tab/index.d.ts +2 -0
- package/dist/translation/types/index.d.ts +2 -0
- package/dist/utils/functions/colorVariants.d.ts +18 -0
- package/dist/utils/functions/index.d.ts +1 -2
- package/dist/utils/functions/index.js +1 -1
- package/dist/utils/functions/types.d.ts +6 -0
- package/dist/utils/hooks/useLoadingWidthLock.d.ts +2 -0
- package/package.json +17 -19
- package/dist/assets/styles.css +0 -1
- package/dist/chunks/Button.mFkl13ue.js +0 -145
- package/dist/chunks/DatePicker.CtiOTI4X.js +0 -267
- package/dist/chunks/Filter.ByG4s-gy.js +0 -83
- package/dist/chunks/InputNumber.CtaH9tBG.js +0 -52
- package/dist/chunks/MenuBar.DigScTZX.js +0 -68
- package/dist/chunks/Select.S4xsr0eN.js +0 -248
- package/dist/chunks/SnackBar.CdNbNCdU.js +0 -83
- package/dist/chunks/Tab.BLLuv1ds.js +0 -188
- package/dist/chunks/styles.module.DRkuoXqe.js +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aristid-ds",
|
|
3
3
|
"description": "ARiSTiD design system",
|
|
4
|
-
"version": "20.
|
|
4
|
+
"version": "20.2.0",
|
|
5
5
|
"authors": [
|
|
6
6
|
"e.voiron-levy@aristid.com",
|
|
7
7
|
"p.chevieux@aristid.com",
|
|
@@ -50,25 +50,26 @@
|
|
|
50
50
|
"prepare": "husky"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
+
"@dnd-kit/core": "^6.3.0",
|
|
53
54
|
"@floating-ui/dom": "^1.7.6",
|
|
54
55
|
"@fortawesome/fontawesome-svg-core": "^7.3.1",
|
|
55
56
|
"@fortawesome/free-regular-svg-icons": "^7.3.1",
|
|
56
57
|
"@fortawesome/free-solid-svg-icons": "^7.3.1",
|
|
57
58
|
"@fortawesome/react-fontawesome": "^3.2.0",
|
|
58
59
|
"@rc-component/util": "^1.13.0",
|
|
59
|
-
"@tiptap/core": "3.
|
|
60
|
-
"@tiptap/extension-heading": "3.
|
|
61
|
-
"@tiptap/extension-image": "3.
|
|
62
|
-
"@tiptap/extension-link": "3.
|
|
63
|
-
"@tiptap/extension-mention": "3.
|
|
64
|
-
"@tiptap/extension-text-align": "3.
|
|
65
|
-
"@tiptap/extension-text-style": "3.
|
|
66
|
-
"@tiptap/extensions": "3.
|
|
67
|
-
"@tiptap/pm": "3.
|
|
68
|
-
"@tiptap/react": "3.
|
|
69
|
-
"@tiptap/starter-kit": "3.
|
|
70
|
-
"@tiptap/suggestion": "3.
|
|
71
|
-
"antd": "6.
|
|
60
|
+
"@tiptap/core": "3.35.0",
|
|
61
|
+
"@tiptap/extension-heading": "3.35.0",
|
|
62
|
+
"@tiptap/extension-image": "3.35.0",
|
|
63
|
+
"@tiptap/extension-link": "3.35.0",
|
|
64
|
+
"@tiptap/extension-mention": "3.35.0",
|
|
65
|
+
"@tiptap/extension-text-align": "3.35.0",
|
|
66
|
+
"@tiptap/extension-text-style": "3.35.0",
|
|
67
|
+
"@tiptap/extensions": "3.35.0",
|
|
68
|
+
"@tiptap/pm": "3.35.0",
|
|
69
|
+
"@tiptap/react": "3.35.0",
|
|
70
|
+
"@tiptap/starter-kit": "3.35.0",
|
|
71
|
+
"@tiptap/suggestion": "3.35.0",
|
|
72
|
+
"antd": "6.7.1",
|
|
72
73
|
"classnames": "^2.3.2",
|
|
73
74
|
"color-convert": "^3.1.3",
|
|
74
75
|
"dayjs": "^1.11.20",
|
|
@@ -81,11 +82,10 @@
|
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
83
84
|
"@axe-core/playwright": "^4.11.3",
|
|
84
|
-
"@biomejs/biome": "2.6.
|
|
85
|
+
"@biomejs/biome": "2.6.8",
|
|
85
86
|
"@chromatic-com/storybook": "^5.6.0",
|
|
86
87
|
"@commitlint/cli": "^21.2.2",
|
|
87
88
|
"@commitlint/config-conventional": "^21.0.1",
|
|
88
|
-
"@dnd-kit/core": "^6.3.0",
|
|
89
89
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
90
90
|
"@dnd-kit/sortable": "^10.0.0",
|
|
91
91
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -100,10 +100,9 @@
|
|
|
100
100
|
"@storybook/react": "^10.6.7",
|
|
101
101
|
"@storybook/react-vite": "^10.6.7",
|
|
102
102
|
"@testing-library/dom": "^10.4.2",
|
|
103
|
-
"@testing-library/jest-dom": "^
|
|
103
|
+
"@testing-library/jest-dom": "^8.0.0",
|
|
104
104
|
"@testing-library/react": "^16.3.3",
|
|
105
105
|
"@testing-library/user-event": "^14.6.7",
|
|
106
|
-
"@types/color-convert": "^3.0.1",
|
|
107
106
|
"@types/lodash": "^4.17.13",
|
|
108
107
|
"@types/react": "^19.2.18",
|
|
109
108
|
"@types/react-dom": "^19.2.4",
|
|
@@ -137,7 +136,6 @@
|
|
|
137
136
|
"vite": "^8.0.14",
|
|
138
137
|
"vite-plugin-dts": "^5.0.1",
|
|
139
138
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
140
|
-
"vite-plugin-turbosnap": "^1.0.3",
|
|
141
139
|
"vitest": "^5.0.2"
|
|
142
140
|
},
|
|
143
141
|
"peerDependencies": {
|
package/dist/assets/styles.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-multiple:not(.kit-select-one-line){min-height:calc(var(--components-Select-height,var(--general-height-m)) * 1px);padding-block:calc(var(--general-spacing-xxs) * 1px);height:auto!important}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-multiple:not(.kit-select-one-line).ant-select-lg{min-height:calc(var(--components-Select-height,var(--general-height-l)) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-multiple:not(.kit-select-one-line).ant-select-sm{min-height:calc(var(--components-Select-height,var(--general-height-s)) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-multiple .ant-select-content{align-self:center;row-gap:calc(var(--general-spacing-xxs) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-multiple .ant-select-content .ant-select-input{line-height:1}._kit-select_oedzc_1.ant-select.kit-select-readonly-light.ant-select-disabled{background:0 0}._kit-select_oedzc_1 .ant-select-prefix{align-items:center;display:flex}._kit-select_oedzc_1.ant-select.ant-select-compact-item:not(.ant-select-compact-last-item){margin-inline-end:calc(var(--general-spacing-none) * 1px)}._kit-select_oedzc_1.ant-select.ant-select-compact-item.ant-select-compact-first-item:not(.ant-select-compact-last-item){border-radius:calc(var(--components-Select-border-radius,var(--general-border-radius-s)) * 1px) calc(var(--general-border-radius-square) * 1px) calc(var(--general-border-radius-square) * 1px) calc(var(--components-Select-border-radius,var(--general-border-radius-s)) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless){background-color:var(--components-Select-colors-background-default,var(--general-utilities-light));border:1px solid var(--general-utilities-border);border-radius:calc(var(--components-Select-border-radius,var(--general-border-radius-s)) * 1px);width:100%;font-size:calc(var(--components-input-typography-fontSize,var(--general-typography-fontSize6)) * 1px);height:calc(var(--components-Select-height,var(--general-height-m)) * 1px);gap:calc(var(--general-spacing-xs) * 1px);transition:all .2s cubic-bezier(.645,.045,.355,1);position:relative}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless):not(.ant-select-multiple){padding:calc(var(--general-spacing-xxs) * 1px) calc(var(--general-spacing-xxs) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-prefix,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-suffix,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-clear{font-size:calc(var(--general-typography-fontSize7) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-prefix svg,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-suffix svg,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-clear svg{box-sizing:border-box;width:calc(var(--general-spacing-s) * 1px);height:calc(var(--general-spacing-s) * 1px);padding:calc((var(--general-spacing-s) - var(--general-typography-fontSize7)) / 2 * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-lg{height:calc(var(--components-Select-height,var(--general-height-l)) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-lg:not(.ant-select-multiple){padding:calc(var(--general-spacing-xs) * 1px) calc(var(--general-spacing-xs) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-lg .ant-select-content-has-value,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-lg .ant-select-placeholder{font-size:calc(var(--components-input-typography-fontSize,var(--general-typography-fontSize5)) * 1px);line-height:20px}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-sm{height:calc(var(--components-Select-height,var(--general-height-s)) * 1px);font-size:calc(var(--components-input-typography-fontSize,var(--general-typography-fontSize7)) * 1px);border-radius:calc(var(--components-Select-border-radius,var(--general-border-radius-xs)) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-sm:not(.ant-select-multiple){padding:calc(var(--general-spacing-xxs) * 1px) calc(var(--general-spacing-xxs) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-sm .ant-select-prefix,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-sm .ant-select-suffix,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-sm .ant-select-clear{font-size:calc(var(--general-spacing-xs) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-sm .ant-select-prefix svg,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-sm .ant-select-suffix svg,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-sm .ant-select-clear svg{box-sizing:content-box;width:calc(var(--general-spacing-xs) * 1px);height:calc(var(--general-spacing-xs) * 1px);padding:calc(var(--general-spacing-none) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-sm .ant-select-content-has-value,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-sm .ant-select-placeholder{line-height:16px}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-content-has-value,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-placeholder{font-size:calc(var(--components-input-typography-fontSize,var(--general-typography-fontSize6)) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless):hover:not(.ant-select-disabled):not(.ant-select-focused){border-color:var(--components-Select-colors-border-hover,var(--general-utilities-main-default))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless):hover .ant-select-suffix:not(:last-child){opacity:1}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-content{align-items:center;display:flex}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-content .ant-select-content-item{align-items:center;max-width:calc(100% - 4px);display:flex}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-content .ant-select-content-item>span,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-content .ant-select-content-item .ant-tag{align-items:center;max-width:100%;margin-inline-end:2px}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-content .ant-select-content-item.ant-select-content-item-rest .ant-select-selection-item{height:auto;margin:calc(var(--general-spacing-none) * 1px);background:0 0;padding-inline-start:calc(var(--general-spacing-none) * 1px);padding-inline-end:calc(var(--general-spacing-none) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-content .ant-select-content-item.ant-select-content-item-suffix{min-height:auto;position:static!important}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-content .ant-select-selection-item .card-avatar{line-height:initial}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-content .ant-select-selection-item .kit-icon{padding:5px}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-content-has-value,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-selection-item,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-input{font-weight:var(--components-Select-typography-fontWeight-content,var(--general-typography-regularFontWeight));color:var(--components-Select-colors-typography-content-default,var(--general-utilities-text-primary))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-single .ant-select-content-has-value.ant-select-content-has-search-value{color:#0000}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-open .ant-select-content-has-value:not(.ant-select-content-has-search-value){opacity:1}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-placeholder,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-placeholder .ant-typography{font-weight:var(--components-Select-typography-fontWeight-placeholder,var(--general-typography-regularFontWeight));color:var(--components-Select-colors-typography-placeholder-default,var(--general-utilities-neutral-dark));vertical-align:middle;font-style:italic}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .kit-select-option{align-items:center;gap:calc(var(--general-spacing-xs) * 1px);width:100%;display:inline-flex}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .kit-select-option .kit-select-option-icon{padding:calc(var(--general-spacing-xxs) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .kit-select-option .card-info{gap:calc(var(--general-spacing-none) * 1px)}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-suffix{color:var(--components-Select-colors-icon-arrow-default,var(--general-utilities-text-primary));font-size:calc(var(--general-typography-fontSize7) * 1px);order:2}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless) .ant-select-clear{top:auto;width:auto;height:auto;font-size:calc(var(--general-typography-fontSize7) * 1px);opacity:1;color:var(--components-Select-colors-icon-clear-default,var(--general-utilities-text-primary));flex:none;order:1;align-self:center;margin-top:0;transition:none;display:flex;position:static;inset-inline-end:auto;transform:none}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-disabled{background-color:var(--components-Select-colors-background-disabled,var(--general-utilities-neutral-light));color:var(--components-Select-colors-typography-content-disabled,var(--general-utilities-text-disabled));border-color:var(--components-Select-colors-border-disabled,var(--general-utilities-border));cursor:not-allowed}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-disabled .ant-select-content-has-value,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-disabled .ant-select-selection-item{color:var(--components-Select-colors-typography-content-disabled,var(--general-utilities-text-disabled))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-disabled .ant-select-placeholder,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-disabled .ant-select-placeholder .ant-typography{color:var(--components-Select-colors-typography-placeholder-disabled,var(--general-utilities-text-disabled))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-disabled .ant-select-suffix{color:var(--components-Select-colors-icon-arrow-disabled,var(--general-utilities-text-disabled))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-disabled .ant-select-clear{color:var(--components-Select-colors-icon-clear-disabled,var(--general-utilities-text-disabled))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-warning{background-color:var(--components-Select-colors-background-warning,var(--general-utilities-warning-light));color:var(--components-Select-colors-typography-content-warning,var(--general-utilities-text-warning));border-color:var(--components-Select-colors-border-warning,var(--general-utilities-warning-default))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-warning:hover:not(.ant-select-disabled):not(.ant-select-focused){border-color:var(--components-Select-colors-border-warning,var(--general-utilities-warning-default))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-warning .ant-select-content-has-value,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-warning .ant-select-selection-item{color:var(--components-Select-colors-typography-content-warning,var(--general-utilities-text-warning))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-warning .ant-select-placeholder,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-warning .ant-select-placeholder .ant-typography{color:var(--components-Select-colors-typography-placeholder-warning,var(--general-utilities-text-warning))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-warning .ant-select-suffix{color:var(--components-Select-colors-icon-arrow-warning,var(--general-utilities-text-warning));background-color:var(--components-Select-colors-background-warning,var(--general-utilities-warning-light))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-warning .ant-select-clear{color:var(--components-Select-colors-icon-clear-warning,var(--general-utilities-text-warning));background-color:var(--components-Select-colors-background-warning,var(--general-utilities-warning-light))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-warning.ant-select-focused:not(.ant-select-customize-input){box-shadow:0 0 0 3px var(--components-Select-colors-border-focus-warning,var(--general-utilities-warning-medium));border-color:#0000}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-error{background-color:var(--components-Select-colors-background-error,var(--general-utilities-error-light));color:var(--components-Select-colors-typography-content-error,var(--general-utilities-text-error));border-color:var(--components-Select-colors-border-error,var(--general-utilities-error-default))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-error:hover:not(.ant-select-disabled):not(.ant-select-focused){border-color:var(--components-Select-colors-border-error,var(--general-utilities-error-default))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-error .ant-select-content-has-value,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-error .ant-select-selection-item{color:var(--components-Select-colors-typography-content-error,var(--general-utilities-text-error))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-error .ant-select-placeholder,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-error .ant-select-placeholder .ant-typography{color:var(--components-Select-colors-typography-placeholder-error,var(--general-utilities-text-error))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-error .ant-select-suffix{color:var(--components-Select-colors-icon-arrow-error,var(--general-utilities-text-error));background-color:var(--components-Select-colors-background-error,var(--general-utilities-error-light))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-error .ant-select-clear{color:var(--components-Select-colors-icon-clear-error,var(--general-utilities-text-error));background-color:var(--components-Select-colors-background-error,var(--general-utilities-error-light))}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-status-error.ant-select-focused:not(.ant-select-customize-input){box-shadow:0 0 0 3px var(--components-Select-colors-border-focus-error,var(--general-utilities-error-medium));border-color:#0000}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-select-status-warning):not(.ant-select-status-error){box-shadow:0 0 0 3px var(--components-Select-colors-border-focus-default,var(--general-utilities-focus));border-color:#0000}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-select-status-warning):not(.ant-select-status-error) .ant-select-placeholder{color:#0000}._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).kit-select-readonly.ant-select-disabled:not(.ant-select-status-warning):not(.ant-select-status-error),._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).kit-select-readonly.ant-select-disabled:not(.ant-select-status-warning):not(.ant-select-status-error) .ant-select-content-has-value,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).kit-select-readonly.ant-select-disabled:not(.ant-select-status-warning):not(.ant-select-status-error) .ant-select-selection-item,._kit-select_oedzc_1.ant-select:not(.ant-select-customize-input):not(.ant-select-borderless).kit-select-readonly.ant-select-disabled:not(.ant-select-status-warning):not(.ant-select-status-error) .ant-select-input{color:var(--components-Select-colors-typography-content-default,var(--general-utilities-text-primary))}._kit-select_oedzc_1 .kit-select-option-badge{vertical-align:middle;display:inline-block}._kit-select_oedzc_1 .kit-select-option-badge div{width:calc(var(--components-Select-ColorBadge-width,16) * 1px);height:calc(var(--components-Select-ColorBadge-height,16) * 1px);border-radius:calc(var(--components-Select-ColorBadge-border-radius,var(--general-border-radius-xxs)) * 1px)}._kit-select_oedzc_1 .kit-select-option-label{box-sizing:border-box;text-overflow:ellipsis;align-items:center;width:100%;display:inline-flex;overflow:hidden}._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled.ant-select-single{height:20px}._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled .ant-select-suffix{display:none}._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled .ant-select-content{gap:calc(var(--general-spacing-xxs) * 1px);width:auto}._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled{padding-left:calc(var(--general-spacing-none) * 1px);cursor:default}._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled .ant-select-input{cursor:inherit}._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled .ant-select-placeholder,._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled .kit-select-option-label,._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled .ant-select-content,._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled .ant-select-selection-item{color:var(--general-utilities-text-primary);font-weight:var(--general-typography-boldFontWeight)}._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled .kit-select-option-badge{margin-right:calc(var(--general-spacing-xs) * 1px)}._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled.ant-select-status-error .ant-select-placeholder,._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled.ant-select-status-error .kit-select-option-label,._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled.ant-select-status-error .ant-select-content,._kit-select_oedzc_1.kit-select-readonly-light.ant-select-disabled.ant-select-status-error .ant-select-selection-item{color:var(--general-utilities-text-error)}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { KitTooltip as e } from "../Kit/DataDisplay/Tooltip/index.js";
|
|
2
|
-
import t from "../hooks/useSecureClick/index.js";
|
|
3
|
-
import { n } from "./useKitTheme.P5Q2DIyI.js";
|
|
4
|
-
import { KitDropDown as r } from "../Kit/Navigation/DropDown/index.js";
|
|
5
|
-
import { n as i } from "./useKitLocale.Y5XHnnYS.js";
|
|
6
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
-
import { cloneElement as s, forwardRef as c, useEffect as l, useMemo as u, useState as d } from "react";
|
|
8
|
-
import f from "classnames";
|
|
9
|
-
import { faArrowRight as p, faChevronDown as m, faCircleNotch as h, faWandMagicSparkles as g } from "@fortawesome/free-solid-svg-icons";
|
|
10
|
-
import { FontAwesomeIcon as _ } from "@fortawesome/react-fontawesome";
|
|
11
|
-
import '../assets/Button.css';// src/Kit/General/Button/styles.module.scss
|
|
12
|
-
var v = { "kit-btn": "_kit-btn_l112r_1" }, y = (e) => {
|
|
13
|
-
if (!e) return null;
|
|
14
|
-
let t = e;
|
|
15
|
-
return s(t, { className: `${t.props?.className ?? ""} kit-btn-icon` });
|
|
16
|
-
}, b = (e) => {
|
|
17
|
-
if (typeof e == "object" && e) {
|
|
18
|
-
let t = e?.delay;
|
|
19
|
-
return t = !Number.isNaN(t) && typeof t == "number" ? t : 0, {
|
|
20
|
-
loading: t <= 0,
|
|
21
|
-
delay: t
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
return {
|
|
25
|
-
loading: !!e,
|
|
26
|
-
delay: 0
|
|
27
|
-
};
|
|
28
|
-
}, x = [
|
|
29
|
-
"primary",
|
|
30
|
-
"secondary",
|
|
31
|
-
"tertiary",
|
|
32
|
-
"segmented"
|
|
33
|
-
], S = x, C = x, w = c(({ iconSize: e, dangerModal: r, active: i, href: s, target: c, icon: m, danger: x, color: w, block: T, className: E, onClick: D, disableSecureClick: O, children: k, disabled: A, AI: j = !1, size: M = "l", type: N = "secondary", htmlType: P = "button", loading: F = !1, ...I }, L) => {
|
|
34
|
-
let { appId: R } = n(), [z, B] = d(!1), V = u(() => b(F), [F]), H = j && [
|
|
35
|
-
"primary",
|
|
36
|
-
"secondary",
|
|
37
|
-
"tertiary"
|
|
38
|
-
].includes(N), U = t(D), W = H && !m ? a(_, { icon: g }) : m, G = !k && W, K = f(R, v["kit-btn"], E, {
|
|
39
|
-
[`kit-btn-${N}`]: !r && N,
|
|
40
|
-
"kit-btn-ai": H,
|
|
41
|
-
"kit-btn-secondary": r || N === "secondary",
|
|
42
|
-
"kit-btn-disabled": A,
|
|
43
|
-
"kit-btn-danger-modal": r,
|
|
44
|
-
"kit-btn-danger": x,
|
|
45
|
-
"kit-btn-block": T,
|
|
46
|
-
"kit-btn-active": i && C.includes(N),
|
|
47
|
-
[`icon-${e ?? "m"}`]: e,
|
|
48
|
-
"kit-btn-icon-only": G,
|
|
49
|
-
[`kit-btn-color-${w}`]: w,
|
|
50
|
-
[`kit-btn-size-${M}`]: !!M && (!N || S.includes(N))
|
|
51
|
-
}), q = y(W);
|
|
52
|
-
return l(() => {
|
|
53
|
-
let e = null;
|
|
54
|
-
V.delay > 0 ? e = setTimeout(() => {
|
|
55
|
-
e = null, B(!0);
|
|
56
|
-
}, V.delay) : B(V.loading);
|
|
57
|
-
function t() {
|
|
58
|
-
e &&= (clearTimeout(e), null);
|
|
59
|
-
}
|
|
60
|
-
return t;
|
|
61
|
-
}, [F, V]), o(N === "link" || N === "redirect" ? "a" : "button", {
|
|
62
|
-
onClick: O ? D : U,
|
|
63
|
-
disabled: A,
|
|
64
|
-
href: N === "link" || N === "redirect" ? s : void 0,
|
|
65
|
-
target: N === "link" || N === "redirect" ? c : void 0,
|
|
66
|
-
tabIndex: 0,
|
|
67
|
-
ref: L,
|
|
68
|
-
type: P,
|
|
69
|
-
role: N === "link" || N === "redirect" ? "link" : "button",
|
|
70
|
-
...I,
|
|
71
|
-
className: K,
|
|
72
|
-
children: [
|
|
73
|
-
z ? a(_, {
|
|
74
|
-
icon: h,
|
|
75
|
-
spin: !0,
|
|
76
|
-
className: "kit-btn-icon"
|
|
77
|
-
}) : q,
|
|
78
|
-
k,
|
|
79
|
-
N === "redirect" && a(_, {
|
|
80
|
-
icon: p,
|
|
81
|
-
className: "kit-btn-icon-redirect"
|
|
82
|
-
})
|
|
83
|
-
]
|
|
84
|
-
});
|
|
85
|
-
}), T = { "kit-btn-split": "_kit-btn-split_14lph_1" }, E = c(({ items: e, onClick: t, children: s, icon: c, className: l, id: u, style: p, open: h, block: g, splitClassName: v, getPopupContainer: y, ...b }, x) => {
|
|
86
|
-
let { appId: S } = n(), { locale: C } = i(), [E, D] = d(h), O = f(S, T["kit-btn-split"], { "kit-btn-block": g }, l), k = f("kit-btn-split-main", v?.main), A = f("kit-btn-split-split", { "kit-btn-split-open": E }, v?.split), j = (e) => {
|
|
87
|
-
h || D(e);
|
|
88
|
-
};
|
|
89
|
-
return o("div", {
|
|
90
|
-
className: O,
|
|
91
|
-
style: p,
|
|
92
|
-
id: u,
|
|
93
|
-
children: [a(w, {
|
|
94
|
-
...b,
|
|
95
|
-
className: k,
|
|
96
|
-
ref: x,
|
|
97
|
-
icon: c,
|
|
98
|
-
onClick: t,
|
|
99
|
-
children: s
|
|
100
|
-
}), a(r, {
|
|
101
|
-
trigger: ["click"],
|
|
102
|
-
menu: { items: e },
|
|
103
|
-
placement: "bottomRight",
|
|
104
|
-
open: E,
|
|
105
|
-
getPopupContainer: y,
|
|
106
|
-
onOpenChange: j,
|
|
107
|
-
children: a(w, {
|
|
108
|
-
...b,
|
|
109
|
-
className: A,
|
|
110
|
-
loading: !1,
|
|
111
|
-
"aria-label": C.Button?.more,
|
|
112
|
-
icon: a(_, { icon: m })
|
|
113
|
-
})
|
|
114
|
-
})]
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
E.displayName = "SplitButton";
|
|
118
|
-
// src/Kit/General/Button/index.tsx
|
|
119
|
-
var D = [
|
|
120
|
-
"primary",
|
|
121
|
-
"secondary",
|
|
122
|
-
"tertiary"
|
|
123
|
-
], O = c(({ items: e = [], type: t = "secondary", tooltipText: n, ...r }, i) => {
|
|
124
|
-
if (e?.length > 0) {
|
|
125
|
-
let o = D.includes(t) ? t : "secondary";
|
|
126
|
-
return k(n, a(E, {
|
|
127
|
-
...r,
|
|
128
|
-
type: o,
|
|
129
|
-
items: e,
|
|
130
|
-
ref: i
|
|
131
|
-
}));
|
|
132
|
-
}
|
|
133
|
-
return k(n, a(w, {
|
|
134
|
-
...r,
|
|
135
|
-
type: t,
|
|
136
|
-
ref: i
|
|
137
|
-
}));
|
|
138
|
-
});
|
|
139
|
-
O.displayName = "KitButton";
|
|
140
|
-
var k = (t, n) => n.props.children || !t ? n : a(e, {
|
|
141
|
-
title: t,
|
|
142
|
-
placement: "bottom",
|
|
143
|
-
children: n
|
|
144
|
-
});
|
|
145
|
-
export { O as t };
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./InputWrapper.DXw2Vcpa.js";
|
|
2
|
-
import { n as t } from "./useKitTheme.P5Q2DIyI.js";
|
|
3
|
-
import { n } from "./useKitLocale.Y5XHnnYS.js";
|
|
4
|
-
import { t as r } from "./useDeprecatedInputWrapper.CZ2-c80o.js";
|
|
5
|
-
import { t as i } from "./useGetPopupContainer.Bcn4zw7O.js";
|
|
6
|
-
import { t as a } from "./Typography.MRyLnlCD.js";
|
|
7
|
-
import { DatePicker as o } from "antd";
|
|
8
|
-
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
|
-
import { forwardRef as u, useCallback as d, useEffect as f, useMemo as p, useRef as m, useState as h } from "react";
|
|
10
|
-
import g from "classnames";
|
|
11
|
-
import { faArrowRight as _, faCalendar as v, faCheck as y, faChevronLeft as b, faChevronRight as x, faCircleXmark as S, faClock as C } from "@fortawesome/free-solid-svg-icons";
|
|
12
|
-
import { FontAwesomeIcon as w } from "@fortawesome/react-fontawesome";
|
|
13
|
-
import '../assets/DatePicker.css';// src/assets/icons/chevrons/LeftChevrons.tsx
|
|
14
|
-
var T = () => l("div", {
|
|
15
|
-
className: "double-chevron",
|
|
16
|
-
children: [c(w, {
|
|
17
|
-
className: "chevron-icon",
|
|
18
|
-
icon: b
|
|
19
|
-
}), c(w, {
|
|
20
|
-
className: "chevron-icon double-chevron-left-icon",
|
|
21
|
-
icon: b
|
|
22
|
-
})]
|
|
23
|
-
}), E = () => l("div", {
|
|
24
|
-
className: "double-chevron",
|
|
25
|
-
children: [c(w, {
|
|
26
|
-
className: "chevron-icon double-chevron-right-icon",
|
|
27
|
-
icon: x
|
|
28
|
-
}), c(w, {
|
|
29
|
-
className: "chevron-icon",
|
|
30
|
-
icon: x
|
|
31
|
-
})]
|
|
32
|
-
}), D = { "kit-preset-label": "_kit-preset-label_g6thk_1" }, O = ({ label: e, active: t }) => {
|
|
33
|
-
let n = g(D["kit-preset-label"], { "kit-preset-active": t });
|
|
34
|
-
return l("span", {
|
|
35
|
-
className: n,
|
|
36
|
-
children: [c(a.Text, {
|
|
37
|
-
size: "fontSize7",
|
|
38
|
-
children: e
|
|
39
|
-
}), t && c(w, {
|
|
40
|
-
icon: y,
|
|
41
|
-
color: "var(--general-utilities-main-default)"
|
|
42
|
-
})]
|
|
43
|
-
});
|
|
44
|
-
}, k = (e = "date", t) => (e === "date" || e === "week") && t ? "minute" : {
|
|
45
|
-
time: "minute",
|
|
46
|
-
date: "day",
|
|
47
|
-
week: "week",
|
|
48
|
-
month: "month",
|
|
49
|
-
quarter: "month",
|
|
50
|
-
year: "year"
|
|
51
|
-
}[e], A = (e, t, n) => !e || !t ? -1 : e.findIndex((e) => {
|
|
52
|
-
let r = typeof e.value == "function" ? e.value() : e.value;
|
|
53
|
-
return Array.isArray(t) || Array.isArray(r) ? !1 : t.isSame(r, n);
|
|
54
|
-
}), j = (e, t, n) => {
|
|
55
|
-
let r = t?.[0], i = t?.[1];
|
|
56
|
-
return !e || !r || !i ? -1 : e.findIndex((e) => {
|
|
57
|
-
let [t, a] = typeof e.value == "function" ? e.value() : e.value;
|
|
58
|
-
return !t || !a ? !1 : r.isSame(t, n) && i.isSame(a, n);
|
|
59
|
-
});
|
|
60
|
-
}, M = ({ presets: e, picker: t, showTime: n, onChange: r, onCalendarChange: i }) => {
|
|
61
|
-
let [a, o] = h(-1), s = k(t, n), l = d((t, n) => {
|
|
62
|
-
o(A(e, t, s)), r?.(t, n);
|
|
63
|
-
}, [
|
|
64
|
-
e,
|
|
65
|
-
s,
|
|
66
|
-
r
|
|
67
|
-
]), u = d((e, t, n) => {
|
|
68
|
-
o(-1), i?.(e, t, n);
|
|
69
|
-
}, [i]);
|
|
70
|
-
return {
|
|
71
|
-
enrichedPresets: p(() => e && e.map((e, t) => ({
|
|
72
|
-
...e,
|
|
73
|
-
label: c(O, {
|
|
74
|
-
label: e.label,
|
|
75
|
-
active: t === a
|
|
76
|
-
})
|
|
77
|
-
})), [e, a]),
|
|
78
|
-
onChange: l,
|
|
79
|
-
onCalendarChange: u
|
|
80
|
-
};
|
|
81
|
-
}, N = {
|
|
82
|
-
"kit-datepicker": "_kit-datepicker_y21za_1",
|
|
83
|
-
"kit-rangepicker": "_kit-rangepicker_y21za_229"
|
|
84
|
-
}, P = u(({ label: a, helper: s, htmlFor: l, suffixIcon: u, className: d, wrapperClassName: f, prefix: p, required: h, actions: _, extra: y, disabled: D, placeholder: O, getPopupContainer: k, picker: A = "date", size: j = "large", allowClear: P = !0, readonlyLight: F = !1, readonly: I = !1, presets: L, onChange: R, onCalendarChange: z, ...B }, V) => {
|
|
85
|
-
let { appId: H } = t(), { locale: U } = n(), W = m(null), G = i(V ?? W, k);
|
|
86
|
-
r("DatePicker", {
|
|
87
|
-
label: a,
|
|
88
|
-
helper: s,
|
|
89
|
-
htmlFor: l,
|
|
90
|
-
className: f,
|
|
91
|
-
actions: _,
|
|
92
|
-
extra: y,
|
|
93
|
-
...B
|
|
94
|
-
});
|
|
95
|
-
let { enrichedPresets: K, onChange: q, onCalendarChange: J } = M({
|
|
96
|
-
presets: L,
|
|
97
|
-
picker: A,
|
|
98
|
-
showTime: B.showTime,
|
|
99
|
-
onChange: R,
|
|
100
|
-
onCalendarChange: z
|
|
101
|
-
}), Y = g(H, N["kit-datepicker"], d, {
|
|
102
|
-
"kit-picker-readonly-light": F,
|
|
103
|
-
"kit-picker-readonly": I
|
|
104
|
-
}), X = p ?? (A === "time" ? c(w, { icon: C }) : c(w, { icon: v }));
|
|
105
|
-
return c(e, {
|
|
106
|
-
label: a,
|
|
107
|
-
helper: s,
|
|
108
|
-
htmlFor: l,
|
|
109
|
-
disabled: D,
|
|
110
|
-
status: B.status,
|
|
111
|
-
className: f,
|
|
112
|
-
required: h,
|
|
113
|
-
extra: y ?? _,
|
|
114
|
-
children: c(o, {
|
|
115
|
-
...B,
|
|
116
|
-
presets: K,
|
|
117
|
-
onChange: q,
|
|
118
|
-
onCalendarChange: J,
|
|
119
|
-
id: B.id ?? l,
|
|
120
|
-
required: h,
|
|
121
|
-
picker: A,
|
|
122
|
-
disabled: F || I || D,
|
|
123
|
-
variant: F ? "borderless" : void 0,
|
|
124
|
-
ref: V ?? W,
|
|
125
|
-
size: j,
|
|
126
|
-
getPopupContainer: G,
|
|
127
|
-
placeholder: !F && !I ? O : void 0,
|
|
128
|
-
allowClear: !F && !I && P && { clearIcon: c(w, {
|
|
129
|
-
"aria-label": U.General?.clear,
|
|
130
|
-
icon: S
|
|
131
|
-
}) },
|
|
132
|
-
prefix: X,
|
|
133
|
-
suffixIcon: u ?? null,
|
|
134
|
-
className: Y,
|
|
135
|
-
prevIcon: c(w, {
|
|
136
|
-
className: "chevron-icon",
|
|
137
|
-
icon: b
|
|
138
|
-
}),
|
|
139
|
-
nextIcon: c(w, {
|
|
140
|
-
className: "chevron-icon",
|
|
141
|
-
icon: x
|
|
142
|
-
}),
|
|
143
|
-
superPrevIcon: c(T, {}),
|
|
144
|
-
superNextIcon: c(E, {})
|
|
145
|
-
})
|
|
146
|
-
});
|
|
147
|
-
}), F = ({ presets: e, picker: t, showTime: n, onChange: r, onCalendarChange: i }) => {
|
|
148
|
-
let [a, o] = h(-1), s = k(t, n), l = d((t, n) => {
|
|
149
|
-
o(j(e, t, s)), r?.(t, n);
|
|
150
|
-
}, [
|
|
151
|
-
e,
|
|
152
|
-
s,
|
|
153
|
-
r
|
|
154
|
-
]), u = d((e, t, n) => {
|
|
155
|
-
o(-1), i?.(e, t, n);
|
|
156
|
-
}, [i]);
|
|
157
|
-
return {
|
|
158
|
-
enrichedPresets: p(() => e && e.map((e, t) => ({
|
|
159
|
-
...e,
|
|
160
|
-
label: c(O, {
|
|
161
|
-
label: e.label,
|
|
162
|
-
active: t === a
|
|
163
|
-
})
|
|
164
|
-
})), [e, a]),
|
|
165
|
-
onChange: l,
|
|
166
|
-
onCalendarChange: u
|
|
167
|
-
};
|
|
168
|
-
}, I = u(({ label: a, className: u, helper: d, htmlFor: p, suffixIcon: y, picker: D, prefix: O, allowClear: k = !0, required: A, actions: j, extra: M, placeholder: P, readonlyLight: I = !1, readonly: L = !1, getPopupContainer: R, size: z = "large", presets: B, onChange: V, onCalendarChange: H, ...U }, W) => {
|
|
169
|
-
let { locale: G } = n(), [K, q] = h(["", ""]), { appId: J } = t(), Y = m(null), X = m(null), Z = m(null), Q = W ?? Y, ee = i(Q, R);
|
|
170
|
-
r("RangePicker", {
|
|
171
|
-
label: a,
|
|
172
|
-
helper: d,
|
|
173
|
-
htmlFor: p,
|
|
174
|
-
actions: j,
|
|
175
|
-
extra: M,
|
|
176
|
-
...U
|
|
177
|
-
});
|
|
178
|
-
let { enrichedPresets: te, onChange: ne, onCalendarChange: re } = F({
|
|
179
|
-
presets: B,
|
|
180
|
-
picker: D,
|
|
181
|
-
showTime: U.showTime,
|
|
182
|
-
onChange: V,
|
|
183
|
-
onCalendarChange: H
|
|
184
|
-
}), ie = () => U.disabled === void 0 ? !1 : typeof U.disabled == "boolean" ? U.disabled : U.disabled[0] && U.disabled[1], ae = g(J, N["kit-rangepicker"], u, {
|
|
185
|
-
"kit-picker-readonly-light": I,
|
|
186
|
-
"kit-picker-readonly": L
|
|
187
|
-
}), oe = O ?? (D === "time" ? c(w, { icon: C }) : c(w, { icon: v })), $ = (e) => {
|
|
188
|
-
q([e[0].value || e[0].placeholder || "", e[1].value || e[1].placeholder || ""]);
|
|
189
|
-
};
|
|
190
|
-
return f(() => {
|
|
191
|
-
let e = (Q?.current)?.nativeElement.querySelectorAll(".ant-picker-input input");
|
|
192
|
-
if (!e || e.length < 2) return;
|
|
193
|
-
let t = [];
|
|
194
|
-
return e.forEach((n) => {
|
|
195
|
-
let r = new MutationObserver(() => $(e));
|
|
196
|
-
r.observe(n, {
|
|
197
|
-
attributes: !0,
|
|
198
|
-
attributeFilter: ["value"]
|
|
199
|
-
}), t.push(r);
|
|
200
|
-
}), $(e), () => {
|
|
201
|
-
t.forEach((e) => {
|
|
202
|
-
e.disconnect();
|
|
203
|
-
});
|
|
204
|
-
};
|
|
205
|
-
}, [Q]), f(() => {
|
|
206
|
-
let e = (Q?.current)?.nativeElement.querySelectorAll(".ant-picker-input");
|
|
207
|
-
!e || e.length < 2 || (e[0].style.flexBasis = `${X.current?.offsetWidth}px`, e[1].style.flexBasis = `${Z.current?.offsetWidth}px`);
|
|
208
|
-
}, [Q, K]), l(s, { children: [l("div", {
|
|
209
|
-
className: g("range-mirror-wrapper", z, { "readonly-light": I }),
|
|
210
|
-
"aria-hidden": "true",
|
|
211
|
-
children: [c("span", {
|
|
212
|
-
className: "range-mirror-input",
|
|
213
|
-
ref: X,
|
|
214
|
-
children: K[0]
|
|
215
|
-
}), c("span", {
|
|
216
|
-
className: "range-mirror-input",
|
|
217
|
-
ref: Z,
|
|
218
|
-
children: K[1]
|
|
219
|
-
})]
|
|
220
|
-
}), c(e, {
|
|
221
|
-
label: a,
|
|
222
|
-
helper: d,
|
|
223
|
-
htmlFor: p,
|
|
224
|
-
disabled: ie(),
|
|
225
|
-
status: U.status,
|
|
226
|
-
required: A,
|
|
227
|
-
extra: M ?? j,
|
|
228
|
-
children: c(o.RangePicker, {
|
|
229
|
-
...U,
|
|
230
|
-
presets: te,
|
|
231
|
-
onChange: ne,
|
|
232
|
-
onCalendarChange: re,
|
|
233
|
-
id: U.id ?? p,
|
|
234
|
-
picker: D,
|
|
235
|
-
ref: W ?? Y,
|
|
236
|
-
getPopupContainer: ee,
|
|
237
|
-
required: A,
|
|
238
|
-
size: z,
|
|
239
|
-
disabled: I || L || U.disabled,
|
|
240
|
-
variant: I ? "borderless" : void 0,
|
|
241
|
-
placeholder: !I && !L ? P : void 0,
|
|
242
|
-
suffixIcon: y ?? null,
|
|
243
|
-
allowClear: k && { clearIcon: c(w, {
|
|
244
|
-
"aria-label": G.General?.clear,
|
|
245
|
-
icon: S
|
|
246
|
-
}) },
|
|
247
|
-
className: ae,
|
|
248
|
-
prefix: oe,
|
|
249
|
-
separator: c(w, {
|
|
250
|
-
"aria-label": G.DatePicker?.to,
|
|
251
|
-
icon: _
|
|
252
|
-
}),
|
|
253
|
-
prevIcon: c(w, {
|
|
254
|
-
className: "chevron-icon",
|
|
255
|
-
icon: b
|
|
256
|
-
}),
|
|
257
|
-
nextIcon: c(w, {
|
|
258
|
-
className: "chevron-icon",
|
|
259
|
-
icon: x
|
|
260
|
-
}),
|
|
261
|
-
superPrevIcon: c(T, {}),
|
|
262
|
-
superNextIcon: c(E, {})
|
|
263
|
-
})
|
|
264
|
-
})] });
|
|
265
|
-
}), L = P;
|
|
266
|
-
L.displayName = "KitDatePicker", L.RangePicker = I;
|
|
267
|
-
export { L as t };
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { KitDropDown as e } from "../Kit/Navigation/DropDown/index.js";
|
|
2
|
-
import { t } from "./Badge.B__O4nmc.js";
|
|
3
|
-
import { KitTooltip as n } from "../Kit/DataDisplay/Tooltip/index.js";
|
|
4
|
-
import { t as r } from "./Typography.MRyLnlCD.js";
|
|
5
|
-
import { n as i } from "./useKitTheme.P5Q2DIyI.js";
|
|
6
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
-
import { createElement as o, forwardRef as s, useEffect as c, useRef as l, useState as u } from "react";
|
|
8
|
-
import d from "classnames";
|
|
9
|
-
import { faCaretDown as f } from "@fortawesome/free-solid-svg-icons";
|
|
10
|
-
import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
|
|
11
|
-
import '../assets/Filter.css';// src/Kit/DataEntry/Filter/styles.module.scss
|
|
12
|
-
var m = { "kit-filter": "_kit-filter_w4vo0_1" }, h = s(({ leftIcon: e, values: s = [], active: c = !1, readonly: l = !1, disabled: u = !1, showSingleValue: h = !1, expandable: g = !1, label: _ = "", isDropdownOpen: v = !1, buttonKey: y, ...b }, x) => {
|
|
13
|
-
let { appId: S } = i(), C = d(S, m["kit-filter"], {
|
|
14
|
-
"kit-filter-active": c || v,
|
|
15
|
-
"kit-filter-clickable": g || b.onClick,
|
|
16
|
-
"kit-filter-readonly": l,
|
|
17
|
-
"kit-filter-disabled": u
|
|
18
|
-
}, b.className);
|
|
19
|
-
return o("button", {
|
|
20
|
-
...b,
|
|
21
|
-
className: C,
|
|
22
|
-
ref: x,
|
|
23
|
-
tabIndex: l || u ? -1 : 0,
|
|
24
|
-
key: y
|
|
25
|
-
}, e && a("span", {
|
|
26
|
-
className: "kit-filter-icon",
|
|
27
|
-
children: e
|
|
28
|
-
}), _.length > 0 && a(r.AdvancedText, {
|
|
29
|
-
ellipsis: { tooltip: { placement: "bottom" } },
|
|
30
|
-
className: "kit-filter-label",
|
|
31
|
-
children: _
|
|
32
|
-
}), h && s.length === 1 ? a(r.AdvancedText, {
|
|
33
|
-
ellipsis: { tooltip: { placement: "bottom" } },
|
|
34
|
-
className: "kit-filter-value",
|
|
35
|
-
children: s[0]
|
|
36
|
-
}) : s.length > 0 && a(n, {
|
|
37
|
-
title: s.join(", "),
|
|
38
|
-
placement: "bottom",
|
|
39
|
-
children: a(t, {
|
|
40
|
-
count: s.length,
|
|
41
|
-
color: "primary"
|
|
42
|
-
})
|
|
43
|
-
}), g && a(p, {
|
|
44
|
-
icon: f,
|
|
45
|
-
className: "kit-filter-expand-button"
|
|
46
|
-
}));
|
|
47
|
-
});
|
|
48
|
-
h.displayName = "FilterButton";
|
|
49
|
-
// src/Kit/DataEntry/Filter/index.tsx
|
|
50
|
-
var g = s(({ leftIcon: t, values: n = [], dropDownProps: r, active: i = !1, readonly: o = !1, disabled: s = !1, showSingleValue: d = !1, expandable: f = !1, label: p = "", ...m }, g) => {
|
|
51
|
-
let _ = l(0), v = r && !s && !o, [y, b] = u(!1);
|
|
52
|
-
v && _.current++;
|
|
53
|
-
let x = (e, t) => {
|
|
54
|
-
var n;
|
|
55
|
-
b(e), (n = r?.onOpenChange) == null || n.call(r, e, t);
|
|
56
|
-
};
|
|
57
|
-
c(() => {
|
|
58
|
-
let e = () => b(!1);
|
|
59
|
-
return window.addEventListener("blur", e), () => window.removeEventListener("blur", e);
|
|
60
|
-
}, []);
|
|
61
|
-
let S = a(h, {
|
|
62
|
-
...m,
|
|
63
|
-
ref: g,
|
|
64
|
-
leftIcon: t,
|
|
65
|
-
values: n,
|
|
66
|
-
active: i,
|
|
67
|
-
readonly: o,
|
|
68
|
-
disabled: s,
|
|
69
|
-
showSingleValue: d,
|
|
70
|
-
expandable: f,
|
|
71
|
-
label: p,
|
|
72
|
-
isDropdownOpen: y,
|
|
73
|
-
buttonKey: _.current
|
|
74
|
-
});
|
|
75
|
-
return v ? a(e, {
|
|
76
|
-
...r,
|
|
77
|
-
onOpenChange: x,
|
|
78
|
-
trigger: ["click"],
|
|
79
|
-
placement: "bottom",
|
|
80
|
-
children: S
|
|
81
|
-
}) : S;
|
|
82
|
-
});
|
|
83
|
-
export { g as t };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./InputWrapper.DXw2Vcpa.js";
|
|
2
|
-
import { n as t } from "./useKitTheme.P5Q2DIyI.js";
|
|
3
|
-
import { t as n } from "./useDeprecatedInputWrapper.CZ2-c80o.js";
|
|
4
|
-
import { InputNumber as r } from "antd";
|
|
5
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
import { forwardRef as a, useState as o } from "react";
|
|
7
|
-
import s from "classnames";
|
|
8
|
-
import '../assets/InputNumber.css';// src/Kit/DataEntry/InputNumber/styles.module.scss
|
|
9
|
-
var c = { "kit-input-number": "_kit-input-number_16760_1" }, l = a(({ label: a, helper: l, htmlFor: u, wrapperClassName: d, className: f, required: p, actions: m, extra: h, disabled: g, placeholder: _, readonly: v, onFocus: y, onBlur: b, size: x = "large", ...S }, C) => {
|
|
10
|
-
let { appId: w } = t(), [T, E] = o(!1);
|
|
11
|
-
n("InputNumber", {
|
|
12
|
-
label: a,
|
|
13
|
-
helper: l,
|
|
14
|
-
htmlFor: u,
|
|
15
|
-
clasName: d,
|
|
16
|
-
actions: m,
|
|
17
|
-
extra: h,
|
|
18
|
-
...S
|
|
19
|
-
});
|
|
20
|
-
let D = s(w, c["kit-input-number"], f, {
|
|
21
|
-
"kit-input-number-affix-wrapper-focused": T,
|
|
22
|
-
"kit-input-number-readonly": v
|
|
23
|
-
});
|
|
24
|
-
return i(e, {
|
|
25
|
-
label: a,
|
|
26
|
-
helper: l,
|
|
27
|
-
htmlFor: u,
|
|
28
|
-
disabled: g,
|
|
29
|
-
status: S.status,
|
|
30
|
-
className: d,
|
|
31
|
-
required: p,
|
|
32
|
-
extra: h ?? m,
|
|
33
|
-
children: i(r, {
|
|
34
|
-
ref: C,
|
|
35
|
-
required: p,
|
|
36
|
-
size: x,
|
|
37
|
-
id: S.id ?? u,
|
|
38
|
-
onFocus: (e) => {
|
|
39
|
-
y?.(e), E(!0);
|
|
40
|
-
},
|
|
41
|
-
onBlur: (e) => {
|
|
42
|
-
b?.(e), E(!1);
|
|
43
|
-
},
|
|
44
|
-
className: D,
|
|
45
|
-
disabled: g || v,
|
|
46
|
-
placeholder: v ? void 0 : _,
|
|
47
|
-
...S
|
|
48
|
-
})
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
l.displayName = "KitInputNumber";
|
|
52
|
-
export { l as t };
|