@dmsi/wedgekit-react 0.0.14 → 0.0.16
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-SY3HT54E.js → chunk-3WTXVSHO.js} +1 -1
- package/dist/{chunk-UU3FA6LV.js → chunk-5TLFMKSR.js} +1 -1
- package/dist/{chunk-6ZY524ID.js → chunk-DBYSGYST.js} +7 -2
- package/dist/{chunk-TAW5ZZ4Z.js → chunk-GCPJH5R6.js} +5 -4
- package/dist/{chunk-TRUPPHBQ.js → chunk-KDEPZ6I7.js} +1 -1
- package/dist/{chunk-DKKYR6DS.js → chunk-N32PXOA5.js} +2 -2
- package/dist/{chunk-BWRHL2AG.js → chunk-OISE6NMA.js} +2 -2
- package/dist/{chunk-FY7PTP6E.js → chunk-OUTEIXV4.js} +16 -26
- package/dist/{chunk-KX3O6GJ6.js → chunk-RDLEIAQU.js} +11 -0
- package/dist/{chunk-4C66DLIJ.js → chunk-S7R37IUP.js} +1 -1
- package/dist/{chunk-KENSVWOY.js → chunk-T6HZARR7.js} +1 -1
- package/dist/{chunk-TYI74BSP.js → chunk-TJ44JJCB.js} +1 -1
- package/dist/{chunk-GTCSRHPF.js → chunk-TWP6YSFO.js} +1 -1
- package/dist/{chunk-K3IKUSZW.js → chunk-UIQ733QP.js} +1 -1
- package/dist/{chunk-XUIPGYP5.js → chunk-UK3WG7HQ.js} +13 -4
- package/dist/{chunk-BNHSAFMP.js → chunk-VELXLFMJ.js} +1 -1
- package/dist/{chunk-Q3FKEKIN.js → chunk-WIDBAFBU.js} +6 -1
- package/dist/{chunk-E5ALT5W7.js → chunk-YDREJNAS.js} +3 -3
- package/dist/{chunk-2G2E2JMA.js → chunk-YZQNTOIF.js} +4 -2
- package/dist/{chunk-TWZZB4WO.js → chunk-Z2LOGSGE.js} +3 -3
- package/dist/{chunk-5GOBP2JS.js → chunk-ZCBSLV7U.js} +1 -1
- package/dist/{chunk-27KIIUAR.js → chunk-ZFGGZXB6.js} +1 -1
- package/dist/components/Breadcrumbs.cjs +15 -3
- package/dist/components/Breadcrumbs.js +8 -5
- package/dist/components/Button.cjs +9 -0
- package/dist/components/Button.js +2 -2
- package/dist/components/CalendarRange.cjs +22 -21
- package/dist/components/CalendarRange.js +2 -2
- package/dist/components/Caption.cjs +9 -0
- package/dist/components/Caption.js +1 -1
- package/dist/components/Checkbox.cjs +9 -0
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/ContentTab.cjs +9 -0
- package/dist/components/ContentTab.js +3 -3
- package/dist/components/ContentTabs.cjs +9 -0
- package/dist/components/ContentTabs.js +3 -3
- package/dist/components/DataGrid.cjs +12 -2
- package/dist/components/DataGrid.js +12 -12
- package/dist/components/DataGridCell.cjs +10 -1
- package/dist/components/DataGridCell.js +7 -7
- package/dist/components/DateInput.cjs +22 -21
- package/dist/components/DateInput.js +4 -4
- package/dist/components/DateRangeInput.cjs +22 -21
- package/dist/components/DateRangeInput.js +4 -4
- package/dist/components/Display.cjs +9 -0
- package/dist/components/Display.js +2 -2
- package/dist/components/FilterGroup.cjs +9 -0
- package/dist/components/FilterGroup.js +9 -9
- package/dist/components/Heading.cjs +9 -0
- package/dist/components/Heading.js +2 -2
- package/dist/components/Input.cjs +9 -0
- package/dist/components/Input.js +3 -3
- package/dist/components/InputGroup.cjs +9 -0
- package/dist/components/InputGroup.js +2 -2
- package/dist/components/Label.cjs +9 -0
- package/dist/components/Label.js +2 -2
- package/dist/components/Link.cjs +9 -0
- package/dist/components/Link.js +2 -2
- package/dist/components/MainBar.cjs +10 -1
- package/dist/components/MainBar.js +3 -2
- package/dist/components/MenuOption.cjs +9 -0
- package/dist/components/MenuOption.js +4 -4
- package/dist/components/MobileDataGrid.cjs +9 -0
- package/dist/components/MobileDataGrid.js +4 -4
- package/dist/components/Modal.cjs +26 -10
- package/dist/components/Modal.js +6 -6
- package/dist/components/ModalButtons.cjs +11 -1
- package/dist/components/ModalButtons.js +3 -3
- package/dist/components/ModalContent.cjs +131 -2
- package/dist/components/ModalContent.js +2 -1
- package/dist/components/ModalHeader.cjs +16 -2
- package/dist/components/ModalHeader.js +4 -4
- package/dist/components/NavigationTab.cjs +9 -0
- package/dist/components/NavigationTab.js +3 -3
- package/dist/components/NavigationTabs.cjs +9 -0
- package/dist/components/NavigationTabs.js +3 -3
- package/dist/components/Notification.cjs +9 -0
- package/dist/components/Notification.js +4 -4
- package/dist/components/OptionPill.cjs +9 -0
- package/dist/components/OptionPill.js +4 -4
- package/dist/components/Paragraph.cjs +9 -0
- package/dist/components/Paragraph.js +2 -2
- package/dist/components/Password.cjs +9 -0
- package/dist/components/Password.js +3 -3
- package/dist/components/ProjectBar.cjs +9 -0
- package/dist/components/ProjectBar.js +1 -1
- package/dist/components/Radio.cjs +12 -2
- package/dist/components/Radio.js +7 -5
- package/dist/components/Search.cjs +9 -0
- package/dist/components/Search.js +4 -4
- package/dist/components/Select.cjs +9 -0
- package/dist/components/Select.js +4 -4
- package/dist/components/SideMenuGroup.cjs +9 -0
- package/dist/components/SideMenuGroup.js +2 -2
- package/dist/components/SideMenuItem.cjs +9 -0
- package/dist/components/SideMenuItem.js +2 -2
- package/dist/components/StatusPill.cjs +13 -2
- package/dist/components/StatusPill.js +9 -4
- package/dist/components/Stepper.cjs +13 -1
- package/dist/components/Stepper.js +10 -5
- package/dist/components/Subheader.cjs +9 -0
- package/dist/components/Subheader.js +2 -2
- package/dist/components/Swatch.cjs +9 -0
- package/dist/components/Swatch.js +4 -4
- package/dist/components/Textarea.cjs +13 -8
- package/dist/components/Textarea.js +7 -9
- package/dist/components/Time.cjs +9 -0
- package/dist/components/Time.js +3 -3
- package/dist/components/Toast.cjs +14 -3
- package/dist/components/Toast.js +13 -7
- package/dist/components/Tooltip.cjs +11 -1
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/TopBar.cjs +9 -0
- package/dist/components/TopBar.js +1 -1
- package/dist/index.css +23 -69
- package/package.json +1 -1
- package/src/classNames.ts +12 -0
- package/src/components/Breadcrumbs.tsx +6 -3
- package/src/components/CalendarRange.tsx +11 -21
- package/src/components/DataGridCell.tsx +2 -2
- package/src/components/MainBar.tsx +2 -1
- package/src/components/ModalButtons.tsx +3 -1
- package/src/components/ModalContent.tsx +3 -1
- package/src/components/ModalHeader.tsx +9 -2
- package/src/components/Radio.tsx +4 -3
- package/src/components/StatusPill.tsx +4 -1
- package/src/components/Stepper.tsx +5 -1
- package/src/components/Textarea.tsx +4 -9
- package/src/components/Toast.tsx +7 -3
- package/src/components/Tooltip.tsx +3 -2
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T6HZARR7.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
6
|
} from "./chunk-IGQVA7SC.js";
|
|
7
|
+
import {
|
|
8
|
+
layoutGroupGap,
|
|
9
|
+
layoutPaddding
|
|
10
|
+
} from "./chunk-RDLEIAQU.js";
|
|
7
11
|
|
|
8
12
|
// src/components/ModalButtons.tsx
|
|
13
|
+
import clsx from "clsx";
|
|
9
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
15
|
var ModalButtons = ({
|
|
11
16
|
onClose,
|
|
12
17
|
onContinue,
|
|
13
18
|
customActions
|
|
14
19
|
}) => {
|
|
15
|
-
return /* @__PURE__ */ jsx("div", { className: "border-t border-neutral-300
|
|
20
|
+
return /* @__PURE__ */ jsx("div", { className: clsx("border-t border-neutral-300 flex justify-end", layoutPaddding, layoutGroupGap), children: customActions != null ? customActions : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16
21
|
/* @__PURE__ */ jsx(
|
|
17
22
|
Button,
|
|
18
23
|
{
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-Z4UCFUF7.js";
|
|
7
7
|
import {
|
|
8
8
|
MenuOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YDREJNAS.js";
|
|
10
10
|
import {
|
|
11
11
|
Search
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TWP6YSFO.js";
|
|
13
13
|
import {
|
|
14
14
|
CSS
|
|
15
15
|
} from "./chunk-WVUIIBRR.js";
|
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
Icon
|
|
18
18
|
} from "./chunk-IGQVA7SC.js";
|
|
19
19
|
import {
|
|
20
|
+
componentPadding,
|
|
20
21
|
paddingUsingComponentGap
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RDLEIAQU.js";
|
|
22
23
|
import {
|
|
23
24
|
__objRest,
|
|
24
25
|
__spreadProps,
|
|
@@ -125,7 +126,7 @@ var DataGridCell = memo(
|
|
|
125
126
|
component === "input" && !error && !warning && "border-border-primary-normal",
|
|
126
127
|
component === "input" && error && "border-border-primary-error",
|
|
127
128
|
component === "input" && warning && "border-background-warning-normal",
|
|
128
|
-
!["button", "icon"].includes(component) && !noPadding &&
|
|
129
|
+
!["button", "icon"].includes(component) && !noPadding && componentPadding,
|
|
129
130
|
paddedLeft && "pl-2",
|
|
130
131
|
component === "icon" && "border-l",
|
|
131
132
|
isGrabbing && "!cursor-grabbing",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Paragraph
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UIQ733QP.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
6
|
} from "./chunk-IGQVA7SC.js";
|
|
7
7
|
import {
|
|
8
8
|
baseTransition,
|
|
9
9
|
componentGap
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RDLEIAQU.js";
|
|
11
11
|
import {
|
|
12
12
|
__objRest,
|
|
13
13
|
__spreadValues
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Label
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S7R37IUP.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
6
|
} from "./chunk-IGQVA7SC.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
componentPaddingMinusBorder,
|
|
11
11
|
componentPaddingXUsingComponentGap,
|
|
12
12
|
typography
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RDLEIAQU.js";
|
|
14
14
|
import {
|
|
15
15
|
__objRest,
|
|
16
16
|
__spreadProps,
|
|
@@ -2,13 +2,11 @@ import {
|
|
|
2
2
|
Icon
|
|
3
3
|
} from "./chunk-IGQVA7SC.js";
|
|
4
4
|
import {
|
|
5
|
-
componentGap,
|
|
6
5
|
componentPadding,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
paddingUsingComponentGap,
|
|
6
|
+
layoutGap,
|
|
7
|
+
layoutPaddding,
|
|
10
8
|
typography
|
|
11
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RDLEIAQU.js";
|
|
12
10
|
import {
|
|
13
11
|
__objRest,
|
|
14
12
|
__spreadProps,
|
|
@@ -172,8 +170,8 @@ function CalendarRange({
|
|
|
172
170
|
{
|
|
173
171
|
className: clsx(
|
|
174
172
|
"relative bg-background-grouped-primary-normal rounded-base w-fit",
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
layoutPaddding,
|
|
174
|
+
layoutGap,
|
|
177
175
|
cardStyle && "shadow-4",
|
|
178
176
|
// baseTransition,
|
|
179
177
|
"overflow-hidden"
|
|
@@ -183,8 +181,7 @@ function CalendarRange({
|
|
|
183
181
|
{
|
|
184
182
|
className: clsx(
|
|
185
183
|
"flex flex-row items-start justify-start bg-background-primary-normal overflow-clip",
|
|
186
|
-
|
|
187
|
-
paddingUsingComponentGap
|
|
184
|
+
layoutGap
|
|
188
185
|
),
|
|
189
186
|
children: (mode === "double" ? [0, 1] : [0]).map((offset, idx) => {
|
|
190
187
|
const month = getMonthData(offset);
|
|
@@ -195,9 +192,7 @@ function CalendarRange({
|
|
|
195
192
|
"div",
|
|
196
193
|
{
|
|
197
194
|
className: clsx(
|
|
198
|
-
"flex flex-col"
|
|
199
|
-
componentGap,
|
|
200
|
-
componentPadding
|
|
195
|
+
"flex flex-col"
|
|
201
196
|
),
|
|
202
197
|
children: [
|
|
203
198
|
/* @__PURE__ */ jsxs(
|
|
@@ -205,10 +200,6 @@ function CalendarRange({
|
|
|
205
200
|
{
|
|
206
201
|
className: clsx(
|
|
207
202
|
"flex flex-row items-center justify-between",
|
|
208
|
-
componentGap,
|
|
209
|
-
componentPaddingXUsingComponentGap,
|
|
210
|
-
componentPaddingYUsingComponentGap,
|
|
211
|
-
"mb-3",
|
|
212
203
|
typography.label,
|
|
213
204
|
"text-text-action-primary-normal"
|
|
214
205
|
),
|
|
@@ -218,9 +209,8 @@ function CalendarRange({
|
|
|
218
209
|
{
|
|
219
210
|
type: "button",
|
|
220
211
|
className: clsx(
|
|
221
|
-
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-primary-normal",
|
|
222
|
-
componentPadding
|
|
223
|
-
"mr-1"
|
|
212
|
+
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
213
|
+
componentPadding
|
|
224
214
|
),
|
|
225
215
|
"aria-label": "Previous month",
|
|
226
216
|
onClick: () => setBaseMonth(baseMonth.subtract({ months: 1 })),
|
|
@@ -236,9 +226,8 @@ function CalendarRange({
|
|
|
236
226
|
{
|
|
237
227
|
type: "button",
|
|
238
228
|
className: clsx(
|
|
239
|
-
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-primary-normal",
|
|
240
|
-
componentPadding
|
|
241
|
-
"ml-1"
|
|
229
|
+
"flex items-center justify-center rounded-base hover:bg-action-100 active:bg-action-300 text-icon-action-primary-normal",
|
|
230
|
+
componentPadding
|
|
242
231
|
),
|
|
243
232
|
"aria-label": "Next month",
|
|
244
233
|
onClick: () => setBaseMonth(baseMonth.add({ months: 1 })),
|
|
@@ -248,12 +237,13 @@ function CalendarRange({
|
|
|
248
237
|
]
|
|
249
238
|
}
|
|
250
239
|
),
|
|
251
|
-
/* @__PURE__ */ jsx("div", { className: clsx("grid grid-cols-7
|
|
240
|
+
/* @__PURE__ */ jsx("div", { className: clsx("grid grid-cols-7"), children: weekDays.map((d) => /* @__PURE__ */ jsx(
|
|
252
241
|
"span",
|
|
253
242
|
{
|
|
254
243
|
className: clsx(
|
|
255
244
|
typography.caption,
|
|
256
|
-
"text-text-secondary-normal text-center"
|
|
245
|
+
"text-text-secondary-normal text-center",
|
|
246
|
+
"w-10"
|
|
257
247
|
),
|
|
258
248
|
children: d
|
|
259
249
|
},
|
|
@@ -288,7 +278,7 @@ function CalendarRange({
|
|
|
288
278
|
isRangeStart: !!isRangeStart,
|
|
289
279
|
isRangeEnd: !!isRangeEnd,
|
|
290
280
|
isRangeDisabled: mode === "single" && disableRange,
|
|
291
|
-
cellPadding:
|
|
281
|
+
cellPadding: componentPadding
|
|
292
282
|
},
|
|
293
283
|
i
|
|
294
284
|
);
|
|
@@ -300,7 +290,7 @@ function CalendarRange({
|
|
|
300
290
|
"div",
|
|
301
291
|
{
|
|
302
292
|
className: clsx(
|
|
303
|
-
"self-stretch bg-border-primary-normal rounded-base
|
|
293
|
+
"self-stretch bg-border-primary-normal rounded-base",
|
|
304
294
|
// 1px width, full height, matches Figma divider
|
|
305
295
|
"w-px"
|
|
306
296
|
)
|
|
@@ -66,6 +66,9 @@ var componentGap = clsx(
|
|
|
66
66
|
var paddingUsingComponentGap = clsx(
|
|
67
67
|
"p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
|
|
68
68
|
);
|
|
69
|
+
var paddingXUsingLayoutGroupGap = clsx(
|
|
70
|
+
"px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
|
|
71
|
+
);
|
|
69
72
|
var paddingYUsingLayoutGroupGap = clsx(
|
|
70
73
|
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
71
74
|
);
|
|
@@ -75,6 +78,9 @@ var componentPadding = clsx(
|
|
|
75
78
|
var componentPaddingBottom = clsx(
|
|
76
79
|
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
77
80
|
);
|
|
81
|
+
var componentPaddingX = clsx(
|
|
82
|
+
"px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
|
|
83
|
+
);
|
|
78
84
|
var componentPaddingY = clsx(
|
|
79
85
|
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
|
|
80
86
|
);
|
|
@@ -90,6 +96,9 @@ var componentPaddingMinusBorder = clsx(
|
|
|
90
96
|
var componentPaddingMinus2pxBorder = clsx(
|
|
91
97
|
"p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
|
|
92
98
|
);
|
|
99
|
+
var layoutPaddding = clsx(
|
|
100
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
|
|
101
|
+
);
|
|
93
102
|
var layoutPaddingBottom = clsx(
|
|
94
103
|
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
95
104
|
);
|
|
@@ -120,6 +129,7 @@ export {
|
|
|
120
129
|
baseTransition,
|
|
121
130
|
componentGap,
|
|
122
131
|
paddingUsingComponentGap,
|
|
132
|
+
paddingXUsingLayoutGroupGap,
|
|
123
133
|
paddingYUsingLayoutGroupGap,
|
|
124
134
|
componentPadding,
|
|
125
135
|
componentPaddingBottom,
|
|
@@ -128,6 +138,7 @@ export {
|
|
|
128
138
|
componentPaddingYUsingComponentGap,
|
|
129
139
|
componentPaddingMinusBorder,
|
|
130
140
|
componentPaddingMinus2pxBorder,
|
|
141
|
+
layoutPaddding,
|
|
131
142
|
layoutPaddingBottom,
|
|
132
143
|
containerPaddingX,
|
|
133
144
|
containerPaddingY,
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Heading2
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TJ44JJCB.js";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-T6HZARR7.js";
|
|
7
7
|
import {
|
|
8
8
|
Icon
|
|
9
9
|
} from "./chunk-IGQVA7SC.js";
|
|
10
|
+
import {
|
|
11
|
+
layoutGroupGap,
|
|
12
|
+
layoutPaddding
|
|
13
|
+
} from "./chunk-RDLEIAQU.js";
|
|
10
14
|
|
|
11
15
|
// src/components/ModalHeader.tsx
|
|
16
|
+
import clsx from "clsx";
|
|
12
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
18
|
var ModalHeader = ({
|
|
14
19
|
title,
|
|
@@ -16,8 +21,12 @@ var ModalHeader = ({
|
|
|
16
21
|
headerIcon,
|
|
17
22
|
onClose
|
|
18
23
|
}) => {
|
|
19
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
20
|
-
|
|
24
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx(
|
|
25
|
+
"flex justify-between items-center",
|
|
26
|
+
layoutPaddding,
|
|
27
|
+
layoutGroupGap
|
|
28
|
+
), children: [
|
|
29
|
+
/* @__PURE__ */ jsxs("div", { className: clsx("flex items-center", layoutGroupGap), children: [
|
|
21
30
|
headerIcon,
|
|
22
31
|
title && /* @__PURE__ */ jsx(Heading2, { as: "p", children: title })
|
|
23
32
|
] }),
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
layoutPaddding
|
|
3
|
+
} from "./chunk-RDLEIAQU.js";
|
|
4
|
+
|
|
1
5
|
// src/components/ModalContent.tsx
|
|
2
6
|
import clsx from "clsx";
|
|
3
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -9,7 +13,8 @@ function ModalContent({
|
|
|
9
13
|
"div",
|
|
10
14
|
{
|
|
11
15
|
className: clsx(
|
|
12
|
-
"flex-grow desktop:flex-grow-0
|
|
16
|
+
"flex-grow desktop:flex-grow-0",
|
|
17
|
+
layoutPaddding,
|
|
13
18
|
fixedHeightScrolling && "overflow-auto"
|
|
14
19
|
),
|
|
15
20
|
children
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-SEKKGFM6.js";
|
|
4
4
|
import {
|
|
5
5
|
Label
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-S7R37IUP.js";
|
|
7
7
|
import {
|
|
8
8
|
Paragraph
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UIQ733QP.js";
|
|
10
10
|
import {
|
|
11
11
|
Icon
|
|
12
12
|
} from "./chunk-IGQVA7SC.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
baseTransition,
|
|
15
15
|
componentGap,
|
|
16
16
|
componentPadding
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RDLEIAQU.js";
|
|
18
18
|
import {
|
|
19
19
|
__spreadProps,
|
|
20
20
|
__spreadValues
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
componentPadding,
|
|
2
3
|
typography
|
|
3
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RDLEIAQU.js";
|
|
4
5
|
|
|
5
6
|
// src/components/Tooltip.tsx
|
|
6
7
|
import clsx from "clsx";
|
|
@@ -93,7 +94,8 @@ var Tooltip = ({
|
|
|
93
94
|
},
|
|
94
95
|
className: clsx(
|
|
95
96
|
typography.caption,
|
|
96
|
-
"
|
|
97
|
+
"bg-neutral-500 text-neutral-100 rounded whitespace-nowrap shadow-2 pointer-events-none transition-opacity duration-100 ease-in-out",
|
|
98
|
+
componentPadding,
|
|
97
99
|
!removeOpacity && "opacity-0"
|
|
98
100
|
),
|
|
99
101
|
children: message
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Label
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-S7R37IUP.js";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-T6HZARR7.js";
|
|
7
7
|
import {
|
|
8
8
|
Icon
|
|
9
9
|
} from "./chunk-IGQVA7SC.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
componentPadding,
|
|
14
14
|
componentPaddingMinusBorder,
|
|
15
15
|
componentPaddingYUsingComponentGap
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RDLEIAQU.js";
|
|
17
17
|
import {
|
|
18
18
|
__objRest,
|
|
19
19
|
__spreadProps,
|
|
@@ -138,6 +138,9 @@ var componentGap = (0, import_clsx.default)(
|
|
|
138
138
|
var paddingUsingComponentGap = (0, import_clsx.default)(
|
|
139
139
|
"p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
|
|
140
140
|
);
|
|
141
|
+
var paddingXUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
142
|
+
"px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
|
|
143
|
+
);
|
|
141
144
|
var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
142
145
|
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
143
146
|
);
|
|
@@ -147,6 +150,9 @@ var componentPadding = (0, import_clsx.default)(
|
|
|
147
150
|
var componentPaddingBottom = (0, import_clsx.default)(
|
|
148
151
|
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
149
152
|
);
|
|
153
|
+
var componentPaddingX = (0, import_clsx.default)(
|
|
154
|
+
"px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
|
|
155
|
+
);
|
|
150
156
|
var componentPaddingY = (0, import_clsx.default)(
|
|
151
157
|
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
|
|
152
158
|
);
|
|
@@ -162,6 +168,9 @@ var componentPaddingMinusBorder = (0, import_clsx.default)(
|
|
|
162
168
|
var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
|
|
163
169
|
"p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
|
|
164
170
|
);
|
|
171
|
+
var layoutPaddding = (0, import_clsx.default)(
|
|
172
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
|
|
173
|
+
);
|
|
165
174
|
var layoutPaddingBottom = (0, import_clsx.default)(
|
|
166
175
|
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
167
176
|
);
|
|
@@ -299,7 +308,10 @@ function Icon(_a) {
|
|
|
299
308
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
300
309
|
var Breadcrumb = ({ href, children, onClick }) => {
|
|
301
310
|
const linkPadding = (0, import_clsx4.default)(
|
|
302
|
-
"
|
|
311
|
+
"!text-text-link-normal whitespace-nowrap",
|
|
312
|
+
"py-[calc(var(--spacing-mobile-component-padding)_+_3px)]",
|
|
313
|
+
"desktop:py-[calc(var(--spacing-desktop-component-padding)_+_3px)]",
|
|
314
|
+
"compact:py-[calc(var(--spacing-desktop-compact-component-padding)_+_3px)]"
|
|
303
315
|
);
|
|
304
316
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Link, { className: linkPadding, href, onClick, children }) }, href);
|
|
305
317
|
};
|
|
@@ -331,8 +343,8 @@ var Breadcrumbs = ({
|
|
|
331
343
|
className: (0, import_clsx4.default)(
|
|
332
344
|
"relative select-none flex items-center max-w-full w-full",
|
|
333
345
|
{
|
|
334
|
-
"bg-white rounded-base shadow-4 px-desktop-layout-padding": asCardStyle,
|
|
335
|
-
"px-desktop-container-padding": !asCardStyle
|
|
346
|
+
"bg-white rounded-base shadow-4 px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding": asCardStyle,
|
|
347
|
+
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding": !asCardStyle
|
|
336
348
|
}
|
|
337
349
|
),
|
|
338
350
|
"aria-label": "Breadcrumb",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Link
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-3WTXVSHO.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon
|
|
7
7
|
} from "../chunk-IGQVA7SC.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-RDLEIAQU.js";
|
|
9
9
|
import "../chunk-ORMEWXMH.js";
|
|
10
10
|
|
|
11
11
|
// src/components/Breadcrumbs.tsx
|
|
@@ -14,7 +14,10 @@ import clsx from "clsx";
|
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
var Breadcrumb = ({ href, children, onClick }) => {
|
|
16
16
|
const linkPadding = clsx(
|
|
17
|
-
"
|
|
17
|
+
"!text-text-link-normal whitespace-nowrap",
|
|
18
|
+
"py-[calc(var(--spacing-mobile-component-padding)_+_3px)]",
|
|
19
|
+
"desktop:py-[calc(var(--spacing-desktop-component-padding)_+_3px)]",
|
|
20
|
+
"compact:py-[calc(var(--spacing-desktop-compact-component-padding)_+_3px)]"
|
|
18
21
|
);
|
|
19
22
|
return /* @__PURE__ */ jsx("li", { className: "flex items-center", children: /* @__PURE__ */ jsx(Link, { className: linkPadding, href, onClick, children }) }, href);
|
|
20
23
|
};
|
|
@@ -46,8 +49,8 @@ var Breadcrumbs = ({
|
|
|
46
49
|
className: clsx(
|
|
47
50
|
"relative select-none flex items-center max-w-full w-full",
|
|
48
51
|
{
|
|
49
|
-
"bg-white rounded-base shadow-4 px-desktop-layout-padding": asCardStyle,
|
|
50
|
-
"px-desktop-container-padding": !asCardStyle
|
|
52
|
+
"bg-white rounded-base shadow-4 px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding": asCardStyle,
|
|
53
|
+
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding": !asCardStyle
|
|
51
54
|
}
|
|
52
55
|
),
|
|
53
56
|
"aria-label": "Breadcrumb",
|
|
@@ -132,6 +132,9 @@ var componentGap = (0, import_clsx.default)(
|
|
|
132
132
|
var paddingUsingComponentGap = (0, import_clsx.default)(
|
|
133
133
|
"p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
|
|
134
134
|
);
|
|
135
|
+
var paddingXUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
136
|
+
"px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
|
|
137
|
+
);
|
|
135
138
|
var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
136
139
|
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
137
140
|
);
|
|
@@ -141,6 +144,9 @@ var componentPadding = (0, import_clsx.default)(
|
|
|
141
144
|
var componentPaddingBottom = (0, import_clsx.default)(
|
|
142
145
|
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
143
146
|
);
|
|
147
|
+
var componentPaddingX = (0, import_clsx.default)(
|
|
148
|
+
"px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
|
|
149
|
+
);
|
|
144
150
|
var componentPaddingY = (0, import_clsx.default)(
|
|
145
151
|
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
|
|
146
152
|
);
|
|
@@ -156,6 +162,9 @@ var componentPaddingMinusBorder = (0, import_clsx.default)(
|
|
|
156
162
|
var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
|
|
157
163
|
"p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
|
|
158
164
|
);
|
|
165
|
+
var layoutPaddding = (0, import_clsx.default)(
|
|
166
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
|
|
167
|
+
);
|
|
159
168
|
var layoutPaddingBottom = (0, import_clsx.default)(
|
|
160
169
|
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
161
170
|
);
|