@konstructio/ui 0.1.3 → 0.1.5
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-DzavonoC.js → Breadcrumb-BiiOnn0p.js} +1 -1
- package/dist/{CollapsedSteps-CkMuzOHx.js → CollapsedSteps-Dy2I7XDd.js} +35 -35
- package/dist/{Input-C1Js3pbF.js → Input-CE6J6HIW.js} +6 -6
- package/dist/components/Alert/Alert.js +19 -18
- package/dist/components/Alert/Alert.variants.js +11 -4
- package/dist/components/Autocomplete/Autocomplete.variants.js +6 -5
- package/dist/components/Badge/Badge.js +15 -15
- package/dist/components/Badge/Badge.variants.js +5 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.variants.js +1 -1
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +2 -2
- package/dist/components/Breadcrumb/components/index.js +1 -1
- package/dist/components/Button/Button.variants.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup.js +67 -63
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +18 -5
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +51 -32
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +56 -8
- package/dist/components/Checkbox/Checkbox.variants.js +9 -6
- package/dist/components/Command/components/DialogContent.js +5 -5
- package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
- package/dist/components/CopyButton/CopyButton.variants.js +4 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.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 +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/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 +7 -7
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +15 -14
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +22 -22
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +6 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +5 -5
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +1 -1
- package/dist/components/Range/Range.variants.js +9 -4
- package/dist/components/Select/Select.js +21 -20
- package/dist/components/Select/components/ListItem/ListItem.js +47 -37
- package/dist/components/Select/contexts/select.context.js +1 -0
- package/dist/components/Select/contexts/select.provider.js +28 -27
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +3 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js +6 -3
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +1 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +4 -2
- package/dist/components/Slider/Slider.variants.js +9 -4
- package/dist/components/Switch/Switch.variants.js +8 -4
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Toast/Toast.variants.js +7 -3
- package/dist/components/VirtualizedTable/assets/chevron-down.js +6 -6
- package/dist/components/VirtualizedTable/assets/chevron-up.js +4 -4
- package/dist/components/VirtualizedTable/components/Body/Body.js +59 -56
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +42 -40
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +85 -68
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +51 -49
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +34 -33
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +11 -11
- package/dist/components/VirtualizedTable/constants/index.js +10 -5
- package/dist/components/VirtualizedTable/constants/responsive.js +70 -1
- package/dist/components/VirtualizedTable/hooks/index.js +6 -2
- package/dist/components/VirtualizedTable/hooks/useDisplayedColumnCount/index.js +4 -0
- package/dist/components/VirtualizedTable/hooks/useDisplayedColumnCount/useDisplayedColumnCount.js +20 -0
- package/dist/components/VirtualizedTable/hooks/useIsFlexWrapped/index.js +4 -0
- package/dist/components/VirtualizedTable/hooks/useIsFlexWrapped/useIsFlexWrapped.js +18 -0
- package/dist/components/VirtualizedTable/utils/index.js +10 -8
- package/dist/components/VirtualizedTable/utils/responsive-edges/responsive-edges.js +8 -0
- package/dist/components/index.js +77 -73
- package/dist/{constants-q2QnJrOb.js → constants-YCGllWdf.js} +1 -1
- package/dist/index.js +77 -73
- package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +2 -0
- package/dist/lib/components/ButtonGroup/ButtonGroup.variants.d.ts +1 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.types.d.ts +2 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.d.ts +9 -0
- package/dist/lib/components/Select/Select.types.d.ts +2 -0
- package/dist/lib/components/Select/contexts/select.context.d.ts +1 -0
- package/dist/lib/components/Select/contexts/select.provider.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
- package/dist/lib/components/VirtualizedTable/assets/chevron-down.d.ts +1 -2
- package/dist/lib/components/VirtualizedTable/assets/chevron-up.d.ts +1 -2
- package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/hooks/index.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/hooks/useDisplayedColumnCount/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useDisplayedColumnCount/useDisplayedColumnCount.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useIsFlexWrapped/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useIsFlexWrapped/useIsFlexWrapped.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/responsive-edges/responsive-edges.d.ts +6 -0
- package/dist/package.json +8 -8
- package/dist/styles.css +1 -1
- package/package.json +8 -8
|
@@ -1,93 +1,97 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { buttonGroupPillVariants as
|
|
3
|
-
import { ButtonGroupItem as
|
|
4
|
-
import { ButtonGroupLabel as
|
|
5
|
-
import { ButtonGroupMessage as
|
|
6
|
-
import { useButtonGroup as
|
|
7
|
-
import { useMemo as
|
|
8
|
-
import { jsx as a, jsxs as
|
|
9
|
-
import { motion as
|
|
10
|
-
var
|
|
11
|
-
const { animationDirection:
|
|
12
|
-
defaultValue:
|
|
13
|
-
disabled:
|
|
1
|
+
import { n as R, t as u } from "../../utils-DnIJruo0.js";
|
|
2
|
+
import { buttonGroupPillVariants as T, buttonGroupVariants as U, buttonGroupWrapperVariants as X } from "./ButtonGroup.variants.js";
|
|
3
|
+
import { ButtonGroupItem as Y } from "./components/ButtonGroupItem/ButtonGroupItem.js";
|
|
4
|
+
import { ButtonGroupLabel as Z } from "./components/ButtonGroupLabel/ButtonGroupLabel.js";
|
|
5
|
+
import { ButtonGroupMessage as _ } from "./components/ButtonGroupMessage/ButtonGroupMessage.js";
|
|
6
|
+
import { useButtonGroup as ee } from "./hooks/useButtonGroup.js";
|
|
7
|
+
import { useMemo as te } from "react";
|
|
8
|
+
import { jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
9
|
+
import { motion as ae } from "motion/react";
|
|
10
|
+
var re = ({ className: B, contentClassName: I, defaultValue: N, descriptionAlign: x, descriptionClassName: D, disabled: o, duration: m, error: s, errorClassName: $, helperText: p, helperTextClassName: w, isRequired: f, itemClassName: K, itemLabelClassName: S, label: i, labelAlign: V, labelClassName: j, name: L, options: t, pillClassName: M, requiredClassName: C, theme: E, value: F, variant: n, wrapperClassName: O, onValueChange: P }) => {
|
|
11
|
+
const { animationDirection: W, groupRef: k, id: l, selected: r, handleKeyDown: q, handleSelect: z } = ee({
|
|
12
|
+
defaultValue: N,
|
|
13
|
+
disabled: o ?? void 0,
|
|
14
14
|
options: t,
|
|
15
|
-
value:
|
|
16
|
-
onValueChange:
|
|
17
|
-
}),
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
className:
|
|
20
|
-
"data-theme":
|
|
15
|
+
value: F,
|
|
16
|
+
onValueChange: P
|
|
17
|
+
}), v = `${l}-label`, h = `${l}-error`, b = `${l}-helper-text`, d = typeof s == "string" && s.length > 0, A = R(d && h, !d && !!p && b), y = t.length, G = te(() => t.findIndex((e) => e.value === r), [t, r]);
|
|
18
|
+
return /* @__PURE__ */ g("div", {
|
|
19
|
+
className: u(X(), O),
|
|
20
|
+
"data-theme": E,
|
|
21
21
|
children: [
|
|
22
|
-
i && /* @__PURE__ */ a(
|
|
23
|
-
className:
|
|
24
|
-
id:
|
|
25
|
-
isRequired:
|
|
22
|
+
i && /* @__PURE__ */ a(Z, {
|
|
23
|
+
className: j,
|
|
24
|
+
id: v,
|
|
25
|
+
isRequired: f,
|
|
26
26
|
label: i,
|
|
27
|
-
requiredClassName:
|
|
27
|
+
requiredClassName: C
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
ref:
|
|
29
|
+
/* @__PURE__ */ g("div", {
|
|
30
|
+
ref: k,
|
|
31
31
|
role: "radiogroup",
|
|
32
|
-
"aria-labelledby": i ?
|
|
33
|
-
"aria-invalid":
|
|
34
|
-
"aria-describedby":
|
|
35
|
-
"aria-required":
|
|
36
|
-
className:
|
|
37
|
-
|
|
32
|
+
"aria-labelledby": i ? v : void 0,
|
|
33
|
+
"aria-invalid": d || void 0,
|
|
34
|
+
"aria-describedby": A,
|
|
35
|
+
"aria-required": f || void 0,
|
|
36
|
+
className: u(U({
|
|
37
|
+
disabled: o,
|
|
38
|
+
variant: n
|
|
39
|
+
}), B),
|
|
40
|
+
children: [n !== "outline" && G >= 0 && /* @__PURE__ */ a(ae.div, {
|
|
38
41
|
"aria-hidden": "true",
|
|
39
|
-
className:
|
|
42
|
+
className: u(T(), M),
|
|
40
43
|
initial: !1,
|
|
41
44
|
animate: {
|
|
42
|
-
left: `calc(${
|
|
43
|
-
width: `calc(100% / ${
|
|
45
|
+
left: `calc(${G} * (100% / ${y}) + 8px)`,
|
|
46
|
+
width: `calc(100% / ${y} - 16px)`
|
|
44
47
|
},
|
|
45
48
|
transition: {
|
|
46
49
|
type: "tween",
|
|
47
50
|
ease: "linear",
|
|
48
51
|
duration: m ?? 0.3
|
|
49
52
|
}
|
|
50
|
-
}), t.map((e,
|
|
51
|
-
const
|
|
52
|
-
return /* @__PURE__ */ a(
|
|
53
|
-
animationDirection:
|
|
54
|
-
className:
|
|
55
|
-
contentClassName:
|
|
56
|
-
descriptionAlign:
|
|
57
|
-
descriptionClassName:
|
|
53
|
+
}), t.map((e, c) => {
|
|
54
|
+
const H = r === e.value, J = o || e.disabled, Q = !!e.description;
|
|
55
|
+
return /* @__PURE__ */ a(Y, {
|
|
56
|
+
animationDirection: W,
|
|
57
|
+
className: K,
|
|
58
|
+
contentClassName: I,
|
|
59
|
+
descriptionAlign: x,
|
|
60
|
+
descriptionClassName: D,
|
|
58
61
|
duration: m,
|
|
59
|
-
hasDescription:
|
|
60
|
-
index:
|
|
61
|
-
isDisabled: !!
|
|
62
|
-
isFirst:
|
|
63
|
-
isLast:
|
|
64
|
-
isSelected:
|
|
65
|
-
labelAlign:
|
|
66
|
-
labelClassName:
|
|
62
|
+
hasDescription: Q,
|
|
63
|
+
index: c,
|
|
64
|
+
isDisabled: !!J,
|
|
65
|
+
isFirst: c === 0,
|
|
66
|
+
isLast: c === t.length - 1,
|
|
67
|
+
isSelected: H,
|
|
68
|
+
labelAlign: V,
|
|
69
|
+
labelClassName: S,
|
|
67
70
|
option: e,
|
|
68
71
|
value: e.value,
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
variant: n ?? void 0,
|
|
73
|
+
onKeyDown: q,
|
|
74
|
+
onSelect: z
|
|
71
75
|
}, e.value);
|
|
72
76
|
})]
|
|
73
77
|
}),
|
|
74
78
|
/* @__PURE__ */ a("input", {
|
|
75
79
|
type: "hidden",
|
|
76
|
-
name:
|
|
80
|
+
name: L,
|
|
77
81
|
value: r ?? ""
|
|
78
82
|
}),
|
|
79
|
-
/* @__PURE__ */ a(
|
|
80
|
-
error:
|
|
81
|
-
errorClassName:
|
|
82
|
-
errorId:
|
|
83
|
-
helperText:
|
|
84
|
-
helperTextClassName:
|
|
85
|
-
helperTextId:
|
|
83
|
+
/* @__PURE__ */ a(_, {
|
|
84
|
+
error: s,
|
|
85
|
+
errorClassName: $,
|
|
86
|
+
errorId: h,
|
|
87
|
+
helperText: p,
|
|
88
|
+
helperTextClassName: w,
|
|
89
|
+
helperTextId: b
|
|
86
90
|
})
|
|
87
91
|
]
|
|
88
92
|
});
|
|
89
93
|
};
|
|
90
|
-
|
|
94
|
+
re.displayName = "KonstructButtonGroup";
|
|
91
95
|
export {
|
|
92
|
-
|
|
96
|
+
re as ButtonGroup
|
|
93
97
|
};
|
|
@@ -19,11 +19,24 @@ var e = t([
|
|
|
19
19
|
"bg-metal-900",
|
|
20
20
|
"rounded-lg"
|
|
21
21
|
], {
|
|
22
|
-
variants: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
variants: {
|
|
23
|
+
variant: {
|
|
24
|
+
pill: "",
|
|
25
|
+
outline: [
|
|
26
|
+
"w-fit",
|
|
27
|
+
"bg-transparent",
|
|
28
|
+
"rounded"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
disabled: {
|
|
32
|
+
true: "opacity-50 cursor-not-allowed",
|
|
33
|
+
false: ""
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
variant: "pill",
|
|
38
|
+
disabled: !1
|
|
39
|
+
}
|
|
27
40
|
});
|
|
28
41
|
export {
|
|
29
42
|
e as buttonGroupPillVariants,
|
|
@@ -1,60 +1,79 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { buttonGroupDescriptionVariants as
|
|
3
|
-
import { memo as
|
|
4
|
-
import { jsx as s, jsxs as
|
|
5
|
-
import { motion as
|
|
6
|
-
var
|
|
1
|
+
import { t as a } from "../../../../utils-DnIJruo0.js";
|
|
2
|
+
import { buttonGroupDescriptionVariants as g, buttonGroupItemContentVariants as k, buttonGroupItemVariants as L, buttonGroupLabelVariants as v, buttonGroupOutlineItemVariants as w } from "./ButtonGroupItem.variants.js";
|
|
3
|
+
import { memo as j } from "react";
|
|
4
|
+
import { jsx as s, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
import { motion as B } from "motion/react";
|
|
6
|
+
var C = (c, l) => l === "none" ? c ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : c ? "inset(0 0 0 0)" : l === "right" ? "inset(0 0 0 100%)" : "inset(0 100% 0 0)", K = j(({ animationDirection: c, className: l, contentClassName: y, descriptionAlign: N, descriptionClassName: G, duration: I = 0.3, hasDescription: x, index: i, isDisabled: t, isFirst: d, isLast: o, isSelected: n, labelAlign: p, labelClassName: u, option: e, value: h, variant: V, onKeyDown: b, onSelect: f }) => V === "outline" ? /* @__PURE__ */ s("button", {
|
|
7
7
|
type: "button",
|
|
8
8
|
role: "radio",
|
|
9
|
-
"aria-checked":
|
|
9
|
+
"aria-checked": n,
|
|
10
10
|
"data-value": e.value,
|
|
11
|
-
disabled:
|
|
12
|
-
tabIndex:
|
|
13
|
-
onClick: () => !
|
|
14
|
-
onKeyDown: (
|
|
15
|
-
className:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
disabled: t,
|
|
12
|
+
tabIndex: n || i === 0 ? 0 : -1,
|
|
13
|
+
onClick: () => !t && f(h),
|
|
14
|
+
onKeyDown: (m) => b(m, i),
|
|
15
|
+
className: a(w({
|
|
16
|
+
selected: n,
|
|
17
|
+
disabled: t,
|
|
18
|
+
isFirst: d,
|
|
19
|
+
isLast: o
|
|
20
|
+
}), l),
|
|
21
|
+
children: /* @__PURE__ */ r("span", {
|
|
22
|
+
className: a("flex items-center gap-2", u),
|
|
23
|
+
children: [e.icon, e.label]
|
|
24
|
+
})
|
|
25
|
+
}) : /* @__PURE__ */ s("button", {
|
|
26
|
+
type: "button",
|
|
27
|
+
role: "radio",
|
|
28
|
+
"aria-checked": n,
|
|
29
|
+
"data-value": e.value,
|
|
30
|
+
disabled: t,
|
|
31
|
+
tabIndex: n || i === 0 ? 0 : -1,
|
|
32
|
+
onClick: () => !t && f(h),
|
|
33
|
+
onKeyDown: (m) => b(m, i),
|
|
34
|
+
className: a(L({
|
|
35
|
+
disabled: t,
|
|
36
|
+
isFirst: d,
|
|
37
|
+
isLast: o
|
|
38
|
+
}), "relative", l),
|
|
39
|
+
children: /* @__PURE__ */ r("div", {
|
|
40
|
+
className: a(k({ hasDescription: x }), "relative", y),
|
|
41
|
+
children: [/* @__PURE__ */ r("span", {
|
|
23
42
|
className: "relative w-full",
|
|
24
|
-
children: [/* @__PURE__ */
|
|
25
|
-
className:
|
|
43
|
+
children: [/* @__PURE__ */ r("span", {
|
|
44
|
+
className: a(v({
|
|
26
45
|
selected: !1,
|
|
27
|
-
labelAlign:
|
|
46
|
+
labelAlign: p
|
|
28
47
|
}), u),
|
|
29
|
-
children: [/* @__PURE__ */
|
|
48
|
+
children: [/* @__PURE__ */ r("span", {
|
|
30
49
|
className: "flex items-center gap-2",
|
|
31
50
|
children: [e.icon, e.label]
|
|
32
51
|
}), e.secondaryLabel && /* @__PURE__ */ s("span", { children: e.secondaryLabel })]
|
|
33
|
-
}), /* @__PURE__ */
|
|
34
|
-
className:
|
|
52
|
+
}), /* @__PURE__ */ r(B.span, {
|
|
53
|
+
className: a(v({
|
|
35
54
|
selected: !0,
|
|
36
|
-
labelAlign:
|
|
55
|
+
labelAlign: p
|
|
37
56
|
}), "absolute inset-0", u),
|
|
38
57
|
"aria-hidden": "true",
|
|
39
58
|
initial: !1,
|
|
40
|
-
animate: { clipPath:
|
|
59
|
+
animate: { clipPath: C(n, c) },
|
|
41
60
|
transition: {
|
|
42
61
|
type: "tween",
|
|
43
62
|
ease: "linear",
|
|
44
|
-
duration:
|
|
63
|
+
duration: I
|
|
45
64
|
},
|
|
46
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ r("span", {
|
|
47
66
|
className: "flex items-center gap-2",
|
|
48
67
|
children: [e.icon, e.label]
|
|
49
68
|
}), e.secondaryLabel && /* @__PURE__ */ s("span", { children: e.secondaryLabel })]
|
|
50
69
|
})]
|
|
51
70
|
}), e.description && /* @__PURE__ */ s("span", {
|
|
52
|
-
className:
|
|
71
|
+
className: a(g({ descriptionAlign: N }), G),
|
|
53
72
|
children: e.description
|
|
54
73
|
})]
|
|
55
74
|
})
|
|
56
75
|
}, e.value));
|
|
57
|
-
|
|
76
|
+
K.displayName = "KonstructButtonGroupItem";
|
|
58
77
|
export {
|
|
59
|
-
|
|
78
|
+
K as ButtonGroupItem
|
|
60
79
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t } from "../../../../dist-B9GE4SXf.js";
|
|
2
|
-
var r =
|
|
1
|
+
import { t as e } from "../../../../dist-B9GE4SXf.js";
|
|
2
|
+
var r = e([
|
|
3
3
|
"flex",
|
|
4
4
|
"flex-1",
|
|
5
5
|
"items-start",
|
|
@@ -35,7 +35,54 @@ var r = t([
|
|
|
35
35
|
isFirst: !1,
|
|
36
36
|
isLast: !1
|
|
37
37
|
}
|
|
38
|
-
}), a =
|
|
38
|
+
}), a = e([
|
|
39
|
+
"flex",
|
|
40
|
+
"items-center",
|
|
41
|
+
"h-9",
|
|
42
|
+
"px-4",
|
|
43
|
+
"py-2",
|
|
44
|
+
"-ml-px",
|
|
45
|
+
"first:ml-0",
|
|
46
|
+
"border",
|
|
47
|
+
"bg-metal-800",
|
|
48
|
+
"text-sm",
|
|
49
|
+
"font-medium",
|
|
50
|
+
"leading-5",
|
|
51
|
+
"tracking-[0.1px]",
|
|
52
|
+
"whitespace-nowrap",
|
|
53
|
+
"cursor-pointer",
|
|
54
|
+
"select-none",
|
|
55
|
+
"transition-colors",
|
|
56
|
+
"focus:outline-none",
|
|
57
|
+
"focus-visible:ring-2",
|
|
58
|
+
"focus-visible:ring-aurora-500",
|
|
59
|
+
"focus-visible:ring-inset"
|
|
60
|
+
], {
|
|
61
|
+
variants: {
|
|
62
|
+
selected: {
|
|
63
|
+
true: "relative z-10 border-aurora-500 text-aurora-500",
|
|
64
|
+
false: "border-metal-700 text-metal-300 hover:text-metal-50"
|
|
65
|
+
},
|
|
66
|
+
disabled: {
|
|
67
|
+
true: "pointer-events-none opacity-50",
|
|
68
|
+
false: ""
|
|
69
|
+
},
|
|
70
|
+
isFirst: {
|
|
71
|
+
true: "rounded-l",
|
|
72
|
+
false: ""
|
|
73
|
+
},
|
|
74
|
+
isLast: {
|
|
75
|
+
true: "rounded-r",
|
|
76
|
+
false: ""
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
defaultVariants: {
|
|
80
|
+
selected: !1,
|
|
81
|
+
disabled: !1,
|
|
82
|
+
isFirst: !1,
|
|
83
|
+
isLast: !1
|
|
84
|
+
}
|
|
85
|
+
}), s = e([
|
|
39
86
|
"flex",
|
|
40
87
|
"flex-col",
|
|
41
88
|
"flex-1",
|
|
@@ -48,7 +95,7 @@ var r = t([
|
|
|
48
95
|
false: "justify-center"
|
|
49
96
|
} },
|
|
50
97
|
defaultVariants: { hasDescription: !1 }
|
|
51
|
-
}),
|
|
98
|
+
}), i = e([
|
|
52
99
|
"text-sm",
|
|
53
100
|
"font-medium",
|
|
54
101
|
"leading-5",
|
|
@@ -76,7 +123,7 @@ var r = t([
|
|
|
76
123
|
selected: !1,
|
|
77
124
|
labelAlign: "left"
|
|
78
125
|
}
|
|
79
|
-
}),
|
|
126
|
+
}), n = e([
|
|
80
127
|
"text-sm",
|
|
81
128
|
"font-normal",
|
|
82
129
|
"leading-5",
|
|
@@ -91,8 +138,9 @@ var r = t([
|
|
|
91
138
|
defaultVariants: { descriptionAlign: "left" }
|
|
92
139
|
});
|
|
93
140
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
141
|
+
n as buttonGroupDescriptionVariants,
|
|
142
|
+
s as buttonGroupItemContentVariants,
|
|
96
143
|
r as buttonGroupItemVariants,
|
|
97
|
-
|
|
144
|
+
i as buttonGroupLabelVariants,
|
|
145
|
+
a as buttonGroupOutlineItemVariants
|
|
98
146
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { t as e } from "../../dist-B9GE4SXf.js";
|
|
2
|
-
var
|
|
2
|
+
var t = e([
|
|
3
3
|
"cursor-pointer",
|
|
4
4
|
"tap-target",
|
|
5
5
|
"touch-hit-area",
|
|
6
6
|
"relative",
|
|
7
7
|
"shrink-0",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"outline-none",
|
|
9
|
+
"focus-visible:outline-2",
|
|
10
|
+
"focus-visible:outline-offset-2",
|
|
11
|
+
"focus-visible:outline-aurora-500",
|
|
12
|
+
"pointer-coarse:motion-safe:active:scale-90",
|
|
10
13
|
"border",
|
|
11
14
|
"rounded",
|
|
12
15
|
"w-5",
|
|
@@ -56,7 +59,7 @@ var a = e([
|
|
|
56
59
|
]
|
|
57
60
|
}],
|
|
58
61
|
defaultVariants: { variant: "default" }
|
|
59
|
-
}),
|
|
62
|
+
}), a = e([
|
|
60
63
|
"select-none",
|
|
61
64
|
"cursor-pointer",
|
|
62
65
|
"text-sm",
|
|
@@ -64,6 +67,6 @@ var a = e([
|
|
|
64
67
|
"dark:text-slate-50"
|
|
65
68
|
]);
|
|
66
69
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
t as checkboxVariants,
|
|
71
|
+
a as labelVariants
|
|
69
72
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as i, o as d, r as o } from "../../../dist-DWopnVS-.js";
|
|
2
2
|
import { t as l } from "../../../x-BmNOD9Gr.js";
|
|
3
3
|
import { t as m } from "../../../utils-DnIJruo0.js";
|
|
4
4
|
import { DialogOverlay as p } from "./DialogOverlay.js";
|
|
5
5
|
import { forwardRef as f } from "react";
|
|
6
6
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
7
|
-
var c = f(({ className: e, children: s, ...n },
|
|
8
|
-
ref:
|
|
7
|
+
var c = f(({ className: e, children: s, ...n }, r) => /* @__PURE__ */ a(d, { children: [/* @__PURE__ */ t(p, {}), /* @__PURE__ */ a(o, {
|
|
8
|
+
ref: r,
|
|
9
9
|
className: m("fixed text-white left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", e),
|
|
10
10
|
...n,
|
|
11
|
-
children: [s, /* @__PURE__ */ a(
|
|
12
|
-
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-
|
|
11
|
+
children: [s, /* @__PURE__ */ a(i, {
|
|
12
|
+
className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-aurora-500 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground text-white",
|
|
13
13
|
children: [/* @__PURE__ */ t(l, { className: "h-4 w-4" }), /* @__PURE__ */ t("span", {
|
|
14
14
|
className: "sr-only",
|
|
15
15
|
children: "Close"
|
|
@@ -2,7 +2,7 @@ import { WarningIcon as K } from "../../assets/icons/components/Warning.js";
|
|
|
2
2
|
import { t as g } from "../../utils-DnIJruo0.js";
|
|
3
3
|
import { Button as C } from "../Button/Button.js";
|
|
4
4
|
import { CopyButton as T } from "../CopyButton/CopyButton.js";
|
|
5
|
-
import { t as V } from "../../Input-
|
|
5
|
+
import { t as V } from "../../Input-CE6J6HIW.js";
|
|
6
6
|
import { t as l } from "../../Modal-Bwq7Gc0A.js";
|
|
7
7
|
import { Typography as d } from "../Typography/Typography.js";
|
|
8
8
|
import { useEffect as W, useId as A, useState as G } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t } from "../../dist-B9GE4SXf.js";
|
|
2
|
-
var i =
|
|
1
|
+
import { t as e } from "../../dist-B9GE4SXf.js";
|
|
2
|
+
var i = e([
|
|
3
3
|
"inline-flex",
|
|
4
4
|
"shrink-0",
|
|
5
5
|
"items-center",
|
|
@@ -10,7 +10,8 @@ var i = t([
|
|
|
10
10
|
"transition-colors",
|
|
11
11
|
"focus-visible:outline-none",
|
|
12
12
|
"focus-visible:ring-1",
|
|
13
|
-
"focus-visible:ring-
|
|
13
|
+
"focus-visible:ring-aurora-500",
|
|
14
|
+
"kubefirst:focus-visible:ring-kubefirst-primary",
|
|
14
15
|
"disabled:pointer-events-none",
|
|
15
16
|
"disabled:opacity-45",
|
|
16
17
|
"pointer-coarse:min-h-11",
|
|
@@ -2,7 +2,7 @@ import { useDateRangePicker as q } from "../../contexts/date-range-picker/date-r
|
|
|
2
2
|
import { createDisabledMatcher as z } from "../../utils/disabled-dates/disabled-dates.js";
|
|
3
3
|
import { IndependentModeCalendar as A } from "./components/IndependentModeCalendar/IndependentModeCalendar.js";
|
|
4
4
|
import { TogetherModeCalendar as B } from "./components/TogetherModeCalendar/TogetherModeCalendar.js";
|
|
5
|
-
import "../../../../constants-
|
|
5
|
+
import "../../../../constants-YCGllWdf.js";
|
|
6
6
|
import '../../../../style.css';import '../../../../CalendarPanel.css';/* empty css */
|
|
7
7
|
import { useMemo as F } from "react";
|
|
8
8
|
import { jsx as x } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as r } from "../../../../../../utils-DnIJruo0.js";
|
|
2
2
|
import { getMonthName as o } from "../../../../utils/validation/validation.js";
|
|
3
3
|
import { calendarMonthTitleVariants as i } from "../../CalendarPanel.variants.js";
|
|
4
|
-
import "../../../../../../constants-
|
|
4
|
+
import "../../../../../../constants-YCGllWdf.js";
|
|
5
5
|
import { getWeeksInMonth as l } from "../../utils/index.js";
|
|
6
6
|
import { Suspense as m, lazy as s } from "react";
|
|
7
7
|
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as n } from "../../../../../../../../DayPicker-D7KFB2bI.js";
|
|
2
|
-
import { s as d } from "../../../../../../../../constants-
|
|
2
|
+
import { s as d } from "../../../../../../../../constants-YCGllWdf.js";
|
|
3
3
|
import { useMemo as c } from "react";
|
|
4
4
|
import { jsx as l } from "react/jsx-runtime";
|
|
5
5
|
var f = ({ month: r, range: e, onRangeSelect: o, disabled: t, disabledMatcher: m, showOutsideDays: s, classNames: a }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as a } from "../../../../../../utils-DnIJruo0.js";
|
|
2
2
|
import { calendarGridContainerVariants as Q, calendarPanelVariants as U } from "../../CalendarPanel.variants.js";
|
|
3
|
-
import "../../../../../../constants-
|
|
3
|
+
import "../../../../../../constants-YCGllWdf.js";
|
|
4
4
|
import { useIndependentCarousel as X } from "../../hooks/useIndependentCarousel.js";
|
|
5
5
|
import { CalendarDivider as Y } from "../CalendarDivider/CalendarDivider.js";
|
|
6
6
|
import { CalendarMonth as s } from "../CalendarMonth/CalendarMonth.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getMonthName as E } from "../../../utils/validation/validation.js";
|
|
2
|
-
import { a as s, i as _, n as r, o as T, r as e, s as o, t } from "../../../../../constants-
|
|
2
|
+
import { a as s, i as _, n as r, o as T, r as e, s as o, t } from "../../../../../constants-YCGllWdf.js";
|
|
3
3
|
export {
|
|
4
4
|
t as GAP_WIDTH,
|
|
5
5
|
r as MONTH_HEADER_HEIGHT,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getMonthName as t } from "../../../utils/validation/validation.js";
|
|
2
|
-
import { a as o, i as r, n as s, o as H, r as E, s as m, t as _ } from "../../../../../constants-
|
|
2
|
+
import { a as o, i as r, n as s, o as H, r as E, s as m, t as _ } from "../../../../../constants-YCGllWdf.js";
|
|
3
3
|
import { calculateCalendarHeight as T, getNextMonth as i, getPrevMonth as I, getWeeksInMonth as M } from "../utils/index.js";
|
|
4
4
|
import { useTogetherCarousel as N } from "./useTogetherCarousel.js";
|
|
5
5
|
import { useIndependentCarousel as h } from "./useIndependentCarousel.js";
|
package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as W } from "../../../../../constants-
|
|
1
|
+
import { r as W } from "../../../../../constants-YCGllWdf.js";
|
|
2
2
|
import { calculateCalendarHeight as j, getNextMonth as m, getPrevMonth as h, getWeeksInMonth as k } from "../utils/index.js";
|
|
3
3
|
import { useEffect as g, useMemo as p, useRef as L, useState as i } from "react";
|
|
4
4
|
var Q = ({ displayedMonths: u, animationDuration: F, navigationMode: I }) => {
|
package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as L } from "../../../../../constants-
|
|
1
|
+
import { r as L } from "../../../../../constants-YCGllWdf.js";
|
|
2
2
|
import { calculateCalendarHeight as X, getNextMonth as T, getPrevMonth as g, getWeeksInMonth as $ } from "../utils/index.js";
|
|
3
3
|
import { useEffect as H, useMemo as j, useRef as E, useState as a } from "react";
|
|
4
4
|
var Z = ({ displayedMonths: l, animationDuration: I, disabled: N, canNavigatePrev: S, canNavigateNext: b, navigationMode: W, numberOfMonths: F = 2, navigatePrevMonth: p, navigateNextMonth: v }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../../../../../../utils-DnIJruo0.js";
|
|
2
|
-
import { t as F } from "../../../../../../Input-
|
|
2
|
+
import { t as F } from "../../../../../../Input-CE6J6HIW.js";
|
|
3
3
|
import { TimePicker as W } from "../../../../../TimePicker/TimePicker.js";
|
|
4
4
|
import { Typography as p } from "../../../../../Typography/Typography.js";
|
|
5
5
|
import { dateInputWrapperVariants as y, dateTimeGroupVariants as C, inputLabelVariants as l, inputRequiredMarkVariants as L, timeInputWrapperVariants as N } from "../../DateTimeInputs.variants.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t } from "../../../../../../utils-DnIJruo0.js";
|
|
2
|
-
import { t as F } from "../../../../../../Input-
|
|
2
|
+
import { t as F } from "../../../../../../Input-CE6J6HIW.js";
|
|
3
3
|
import { TimePicker as W } from "../../../../../TimePicker/TimePicker.js";
|
|
4
4
|
import { Typography as p } from "../../../../../Typography/Typography.js";
|
|
5
5
|
import { dateInputWrapperVariants as y, dateTimeGroupVariants as C, inputLabelVariants as l, inputRequiredMarkVariants as L, timeInputWrapperVariants as N } from "../../DateTimeInputs.variants.js";
|
|
@@ -6,22 +6,22 @@ import { t as k } from "../../../../chevron-right-D4OkgIIT.js";
|
|
|
6
6
|
import '../../../../style.css';/* empty css */
|
|
7
7
|
import { useState as g } from "react";
|
|
8
8
|
import { jsx as a } from "react/jsx-runtime";
|
|
9
|
-
var
|
|
10
|
-
const [
|
|
9
|
+
var w = ({ className: o, showOutsideDays: n = !0, animate: l = !0, arrowClassName: s, monthsClassName: d, defaultSelected: i, onSelect: m, ...u }) => {
|
|
10
|
+
const [c, x] = g(() => i), b = (e) => {
|
|
11
11
|
e && (x(e), m?.(e));
|
|
12
12
|
};
|
|
13
13
|
return /* @__PURE__ */ a(f, {
|
|
14
14
|
className: t(h({ className: o })),
|
|
15
15
|
animate: l,
|
|
16
16
|
mode: "single",
|
|
17
|
-
selected:
|
|
17
|
+
selected: c,
|
|
18
18
|
onSelect: b,
|
|
19
19
|
showOutsideDays: n,
|
|
20
20
|
role: "dialog",
|
|
21
21
|
"aria-label": "Datepicker",
|
|
22
22
|
classNames: {
|
|
23
23
|
chevron: t("cursor-pointer", "text-slate-500", "w-5", "h-5", "text-slate-500", "w-4", "h-4", "dark:text-metal-200"),
|
|
24
|
-
day_button: t("h-7.5", "aria-selected:opacity-100", "font-semibold", "hover:rounded-full", "cursor-pointer", "tap-target", "rounded-full", "w-7.5", "pointer-coarse:size-10", "
|
|
24
|
+
day_button: t("h-7.5", "aria-selected:opacity-100", "font-semibold", "hover:rounded-full", "cursor-pointer", "tap-target", "rounded-full", "w-7.5", "pointer-coarse:size-10", "pointer-coarse:motion-safe:active:scale-90", "transition-transform"),
|
|
25
25
|
day: "text-center text-sm leading-5",
|
|
26
26
|
month_caption: t("text-slate-700", "font-semibold", "text-sm", "pl-1", "h-8", "flex", "items-center", "dark:text-white"),
|
|
27
27
|
months: t("flex", "flex-col", "relative", "px-5", "py-4", "rounded-lg", "shadow-md", "px-6", "py-4", "w-[307px]", "justify-center", "items-center", "border", "border-transparent", "dark:bg-metal-800", "dark:border-metal-700", d),
|
|
@@ -42,10 +42,10 @@ var v = ({ className: o, showOutsideDays: n = !0, animate: l = !0, arrowClassNam
|
|
|
42
42
|
className: t(e),
|
|
43
43
|
...r
|
|
44
44
|
}) },
|
|
45
|
-
...
|
|
45
|
+
...u
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
w.displayName = "DatePickerContent";
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
w as DatePickerContent
|
|
51
51
|
};
|