@konstructio/ui 0.1.2-alpha.111 → 0.1.2-alpha.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AdditionalOptions-D3SZ2WFJ.js → AdditionalOptions-ClcR_Kf7.js} +1 -1
- package/dist/{AlertDialogTrigger-Cdw3C2Tv.js → AlertDialogTrigger-C9xoCZrZ.js} +33 -33
- package/dist/Checkbox-DRdyrKjk.js +252 -0
- package/dist/CollapsedSteps-CR7oCTRC.js +112 -0
- package/dist/{CommandInput-DiRv6fEA.js → CommandInput-Du2o616y.js} +1 -1
- package/dist/Counter-DMkXIsOO.js +229 -0
- package/dist/DropdownButton-JilCRLJY.js +92 -0
- package/dist/FlagSelectorList-iZ3gUVpf.js +954 -0
- package/dist/{HamburgerTrigger-DjHmNEJD.js → HamburgerTrigger-BgeS_nBA.js} +15 -15
- package/dist/Modal-CysTe3zL.js +83 -0
- package/dist/Spinner-CTonkSzG.js +47 -0
- package/dist/Switch-5cdUxbhX.js +215 -0
- package/dist/{Wrapper-MmlrJppS.js → Wrapper-BCi_pLOr.js} +38 -38
- package/dist/{Wrapper-BxfB3BDa.js → Wrapper-ThpRi_Gg.js} +9 -9
- package/dist/components/Alert/Alert.js +45 -41
- package/dist/components/AlertDialog/AlertDialog.js +42 -42
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Avatar/Avatar.js +37 -0
- package/dist/components/Avatar/Avatar.variants.js +25 -0
- package/dist/components/Avatar/hooks/index.js +5 -0
- package/dist/components/Avatar/hooks/use-gravatar-url.js +25 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +40 -0
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/BadgeGroup/BadgeGroup.js +62 -0
- package/dist/components/BadgeGroup/hooks/index.js +4 -0
- package/dist/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.js +50 -0
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +4 -0
- package/dist/components/Breadcrumb/components/index.js +6 -4
- package/dist/components/Button/Button.js +25 -19
- package/dist/components/Button/Button.variants.js +4 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +16 -16
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +8 -8
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxCard/CheckboxCard.js +52 -0
- package/dist/components/Collapse/Collapse.js +63 -0
- package/dist/components/Command/Command.js +5 -5
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +110 -0
- package/dist/components/CopyButton/CopyButton.js +29 -29
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/Counter/Counter.variants.js +73 -16
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +23 -31
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +26 -0
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +8 -8
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +13 -13
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +15 -16
- package/dist/components/Datepicker/DatePicker.js +14 -49
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +51 -0
- package/dist/components/Drawer/Drawer.js +18 -18
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +10 -11
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/hooks/useFormattedDateRange/useFormattedDateRange.js +25 -22
- package/dist/components/Filter/components/DateFilterDropdown/hooks/useDateFilterDropdown/useDateFilterDropdown.js +16 -16
- package/dist/components/Filter/components/DateRangeFilterDropdown/hooks/useDateRangeFilterDropdown/useDateRangeFilterDropdown.js +29 -29
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +10 -10
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/hooks/index.js +3 -1
- package/dist/components/Filter/hooks/useLocale.js +16 -0
- package/dist/components/Filter/utils/index.js +6 -2
- package/dist/components/LineChart/LineChart.js +18 -125
- package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +127 -0
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +22 -3
- package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/MultiSelectDropdown/components/index.js +1 -1
- package/dist/components/OtpInput/OtpInput.js +103 -0
- package/dist/components/PasswordRules/PasswordRules.js +51 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +39 -10
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +4 -4
- package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +15 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +15 -15
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +2 -2
- package/dist/components/PhoneNumberInput/contexts/index.js +4 -4
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PieChart/PieChart.js +10 -53
- package/dist/components/PieChart/components/PieChartContent/PieChartContent.js +56 -0
- package/dist/components/ProgressBar/ProgressBar.js +10 -10
- package/dist/components/RadioCard/RadioCard.js +36 -18
- package/dist/components/RadioCard/RadioCard.variants.js +9 -3
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/List/List.js +10 -10
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +15 -15
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +66 -42
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +10 -4
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +91 -86
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +18 -0
- package/dist/components/Skeleton/Skeleton.variants.js +25 -0
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.js +38 -29
- package/dist/components/Stepper/Stepper.variants.js +55 -19
- package/dist/components/Stepper/hooks/useStepItemLogic.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +52 -24
- package/dist/components/Tabs/Tabs.variants.js +15 -6
- package/dist/components/Tabs/components/Content.js +6 -6
- package/dist/components/Tabs/components/List.js +10 -10
- package/dist/components/Tabs/components/Trigger.js +11 -10
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagsInput/TagsInput.js +159 -0
- package/dist/components/Toast/Toast.js +68 -2
- package/dist/components/Toast/components/ToastCard/ToastCard.js +27 -27
- package/dist/components/Tooltip/Tooltip.js +32 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -101
- package/dist/components/VirtualizedTable/components/Actions/Actions.variants.js +18 -5
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +29 -19
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +66 -33
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +31 -29
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.js +23 -20
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.js +51 -45
- package/dist/components/VirtualizedTable/components/Body/Body.js +6 -6
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +22 -22
- package/dist/components/VirtualizedTable/components/EmptyResults/EmptyResults.js +30 -0
- package/dist/components/VirtualizedTable/components/EmptyState/EmptyState.js +32 -0
- package/dist/components/VirtualizedTable/components/ErrorState/ErrorState.js +35 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +5 -5
- package/dist/components/VirtualizedTable/components/Header/Header.js +4 -4
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +46 -39
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +91 -0
- package/dist/components/VirtualizedTable/components/index.js +18 -12
- package/dist/components/VirtualizedTable/contexts/index.js +6 -6
- package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/utils/index.js +4 -4
- package/dist/components/index.js +180 -154
- package/dist/components-B_SWqhCL.js +147 -0
- package/dist/{utils-DVYdP0CJ.js → country-locale-map-DbrJ3bEE.js} +373 -373
- package/dist/{debounce-BdyZeJQk.js → debounce-dMRJxNsT.js} +3 -3
- package/dist/{dist-DcFwF4XM.js → dist-1AtWkIZ4.js} +268 -260
- package/dist/{dist-CgzF5_J6.js → dist-4IVGO6ZT.js} +4 -4
- package/dist/dist-BCoDIdCt.js +429 -0
- package/dist/{dist-Bi8Y5nEx.js → dist-BXv-jY2v.js} +60 -55
- package/dist/{dist-C4j75TwZ.js → dist-BbJP2Efh.js} +2 -2
- package/dist/dist-Bh7M0KDN.js +367 -0
- package/dist/dist-BqDJX7m1.js +209 -0
- package/dist/dist-C0OhTLFV.js +31 -0
- package/dist/dist-C1a-68Kb.js +120 -0
- package/dist/dist-CK8FUUUn.js +125 -0
- package/dist/dist-CQSCPpFc.js +196 -0
- package/dist/{dist-CCdbu9GU.js → dist-CYuWoi9I.js} +1 -1
- package/dist/{dist-DX0sBG3Q.js → dist-C_jtUTU9.js} +5 -6
- package/dist/{dist-D-yS0HN8.js → dist-DbeY0Pzx.js} +6 -6
- package/dist/dist-fPYIsxyx.js +465 -0
- package/dist/dist-rsFD9q_X.js +484 -0
- package/dist/{dist-BUocnzkM.js → dist-uuWgjOcO.js} +1 -1
- package/dist/dist-vDSmnSS_.js +41 -0
- package/dist/dist-vUCyiTQy.js +365 -0
- package/dist/es2015-ChhQTsb4.js +74 -0
- package/dist/index.js +194 -168
- package/dist/{isObject-pLoSfdr0.js → isSymbol-BG9higgO.js} +14 -14
- package/dist/lib/components/Alert/Alert.types.d.ts +4 -0
- package/dist/lib/components/Avatar/Avatar.d.ts +14 -0
- package/dist/lib/components/Avatar/Avatar.types.d.ts +21 -0
- package/dist/lib/components/Avatar/Avatar.variants.d.ts +3 -0
- package/dist/lib/components/Avatar/hooks/index.d.ts +1 -0
- package/dist/lib/components/Avatar/hooks/use-gravatar-url.d.ts +2 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/lib/components/AvatarGroup/AvatarGroup.types.d.ts +19 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.d.ts +15 -0
- package/dist/lib/components/BadgeGroup/BadgeGroup.types.d.ts +25 -0
- package/dist/lib/components/BadgeGroup/hooks/index.d.ts +1 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.d.ts +2 -0
- package/dist/lib/components/BadgeGroup/hooks/use-visible-badge-count/use-visible-badge-count.types.d.ts +10 -0
- package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +4 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.d.ts +3 -0
- package/dist/lib/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.types.d.ts +5 -0
- package/dist/lib/components/Breadcrumb/components/index.d.ts +1 -0
- package/dist/lib/components/Button/Button.variants.d.ts +1 -1
- package/dist/lib/components/CheckboxCard/CheckboxCard.d.ts +20 -0
- package/dist/lib/components/CheckboxCard/CheckboxCard.types.d.ts +13 -0
- package/dist/lib/components/Collapse/Collapse.d.ts +19 -0
- package/dist/lib/components/Collapse/Collapse.types.d.ts +17 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.d.ts +23 -0
- package/dist/lib/components/ConfirmDialog/ConfirmDialog.types.d.ts +46 -0
- package/dist/lib/components/Counter/Counter.d.ts +7 -4
- package/dist/lib/components/Counter/Counter.types.d.ts +23 -0
- package/dist/lib/components/Counter/Counter.variants.d.ts +10 -1
- package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.d.ts +3 -0
- package/dist/lib/components/Datepicker/components/DatePickerContent/DatePickerContent.d.ts +3 -0
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +11 -0
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useLocale.d.ts +1 -0
- package/dist/lib/components/Filter/utils/index.d.ts +1 -0
- package/dist/lib/components/LineChart/components/LineChartContent/LineChartContent.d.ts +3 -0
- package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +2 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +10 -0
- package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +4 -1
- package/dist/lib/components/OtpInput/OtpInput.d.ts +19 -0
- package/dist/lib/components/OtpInput/OtpInput.types.d.ts +32 -0
- package/dist/lib/components/PasswordRules/PasswordRules.d.ts +20 -0
- package/dist/lib/components/PasswordRules/PasswordRules.types.d.ts +24 -0
- package/dist/lib/components/PhoneNumberInput/components/PhoneNumberInputContent.d.ts +18 -0
- package/dist/lib/components/PieChart/components/PieChartContent/PieChartContent.d.ts +3 -0
- package/dist/lib/components/RadioCard/RadioCard.d.ts +11 -0
- package/dist/lib/components/RadioCard/RadioCard.types.d.ts +10 -1
- package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +2 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +6 -0
- package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +1 -0
- package/dist/lib/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/lib/components/Skeleton/Skeleton.types.d.ts +16 -0
- package/dist/lib/components/Skeleton/Skeleton.variants.d.ts +3 -0
- package/dist/lib/components/Stepper/Stepper.types.d.ts +2 -0
- package/dist/lib/components/Stepper/Stepper.variants.d.ts +7 -4
- package/dist/lib/components/Switch/Switch.types.d.ts +7 -0
- package/dist/lib/components/Tabs/Tabs.d.ts +13 -13
- package/dist/lib/components/Tabs/Tabs.types.d.ts +14 -3
- package/dist/lib/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/lib/components/TagsInput/TagsInput.d.ts +20 -0
- package/dist/lib/components/TagsInput/TagsInput.types.d.ts +37 -0
- package/dist/lib/components/Toast/Toast.types.d.ts +5 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +1 -0
- package/dist/lib/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/lib/components/Tooltip/Tooltip.types.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +8 -2
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.variants.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.types.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.d.ts +4 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-actions-menu/use-actions-menu.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.d.ts +3 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/PortalActions/hooks/use-menu-interactions/use-menu-interactions.types.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyResults/EmptyResults.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/EmptyState/EmptyState.types.d.ts +8 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/ErrorState/ErrorState.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -3
- package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +1 -0
- package/dist/lib/components/index.d.ts +10 -0
- package/dist/package.json +31 -30
- package/dist/{phone-number.provider-BASl9fGG.js → phone-number.provider-DnuL-yYF.js} +4 -4
- package/dist/styles.css +1 -1
- package/dist/{table.provider-MQ4T5Xb5.js → table.provider-CW1fpZcF.js} +80 -79
- package/package.json +31 -30
- package/dist/AnimatePresence-BsUYG9bm.js +0 -186
- package/dist/Checkbox-CrNxsm3G.js +0 -247
- package/dist/Counter-DN50BVq6.js +0 -194
- package/dist/DropdownButton-Blhkj-Oi.js +0 -490
- package/dist/FlagSelectorList-ClKGwDpS.js +0 -918
- package/dist/Modal-Bk1I_NCC.js +0 -81
- package/dist/Spinner-smR3esbL.js +0 -47
- package/dist/Switch-CPE8v6Zh.js +0 -199
- package/dist/Toast-frCWQhFC.js +0 -76
- package/dist/components-z-LYRWfq.js +0 -124
- package/dist/dist-CNui_Egg.js +0 -451
- package/dist/dist-CR3FMRzF.js +0 -118
- package/dist/dist-D5Q2IYuC.js +0 -358
- package/dist/dist-D70ZJkHf.js +0 -29
- package/dist/dist-DZ_SU77k.js +0 -437
- package/dist/dist-LRkZdylX.js +0 -174
- package/dist/dist-f8EwfITY.js +0 -194
- package/dist/dist-pWlMx4Fi.js +0 -36
- package/dist/dist-uerXivvM.js +0 -178
- package/dist/dist-xCbHbMLA.js +0 -116
- package/dist/es2015-Hhb87ipX.js +0 -231
- package/dist/react-C685EsYG.js +0 -4730
package/dist/index.js
CHANGED
|
@@ -1,186 +1,212 @@
|
|
|
1
|
-
import { t as o } from "./Checkbox-
|
|
2
|
-
import { t as m } from "./DropdownButton-
|
|
3
|
-
import { t as
|
|
1
|
+
import { t as o } from "./Checkbox-DRdyrKjk.js";
|
|
2
|
+
import { t as m } from "./DropdownButton-JilCRLJY.js";
|
|
3
|
+
import { t as p } from "./Breadcrumb-CHi5-wVa.js";
|
|
4
4
|
import { t as a } from "./Input-2M2I_H60.js";
|
|
5
|
-
import { t as s } from "./Counter-
|
|
5
|
+
import { t as s } from "./Counter-DMkXIsOO.js";
|
|
6
6
|
import { a as l, t as d } from "./utils-DnIJruo0.js";
|
|
7
|
-
import { Alert as
|
|
8
|
-
import { Button as
|
|
9
|
-
import { AlertDialog as
|
|
7
|
+
import { Alert as T } from "./components/Alert/Alert.js";
|
|
8
|
+
import { Button as C } from "./components/Button/Button.js";
|
|
9
|
+
import { AlertDialog as c } from "./components/AlertDialog/AlertDialog.js";
|
|
10
10
|
import { useClickOutside as v } from "./hooks/useClickOutside.js";
|
|
11
11
|
import { useIsHydrated as A } from "./hooks/useIsHydrated/useIsHydrated.js";
|
|
12
|
-
import { useMediaQuery as
|
|
13
|
-
import { useToggle as
|
|
12
|
+
import { useMediaQuery as I } from "./hooks/useMediaQuery.js";
|
|
13
|
+
import { useToggle as V } from "./hooks/useToggle.js";
|
|
14
14
|
import { Autocomplete as h } from "./components/Autocomplete/Autocomplete.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
15
|
+
import { Avatar as B } from "./components/Avatar/Avatar.js";
|
|
16
|
+
import { AvatarGroup as P } from "./components/AvatarGroup/AvatarGroup.js";
|
|
17
|
+
import { t as k } from "./Loading-u8hXrFJR.js";
|
|
18
|
+
import { Badge as M } from "./components/Badge/Badge.js";
|
|
19
|
+
import { Tooltip as O } from "./components/Tooltip/Tooltip.js";
|
|
20
|
+
import { BadgeGroup as G } from "./components/BadgeGroup/BadgeGroup.js";
|
|
21
|
+
import { Typography as z } from "./components/Typography/Typography.js";
|
|
22
|
+
import { ButtonGroup as Q } from "./components/ButtonGroup/ButtonGroup.js";
|
|
23
|
+
import { Card as X } from "./components/Card/Card.js";
|
|
24
|
+
import { CheckboxCard as q } from "./components/CheckboxCard/CheckboxCard.js";
|
|
25
|
+
import { Collapse as K } from "./components/Collapse/Collapse.js";
|
|
26
|
+
import { CopyButton as Z } from "./components/CopyButton/CopyButton.js";
|
|
27
|
+
import { t as rr } from "./Modal-CysTe3zL.js";
|
|
28
|
+
import { ConfirmDialog as tr } from "./components/ConfirmDialog/ConfirmDialog.js";
|
|
29
|
+
import { DatePicker as ir } from "./components/Datepicker/DatePicker.js";
|
|
30
|
+
import { Radio as er } from "./components/Radio/Radio.js";
|
|
31
|
+
import { RadioGroup as fr } from "./components/RadioGroup/RadioGroup.js";
|
|
32
|
+
import { TimePicker as nr } from "./components/TimePicker/TimePicker.js";
|
|
33
|
+
import { DateRangePicker as dr } from "./components/DateRangePicker/DateRangePicker.js";
|
|
34
|
+
import { Divider as Tr } from "./components/Divider/Divider.js";
|
|
35
|
+
import { Drawer as Cr } from "./components/Drawer/Drawer.js";
|
|
36
|
+
import { BadgeMultiSelect as cr } from "./components/Filter/components/BadgeDropdown/BadgeMultiSelect.js";
|
|
37
|
+
import { CustomDateRangeFilterDropdown as vr } from "./components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.js";
|
|
38
|
+
import { DateFilterDropdown as Ar } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
39
|
+
import { DateRangeFilterDropdown as Ir } from "./components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
|
|
40
|
+
import { TextMultiSelect as Vr } from "./components/Filter/components/TextMultiSelect/TextMultiSelect.js";
|
|
41
|
+
import { TimeFilterDropdown as hr } from "./components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js";
|
|
42
|
+
import { Filter as Br } from "./components/Filter/Filter.js";
|
|
43
|
+
import { t as Pr } from "./ImageUpload-BNZjCUTX.js";
|
|
44
|
+
import { LineChart as kr } from "./components/LineChart/LineChart.js";
|
|
45
|
+
import { OtpInput as Mr } from "./components/OtpInput/OtpInput.js";
|
|
46
|
+
import { PasswordRules as Or } from "./components/PasswordRules/PasswordRules.js";
|
|
47
|
+
import { t as Gr } from "./components-B_SWqhCL.js";
|
|
48
|
+
import { PhoneNumberInput as zr } from "./components/PhoneNumberInput/PhoneNumberInput.js";
|
|
49
|
+
import { PieChart as Qr } from "./components/PieChart/PieChart.js";
|
|
50
|
+
import { ProgressBar as Xr } from "./components/ProgressBar/ProgressBar.js";
|
|
51
|
+
import { RadioCard as qr } from "./components/RadioCard/RadioCard.js";
|
|
52
|
+
import { RadioCardGroup as Kr } from "./components/RadioCardGroup/RadioCardGroup.js";
|
|
53
|
+
import { Range as Zr } from "./components/Range/Range.js";
|
|
54
|
+
import { Select as ro } from "./components/Select/Select.js";
|
|
55
|
+
import { CollapseTrigger as to } from "./components/Sidebar/components/CollapseTrigger/CollapseTrigger.js";
|
|
56
|
+
import { Footer as io } from "./components/Sidebar/components/Footer/Footer.js";
|
|
57
|
+
import { Label as eo } from "./components/Sidebar/components/Label/Label.js";
|
|
58
|
+
import { Logo as fo } from "./components/Sidebar/components/Logo/Logo.js";
|
|
59
|
+
import { NavigationGroup as no } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
60
|
+
import { NavigationOption as uo } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
|
|
61
|
+
import { NavigationSeparator as go } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
62
|
+
import { Navigation as So } from "./components/Sidebar/components/Navigation/Navigation.js";
|
|
63
|
+
import { Sidebar as Do } from "./components/Sidebar/Sidebar.js";
|
|
64
|
+
import { Skeleton as Ro } from "./components/Skeleton/Skeleton.js";
|
|
65
|
+
import { Slider as Eo } from "./components/Slider/Slider.js";
|
|
66
|
+
import { t as wo } from "./Spinner-CTonkSzG.js";
|
|
67
|
+
import { horizontalConnectorWrapperVariants as bo, stepConnectorVariants as ho, stepContentVariants as Lo, stepDescriptionVariants as Bo, stepIndicatorVariants as Fo, stepItemVariants as Po, stepLabelVariants as xo, stepListVariants as ko, stepVariants as yo, stepperVariants as Mo } from "./components/Stepper/Stepper.variants.js";
|
|
68
|
+
import { Stepper as Oo } from "./components/Stepper/Stepper.js";
|
|
69
|
+
import { t as Go } from "./Switch-5cdUxbhX.js";
|
|
70
|
+
import { Table as zo } from "./components/Table/Table.js";
|
|
71
|
+
import { Content as Qo } from "./components/Tabs/components/Content.js";
|
|
72
|
+
import { List as Xo } from "./components/Tabs/components/List.js";
|
|
73
|
+
import { Trigger as qo } from "./components/Tabs/components/Trigger.js";
|
|
74
|
+
import { Tabs as Ko } from "./components/Tabs/Tabs.js";
|
|
75
|
+
import { Tag as Zo } from "./components/Tag/Tag.js";
|
|
76
|
+
import { TagSelect as rt } from "./components/TagSelect/TagSelect.js";
|
|
77
|
+
import { TagsInput as tt } from "./components/TagsInput/TagsInput.js";
|
|
78
|
+
import { TextArea as it } from "./components/TextArea/TextArea.js";
|
|
79
|
+
import { DEFAULT_MAX_VISIBLE_TOASTS as et, DEFAULT_TOAST_DURATION as at, DEFAULT_TOAST_LIMIT as ft } from "./components/Toast/constants/index.js";
|
|
80
|
+
import { createToastStore as nt } from "./components/Toast/store/create-toast-store.js";
|
|
81
|
+
import { useToastStore as dt, useToastStoreApi as ut } from "./components/Toast/hooks/useToastStore/useToastStore.js";
|
|
82
|
+
import { useToast as gt } from "./components/Toast/hooks/useToast/useToast.js";
|
|
83
|
+
import { Toast as St } from "./components/Toast/Toast.js";
|
|
84
|
+
import { ToastProvider as Dt } from "./components/Toast/ToastProvider.js";
|
|
85
|
+
import { t as Rt } from "./events.types-BG1Uh8i6.js";
|
|
86
|
+
import { sendResetFiltersEvent as Et } from "./components/VirtualizedTable/events/filters/filters.js";
|
|
87
|
+
import { sendRefreshEvent as wt } from "./components/VirtualizedTable/events/refresh/refresh.js";
|
|
88
|
+
import { sendCollapseRowEvent as bt, sendExpandRowEvent as ht, sendToggleRowEvent as Lt } from "./components/VirtualizedTable/events/row/row.js";
|
|
89
|
+
import { EmptyState as Ft } from "./components/VirtualizedTable/components/EmptyState/EmptyState.js";
|
|
90
|
+
import { EmptyResults as xt } from "./components/VirtualizedTable/components/EmptyResults/EmptyResults.js";
|
|
91
|
+
import { ErrorState as yt } from "./components/VirtualizedTable/components/ErrorState/ErrorState.js";
|
|
92
|
+
import { TruncateText as Nt } from "./components/VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
93
|
+
import { VirtualizedTable as _t } from "./components/VirtualizedTable/VirtualizedTable.js";
|
|
94
|
+
import { ThemeContext as Ut } from "./contexts/theme.context.js";
|
|
95
|
+
import { useTheme as Ht } from "./contexts/theme.hook.js";
|
|
96
|
+
import { t as Wt } from "./theme.provider-CvL6sqHq.js";
|
|
84
97
|
import "./contexts/index.js";
|
|
85
98
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
99
|
+
T as Alert,
|
|
100
|
+
c as AlertDialog,
|
|
88
101
|
h as Autocomplete,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
102
|
+
B as Avatar,
|
|
103
|
+
P as AvatarGroup,
|
|
104
|
+
M as Badge,
|
|
105
|
+
G as BadgeGroup,
|
|
106
|
+
cr as BadgeMultiSelect,
|
|
107
|
+
p as Breadcrumb,
|
|
108
|
+
C as Button,
|
|
109
|
+
Q as ButtonGroup,
|
|
110
|
+
X as Card,
|
|
95
111
|
o as Checkbox,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
112
|
+
q as CheckboxCard,
|
|
113
|
+
K as Collapse,
|
|
114
|
+
to as CollapseTrigger,
|
|
115
|
+
tr as ConfirmDialog,
|
|
116
|
+
Qo as Content,
|
|
117
|
+
Z as CopyButton,
|
|
99
118
|
s as Counter,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
119
|
+
vr as CustomDateRangeFilterDropdown,
|
|
120
|
+
et as DEFAULT_MAX_VISIBLE_TOASTS,
|
|
121
|
+
at as DEFAULT_TOAST_DURATION,
|
|
122
|
+
ft as DEFAULT_TOAST_LIMIT,
|
|
123
|
+
Ar as DateFilterDropdown,
|
|
124
|
+
ir as DatePicker,
|
|
125
|
+
Ir as DateRangeFilterDropdown,
|
|
126
|
+
dr as DateRangePicker,
|
|
127
|
+
Tr as Divider,
|
|
128
|
+
Cr as Drawer,
|
|
129
|
+
ro as Dropdown,
|
|
111
130
|
m as DropdownButton,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
131
|
+
xt as EmptyResults,
|
|
132
|
+
Ft as EmptyState,
|
|
133
|
+
yt as ErrorState,
|
|
134
|
+
Br as Filter,
|
|
135
|
+
io as Footer,
|
|
136
|
+
Pr as ImageUpload,
|
|
115
137
|
a as Input,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
138
|
+
eo as Label,
|
|
139
|
+
kr as LineChart,
|
|
140
|
+
Xo as List,
|
|
141
|
+
k as Loading,
|
|
142
|
+
fo as Logo,
|
|
143
|
+
rr as Modal,
|
|
144
|
+
Gr as MultiSelectDropdown,
|
|
145
|
+
So as Navigation,
|
|
146
|
+
no as NavigationGroup,
|
|
147
|
+
uo as NavigationOption,
|
|
148
|
+
go as NavigationSeparator,
|
|
127
149
|
s as NumberInput,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
wo as
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
150
|
+
Mr as OtpInput,
|
|
151
|
+
Or as PasswordRules,
|
|
152
|
+
zr as PhoneNumberInput,
|
|
153
|
+
Qr as PieChart,
|
|
154
|
+
Xr as ProgressBar,
|
|
155
|
+
er as Radio,
|
|
156
|
+
qr as RadioCard,
|
|
157
|
+
Kr as RadioCardGroup,
|
|
158
|
+
fr as RadioGroup,
|
|
159
|
+
Zr as Range,
|
|
160
|
+
ro as Select,
|
|
161
|
+
Do as Sidebar,
|
|
162
|
+
Ro as Skeleton,
|
|
163
|
+
Eo as Slider,
|
|
164
|
+
wo as Spinner,
|
|
165
|
+
Oo as Stepper,
|
|
166
|
+
Go as Switch,
|
|
167
|
+
zo as Table,
|
|
168
|
+
Ko as Tabs,
|
|
169
|
+
Zo as Tag,
|
|
170
|
+
rt as TagSelect,
|
|
171
|
+
tt as TagsInput,
|
|
172
|
+
it as TextArea,
|
|
173
|
+
Vr as TextMultiSelect,
|
|
174
|
+
Ut as ThemeContext,
|
|
175
|
+
Wt as ThemeProvider,
|
|
176
|
+
hr as TimeFilterDropdown,
|
|
177
|
+
nr as TimePicker,
|
|
178
|
+
St as Toast,
|
|
179
|
+
Dt as ToastProvider,
|
|
180
|
+
O as Tooltip,
|
|
181
|
+
qo as Trigger,
|
|
182
|
+
Nt as TruncateText,
|
|
183
|
+
z as Typography,
|
|
184
|
+
_t as VirtualizedTable,
|
|
185
|
+
Rt as VirtualizedTableEvent,
|
|
160
186
|
d as cn,
|
|
161
|
-
|
|
162
|
-
|
|
187
|
+
nt as createToastStore,
|
|
188
|
+
bo as horizontalConnectorWrapperVariants,
|
|
163
189
|
l as resolveColor,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
190
|
+
bt as sendCollapseRowEvent,
|
|
191
|
+
ht as sendExpandRowEvent,
|
|
192
|
+
wt as sendRefreshEvent,
|
|
193
|
+
Et as sendResetFiltersEvent,
|
|
194
|
+
Lt as sendToggleRowEvent,
|
|
195
|
+
ho as stepConnectorVariants,
|
|
196
|
+
Lo as stepContentVariants,
|
|
197
|
+
Bo as stepDescriptionVariants,
|
|
198
|
+
Fo as stepIndicatorVariants,
|
|
199
|
+
Po as stepItemVariants,
|
|
200
|
+
xo as stepLabelVariants,
|
|
201
|
+
ko as stepListVariants,
|
|
202
|
+
yo as stepVariants,
|
|
203
|
+
Mo as stepperVariants,
|
|
178
204
|
v as useClickOutside,
|
|
179
205
|
A as useIsHydrated,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
206
|
+
I as useMediaQuery,
|
|
207
|
+
Ht as useTheme,
|
|
208
|
+
gt as useToast,
|
|
209
|
+
dt as useToastStore,
|
|
210
|
+
ut as useToastStoreApi,
|
|
211
|
+
V as useToggle
|
|
186
212
|
};
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { t as i } from "./rolldown-runtime-Dw9YIBcH.js";
|
|
2
|
-
var
|
|
2
|
+
var m = /* @__PURE__ */ i(((n, t) => {
|
|
3
|
+
function r(e) {
|
|
4
|
+
var o = typeof e;
|
|
5
|
+
return e != null && (o == "object" || o == "function");
|
|
6
|
+
}
|
|
7
|
+
t.exports = r;
|
|
8
|
+
})), j = /* @__PURE__ */ i(((n, t) => {
|
|
3
9
|
var r = typeof global == "object" && global && global.Object === Object && global;
|
|
4
10
|
t.exports = r;
|
|
5
11
|
})), y = /* @__PURE__ */ i(((n, t) => {
|
|
@@ -38,25 +44,19 @@ var j = /* @__PURE__ */ i(((n, t) => {
|
|
|
38
44
|
return e != null && typeof e == "object";
|
|
39
45
|
}
|
|
40
46
|
t.exports = r;
|
|
41
|
-
})),
|
|
47
|
+
})), d = /* @__PURE__ */ i(((n, t) => {
|
|
42
48
|
var r = T(), e = x(), o = "[object Symbol]";
|
|
43
49
|
function c(a) {
|
|
44
50
|
return typeof a == "symbol" || e(a) && r(a) == o;
|
|
45
51
|
}
|
|
46
52
|
t.exports = c;
|
|
47
|
-
})), d = /* @__PURE__ */ i(((n, t) => {
|
|
48
|
-
function r(e) {
|
|
49
|
-
var o = typeof e;
|
|
50
|
-
return e != null && (o == "object" || o == "function");
|
|
51
|
-
}
|
|
52
|
-
t.exports = r;
|
|
53
53
|
}));
|
|
54
54
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
y as a,
|
|
56
|
+
g as i,
|
|
57
|
+
x as n,
|
|
58
|
+
j as o,
|
|
59
|
+
T as r,
|
|
60
|
+
m as s,
|
|
61
61
|
d as t
|
|
62
62
|
};
|
|
@@ -13,6 +13,10 @@ import { alertVariants } from './Alert.variants';
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
type AlertBaseProps = VariantProps<typeof alertVariants> & {
|
|
16
|
+
/** Call to action rendered at the right end of the alert */
|
|
17
|
+
action?: ReactNode;
|
|
18
|
+
/** Custom icon replacing the one derived from `type` */
|
|
19
|
+
icon?: ReactNode;
|
|
16
20
|
/** Whether the alert is visible */
|
|
17
21
|
isVisible?: boolean;
|
|
18
22
|
/** Show close button to dismiss alert */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Props } from './Avatar.types';
|
|
3
|
+
/**
|
|
4
|
+
* A round avatar that shows an image, falls back to a Gravatar looked up by
|
|
5
|
+
* email, then to initials, then to an icon.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Avatar alt="Ada Lovelace" email="ada@example.com" fallback="AL" />
|
|
10
|
+
* <Avatar alt="Ada Lovelace" src="/ada.png" size="lg" />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
declare const Avatar: FC<Props>;
|
|
14
|
+
export { Avatar };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { Theme } from '../../domain/theme';
|
|
4
|
+
import { avatarVariants } from './Avatar.variants';
|
|
5
|
+
export interface Props extends VariantProps<typeof avatarVariants> {
|
|
6
|
+
/** Accessible name of the avatar, e.g. the person's name */
|
|
7
|
+
alt: string;
|
|
8
|
+
/** Additional CSS classes */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Email used to look up a Gravatar when `src` is not provided; missing avatars fall back to `fallback` */
|
|
11
|
+
email?: string;
|
|
12
|
+
/** Initials shown when there is no image */
|
|
13
|
+
fallback?: string;
|
|
14
|
+
/** Icon shown when there is neither an image nor initials */
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
/** Image URL; takes precedence over `email` */
|
|
17
|
+
src?: string;
|
|
18
|
+
/** Theme override for this component */
|
|
19
|
+
theme?: Theme;
|
|
20
|
+
}
|
|
21
|
+
export type AvatarProps = Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-gravatar-url';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Props } from './AvatarGroup.types';
|
|
3
|
+
/**
|
|
4
|
+
* A stack of overlapping avatars that collapses the ones beyond `max` into a
|
|
5
|
+
* "+N" bubble.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <AvatarGroup
|
|
10
|
+
* items={members.map((member) => ({ id: member.id, alt: member.name, email: member.email, fallback: member.initials }))}
|
|
11
|
+
* max={4}
|
|
12
|
+
* />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
declare const AvatarGroup: FC<Props>;
|
|
16
|
+
export { AvatarGroup };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Props as AvatarProps } from '../Avatar/Avatar.types';
|
|
2
|
+
export type AvatarGroupItem = Omit<AvatarProps, 'size' | 'theme'> & {
|
|
3
|
+
id: string | number;
|
|
4
|
+
};
|
|
5
|
+
export type Props = Pick<AvatarProps, 'size' | 'theme'> & {
|
|
6
|
+
/** Additional CSS classes for the list */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Text shown when there are no items; renders a dashed placeholder */
|
|
9
|
+
emptyLabel?: string;
|
|
10
|
+
/** Avatars to display */
|
|
11
|
+
items: AvatarGroupItem[];
|
|
12
|
+
/** Accessible name of the list; receives the total count */
|
|
13
|
+
label?: (count: number) => string;
|
|
14
|
+
/** Maximum avatars shown before collapsing the rest into a "+N" bubble */
|
|
15
|
+
max?: number;
|
|
16
|
+
/** Accessible name of the "+N" bubble; receives the hidden count */
|
|
17
|
+
overflowLabel?: (hiddenCount: number) => string;
|
|
18
|
+
};
|
|
19
|
+
export type AvatarGroupProps = Props;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Props } from './BadgeGroup.types';
|
|
3
|
+
/**
|
|
4
|
+
* Renders a row of badges and collapses the ones that do not fit into a
|
|
5
|
+
* "+N" badge whose tooltip lists the hidden labels. Limit by count with
|
|
6
|
+
* `maxVisible` or by available width with `maxWidth`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <BadgeGroup items={tags} maxVisible={3} />
|
|
11
|
+
* <BadgeGroup items={regions} maxWidth={240} variant="info" />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
declare const BadgeGroup: FC<Props>;
|
|
15
|
+
export { BadgeGroup };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Props as BadgeProps } from '../Badge/Badge.types';
|
|
3
|
+
export type BadgeGroupItem = Pick<BadgeProps, 'variant' | 'leftIcon'> & {
|
|
4
|
+
id: string | number;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
export type Props = Pick<BadgeProps, 'size' | 'variant'> & {
|
|
8
|
+
/** Additional CSS classes for each badge */
|
|
9
|
+
badgeClassName?: string;
|
|
10
|
+
/** Additional CSS classes for the wrapper */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Badges to display */
|
|
13
|
+
items: BadgeGroupItem[];
|
|
14
|
+
/** Hidden labels per line inside the overflow tooltip */
|
|
15
|
+
itemsPerTooltipLine?: number;
|
|
16
|
+
/** Show as many badges as fit in this width (px); the rest collapse into the overflow badge */
|
|
17
|
+
maxWidth?: number;
|
|
18
|
+
/** Show at most this many badges; the rest collapse into the overflow badge */
|
|
19
|
+
maxVisible?: number;
|
|
20
|
+
/** Accessible name of the overflow badge button */
|
|
21
|
+
overflowLabel?: (hiddenCount: number) => string;
|
|
22
|
+
/** Custom overflow tooltip content; defaults to the hidden labels */
|
|
23
|
+
renderOverflow?: (hidden: BadgeGroupItem[]) => ReactNode;
|
|
24
|
+
};
|
|
25
|
+
export type BadgeGroupProps = Props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './use-visible-badge-count/use-visible-badge-count';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { BadgeGroupItem } from '../../BadgeGroup.types';
|
|
3
|
+
export type Params = {
|
|
4
|
+
containerRef: RefObject<HTMLElement | null>;
|
|
5
|
+
gapPx: number;
|
|
6
|
+
horizontalPaddingPx: number;
|
|
7
|
+
items: BadgeGroupItem[];
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
probeRef: RefObject<HTMLElement | null>;
|
|
10
|
+
};
|
|
@@ -60,6 +60,10 @@ export interface Props extends VariantProps<typeof breadcrumbVariants>, HTMLAttr
|
|
|
60
60
|
steps: Step[];
|
|
61
61
|
/** Optional back button rendered before the steps */
|
|
62
62
|
backButton?: BackButton;
|
|
63
|
+
/** Accessible name of the ellipsis button that reveals the collapsed steps */
|
|
64
|
+
collapsedLabel?: string;
|
|
65
|
+
/** Collapse the middle steps into an ellipsis menu when there are more steps than this; the first and the last ones stay visible */
|
|
66
|
+
maxVisibleItems?: number;
|
|
63
67
|
/** CSS classes for the nav wrapper */
|
|
64
68
|
wrapperClassName?: string;
|
|
65
69
|
/** Theme override for this component */
|