@chotot/clad-ui 3.0.0-next.2 → 3.0.0-next.4
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 +675 -0
- package/README.md +173 -131
- package/dist/brand/ChototLogoText.d.ts +5 -0
- package/dist/brand/CtC2C.d.ts +5 -0
- package/dist/brand/CtProperty.d.ts +5 -0
- package/dist/brand/CtVehicle.d.ts +5 -0
- package/dist/brand/Tot.d.ts +5 -0
- package/dist/brand/index.d.ts +5 -0
- package/dist/chunk-Bmb41Sf3.cjs +1 -0
- package/dist/clad-ui.cjs +2 -0
- package/dist/clad-ui.d.ts +2 -0
- package/dist/clad-ui.es.js +9000 -4224
- package/dist/components/Announcer/Announcer.d.ts +3 -54
- package/dist/components/Announcer/announcer.styles.d.ts +39 -0
- package/dist/components/Announcer/index.d.ts +2 -0
- package/dist/components/Announcer/types.d.ts +41 -0
- package/dist/components/Badge/Badge.d.ts +2 -44
- package/dist/components/Badge/badge.styles.d.ts +57 -0
- package/dist/components/Badge/index.d.ts +4 -0
- package/dist/components/Badge/types.d.ts +33 -0
- package/dist/components/Box/Box.d.ts +7 -99
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Box/types.d.ts +89 -0
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +3 -5
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -17
- package/dist/components/Breadcrumbs/breadcrumbs.styles.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.d.ts +3 -0
- package/dist/components/Breadcrumbs/types.d.ts +18 -0
- package/dist/components/Button/Button.d.ts +3 -76
- package/dist/components/Button/ButtonLink.d.ts +2 -3
- package/dist/components/Button/GhostButton.d.ts +3 -47
- package/dist/components/Button/IconButton.d.ts +2 -10
- package/dist/components/Button/button.styles.d.ts +242 -0
- package/dist/components/Button/constant.d.ts +1 -2
- package/dist/components/Button/index.d.ts +5 -0
- package/dist/components/Button/types.d.ts +72 -0
- package/dist/components/Checkbox/Checkbox.d.ts +3 -46
- package/dist/components/Checkbox/checkbox.styles.d.ts +27 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/types.d.ts +40 -0
- package/dist/components/Chip/Chip.d.ts +3 -70
- package/dist/components/Chip/chip.styles.d.ts +66 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/types.d.ts +22 -0
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +3 -39
- package/dist/components/CurrencyInput/currency-input.styles.d.ts +21 -0
- package/dist/components/CurrencyInput/index.d.ts +5 -0
- package/dist/components/CurrencyInput/types.d.ts +96 -0
- package/dist/components/CurrencyInput/utils.d.ts +18 -0
- package/dist/components/DatePicker/DatePicker.d.ts +2 -138
- package/dist/components/DatePicker/DateTimePicker.d.ts +2 -137
- package/dist/components/DatePicker/date-picker.styles.d.ts +9 -0
- package/dist/components/DatePicker/date-time-picker.styles.d.ts +10 -0
- package/dist/components/DatePicker/index.d.ts +4 -0
- package/dist/components/DatePicker/types.d.ts +286 -0
- package/dist/components/Drawer/Drawer.d.ts +36 -0
- package/dist/components/Drawer/Drawer.pw.fixtures.d.ts +9 -0
- package/dist/components/Drawer/index.d.ts +3 -0
- package/dist/components/Drawer/types.d.ts +191 -0
- package/dist/components/Dropdown/Dropdown.d.ts +3 -94
- package/dist/components/Dropdown/dropdown.styles.d.ts +18 -0
- package/dist/components/Dropdown/index.d.ts +4 -0
- package/dist/components/Dropdown/types.d.ts +89 -0
- package/dist/components/EmptyState/EmptyState.d.ts +4 -0
- package/dist/components/EmptyState/empty-state.styles.d.ts +3 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/EmptyState/types.d.ts +55 -0
- package/dist/components/Grid/Col.d.ts +4 -35
- package/dist/components/Grid/Grid.d.ts +8 -55
- package/dist/components/Grid/Grid.pw.fixtures.d.ts +3 -0
- package/dist/components/Grid/index.d.ts +3 -0
- package/dist/components/Grid/types.d.ts +66 -0
- package/dist/components/Input/Input.d.ts +3 -116
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/input.styles.d.ts +24 -0
- package/dist/components/Input/types.d.ts +55 -0
- package/dist/components/InputGroup/InputGroup.d.ts +4 -0
- package/dist/components/InputGroup/index.d.ts +4 -0
- package/dist/components/InputGroup/input-group.styles.d.ts +18 -0
- package/dist/components/InputGroup/types.d.ts +20 -0
- package/dist/components/LegacyDialog/DialogMainIcon.d.ts +3 -0
- package/dist/components/LegacyDialog/LegacyDialog.d.ts +5 -0
- package/dist/components/LegacyDialog/index.d.ts +3 -0
- package/dist/{patterns/LegacyDialog/LegacyDialog.d.ts → components/LegacyDialog/types.d.ts} +2 -10
- package/dist/components/LegacyPopup/LegacyPopup.d.ts +6 -0
- package/dist/components/LegacyPopup/index.d.ts +2 -0
- package/dist/{patterns/LegacyPopup/LegacyPopup.d.ts → components/LegacyPopup/types.d.ts} +4 -15
- package/dist/components/MultiSearchDropdown/MultiSearchDropdown.d.ts +10 -0
- package/dist/components/MultiSearchDropdown/index.d.ts +4 -0
- package/dist/components/MultiSearchDropdown/multi-search-dropdown.styles.d.ts +18 -0
- package/dist/{patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts → components/MultiSearchDropdown/types.d.ts} +6 -19
- package/dist/components/Pagination/PageItem.d.ts +3 -21
- package/dist/components/Pagination/Pagination.d.ts +2 -46
- package/dist/components/Pagination/index.d.ts +5 -0
- package/dist/components/Pagination/pagination.styles.d.ts +37 -0
- package/dist/components/Pagination/types.d.ts +66 -0
- package/dist/components/Popover/Popover.d.ts +4 -44
- package/dist/components/Popover/Popover.pw.fixtures.d.ts +6 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/popover.styles.d.ts +1 -0
- package/dist/components/Popover/types.d.ts +44 -0
- package/dist/components/Popup/Popup.d.ts +31 -0
- package/dist/components/Popup/Popup.pw.fixtures.d.ts +5 -0
- package/dist/components/Popup/index.d.ts +3 -0
- package/dist/components/Popup/types.d.ts +145 -0
- package/dist/components/RadioButton/RadioButton.d.ts +3 -51
- package/dist/components/RadioButton/index.d.ts +4 -0
- package/dist/components/RadioButton/radio-button.styles.d.ts +27 -0
- package/dist/components/RadioButton/types.d.ts +46 -0
- package/dist/components/RangeInput/RangeInput.d.ts +4 -0
- package/dist/components/RangeInput/index.d.ts +3 -0
- package/dist/components/RangeInput/range-input.styles.d.ts +1 -0
- package/dist/{patterns/RangeInput/RangeInput.d.ts → components/RangeInput/types.d.ts} +1 -4
- package/dist/components/RowItem/RowItem.d.ts +8 -76
- package/dist/components/RowItem/index.d.ts +2 -0
- package/dist/components/RowItem/rowitem.styles.d.ts +36 -0
- package/dist/components/RowItem/types.d.ts +66 -0
- package/dist/components/SearchInput/SearchInput.d.ts +5 -0
- package/dist/components/SearchInput/index.d.ts +3 -0
- package/dist/components/SearchInput/search-input.styles.d.ts +18 -0
- package/dist/{patterns/SearchInput/SearchInput.d.ts → components/SearchInput/types.d.ts} +19 -25
- package/dist/components/Searchbar/Searchbar.d.ts +3 -0
- package/dist/components/Searchbar/index.d.ts +3 -0
- package/dist/components/Searchbar/searchbar.styles.d.ts +1 -0
- package/dist/{patterns/Searchbar/Searchbar.d.ts → components/Searchbar/types.d.ts} +6 -9
- package/dist/components/ShapeIcon/ShapeIcon.d.ts +3 -53
- package/dist/components/ShapeIcon/index.d.ts +2 -0
- package/dist/components/ShapeIcon/shape-icon.styles.d.ts +156 -0
- package/dist/components/ShapeIcon/types.d.ts +5 -0
- package/dist/components/Slider/Slider.d.ts +3 -57
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Slider/slider.styles.d.ts +1 -0
- package/dist/components/Slider/types.d.ts +59 -0
- package/dist/components/Snack/Snack.d.ts +4 -48
- package/dist/components/Snack/index.d.ts +3 -0
- package/dist/components/Snack/snack.styles.d.ts +21 -0
- package/dist/components/Snack/types.d.ts +48 -0
- package/dist/components/Tabs/Tab.d.ts +3 -67
- package/dist/components/Tabs/Tabs.d.ts +14 -61
- package/dist/components/Tabs/index.d.ts +4 -0
- package/dist/components/Tabs/tabs.styles.d.ts +59 -0
- package/dist/components/Tabs/types.d.ts +97 -0
- package/dist/components/TagCloud/TagCloud.d.ts +11 -0
- package/dist/components/TagCloud/index.d.ts +2 -0
- package/dist/components/TagCloud/tagcloud.styles.d.ts +18 -0
- package/dist/components/TagCloud/types.d.ts +26 -0
- package/dist/components/TextArea/TextArea.d.ts +3 -100
- package/dist/components/TextArea/index.d.ts +4 -0
- package/dist/components/TextArea/text-area.styles.d.ts +21 -0
- package/dist/components/TextArea/types.d.ts +98 -0
- package/dist/components/TextLabel/TextLabel.d.ts +3 -35
- package/dist/components/TextLabel/index.d.ts +2 -0
- package/dist/components/TextLabel/textlabel.styles.d.ts +51 -0
- package/dist/components/TextLabel/types.d.ts +32 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -41
- package/dist/components/ToggleSwitch/index.d.ts +4 -0
- package/dist/components/ToggleSwitch/toggle-switch.styles.d.ts +39 -0
- package/dist/components/ToggleSwitch/types.d.ts +33 -0
- package/dist/components/Tooltip/Tooltip.d.ts +4 -98
- package/dist/components/Tooltip/Tooltip.pw.fixtures.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/tooltip.styles.d.ts +18 -0
- package/dist/components/Tooltip/types.d.ts +24 -0
- package/dist/forge/index.cjs +0 -0
- package/dist/forge/index.d.ts +8 -0
- package/dist/forge/index.es.js +0 -0
- package/dist/icons.cjs +1 -0
- package/dist/icons.d.ts +1 -0
- package/dist/icons.es.js +1 -0
- package/dist/index.d.ts +82 -71
- package/dist/styles.css +2 -0
- package/dist/{utils/types.d.ts → types/index.d.ts} +0 -1
- package/dist/typography/BodyAnnotation.d.ts +8 -6
- package/dist/typography/BodyCaption.d.ts +8 -6
- package/dist/typography/BodyPage.d.ts +8 -6
- package/dist/typography/BodySection.d.ts +8 -6
- package/dist/typography/DisplayAnnotation.d.ts +8 -6
- package/dist/typography/DisplayCaption.d.ts +8 -6
- package/dist/typography/DisplayPage.d.ts +8 -6
- package/dist/typography/DisplayPrice.d.ts +21 -0
- package/dist/typography/DisplaySection.d.ts +8 -6
- package/dist/typography/HeaderAnnotation.d.ts +8 -6
- package/dist/typography/HeaderCaption.d.ts +8 -6
- package/dist/typography/HeaderPage.d.ts +8 -6
- package/dist/typography/HeaderSection.d.ts +8 -6
- package/dist/typography/LabelAnnotation.d.ts +8 -6
- package/dist/typography/LabelCaption.d.ts +8 -6
- package/dist/typography/LabelPage.d.ts +8 -6
- package/dist/typography/LabelSection.d.ts +8 -6
- package/dist/typography/NoteCaption.d.ts +8 -6
- package/dist/typography/NotePage.d.ts +8 -6
- package/dist/typography/NoteSection.d.ts +8 -6
- package/dist/typography/TaglineAnnotation.d.ts +8 -6
- package/dist/typography/TaglineCaption.d.ts +8 -6
- package/dist/typography/TaglineFootext.d.ts +8 -6
- package/dist/typography/TaglineSection.d.ts +8 -6
- package/dist/typography/index.d.ts +25 -24
- package/dist/utils/_inlineCreatePortal.d.ts +0 -1
- package/dist/utils/bundleCss.cjs +1 -0
- package/dist/utils/bundleCss.d.ts +6 -0
- package/dist/utils/bundleCss.es.js +18 -0
- package/dist/utils/cleanHtml.d.ts +4 -7
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/createUniversalPortal.d.ts +4 -14
- package/dist/utils/floating.d.ts +52 -0
- package/dist/utils/getBreakpointsValues.d.ts +4 -9
- package/dist/utils/sizes.d.ts +28 -0
- package/dist/utils/storyStyles.d.ts +21 -0
- package/dist/utils/themeTokens.d.ts +327 -0
- package/dist/utils/{scrollLock/useBodyScrollLock.d.ts → useBodyScrollLock.d.ts} +0 -1
- package/dist/utils/useScrollTop.d.ts +8 -0
- package/package.json +99 -99
- package/scripts/postinstall.cjs +180 -0
- package/skills/clad-ui/SKILL.md +109 -0
- package/skills/clad-ui/agents/openai.yaml +4 -0
- package/skills/clad-ui/references/components-display-layout.md +295 -0
- package/skills/clad-ui/references/components-inputs.md +449 -0
- package/skills/clad-ui/references/components-overlays-nav.md +314 -0
- package/skills/clad-ui/references/tokens.md +134 -0
- package/skills/clad-ui-feedback/SKILL.md +128 -0
- package/skills/migrate-clad-ui-v3/SKILL.md +123 -0
- package/skills/migrate-clad-ui-v3/agents/openai.yaml +4 -0
- package/skills/migrate-clad-ui-v3/references/component-api-changes.md +139 -0
- package/skills/migrate-clad-ui-v3/references/token-and-linaria-mapping.md +186 -0
- package/src/styles/base/base.css +440 -0
- package/src/styles/components/announcer.css +182 -0
- package/src/styles/components/badge.css +102 -0
- package/src/styles/components/box.css +61 -0
- package/src/styles/components/breadcrumbs.css +75 -0
- package/src/styles/components/button.css +527 -0
- package/src/styles/components/checkbox.css +115 -0
- package/src/styles/components/chip.css +155 -0
- package/src/styles/components/currency-input.css +146 -0
- package/src/styles/components/date-picker.css +305 -0
- package/src/styles/components/date-time-picker.css +64 -0
- package/src/styles/components/drawer.css +496 -0
- package/src/styles/components/dropdown.css +186 -0
- package/src/styles/components/empty-state.css +30 -0
- package/src/styles/components/grid.css +212 -0
- package/src/styles/components/index.css +36 -0
- package/src/styles/components/input-group.css +85 -0
- package/src/styles/components/input.css +255 -0
- package/src/styles/components/legacy-dialog.css +129 -0
- package/src/styles/components/legacy-popup.css +209 -0
- package/src/styles/components/multi-search-dropdown.css +240 -0
- package/src/styles/components/pagination.css +68 -0
- package/src/styles/components/popover.css +8 -0
- package/src/styles/components/popup.css +331 -0
- package/src/styles/components/radio-button.css +130 -0
- package/src/styles/components/range-input.css +40 -0
- package/src/styles/components/rowitem.css +75 -0
- package/src/styles/components/search-input.css +89 -0
- package/src/styles/components/searchbar.css +46 -0
- package/src/styles/components/shape-icon.css +199 -0
- package/src/styles/components/slider.css +232 -0
- package/src/styles/components/snack.css +144 -0
- package/src/styles/components/tabs.css +128 -0
- package/src/styles/components/tagcloud.css +50 -0
- package/src/styles/components/text-area.css +176 -0
- package/src/styles/components/textlabel.css +75 -0
- package/src/styles/components/toggle-switch.css +147 -0
- package/src/styles/components/tooltip.css +93 -0
- package/src/styles/index.css +10 -0
- package/src/styles/preset.css +6 -0
- package/src/styles/theme/colors/base.css +108 -0
- package/src/styles/theme/colors/semantic.css +135 -0
- package/src/styles/theme/index.css +57 -0
- package/src/styles/theme/typography/base.css +53 -0
- package/src/styles/theme/typography/semantic.css +176 -0
- package/src/styles/theme/variables.css +83 -0
- package/dist/components/Announcer/Announcer.d.ts.map +0 -1
- package/dist/components/Announcer/Announcer.styles.d.ts +0 -30
- package/dist/components/Announcer/Announcer.styles.d.ts.map +0 -1
- package/dist/components/Badge/Badge.d.ts.map +0 -1
- package/dist/components/Badge/Badge.styles.d.ts +0 -26
- package/dist/components/Badge/Badge.styles.d.ts.map +0 -1
- package/dist/components/Box/Box.d.ts.map +0 -1
- package/dist/components/Box/Box.styles.d.ts +0 -21
- package/dist/components/Box/Box.styles.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -10
- package/dist/components/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.styles.d.ts +0 -3
- package/dist/components/Button/Button.styles.d.ts.map +0 -1
- package/dist/components/Button/ButtonLink.d.ts.map +0 -1
- package/dist/components/Button/GhostButton.d.ts.map +0 -1
- package/dist/components/Button/GhostButton.styles.d.ts +0 -3
- package/dist/components/Button/GhostButton.styles.d.ts.map +0 -1
- package/dist/components/Button/IconButton.d.ts.map +0 -1
- package/dist/components/Button/constant.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.styles.d.ts +0 -5
- package/dist/components/Checkbox/Checkbox.styles.d.ts.map +0 -1
- package/dist/components/Chip/Chip.d.ts.map +0 -1
- package/dist/components/Chip/Chip.styles.d.ts +0 -13
- package/dist/components/Chip/Chip.styles.d.ts.map +0 -1
- package/dist/components/CurrencyInput/CurrencyInput.d.ts.map +0 -1
- package/dist/components/CurrencyInput/CurrencyInput.styles.d.ts +0 -27
- package/dist/components/CurrencyInput/CurrencyInput.styles.d.ts.map +0 -1
- package/dist/components/CurrencyInput/utils/_cleanValue.d.ts +0 -12
- package/dist/components/CurrencyInput/utils/_cleanValue.d.ts.map +0 -1
- package/dist/components/CurrencyInput/utils/_formatValue.d.ts +0 -6
- package/dist/components/CurrencyInput/utils/_formatValue.d.ts.map +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts.map +0 -1
- package/dist/components/DatePicker/DateTimePicker.d.ts.map +0 -1
- package/dist/components/DatePicker/DateTimePicker.styles.d.ts +0 -61
- package/dist/components/DatePicker/DateTimePicker.styles.d.ts.map +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/components/Dropdown/Dropdown.styles.d.ts +0 -11
- package/dist/components/Dropdown/Dropdown.styles.d.ts.map +0 -1
- package/dist/components/Grid/Col.d.ts.map +0 -1
- package/dist/components/Grid/Grid.d.ts.map +0 -1
- package/dist/components/Grid/Grid.styles.d.ts +0 -33
- package/dist/components/Grid/Grid.styles.d.ts.map +0 -1
- package/dist/components/Input/Input.d.ts.map +0 -1
- package/dist/components/Input/Input.styles.d.ts +0 -36
- package/dist/components/Input/Input.styles.d.ts.map +0 -1
- package/dist/components/Pagination/PageItem.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.style.d.ts +0 -7
- package/dist/components/Pagination/Pagination.style.d.ts.map +0 -1
- package/dist/components/Popover/Popover.d.ts.map +0 -1
- package/dist/components/Popover/Popover.styles.d.ts +0 -4
- package/dist/components/Popover/Popover.styles.d.ts.map +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts.map +0 -1
- package/dist/components/RadioButton/RadioButton.styles.d.ts +0 -12
- package/dist/components/RadioButton/RadioButton.styles.d.ts.map +0 -1
- package/dist/components/RowItem/RowItem.d.ts.map +0 -1
- package/dist/components/RowItem/RowItem.styles.d.ts +0 -33
- package/dist/components/RowItem/RowItem.styles.d.ts.map +0 -1
- package/dist/components/ShapeIcon/ShapeIcon.d.ts.map +0 -1
- package/dist/components/ShapeIcon/ShapeIcon.styles.d.ts +0 -15
- package/dist/components/ShapeIcon/ShapeIcon.styles.d.ts.map +0 -1
- package/dist/components/Slider/Slider.d.ts.map +0 -1
- package/dist/components/Slider/Slider.styles.d.ts +0 -24
- package/dist/components/Slider/Slider.styles.d.ts.map +0 -1
- package/dist/components/Snack/Snack.d.ts.map +0 -1
- package/dist/components/Snack/Snack.styles.d.ts +0 -20
- package/dist/components/Snack/Snack.styles.d.ts.map +0 -1
- package/dist/components/Tabs/Tab.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.styles.d.ts +0 -43
- package/dist/components/Tabs/Tabs.styles.d.ts.map +0 -1
- package/dist/components/TextArea/TextArea.d.ts.map +0 -1
- package/dist/components/TextArea/TextArea.styles.d.ts +0 -19
- package/dist/components/TextArea/TextArea.styles.d.ts.map +0 -1
- package/dist/components/TextLabel/TextLabel.d.ts.map +0 -1
- package/dist/components/TextLabel/TextLabel.styles.d.ts +0 -10
- package/dist/components/TextLabel/TextLabel.styles.d.ts.map +0 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +0 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.styles.d.ts +0 -22
- package/dist/components/ToggleSwitch/ToggleSwitch.styles.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.styles.d.ts +0 -33
- package/dist/components/Tooltip/Tooltip.styles.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -62
- package/dist/components/index.d.ts.map +0 -1
- package/dist/css/baseline.d.ts +0 -15
- package/dist/css/baseline.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/patterns/Drawer/Drawer.d.ts +0 -110
- package/dist/patterns/Drawer/Drawer.d.ts.map +0 -1
- package/dist/patterns/Drawer/Drawer.styles.d.ts +0 -39
- package/dist/patterns/Drawer/Drawer.styles.d.ts.map +0 -1
- package/dist/patterns/EmptyState/EmptyState.d.ts +0 -36
- package/dist/patterns/EmptyState/EmptyState.d.ts.map +0 -1
- package/dist/patterns/EmptyState/EmptyState.styles.d.ts +0 -4
- package/dist/patterns/EmptyState/EmptyState.styles.d.ts.map +0 -1
- package/dist/patterns/InputGroup/InputGroup.d.ts +0 -26
- package/dist/patterns/InputGroup/InputGroup.d.ts.map +0 -1
- package/dist/patterns/InputGroup/InputGroup.styles.d.ts +0 -8
- package/dist/patterns/InputGroup/InputGroup.styles.d.ts.map +0 -1
- package/dist/patterns/LegacyDialog/DialogMainIcon.d.ts +0 -2
- package/dist/patterns/LegacyDialog/DialogMainIcon.d.ts.map +0 -1
- package/dist/patterns/LegacyDialog/LegacyDialog.d.ts.map +0 -1
- package/dist/patterns/LegacyDialog/LegacyDialog.styles.d.ts +0 -13
- package/dist/patterns/LegacyDialog/LegacyDialog.styles.d.ts.map +0 -1
- package/dist/patterns/LegacyPopup/LegacyPopup.d.ts.map +0 -1
- package/dist/patterns/LegacyPopup/LegacyPopup.styles.d.ts +0 -27
- package/dist/patterns/LegacyPopup/LegacyPopup.styles.d.ts.map +0 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts.map +0 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts +0 -26
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts.map +0 -1
- package/dist/patterns/Popup/Popup.d.ts +0 -92
- package/dist/patterns/Popup/Popup.d.ts.map +0 -1
- package/dist/patterns/Popup/Popup.styles.d.ts +0 -41
- package/dist/patterns/Popup/Popup.styles.d.ts.map +0 -1
- package/dist/patterns/RangeInput/RangeInput.d.ts.map +0 -1
- package/dist/patterns/RangeInput/RangeInput.styles.d.ts +0 -5
- package/dist/patterns/RangeInput/RangeInput.styles.d.ts.map +0 -1
- package/dist/patterns/SearchInput/SearchInput.d.ts.map +0 -1
- package/dist/patterns/SearchInput/SearchInput.styles.d.ts +0 -10
- package/dist/patterns/SearchInput/SearchInput.styles.d.ts.map +0 -1
- package/dist/patterns/Searchbar/Searchbar.d.ts.map +0 -1
- package/dist/patterns/Searchbar/Searchbar.styles.d.ts +0 -3
- package/dist/patterns/Searchbar/Searchbar.styles.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloud.d.ts +0 -76
- package/dist/patterns/TagCloud/TagCloud.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloud.styles.d.ts +0 -15
- package/dist/patterns/TagCloud/TagCloud.styles.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloudMultiActive.d.ts +0 -25
- package/dist/patterns/TagCloud/TagCloudMultiActive.d.ts.map +0 -1
- package/dist/patterns/TagCloud/TagCloudSingleActive.d.ts +0 -22
- package/dist/patterns/TagCloud/TagCloudSingleActive.d.ts.map +0 -1
- package/dist/patterns/index.d.ts +0 -23
- package/dist/patterns/index.d.ts.map +0 -1
- package/dist/theme/chotot.d.ts +0 -1371
- package/dist/theme/chotot.d.ts.map +0 -1
- package/dist/theme/ct-job.d.ts +0 -826
- package/dist/theme/ct-job.d.ts.map +0 -1
- package/dist/theme/ct-pty.d.ts +0 -826
- package/dist/theme/ct-pty.d.ts.map +0 -1
- package/dist/theme/ct-veh.d.ts +0 -591
- package/dist/theme/ct-veh.d.ts.map +0 -1
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/mudah.d.ts +0 -248
- package/dist/theme/mudah.d.ts.map +0 -1
- package/dist/theme/types.d.ts +0 -58
- package/dist/theme/types.d.ts.map +0 -1
- package/dist/theme-chotot.css +0 -2
- package/dist/theme-job.css +0 -2
- package/dist/theme-pty.css +0 -2
- package/dist/theme-veh.css +0 -2
- package/dist/typography/BodyAnnotation.d.ts.map +0 -1
- package/dist/typography/BodyCaption.d.ts.map +0 -1
- package/dist/typography/BodyPage.d.ts.map +0 -1
- package/dist/typography/BodySection.d.ts.map +0 -1
- package/dist/typography/DisplayAnnotation.d.ts.map +0 -1
- package/dist/typography/DisplayCaption.d.ts.map +0 -1
- package/dist/typography/DisplayPage.d.ts.map +0 -1
- package/dist/typography/DisplaySection.d.ts.map +0 -1
- package/dist/typography/HeaderAnnotation.d.ts.map +0 -1
- package/dist/typography/HeaderCaption.d.ts.map +0 -1
- package/dist/typography/HeaderPage.d.ts.map +0 -1
- package/dist/typography/HeaderSection.d.ts.map +0 -1
- package/dist/typography/LabelAnnotation.d.ts.map +0 -1
- package/dist/typography/LabelCaption.d.ts.map +0 -1
- package/dist/typography/LabelPage.d.ts.map +0 -1
- package/dist/typography/LabelSection.d.ts.map +0 -1
- package/dist/typography/NoteCaption.d.ts.map +0 -1
- package/dist/typography/NotePage.d.ts.map +0 -1
- package/dist/typography/NoteSection.d.ts.map +0 -1
- package/dist/typography/TaglineAnnotation.d.ts.map +0 -1
- package/dist/typography/TaglineCaption.d.ts.map +0 -1
- package/dist/typography/TaglineFootext.d.ts.map +0 -1
- package/dist/typography/TaglineSection.d.ts.map +0 -1
- package/dist/typography/index.d.ts.map +0 -1
- package/dist/utils/_inlineCreatePortal.d.ts.map +0 -1
- package/dist/utils/_normalizeArrowKey.d.ts +0 -10
- package/dist/utils/_normalizeArrowKey.d.ts.map +0 -1
- package/dist/utils/_simulateChangeEvent.d.ts +0 -25
- package/dist/utils/_simulateChangeEvent.d.ts.map +0 -1
- package/dist/utils/cleanHtml.d.ts.map +0 -1
- package/dist/utils/createUniversalPortal.d.ts.map +0 -1
- package/dist/utils/cx.d.ts +0 -22
- package/dist/utils/cx.d.ts.map +0 -1
- package/dist/utils/getBreakpointsValues.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/noop.d.ts +0 -9
- package/dist/utils/noop.d.ts.map +0 -1
- package/dist/utils/scrollLock/index.d.ts +0 -7
- package/dist/utils/scrollLock/index.d.ts.map +0 -1
- package/dist/utils/scrollLock/scrollLock.styles.d.ts +0 -6
- package/dist/utils/scrollLock/scrollLock.styles.d.ts.map +0 -1
- package/dist/utils/scrollLock/useBodyScrollLock.d.ts.map +0 -1
- package/dist/utils/scrollTop.d.ts +0 -8
- package/dist/utils/scrollTop.d.ts.map +0 -1
- package/dist/utils/sx.d.ts +0 -174
- package/dist/utils/sx.d.ts.map +0 -1
- package/dist/utils/types.d.ts.map +0 -1
- package/theme/__snapshots__/chotot.spec.js.snap +0 -519
- package/theme/__snapshots__/mudah.spec.js.snap +0 -161
- package/theme/chotot.js +0 -1336
- package/theme/chotot.spec.js +0 -72
- package/theme/ct-job.js +0 -92
- package/theme/ct-pty.js +0 -92
- package/theme/ct-veh.js +0 -92
- package/theme/index.ts +0 -10
- package/theme/mudah.js +0 -333
- package/theme/mudah.spec.js +0 -9
- package/theme/types.ts +0 -61
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
type Space = (typeof keyOfSpace)[number];
|
|
4
|
-
declare const getSpaces: (value: string[] | string, defaultValue: string) => any[];
|
|
1
|
+
import { SpaceToken } from '../../utils/themeTokens';
|
|
2
|
+
import type * as React from 'react';
|
|
5
3
|
export interface LegacyPopupProps {
|
|
6
4
|
/**
|
|
7
5
|
* Popup title
|
|
@@ -10,7 +8,7 @@ export interface LegacyPopupProps {
|
|
|
10
8
|
/**
|
|
11
9
|
* Popup content
|
|
12
10
|
*/
|
|
13
|
-
children
|
|
11
|
+
children?: React.ReactNode;
|
|
14
12
|
/**
|
|
15
13
|
* Popup max-width on desktop
|
|
16
14
|
*/
|
|
@@ -50,18 +48,9 @@ export interface LegacyPopupProps {
|
|
|
50
48
|
/**
|
|
51
49
|
* [Responsive Prop] Popup content padding (Popup header excluded)
|
|
52
50
|
*/
|
|
53
|
-
padding?:
|
|
51
|
+
padding?: SpaceToken | Array<SpaceToken | null | undefined>;
|
|
54
52
|
/**
|
|
55
53
|
* To apply `overflow-y: visible` for the `ChildrenWrapper` in some specific case that have to use some `custom Dropdown relatives` inside Popup
|
|
56
54
|
*/
|
|
57
55
|
childrenOverflowVisible?: boolean;
|
|
58
56
|
}
|
|
59
|
-
/**
|
|
60
|
-
* Popup is a pattern that allow sliding in supplement floating contents (such as filters) on top of current one.
|
|
61
|
-
*
|
|
62
|
-
* `✅ Stable`
|
|
63
|
-
*/
|
|
64
|
-
declare const LegacyPopup: React.FC<LegacyPopupProps>;
|
|
65
|
-
export { getSpaces };
|
|
66
|
-
export default LegacyPopup;
|
|
67
|
-
//# sourceMappingURL=LegacyPopup.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MultiSearchDropdownProps } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Search Input component that carefully takes care of accessibility
|
|
5
|
+
* and allow keyboard controls.
|
|
6
|
+
*
|
|
7
|
+
* `✅ Stable`
|
|
8
|
+
*/
|
|
9
|
+
export declare const MultiSearchDropdown: React.FC<MultiSearchDropdownProps>;
|
|
10
|
+
export default MultiSearchDropdown;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default, MultiSearchDropdown } from './MultiSearchDropdown';
|
|
2
|
+
export { multiSearchDropdownVariants } from './multi-search-dropdown.styles';
|
|
3
|
+
export type { MultiSearchDropdownVariants } from './multi-search-dropdown.styles';
|
|
4
|
+
export type { MultiSearchDropdownOption, MultiSearchDropdownProps, } from './types';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants/lite';
|
|
2
|
+
export declare const multiSearchDropdownVariants: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
status: {
|
|
4
|
+
default: "";
|
|
5
|
+
error: "error";
|
|
6
|
+
};
|
|
7
|
+
}, undefined, "msd-wrapper", {
|
|
8
|
+
status: {
|
|
9
|
+
default: "";
|
|
10
|
+
error: "error";
|
|
11
|
+
};
|
|
12
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
13
|
+
status: {
|
|
14
|
+
default: "";
|
|
15
|
+
error: "error";
|
|
16
|
+
};
|
|
17
|
+
}, undefined>>;
|
|
18
|
+
export type MultiSearchDropdownVariants = VariantProps<typeof multiSearchDropdownVariants>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { CladSize } from '../../utils/sizes';
|
|
2
|
+
import { MultiSearchDropdownVariants } from './multi-search-dropdown.styles';
|
|
3
|
+
import type * as React from 'react';
|
|
3
4
|
export type MultiSearchDropdownOption = {
|
|
4
5
|
/** to display at input */
|
|
5
6
|
text: string;
|
|
@@ -8,7 +9,7 @@ export type MultiSearchDropdownOption = {
|
|
|
8
9
|
/** arbitrary data object */
|
|
9
10
|
data: unknown;
|
|
10
11
|
};
|
|
11
|
-
export interface MultiSearchDropdownProps {
|
|
12
|
+
export interface MultiSearchDropdownProps extends MultiSearchDropdownVariants {
|
|
12
13
|
/**
|
|
13
14
|
* The id attribute of this component
|
|
14
15
|
*/
|
|
@@ -52,7 +53,7 @@ export interface MultiSearchDropdownProps {
|
|
|
52
53
|
/**
|
|
53
54
|
* Input width
|
|
54
55
|
*/
|
|
55
|
-
width?:
|
|
56
|
+
width?: CladSize;
|
|
56
57
|
/**
|
|
57
58
|
* Callback when input is blur
|
|
58
59
|
*/
|
|
@@ -72,7 +73,7 @@ export interface MultiSearchDropdownProps {
|
|
|
72
73
|
/**
|
|
73
74
|
* Input menu max-height
|
|
74
75
|
*/
|
|
75
|
-
menuMaxHeight?:
|
|
76
|
+
menuMaxHeight?: CladSize;
|
|
76
77
|
/**
|
|
77
78
|
* Disable the input
|
|
78
79
|
*/
|
|
@@ -89,22 +90,8 @@ export interface MultiSearchDropdownProps {
|
|
|
89
90
|
* Custom helptext
|
|
90
91
|
*/
|
|
91
92
|
helptextClassName?: string;
|
|
92
|
-
/**
|
|
93
|
-
* Input status (useful when implemented with form validation)
|
|
94
|
-
*/
|
|
95
|
-
status?: 'default' | 'error';
|
|
96
93
|
/**
|
|
97
94
|
* Component classname
|
|
98
95
|
*/
|
|
99
96
|
className?: string;
|
|
100
97
|
}
|
|
101
|
-
/**
|
|
102
|
-
* Search Input component that carefully takes care of accessibility
|
|
103
|
-
and allow keyboard controls.
|
|
104
|
-
*
|
|
105
|
-
* `✅ Stable`
|
|
106
|
-
*
|
|
107
|
-
*/
|
|
108
|
-
declare const MultiSearchDropdown: React.FC<MultiSearchDropdownProps>;
|
|
109
|
-
export default MultiSearchDropdown;
|
|
110
|
-
//# sourceMappingURL=MultiSearchDropdown.d.ts.map
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Page number
|
|
5
|
-
*/
|
|
6
|
-
page?: number;
|
|
7
|
-
/**
|
|
8
|
-
* Whether the page is active
|
|
9
|
-
*/
|
|
10
|
-
isActive?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Additional className
|
|
13
|
-
*/
|
|
14
|
-
className?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Ref to the DOM node.
|
|
17
|
-
*/
|
|
18
|
-
ref?: ReactRef<HTMLButtonElement | null>;
|
|
19
|
-
}
|
|
20
|
-
declare const PageItem: import('../../utils/types').InternalForwardRefRenderFunction<"button", PageItemProps>;
|
|
1
|
+
import { PageItemProps } from './types';
|
|
2
|
+
declare const PageItem: import('../../types').InternalForwardRefRenderFunction<"button", PageItemProps>;
|
|
3
|
+
export { PageItem };
|
|
21
4
|
export default PageItem;
|
|
22
|
-
//# sourceMappingURL=PageItem.d.ts.map
|
|
@@ -1,49 +1,5 @@
|
|
|
1
|
+
import { PaginationProps } from './types';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
export interface PaginationProps {
|
|
3
|
-
/**
|
|
4
|
-
* Additional className
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Current page number
|
|
9
|
-
*/
|
|
10
|
-
currentPage: number;
|
|
11
|
-
/**
|
|
12
|
-
* Total number of pages
|
|
13
|
-
*/
|
|
14
|
-
totalPages: number;
|
|
15
|
-
/**
|
|
16
|
-
* Number of pages to show before and after current page
|
|
17
|
-
* @default 1
|
|
18
|
-
*/
|
|
19
|
-
siblingCount?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Show previous and next action buttons
|
|
22
|
-
* @default true
|
|
23
|
-
*/
|
|
24
|
-
showActionButtons?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Callback when page changes
|
|
27
|
-
*/
|
|
28
|
-
onChange?: (page: number) => void;
|
|
29
|
-
/**
|
|
30
|
-
* Callback when next page is clicked
|
|
31
|
-
*/
|
|
32
|
-
onNextPage?: () => void;
|
|
33
|
-
/**
|
|
34
|
-
* Callback when previous page is clicked
|
|
35
|
-
*/
|
|
36
|
-
onPreviousPage?: () => void;
|
|
37
|
-
/**
|
|
38
|
-
* Render page item
|
|
39
|
-
*/
|
|
40
|
-
renderPageItem?: (page: {
|
|
41
|
-
onClick: () => void;
|
|
42
|
-
key: string | number;
|
|
43
|
-
page: number;
|
|
44
|
-
isActive: boolean;
|
|
45
|
-
}) => React.ReactNode;
|
|
46
|
-
}
|
|
47
3
|
declare const Pagination: React.FC<PaginationProps>;
|
|
4
|
+
export { Pagination };
|
|
48
5
|
export default Pagination;
|
|
49
|
-
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Pagination } from './Pagination';
|
|
2
|
+
export { PageItem } from './PageItem';
|
|
3
|
+
export type { PaginationProps, PageItemProps } from './types';
|
|
4
|
+
export { paginationVariants, pageItemVariants } from './pagination.styles';
|
|
5
|
+
export type { PageItemVariants } from './pagination.styles';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants/lite';
|
|
2
|
+
export declare const paginationVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "pagination", {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
3
|
+
export declare const pageItemVariants: import('tailwind-variants').TVReturnType<{
|
|
4
|
+
variant: {
|
|
5
|
+
action: "page-item--action";
|
|
6
|
+
ellipsis: "page-item--ellipsis";
|
|
7
|
+
};
|
|
8
|
+
isActive: {
|
|
9
|
+
true: "page-item--active";
|
|
10
|
+
};
|
|
11
|
+
disabled: {
|
|
12
|
+
true: "page-item--disabled";
|
|
13
|
+
};
|
|
14
|
+
}, undefined, "page-item", {
|
|
15
|
+
variant: {
|
|
16
|
+
action: "page-item--action";
|
|
17
|
+
ellipsis: "page-item--ellipsis";
|
|
18
|
+
};
|
|
19
|
+
isActive: {
|
|
20
|
+
true: "page-item--active";
|
|
21
|
+
};
|
|
22
|
+
disabled: {
|
|
23
|
+
true: "page-item--disabled";
|
|
24
|
+
};
|
|
25
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
26
|
+
variant: {
|
|
27
|
+
action: "page-item--action";
|
|
28
|
+
ellipsis: "page-item--ellipsis";
|
|
29
|
+
};
|
|
30
|
+
isActive: {
|
|
31
|
+
true: "page-item--active";
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
true: "page-item--disabled";
|
|
35
|
+
};
|
|
36
|
+
}, undefined>>;
|
|
37
|
+
export type PageItemVariants = VariantProps<typeof pageItemVariants>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { HTMLCladUIProps, ReactRef } from '../../types';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export interface PageItemProps extends HTMLCladUIProps<'button'> {
|
|
4
|
+
/**
|
|
5
|
+
* Page number
|
|
6
|
+
*/
|
|
7
|
+
page?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the page is active
|
|
10
|
+
*/
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Additional className
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Ref to the DOM node.
|
|
18
|
+
*/
|
|
19
|
+
ref?: ReactRef<HTMLButtonElement | null>;
|
|
20
|
+
}
|
|
21
|
+
export interface PaginationProps {
|
|
22
|
+
/**
|
|
23
|
+
* Additional className
|
|
24
|
+
*/
|
|
25
|
+
className?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Current page number
|
|
28
|
+
*/
|
|
29
|
+
currentPage: number;
|
|
30
|
+
/**
|
|
31
|
+
* Total number of pages
|
|
32
|
+
*/
|
|
33
|
+
totalPages: number;
|
|
34
|
+
/**
|
|
35
|
+
* Number of pages to show before and after current page
|
|
36
|
+
* @default 1
|
|
37
|
+
*/
|
|
38
|
+
siblingCount?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Show previous and next action buttons
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
showActionButtons?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Callback when page changes
|
|
46
|
+
*/
|
|
47
|
+
onChange?: (page: number) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Callback when next page is clicked
|
|
50
|
+
*/
|
|
51
|
+
onNextPage?: () => void;
|
|
52
|
+
/**
|
|
53
|
+
* Callback when previous page is clicked
|
|
54
|
+
*/
|
|
55
|
+
onPreviousPage?: () => void;
|
|
56
|
+
/**
|
|
57
|
+
* Render page item
|
|
58
|
+
*/
|
|
59
|
+
renderPageItem?: (page: {
|
|
60
|
+
onClick: () => void;
|
|
61
|
+
key: string | number;
|
|
62
|
+
page: number;
|
|
63
|
+
isActive: boolean;
|
|
64
|
+
className?: string;
|
|
65
|
+
}) => React.ReactNode;
|
|
66
|
+
}
|
|
@@ -1,45 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* The `anchorEl` is used to set the position of the popover.
|
|
6
|
-
*/
|
|
7
|
-
anchorEl: React.RefObject<HTMLElement>;
|
|
8
|
-
/**
|
|
9
|
-
* If `true`, the popover is visible.
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
open?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Callback fired when the popover is outside clicked.
|
|
15
|
-
*/
|
|
16
|
-
onOutsideClick?: () => void;
|
|
17
|
-
/**
|
|
18
|
-
* Callback fired when the mouse leaves the popover.
|
|
19
|
-
*/
|
|
20
|
-
onOutsideHover?: () => void;
|
|
21
|
-
/**
|
|
22
|
-
* The `placement` of the popover.
|
|
23
|
-
* @default 'top-center'
|
|
24
|
-
*/
|
|
25
|
-
placement?: Placement;
|
|
26
|
-
/**
|
|
27
|
-
* If `true`, the popover will be placed in a more visible place.
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
autoPlacement?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Distance from the anchor element to the popover.
|
|
33
|
-
* @default 0
|
|
34
|
-
*/
|
|
35
|
-
offset?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Width of the popover.
|
|
38
|
-
* @default max width of the anchor element
|
|
39
|
-
*/
|
|
40
|
-
width?: number;
|
|
41
|
-
children?: React.ReactNode;
|
|
42
|
-
}
|
|
43
|
-
declare const Popover: React.FC<PopoverProps & React.HTMLAttributes<HTMLDivElement>>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { PopoverProps } from './types';
|
|
3
|
+
declare const Popover: FC<PopoverProps>;
|
|
4
|
+
export { Popover };
|
|
44
5
|
export default Popover;
|
|
45
|
-
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const popoverVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "popover", {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { RefObject, ReactNode } from 'react';
|
|
2
|
+
import { Placement } from '../../utils/floating';
|
|
3
|
+
import { HTMLCladUIProps } from '../../types';
|
|
4
|
+
export type PopoverPlacement = Placement;
|
|
5
|
+
export type PopoverProps = Omit<HTMLCladUIProps<'div'>, 'as'> & {
|
|
6
|
+
/**
|
|
7
|
+
* The `anchorEl` is used to set the position of the popover.
|
|
8
|
+
*/
|
|
9
|
+
anchorEl: RefObject<HTMLElement | null>;
|
|
10
|
+
/**
|
|
11
|
+
* If `true`, the popover is visible.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Callback fired when the popover is outside clicked.
|
|
17
|
+
*/
|
|
18
|
+
onOutsideClick?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Callback fired when the mouse leaves the popover.
|
|
21
|
+
*/
|
|
22
|
+
onOutsideHover?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* The `placement` of the popover.
|
|
25
|
+
* @default 'top-center'
|
|
26
|
+
*/
|
|
27
|
+
placement?: PopoverPlacement;
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, the popover will be placed in a more visible place.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
autoPlacement?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Distance from the anchor element to the popover.
|
|
35
|
+
* @default 0
|
|
36
|
+
*/
|
|
37
|
+
offset?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Width of the popover.
|
|
40
|
+
* @default max width of the anchor element
|
|
41
|
+
*/
|
|
42
|
+
width?: number;
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PopupProps, PopupContainerProps, PopupHeaderProps, PopupHeaderItemProps, PopupBodyProps, PopupButtonProps } from './types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Popup.Container handles modal overlay, portal, backdrop, and container frame.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PopupContainer: React.FC<PopupContainerProps>;
|
|
7
|
+
/**
|
|
8
|
+
* Popup.HeaderItem renders a leading or trailing item (icon or text link).
|
|
9
|
+
*/
|
|
10
|
+
export declare const PopupHeaderItem: React.FC<PopupHeaderItemProps>;
|
|
11
|
+
/**
|
|
12
|
+
* Popup.Header renders a 48px height transparent header slot with Leading · Title · Trailing.
|
|
13
|
+
*/
|
|
14
|
+
export declare const PopupHeader: React.FC<PopupHeaderProps>;
|
|
15
|
+
/**
|
|
16
|
+
* Popup.Body renders the scrollable blank canvas content region.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PopupBody: React.FC<PopupBodyProps>;
|
|
19
|
+
/**
|
|
20
|
+
* Popup.Button renders the bottom action row.
|
|
21
|
+
*/
|
|
22
|
+
export declare const PopupButton: React.FC<PopupButtonProps>;
|
|
23
|
+
export interface PopupCompound {
|
|
24
|
+
Container: typeof PopupContainer;
|
|
25
|
+
Header: typeof PopupHeader;
|
|
26
|
+
HeaderItem: typeof PopupHeaderItem;
|
|
27
|
+
Body: typeof PopupBody;
|
|
28
|
+
Button: typeof PopupButton;
|
|
29
|
+
}
|
|
30
|
+
export declare const Popup: React.FC<PopupProps> & PopupCompound;
|
|
31
|
+
export default Popup;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Popup, PopupContainer, PopupHeader, PopupHeaderItem, PopupBody, PopupButton, } from './Popup';
|
|
2
|
+
export type { PopupCompound } from './Popup';
|
|
3
|
+
export type { PopupProps, PopupContainerProps, PopupHeaderProps, PopupHeaderItemProps, PopupHeaderItemType, PopupBodyProps, PopupButtonProps, PopupButtonColor, } from './types';
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { ButtonVariants } from '../Button/button.styles';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
export type PopupButtonColor = NonNullable<ButtonVariants['color']>;
|
|
4
|
+
export interface PopupContainerProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* Whether this is open or not
|
|
8
|
+
*/
|
|
9
|
+
open?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Callback when backdrop or close button is clicked
|
|
12
|
+
*/
|
|
13
|
+
onClose?: React.MouseEventHandler<HTMLElement>;
|
|
14
|
+
/**
|
|
15
|
+
* Custom CSS class name for popup container
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Bypass body scroll lock
|
|
20
|
+
*/
|
|
21
|
+
needBypassScrollLock?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export type PopupHeaderItemType = 'icon' | 'textLink';
|
|
24
|
+
export interface PopupHeaderItemProps {
|
|
25
|
+
/**
|
|
26
|
+
* Item type: 'icon' (default) or 'textLink'
|
|
27
|
+
*/
|
|
28
|
+
type?: PopupHeaderItemType;
|
|
29
|
+
/**
|
|
30
|
+
* Icon element (24x24) when type is 'icon'
|
|
31
|
+
*/
|
|
32
|
+
icon?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Text label when type is 'textLink'
|
|
35
|
+
*/
|
|
36
|
+
text?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Click handler
|
|
39
|
+
*/
|
|
40
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
41
|
+
/**
|
|
42
|
+
* Custom class name
|
|
43
|
+
*/
|
|
44
|
+
className?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface PopupHeaderProps {
|
|
47
|
+
/**
|
|
48
|
+
* Title of the popup
|
|
49
|
+
*/
|
|
50
|
+
title?: React.ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* Leading element (e.g. Close icon or Back icon/textLink)
|
|
53
|
+
*/
|
|
54
|
+
leading?: React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Trailing element (e.g. Close icon or Action textLink)
|
|
57
|
+
*/
|
|
58
|
+
trailing?: React.ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* Custom class name
|
|
61
|
+
*/
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface PopupBodyProps {
|
|
65
|
+
/**
|
|
66
|
+
* Main content of the popup
|
|
67
|
+
*/
|
|
68
|
+
children: React.ReactNode;
|
|
69
|
+
/**
|
|
70
|
+
* Custom class name
|
|
71
|
+
*/
|
|
72
|
+
className?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Allow children overflow visible
|
|
75
|
+
*/
|
|
76
|
+
childrenOverflowVisible?: boolean;
|
|
77
|
+
}
|
|
78
|
+
export interface PopupButtonProps {
|
|
79
|
+
/**
|
|
80
|
+
* Button actions content
|
|
81
|
+
*/
|
|
82
|
+
children: React.ReactNode;
|
|
83
|
+
/**
|
|
84
|
+
* Layout direction for 2 buttons: 'horizontal' (default) or 'vertical'
|
|
85
|
+
*/
|
|
86
|
+
direction?: 'horizontal' | 'vertical';
|
|
87
|
+
/**
|
|
88
|
+
* Custom class name
|
|
89
|
+
*/
|
|
90
|
+
className?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface PopupProps extends PopupContainerProps {
|
|
93
|
+
/**
|
|
94
|
+
* Dialog title (legacy prop)
|
|
95
|
+
*/
|
|
96
|
+
title?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Primary button label (legacy prop)
|
|
99
|
+
*/
|
|
100
|
+
primaryBtnLabel?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Secondary button label (legacy prop)
|
|
103
|
+
*/
|
|
104
|
+
secondaryBtnLabel?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Button Group Direction (legacy prop)
|
|
107
|
+
*/
|
|
108
|
+
btnGroupDirection?: 'column' | 'row';
|
|
109
|
+
/**
|
|
110
|
+
* Button Group Position (legacy prop)
|
|
111
|
+
*/
|
|
112
|
+
btnRowPosition?: 'justify' | 'left' | 'right';
|
|
113
|
+
/**
|
|
114
|
+
* Show/Hide Close Button (legacy prop)
|
|
115
|
+
*/
|
|
116
|
+
haveClose?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Header Image Source (legacy prop)
|
|
119
|
+
*/
|
|
120
|
+
img?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Header Image Size/Hide (legacy prop)
|
|
123
|
+
*/
|
|
124
|
+
imgSize?: 'lg' | 'md' | 'sm';
|
|
125
|
+
/**
|
|
126
|
+
* Callback when dialog main button is clicked (legacy prop)
|
|
127
|
+
*/
|
|
128
|
+
onPrimaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
129
|
+
/**
|
|
130
|
+
* Callback when dialog secondary button is clicked (legacy prop)
|
|
131
|
+
*/
|
|
132
|
+
onSecondaryButtonClick?: React.MouseEventHandler<HTMLButtonElement> | null;
|
|
133
|
+
/**
|
|
134
|
+
* Primary Button Color (legacy prop)
|
|
135
|
+
*/
|
|
136
|
+
primaryColor?: PopupButtonColor;
|
|
137
|
+
/**
|
|
138
|
+
* Secondary Button Color (legacy prop)
|
|
139
|
+
*/
|
|
140
|
+
secondaryColor?: PopupButtonColor;
|
|
141
|
+
/**
|
|
142
|
+
* To apply `overflow-y: visible` for the `ChildrenWrapper` (legacy prop)
|
|
143
|
+
*/
|
|
144
|
+
childrenOverflowVisible?: boolean;
|
|
145
|
+
}
|
|
@@ -1,52 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
/**
|
|
5
|
-
* Radio button id
|
|
6
|
-
*/
|
|
7
|
-
id?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Radio button className
|
|
10
|
-
*/
|
|
11
|
-
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Radio button name, must have the same name for multiple radio button use case
|
|
14
|
-
*/
|
|
15
|
-
name?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Radio button value
|
|
18
|
-
*/
|
|
19
|
-
value?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Whether this radio button is checked initially or not
|
|
22
|
-
*/
|
|
23
|
-
checked?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Radio button label
|
|
26
|
-
*/
|
|
27
|
-
label?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Width of container
|
|
30
|
-
*/
|
|
31
|
-
width?: Sizes;
|
|
32
|
-
/**
|
|
33
|
-
* Change radio buttons active state color
|
|
34
|
-
*/
|
|
35
|
-
color?: 'accent' | 'caution' | 'critical' | 'info' | 'neutral' | 'positive' | 'primary' | 'secondary';
|
|
36
|
-
/**
|
|
37
|
-
* Whether this Radio button is disabled initially or not
|
|
38
|
-
*/
|
|
39
|
-
disabled?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Change event
|
|
42
|
-
*/
|
|
43
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Renders a radio button element.
|
|
47
|
-
*
|
|
48
|
-
* `✅ Stable`
|
|
49
|
-
*/
|
|
50
|
-
declare const RadioButton: React.FC<RadioButtonProps>;
|
|
1
|
+
import { RadioButtonProps } from './types';
|
|
2
|
+
declare const RadioButton: import('../../types').InternalForwardRefRenderFunction<"label", RadioButtonProps>;
|
|
3
|
+
export { RadioButton };
|
|
51
4
|
export default RadioButton;
|
|
52
|
-
//# sourceMappingURL=RadioButton.d.ts.map
|