@dmsi/wedgekit-react 0.0.916 → 0.0.917
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/{chunk-YV5FS7NV.js → chunk-7IPESTQS.js} +13 -9
- package/dist/{chunk-3N34VVYD.js → chunk-ZACRFGND.js} +102 -26
- package/dist/components/CalendarRange.cjs +17 -15
- package/dist/components/CalendarRange.css +49 -0
- package/dist/components/CalendarRange.js +2 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +3 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +49 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +2 -2
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +3 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +49 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +2 -2
- package/dist/components/DataGrid/PinnedColumns.cjs +6 -4
- package/dist/components/DataGrid/PinnedColumns.css +49 -0
- package/dist/components/DataGrid/PinnedColumns.js +2 -2
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +3 -1
- package/dist/components/DataGrid/TableBody/LoadingCell.css +49 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +2 -2
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +6 -4
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +49 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +2 -2
- package/dist/components/DataGrid/TableBody/index.cjs +8 -6
- package/dist/components/DataGrid/TableBody/index.css +49 -0
- package/dist/components/DataGrid/TableBody/index.js +2 -2
- package/dist/components/DataGrid/index.cjs +17 -15
- package/dist/components/DataGrid/index.css +49 -0
- package/dist/components/DataGrid/index.js +2 -2
- package/dist/components/DataGrid/utils.cjs +5 -3
- package/dist/components/DataGrid/utils.css +49 -0
- package/dist/components/DataGrid/utils.js +2 -2
- package/dist/components/DateInput.cjs +19 -17
- package/dist/components/DateInput.css +49 -0
- package/dist/components/DateInput.js +2 -2
- package/dist/components/DateRangeInput.cjs +17 -15
- package/dist/components/DateRangeInput.css +49 -0
- package/dist/components/DateRangeInput.js +2 -2
- package/dist/components/EmblaCarousel/ArrowButtons.cjs +13 -9
- package/dist/components/EmblaCarousel/ArrowButtons.js +1 -1
- package/dist/components/EmblaCarousel/index.cjs +113 -33
- package/dist/components/EmblaCarousel/index.js +2 -2
- package/dist/components/MobileDataGrid/ColumnList.css +49 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +3 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +49 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +2 -2
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +3 -1
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +49 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +2 -2
- package/dist/components/MobileDataGrid/index.cjs +21 -19
- package/dist/components/MobileDataGrid/index.css +49 -0
- package/dist/components/MobileDataGrid/index.js +2 -2
- package/dist/components/index.cjs +113 -33
- package/dist/components/index.css +49 -0
- package/dist/components/index.js +2 -2
- package/dist/index.css +49 -0
- package/package.json +2 -1
|
@@ -8,17 +8,18 @@ import {
|
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
var arrowButtonStyles = clsx(
|
|
11
|
-
"appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out"
|
|
11
|
+
"appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out group"
|
|
12
12
|
);
|
|
13
13
|
var PrevButton = (props) => {
|
|
14
|
-
const _a = props, { children, disabled } = _a, restProps = __objRest(_a, ["children", "disabled"]);
|
|
14
|
+
const _a = props, { children, disabled, className, iconClassName, circleChevron } = _a, restProps = __objRest(_a, ["children", "disabled", "className", "iconClassName", "circleChevron"]);
|
|
15
15
|
return /* @__PURE__ */ jsxs(
|
|
16
16
|
"button",
|
|
17
17
|
__spreadProps(__spreadValues({
|
|
18
18
|
className: clsx(
|
|
19
19
|
arrowButtonStyles,
|
|
20
20
|
!disabled && "border-border-primary-normal hover:border-border-action-hover active:border-border-action-active",
|
|
21
|
-
disabled && "border-border-action-disabled"
|
|
21
|
+
disabled && "border-border-action-disabled",
|
|
22
|
+
className
|
|
22
23
|
),
|
|
23
24
|
type: "button"
|
|
24
25
|
}, restProps), {
|
|
@@ -28,8 +29,9 @@ var PrevButton = (props) => {
|
|
|
28
29
|
{
|
|
29
30
|
className: clsx(
|
|
30
31
|
"size-3 transition-colors duration-300 ease-in-out",
|
|
31
|
-
!disabled && "text-text-primary-normal",
|
|
32
|
-
disabled && "text-icon-primary-disabled"
|
|
32
|
+
!disabled && circleChevron && "text-text-primary-normal",
|
|
33
|
+
disabled && "text-icon-primary-disabled",
|
|
34
|
+
iconClassName
|
|
33
35
|
),
|
|
34
36
|
viewBox: "0 0 532 532",
|
|
35
37
|
children: /* @__PURE__ */ jsx(
|
|
@@ -47,14 +49,15 @@ var PrevButton = (props) => {
|
|
|
47
49
|
);
|
|
48
50
|
};
|
|
49
51
|
var NextButton = (props) => {
|
|
50
|
-
const _a = props, { children, disabled } = _a, restProps = __objRest(_a, ["children", "disabled"]);
|
|
52
|
+
const _a = props, { children, disabled, className, iconClassName, circleChevron } = _a, restProps = __objRest(_a, ["children", "disabled", "className", "iconClassName", "circleChevron"]);
|
|
51
53
|
return /* @__PURE__ */ jsxs(
|
|
52
54
|
"button",
|
|
53
55
|
__spreadProps(__spreadValues({
|
|
54
56
|
className: clsx(
|
|
55
57
|
arrowButtonStyles,
|
|
56
58
|
!disabled && "border-border-primary-normal hover:border-border-action-hover active:border-border-action-active",
|
|
57
|
-
disabled && "border-border-action-disabled"
|
|
59
|
+
disabled && "border-border-action-disabled",
|
|
60
|
+
className
|
|
58
61
|
),
|
|
59
62
|
type: "button"
|
|
60
63
|
}, restProps), {
|
|
@@ -64,8 +67,9 @@ var NextButton = (props) => {
|
|
|
64
67
|
{
|
|
65
68
|
className: clsx(
|
|
66
69
|
"size-3 transition-colors duration-300 ease-in-out",
|
|
67
|
-
!disabled && "text-text-primary-normal",
|
|
68
|
-
disabled && "text-icon-primary-disabled"
|
|
70
|
+
!disabled && circleChevron && "text-text-primary-normal",
|
|
71
|
+
disabled && "text-icon-primary-disabled",
|
|
72
|
+
iconClassName
|
|
69
73
|
),
|
|
70
74
|
viewBox: "0 0 532 532",
|
|
71
75
|
children: /* @__PURE__ */ jsx(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NextButton,
|
|
3
3
|
PrevButton
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7IPESTQS.js";
|
|
5
5
|
import {
|
|
6
6
|
SelectedSnapDisplay
|
|
7
7
|
} from "./chunk-Z2HPSFEQ.js";
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
// src/components/EmblaCarousel/index.tsx
|
|
13
13
|
import { useCallback as useCallback3, useEffect as useEffect3, useRef } from "react";
|
|
14
14
|
import useEmblaCarousel from "embla-carousel-react";
|
|
15
|
+
import Autoplay from "embla-carousel-autoplay";
|
|
15
16
|
|
|
16
17
|
// src/components/EmblaCarousel/useSelectedSnapDisplay.ts
|
|
17
18
|
import { useCallback, useEffect, useState } from "react";
|
|
@@ -65,13 +66,27 @@ var usePrevNextButtons = (emblaApi) => {
|
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
// src/components/EmblaCarousel/index.tsx
|
|
68
|
-
import
|
|
69
|
+
import clsx from "clsx";
|
|
70
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
69
71
|
var TWEEN_FACTOR_BASE = 0.2;
|
|
70
|
-
var EmblaCarousel = ({
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
var EmblaCarousel = ({
|
|
73
|
+
options,
|
|
74
|
+
children,
|
|
75
|
+
testid,
|
|
76
|
+
leftRightChevrons = false,
|
|
77
|
+
autoplay = false,
|
|
78
|
+
chevronThemeColor = false
|
|
79
|
+
}) => {
|
|
80
|
+
const autoplayPlugin = Autoplay({ delay: 4e3 });
|
|
81
|
+
const [emblaRef, emblaApi] = useEmblaCarousel(
|
|
82
|
+
options,
|
|
83
|
+
autoplay ? [autoplayPlugin] : []
|
|
84
|
+
);
|
|
85
|
+
useEffect3(() => {
|
|
86
|
+
var _a, _b;
|
|
87
|
+
if (!emblaApi || !autoplay) return;
|
|
88
|
+
(_b = (_a = emblaApi.plugins()) == null ? void 0 : _a.autoplay) == null ? void 0 : _b.play();
|
|
89
|
+
}, [emblaApi, autoplay]);
|
|
75
90
|
const {
|
|
76
91
|
prevBtnDisabled,
|
|
77
92
|
nextBtnDisabled,
|
|
@@ -79,21 +94,24 @@ var EmblaCarousel = ({ options, children }) => {
|
|
|
79
94
|
onNextButtonClick
|
|
80
95
|
} = usePrevNextButtons(emblaApi);
|
|
81
96
|
const { selectedSnap, snapCount } = useSelectedSnapDisplay(emblaApi);
|
|
82
|
-
const
|
|
83
|
-
|
|
97
|
+
const tweenFactor = useRef(0);
|
|
98
|
+
const tweenNodes = useRef([]);
|
|
99
|
+
const isMobile = useMatchesMobile();
|
|
100
|
+
const setTweenNodes = useCallback3((api) => {
|
|
101
|
+
tweenNodes.current = api.slideNodes().map((slideNode) => {
|
|
84
102
|
return slideNode.querySelector(".embla__parallax__layer");
|
|
85
103
|
});
|
|
86
104
|
}, []);
|
|
87
|
-
const setTweenFactor = useCallback3((
|
|
88
|
-
tweenFactor.current = TWEEN_FACTOR_BASE *
|
|
105
|
+
const setTweenFactor = useCallback3((api) => {
|
|
106
|
+
tweenFactor.current = TWEEN_FACTOR_BASE * api.snapList().length;
|
|
89
107
|
}, []);
|
|
90
108
|
const tweenParallax = useCallback3(
|
|
91
|
-
(
|
|
92
|
-
const engine =
|
|
93
|
-
const scrollProgress =
|
|
94
|
-
const slidesInView =
|
|
109
|
+
(api, event) => {
|
|
110
|
+
const engine = api.internalEngine();
|
|
111
|
+
const scrollProgress = api.scrollProgress();
|
|
112
|
+
const slidesInView = api.slidesInView();
|
|
95
113
|
const isScrollEvent = (event == null ? void 0 : event.type) === "scroll";
|
|
96
|
-
|
|
114
|
+
api.snapList().forEach((scrollSnap, snapIndex) => {
|
|
97
115
|
let diffToTarget = scrollSnap - scrollProgress;
|
|
98
116
|
const slidesInSnap = engine.scrollSnapList.slidesBySnap[snapIndex];
|
|
99
117
|
slidesInSnap.forEach((slideIndex) => {
|
|
@@ -103,12 +121,10 @@ var EmblaCarousel = ({ options, children }) => {
|
|
|
103
121
|
const target = loopItem.target();
|
|
104
122
|
if (slideIndex === loopItem.index && target !== 0) {
|
|
105
123
|
const sign = Math.sign(target);
|
|
106
|
-
if (sign === -1)
|
|
124
|
+
if (sign === -1)
|
|
107
125
|
diffToTarget = scrollSnap - (1 + scrollProgress);
|
|
108
|
-
|
|
109
|
-
if (sign === 1) {
|
|
126
|
+
if (sign === 1)
|
|
110
127
|
diffToTarget = scrollSnap + (1 - scrollProgress);
|
|
111
|
-
}
|
|
112
128
|
}
|
|
113
129
|
});
|
|
114
130
|
}
|
|
@@ -128,13 +144,46 @@ var EmblaCarousel = ({ options, children }) => {
|
|
|
128
144
|
setTweenFactor(emblaApi);
|
|
129
145
|
tweenParallax(emblaApi);
|
|
130
146
|
emblaApi.on("reinit", setTweenNodes).on("reinit", setTweenFactor).on("reinit", tweenParallax).on("scroll", tweenParallax).on("slidefocus", tweenParallax);
|
|
131
|
-
}, [emblaApi,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
147
|
+
}, [emblaApi, isMobile, setTweenNodes, setTweenFactor, tweenParallax]);
|
|
148
|
+
const handlePrev = () => {
|
|
149
|
+
var _a, _b;
|
|
150
|
+
onPrevButtonClick();
|
|
151
|
+
(_b = (_a = emblaApi == null ? void 0 : emblaApi.plugins()) == null ? void 0 : _a.autoplay) == null ? void 0 : _b.reset();
|
|
152
|
+
};
|
|
153
|
+
const handleNext = () => {
|
|
154
|
+
var _a, _b;
|
|
155
|
+
onNextButtonClick();
|
|
156
|
+
(_b = (_a = emblaApi == null ? void 0 : emblaApi.plugins()) == null ? void 0 : _a.autoplay) == null ? void 0 : _b.reset();
|
|
157
|
+
};
|
|
158
|
+
return /* @__PURE__ */ jsxs("section", { className: "w-full m-auto grid gap-4 relative", "data-testid": testid, children: [
|
|
159
|
+
/* @__PURE__ */ jsx("div", { className: "embla__viewport overflow-hidden", ref: emblaRef, children: /* @__PURE__ */ jsx(
|
|
160
|
+
"div",
|
|
161
|
+
{
|
|
162
|
+
className: clsx(
|
|
163
|
+
"embla__container flex touch-pan-y touch-pinch-zoom",
|
|
164
|
+
!leftRightChevrons && "pb-3"
|
|
165
|
+
),
|
|
166
|
+
children
|
|
167
|
+
}
|
|
168
|
+
) }),
|
|
169
|
+
!leftRightChevrons ? /* @__PURE__ */ jsxs("div", { className: "justify-between hidden desktop:flex", children: [
|
|
135
170
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
136
|
-
/* @__PURE__ */ jsx(
|
|
137
|
-
|
|
171
|
+
/* @__PURE__ */ jsx(
|
|
172
|
+
PrevButton,
|
|
173
|
+
{
|
|
174
|
+
circleChevron: true,
|
|
175
|
+
onClick: handlePrev,
|
|
176
|
+
disabled: prevBtnDisabled
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
/* @__PURE__ */ jsx(
|
|
180
|
+
NextButton,
|
|
181
|
+
{
|
|
182
|
+
circleChevron: true,
|
|
183
|
+
onClick: handleNext,
|
|
184
|
+
disabled: nextBtnDisabled
|
|
185
|
+
}
|
|
186
|
+
)
|
|
138
187
|
] }),
|
|
139
188
|
/* @__PURE__ */ jsx(
|
|
140
189
|
SelectedSnapDisplay,
|
|
@@ -143,6 +192,33 @@ var EmblaCarousel = ({ options, children }) => {
|
|
|
143
192
|
snapCount
|
|
144
193
|
}
|
|
145
194
|
)
|
|
195
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
196
|
+
/* @__PURE__ */ jsx(
|
|
197
|
+
PrevButton,
|
|
198
|
+
{
|
|
199
|
+
className: "absolute top-1/2 -translate-y-1/2 left-0 border-transparent! size-10! desktop:size-12!",
|
|
200
|
+
iconClassName: clsx(
|
|
201
|
+
"size-6! desktop:size-8!",
|
|
202
|
+
chevronThemeColor && "text-text-link-normal group-hover:text-text-link-hover group-active:text-text-link-active",
|
|
203
|
+
!chevronThemeColor && "text-white group-hover:text-text-link-normal group-active:text-text-link-active"
|
|
204
|
+
),
|
|
205
|
+
onClick: handlePrev,
|
|
206
|
+
disabled: prevBtnDisabled
|
|
207
|
+
}
|
|
208
|
+
),
|
|
209
|
+
/* @__PURE__ */ jsx(
|
|
210
|
+
NextButton,
|
|
211
|
+
{
|
|
212
|
+
className: "absolute top-1/2 -translate-y-1/2 right-0 border-transparent! size-10! desktop:size-12!",
|
|
213
|
+
iconClassName: clsx(
|
|
214
|
+
"size-6! desktop:size-8!",
|
|
215
|
+
chevronThemeColor && "text-text-link-normal group-hover:text-text-link-hover group-active:text-text-link-active",
|
|
216
|
+
!chevronThemeColor && "text-white group-hover:text-text-link-normal group-active:text-text-link-active"
|
|
217
|
+
),
|
|
218
|
+
onClick: handleNext,
|
|
219
|
+
disabled: nextBtnDisabled
|
|
220
|
+
}
|
|
221
|
+
)
|
|
146
222
|
] })
|
|
147
223
|
] });
|
|
148
224
|
};
|
|
@@ -64,7 +64,7 @@ __export(CalendarRange_exports, {
|
|
|
64
64
|
isWeekend: () => isWeekend
|
|
65
65
|
});
|
|
66
66
|
module.exports = __toCommonJS(CalendarRange_exports);
|
|
67
|
-
var
|
|
67
|
+
var import_clsx45 = __toESM(require("clsx"), 1);
|
|
68
68
|
|
|
69
69
|
// src/classNames.ts
|
|
70
70
|
var import_clsx = __toESM(require("clsx"), 1);
|
|
@@ -5716,6 +5716,7 @@ var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
|
5716
5716
|
// src/components/EmblaCarousel/index.tsx
|
|
5717
5717
|
var import_react42 = require("react");
|
|
5718
5718
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
5719
|
+
var import_embla_carousel_autoplay = __toESM(require("embla-carousel-autoplay"), 1);
|
|
5719
5720
|
|
|
5720
5721
|
// src/components/EmblaCarousel/SelectedSnapDisplay.tsx
|
|
5721
5722
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
@@ -5727,13 +5728,14 @@ var import_react40 = require("react");
|
|
|
5727
5728
|
var import_clsx43 = __toESM(require("clsx"), 1);
|
|
5728
5729
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5729
5730
|
var arrowButtonStyles = (0, import_clsx43.default)(
|
|
5730
|
-
"appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out"
|
|
5731
|
+
"appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out group"
|
|
5731
5732
|
);
|
|
5732
5733
|
|
|
5733
5734
|
// src/components/EmblaCarousel/usePrevNextButtons.ts
|
|
5734
5735
|
var import_react41 = require("react");
|
|
5735
5736
|
|
|
5736
5737
|
// src/components/EmblaCarousel/index.tsx
|
|
5738
|
+
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
5737
5739
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
5738
5740
|
|
|
5739
5741
|
// src/components/CalendarRange.tsx
|
|
@@ -5780,7 +5782,7 @@ function DateCell(_a) {
|
|
|
5780
5782
|
__spreadProps(__spreadValues({}, props), {
|
|
5781
5783
|
id,
|
|
5782
5784
|
"data-testid": testid,
|
|
5783
|
-
className: (0,
|
|
5785
|
+
className: (0, import_clsx45.default)(
|
|
5784
5786
|
"flex items-center justify-center aspect-square select-none transition-colors border duration-100 font-medium",
|
|
5785
5787
|
typography.caption,
|
|
5786
5788
|
cellPadding,
|
|
@@ -5936,7 +5938,7 @@ function CalendarRange({
|
|
|
5936
5938
|
{
|
|
5937
5939
|
id,
|
|
5938
5940
|
"data-testid": testid,
|
|
5939
|
-
className: (0,
|
|
5941
|
+
className: (0, import_clsx45.default)(
|
|
5940
5942
|
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
5941
5943
|
layoutPaddding,
|
|
5942
5944
|
layoutGap,
|
|
@@ -5947,7 +5949,7 @@ function CalendarRange({
|
|
|
5947
5949
|
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5948
5950
|
"div",
|
|
5949
5951
|
{
|
|
5950
|
-
className: (0,
|
|
5952
|
+
className: (0, import_clsx45.default)(
|
|
5951
5953
|
"flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
|
|
5952
5954
|
layoutGap
|
|
5953
5955
|
),
|
|
@@ -6021,12 +6023,12 @@ function CalendarPane({
|
|
|
6021
6023
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
6022
6024
|
"div",
|
|
6023
6025
|
{
|
|
6024
|
-
className: (0,
|
|
6026
|
+
className: (0, import_clsx45.default)("flex flex-col"),
|
|
6025
6027
|
children: [
|
|
6026
6028
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
6027
6029
|
"div",
|
|
6028
6030
|
{
|
|
6029
|
-
className: (0,
|
|
6031
|
+
className: (0, import_clsx45.default)(
|
|
6030
6032
|
"flex flex-row items-center justify-between",
|
|
6031
6033
|
typography.label,
|
|
6032
6034
|
"text-text-action-primary-normal"
|
|
@@ -6038,7 +6040,7 @@ function CalendarPane({
|
|
|
6038
6040
|
id: id ? `${id}-prev-month-button` : void 0,
|
|
6039
6041
|
"data-testid": testid ? `${testid}-prev-month-button` : void 0,
|
|
6040
6042
|
type: "button",
|
|
6041
|
-
className: (0,
|
|
6043
|
+
className: (0, import_clsx45.default)(
|
|
6042
6044
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
6043
6045
|
componentPadding
|
|
6044
6046
|
),
|
|
@@ -6046,7 +6048,7 @@ function CalendarPane({
|
|
|
6046
6048
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
6047
6049
|
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { name: "chevron_left", size: 24 })
|
|
6048
6050
|
}
|
|
6049
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0,
|
|
6051
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0, import_clsx45.default)(componentPadding, "mr-1") }),
|
|
6050
6052
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex gap-desktop-compact-component-padding", children: [
|
|
6051
6053
|
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6052
6054
|
"button",
|
|
@@ -6125,7 +6127,7 @@ function CalendarPane({
|
|
|
6125
6127
|
id: id ? `${id}-next-month-button` : void 0,
|
|
6126
6128
|
"data-testid": testid ? `${testid}-next-month-button` : void 0,
|
|
6127
6129
|
type: "button",
|
|
6128
|
-
className: (0,
|
|
6130
|
+
className: (0, import_clsx45.default)(
|
|
6129
6131
|
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
6130
6132
|
componentPadding
|
|
6131
6133
|
),
|
|
@@ -6133,14 +6135,14 @@ function CalendarPane({
|
|
|
6133
6135
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
6134
6136
|
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { name: "chevron_right", size: 24 })
|
|
6135
6137
|
}
|
|
6136
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0,
|
|
6138
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: (0, import_clsx45.default)(componentPadding, "ml-1") })
|
|
6137
6139
|
]
|
|
6138
6140
|
}
|
|
6139
6141
|
),
|
|
6140
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0,
|
|
6142
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0, import_clsx45.default)("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6141
6143
|
"span",
|
|
6142
6144
|
{
|
|
6143
|
-
className: (0,
|
|
6145
|
+
className: (0, import_clsx45.default)(
|
|
6144
6146
|
typography.caption,
|
|
6145
6147
|
"text-text-secondary-normal text-center",
|
|
6146
6148
|
"w-10"
|
|
@@ -6149,7 +6151,7 @@ function CalendarPane({
|
|
|
6149
6151
|
},
|
|
6150
6152
|
d
|
|
6151
6153
|
)) }),
|
|
6152
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0,
|
|
6154
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: (0, import_clsx45.default)("grid grid-cols-7"), children: Array.from({ length: totalCells }).map((_, i) => {
|
|
6153
6155
|
const day = i - emptyCells + 1;
|
|
6154
6156
|
const date = month.date.with({ day: 1 }).add({
|
|
6155
6157
|
days: i - emptyCells
|
|
@@ -6191,7 +6193,7 @@ function CalendarPane({
|
|
|
6191
6193
|
mode === "double" && idx === 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6192
6194
|
"div",
|
|
6193
6195
|
{
|
|
6194
|
-
className: (0,
|
|
6196
|
+
className: (0, import_clsx45.default)(
|
|
6195
6197
|
"self-stretch bg-border-primary-normal rounded-base",
|
|
6196
6198
|
// 1px width, full height, matches Figma divider
|
|
6197
6199
|
"w-px"
|
|
@@ -563,6 +563,9 @@
|
|
|
563
563
|
.top-0 {
|
|
564
564
|
top: calc(var(--spacing) * 0);
|
|
565
565
|
}
|
|
566
|
+
.top-1\/2 {
|
|
567
|
+
top: calc(1/2 * 100%);
|
|
568
|
+
}
|
|
566
569
|
.top-2 {
|
|
567
570
|
top: calc(var(--spacing) * 2);
|
|
568
571
|
}
|
|
@@ -756,10 +759,18 @@
|
|
|
756
759
|
width: calc(var(--spacing) * 6);
|
|
757
760
|
height: calc(var(--spacing) * 6);
|
|
758
761
|
}
|
|
762
|
+
.size-6\! {
|
|
763
|
+
width: calc(var(--spacing) * 6) !important;
|
|
764
|
+
height: calc(var(--spacing) * 6) !important;
|
|
765
|
+
}
|
|
759
766
|
.size-9 {
|
|
760
767
|
width: calc(var(--spacing) * 9);
|
|
761
768
|
height: calc(var(--spacing) * 9);
|
|
762
769
|
}
|
|
770
|
+
.size-10\! {
|
|
771
|
+
width: calc(var(--spacing) * 10) !important;
|
|
772
|
+
height: calc(var(--spacing) * 10) !important;
|
|
773
|
+
}
|
|
763
774
|
.\!h-4\.5 {
|
|
764
775
|
height: calc(var(--spacing) * 4.5) !important;
|
|
765
776
|
}
|
|
@@ -1004,6 +1015,10 @@
|
|
|
1004
1015
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
1005
1016
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1006
1017
|
}
|
|
1018
|
+
.-translate-y-1\/2 {
|
|
1019
|
+
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
1020
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1021
|
+
}
|
|
1007
1022
|
.translate-y-2\/4 {
|
|
1008
1023
|
--tw-translate-y: calc(2/4 * 100%);
|
|
1009
1024
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -1463,6 +1478,9 @@
|
|
|
1463
1478
|
.border-transparent {
|
|
1464
1479
|
border-color: transparent;
|
|
1465
1480
|
}
|
|
1481
|
+
.border-transparent\! {
|
|
1482
|
+
border-color: transparent !important;
|
|
1483
|
+
}
|
|
1466
1484
|
.border-warning-400 {
|
|
1467
1485
|
border-color: var(--color-warning-400);
|
|
1468
1486
|
}
|
|
@@ -2782,6 +2800,25 @@
|
|
|
2782
2800
|
}
|
|
2783
2801
|
}
|
|
2784
2802
|
}
|
|
2803
|
+
.group-hover\:text-text-link-hover {
|
|
2804
|
+
&:is(:where(.group):hover *) {
|
|
2805
|
+
@media (hover: hover) {
|
|
2806
|
+
color: var(--color-text-link-hover);
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
.group-hover\:text-text-link-normal {
|
|
2811
|
+
&:is(:where(.group):hover *) {
|
|
2812
|
+
@media (hover: hover) {
|
|
2813
|
+
color: var(--color-text-link-normal);
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
.group-active\:text-text-link-active {
|
|
2818
|
+
&:is(:where(.group):active *) {
|
|
2819
|
+
color: var(--color-text-link-active);
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2785
2822
|
.group-data-\[checked\]\:translate-x-3 {
|
|
2786
2823
|
&:is(:where(.group)[data-checked] *) {
|
|
2787
2824
|
--tw-translate-x: calc(var(--spacing) * 3);
|
|
@@ -4265,6 +4302,18 @@
|
|
|
4265
4302
|
display: none;
|
|
4266
4303
|
}
|
|
4267
4304
|
}
|
|
4305
|
+
.desktop\:size-8\! {
|
|
4306
|
+
@container root (width >= 48rem) {
|
|
4307
|
+
width: calc(var(--spacing) * 8) !important;
|
|
4308
|
+
height: calc(var(--spacing) * 8) !important;
|
|
4309
|
+
}
|
|
4310
|
+
}
|
|
4311
|
+
.desktop\:size-12\! {
|
|
4312
|
+
@container root (width >= 48rem) {
|
|
4313
|
+
width: calc(var(--spacing) * 12) !important;
|
|
4314
|
+
height: calc(var(--spacing) * 12) !important;
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4268
4317
|
.desktop\:h-\[190px\] {
|
|
4269
4318
|
@container root (width >= 48rem) {
|
|
4270
4319
|
height: 190px;
|
|
@@ -13,13 +13,13 @@ import "../chunk-YCDDBSVU.js";
|
|
|
13
13
|
import "../chunk-3X3Y4TMS.js";
|
|
14
14
|
import "../chunk-BQNPOGD5.js";
|
|
15
15
|
import "../chunk-Y5GD2FJA.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-ZACRFGND.js";
|
|
17
17
|
import "../chunk-EJVCDJ7U.js";
|
|
18
18
|
import "../chunk-27DJTEAB.js";
|
|
19
19
|
import "../chunk-5IFPG6TS.js";
|
|
20
20
|
import "../chunk-XWYDWH4W.js";
|
|
21
21
|
import "../chunk-AJ5M6MVX.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-7IPESTQS.js";
|
|
23
23
|
import "../chunk-Z2HPSFEQ.js";
|
|
24
24
|
import "../chunk-AT4AWD6B.js";
|
|
25
25
|
import "../chunk-EWGHVZL5.js";
|
|
@@ -6147,6 +6147,7 @@ var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
|
6147
6147
|
// src/components/EmblaCarousel/index.tsx
|
|
6148
6148
|
var import_react42 = require("react");
|
|
6149
6149
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
6150
|
+
var import_embla_carousel_autoplay = __toESM(require("embla-carousel-autoplay"), 1);
|
|
6150
6151
|
|
|
6151
6152
|
// src/components/EmblaCarousel/SelectedSnapDisplay.tsx
|
|
6152
6153
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
@@ -6158,13 +6159,14 @@ var import_react40 = require("react");
|
|
|
6158
6159
|
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
6159
6160
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6160
6161
|
var arrowButtonStyles = (0, import_clsx44.default)(
|
|
6161
|
-
"appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out"
|
|
6162
|
+
"appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out group"
|
|
6162
6163
|
);
|
|
6163
6164
|
|
|
6164
6165
|
// src/components/EmblaCarousel/usePrevNextButtons.ts
|
|
6165
6166
|
var import_react41 = require("react");
|
|
6166
6167
|
|
|
6167
6168
|
// src/components/EmblaCarousel/index.tsx
|
|
6169
|
+
var import_clsx45 = __toESM(require("clsx"), 1);
|
|
6168
6170
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
6169
6171
|
|
|
6170
6172
|
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|
|
@@ -563,6 +563,9 @@
|
|
|
563
563
|
.top-0 {
|
|
564
564
|
top: calc(var(--spacing) * 0);
|
|
565
565
|
}
|
|
566
|
+
.top-1\/2 {
|
|
567
|
+
top: calc(1/2 * 100%);
|
|
568
|
+
}
|
|
566
569
|
.top-2 {
|
|
567
570
|
top: calc(var(--spacing) * 2);
|
|
568
571
|
}
|
|
@@ -756,10 +759,18 @@
|
|
|
756
759
|
width: calc(var(--spacing) * 6);
|
|
757
760
|
height: calc(var(--spacing) * 6);
|
|
758
761
|
}
|
|
762
|
+
.size-6\! {
|
|
763
|
+
width: calc(var(--spacing) * 6) !important;
|
|
764
|
+
height: calc(var(--spacing) * 6) !important;
|
|
765
|
+
}
|
|
759
766
|
.size-9 {
|
|
760
767
|
width: calc(var(--spacing) * 9);
|
|
761
768
|
height: calc(var(--spacing) * 9);
|
|
762
769
|
}
|
|
770
|
+
.size-10\! {
|
|
771
|
+
width: calc(var(--spacing) * 10) !important;
|
|
772
|
+
height: calc(var(--spacing) * 10) !important;
|
|
773
|
+
}
|
|
763
774
|
.\!h-4\.5 {
|
|
764
775
|
height: calc(var(--spacing) * 4.5) !important;
|
|
765
776
|
}
|
|
@@ -1004,6 +1015,10 @@
|
|
|
1004
1015
|
--tw-translate-x: calc(var(--spacing) * 0);
|
|
1005
1016
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1006
1017
|
}
|
|
1018
|
+
.-translate-y-1\/2 {
|
|
1019
|
+
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
1020
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1021
|
+
}
|
|
1007
1022
|
.translate-y-2\/4 {
|
|
1008
1023
|
--tw-translate-y: calc(2/4 * 100%);
|
|
1009
1024
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -1463,6 +1478,9 @@
|
|
|
1463
1478
|
.border-transparent {
|
|
1464
1479
|
border-color: transparent;
|
|
1465
1480
|
}
|
|
1481
|
+
.border-transparent\! {
|
|
1482
|
+
border-color: transparent !important;
|
|
1483
|
+
}
|
|
1466
1484
|
.border-warning-400 {
|
|
1467
1485
|
border-color: var(--color-warning-400);
|
|
1468
1486
|
}
|
|
@@ -2782,6 +2800,25 @@
|
|
|
2782
2800
|
}
|
|
2783
2801
|
}
|
|
2784
2802
|
}
|
|
2803
|
+
.group-hover\:text-text-link-hover {
|
|
2804
|
+
&:is(:where(.group):hover *) {
|
|
2805
|
+
@media (hover: hover) {
|
|
2806
|
+
color: var(--color-text-link-hover);
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
.group-hover\:text-text-link-normal {
|
|
2811
|
+
&:is(:where(.group):hover *) {
|
|
2812
|
+
@media (hover: hover) {
|
|
2813
|
+
color: var(--color-text-link-normal);
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
.group-active\:text-text-link-active {
|
|
2818
|
+
&:is(:where(.group):active *) {
|
|
2819
|
+
color: var(--color-text-link-active);
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2785
2822
|
.group-data-\[checked\]\:translate-x-3 {
|
|
2786
2823
|
&:is(:where(.group)[data-checked] *) {
|
|
2787
2824
|
--tw-translate-x: calc(var(--spacing) * 3);
|
|
@@ -4265,6 +4302,18 @@
|
|
|
4265
4302
|
display: none;
|
|
4266
4303
|
}
|
|
4267
4304
|
}
|
|
4305
|
+
.desktop\:size-8\! {
|
|
4306
|
+
@container root (width >= 48rem) {
|
|
4307
|
+
width: calc(var(--spacing) * 8) !important;
|
|
4308
|
+
height: calc(var(--spacing) * 8) !important;
|
|
4309
|
+
}
|
|
4310
|
+
}
|
|
4311
|
+
.desktop\:size-12\! {
|
|
4312
|
+
@container root (width >= 48rem) {
|
|
4313
|
+
width: calc(var(--spacing) * 12) !important;
|
|
4314
|
+
height: calc(var(--spacing) * 12) !important;
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4268
4317
|
.desktop\:h-\[190px\] {
|
|
4269
4318
|
@container root (width >= 48rem) {
|
|
4270
4319
|
height: 190px;
|
|
@@ -11,13 +11,13 @@ import "../../../chunk-YCDDBSVU.js";
|
|
|
11
11
|
import "../../../chunk-3X3Y4TMS.js";
|
|
12
12
|
import "../../../chunk-BQNPOGD5.js";
|
|
13
13
|
import "../../../chunk-Y5GD2FJA.js";
|
|
14
|
-
import "../../../chunk-
|
|
14
|
+
import "../../../chunk-ZACRFGND.js";
|
|
15
15
|
import "../../../chunk-EJVCDJ7U.js";
|
|
16
16
|
import "../../../chunk-27DJTEAB.js";
|
|
17
17
|
import "../../../chunk-5IFPG6TS.js";
|
|
18
18
|
import "../../../chunk-XWYDWH4W.js";
|
|
19
19
|
import "../../../chunk-AJ5M6MVX.js";
|
|
20
|
-
import "../../../chunk-
|
|
20
|
+
import "../../../chunk-7IPESTQS.js";
|
|
21
21
|
import "../../../chunk-Z2HPSFEQ.js";
|
|
22
22
|
import "../../../chunk-AT4AWD6B.js";
|
|
23
23
|
import "../../../chunk-EWGHVZL5.js";
|
|
@@ -6069,6 +6069,7 @@ var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
|
6069
6069
|
// src/components/EmblaCarousel/index.tsx
|
|
6070
6070
|
var import_react41 = require("react");
|
|
6071
6071
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
|
|
6072
|
+
var import_embla_carousel_autoplay = __toESM(require("embla-carousel-autoplay"), 1);
|
|
6072
6073
|
|
|
6073
6074
|
// src/components/EmblaCarousel/SelectedSnapDisplay.tsx
|
|
6074
6075
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
@@ -6080,13 +6081,14 @@ var import_react39 = require("react");
|
|
|
6080
6081
|
var import_clsx44 = __toESM(require("clsx"), 1);
|
|
6081
6082
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6082
6083
|
var arrowButtonStyles = (0, import_clsx44.default)(
|
|
6083
|
-
"appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out"
|
|
6084
|
+
"appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out group"
|
|
6084
6085
|
);
|
|
6085
6086
|
|
|
6086
6087
|
// src/components/EmblaCarousel/usePrevNextButtons.ts
|
|
6087
6088
|
var import_react40 = require("react");
|
|
6088
6089
|
|
|
6089
6090
|
// src/components/EmblaCarousel/index.tsx
|
|
6091
|
+
var import_clsx45 = __toESM(require("clsx"), 1);
|
|
6090
6092
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6091
6093
|
|
|
6092
6094
|
// src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
|