@konstructio/ui 0.1.2-alpha.119 → 0.1.2-alpha.120
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/Breadcrumb-DDRmDlWK.js +93 -0
- package/dist/{Checkbox-DRdyrKjk.js → Checkbox-DrounE52.js} +2 -2
- package/dist/{CollapsedSteps-CR7oCTRC.js → CollapsedSteps-DvBeYShi.js} +3 -3
- package/dist/{CommandInput-Du2o616y.js → CommandInput-_vujzQ6B.js} +2 -2
- package/dist/{Counter-DMkXIsOO.js → Counter-LQ5_uh06.js} +2 -2
- package/dist/{DayPicker-BtpJg2q3.js → DayPicker-D7KFB2bI.js} +383 -383
- package/dist/DropdownButton-BWfWN4fg.js +121 -0
- package/dist/{HamburgerTrigger-BgeS_nBA.js → HamburgerTrigger-CfrAnhmG.js} +10 -10
- package/dist/{Input-2M2I_H60.js → Input-O2bqyJKW.js} +2 -2
- package/dist/Modal-B-l4ii6w.js +84 -0
- package/dist/{Wrapper-JmStmade.js → Wrapper-B5PmrW4J.js} +3 -3
- package/dist/{Wrapper-ThpRi_Gg.js → Wrapper-CZCSSCLm.js} +2 -2
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +1 -1
- package/dist/components/Breadcrumb/components/index.js +1 -1
- package/dist/components/Button/Button.variants.js +1 -0
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/CheckboxCard/CheckboxCard.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/DialogContent.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.js +7 -5
- package/dist/components/CopyButton/CopyButton.variants.js +3 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +1 -1
- package/dist/components/Drawer/Drawer.js +78 -58
- package/dist/components/Drawer/Drawer.variants.js +40 -22
- package/dist/components/Drawer/components/Footer/Footer.js +5 -5
- package/dist/components/Drawer/constants/index.js +5 -4
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/DropdownButton/components/ActionSheet/ActionSheet.js +34 -0
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/utils/index.js +2 -2
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +1 -0
- package/dist/components/LineChart/components/LineChartContent/LineChartContent.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +12 -6
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.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/components/FlagSelectorWrapper/FlagSelectorWrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/PhoneNumberInputContent.js +2 -2
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +2 -2
- package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
- package/dist/components/PhoneNumberInput/components/index.js +1 -1
- 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/components/PieChartContent/PieChartContent.js +1 -1
- package/dist/components/Select/Select.variants.js +2 -0
- package/dist/components/Select/components/List/List.js +2 -2
- package/dist/components/Sheet/Sheet.js +130 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +103 -86
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +13 -13
- package/dist/components/TagSelect/TagSelect.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.variants.js +1 -0
- package/dist/components/VirtualizedTable/components/Actions/components/ActionsTrigger/ActionsTrigger.js +7 -7
- package/dist/components/VirtualizedTable/components/Body/Body.js +47 -44
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +68 -68
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +38 -31
- package/dist/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.js +75 -0
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +42 -35
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +72 -72
- package/dist/components/VirtualizedTable/components/index.js +14 -12
- package/dist/components/VirtualizedTable/constants/index.js +5 -3
- package/dist/components/VirtualizedTable/constants/responsive.js +10 -0
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.js +4 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/VirtualizedTable/utils/index.js +8 -4
- package/dist/components/VirtualizedTable/utils/pinned-columns/index.js +6 -0
- package/dist/components/VirtualizedTable/utils/pinned-columns/pinned-columns.js +32 -0
- package/dist/components/index.js +147 -145
- package/dist/{components-B_SWqhCL.js → components-Bq71eyUH.js} +1 -1
- package/dist/{country-locale-map-DbrJ3bEE.js → country-locale-map-BQYYErun.js} +1407 -1407
- package/dist/{debounce-dMRJxNsT.js → debounce-DhCY9mXz.js} +2 -2
- package/dist/{dist-Dg3vyTx9.js → dist-BCqfbYE9.js} +1356 -1317
- package/dist/dist-CMqY_9n-.js +445 -0
- package/dist/{es2015-B_07N-UL.js → es2015-BvX7Yq5Q.js} +2 -2
- package/dist/index.js +158 -156
- package/dist/{isSymbol-BG9higgO.js → isSymbol-CcfkyZfq.js} +1 -1
- package/dist/lib/components/Drawer/Drawer.types.d.ts +10 -0
- package/dist/lib/components/Drawer/Drawer.variants.d.ts +1 -0
- package/dist/lib/components/Drawer/constants/index.d.ts +1 -0
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +2 -1
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +25 -0
- package/dist/lib/components/DropdownButton/components/ActionSheet/ActionSheet.d.ts +7 -0
- package/dist/lib/components/DropdownButton/components/ActionSheet/ActionSheet.types.d.ts +12 -0
- package/dist/lib/components/Modal/Modal.types.d.ts +2 -0
- package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +1 -0
- package/dist/lib/components/Sheet/Sheet.d.ts +21 -0
- package/dist/lib/components/Sheet/Sheet.types.d.ts +39 -0
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +9 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +11 -2
- package/dist/lib/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/components/ScrollContainer/ScrollContainer.types.d.ts +6 -0
- package/dist/lib/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/components/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/constants/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +4 -0
- package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +1 -1
- package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +2 -1
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/pinned-columns/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/pinned-columns/pinned-columns.d.ts +23 -0
- package/dist/lib/components/index.d.ts +3 -1
- package/dist/{libphonenumber-DtibHRPP.js → libphonenumber-BIeQOhzl.js} +196 -164
- package/dist/package.json +18 -18
- package/dist/{phone-number.provider-DnuL-yYF.js → phone-number.provider-CJeivoDY.js} +2 -2
- package/dist/{prop-types-BCUW56rg.js → prop-types-qsAjMBb1.js} +1 -1
- package/dist/{rolldown-runtime-Dw9YIBcH.js → rolldown-runtime-B28h4lGi.js} +6 -6
- package/dist/styles.css +1 -1
- package/dist/{table.provider-CzfMGbe4.js → table.provider-QUo2buYX.js} +561 -523
- package/dist/{x-Vur_9PXW.js → x-BmNOD9Gr.js} +2 -2
- package/package.json +18 -18
- package/dist/Breadcrumb-CpXRb08J.js +0 -93
- package/dist/DropdownButton-JilCRLJY.js +0 -92
- package/dist/Modal-0Wp5szX4.js +0 -84
- package/dist/dist-BCoDIdCt.js +0 -429
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { t as o } from "./Checkbox-
|
|
2
|
-
import { t as m } from "./DropdownButton-
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as a } from "./Input-
|
|
5
|
-
import { t as s } from "./Counter-
|
|
1
|
+
import { t as o } from "./Checkbox-DrounE52.js";
|
|
2
|
+
import { t as m } from "./DropdownButton-BWfWN4fg.js";
|
|
3
|
+
import { t as e } from "./Breadcrumb-DDRmDlWK.js";
|
|
4
|
+
import { t as a } from "./Input-O2bqyJKW.js";
|
|
5
|
+
import { t as s } from "./Counter-LQ5_uh06.js";
|
|
6
6
|
import { a as l, t as d } from "./utils-DnIJruo0.js";
|
|
7
7
|
import { Alert as T } from "./components/Alert/Alert.js";
|
|
8
|
-
import { Button as
|
|
8
|
+
import { Button as S } from "./components/Button/Button.js";
|
|
9
9
|
import { AlertDialog as c } from "./components/AlertDialog/AlertDialog.js";
|
|
10
10
|
import { useClickOutside as R } from "./hooks/useClickOutside.js";
|
|
11
11
|
import { useIsHydrated as A } from "./hooks/useIsHydrated/useIsHydrated.js";
|
|
12
12
|
import { useMediaQuery as b } from "./hooks/useMediaQuery.js";
|
|
13
13
|
import { useToggle as I } from "./hooks/useToggle.js";
|
|
14
|
-
import { Autocomplete as
|
|
14
|
+
import { Autocomplete as w } from "./components/Autocomplete/Autocomplete.js";
|
|
15
15
|
import { Avatar as B } from "./components/Avatar/Avatar.js";
|
|
16
16
|
import { AvatarGroup as P } from "./components/AvatarGroup/AvatarGroup.js";
|
|
17
17
|
import { t as y } from "./Loading-u8hXrFJR.js";
|
|
@@ -24,193 +24,195 @@ import { Card as X } from "./components/Card/Card.js";
|
|
|
24
24
|
import { CheckboxCard as q } from "./components/CheckboxCard/CheckboxCard.js";
|
|
25
25
|
import { Collapse as K } from "./components/Collapse/Collapse.js";
|
|
26
26
|
import { CopyButton as Z } from "./components/CopyButton/CopyButton.js";
|
|
27
|
-
import { t as rr } from "./Modal-
|
|
27
|
+
import { t as rr } from "./Modal-B-l4ii6w.js";
|
|
28
28
|
import { ConfirmDialog as tr } from "./components/ConfirmDialog/ConfirmDialog.js";
|
|
29
29
|
import { DatePicker as ir } from "./components/Datepicker/DatePicker.js";
|
|
30
|
-
import { Radio as
|
|
30
|
+
import { Radio as pr } from "./components/Radio/Radio.js";
|
|
31
31
|
import { RadioGroup as fr } from "./components/RadioGroup/RadioGroup.js";
|
|
32
32
|
import { TimePicker as nr } from "./components/TimePicker/TimePicker.js";
|
|
33
33
|
import { DateRangePicker as dr } from "./components/DateRangePicker/DateRangePicker.js";
|
|
34
34
|
import { Divider as Tr } from "./components/Divider/Divider.js";
|
|
35
|
-
import { Drawer as
|
|
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 {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
35
|
+
import { Drawer as Sr } from "./components/Drawer/Drawer.js";
|
|
36
|
+
import { Sheet as cr } from "./components/Sheet/Sheet.js";
|
|
37
|
+
import { BadgeMultiSelect as Rr } from "./components/Filter/components/BadgeDropdown/BadgeMultiSelect.js";
|
|
38
|
+
import { CustomDateRangeFilterDropdown as Ar } from "./components/Filter/components/CustomDateRangeFilterDropdown/CustomDateRangeFilterDropdown.js";
|
|
39
|
+
import { DateFilterDropdown as br } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
40
|
+
import { DateRangeFilterDropdown as Ir } from "./components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
|
|
41
|
+
import { TextMultiSelect as wr } from "./components/Filter/components/TextMultiSelect/TextMultiSelect.js";
|
|
42
|
+
import { TimeFilterDropdown as Br } from "./components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js";
|
|
43
|
+
import { Filter as Pr } from "./components/Filter/Filter.js";
|
|
44
|
+
import { t as yr } from "./ImageUpload-BNZjCUTX.js";
|
|
45
|
+
import { LineChart as Mr } from "./components/LineChart/LineChart.js";
|
|
46
|
+
import { OtpInput as Or } from "./components/OtpInput/OtpInput.js";
|
|
47
|
+
import { PasswordRules as Gr } from "./components/PasswordRules/PasswordRules.js";
|
|
48
|
+
import { t as Ur } from "./components-Bq71eyUH.js";
|
|
49
|
+
import { PhoneNumberInput as Qr } from "./components/PhoneNumberInput/PhoneNumberInput.js";
|
|
50
|
+
import { PieChart as Xr } from "./components/PieChart/PieChart.js";
|
|
51
|
+
import { ProgressBar as qr } from "./components/ProgressBar/ProgressBar.js";
|
|
52
|
+
import { RadioCard as Kr } from "./components/RadioCard/RadioCard.js";
|
|
53
|
+
import { RadioCardGroup as Zr } from "./components/RadioCardGroup/RadioCardGroup.js";
|
|
54
|
+
import { Range as ro } from "./components/Range/Range.js";
|
|
55
|
+
import { Select as to } from "./components/Select/Select.js";
|
|
56
|
+
import { CollapseTrigger as io } from "./components/Sidebar/components/CollapseTrigger/CollapseTrigger.js";
|
|
57
|
+
import { Footer as po } from "./components/Sidebar/components/Footer/Footer.js";
|
|
58
|
+
import { Label as fo } from "./components/Sidebar/components/Label/Label.js";
|
|
59
|
+
import { Logo as no } from "./components/Sidebar/components/Logo/Logo.js";
|
|
60
|
+
import { NavigationGroup as uo } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
61
|
+
import { NavigationOption as go } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
|
|
62
|
+
import { NavigationSeparator as Co } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
63
|
+
import { Navigation as Do } from "./components/Sidebar/components/Navigation/Navigation.js";
|
|
64
|
+
import { Sidebar as vo } from "./components/Sidebar/Sidebar.js";
|
|
65
|
+
import { Skeleton as Vo } from "./components/Skeleton/Skeleton.js";
|
|
66
|
+
import { Slider as Eo } from "./components/Slider/Slider.js";
|
|
67
|
+
import { t as ho } from "./Spinner-CTonkSzG.js";
|
|
68
|
+
import { horizontalConnectorWrapperVariants as Lo, stepConnectorVariants as Bo, stepContentVariants as Fo, stepDescriptionVariants as Po, stepIndicatorVariants as xo, stepItemVariants as yo, stepLabelVariants as ko, stepListVariants as Mo, stepVariants as No, stepperVariants as Oo } from "./components/Stepper/Stepper.variants.js";
|
|
69
|
+
import { Stepper as Go } from "./components/Stepper/Stepper.js";
|
|
70
|
+
import { t as Uo } from "./Switch-5cdUxbhX.js";
|
|
71
|
+
import { Table as Qo } from "./components/Table/Table.js";
|
|
72
|
+
import { Content as Xo } from "./components/Tabs/components/Content.js";
|
|
73
|
+
import { List as qo } from "./components/Tabs/components/List.js";
|
|
74
|
+
import { Trigger as Ko } from "./components/Tabs/components/Trigger.js";
|
|
75
|
+
import { Tabs as Zo } from "./components/Tabs/Tabs.js";
|
|
76
|
+
import { Tag as rt } from "./components/Tag/Tag.js";
|
|
77
|
+
import { TagSelect as tt } from "./components/TagSelect/TagSelect.js";
|
|
78
|
+
import { TagsInput as it } from "./components/TagsInput/TagsInput.js";
|
|
79
|
+
import { TextArea as pt } from "./components/TextArea/TextArea.js";
|
|
80
|
+
import { DEFAULT_MAX_VISIBLE_TOASTS as ft, DEFAULT_TOAST_DURATION as st, DEFAULT_TOAST_LIMIT as nt } from "./components/Toast/constants/index.js";
|
|
81
|
+
import { createToastStore as dt } from "./components/Toast/store/create-toast-store.js";
|
|
82
|
+
import { useToastStore as Tt, useToastStoreApi as gt } from "./components/Toast/hooks/useToastStore/useToastStore.js";
|
|
83
|
+
import { useToast as Ct } from "./components/Toast/hooks/useToast/useToast.js";
|
|
84
|
+
import { Toast as Dt } from "./components/Toast/Toast.js";
|
|
85
|
+
import { ToastProvider as vt } from "./components/Toast/ToastProvider.js";
|
|
86
|
+
import { t as Vt } from "./events.types-BG1Uh8i6.js";
|
|
87
|
+
import { sendResetFiltersEvent as Et } from "./components/VirtualizedTable/events/filters/filters.js";
|
|
88
|
+
import { sendRefreshEvent as ht } from "./components/VirtualizedTable/events/refresh/refresh.js";
|
|
89
|
+
import { sendCollapseRowEvent as Lt, sendExpandRowEvent as Bt, sendToggleRowEvent as Ft } from "./components/VirtualizedTable/events/row/row.js";
|
|
90
|
+
import { EmptyState as xt } from "./components/VirtualizedTable/components/EmptyState/EmptyState.js";
|
|
91
|
+
import { EmptyResults as kt } from "./components/VirtualizedTable/components/EmptyResults/EmptyResults.js";
|
|
92
|
+
import { ErrorState as Nt } from "./components/VirtualizedTable/components/ErrorState/ErrorState.js";
|
|
93
|
+
import { TruncateText as _t } from "./components/VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
94
|
+
import { preloadVirtualizedTable as zt } from "./components/VirtualizedTable/utils/load-content/load-content.js";
|
|
95
|
+
import { VirtualizedTable as Ht } from "./components/VirtualizedTable/VirtualizedTable.js";
|
|
96
|
+
import { useVirtualizedTableReady as Wt } from "./components/VirtualizedTable/hooks/useVirtualizedTableReady/useVirtualizedTableReady.js";
|
|
97
|
+
import { ThemeContext as jt } from "./contexts/theme.context.js";
|
|
98
|
+
import { useTheme as Jt } from "./contexts/theme.hook.js";
|
|
99
|
+
import { t as Yt } from "./theme.provider-CvL6sqHq.js";
|
|
99
100
|
import "./contexts/index.js";
|
|
100
101
|
export {
|
|
101
102
|
T as Alert,
|
|
102
103
|
c as AlertDialog,
|
|
103
|
-
|
|
104
|
+
w as Autocomplete,
|
|
104
105
|
B as Avatar,
|
|
105
106
|
P as AvatarGroup,
|
|
106
107
|
M as Badge,
|
|
107
108
|
G as BadgeGroup,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
Rr as BadgeMultiSelect,
|
|
110
|
+
e as Breadcrumb,
|
|
111
|
+
S as Button,
|
|
111
112
|
Q as ButtonGroup,
|
|
112
113
|
X as Card,
|
|
113
114
|
o as Checkbox,
|
|
114
115
|
q as CheckboxCard,
|
|
115
116
|
K as Collapse,
|
|
116
|
-
|
|
117
|
+
io as CollapseTrigger,
|
|
117
118
|
tr as ConfirmDialog,
|
|
118
|
-
|
|
119
|
+
Xo as Content,
|
|
119
120
|
Z as CopyButton,
|
|
120
121
|
s as Counter,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
Ar as CustomDateRangeFilterDropdown,
|
|
123
|
+
ft as DEFAULT_MAX_VISIBLE_TOASTS,
|
|
124
|
+
st as DEFAULT_TOAST_DURATION,
|
|
125
|
+
nt as DEFAULT_TOAST_LIMIT,
|
|
126
|
+
br as DateFilterDropdown,
|
|
126
127
|
ir as DatePicker,
|
|
127
|
-
|
|
128
|
+
Ir as DateRangeFilterDropdown,
|
|
128
129
|
dr as DateRangePicker,
|
|
129
130
|
Tr as Divider,
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
Sr as Drawer,
|
|
132
|
+
to as Dropdown,
|
|
132
133
|
m as DropdownButton,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
kt as EmptyResults,
|
|
135
|
+
xt as EmptyState,
|
|
136
|
+
Nt as ErrorState,
|
|
137
|
+
Pr as Filter,
|
|
138
|
+
po as Footer,
|
|
139
|
+
yr as ImageUpload,
|
|
139
140
|
a as Input,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
fo as Label,
|
|
142
|
+
Mr as LineChart,
|
|
143
|
+
qo as List,
|
|
143
144
|
y as Loading,
|
|
144
|
-
|
|
145
|
+
no as Logo,
|
|
145
146
|
rr as Modal,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
Ur as MultiSelectDropdown,
|
|
148
|
+
Do as Navigation,
|
|
149
|
+
uo as NavigationGroup,
|
|
150
|
+
go as NavigationOption,
|
|
151
|
+
Co as NavigationSeparator,
|
|
151
152
|
s as NumberInput,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
153
|
+
Or as OtpInput,
|
|
154
|
+
Gr as PasswordRules,
|
|
155
|
+
Qr as PhoneNumberInput,
|
|
156
|
+
Xr as PieChart,
|
|
157
|
+
qr as ProgressBar,
|
|
158
|
+
pr as Radio,
|
|
159
|
+
Kr as RadioCard,
|
|
160
|
+
Zr as RadioCardGroup,
|
|
160
161
|
fr as RadioGroup,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
vo as
|
|
165
|
-
Vo as
|
|
166
|
-
Eo as
|
|
167
|
-
|
|
168
|
-
Go as
|
|
169
|
-
Uo as
|
|
170
|
-
|
|
171
|
-
Zo as
|
|
172
|
-
rt as
|
|
173
|
-
tt as
|
|
174
|
-
it as
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
162
|
+
ro as Range,
|
|
163
|
+
to as Select,
|
|
164
|
+
cr as Sheet,
|
|
165
|
+
vo as Sidebar,
|
|
166
|
+
Vo as Skeleton,
|
|
167
|
+
Eo as Slider,
|
|
168
|
+
ho as Spinner,
|
|
169
|
+
Go as Stepper,
|
|
170
|
+
Uo as Switch,
|
|
171
|
+
Qo as Table,
|
|
172
|
+
Zo as Tabs,
|
|
173
|
+
rt as Tag,
|
|
174
|
+
tt as TagSelect,
|
|
175
|
+
it as TagsInput,
|
|
176
|
+
pt as TextArea,
|
|
177
|
+
wr as TextMultiSelect,
|
|
178
|
+
jt as ThemeContext,
|
|
179
|
+
Yt as ThemeProvider,
|
|
180
|
+
Br as TimeFilterDropdown,
|
|
179
181
|
nr as TimePicker,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
Dt as Toast,
|
|
183
|
+
vt as ToastProvider,
|
|
182
184
|
O as Tooltip,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
+
Ko as Trigger,
|
|
186
|
+
_t as TruncateText,
|
|
185
187
|
U as Typography,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
Ht as VirtualizedTable,
|
|
189
|
+
Vt as VirtualizedTableEvent,
|
|
188
190
|
d as cn,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
dt as createToastStore,
|
|
192
|
+
Lo as horizontalConnectorWrapperVariants,
|
|
193
|
+
zt as preloadVirtualizedTable,
|
|
192
194
|
l as resolveColor,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
195
|
+
Lt as sendCollapseRowEvent,
|
|
196
|
+
Bt as sendExpandRowEvent,
|
|
197
|
+
ht as sendRefreshEvent,
|
|
198
|
+
Et as sendResetFiltersEvent,
|
|
199
|
+
Ft as sendToggleRowEvent,
|
|
200
|
+
Bo as stepConnectorVariants,
|
|
201
|
+
Fo as stepContentVariants,
|
|
202
|
+
Po as stepDescriptionVariants,
|
|
203
|
+
xo as stepIndicatorVariants,
|
|
204
|
+
yo as stepItemVariants,
|
|
205
|
+
ko as stepLabelVariants,
|
|
206
|
+
Mo as stepListVariants,
|
|
207
|
+
No as stepVariants,
|
|
208
|
+
Oo as stepperVariants,
|
|
207
209
|
R as useClickOutside,
|
|
208
210
|
A as useIsHydrated,
|
|
209
211
|
b as useMediaQuery,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
Jt as useTheme,
|
|
213
|
+
Ct as useToast,
|
|
214
|
+
Tt as useToastStore,
|
|
215
|
+
gt as useToastStoreApi,
|
|
214
216
|
I as useToggle,
|
|
215
|
-
|
|
217
|
+
Wt as useVirtualizedTableReady
|
|
216
218
|
};
|
|
@@ -60,6 +60,16 @@ export type Props = PropsWithChildren & VariantProps<typeof drawerVariants> & {
|
|
|
60
60
|
position?: 'left' | 'right';
|
|
61
61
|
/** Show the X close button in the corner */
|
|
62
62
|
showCloseButton?: boolean;
|
|
63
|
+
/** Close on a horizontal swipe towards the edge the panel came from (default: true) */
|
|
64
|
+
closeOnSwipe?: boolean;
|
|
65
|
+
/** Take the whole screen below 768px, whatever `defaultWidth` says (default: true) */
|
|
66
|
+
fullScreenOnMobile?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Where focus lands on open: the first focusable element (default) or the
|
|
69
|
+
* panel itself, for drawers opened by a tap that should not start with a
|
|
70
|
+
* focus ring on their first control.
|
|
71
|
+
*/
|
|
72
|
+
initialFocus?: 'first' | 'panel';
|
|
63
73
|
/** Theme override for this component */
|
|
64
74
|
theme?: Theme;
|
|
65
75
|
/** Callback when drawer is closed (Escape key, overlay click, or close button) */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const drawerVariants: (props?: ({
|
|
2
|
+
fullScreenOnMobile?: boolean | null | undefined;
|
|
2
3
|
position?: "left" | "right" | null | undefined;
|
|
3
4
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
5
|
export declare const overlayVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -3,7 +3,8 @@ import { Props } from './DropdownButton.types';
|
|
|
3
3
|
/**
|
|
4
4
|
* A button with an attached dropdown menu for selecting actions.
|
|
5
5
|
* Built on Radix DropdownMenu: closes on outside click or Escape, and
|
|
6
|
-
* supports full keyboard navigation.
|
|
6
|
+
* supports full keyboard navigation. With `sheetTitle` the menu becomes an
|
|
7
|
+
* action sheet docked to the bottom of the screen on touch devices.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```tsx
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '../../domain/theme';
|
|
2
3
|
import { Props as ButtonProps } from '../Button/Button.types';
|
|
3
4
|
/**
|
|
4
5
|
* Configuration for a dropdown menu option.
|
|
@@ -8,6 +9,14 @@ export type Option = {
|
|
|
8
9
|
label: string | ReactNode;
|
|
9
10
|
/** Callback fired when this option is selected */
|
|
10
11
|
onClick?: VoidFunction;
|
|
12
|
+
/** Keep the option visible but inert */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Why the option is disabled; rendered beside the label and implies `disabled` */
|
|
15
|
+
disabledReason?: ReactNode;
|
|
16
|
+
/** Style the option as a destructive action */
|
|
17
|
+
destructive?: boolean;
|
|
18
|
+
/** Draw a divider above this option */
|
|
19
|
+
separator?: boolean;
|
|
11
20
|
};
|
|
12
21
|
/**
|
|
13
22
|
* Props for the DropdownButton component.
|
|
@@ -24,6 +33,8 @@ export type Option = {
|
|
|
24
33
|
* ```
|
|
25
34
|
*/
|
|
26
35
|
export type Props = {
|
|
36
|
+
/** Edge of the trigger the menu aligns to (default: 'start') */
|
|
37
|
+
align?: 'start' | 'end';
|
|
27
38
|
/** Appearance of the trigger button */
|
|
28
39
|
appearance?: ButtonProps['appearance'];
|
|
29
40
|
/** Additional CSS classes for the trigger button */
|
|
@@ -42,6 +53,20 @@ export type Props = {
|
|
|
42
53
|
listClassName?: string;
|
|
43
54
|
/** Array of options to display in the dropdown */
|
|
44
55
|
options: Option[];
|
|
56
|
+
/**
|
|
57
|
+
* Render the options as an action sheet docked to the bottom of the screen
|
|
58
|
+
* instead of a dropdown while `sheetQuery` matches. The title heads the sheet.
|
|
59
|
+
*/
|
|
60
|
+
sheetTitle?: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Media query that switches to the action sheet (default: touch pointers and
|
|
63
|
+
* viewports under 768px).
|
|
64
|
+
*/
|
|
65
|
+
sheetQuery?: string;
|
|
66
|
+
/** Screen edge the action sheet docks to (default: 'bottom') */
|
|
67
|
+
sheetPosition?: 'bottom' | 'top';
|
|
68
|
+
/** Theme override for the dropdown and the sheet */
|
|
69
|
+
theme?: Theme;
|
|
45
70
|
/** Variant of the trigger button */
|
|
46
71
|
variant?: ButtonProps['variant'];
|
|
47
72
|
/** Version of the trigger button */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '../../../../domain/theme';
|
|
3
|
+
import { Option } from '../../DropdownButton.types';
|
|
4
|
+
export type Props = {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
options: Option[];
|
|
9
|
+
itemClassName?: string;
|
|
10
|
+
position?: 'bottom' | 'top';
|
|
11
|
+
theme?: Theme;
|
|
12
|
+
};
|
|
@@ -34,6 +34,8 @@ export type Props = PropsWithChildren & VariantProps<typeof modalVariants> & {
|
|
|
34
34
|
container?: Element | DocumentFragment;
|
|
35
35
|
/** Whether the modal is open */
|
|
36
36
|
isOpen?: boolean;
|
|
37
|
+
/** Close when the overlay behind the modal is clicked. Defaults to true */
|
|
38
|
+
closeOnOverlayClick?: boolean;
|
|
37
39
|
/** Show the X close button in the corner */
|
|
38
40
|
showCloseButton?: boolean;
|
|
39
41
|
/** Theme override for this component */
|
|
@@ -10,6 +10,7 @@ export type Props = PropsWithChildren & VariantProps<typeof modalVariants> & {
|
|
|
10
10
|
autoFocus?: boolean;
|
|
11
11
|
buttonCloseClassName?: string;
|
|
12
12
|
className?: string;
|
|
13
|
+
closeOnOverlayClick?: boolean;
|
|
13
14
|
containerClassName?: string;
|
|
14
15
|
showCloseButton?: boolean;
|
|
15
16
|
theme?: Theme;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Props } from './Sheet.types';
|
|
3
|
+
/**
|
|
4
|
+
* A dialog docked to the bottom (or top) edge of the screen, full width: the
|
|
5
|
+
* touch-screen counterpart of a dropdown or a popover menu. It slides in and
|
|
6
|
+
* out, dims the page behind a scrim, and keeps its content scrollable within
|
|
7
|
+
* the viewport. Radix unmounts closed dialogs, so the portal is force-mounted
|
|
8
|
+
* and AnimatePresence keeps it around for the exit animation.
|
|
9
|
+
*
|
|
10
|
+
* Multi-step sheets pass a `step`: when it changes the content slides across
|
|
11
|
+
* (forward for a higher step, back for a lower one) and the panel height
|
|
12
|
+
* animates to the new content.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <Sheet isOpen={isOpen} onClose={() => setIsOpen(false)} title="Region">
|
|
17
|
+
* <button type="button">London</button>
|
|
18
|
+
* </Sheet>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const Sheet: FC<Props>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '../../domain/theme';
|
|
3
|
+
export type SheetPosition = 'bottom' | 'top';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the Sheet component.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Sheet isOpen={isOpen} onClose={() => setIsOpen(false)} title="Region">
|
|
10
|
+
* <button type="button">London</button>
|
|
11
|
+
* </Sheet>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export type Props = PropsWithChildren<{
|
|
15
|
+
/** Whether the sheet is open */
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
/** Called when the sheet asks to close: scrim tap, Escape, or `closeOnSelect` */
|
|
18
|
+
onClose: () => void;
|
|
19
|
+
/** Heading of the sheet; also its accessible name */
|
|
20
|
+
title: ReactNode;
|
|
21
|
+
/** Keep the title for assistive technology only */
|
|
22
|
+
hideTitle?: boolean;
|
|
23
|
+
/** Rendered before the title, e.g. a back button for a nested step */
|
|
24
|
+
leading?: ReactNode;
|
|
25
|
+
/** Screen edge the sheet docks to (default: 'bottom') */
|
|
26
|
+
position?: SheetPosition;
|
|
27
|
+
/**
|
|
28
|
+
* Index of the step the content shows. Changing it slides the content across
|
|
29
|
+
* (forward for a higher index, back for a lower one) and animates the panel
|
|
30
|
+
* height to the new content.
|
|
31
|
+
*/
|
|
32
|
+
step?: number;
|
|
33
|
+
/** Additional CSS classes for the panel */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Additional CSS classes for the scrolling body */
|
|
36
|
+
bodyClassName?: string;
|
|
37
|
+
/** Theme override for the sheet */
|
|
38
|
+
theme?: Theme;
|
|
39
|
+
}>;
|
|
@@ -72,6 +72,15 @@ export interface Props extends Omit<VariantProps<typeof wrapperSiderbarVariants>
|
|
|
72
72
|
triggerClassName?: string;
|
|
73
73
|
/** Accessible label for the mobile navigation trigger */
|
|
74
74
|
openNavigationLabel?: string;
|
|
75
|
+
/**
|
|
76
|
+
* In `collapsed` mode, expanding through the CollapseTrigger floats the
|
|
77
|
+
* expanded sidebar over the page behind a scrim instead of pushing the
|
|
78
|
+
* content. Tapping the scrim, pressing Escape or choosing a destination
|
|
79
|
+
* collapses it again. The `<aside>` carries `data-overlay` while floating.
|
|
80
|
+
*/
|
|
81
|
+
expandAsOverlay?: boolean;
|
|
82
|
+
/** Additional CSS classes for the scrim rendered behind the floating sidebar */
|
|
83
|
+
overlayClassName?: string;
|
|
75
84
|
/**
|
|
76
85
|
* Per-slot class overrides for the underlying `Drawer` rendered in
|
|
77
86
|
* `drawer` mode. Mirrors `Drawer`'s `classNames` shape: `root`, `overlay`,
|