@konstructio/ui 0.1.2-alpha.104 → 0.1.2-alpha.106
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/{AlertDialogTrigger-BGo_acd5.js → AlertDialogTrigger-BOrb536P.js} +39 -39
- package/dist/{Breadcrumb-Cp3abB2w.js → Breadcrumb-DVBxqgW_.js} +2 -2
- package/dist/Checkbox-B20uoUKD.js +249 -0
- package/dist/{CommandInput-BLq69pOT.js → CommandInput-BWt6-vUK.js} +3 -3
- package/dist/{Counter-BV680M5r.js → Counter-DiQb-he2.js} +2 -2
- package/dist/{DayPicker-kweJz134.js → DayPicker-C22j0Y-u.js} +539 -518
- package/dist/{DropdownButton-DfNojmCW.js → DropdownButton-hCVYZ1LA.js} +5 -5
- package/dist/{FlagSelectorList-CkTR3j6O.js → FlagSelectorList-CnJjnsp6.js} +11 -8
- package/dist/{HamburgerTrigger-DRylBL2d.js → HamburgerTrigger-BT2yUUJ-.js} +2 -2
- package/dist/{ImageUpload-DiwymQcU.js → ImageUpload-DgCBCa5X.js} +1 -1
- package/dist/{Input-Cf44DzfE.js → Input-wp-rsCmX.js} +2 -2
- package/dist/{Modal-Dyn088X7.js → Modal-CkAf9UY7.js} +3 -3
- package/dist/{Switch-aPhL5rNG.js → Switch-CyJXptgc.js} +80 -77
- package/dist/{Toast-3NEz7LLa.js → Toast-DLJDExxw.js} +7 -6
- package/dist/{Wrapper-DP6Sxngx.js → Wrapper-B8Ja3k4j.js} +63 -63
- package/dist/{Wrapper-CVJSuYWx.js → Wrapper-CvDRHgN4.js} +3 -3
- package/dist/Wrapper-R8fik3ah.js +182 -0
- package/dist/components/Alert/Alert.js +1 -1
- 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/Autocomplete/hooks/useAutocomplete.js +27 -25
- package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -3
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Command/Command.js +1 -1
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +1 -1
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Command/components/index.js +1 -1
- package/dist/components/Counter/Counter.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +2 -2
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- 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 +30 -28
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +23 -21
- 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/Datepicker/DatePicker.js +1 -1
- package/dist/components/Drawer/Drawer.js +27 -25
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +51 -36
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +40 -38
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +1 -1
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +42 -40
- package/dist/components/Filter/utils/index.js +1 -1
- package/dist/components/ImageUpload/ImageUpload.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/LineChart/LineChart.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/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/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +11 -11
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +2 -2
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +3 -3
- 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 +30 -27
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Select/Select.js +36 -33
- package/dist/components/Select/components/List/List.js +31 -31
- package/dist/components/Select/components/Wrapper.js +1 -1
- package/dist/components/Select/components/index.js +1 -1
- package/dist/components/Select/hooks/useNavigationList.js +2 -3
- package/dist/components/Select/hooks/useSelect.js +29 -41
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Sidebar/components/index.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Switch/Switch.variants.js +15 -7
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Tabs/Tabs.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/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 +11 -11
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +16 -16
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.js +19 -16
- package/dist/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/dist/components/VirtualizedTable/components/Body/Body.js +1 -1
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +3 -3
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +1 -1
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +2 -2
- package/dist/components/VirtualizedTable/contexts/index.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
- package/dist/components/index.js +10 -10
- package/dist/{components-Cf345jTv.js → components-MnxnhLqM.js} +1 -1
- package/dist/{constants-CxJJRVK3.js → constants-CSsr7_YV.js} +1 -1
- package/dist/{debounce-C5Ycjilj.js → debounce-BdyZeJQk.js} +2 -2
- package/dist/{dist-BaPW7qXd2.js → dist-B6ExqXM_2.js} +1 -1
- package/dist/{dist-BZNE2Tnx.js → dist-BbX4Nrk2.js} +1 -1
- package/dist/{dist-BdobXn93.js → dist-C87gsBDM.js} +1 -1
- package/dist/{dist-DDck_2lb.js → dist-CqNOgbfR.js} +117 -116
- package/dist/{dist-C3YVLapk.js → dist-DO3apbIh.js} +24 -24
- package/dist/{dist-CzKqHuqJ2.js → dist-DwxO2RoR2.js} +38 -38
- package/dist/{dist-DFCz63oC2.js → dist-Z0F27ATp2.js} +157 -158
- package/dist/{dist-AihTpWdF.js → dist-iUAHw-3y.js} +272 -272
- package/dist/{dist-tGUUcv8n.js → dist-oJzmvhAb.js} +114 -115
- package/dist/{dist-BlPTJNIm.js → dist-ut_BEHii.js} +1 -1
- package/dist/es2015-B_07N-UL.js +796 -0
- package/dist/index.js +10 -10
- package/dist/{isObject-BeFFiVJK.js → isObject-pLoSfdr0.js} +1 -1
- package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/components/Checkbox/Checkbox.types.d.ts +2 -1
- package/dist/lib/components/Select/hooks/useSelect.d.ts +1 -3
- package/dist/lib/components/Switch/Switch.variants.d.ts +3 -1
- package/dist/{libphonenumber-hGupNnJu.js → libphonenumber-BMq3Thej.js} +356 -347
- package/dist/package.json +21 -21
- package/dist/{phone-number.provider-BxQCTxp8.js → phone-number.provider-Dkq_p1Gi.js} +2 -2
- package/dist/{prop-types-CfEYxTbR.js → prop-types-BCUW56rg.js} +1 -1
- package/dist/{react-CvUtBTMg.js → react-B6Nc0Fib.js} +835 -827
- package/dist/{rolldown-runtime-Ck3dxwZt.js → rolldown-runtime-Dw9YIBcH.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{table.provider-B0BafHuU.js → table.provider-DfZ74xMZ.js} +95 -95
- package/dist/{useBreadcrumb-DYfZL_2p.js → useBreadcrumb-Ds_9BeFz.js} +7 -6
- package/dist/{utils-B-BTGYA5.js → utils-DVYdP0CJ.js} +2 -3
- package/dist/{x-BI9jmc7e.js → x-Ierxf0uI.js} +2 -2
- package/package.json +21 -21
- package/dist/Checkbox-B_ngk9Dj.js +0 -249
- package/dist/Wrapper-BhqUVI1G.js +0 -171
- package/dist/es2015-DigR3dar.js +0 -795
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as e } from "../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { a as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { jsx as
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
data:
|
|
2
|
+
import { a as A, r as T, t as j } from "../../dist-iUAHw-3y.js";
|
|
3
|
+
import { useMemo as i } from "react";
|
|
4
|
+
import { jsx as k } from "react/jsx-runtime";
|
|
5
|
+
A.register(T);
|
|
6
|
+
var G = ({ values: d, colors: m = [e("--color-neutral-600"), e("--color-emerald-400")], borderColors: p = [e("--color-white"), e("--color-white")], borderWidth: h = 0, cutoutPercentage: x = 80, title: n, subtitle: s, titleFontSize: a = 16, subtitleFontSize: t = 14, titleColor: g = e("--color-gray-900"), subtitleColor: w = e("--color-gray-500"), titleFontWeight: u = "bold", subtitleFontWeight: y = "normal", redraw: $ = !0 }) => {
|
|
7
|
+
const v = i(() => ({ datasets: [{
|
|
8
|
+
data: d,
|
|
9
9
|
backgroundColor: m,
|
|
10
10
|
borderWidth: h,
|
|
11
11
|
borderColor: p
|
|
@@ -13,40 +13,43 @@ var E = ({ values: c, colors: m = [e("--color-neutral-600"), e("--color-emerald-
|
|
|
13
13
|
p,
|
|
14
14
|
h,
|
|
15
15
|
m,
|
|
16
|
-
|
|
17
|
-
]),
|
|
18
|
-
options: d(() => ({
|
|
16
|
+
d
|
|
17
|
+
]), C = i(() => ({
|
|
19
18
|
plugins: { legend: { display: !1 } },
|
|
20
19
|
cutout: `${x}%`,
|
|
21
20
|
hover: { mode: null }
|
|
22
|
-
}), [x]),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return a && t.push({
|
|
21
|
+
}), [x]), D = i(() => {
|
|
22
|
+
const l = [];
|
|
23
|
+
return n && l.push({
|
|
26
24
|
id: "titleCenter",
|
|
27
25
|
beforeDraw(o) {
|
|
28
|
-
const r = o.ctx,
|
|
29
|
-
r.restore(), r.font = `${u} ${
|
|
26
|
+
const r = o.ctx, c = o.width, f = o.height;
|
|
27
|
+
r.restore(), r.font = `${u} ${a}px sans-serif`, r.fillStyle = g, r.textAlign = "center", r.textBaseline = "middle", r.fillText(n, c / 2, f / 2 - (s ? a / 2 : 0)), r.save();
|
|
30
28
|
}
|
|
31
|
-
}), s &&
|
|
29
|
+
}), s && l.push({
|
|
32
30
|
id: "subtitleCenter",
|
|
33
31
|
beforeDraw(o) {
|
|
34
|
-
const r = o.ctx,
|
|
35
|
-
r.restore(), r.font = `${y} ${
|
|
32
|
+
const r = o.ctx, c = o.width, f = o.height;
|
|
33
|
+
r.restore(), r.font = `${y} ${t}px sans-serif`, r.fillStyle = w, r.fillText(s, c / 2, f / 2 + t / 2), r.save();
|
|
36
34
|
}
|
|
37
|
-
}),
|
|
35
|
+
}), l;
|
|
38
36
|
}, [
|
|
39
37
|
s,
|
|
40
38
|
w,
|
|
41
|
-
|
|
39
|
+
t,
|
|
42
40
|
y,
|
|
43
|
-
a,
|
|
44
|
-
g,
|
|
45
41
|
n,
|
|
42
|
+
g,
|
|
43
|
+
a,
|
|
46
44
|
u
|
|
47
|
-
])
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
]);
|
|
46
|
+
return /* @__PURE__ */ k(j, {
|
|
47
|
+
data: v,
|
|
48
|
+
options: C,
|
|
49
|
+
plugins: D,
|
|
50
|
+
redraw: $
|
|
51
|
+
});
|
|
52
|
+
};
|
|
50
53
|
export {
|
|
51
|
-
|
|
54
|
+
G as PieChart
|
|
52
55
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { i as v, n as V, r as i, t as S } from "../../dist-
|
|
2
|
+
import { i as v, n as V, r as i, t as S } from "../../dist-CqNOgbfR.js";
|
|
3
3
|
import { rangeOutsideVariants as R, rangeVariants as j, thumbVariants as c, trackVariants as w } from "./Range.variants.js";
|
|
4
4
|
import { forwardRef as y, useEffect as b, useImperativeHandle as k, useRef as C, useState as T } from "react";
|
|
5
5
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
@@ -1,38 +1,41 @@
|
|
|
1
1
|
import { t as a } from "../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import { SelectProvider as
|
|
4
|
-
import { n as
|
|
2
|
+
import { t as v } from "../../Wrapper-R8fik3ah.js";
|
|
3
|
+
import { SelectProvider as N } from "./contexts/select.provider.js";
|
|
4
|
+
import { n as O } from "../../AdditionalOptions-D0BAS2HG.js";
|
|
5
5
|
import { forwardRef as g, useMemo as j } from "react";
|
|
6
6
|
import { jsx as r, jsxs as k } from "react/jsx-runtime";
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
children:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
7
|
+
var W = g(({ error: e, errorClassName: m, helperText: s, helperTextClassName: n, highlightSearch: p, mainWrapperClassName: d, name: l, value: f, options: t, onChange: o, onBlur: i, ...c }, x) => {
|
|
8
|
+
const u = j(() => t.length ? O(t.at(0)) ? t.flatMap((h) => h.options) : t : [], [t]);
|
|
9
|
+
return /* @__PURE__ */ r(N, {
|
|
10
|
+
highlightSearch: p,
|
|
11
|
+
name: l,
|
|
12
|
+
value: f,
|
|
13
|
+
options: u,
|
|
14
|
+
onBlur: i,
|
|
15
|
+
onChange: o,
|
|
16
|
+
children: /* @__PURE__ */ k("div", {
|
|
17
|
+
className: a("relative w-full", d),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ r(v, {
|
|
20
|
+
error: e,
|
|
21
|
+
name: l,
|
|
22
|
+
ref: x,
|
|
23
|
+
onBlur: i,
|
|
24
|
+
groupedOptions: t,
|
|
25
|
+
...c
|
|
26
|
+
}),
|
|
27
|
+
e ? /* @__PURE__ */ r("span", {
|
|
28
|
+
className: a("text-xs text-red-700 dark:text-red-400", m),
|
|
29
|
+
children: e
|
|
30
|
+
}) : null,
|
|
31
|
+
!e && s ? /* @__PURE__ */ r("span", {
|
|
32
|
+
className: a("text-xs text-slate-600 dark:text-slate-200", n),
|
|
33
|
+
children: s
|
|
34
|
+
}) : null
|
|
35
|
+
]
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
});
|
|
36
39
|
export {
|
|
37
|
-
|
|
40
|
+
W as Select
|
|
38
41
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { o as
|
|
1
|
+
import { o as Q } from "../../../../rolldown-runtime-Dw9YIBcH.js";
|
|
2
2
|
import { t as n } from "../../../../utils-Cx-WzRZF.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { useSelectContext as
|
|
6
|
-
import { n as
|
|
7
|
-
import { listGroupLabelVariants as
|
|
3
|
+
import { t as W } from "../../../../Loading-DUh9PMJN.js";
|
|
4
|
+
import { t as Y } from "../../../../debounce-BdyZeJQk.js";
|
|
5
|
+
import { useSelectContext as $ } from "../../contexts/select.hook.js";
|
|
6
|
+
import { n as R, t as ee } from "../../../../AdditionalOptions-D0BAS2HG.js";
|
|
7
|
+
import { listGroupLabelVariants as te, listVariants as re } from "./List.variants.js";
|
|
8
8
|
import "../../constants/pagination.js";
|
|
9
9
|
import "../../constants/list.js";
|
|
10
|
-
import { useNavigationUlList as
|
|
10
|
+
import { useNavigationUlList as oe } from "../../hooks/useNavigationList.js";
|
|
11
11
|
import { ListItem as g } from "../ListItem/ListItem.js";
|
|
12
|
-
import { Fragment as
|
|
12
|
+
import { Fragment as se, forwardRef as ne, useEffect as ae, useImperativeHandle as ie, useMemo as T, useRef as H, useState as le } from "react";
|
|
13
13
|
import { jsx as o, jsxs as I } from "react/jsx-runtime";
|
|
14
|
-
var
|
|
15
|
-
const m = H(null), v = H(null), [b, F] =
|
|
16
|
-
|
|
17
|
-
const a = l.length > 0 &&
|
|
14
|
+
var ce = /* @__PURE__ */ Q(Y(), 1), Ee = ne(({ additionalOptions: N, className: O, groupedOptions: l, inputRef: c, isLoading: P, itemClassName: u, name: j, searchable: f = !1, listItemSecondRowClassName: p, wrapperInputRef: M, isInfiniteScrollEnabled: h, noOptionsText: C, onFetchMoreOptions: L, visibleItems: E }, S) => {
|
|
15
|
+
const m = H(null), v = H(null), [b, F] = le(!1), { canContinueFetching: d, canFilter: y, isOpen: q, isTyping: k, options: G, page: w, searchTerm: s, setCanContinueFetching: A, setOptions: U, setPage: V } = $(), z = E !== void 0 ? { maxHeight: E * 40 } : void 0;
|
|
16
|
+
ie(S, () => m.current, [m]);
|
|
17
|
+
const a = l.length > 0 && R(l[0]), x = f && y ? G.filter((e) => {
|
|
18
18
|
const t = s.toLowerCase();
|
|
19
19
|
return (typeof e.label == "string" ? e.label.toLowerCase() : "").includes(t);
|
|
20
20
|
}) : G, _ = T(() => {
|
|
@@ -32,23 +32,23 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
|
|
|
32
32
|
f,
|
|
33
33
|
y,
|
|
34
34
|
s
|
|
35
|
-
]);
|
|
36
|
-
|
|
35
|
+
]), D = a ? _.flatMap((e) => e.options) : x;
|
|
36
|
+
oe({
|
|
37
37
|
ulRef: m,
|
|
38
|
-
wrapperInputRef:
|
|
38
|
+
wrapperInputRef: M,
|
|
39
39
|
searchable: f,
|
|
40
|
-
filteredOptions:
|
|
40
|
+
filteredOptions: D
|
|
41
41
|
});
|
|
42
|
-
const
|
|
42
|
+
const X = x.filter((e, t, r) => t === r.findIndex((i) => i.value === e.value)), Z = a ? _.length === 0 : x.length === 0, B = T(() => (0, ce.default)(async (e) => {
|
|
43
43
|
const [t] = e;
|
|
44
44
|
if (t.isIntersecting && !b && L && d) try {
|
|
45
45
|
F(!0);
|
|
46
|
-
const r = w + 1, { data: i, hasMore:
|
|
46
|
+
const r = w + 1, { data: i, hasMore: J } = await L({
|
|
47
47
|
page: r,
|
|
48
48
|
pageSize: 10,
|
|
49
49
|
termOfSearch: s
|
|
50
50
|
});
|
|
51
|
-
V(r), A(
|
|
51
|
+
V(r), A(J), U((K) => [...K, ...i]);
|
|
52
52
|
} catch {
|
|
53
53
|
console.error("Error fetching more options");
|
|
54
54
|
} finally {
|
|
@@ -60,9 +60,9 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
|
|
|
60
60
|
s,
|
|
61
61
|
w
|
|
62
62
|
]);
|
|
63
|
-
return
|
|
63
|
+
return ae(() => {
|
|
64
64
|
if (h && d && v.current && !k) {
|
|
65
|
-
const e = new IntersectionObserver(
|
|
65
|
+
const e = new IntersectionObserver(B, { threshold: 0.1 });
|
|
66
66
|
return e.observe(v.current), () => e.disconnect();
|
|
67
67
|
}
|
|
68
68
|
}, [
|
|
@@ -73,20 +73,20 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
|
|
|
73
73
|
w
|
|
74
74
|
]), /* @__PURE__ */ I("ul", {
|
|
75
75
|
ref: m,
|
|
76
|
-
title:
|
|
76
|
+
title: j,
|
|
77
77
|
role: "listbox",
|
|
78
|
-
className: n(
|
|
78
|
+
className: n(re({ className: O })),
|
|
79
79
|
style: z,
|
|
80
80
|
"data-state": q ? "open" : "closed",
|
|
81
81
|
children: [
|
|
82
|
-
|
|
82
|
+
P ? /* @__PURE__ */ o(g, {
|
|
83
83
|
className: n("select-none", u),
|
|
84
84
|
isClickable: !1,
|
|
85
85
|
inputRef: c,
|
|
86
86
|
value: "Loading...",
|
|
87
87
|
label: "Loading...",
|
|
88
88
|
listItemSecondRowClassName: p
|
|
89
|
-
}) :
|
|
89
|
+
}) : Z ? /* @__PURE__ */ o(g, {
|
|
90
90
|
isEmpty: !0,
|
|
91
91
|
className: n("select-none", u),
|
|
92
92
|
isClickable: !1,
|
|
@@ -94,11 +94,11 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
|
|
|
94
94
|
value: C ?? "",
|
|
95
95
|
label: C ?? "No options",
|
|
96
96
|
listItemSecondRowClassName: p
|
|
97
|
-
}) : a ? _.map((e) => /* @__PURE__ */ I(
|
|
97
|
+
}) : a ? _.map((e) => /* @__PURE__ */ I(se, { children: [/* @__PURE__ */ o("li", {
|
|
98
98
|
role: "presentation",
|
|
99
99
|
"aria-hidden": "true",
|
|
100
100
|
"data-action": "true",
|
|
101
|
-
className: n(
|
|
101
|
+
className: n(te()),
|
|
102
102
|
children: e.groupLabel
|
|
103
103
|
}), e.options.map((t) => /* @__PURE__ */ o(g, {
|
|
104
104
|
className: n("select-none", u),
|
|
@@ -106,7 +106,7 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
|
|
|
106
106
|
inputRef: c,
|
|
107
107
|
listItemSecondRowClassName: p,
|
|
108
108
|
...t
|
|
109
|
-
}, t.value))] }, e.groupLabel)) :
|
|
109
|
+
}, t.value))] }, e.groupLabel)) : X.map((e) => /* @__PURE__ */ o(g, {
|
|
110
110
|
className: n("select-none", u),
|
|
111
111
|
isClickable: !0,
|
|
112
112
|
inputRef: c,
|
|
@@ -119,12 +119,12 @@ var le = /* @__PURE__ */ K(W(), 1), Ce = se(({ additionalOptions: N, className:
|
|
|
119
119
|
"data-action": "true",
|
|
120
120
|
className: "flex items-center justify-center py-3",
|
|
121
121
|
onClick: (e) => e.stopPropagation(),
|
|
122
|
-
children: /* @__PURE__ */ o(
|
|
122
|
+
children: /* @__PURE__ */ o(W, { className: "w-4 h-4 text-aurora-500 select-none" })
|
|
123
123
|
}),
|
|
124
|
-
/* @__PURE__ */ o(
|
|
124
|
+
/* @__PURE__ */ o(ee, { additionalOptions: N })
|
|
125
125
|
]
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
128
|
export {
|
|
129
|
-
|
|
129
|
+
Ee as List
|
|
130
130
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as o } from "../../../Wrapper-
|
|
1
|
+
import { t as o } from "../../../Wrapper-R8fik3ah.js";
|
|
2
2
|
import { t as i } from "../../../AdditionalOptions-D0BAS2HG.js";
|
|
3
3
|
import { EmptyList as p } from "./EmptyList.js";
|
|
4
4
|
import { List as a } from "./List/List.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSelectContext as k } from "../contexts/select.hook.js";
|
|
2
|
-
import { useEffect as a, useRef as
|
|
2
|
+
import { useEffect as a, useRef as m } from "react";
|
|
3
3
|
var A = ({ searchable: o, ulRef: n, wrapperInputRef: e, filteredOptions: f }) => {
|
|
4
|
-
const r =
|
|
4
|
+
const r = m(0), { isOpen: s } = k();
|
|
5
5
|
a(() => {
|
|
6
6
|
const g = n.current?.querySelectorAll("li") ?? [], t = Array.from(g).filter((c) => c.getAttribute("data-action") !== "true"), u = new AbortController(), i = () => {
|
|
7
7
|
r.current < t.length - 1 ? (r.current = r.current + 1, t[r.current].focus()) : (r.current = 0, t[0].focus());
|
|
@@ -21,7 +21,6 @@ var A = ({ searchable: o, ulRef: n, wrapperInputRef: e, filteredOptions: f }) =>
|
|
|
21
21
|
break;
|
|
22
22
|
case "Enter":
|
|
23
23
|
t[r.current]?.click();
|
|
24
|
-
break;
|
|
25
24
|
}
|
|
26
25
|
}, { signal: u.signal }), () => {
|
|
27
26
|
u.abort();
|
|
@@ -1,65 +1,53 @@
|
|
|
1
1
|
import { useClickOutside as E } from "../../../hooks/useClickOutside.js";
|
|
2
|
-
import { useSelectContext as
|
|
3
|
-
import { useCallback as p, useEffect as l, useRef as
|
|
4
|
-
var k = ({
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const e = new AbortController(), s = (
|
|
10
|
-
|
|
2
|
+
import { useSelectContext as b } from "../contexts/select.hook.js";
|
|
3
|
+
import { useCallback as p, useEffect as l, useRef as g } from "react";
|
|
4
|
+
var k = ({ inputRef: r, searchInputRef: v, internalValue: c, onBlur: i }) => {
|
|
5
|
+
const t = g(null), d = g(null), { value: o, setSearchTerm: f, setCanFilter: u, toggleOpen: n } = b(), m = p(() => {
|
|
6
|
+
n(!1);
|
|
7
|
+
}, [n]);
|
|
8
|
+
return E(t, m), l(() => {
|
|
9
|
+
const e = new AbortController(), s = (a) => {
|
|
10
|
+
a.key === "Escape" && n(!1);
|
|
11
11
|
};
|
|
12
12
|
return document.addEventListener("keydown", s, { signal: e.signal }), document.addEventListener("visibilitychange", () => {
|
|
13
|
-
document.hidden &&
|
|
14
|
-
}, { signal: e.signal }), a.current?.addEventListener("focusin", (t) => {
|
|
15
|
-
!b && t.target?.matches(":focus-visible") && r(!0);
|
|
13
|
+
document.hidden && n(!1);
|
|
16
14
|
}, { signal: e.signal }), () => {
|
|
17
15
|
e.abort();
|
|
18
16
|
};
|
|
19
|
-
}, [
|
|
17
|
+
}, [n, t]), l(() => {
|
|
20
18
|
const e = new AbortController();
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
t && t.focus();
|
|
25
|
-
}
|
|
26
|
-
}, { signal: e.signal }), () => {
|
|
27
|
-
e.abort();
|
|
28
|
-
};
|
|
29
|
-
}, [a, d]), l(() => {
|
|
30
|
-
const e = new AbortController();
|
|
31
|
-
return o?.current?.addEventListener("focusin", () => {
|
|
32
|
-
g(i?.value ?? ""), u(!1);
|
|
33
|
-
}, { signal: e.signal }), o?.current?.addEventListener("focusout", () => {
|
|
19
|
+
return r?.current?.addEventListener("focusin", () => {
|
|
20
|
+
f(c?.value ?? ""), u(!1);
|
|
21
|
+
}, { signal: e.signal }), r?.current?.addEventListener("focusout", () => {
|
|
34
22
|
u(!0);
|
|
35
|
-
}, { signal: e.signal }),
|
|
23
|
+
}, { signal: e.signal }), d.current?.addEventListener("focus", () => {
|
|
36
24
|
u(!1);
|
|
37
|
-
}, { signal: e.signal }),
|
|
38
|
-
|
|
25
|
+
}, { signal: e.signal }), t.current?.addEventListener("focusout", (s) => {
|
|
26
|
+
t.current?.contains(s.relatedTarget) || n(!1);
|
|
39
27
|
}, { signal: e.signal }), () => {
|
|
40
28
|
e.abort();
|
|
41
29
|
};
|
|
42
|
-
}, [
|
|
43
|
-
|
|
44
|
-
}, [
|
|
30
|
+
}, [o]), l(() => {
|
|
31
|
+
r?.current && (r.current.value = o && c?.value || "");
|
|
32
|
+
}, [c, o]), l(() => {
|
|
45
33
|
const e = new AbortController();
|
|
46
|
-
return
|
|
47
|
-
const
|
|
48
|
-
(!
|
|
34
|
+
return t.current?.addEventListener("focusout", (s) => {
|
|
35
|
+
const a = s.relatedTarget;
|
|
36
|
+
(!a || !t.current?.contains(a)) && (r?.current?.value || i?.());
|
|
49
37
|
}), () => {
|
|
50
38
|
e.abort();
|
|
51
39
|
};
|
|
52
40
|
}, [
|
|
53
|
-
r,
|
|
54
41
|
n,
|
|
55
|
-
|
|
42
|
+
t,
|
|
56
43
|
f,
|
|
57
|
-
|
|
44
|
+
i,
|
|
45
|
+
o
|
|
58
46
|
]), {
|
|
59
|
-
wrapperRef:
|
|
60
|
-
wrapperInputRef:
|
|
47
|
+
wrapperRef: t,
|
|
48
|
+
wrapperInputRef: d,
|
|
61
49
|
handleOpen: () => {
|
|
62
|
-
|
|
50
|
+
n(!0), requestAnimationFrame(() => v?.current?.focus());
|
|
63
51
|
}
|
|
64
52
|
};
|
|
65
53
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as u } from "../../../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { a as j, i as P, n as V, o as A, r as D, t as E } from "../../../../dist-
|
|
2
|
+
import { a as j, i as P, n as V, o as A, r as D, t as E } from "../../../../dist-oJzmvhAb.js";
|
|
3
3
|
import { useSidebarContext as H } from "../../contexts/SidebarContext.js";
|
|
4
4
|
import { NavigationOptionContext as R } from "./NavigationOption.context.js";
|
|
5
5
|
import { navigationOptionVariants as z } from "./NavigationOption.variants.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Q } from "../../../../HamburgerTrigger-
|
|
1
|
+
import { t as Q } from "../../../../HamburgerTrigger-BT2yUUJ-.js";
|
|
2
2
|
import { t as l } from "../../../../utils-Cx-WzRZF.js";
|
|
3
3
|
import { Drawer as Y } from "../../../Drawer/Drawer.js";
|
|
4
4
|
import { SidebarContext as k } from "../../contexts/SidebarContext.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as r } from "../../../HamburgerTrigger-
|
|
1
|
+
import { t as r } from "../../../HamburgerTrigger-BT2yUUJ-.js";
|
|
2
2
|
import { CollapseTrigger as m } from "./CollapseTrigger/CollapseTrigger.js";
|
|
3
3
|
import { Footer as p } from "./Footer/Footer.js";
|
|
4
4
|
import { Label as f } from "./Label/Label.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t } from "../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { i as v, r as N, t as S } from "../../dist-
|
|
2
|
+
import { i as v, r as N, t as S } from "../../dist-CqNOgbfR.js";
|
|
3
3
|
import { sliderVariants as V, thumbVariants as g, trackVariants as j } from "./Slider.variants.js";
|
|
4
4
|
import { forwardRef as b, useEffect as w, useImperativeHandle as y, useRef as R, useState as k } from "react";
|
|
5
5
|
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as a } from "../../dist-B9GE4SXf.js";
|
|
2
|
-
var
|
|
2
|
+
var e = a([
|
|
3
3
|
"w-10",
|
|
4
4
|
"h-5",
|
|
5
5
|
"flex",
|
|
@@ -13,8 +13,6 @@ var t = a([
|
|
|
13
13
|
"delay-10",
|
|
14
14
|
"duration-250",
|
|
15
15
|
"cursor-pointer",
|
|
16
|
-
"bg-aurora-500",
|
|
17
|
-
"kubefirst:bg-kubefirst-primary",
|
|
18
16
|
"[&+label,&+span]:cursor-pointer",
|
|
19
17
|
"disabled:[&+label,&+span,&]:cursor-not-allowed",
|
|
20
18
|
"disabled:bg-gray-200",
|
|
@@ -24,7 +22,17 @@ var t = a([
|
|
|
24
22
|
"dark:disabled:data-[state=unchecked]:[&>span]:bg-metal-600",
|
|
25
23
|
"dark:disabled:data-[state=unchecked]:bg-metal-700",
|
|
26
24
|
"dark:disabled:[&>span]:bg-metal-600"
|
|
27
|
-
]
|
|
25
|
+
], {
|
|
26
|
+
variants: { variant: {
|
|
27
|
+
default: ["bg-aurora-500", "kubefirst:bg-kubefirst-primary"],
|
|
28
|
+
black: [
|
|
29
|
+
"bg-black",
|
|
30
|
+
"dark:bg-aurora-500",
|
|
31
|
+
"kubefirst:bg-kubefirst-primary"
|
|
32
|
+
]
|
|
33
|
+
} },
|
|
34
|
+
defaultVariants: { variant: "default" }
|
|
35
|
+
}), d = a([
|
|
28
36
|
"block",
|
|
29
37
|
"w-4",
|
|
30
38
|
"h-4",
|
|
@@ -34,12 +42,12 @@ var t = a([
|
|
|
34
42
|
"rounded-full",
|
|
35
43
|
"shadow-md",
|
|
36
44
|
"transition-all",
|
|
37
|
-
"translate-x-
|
|
38
|
-
"data-[state=checked]:translate-x-5",
|
|
45
|
+
"translate-x-0.5",
|
|
46
|
+
"data-[state=checked]:translate-x-5.5",
|
|
39
47
|
"delay-10",
|
|
40
48
|
"duration-300"
|
|
41
49
|
]);
|
|
42
50
|
export {
|
|
43
|
-
|
|
51
|
+
e as switchVariants,
|
|
44
52
|
d as thumbVariants
|
|
45
53
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as s } from "../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { r as e } from "../../dist-
|
|
2
|
+
import { r as e } from "../../dist-ut_BEHii.js";
|
|
3
3
|
import { rootVariants as p } from "./Tabs.variants.js";
|
|
4
4
|
import { Content as n } from "./components/Content.js";
|
|
5
5
|
import { List as f } from "./components/List.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as r } from "../../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { t as n } from "../../../dist-
|
|
2
|
+
import { t as n } from "../../../dist-ut_BEHii.js";
|
|
3
3
|
import { contentVariants as m } from "../Tabs.variants.js";
|
|
4
4
|
import { jsx as s } from "react/jsx-runtime";
|
|
5
5
|
var e = ({ children: t, className: o, ...a }) => /* @__PURE__ */ s(n, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as a } from "../../../utils-Cx-WzRZF.js";
|
|
2
|
-
import { n } from "../../../dist-
|
|
2
|
+
import { n } from "../../../dist-ut_BEHii.js";
|
|
3
3
|
import { listVariants as t } from "../Tabs.variants.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
var e = ({ children: s, className: i, orientation: m, ...o }) => /* @__PURE__ */ r("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../../../utils-Cx-WzRZF.js";
|
|
2
2
|
import { Typography as m } from "../../Typography/Typography.js";
|
|
3
|
-
import { i as n } from "../../../dist-
|
|
3
|
+
import { i as n } from "../../../dist-ut_BEHii.js";
|
|
4
4
|
import { triggerVariants as p } from "../Tabs.variants.js";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
6
6
|
var s = ({ tab: a, label: i, isActive: o, className: t }) => /* @__PURE__ */ r(n, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as m } from "../../Wrapper-
|
|
2
|
+
import { t as m } from "../../Wrapper-CvDRHgN4.js";
|
|
3
3
|
import { TagSelectProvider as p } from "./contexts/TagSelect.provider.js";
|
|
4
4
|
import { forwardRef as a } from "react";
|
|
5
5
|
import { jsx as r } from "react/jsx-runtime";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useClickOutside as
|
|
2
|
-
import { useTagSelect as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
var
|
|
5
|
-
const n =
|
|
6
|
-
return o(n, l(() => {
|
|
1
|
+
import { useClickOutside as s } from "../../../hooks/useClickOutside.js";
|
|
2
|
+
import { useTagSelect as l } from "../contexts/TagSelect.hook.js";
|
|
3
|
+
import { useCallback as c, useEffect as u, useRef as d } from "react";
|
|
4
|
+
var g = () => {
|
|
5
|
+
const n = d(null), { onOpen: e } = l(), a = c(() => {
|
|
7
6
|
e(!1);
|
|
8
|
-
}, [e])
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
}, [e]);
|
|
8
|
+
return s(n, a), u(() => {
|
|
9
|
+
const t = new AbortController(), o = (r) => {
|
|
10
|
+
r.key === "Escape" && e(!1);
|
|
11
11
|
};
|
|
12
|
-
return document.addEventListener("keydown",
|
|
12
|
+
return document.addEventListener("keydown", o, { signal: t.signal }), () => {
|
|
13
13
|
t.abort();
|
|
14
14
|
};
|
|
15
15
|
}, [e]), {
|
|
@@ -20,5 +20,5 @@ var m = () => {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
g as useTagSelect
|
|
24
24
|
};
|