@konstructio/ui 0.1.2-alpha.103 → 0.1.2-alpha.104
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/README.md +15 -21
- package/dist/{AdditionalOptions-Cj29eeMF.js → AdditionalOptions-D0BAS2HG.js} +1 -1
- package/dist/{AlertDialogTrigger-CgcsW_ta.js → AlertDialogTrigger-BGo_acd5.js} +3 -3
- package/dist/{Checkbox-DzAx7n67.js → Checkbox-B_ngk9Dj.js} +56 -56
- package/dist/{Combination-cjXRJS03.js → Combination-CnMM05mt.js} +51 -45
- package/dist/{CommandInput-BnvRMfLI.js → CommandInput-BLq69pOT.js} +1 -1
- package/dist/Counter-BV680M5r.js +195 -0
- package/dist/DropdownButton-DfNojmCW.js +493 -0
- package/dist/{FlagSelectorList-BoYG-_It.js → FlagSelectorList-CkTR3j6O.js} +222 -218
- package/dist/{HamburgerTrigger-1vOTrm8-.js → HamburgerTrigger-DRylBL2d.js} +1 -1
- package/dist/{ImageUpload-DZTm4SBB.js → ImageUpload-DiwymQcU.js} +1 -1
- package/dist/{Input-CW0VwW2T.js → Input-Cf44DzfE.js} +18 -18
- package/dist/{Loading-fD0Xiyeq.js → Loading-DUh9PMJN.js} +3 -1
- package/dist/Modal-Dyn088X7.js +81 -0
- package/dist/Sidebar.css +1 -1
- package/dist/{Spinner-Lw9mZYhg.js → Spinner-CUwE2bLm.js} +1 -1
- package/dist/{Switch-WBRr8uOJ.js → Switch-aPhL5rNG.js} +4 -4
- package/dist/{Toast-ByH-l4XK.js → Toast-3NEz7LLa.js} +149 -148
- package/dist/Wrapper-BhqUVI1G.js +171 -0
- package/dist/Wrapper-CVJSuYWx.js +114 -0
- package/dist/{Wrapper-XeeD3av7.js → Wrapper-DP6Sxngx.js} +185 -180
- package/dist/components/Alert/Alert.js +21 -21
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/AlertDialog/hooks/useAlertDialog.js +14 -10
- package/dist/components/Autocomplete/components/List/List.js +22 -26
- package/dist/components/Autocomplete/components/List/List.variants.js +7 -19
- package/dist/components/Autocomplete/hooks/useAutocomplete.js +39 -38
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -1
- package/dist/components/Badge/Badge.js +37 -36
- package/dist/components/Button/Button.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 +6 -6
- 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 +2 -2
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Command/contexts/Command.provider.js +16 -12
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +57 -58
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +42 -43
- 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 +42 -50
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +61 -79
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.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/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +89 -122
- package/dist/components/Datepicker/DatePicker.js +13 -13
- package/dist/components/Drawer/Drawer.js +54 -49
- package/dist/components/Drawer/hooks/useDrawer.js +39 -44
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.js +23 -22
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +42 -56
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +30 -43
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +36 -49
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +1 -1
- package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -18
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +1 -1
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +31 -45
- package/dist/components/Filter/contexts/filter.provider.js +15 -10
- package/dist/components/Filter/events/index.js +26 -5
- package/dist/components/Filter/hooks/index.js +4 -0
- package/dist/components/Filter/hooks/useFilterDropdownSync.js +26 -0
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- 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/Modal/contexts/Modal.provider.js +26 -19
- 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/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +14 -13
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +6 -4
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +16 -16
- 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/PieChart/PieChart.js +33 -32
- package/dist/components/ProgressBar/ProgressBar.js +26 -20
- package/dist/components/Radio/Radio.js +28 -30
- package/dist/components/RadioCardGroup/RadioCardGroup.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.js +24 -24
- package/dist/components/Range/Range.js +15 -13
- 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 +2 -2
- package/dist/components/Select/components/ListItem/ListItem.js +30 -30
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +2 -2
- package/dist/components/Select/hooks/useSelect.js +39 -38
- package/dist/components/Sidebar/Sidebar.js +21 -18
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +30 -0
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +20 -0
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/Logo/Logo.js +14 -10
- package/dist/components/Sidebar/components/Logo/Logo.variants.js +14 -4
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +41 -37
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +4 -5
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +75 -68
- package/dist/components/Sidebar/components/index.js +17 -15
- package/dist/components/Sidebar/contexts/SidebarContext.js +8 -5
- package/dist/components/Slider/Slider.js +17 -15
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Stepper/Stepper.variants.js +6 -6
- package/dist/components/Stepper/hooks/useStepItemLogic.js +12 -17
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.variants.js +17 -17
- 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/TagSelect/hooks/useTagSelect.js +12 -11
- package/dist/components/TimePicker/components/HoursList/HoursList.js +34 -38
- package/dist/components/TimePicker/components/MeridianList/MeridianList.js +25 -29
- package/dist/components/TimePicker/components/MinutesList/MinutesList.js +33 -33
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +91 -99
- package/dist/components/TimePicker/components/WrapperList/WrapperList.js +29 -30
- package/dist/components/TimePicker/contexts/time-picker.provider.js +10 -10
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.variants.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +32 -29
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +0 -2
- package/dist/components/VirtualizedTable/components/Body/Body.js +5 -5
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +55 -53
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.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/VirtualizedTable/events/filters/filters.js +7 -0
- package/dist/components/VirtualizedTable/events/index.js +10 -25
- package/dist/components/VirtualizedTable/events/refresh/refresh.js +7 -0
- package/dist/components/VirtualizedTable/events/row/row.js +22 -0
- package/dist/components/VirtualizedTable/utils/get-table-id.js +4 -0
- package/dist/components/VirtualizedTable/utils/index.js +4 -2
- package/dist/components/index.js +95 -89
- package/dist/{components-BIHlj4yH.js → components-Cf345jTv.js} +45 -41
- package/dist/constants-CxJJRVK3.js +31 -0
- package/dist/{dist-DISvWx7U.js → dist-BUocnzkM.js} +1 -1
- package/dist/{dist-Dse3gSmZ.js → dist-BZNE2Tnx.js} +4 -4
- package/dist/{dist-2bGlmy8N2.js → dist-BaPW7qXd2.js} +27 -26
- package/dist/dist-BdobXn93.js +192 -0
- package/dist/dist-BlPTJNIm.js +118 -0
- package/dist/{dist-BiJrNvNo.js → dist-C3YVLapk.js} +29 -28
- package/dist/dist-C4j75TwZ.js +20 -0
- package/dist/dist-CCdbu9GU.js +46 -0
- package/dist/dist-CzKqHuqJ2.js +427 -0
- package/dist/dist-D-yS0HN8.js +228 -0
- package/dist/dist-D5XYRjmR.js +15 -0
- package/dist/dist-DDck_2lb.js +451 -0
- package/dist/{dist-C2aTw0m62.js → dist-DFCz63oC2.js} +5 -5
- package/dist/dist-DGOjiAnB2.js +14 -0
- package/dist/dist-DKryKPmP.js +193 -0
- package/dist/{dist-CTvBzxW8.js → dist-DX0sBG3Q.js} +1 -1
- package/dist/dist-DYIabsrY.js +17 -0
- package/dist/dist-pWlMx4Fi2.js +36 -0
- package/dist/{dist-CVDFmWf2.js → dist-tGUUcv8n.js} +17 -16
- package/dist/dist-xCbHbMLA.js +116 -0
- package/dist/{es2015-BWf6xQHm.js → es2015-CoHq2g4y.js} +95 -86
- package/dist/es2015-DigR3dar.js +795 -0
- package/dist/events.types-BG1Uh8i6.js +6 -0
- package/dist/hooks/index.js +6 -4
- package/dist/hooks/useClickOutside.js +14 -0
- package/dist/index.js +146 -138
- package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +0 -1
- package/dist/lib/components/DropdownButton/DropdownButton.d.ts +5 -6
- package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +2 -0
- package/dist/lib/components/Filter/Filter.types.d.ts +2 -0
- package/dist/lib/components/Filter/contexts/filter.context.d.ts +1 -0
- package/dist/lib/components/Filter/events/index.d.ts +10 -2
- package/dist/lib/components/Filter/hooks/index.d.ts +1 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.d.ts +2 -0
- package/dist/lib/components/Filter/hooks/useFilterDropdownSync.types.d.ts +5 -0
- package/dist/lib/components/PieChart/PieChart.types.d.ts +4 -4
- package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +2 -0
- package/dist/lib/components/Select/hooks/useSelect.d.ts +2 -1
- package/dist/lib/components/Sidebar/Sidebar.d.ts +2 -2
- package/dist/lib/components/Sidebar/Sidebar.types.d.ts +6 -5
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.types.d.ts +4 -0
- package/dist/lib/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.d.ts +1 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
- package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +3 -1
- package/dist/lib/components/Sidebar/components/index.d.ts +2 -0
- package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +12 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/events.types.d.ts +11 -0
- package/dist/lib/components/VirtualizedTable/events/filters/filters.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/events/index.d.ts +4 -14
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/events/refresh/refresh.types.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/events/row/row.d.ts +3 -0
- package/dist/lib/components/VirtualizedTable/utils/get-table-id.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/index.d.ts +2 -2
- package/dist/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useClickOutside.d.ts +2 -0
- package/dist/package.json +24 -24
- package/dist/styles.css +1 -1
- package/dist/{table.provider-2sAkE7z_.js → table.provider-B0BafHuU.js} +395 -381
- package/dist/ui/civo-theme.css +4 -0
- package/dist/ui/kubefirst-theme.css +4 -0
- package/package.json +24 -24
- package/dist/Counter-CY0xGnVM.js +0 -208
- package/dist/DropdownButton-DnlwdPmb.js +0 -92
- package/dist/Modal-Bfzggwlr.js +0 -76
- package/dist/Wrapper-ClJ_Mham.js +0 -110
- package/dist/Wrapper-DNEn4fef.js +0 -161
- package/dist/constants-DXrF9vV4.js +0 -31
- package/dist/dist-B-Aoze_D.js +0 -10
- package/dist/dist-BuFiu480.js +0 -13
- package/dist/dist-C2s4VX-42.js +0 -31
- package/dist/dist-CT6d9xe7.js +0 -441
- package/dist/dist-CVy-ulDZ.js +0 -42
- package/dist/dist-D4FePjTS.js +0 -194
- package/dist/dist-Db6UeFo4.js +0 -291
- package/dist/dist-DqKFpce5.js +0 -98
- package/dist/dist-j7FOUrFU.js +0 -206
- package/dist/dist-l-aDnQZC.js +0 -62
- package/dist/dist-ppXKUlVt.js +0 -10
- /package/dist/{x-a_LpoXzG.js → x-a_LpoXzG2.js} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var R = /* @__PURE__ */ (function(t) {
|
|
2
|
+
return t.EXPAND_ROW = "@konstructio/VirtualizedTable/event-EXPAND_ROW", t.COLLAPSE_ROW = "@konstructio/VirtualizedTable/event-COLLAPSE_ROW", t.TOGGLE_ROW = "@konstructio/VirtualizedTable/event-TOGGLE_ROW", t.RESET_FILTERS = "@konstructio/VirtualizedTable/event-RESET_FILTERS", t.REFRESH = "@konstructio/VirtualizedTable/event-REFRESH", t;
|
|
3
|
+
})({});
|
|
4
|
+
export {
|
|
5
|
+
R as t
|
|
6
|
+
};
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useClickOutside as o } from "./useClickOutside.js";
|
|
2
|
+
import { useMediaQuery as i } from "./useMediaQuery.js";
|
|
3
|
+
import { useToggle as t } from "./useToggle.js";
|
|
3
4
|
export {
|
|
4
|
-
o as
|
|
5
|
-
|
|
5
|
+
o as useClickOutside,
|
|
6
|
+
i as useMediaQuery,
|
|
7
|
+
t as useToggle
|
|
6
8
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useEffect as o } from "react";
|
|
2
|
+
var a = (t, r) => {
|
|
3
|
+
o(() => {
|
|
4
|
+
const e = new AbortController();
|
|
5
|
+
return document.addEventListener("mousedown", (n) => {
|
|
6
|
+
t.current?.contains(n.target) || r();
|
|
7
|
+
}, { signal: e.signal }), () => {
|
|
8
|
+
e.abort();
|
|
9
|
+
};
|
|
10
|
+
}, [t, r]);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a as useClickOutside
|
|
14
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,159 +1,167 @@
|
|
|
1
|
-
import { t as o } from "./Checkbox-
|
|
2
|
-
import { t as m } from "./DropdownButton-
|
|
1
|
+
import { t as o } from "./Checkbox-B_ngk9Dj.js";
|
|
2
|
+
import { t as m } from "./DropdownButton-DfNojmCW.js";
|
|
3
3
|
import { t as e } from "./Breadcrumb-Cp3abB2w.js";
|
|
4
|
-
import { t as a } from "./Input-
|
|
5
|
-
import { t as n } from "./Counter-
|
|
4
|
+
import { t as a } from "./Input-Cf44DzfE.js";
|
|
5
|
+
import { t as n } from "./Counter-BV680M5r.js";
|
|
6
6
|
import { i as l, t as d } from "./utils-Cx-WzRZF.js";
|
|
7
7
|
import { Alert as g } from "./components/Alert/Alert.js";
|
|
8
8
|
import { Button as c } from "./components/Button/Button.js";
|
|
9
9
|
import { AlertDialog as D } from "./components/AlertDialog/AlertDialog.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
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 { t as gr } from "./
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
10
|
+
import { useClickOutside as R } from "./hooks/useClickOutside.js";
|
|
11
|
+
import { useMediaQuery as b } from "./hooks/useMediaQuery.js";
|
|
12
|
+
import { useToggle as w } from "./hooks/useToggle.js";
|
|
13
|
+
import { Autocomplete as x } from "./components/Autocomplete/Autocomplete.js";
|
|
14
|
+
import { t as E } from "./Loading-DUh9PMJN.js";
|
|
15
|
+
import { Badge as P } from "./components/Badge/Badge.js";
|
|
16
|
+
import { Typography as I } from "./components/Typography/Typography.js";
|
|
17
|
+
import { ButtonGroup as k } from "./components/ButtonGroup/ButtonGroup.js";
|
|
18
|
+
import { Card as A } from "./components/Card/Card.js";
|
|
19
|
+
import { DatePicker as y } from "./components/Datepicker/DatePicker.js";
|
|
20
|
+
import { Radio as O } from "./components/Radio/Radio.js";
|
|
21
|
+
import { RadioGroup as U } from "./components/RadioGroup/RadioGroup.js";
|
|
22
|
+
import { TimePicker as j } from "./components/TimePicker/TimePicker.js";
|
|
23
|
+
import { DateRangePicker as H } from "./components/DateRangePicker/DateRangePicker.js";
|
|
24
|
+
import { Divider as K } from "./components/Divider/Divider.js";
|
|
25
|
+
import { Drawer as Y } from "./components/Drawer/Drawer.js";
|
|
26
|
+
import { BadgeMultiSelect as _ } from "./components/Filter/components/BadgeDropdown/BadgeMultiSelect.js";
|
|
27
|
+
import { DateFilterDropdown as rr } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
28
|
+
import { DateRangeFilterDropdown as tr } from "./components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js";
|
|
29
|
+
import { TextMultiSelect as ir } from "./components/Filter/components/TextMultiSelect/TextMultiSelect.js";
|
|
30
|
+
import { TimeFilterDropdown as pr } from "./components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js";
|
|
31
|
+
import { Filter as fr } from "./components/Filter/Filter.js";
|
|
32
|
+
import { t as sr } from "./ImageUpload-DiwymQcU.js";
|
|
33
|
+
import { LineChart as dr } from "./components/LineChart/LineChart.js";
|
|
34
|
+
import { t as gr } from "./Modal-Dyn088X7.js";
|
|
35
|
+
import { t as cr } from "./components-Cf345jTv.js";
|
|
36
|
+
import { PhoneNumberInput as Dr } from "./components/PhoneNumberInput/PhoneNumberInput.js";
|
|
37
|
+
import { PieChart as Rr } from "./components/PieChart/PieChart.js";
|
|
38
|
+
import { ProgressBar as br } from "./components/ProgressBar/ProgressBar.js";
|
|
38
39
|
import { RadioCard as wr } from "./components/RadioCard/RadioCard.js";
|
|
39
|
-
import { RadioCardGroup as
|
|
40
|
-
import { Range as
|
|
41
|
-
import { Select as
|
|
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 {
|
|
40
|
+
import { RadioCardGroup as xr } from "./components/RadioCardGroup/RadioCardGroup.js";
|
|
41
|
+
import { Range as Er } from "./components/Range/Range.js";
|
|
42
|
+
import { Select as Pr } from "./components/Select/Select.js";
|
|
43
|
+
import { CollapseTrigger as Ir } from "./components/Sidebar/components/CollapseTrigger/CollapseTrigger.js";
|
|
44
|
+
import { Footer as kr } from "./components/Sidebar/components/Footer/Footer.js";
|
|
45
|
+
import { Label as Ar } from "./components/Sidebar/components/Label/Label.js";
|
|
46
|
+
import { Logo as yr } from "./components/Sidebar/components/Logo/Logo.js";
|
|
47
|
+
import { NavigationGroup as Or } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
48
|
+
import { NavigationOption as Ur } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
|
|
49
|
+
import { NavigationSeparator as jr } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
50
|
+
import { Navigation as Hr } from "./components/Sidebar/components/Navigation/Navigation.js";
|
|
51
|
+
import { Sidebar as Kr } from "./components/Sidebar/Sidebar.js";
|
|
52
|
+
import { Slider as Yr } from "./components/Slider/Slider.js";
|
|
53
|
+
import { t as _r } from "./Spinner-CUwE2bLm.js";
|
|
54
|
+
import { horizontalConnectorWrapperVariants as ro, stepConnectorVariants as oo, stepContentVariants as to, stepDescriptionVariants as mo, stepIndicatorVariants as io, stepItemVariants as eo, stepLabelVariants as po, stepListVariants as ao, stepVariants as fo, stepperVariants as no } from "./components/Stepper/Stepper.variants.js";
|
|
55
|
+
import { Stepper as lo } from "./components/Stepper/Stepper.js";
|
|
56
|
+
import { t as go } from "./Switch-aPhL5rNG.js";
|
|
57
|
+
import { Table as co } from "./components/Table/Table.js";
|
|
58
|
+
import { Content as Do } from "./components/Tabs/components/Content.js";
|
|
59
|
+
import { List as Ro } from "./components/Tabs/components/List.js";
|
|
60
|
+
import { Trigger as bo } from "./components/Tabs/components/Trigger.js";
|
|
61
|
+
import { Tabs as wo } from "./components/Tabs/Tabs.js";
|
|
62
|
+
import { Tag as xo } from "./components/Tag/Tag.js";
|
|
63
|
+
import { TagSelect as Eo } from "./components/TagSelect/TagSelect.js";
|
|
64
|
+
import { TextArea as Po } from "./components/TextArea/TextArea.js";
|
|
65
|
+
import { t as Io } from "./Toast-3NEz7LLa.js";
|
|
66
|
+
import { Tooltip as ko } from "./components/Tooltip/Tooltip.js";
|
|
67
|
+
import { t as Ao } from "./events.types-BG1Uh8i6.js";
|
|
68
|
+
import { sendResetFiltersEvent as yo } from "./components/VirtualizedTable/events/filters/filters.js";
|
|
69
|
+
import { sendRefreshEvent as Oo } from "./components/VirtualizedTable/events/refresh/refresh.js";
|
|
70
|
+
import { sendCollapseRowEvent as Uo, sendExpandRowEvent as Wo, sendToggleRowEvent as jo } from "./components/VirtualizedTable/events/row/row.js";
|
|
71
|
+
import { TruncateText as Ho } from "./components/VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
72
|
+
import { VirtualizedTable as Ko } from "./components/VirtualizedTable/VirtualizedTable.js";
|
|
73
|
+
import { ThemeContext as Yo } from "./contexts/theme.context.js";
|
|
74
|
+
import { useTheme as _o } from "./contexts/theme.hook.js";
|
|
75
|
+
import { t as rt } from "./theme.provider-Dw4O3ocC.js";
|
|
71
76
|
import "./contexts/index.js";
|
|
72
77
|
export {
|
|
73
78
|
g as Alert,
|
|
74
79
|
D as AlertDialog,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
x as Autocomplete,
|
|
81
|
+
P as Badge,
|
|
82
|
+
_ as BadgeMultiSelect,
|
|
78
83
|
e as Breadcrumb,
|
|
79
84
|
c as Button,
|
|
80
|
-
|
|
81
|
-
|
|
85
|
+
k as ButtonGroup,
|
|
86
|
+
A as Card,
|
|
82
87
|
o as Checkbox,
|
|
83
|
-
|
|
88
|
+
Ir as CollapseTrigger,
|
|
89
|
+
Do as Content,
|
|
84
90
|
n as Counter,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
rr as DateFilterDropdown,
|
|
92
|
+
y as DatePicker,
|
|
93
|
+
tr as DateRangeFilterDropdown,
|
|
94
|
+
H as DateRangePicker,
|
|
95
|
+
K as Divider,
|
|
96
|
+
Y as Drawer,
|
|
97
|
+
Pr as Dropdown,
|
|
92
98
|
m as DropdownButton,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
99
|
+
fr as Filter,
|
|
100
|
+
kr as Footer,
|
|
101
|
+
sr as ImageUpload,
|
|
96
102
|
a as Input,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
Ar as Label,
|
|
104
|
+
dr as LineChart,
|
|
105
|
+
Ro as List,
|
|
106
|
+
E as Loading,
|
|
107
|
+
yr as Logo,
|
|
108
|
+
gr as Modal,
|
|
109
|
+
cr as MultiSelectDropdown,
|
|
110
|
+
Hr as Navigation,
|
|
111
|
+
Or as NavigationGroup,
|
|
112
|
+
Ur as NavigationOption,
|
|
113
|
+
jr as NavigationSeparator,
|
|
108
114
|
n as NumberInput,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
115
|
+
Dr as PhoneNumberInput,
|
|
116
|
+
Rr as PieChart,
|
|
117
|
+
br as ProgressBar,
|
|
118
|
+
O as Radio,
|
|
113
119
|
wr as RadioCard,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
120
|
+
xr as RadioCardGroup,
|
|
121
|
+
U as RadioGroup,
|
|
122
|
+
Er as Range,
|
|
123
|
+
Pr as Select,
|
|
124
|
+
Kr as Sidebar,
|
|
125
|
+
Yr as Slider,
|
|
126
|
+
_r as Spinner,
|
|
127
|
+
lo as Stepper,
|
|
128
|
+
go as Switch,
|
|
129
|
+
co as Table,
|
|
130
|
+
wo as Tabs,
|
|
131
|
+
xo as Tag,
|
|
132
|
+
Eo as TagSelect,
|
|
133
|
+
Po as TextArea,
|
|
134
|
+
ir as TextMultiSelect,
|
|
135
|
+
Yo as ThemeContext,
|
|
136
|
+
rt as ThemeProvider,
|
|
137
|
+
pr as TimeFilterDropdown,
|
|
138
|
+
j as TimePicker,
|
|
139
|
+
Io as Toast,
|
|
140
|
+
ko as Tooltip,
|
|
141
|
+
bo as Trigger,
|
|
142
|
+
Ho as TruncateText,
|
|
143
|
+
I as Typography,
|
|
144
|
+
Ko as VirtualizedTable,
|
|
145
|
+
Ao as VirtualizedTableEvent,
|
|
140
146
|
d as cn,
|
|
141
|
-
|
|
147
|
+
ro as horizontalConnectorWrapperVariants,
|
|
142
148
|
l as resolveColor,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
149
|
+
Uo as sendCollapseRowEvent,
|
|
150
|
+
Wo as sendExpandRowEvent,
|
|
151
|
+
Oo as sendRefreshEvent,
|
|
152
|
+
yo as sendResetFiltersEvent,
|
|
153
|
+
jo as sendToggleRowEvent,
|
|
154
|
+
oo as stepConnectorVariants,
|
|
155
|
+
to as stepContentVariants,
|
|
156
|
+
mo as stepDescriptionVariants,
|
|
157
|
+
io as stepIndicatorVariants,
|
|
158
|
+
eo as stepItemVariants,
|
|
159
|
+
po as stepLabelVariants,
|
|
160
|
+
ao as stepListVariants,
|
|
161
|
+
fo as stepVariants,
|
|
162
|
+
no as stepperVariants,
|
|
163
|
+
R as useClickOutside,
|
|
164
|
+
b as useMediaQuery,
|
|
165
|
+
_o as useTheme,
|
|
166
|
+
w as useToggle
|
|
159
167
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const listVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
2
2
|
export declare const emptyListVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
3
3
|
export declare const listItemVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
4
|
-
export declare const buttonVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -2,19 +2,18 @@ import { FC } from 'react';
|
|
|
2
2
|
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
7
|
*
|
|
7
8
|
* @example
|
|
8
9
|
* ```tsx
|
|
9
10
|
* <DropdownButton
|
|
11
|
+
* label="Download Invoice as"
|
|
10
12
|
* options={[
|
|
11
|
-
* { label: '
|
|
12
|
-
* { label: '
|
|
13
|
+
* { label: 'PDF', onClick: () => downloadPdf() },
|
|
14
|
+
* { label: 'CSV', onClick: () => downloadCsv() },
|
|
13
15
|
* ]}
|
|
14
|
-
* buttonClassName="w-64"
|
|
15
16
|
* />
|
|
16
17
|
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-dropdownbutton--docs Storybook}
|
|
19
18
|
*/
|
|
20
19
|
export declare const DropdownButton: FC<Props>;
|
|
@@ -29,6 +29,8 @@ export type Props = {
|
|
|
29
29
|
className?: string;
|
|
30
30
|
/** Additional CSS classes for each dropdown item */
|
|
31
31
|
itemClassName?: string;
|
|
32
|
+
/** Content of the trigger button */
|
|
33
|
+
label?: string | ReactNode;
|
|
32
34
|
/** Additional CSS classes for the dropdown list */
|
|
33
35
|
listClassName?: string;
|
|
34
36
|
/** Array of options to display in the dropdown */
|
|
@@ -49,6 +49,8 @@ export type Props = VariantProps<typeof filterVariants> & PropsWithChildren & {
|
|
|
49
49
|
theme?: Theme;
|
|
50
50
|
/** Whether to close the filter dropdown automatically when Apply is clicked. Defaults to true. */
|
|
51
51
|
closeOnApply?: boolean;
|
|
52
|
+
/** Scope for reset events; dropdowns only respond to resets with the same scope. Defaults to a per-instance id. */
|
|
53
|
+
resetScope?: string;
|
|
52
54
|
};
|
|
53
55
|
/** @deprecated Use Props instead */
|
|
54
56
|
export type FilterProps = Props;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
export declare enum FilterEvent {
|
|
2
|
+
OPEN = "@konstructio/KonstructFilter/event-OPEN",
|
|
3
|
+
RESET = "@konstructio/KonstructFilter/event-RESET"
|
|
4
|
+
}
|
|
5
|
+
/** @deprecated Use FilterEvent instead */
|
|
6
|
+
export declare enum LegacyFilterEvent {
|
|
2
7
|
OPEN = "@konstrtuctio/KonstructFilter/event-OPEN",
|
|
3
8
|
RESET = "@konstrtuctio/KonstructFilter/event-RESET"
|
|
4
9
|
}
|
|
5
|
-
export declare const sendOpenFilterEvent: (id: string) =>
|
|
6
|
-
export declare const resetEvent: () =>
|
|
10
|
+
export declare const sendOpenFilterEvent: (id: string) => void;
|
|
11
|
+
export declare const resetEvent: (scope?: string) => void;
|
|
12
|
+
export declare const addFilterEventListener: <T>(event: FilterEvent, handler: (event: CustomEvent<T>) => void, options: {
|
|
13
|
+
signal?: AbortSignal;
|
|
14
|
+
}) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useFilterDropdownSync';
|
|
@@ -18,7 +18,7 @@ type CSSColor = `var(--${string})` | `rgb(${number}, ${number}, ${number})` | `r
|
|
|
18
18
|
export type Props = {
|
|
19
19
|
/**
|
|
20
20
|
* Array of hexadecimal colors for the borders of the pie chart segments
|
|
21
|
-
* @default ['
|
|
21
|
+
* @default [resolveColor('--color-white'), resolveColor('--color-white')]
|
|
22
22
|
*/
|
|
23
23
|
borderColors?: HexColor[] | CSSColor[] | (HexColor | CSSColor)[];
|
|
24
24
|
/**
|
|
@@ -28,7 +28,7 @@ export type Props = {
|
|
|
28
28
|
borderWidth?: number;
|
|
29
29
|
/**
|
|
30
30
|
* Array of hexadecimal colors for filling the pie chart segments
|
|
31
|
-
* @default ['
|
|
31
|
+
* @default [resolveColor('--color-neutral-600'), resolveColor('--color-emerald-400')]
|
|
32
32
|
*/
|
|
33
33
|
colors?: HexColor[] | CSSColor[] | (HexColor | CSSColor)[];
|
|
34
34
|
/**
|
|
@@ -43,7 +43,7 @@ export type Props = {
|
|
|
43
43
|
redraw?: boolean;
|
|
44
44
|
/**
|
|
45
45
|
* Hexadecimal color for the subtitle text
|
|
46
|
-
* @default '
|
|
46
|
+
* @default resolveColor('--color-gray-500')
|
|
47
47
|
*/
|
|
48
48
|
subtitleColor?: HexColor;
|
|
49
49
|
/**
|
|
@@ -58,7 +58,7 @@ export type Props = {
|
|
|
58
58
|
subtitleFontWeight?: 'bold' | 'normal';
|
|
59
59
|
/**
|
|
60
60
|
* Hexadecimal color for the title text
|
|
61
|
-
* @default '
|
|
61
|
+
* @default resolveColor('--color-gray-900')
|
|
62
62
|
*/
|
|
63
63
|
titleColor?: HexColor;
|
|
64
64
|
/**
|
|
@@ -3,6 +3,8 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import { Theme } from '../../domain/theme';
|
|
4
4
|
import { progressBarFillVariants } from './ProgressBar.variants';
|
|
5
5
|
export interface Props extends VariantProps<typeof progressBarFillVariants> {
|
|
6
|
+
/** Accessible name announced for the progress bar */
|
|
7
|
+
ariaLabel?: string;
|
|
6
8
|
/** Additional CSS classes for the outer wrapper */
|
|
7
9
|
className?: string;
|
|
8
10
|
/** Custom CSS class for the progress bar fill (e.g., "bg-purple-500") */
|
|
@@ -3,11 +3,12 @@ import { SelectProps, Option } from '../Select.types';
|
|
|
3
3
|
type UseSelectParams = {
|
|
4
4
|
ulRef: RefObject<ComponentRef<'ul'> | null>;
|
|
5
5
|
inputRef?: RefObject<ComponentRef<'input'> | null>;
|
|
6
|
+
searchInputRef?: RefObject<ComponentRef<'input'> | null>;
|
|
6
7
|
disabled: boolean;
|
|
7
8
|
internalValue?: Option;
|
|
8
9
|
onBlur?: SelectProps['onBlur'];
|
|
9
10
|
};
|
|
10
|
-
export declare const useSelect: ({ ulRef, inputRef, disabled, internalValue, onBlur, }: UseSelectParams) => {
|
|
11
|
+
export declare const useSelect: ({ ulRef, inputRef, searchInputRef, disabled, internalValue, onBlur, }: UseSelectParams) => {
|
|
11
12
|
wrapperRef: RefObject<HTMLDivElement | null>;
|
|
12
13
|
wrapperInputRef: RefObject<HTMLDivElement | null>;
|
|
13
14
|
handleOpen: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { Footer, Label, Logo, Navigation, NavigationGroup, NavigationOption, NavigationSeparator } from './components';
|
|
2
|
+
import { CollapseTrigger, Footer, Label, Logo, Navigation, NavigationGroup, NavigationOption, NavigationSeparator } from './components';
|
|
3
3
|
import { SidebarChildrenProps, Props as SidebarProps } from './Sidebar.types';
|
|
4
4
|
/**
|
|
5
5
|
* A compound component for building application sidebars.
|
|
@@ -25,4 +25,4 @@ import { SidebarChildrenProps, Props as SidebarProps } from './Sidebar.types';
|
|
|
25
25
|
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-sidebar--docs Storybook}
|
|
26
26
|
*/
|
|
27
27
|
declare const Sidebar: FC<SidebarProps> & SidebarChildrenProps;
|
|
28
|
-
export { Footer, Label, Logo, Navigation, NavigationGroup, NavigationOption, NavigationSeparator, Sidebar, };
|
|
28
|
+
export { CollapseTrigger, Footer, Label, Logo, Navigation, NavigationGroup, NavigationOption, NavigationSeparator, Sidebar, };
|
|
@@ -4,7 +4,7 @@ import { ClassNames as DrawerClassNames } from '../Drawer/Drawer.types';
|
|
|
4
4
|
import { Theme } from '../../domain/theme';
|
|
5
5
|
import { SidebarModeProp } from './hooks/useSidebarMode';
|
|
6
6
|
import { wrapperSiderbarVariants } from './Sidebar.variants';
|
|
7
|
-
import { FooterProps, LabelProps, LogoProps, NavigationGroupProps, NavigationOptionProps, NavigationProps, NavigationSeparatorProps } from './components';
|
|
7
|
+
import { CollapseTriggerProps, FooterProps, LabelProps, LogoProps, NavigationGroupProps, NavigationOptionProps, NavigationProps, NavigationSeparatorProps } from './components';
|
|
8
8
|
/**
|
|
9
9
|
* Props for the Sidebar component.
|
|
10
10
|
* A compound component for building application sidebars with navigation.
|
|
@@ -77,7 +77,7 @@ export interface Props extends Omit<VariantProps<typeof wrapperSiderbarVariants>
|
|
|
77
77
|
* the panel's horizontal padding so dividers can span edge-to-edge,
|
|
78
78
|
* raising the root `z-index` past higher-z layers, etc.
|
|
79
79
|
*
|
|
80
|
-
* The Sidebar already applies sensible defaults internally (root `z-
|
|
80
|
+
* The Sidebar already applies sensible defaults internally (root `z-60`,
|
|
81
81
|
* panel uses `wrapperClassName`, content `gap-0`); user-provided classes
|
|
82
82
|
* are appended via `cn`, so they win on conflicts.
|
|
83
83
|
*/
|
|
@@ -107,9 +107,9 @@ export interface Props extends Omit<VariantProps<typeof wrapperSiderbarVariants>
|
|
|
107
107
|
* Inline styles applied to the wrapper `<aside>` (or the drawer panel in
|
|
108
108
|
* drawer mode). Useful for setting CSS custom properties that drive
|
|
109
109
|
* theming via the protection stylesheet (e.g.
|
|
110
|
-
* `--konstruct-sidebar-
|
|
111
|
-
*
|
|
112
|
-
*
|
|
110
|
+
* `--konstruct-sidebar-logo-padding-expanded`), since inline styles
|
|
111
|
+
* outrank un-layered utilities shipped by federated remote
|
|
112
|
+
* micro-frontends.
|
|
113
113
|
*/
|
|
114
114
|
style?: CSSProperties;
|
|
115
115
|
}
|
|
@@ -119,6 +119,7 @@ export type SidebarProps = Props;
|
|
|
119
119
|
* Sidebar compound component type with sub-components.
|
|
120
120
|
*/
|
|
121
121
|
export type SidebarChildrenProps = {
|
|
122
|
+
CollapseTrigger: FC<CollapseTriggerProps>;
|
|
122
123
|
Footer: FC<FooterProps>;
|
|
123
124
|
Label: FC<LabelProps>;
|
|
124
125
|
Logo: FC<LogoProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const collapseTriggerVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -3,6 +3,14 @@ import { PropsWithChildren } from 'react';
|
|
|
3
3
|
import { logoVariants } from './Logo.variants';
|
|
4
4
|
export interface Props extends PropsWithChildren, VariantProps<typeof logoVariants> {
|
|
5
5
|
className?: string;
|
|
6
|
+
/**
|
|
7
|
+
* When true, keeps the logo content visible while the sidebar is in
|
|
8
|
+
* `collapsed` mode. By default the logo content hides in collapsed mode,
|
|
9
|
+
* while a `Sidebar.CollapseTrigger` placed as a direct child of
|
|
10
|
+
* `Sidebar.Logo` stays visible so the user can still expand the sidebar.
|
|
11
|
+
* Defaults to `false`.
|
|
12
|
+
*/
|
|
13
|
+
showOnCollapse?: boolean;
|
|
6
14
|
}
|
|
7
15
|
/** @deprecated Use Props instead */
|
|
8
16
|
export type LogoProps = Props;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export declare const logoVariants: (props?:
|
|
1
|
+
export declare const logoVariants: (props?: ({
|
|
2
|
+
showOnCollapse?: boolean | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './CollapseTrigger/CollapseTrigger';
|
|
2
|
+
export type { CollapseTriggerProps } from './CollapseTrigger/CollapseTrigger.types';
|
|
1
3
|
export * from './Footer/Footer';
|
|
2
4
|
export type { FooterProps } from './Footer/Footer.types';
|
|
3
5
|
export * from './HamburgerTrigger/HamburgerTrigger';
|
|
@@ -11,6 +11,18 @@ export interface SidebarContextValue {
|
|
|
11
11
|
* navigation events (e.g. when the user clicks a link).
|
|
12
12
|
*/
|
|
13
13
|
closeDrawer: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the sidebar can be toggled between `expanded` and `collapsed`.
|
|
16
|
+
* `false` in `drawer` mode, where the drawer's own open/close controls
|
|
17
|
+
* apply instead.
|
|
18
|
+
*/
|
|
19
|
+
canToggle: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Toggles the sidebar between `expanded` and `collapsed`, overriding the
|
|
22
|
+
* viewport-derived mode until the viewport crosses a breakpoint. No-op in
|
|
23
|
+
* `drawer` mode.
|
|
24
|
+
*/
|
|
25
|
+
toggleMode: () => void;
|
|
14
26
|
}
|
|
15
27
|
export declare const SidebarContext: import('react').Context<SidebarContextValue>;
|
|
16
28
|
export declare const useSidebarContext: () => SidebarContextValue;
|