@konstructio/ui 0.1.2-alpha.109 → 0.1.2-alpha.110
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-Crcnz0_g.js → AdditionalOptions-D3SZ2WFJ.js} +1 -1
- package/dist/{AlertDialogTrigger-ouMGAlJW.js → AlertDialogTrigger-Cdw3C2Tv.js} +2 -2
- package/dist/AnimatePresence-V0yte2ER.js +186 -0
- package/dist/{Breadcrumb-MrF1Z6w2.js → Breadcrumb-CHi5-wVa.js} +2 -3
- package/dist/{Checkbox-8KnRLpQG.js → Checkbox-CrNxsm3G.js} +2 -3
- package/dist/{CommandInput-CGnqfudl.js → CommandInput-DiRv6fEA.js} +3 -4
- package/dist/{Counter-CDXdP1Af.js → Counter-DN50BVq6.js} +4 -5
- package/dist/{DayPicker-C22j0Y-u.js → DayPicker-BtpJg2q3.js} +355 -349
- package/dist/{DropdownButton-LEDrhn1j.js → DropdownButton-Blhkj-Oi.js} +114 -117
- package/dist/FlagSelectorList-ClKGwDpS.js +918 -0
- package/dist/{HamburgerTrigger-B_NGSZ2r.js → HamburgerTrigger-DjHmNEJD.js} +2 -3
- package/dist/{ImageUpload-D7HKSXK8.js → ImageUpload-BNZjCUTX.js} +2 -2
- package/dist/{Input-is8n7emP.js → Input-2M2I_H60.js} +3 -5
- package/dist/Loading-u8hXrFJR.js +25 -0
- package/dist/{Modal-DL4p692X.js → Modal-B6lSyPYQ.js} +3 -3
- package/dist/{Spinner-BJE79VTl.js → Spinner-smR3esbL.js} +28 -22
- package/dist/StepIndicatorContent-yB2HfOdY.js +36 -0
- package/dist/{Switch-C7286Bcu.js → Switch-CPE8v6Zh.js} +1 -1
- package/dist/Toast-DTb03cfB.js +76 -0
- package/dist/{Wrapper-a7RVCcrn.js → Wrapper-BxfB3BDa.js} +2 -2
- package/dist/{Wrapper-CyHxGs4E.js → Wrapper-JmStmade.js} +3 -4
- package/dist/{Wrapper-Bbaaa7YA.js → Wrapper-MmlrJppS.js} +76 -70
- package/dist/chevron-down-BODx0Q7h.js +14 -0
- package/dist/chevron-left-B1zWfqll.js +14 -0
- package/dist/chevron-right-D4OkgIIT.js +14 -0
- package/dist/chevron-up-B8hiVgxZ.js +14 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/components/List/List.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +1 -1
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.js +2 -2
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +2 -2
- 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 +2 -2
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +2 -2
- package/dist/components/Command/components/CommandList.js +2 -2
- package/dist/components/Command/components/CommandSeparator.js +2 -2
- package/dist/components/Command/components/CommandShortcut.js +1 -1
- package/dist/components/Command/components/DialogContent.js +3 -3
- package/dist/components/Command/components/DialogOverlay.js +2 -2
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/CopyButton/CopyButton.js +2 -2
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +3 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +2 -2
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +2 -2
- package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
- package/dist/components/DateRangePicker/components/RightPanel/RightPanel.js +3 -3
- package/dist/components/Datepicker/DatePicker.js +4 -4
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Drawer/Drawer.js +2 -2
- package/dist/components/Drawer/components/Body/Body.js +1 -1
- package/dist/components/Drawer/components/Footer/Footer.js +1 -1
- package/dist/components/Drawer/components/Header/Header.js +1 -1
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +3 -3
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Actions/Actions.js +3 -3
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Trigger/Trigger.js +2 -2
- package/dist/components/Filter/components/CustomDateRangeFilterDropdown/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +2 -2
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +2 -2
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +2 -2
- package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +3 -3
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +2 -2
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.js +2 -2
- package/dist/components/Loading/Loading.js +1 -1
- 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/components/Item/Item.js +1 -1
- 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/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +3 -3
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- 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 +1 -1
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
- package/dist/components/PhoneNumberInput/utils/index.js +1 -1
- package/dist/components/PieChart/PieChart.js +2 -2
- package/dist/components/ProgressBar/ProgressBar.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RadioCard/RadioCard.js +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +2 -2
- package/dist/components/Select/Select.js +3 -3
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -1
- package/dist/components/Select/components/List/List.js +3 -3
- package/dist/components/Select/components/ListItem/ListItem.js +1 -1
- 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 +1 -1
- package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Label/Label.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.js +1 -1
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +2 -2
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Spinner/Spinner.js +3 -2
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +2 -2
- package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
- package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
- package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +2 -2
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/components/Body.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Table/components/Head.js +1 -1
- package/dist/components/Table/components/Row.js +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/components/Content.js +2 -2
- package/dist/components/Tabs/components/List.js +2 -2
- package/dist/components/Tabs/components/Trigger.js +2 -2
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/TagSelect.js +1 -1
- package/dist/components/TagSelect/components/Item/Item.js +1 -1
- package/dist/components/TagSelect/components/List/List.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/TagSelect/components/index.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TimePicker/components/HoursList/HoursList.js +1 -1
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +1 -1
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +73 -41
- package/dist/components/Toast/ToastProvider.js +19 -0
- package/dist/components/Toast/components/ToastCard/ToastCard.js +103 -0
- package/dist/components/Toast/components/index.js +4 -0
- package/dist/components/Toast/constants/index.js +35 -0
- package/dist/components/Toast/contexts/index.js +4 -0
- package/dist/components/Toast/contexts/toast-store.context.js +5 -0
- package/dist/components/Toast/hooks/index.js +15 -0
- package/dist/components/Toast/hooks/useStackExpansion/useStackExpansion.js +29 -0
- package/dist/components/Toast/hooks/useToast/useToast.js +17 -0
- package/dist/components/Toast/hooks/useToastHeights/useToastHeights.js +23 -0
- package/dist/components/Toast/hooks/useToastSource/useToastSource.js +15 -0
- package/dist/components/Toast/hooks/useToastStore/useToastStore.js +11 -0
- package/dist/components/Toast/hooks/useToastTimer/useToastTimer.js +26 -0
- package/dist/components/Toast/store/create-toast-store.js +46 -0
- package/dist/components/Toast/store/default-toast-store.js +5 -0
- package/dist/components/Toast/store/index.js +6 -0
- package/dist/components/Toast/utils/compute-stack-layout/compute-stack-layout.js +24 -0
- package/dist/components/Toast/utils/index.js +4 -0
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.js +1 -1
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.js +2 -2
- package/dist/components/VirtualizedTable/components/Actions/components/InlineActions/InlineActions.js +1 -1
- package/dist/components/VirtualizedTable/components/Actions/components/PortalActions/PortalActions.js +1 -1
- package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +3 -3
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +3 -3
- package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +2 -2
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +1 -1
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +2 -2
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +1 -1
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +143 -130
- package/dist/{components-CaEW5ge4.js → components-z-LYRWfq.js} +3 -3
- package/dist/{constants-HQIXhj2t.js → constants-q2QnJrOb.js} +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/theme.provider.js +1 -1
- package/dist/createLucideIcon-C7E_xycG.js +119 -0
- package/dist/{dist-CszFjHAP.js → dist-Bi8Y5nEx.js} +7 -9
- package/dist/{dist-BIBFLVt1.js → dist-CNui_Egg.js} +9 -10
- package/dist/{dist-pxvIAJzo.js → dist-CR3FMRzF.js} +3 -3
- package/dist/{dist-BbX4Nrk2.js → dist-CgzF5_J6.js} +2 -2
- package/dist/{dist-AxOGvL82.js → dist-D5Q2IYuC.js} +3 -3
- package/dist/dist-D70ZJkHf.js +29 -0
- package/dist/{dist-DwxO2RoR.js → dist-DZ_SU77k.js} +82 -72
- package/dist/{dist-9WbMf_jT.js → dist-DcFwF4XM.js} +1 -1
- package/dist/{dist-iUAHw-3y.js → dist-Dg3vyTx9.js} +6 -6
- package/dist/{dist-ByCJijZd.js → dist-LRkZdylX.js} +4 -4
- package/dist/{dist-DO3apbIh.js → dist-f8EwfITY.js} +3 -3
- package/dist/dist-uerXivvM.js +178 -0
- package/dist/ellipsis-vertical-C_yX7aQe.js +31 -0
- package/dist/{es2015-CoHq2g4y.js → es2015-Hhb87ipX.js} +1 -1
- package/dist/hooks/index.js +8 -6
- package/dist/hooks/useIsHydrated/useIsHydrated.js +6 -0
- package/dist/hooks/useIsHydrated/utils/index.js +4 -0
- package/dist/hooks/useIsHydrated/utils/noop-subscribe/noop-subscribe.js +5 -0
- package/dist/hooks/useMediaQuery.js +1 -1
- package/dist/index.js +164 -149
- package/dist/lib/components/Command/components/CommandShortcut.d.ts +1 -1
- package/dist/lib/components/Command/contexts/Command.provider.d.ts +1 -1
- package/dist/lib/components/ImageUpload/ImageUpload.d.ts +1 -1
- package/dist/lib/components/Modal/contexts/Modal.provider.d.ts +1 -1
- package/dist/lib/components/Toast/Toast.d.ts +19 -14
- package/dist/lib/components/Toast/Toast.types.d.ts +62 -35
- package/dist/lib/components/Toast/Toast.variants.d.ts +16 -3
- package/dist/lib/components/Toast/ToastProvider.d.ts +11 -0
- package/dist/lib/components/Toast/ToastProvider.types.d.ts +17 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.d.ts +3 -0
- package/dist/lib/components/Toast/components/ToastCard/ToastCard.types.d.ts +17 -0
- package/dist/lib/components/Toast/components/index.d.ts +1 -0
- package/dist/lib/components/Toast/constants/index.d.ts +25 -0
- package/dist/lib/components/Toast/contexts/index.d.ts +1 -0
- package/dist/lib/components/Toast/contexts/toast-store.context.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/index.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useStackExpansion/useStackExpansion.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useStackExpansion/useStackExpansion.types.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useToast/useToast.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastHeights/useToastHeights.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastHeights/useToastHeights.types.d.ts +6 -0
- package/dist/lib/components/Toast/hooks/useToastSource/useToastSource.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastSource/useToastSource.types.d.ts +11 -0
- package/dist/lib/components/Toast/hooks/useToastStore/useToastStore.d.ts +3 -0
- package/dist/lib/components/Toast/hooks/useToastTimer/useToastTimer.d.ts +2 -0
- package/dist/lib/components/Toast/hooks/useToastTimer/useToastTimer.types.d.ts +7 -0
- package/dist/lib/components/Toast/store/create-toast-store.d.ts +2 -0
- package/dist/lib/components/Toast/store/create-toast-store.types.d.ts +24 -0
- package/dist/lib/components/Toast/store/default-toast-store.d.ts +1 -0
- package/dist/lib/components/Toast/store/index.d.ts +2 -0
- package/dist/lib/components/Toast/utils/compute-stack-layout/compute-stack-layout.d.ts +2 -0
- package/dist/lib/components/Toast/utils/compute-stack-layout/compute-stack-layout.types.d.ts +12 -0
- package/dist/lib/components/Toast/utils/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/components/Actions/Actions.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Actions/components/ActionsList/ActionsList.d.ts +1 -1
- 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/Body/Body.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/DotPaginate/DotPaginate.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/FormPaginate/FormPaginate.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/index.d.ts +8 -0
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/useIsHydrated.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/utils/index.d.ts +1 -0
- package/dist/lib/hooks/useIsHydrated/utils/noop-subscribe/noop-subscribe.d.ts +1 -0
- package/dist/{libphonenumber-BMq3Thej.js → libphonenumber-DtibHRPP.js} +123 -114
- package/dist/package.json +28 -28
- package/dist/{phone-number.provider-Dkq_p1Gi.js → phone-number.provider-BASl9fGG.js} +2 -3
- package/dist/{react-DRLuFcbk.js → react-DpRKGbW_.js} +1935 -1841
- package/dist/styles.css +1 -1
- package/dist/{table.provider-CWzODR1t.js → table.provider-MQ4T5Xb5.js} +2 -2
- package/dist/{theme.provider-CSL1WCYG.js → theme.provider-CvL6sqHq.js} +1 -1
- package/dist/{useBreadcrumb-Ds_9BeFz.js → useBreadcrumb-BvP9cgD8.js} +580 -545
- package/dist/utils/index.js +1 -1
- package/dist/{utils-B-6R7kNE.js → utils-DnIJruo0.js} +208 -129
- package/dist/x-C8O1IsaM.js +17 -0
- package/dist/{x-Ierxf0uI.js → x-Vur_9PXW.js} +1 -2
- package/package.json +28 -28
- package/dist/AnimatePresence-C5PSMIZj.js +0 -186
- package/dist/FlagSelectorList-tYZNl-tz.js +0 -863
- package/dist/Loading-DO8JOWBV.js +0 -18
- package/dist/StepIndicatorContent-BGDvxLzV.js +0 -30
- package/dist/Toast-jSx3Lao8.js +0 -461
- package/dist/chevron-down-DNP-OOAQ.js +0 -8
- package/dist/chevron-left-DxGDBBKA.js +0 -8
- package/dist/chevron-right-CDwgDdp-.js +0 -8
- package/dist/chevron-up-Bjpvg6ui.js +0 -8
- package/dist/createLucideIcon-MbzNWCaI.js +0 -42
- package/dist/dist-D5XYRjmR.js +0 -15
- package/dist/dist-DGOjiAnB.js +0 -14
- package/dist/dist-DKryKPmP.js +0 -193
- package/dist/dist-DYIabsrY.js +0 -17
- package/dist/ellipsis-vertical-BBmhzIXn.js +0 -24
- package/dist/x-a_LpoXzG.js +0 -11
package/dist/index.js
CHANGED
|
@@ -1,171 +1,186 @@
|
|
|
1
|
-
import { t as o } from "./Checkbox-
|
|
2
|
-
import { t as m } from "./DropdownButton-
|
|
3
|
-
import { t as e } from "./Breadcrumb-
|
|
4
|
-
import { t as a } from "./Input-
|
|
5
|
-
import { t as
|
|
6
|
-
import { a as l, t as d } from "./utils-
|
|
7
|
-
import { Alert as
|
|
1
|
+
import { t as o } from "./Checkbox-CrNxsm3G.js";
|
|
2
|
+
import { t as m } from "./DropdownButton-Blhkj-Oi.js";
|
|
3
|
+
import { t as e } from "./Breadcrumb-CHi5-wVa.js";
|
|
4
|
+
import { t as a } from "./Input-2M2I_H60.js";
|
|
5
|
+
import { t as s } from "./Counter-DN50BVq6.js";
|
|
6
|
+
import { a as l, t as d } from "./utils-DnIJruo0.js";
|
|
7
|
+
import { Alert as u } from "./components/Alert/Alert.js";
|
|
8
8
|
import { Button as c } from "./components/Button/Button.js";
|
|
9
|
-
import { AlertDialog as
|
|
10
|
-
import { useClickOutside as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
9
|
+
import { AlertDialog as S } from "./components/AlertDialog/AlertDialog.js";
|
|
10
|
+
import { useClickOutside as v } from "./hooks/useClickOutside.js";
|
|
11
|
+
import { useIsHydrated as A } from "./hooks/useIsHydrated/useIsHydrated.js";
|
|
12
|
+
import { useMediaQuery as w } from "./hooks/useMediaQuery.js";
|
|
13
|
+
import { useToggle as L } from "./hooks/useToggle.js";
|
|
14
|
+
import { Autocomplete as h } from "./components/Autocomplete/Autocomplete.js";
|
|
15
|
+
import { t as F } from "./Loading-u8hXrFJR.js";
|
|
16
|
+
import { Badge as P } from "./components/Badge/Badge.js";
|
|
17
|
+
import { t as M } from "./Toast-DTb03cfB.js";
|
|
18
|
+
import { Typography as _ } from "./components/Typography/Typography.js";
|
|
17
19
|
import { ButtonGroup as k } from "./components/ButtonGroup/ButtonGroup.js";
|
|
18
|
-
import { Card as
|
|
19
|
-
import { CopyButton as
|
|
20
|
-
import { DatePicker as
|
|
21
|
-
import { Radio as
|
|
22
|
-
import { RadioGroup as
|
|
23
|
-
import { TimePicker as
|
|
24
|
-
import { DateRangePicker as
|
|
25
|
-
import { Divider as
|
|
26
|
-
import { Drawer as
|
|
27
|
-
import { BadgeMultiSelect as
|
|
28
|
-
import { CustomDateRangeFilterDropdown as
|
|
29
|
-
import { DateFilterDropdown as
|
|
30
|
-
import { DateRangeFilterDropdown as
|
|
31
|
-
import { TextMultiSelect as
|
|
32
|
-
import { TimeFilterDropdown as
|
|
33
|
-
import { Filter as
|
|
34
|
-
import { t as
|
|
35
|
-
import { LineChart as
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
38
|
-
import { PhoneNumberInput as
|
|
20
|
+
import { Card as U } from "./components/Card/Card.js";
|
|
21
|
+
import { CopyButton as z } from "./components/CopyButton/CopyButton.js";
|
|
22
|
+
import { DatePicker as Q } from "./components/Datepicker/DatePicker.js";
|
|
23
|
+
import { Radio as X } from "./components/Radio/Radio.js";
|
|
24
|
+
import { RadioGroup as q } from "./components/RadioGroup/RadioGroup.js";
|
|
25
|
+
import { TimePicker as K } from "./components/TimePicker/TimePicker.js";
|
|
26
|
+
import { DateRangePicker as Z } from "./components/DateRangePicker/DateRangePicker.js";
|
|
27
|
+
import { Divider as rr } from "./components/Divider/Divider.js";
|
|
28
|
+
import { Drawer as tr } from "./components/Drawer/Drawer.js";
|
|
29
|
+
import { BadgeMultiSelect as ir } from "./components/Filter/components/BadgeDropdown/BadgeMultiSelect.js";
|
|
30
|
+
import { CustomDateRangeFilterDropdown as pr } from "./components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.js";
|
|
31
|
+
import { DateFilterDropdown as fr } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
32
|
+
import { DateRangeFilterDropdown as nr } from "./components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
|
|
33
|
+
import { TextMultiSelect as dr } from "./components/Filter/components/TextMultiSelect/TextMultiSelect.js";
|
|
34
|
+
import { TimeFilterDropdown as ur } from "./components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js";
|
|
35
|
+
import { Filter as cr } from "./components/Filter/Filter.js";
|
|
36
|
+
import { t as Sr } from "./ImageUpload-BNZjCUTX.js";
|
|
37
|
+
import { LineChart as vr } from "./components/LineChart/LineChart.js";
|
|
38
|
+
import { t as Ar } from "./Modal-B6lSyPYQ.js";
|
|
39
|
+
import { t as wr } from "./components-z-LYRWfq.js";
|
|
40
|
+
import { PhoneNumberInput as Lr } from "./components/PhoneNumberInput/PhoneNumberInput.js";
|
|
39
41
|
import { PieChart as hr } from "./components/PieChart/PieChart.js";
|
|
40
|
-
import { ProgressBar as
|
|
41
|
-
import { RadioCard as
|
|
42
|
-
import { RadioCardGroup as
|
|
43
|
-
import { Range as
|
|
42
|
+
import { ProgressBar as Fr } from "./components/ProgressBar/ProgressBar.js";
|
|
43
|
+
import { RadioCard as Pr } from "./components/RadioCard/RadioCard.js";
|
|
44
|
+
import { RadioCardGroup as Mr } from "./components/RadioCardGroup/RadioCardGroup.js";
|
|
45
|
+
import { Range as _r } from "./components/Range/Range.js";
|
|
44
46
|
import { Select as kr } from "./components/Select/Select.js";
|
|
45
|
-
import { CollapseTrigger as
|
|
46
|
-
import { Footer as
|
|
47
|
-
import { Label as
|
|
48
|
-
import { Logo as
|
|
49
|
-
import { NavigationGroup as
|
|
50
|
-
import { NavigationOption as
|
|
51
|
-
import { NavigationSeparator as
|
|
52
|
-
import { Navigation as
|
|
53
|
-
import { Sidebar as
|
|
54
|
-
import { Slider as
|
|
55
|
-
import { t as
|
|
56
|
-
import { horizontalConnectorWrapperVariants as
|
|
57
|
-
import { Stepper as
|
|
58
|
-
import { t as
|
|
59
|
-
import { Table as
|
|
60
|
-
import { Content as
|
|
47
|
+
import { CollapseTrigger as Ur } from "./components/Sidebar/components/CollapseTrigger/CollapseTrigger.js";
|
|
48
|
+
import { Footer as zr } from "./components/Sidebar/components/Footer/Footer.js";
|
|
49
|
+
import { Label as Qr } from "./components/Sidebar/components/Label/Label.js";
|
|
50
|
+
import { Logo as Xr } from "./components/Sidebar/components/Logo/Logo.js";
|
|
51
|
+
import { NavigationGroup as qr } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
52
|
+
import { NavigationOption as Kr } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
|
|
53
|
+
import { NavigationSeparator as Zr } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
54
|
+
import { Navigation as ro } from "./components/Sidebar/components/Navigation/Navigation.js";
|
|
55
|
+
import { Sidebar as to } from "./components/Sidebar/Sidebar.js";
|
|
56
|
+
import { Slider as io } from "./components/Slider/Slider.js";
|
|
57
|
+
import { t as po } from "./Spinner-smR3esbL.js";
|
|
58
|
+
import { horizontalConnectorWrapperVariants as fo, stepConnectorVariants as so, stepContentVariants as no, stepDescriptionVariants as lo, stepIndicatorVariants as To, stepItemVariants as uo, stepLabelVariants as go, stepListVariants as co, stepVariants as Do, stepperVariants as So } from "./components/Stepper/Stepper.variants.js";
|
|
59
|
+
import { Stepper as vo } from "./components/Stepper/Stepper.js";
|
|
60
|
+
import { t as Ao } from "./Switch-CPE8v6Zh.js";
|
|
61
|
+
import { Table as wo } from "./components/Table/Table.js";
|
|
62
|
+
import { Content as Lo } from "./components/Tabs/components/Content.js";
|
|
61
63
|
import { List as ho } from "./components/Tabs/components/List.js";
|
|
62
|
-
import { Trigger as
|
|
63
|
-
import { Tabs as
|
|
64
|
-
import { Tag as
|
|
65
|
-
import { TagSelect as
|
|
64
|
+
import { Trigger as Fo } from "./components/Tabs/components/Trigger.js";
|
|
65
|
+
import { Tabs as Po } from "./components/Tabs/Tabs.js";
|
|
66
|
+
import { Tag as Mo } from "./components/Tag/Tag.js";
|
|
67
|
+
import { TagSelect as _o } from "./components/TagSelect/TagSelect.js";
|
|
66
68
|
import { TextArea as ko } from "./components/TextArea/TextArea.js";
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
69
|
+
import { DEFAULT_MAX_VISIBLE_TOASTS as Uo, DEFAULT_TOAST_DURATION as Go, DEFAULT_TOAST_LIMIT as zo } from "./components/Toast/constants/index.js";
|
|
70
|
+
import { createToastStore as Qo } from "./components/Toast/store/create-toast-store.js";
|
|
71
|
+
import { useToastStore as Xo, useToastStoreApi as jo } from "./components/Toast/hooks/useToastStore/useToastStore.js";
|
|
72
|
+
import { useToast as Jo } from "./components/Toast/hooks/useToast/useToast.js";
|
|
73
|
+
import { ToastProvider as Yo } from "./components/Toast/ToastProvider.js";
|
|
74
|
+
import { Tooltip as $o } from "./components/Tooltip/Tooltip.js";
|
|
75
|
+
import { t as ot } from "./events.types-BG1Uh8i6.js";
|
|
76
|
+
import { sendResetFiltersEvent as mt } from "./components/VirtualizedTable/events/filters/filters.js";
|
|
77
|
+
import { sendRefreshEvent as et } from "./components/VirtualizedTable/events/refresh/refresh.js";
|
|
78
|
+
import { sendCollapseRowEvent as at, sendExpandRowEvent as ft, sendToggleRowEvent as st } from "./components/VirtualizedTable/events/row/row.js";
|
|
79
|
+
import { TruncateText as lt } from "./components/VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
80
|
+
import { VirtualizedTable as Tt } from "./components/VirtualizedTable/VirtualizedTable.js";
|
|
81
|
+
import { ThemeContext as gt } from "./contexts/theme.context.js";
|
|
82
|
+
import { useTheme as Dt } from "./contexts/theme.hook.js";
|
|
83
|
+
import { t as Ct } from "./theme.provider-CvL6sqHq.js";
|
|
78
84
|
import "./contexts/index.js";
|
|
79
85
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
u as Alert,
|
|
87
|
+
S as AlertDialog,
|
|
88
|
+
h as Autocomplete,
|
|
89
|
+
P as Badge,
|
|
90
|
+
ir as BadgeMultiSelect,
|
|
85
91
|
e as Breadcrumb,
|
|
86
92
|
c as Button,
|
|
87
93
|
k as ButtonGroup,
|
|
88
|
-
|
|
94
|
+
U as Card,
|
|
89
95
|
o as Checkbox,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
Ur as CollapseTrigger,
|
|
97
|
+
Lo as Content,
|
|
98
|
+
z as CopyButton,
|
|
99
|
+
s as Counter,
|
|
100
|
+
pr as CustomDateRangeFilterDropdown,
|
|
101
|
+
Uo as DEFAULT_MAX_VISIBLE_TOASTS,
|
|
102
|
+
Go as DEFAULT_TOAST_DURATION,
|
|
103
|
+
zo as DEFAULT_TOAST_LIMIT,
|
|
104
|
+
fr as DateFilterDropdown,
|
|
105
|
+
Q as DatePicker,
|
|
106
|
+
nr as DateRangeFilterDropdown,
|
|
107
|
+
Z as DateRangePicker,
|
|
108
|
+
rr as Divider,
|
|
109
|
+
tr as Drawer,
|
|
101
110
|
kr as Dropdown,
|
|
102
111
|
m as DropdownButton,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
112
|
+
cr as Filter,
|
|
113
|
+
zr as Footer,
|
|
114
|
+
Sr as ImageUpload,
|
|
106
115
|
a as Input,
|
|
107
|
-
|
|
108
|
-
|
|
116
|
+
Qr as Label,
|
|
117
|
+
vr as LineChart,
|
|
109
118
|
ho as List,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
F as Loading,
|
|
120
|
+
Xr as Logo,
|
|
121
|
+
Ar as Modal,
|
|
122
|
+
wr as MultiSelectDropdown,
|
|
123
|
+
ro as Navigation,
|
|
124
|
+
qr as NavigationGroup,
|
|
125
|
+
Kr as NavigationOption,
|
|
126
|
+
Zr as NavigationSeparator,
|
|
127
|
+
s as NumberInput,
|
|
128
|
+
Lr as PhoneNumberInput,
|
|
120
129
|
hr as PieChart,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
130
|
+
Fr as ProgressBar,
|
|
131
|
+
X as Radio,
|
|
132
|
+
Pr as RadioCard,
|
|
133
|
+
Mr as RadioCardGroup,
|
|
134
|
+
q as RadioGroup,
|
|
135
|
+
_r as Range,
|
|
127
136
|
kr as Select,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
to as Sidebar,
|
|
138
|
+
io as Slider,
|
|
139
|
+
po as Spinner,
|
|
140
|
+
vo as Stepper,
|
|
141
|
+
Ao as Switch,
|
|
142
|
+
wo as Table,
|
|
143
|
+
Po as Tabs,
|
|
144
|
+
Mo as Tag,
|
|
145
|
+
_o as TagSelect,
|
|
137
146
|
ko as TextArea,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
dr as TextMultiSelect,
|
|
148
|
+
gt as ThemeContext,
|
|
149
|
+
Ct as ThemeProvider,
|
|
150
|
+
ur as TimeFilterDropdown,
|
|
151
|
+
K as TimePicker,
|
|
152
|
+
M as Toast,
|
|
153
|
+
Yo as ToastProvider,
|
|
154
|
+
$o as Tooltip,
|
|
155
|
+
Fo as Trigger,
|
|
156
|
+
lt as TruncateText,
|
|
157
|
+
_ as Typography,
|
|
158
|
+
Tt as VirtualizedTable,
|
|
159
|
+
ot as VirtualizedTableEvent,
|
|
150
160
|
d as cn,
|
|
151
|
-
|
|
161
|
+
Qo as createToastStore,
|
|
162
|
+
fo as horizontalConnectorWrapperVariants,
|
|
152
163
|
l as resolveColor,
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
at as sendCollapseRowEvent,
|
|
165
|
+
ft as sendExpandRowEvent,
|
|
166
|
+
et as sendRefreshEvent,
|
|
167
|
+
mt as sendResetFiltersEvent,
|
|
168
|
+
st as sendToggleRowEvent,
|
|
169
|
+
so as stepConnectorVariants,
|
|
170
|
+
no as stepContentVariants,
|
|
171
|
+
lo as stepDescriptionVariants,
|
|
172
|
+
To as stepIndicatorVariants,
|
|
173
|
+
uo as stepItemVariants,
|
|
174
|
+
go as stepLabelVariants,
|
|
175
|
+
co as stepListVariants,
|
|
176
|
+
Do as stepVariants,
|
|
177
|
+
So as stepperVariants,
|
|
178
|
+
v as useClickOutside,
|
|
179
|
+
A as useIsHydrated,
|
|
180
|
+
w as useMediaQuery,
|
|
181
|
+
Dt as useTheme,
|
|
182
|
+
Jo as useToast,
|
|
183
|
+
Xo as useToastStore,
|
|
184
|
+
jo as useToastStoreApi,
|
|
185
|
+
L as useToggle
|
|
171
186
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
declare const CommandShortcut: {
|
|
3
|
-
({ className, ...props }: HTMLAttributes<HTMLSpanElement>): import(
|
|
3
|
+
({ className, ...props }: HTMLAttributes<HTMLSpanElement>): import('react').JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export { CommandShortcut };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
export declare const CommandProvider: ({ children }: PropsWithChildren) => import(
|
|
2
|
+
export declare const CommandProvider: ({ children }: PropsWithChildren) => import('react').JSX.Element;
|
|
@@ -19,7 +19,7 @@ import { Props } from './ImageUpload.types';
|
|
|
19
19
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-imageupload--docs Storybook}
|
|
20
20
|
*/
|
|
21
21
|
declare const ImageUpload: {
|
|
22
|
-
({ className, error, fileName, fileSize, fileUrl, helperText, isRequired, label, labelClassName, labelWrapperClassName, name, onChange, onRemove, status, theme, uploadButtonText, accept, maxSize, }: Props): import(
|
|
22
|
+
({ className, error, fileName, fileSize, fileUrl, helperText, isRequired, label, labelClassName, labelWrapperClassName, name, onChange, onRemove, status, theme, uploadButtonText, accept, maxSize, }: Props): import('react').JSX.Element;
|
|
23
23
|
displayName: string;
|
|
24
24
|
};
|
|
25
25
|
export { ImageUpload };
|
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { Props } from './Toast.types';
|
|
3
3
|
/**
|
|
4
|
-
* A toast
|
|
5
|
-
*
|
|
4
|
+
* A stack of toast notifications anchored to the bottom-right corner.
|
|
5
|
+
*
|
|
6
|
+
* The newest toast sits in front; older ones peek out behind it and the whole
|
|
7
|
+
* stack expands on hover or focus, holding every auto-dismiss countdown until
|
|
8
|
+
* the pointer leaves, focus moves out or the window loses focus. By default
|
|
9
|
+
* each toast then resumes with the time it had left; `hoverBehavior="restart"`
|
|
10
|
+
* gives them their full duration again and dismisses them one by one.
|
|
11
|
+
* Rendered through a portal on `document.body` so no ancestor can clip or
|
|
12
|
+
* cover it, and themed through the `data-theme` it lands under.
|
|
6
13
|
*
|
|
7
14
|
* @example
|
|
8
15
|
* ```tsx
|
|
9
|
-
*
|
|
16
|
+
* <App />
|
|
17
|
+
* <Toast limit={5} duration={3000} />
|
|
10
18
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* setOpen={setOpen}
|
|
14
|
-
* title="Saved"
|
|
15
|
-
* description="Your changes have been saved successfully"
|
|
16
|
-
* variant="success"
|
|
17
|
-
* duration={3000}
|
|
18
|
-
* >
|
|
19
|
-
* <Button>Save Changes</Button>
|
|
20
|
-
* </Toast>
|
|
19
|
+
* const { addToast } = useToast();
|
|
20
|
+
* addToast({ title: 'Saved', type: 'success' });
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* No `ToastProvider` is needed: the stack and `useToast()` share a built-in
|
|
24
|
+
* store that `duration` and `limit` configure (`limit={1}` shows one toast at
|
|
25
|
+
* a time). Wrap a subtree in `ToastProvider` to scope or inject a store, or
|
|
26
|
+
* pass `toasts` and `onDismiss` to drive the stack from your own state.
|
|
27
|
+
*
|
|
28
|
+
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/in-review-toast-light--docs Storybook}
|
|
24
29
|
*/
|
|
25
30
|
export declare const Toast: FC<Props>;
|
|
@@ -1,48 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
1
|
+
import { ReactNode } from 'react';
|
|
3
2
|
import { Theme } from '../../domain/theme';
|
|
4
|
-
|
|
3
|
+
export type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
4
|
+
export type ToastItem = {
|
|
5
|
+
/** Description text or element */
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
/** Auto-dismiss duration in ms; 0 keeps the toast until dismissed (default: 3000) */
|
|
8
|
+
duration?: number;
|
|
9
|
+
/** Stable identifier, also passed to `onDismiss` */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Show close button (default: true) */
|
|
12
|
+
showCloseButton?: boolean;
|
|
13
|
+
/** Title text or element */
|
|
14
|
+
title: ReactNode;
|
|
15
|
+
/** Visual type (default: 'info') */
|
|
16
|
+
type?: ToastType;
|
|
17
|
+
};
|
|
18
|
+
export type ToastInput = Omit<ToastItem, 'id'>;
|
|
19
|
+
export type ToastHoverBehavior = 'resume' | 'restart';
|
|
20
|
+
export type ToastHeights = Record<string, number>;
|
|
5
21
|
/**
|
|
6
|
-
* Props for the Toast
|
|
22
|
+
* Props for the Toast stack.
|
|
7
23
|
*
|
|
8
24
|
* @example
|
|
9
25
|
* ```tsx
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* setOpen={setOpen}
|
|
15
|
-
* title="Success"
|
|
16
|
-
* description="Your changes have been saved"
|
|
17
|
-
* variant="success"
|
|
18
|
-
* >
|
|
19
|
-
* <Button onClick={() => setOpen(true)}>Show Toast</Button>
|
|
20
|
-
* </Toast>
|
|
26
|
+
* <ToastProvider>
|
|
27
|
+
* <App />
|
|
28
|
+
* <Toast />
|
|
29
|
+
* </ToastProvider>
|
|
21
30
|
* ```
|
|
22
31
|
*/
|
|
23
|
-
export
|
|
24
|
-
/** Additional CSS classes for the
|
|
32
|
+
export type Props = {
|
|
33
|
+
/** Additional CSS classes for the fixed region */
|
|
25
34
|
className?: string;
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
/** Accessible name of every close button (default: 'Close toast') */
|
|
36
|
+
closeLabel?: string;
|
|
37
|
+
/** Portal target (default: document.body) */
|
|
38
|
+
container?: Element | null;
|
|
39
|
+
/**
|
|
40
|
+
* Auto-dismiss duration applied to toasts published without one, set on
|
|
41
|
+
* the store this stack draws from (default: 3000)
|
|
42
|
+
*/
|
|
33
43
|
duration?: number;
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
|
|
44
|
+
/** Render through a portal instead of in place (default: true) */
|
|
45
|
+
isPortal?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* What happens to the auto-dismiss countdowns after the stack is hovered or
|
|
48
|
+
* focused: `resume` continues each toast with the time it had left,
|
|
49
|
+
* `restart` gives every toast its full duration again and dismisses them
|
|
50
|
+
* one by one, oldest first (default: 'resume')
|
|
51
|
+
*/
|
|
52
|
+
hoverBehavior?: ToastHoverBehavior;
|
|
53
|
+
/** Accessible name of the notifications region (default: 'Notifications') */
|
|
54
|
+
label?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Toasts kept in the queue, dropping the oldest past it, set on the store
|
|
57
|
+
* this stack draws from (default: 5)
|
|
58
|
+
*/
|
|
59
|
+
limit?: number;
|
|
60
|
+
/** Toasts kept visible while collapsed; the rest stay hidden behind (default: 3) */
|
|
61
|
+
maxVisible?: number;
|
|
38
62
|
/** Theme override for this component */
|
|
39
63
|
theme?: Theme;
|
|
40
|
-
/**
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Toasts in publish order, oldest first; the newest one is shown in front.
|
|
66
|
+
* Leave out `toasts` and `onDismiss` to read them from the nearest
|
|
67
|
+
* `ToastProvider`, or from the built-in store `useToast()` publishes to
|
|
68
|
+
* when there is none
|
|
69
|
+
*/
|
|
70
|
+
toasts?: ToastItem[];
|
|
71
|
+
/** Called when a toast expires or its close button is pressed */
|
|
72
|
+
onDismiss?: (id: string) => void;
|
|
73
|
+
};
|
|
47
74
|
/** @deprecated Use Props instead */
|
|
48
75
|
export type ToastProps = Props;
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
+
export declare const toastFrameVariants: (props?: ({
|
|
2
|
+
type?: "success" | "info" | "warning" | "error" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
1
4
|
export declare const toastVariants: (props?: ({
|
|
2
|
-
|
|
5
|
+
type?: "success" | "info" | "warning" | "error" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export declare const toastTitleVariants: (props?: ({
|
|
8
|
+
type?: "success" | "info" | "warning" | "error" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
export declare const toastDescriptionVariants: (props?: ({
|
|
11
|
+
type?: "success" | "info" | "warning" | "error" | null | undefined;
|
|
12
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
+
export declare const toastIconVariants: (props?: ({
|
|
14
|
+
type?: "success" | "info" | "warning" | "error" | null | undefined;
|
|
15
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
16
|
+
export declare const toastCloseButtonVariants: (props?: ({
|
|
17
|
+
type?: "success" | "info" | "warning" | "error" | null | undefined;
|
|
3
18
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
-
export declare const viewportToastVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
5
|
-
export declare const closeToastVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Props } from './ToastProvider.types';
|
|
3
|
+
/**
|
|
4
|
+
* Optional scope for the toast queue: everything below it publishes with
|
|
5
|
+
* `useToast()` into this store and a `<Toast />` inside draws it. Use it to
|
|
6
|
+
* inject a store shared with other code (`store`) or to isolate a subtree;
|
|
7
|
+
* without it, `<Toast />` and `useToast()` share one built-in store.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/in-review-toast-light--docs Storybook}
|
|
10
|
+
*/
|
|
11
|
+
export declare const ToastProvider: FC<Props>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ToastStore, ToastStoreOptions } from './store/create-toast-store.types';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the ToastProvider.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <ToastProvider duration={3000} limit={5}>
|
|
9
|
+
* <App />
|
|
10
|
+
* <Toast />
|
|
11
|
+
* </ToastProvider>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export type Props = PropsWithChildren<ToastStoreOptions & {
|
|
15
|
+
/** An existing store to share, e.g. one also exposed to other apps */
|
|
16
|
+
store?: ToastStore;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ToastItem } from '../../Toast.types';
|
|
2
|
+
export type Props = {
|
|
3
|
+
closeLabel: string;
|
|
4
|
+
expanded: boolean;
|
|
5
|
+
frontHeight: number;
|
|
6
|
+
index: number;
|
|
7
|
+
offset: number;
|
|
8
|
+
reducedMotion: boolean;
|
|
9
|
+
restartOnLeave: boolean;
|
|
10
|
+
resumeDelay: number;
|
|
11
|
+
toast: ToastItem;
|
|
12
|
+
total: number;
|
|
13
|
+
visible: boolean;
|
|
14
|
+
onDismiss: () => void;
|
|
15
|
+
onExited: (id: string) => void;
|
|
16
|
+
onHeightChange: (id: string, height: number) => void;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ToastCard/ToastCard';
|