@temp-spotwork/ui 1.6.9 → 1.7.2
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/{Combination-BkpbjcWz.js → Combination-B1NSOvaC.js} +170 -167
- package/dist/{bundle-mjs-CAy1p0fn.js → bundle-mjs-BjFsLjkg.js} +1 -1
- package/dist/components/atoms/avatar/Avatar.stories.js +1 -1
- package/dist/components/atoms/avatar/avatar.js +1 -1
- package/dist/components/atoms/badge/badge.stories.js +1 -1
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.js +1 -1
- package/dist/components/atoms/card-content/label-value-pair/label-value-pair.stories.js +1 -1
- package/dist/components/atoms/daybubble/recurrence-day/recurrence-day.js +1 -1
- package/dist/components/atoms/form/calendar/calendar-date-cell.js +3 -3
- package/dist/components/atoms/form/calendar/calendar-month.js +1 -1
- package/dist/components/atoms/form/calendar/calendar-utils.js +1 -1
- package/dist/components/atoms/form/calendar/calendar.js +2 -2
- package/dist/components/atoms/form/calendar/calendar.stories.js +3 -3
- package/dist/components/atoms/form/calendar/month-header.js +1 -1
- package/dist/components/atoms/form/calendar/sticky-button.js +1 -1
- package/dist/components/atoms/form/checkbox/checkbox.js +2 -2
- package/dist/components/atoms/form/chips/chips.js +1 -1
- package/dist/components/atoms/form/chips/chips.stories.js +1 -1
- package/dist/components/atoms/form/dateselect/date-calendar.js +2 -2
- package/dist/components/atoms/form/dateselect/date-dropdown-header.js +1 -1
- package/dist/components/atoms/form/dateselect/date-dropdown.js +1 -1
- package/dist/components/atoms/form/dateselect/date-input.js +3 -3
- package/dist/components/atoms/form/dateselect/date-month-year-switch.js +1 -1
- package/dist/components/atoms/form/dateselect/dateselect.js +2 -2
- package/dist/components/atoms/form/dateselect/month-switch.js +3 -3
- package/dist/components/atoms/form/dateselect/year-switch.js +3 -3
- package/dist/components/atoms/form/dropdown/dropdown.js +1 -1
- package/dist/components/atoms/form/dropdown-search/dropdown-search.js +1 -1
- package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.js +1 -1
- package/dist/components/atoms/form/radiobutton/radiobutton.js +1 -1
- package/dist/components/atoms/form/stepper/Stepper.stories.js +1 -1
- package/dist/components/atoms/form/switch/switch.js +21 -21
- package/dist/components/atoms/form/time-picker/time-picker-dropdown.js +2 -2
- package/dist/components/atoms/form/time-picker/time-picker-input.js +3 -3
- package/dist/components/atoms/form/time-picker/time-picker.js +2 -2
- package/dist/components/atoms/form/time-picker/time-picker.stories.js +2 -2
- package/dist/components/atoms/form/timeselect/hours-switch.js +1 -1
- package/dist/components/atoms/form/timeselect/minutes-switch.js +1 -1
- package/dist/components/atoms/form/typeahead/typeahead.js +1 -1
- package/dist/components/atoms/icons/icons.js +2 -2
- package/dist/components/atoms/icons/icons.stories.js +3 -3
- package/dist/components/atoms/message/message.js +1 -1
- package/dist/components/atoms/message/message.stories.js +1 -1
- package/dist/components/atoms/navigation/navigation-item/navigation-item.js +15 -15
- package/dist/components/atoms/small-large-text/small-large-text.js +2 -2
- package/dist/components/atoms/tab/Tab.stories.js +1 -1
- package/dist/components/atoms/tab/tab.js +1 -1
- package/dist/components/atoms/tooltip/tooltip.js +2 -2
- package/dist/components/atoms/tooltip/tooltip.stories.js +1 -1
- package/dist/components/molecules/alert/alert.js +4 -4
- package/dist/components/molecules/button/Button.stories.js +1 -1
- package/dist/components/molecules/button/button.js +1 -1
- package/dist/components/molecules/button/loading-spinner.js +1 -1
- package/dist/components/molecules/collapsible-card/Collapsiblecard.stories.js +1 -1
- package/dist/components/molecules/conversation/message-editor/MessageEditor.stories.js +1 -1
- package/dist/components/molecules/conversation/message-group-composer/MessageGroupComposer.stories.js +1 -1
- package/dist/components/molecules/datatables/cell/Cell.stories.js +1 -1
- package/dist/components/molecules/datatables/cell/cell.js +1 -1
- package/dist/components/molecules/datatables/row/Row.stories.js +1 -1
- package/dist/components/molecules/datatables/row/row.js +1 -1
- package/dist/components/molecules/datatables/row-header/RowHeader.stories.js +1 -1
- package/dist/components/molecules/dataviz/donut-chart/DonutChart.stories.js +1 -1
- package/dist/components/molecules/dataviz/donut-chart/donut-chart.js +1821 -1820
- package/dist/components/molecules/dataviz/dot-matrix/DotMatrix.stories.js +1 -1
- package/dist/components/molecules/dataviz/progress-bar/progress-bar.js +1 -1
- package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.js +1 -1
- package/dist/components/molecules/dialog/dialog.js +4 -4
- package/dist/components/molecules/dialog/dialog.stories.js +1 -1
- package/dist/components/molecules/drawer/drawer.js +3 -3
- package/dist/components/molecules/filter/checkbox/checkbox.js +2 -2
- package/dist/components/molecules/filter/context-search/context-search.js +2 -2
- package/dist/components/molecules/filter/date-range-selector/date-range-selector.js +16 -16
- package/dist/components/molecules/filter/date-selector/DateSelector.stories.js +1 -1
- package/dist/components/molecules/filter/date-selector/date-selector.js +11 -11
- package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.js +2 -2
- package/dist/components/molecules/filter/range-selector/RangeSelector.stories.js +1 -1
- package/dist/components/molecules/filter/range-selector/range-selector.js +6 -6
- package/dist/components/molecules/filter/range-selector/styles.js +1 -1
- package/dist/components/molecules/filter/segmented-control/segmented-control.js +1 -1
- package/dist/components/molecules/form/radiogroup/radiogroup.js +1 -1
- package/dist/components/molecules/form/radiogroup/radiogroup.stories.js +1 -1
- package/dist/components/molecules/link/Link.stories.js +1 -1
- package/dist/components/molecules/navigation/context-menu/context-menu.js +2 -2
- package/dist/components/molecules/navigation/header/Header.stories.js +1 -1
- package/dist/components/molecules/navigation/menubar/menubar.js +2 -2
- package/dist/components/molecules/navigation/sidebar/Sidebar.stories.d.ts +2 -0
- package/dist/components/molecules/navigation/sidebar/Sidebar.stories.js +105 -67
- package/dist/components/molecules/navigation/sidebar/sidebar.js +45 -24
- package/dist/components/molecules/notifications/content/Content.stories.js +1 -1
- package/dist/components/molecules/snackbar/Snackbar.stories.js +1 -1
- package/dist/components/molecules/snackbar/index.js +1 -1
- package/dist/components/molecules/snackbar/snackbar.js +3 -3
- package/dist/components/molecules/tab-group/tab-group.js +1 -1
- package/dist/components/molecules/tab-group/tabgroup.stories.js +1 -1
- package/dist/components/styles/typography/typography.js +1 -1
- package/dist/{index-DrfOymtc.js → index-B9jfXCBx.js} +15 -15
- package/dist/{index-DNpMaKvH.js → index-Bam3aisa.js} +24 -24
- package/dist/{index-OIdMhwsO.js → index-ByBd5wKB.js} +1 -1
- package/dist/{index-C0ZrzaoZ.js → index-Ck3lRuRz.js} +17 -17
- package/dist/{index-DotfMcM0.js → index-DLKZ-XYv.js} +5922 -5891
- package/dist/{index-CYyrKZeH.js → index-DMvnp-vR.js} +58 -58
- package/dist/{index-CnWyMXBX.js → index-DVNTJNwY.js} +24 -24
- package/dist/{index-CktvVE7I.js → index-Dpx0xQmQ.js} +6629 -6620
- package/dist/{index-BKdkX0lZ.js → index-QKj2bKph.js} +13 -13
- package/dist/lib/utils.js +1 -1
- package/dist/lodash-CyvSh4lH.js +3691 -0
- package/dist/main.js +2 -2
- package/dist/purify.es-CcKdJiNO.js +595 -0
- package/dist/{react-spring_web.modern-BLL8Qmtg.js → react-spring_web.modern-BzbxCya-.js} +1 -1
- package/dist/{snackbar-CgqDB5xn.js → snackbar-BUPlWHWk.js} +9 -14
- package/package.json +5 -1
- package/dist/lodash-BRbpQ7iy.js +0 -3676
- package/dist/purify.es-eYFoHPwR.js +0 -528
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { jsx as n, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p } from "react";
|
|
3
|
+
import { w as b, u as i, e as m, s as w } from "../../../../index-Dpx0xQmQ.js";
|
|
4
|
+
import { Sidebar as d } from "./sidebar.js";
|
|
5
|
+
import { Button as C } from "../../button/button.js";
|
|
6
|
+
const I = {
|
|
6
7
|
title: "@spotwork-ui/molecules/Sidebar",
|
|
7
|
-
component:
|
|
8
|
+
component: d,
|
|
8
9
|
parameters: {
|
|
9
10
|
layout: "fullscreen"
|
|
10
11
|
},
|
|
@@ -27,16 +28,16 @@ const f = {
|
|
|
27
28
|
description: "If true, no overlay is rendered. If false, renders the overlay with background."
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
},
|
|
31
|
-
const [
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
/* @__PURE__ */ n(
|
|
34
|
-
/* @__PURE__ */ n(
|
|
31
|
+
}, u = ({ args: o }) => {
|
|
32
|
+
const [l, a] = p(!1);
|
|
33
|
+
return /* @__PURE__ */ k("div", { className: "p-4", children: [
|
|
34
|
+
/* @__PURE__ */ n(C, { text: "Open Sidebar", onClick: () => a(!0) }),
|
|
35
|
+
/* @__PURE__ */ n(d, { ...o, topItems: [
|
|
35
36
|
{
|
|
36
37
|
icon: "Clock",
|
|
37
38
|
label: "Clock",
|
|
38
|
-
onClick: (
|
|
39
|
-
console.log("Clicked:",
|
|
39
|
+
onClick: (t) => {
|
|
40
|
+
console.log("Clicked:", t);
|
|
40
41
|
},
|
|
41
42
|
link: "/clock"
|
|
42
43
|
},
|
|
@@ -44,26 +45,26 @@ const f = {
|
|
|
44
45
|
icon: "Maximize",
|
|
45
46
|
label: "Maximize",
|
|
46
47
|
isActive: !0,
|
|
47
|
-
onClick: (
|
|
48
|
-
console.log("Clicked:",
|
|
48
|
+
onClick: (t) => {
|
|
49
|
+
console.log("Clicked:", t);
|
|
49
50
|
},
|
|
50
51
|
link: "/maximize"
|
|
51
52
|
},
|
|
52
53
|
{
|
|
53
54
|
icon: "CalendarSmall",
|
|
54
55
|
label: "Calendar",
|
|
55
|
-
onClick: (
|
|
56
|
-
console.log("Clicked:",
|
|
56
|
+
onClick: (t) => {
|
|
57
|
+
console.log("Clicked:", t);
|
|
57
58
|
},
|
|
58
59
|
link: "/calendar"
|
|
59
60
|
}
|
|
60
|
-
], open:
|
|
61
|
+
], open: l, setOpen: a })
|
|
61
62
|
] });
|
|
62
|
-
},
|
|
63
|
-
const [
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */ n(
|
|
66
|
-
/* @__PURE__ */ n(
|
|
63
|
+
}, c = ({ args: o }) => {
|
|
64
|
+
const [l, a] = p(!1);
|
|
65
|
+
return /* @__PURE__ */ k("div", { className: "p-4", children: [
|
|
66
|
+
/* @__PURE__ */ n(C, { text: "Open Sidebar with Top & Bottom Items", onClick: () => a(!0) }),
|
|
67
|
+
/* @__PURE__ */ n(d, { ...o, topItems: [
|
|
67
68
|
{
|
|
68
69
|
icon: "Clock",
|
|
69
70
|
label: "Clock",
|
|
@@ -114,44 +115,44 @@ const f = {
|
|
|
114
115
|
},
|
|
115
116
|
link: "/help"
|
|
116
117
|
}
|
|
117
|
-
], open:
|
|
118
|
+
], open: l, setOpen: a })
|
|
118
119
|
] });
|
|
119
|
-
},
|
|
120
|
-
const [
|
|
121
|
-
return /* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */ n(
|
|
123
|
-
/* @__PURE__ */ n(
|
|
120
|
+
}, g = ({ args: o }) => {
|
|
121
|
+
const [l, a] = p(!1);
|
|
122
|
+
return /* @__PURE__ */ k("div", { className: "p-4", children: [
|
|
123
|
+
/* @__PURE__ */ n(C, { text: "Open Sidebar (Top Items Only)", onClick: () => a(!0) }),
|
|
124
|
+
/* @__PURE__ */ n(d, { ...o, topItems: [
|
|
124
125
|
{
|
|
125
126
|
icon: "Clock",
|
|
126
127
|
label: "Clock",
|
|
127
|
-
onClick: (
|
|
128
|
-
console.log("Clicked:",
|
|
128
|
+
onClick: (t) => {
|
|
129
|
+
console.log("Clicked:", t);
|
|
129
130
|
},
|
|
130
131
|
link: "/clock"
|
|
131
132
|
},
|
|
132
133
|
{
|
|
133
134
|
icon: "Maximize",
|
|
134
135
|
label: "Maximize",
|
|
135
|
-
onClick: (
|
|
136
|
-
console.log("Clicked:",
|
|
136
|
+
onClick: (t) => {
|
|
137
|
+
console.log("Clicked:", t);
|
|
137
138
|
},
|
|
138
139
|
link: "/maximize"
|
|
139
140
|
},
|
|
140
141
|
{
|
|
141
142
|
icon: "CalendarSmall",
|
|
142
143
|
label: "Calendar",
|
|
143
|
-
onClick: (
|
|
144
|
-
console.log("Clicked:",
|
|
144
|
+
onClick: (t) => {
|
|
145
|
+
console.log("Clicked:", t);
|
|
145
146
|
},
|
|
146
147
|
link: "/calendar"
|
|
147
148
|
}
|
|
148
|
-
], open:
|
|
149
|
+
], open: l, setOpen: a })
|
|
149
150
|
] });
|
|
150
|
-
},
|
|
151
|
-
const [
|
|
152
|
-
return /* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */ n(
|
|
154
|
-
/* @__PURE__ */ n(
|
|
151
|
+
}, y = ({ args: o }) => {
|
|
152
|
+
const [l, a] = p(!1);
|
|
153
|
+
return /* @__PURE__ */ k("div", { className: "p-4", children: [
|
|
154
|
+
/* @__PURE__ */ n(C, { text: "Open Sidebar with Many Items", onClick: () => a(!0) }),
|
|
155
|
+
/* @__PURE__ */ n(d, { ...o, topItems: [
|
|
155
156
|
{
|
|
156
157
|
icon: "Clock",
|
|
157
158
|
label: "Clock",
|
|
@@ -234,73 +235,110 @@ const f = {
|
|
|
234
235
|
},
|
|
235
236
|
link: "/feedback"
|
|
236
237
|
}
|
|
237
|
-
], open:
|
|
238
|
+
], open: l, setOpen: a })
|
|
238
239
|
] });
|
|
239
|
-
},
|
|
240
|
-
render: (o) => /* @__PURE__ */ n(
|
|
240
|
+
}, T = {
|
|
241
|
+
render: (o) => /* @__PURE__ */ n(u, { args: o }),
|
|
241
242
|
args: {
|
|
242
243
|
width: "22.5rem",
|
|
243
244
|
transitionDuration: 300,
|
|
244
245
|
overlayTransparent: !1
|
|
245
246
|
}
|
|
246
|
-
},
|
|
247
|
-
render: (o) => /* @__PURE__ */ n(
|
|
247
|
+
}, O = {
|
|
248
|
+
render: (o) => /* @__PURE__ */ n(c, { args: o }),
|
|
248
249
|
args: {
|
|
249
250
|
width: "22.5rem",
|
|
250
251
|
transitionDuration: 300,
|
|
251
252
|
overlayTransparent: !1
|
|
252
253
|
}
|
|
253
|
-
},
|
|
254
|
-
render: (o) => /* @__PURE__ */ n(
|
|
254
|
+
}, z = {
|
|
255
|
+
render: (o) => /* @__PURE__ */ n(g, { args: o }),
|
|
255
256
|
args: {
|
|
256
257
|
width: "22.5rem",
|
|
257
258
|
transitionDuration: 300,
|
|
258
259
|
overlayTransparent: !1
|
|
259
260
|
}
|
|
260
|
-
},
|
|
261
|
-
render: (o) => /* @__PURE__ */ n(
|
|
261
|
+
}, D = {
|
|
262
|
+
render: (o) => /* @__PURE__ */ n(y, { args: o }),
|
|
262
263
|
args: {
|
|
263
264
|
width: "22.5rem",
|
|
264
265
|
transitionDuration: 300,
|
|
265
266
|
overlayTransparent: !1
|
|
266
267
|
}
|
|
267
|
-
},
|
|
268
|
-
render: (o) => /* @__PURE__ */ n(
|
|
268
|
+
}, M = {
|
|
269
|
+
render: (o) => /* @__PURE__ */ n(c, { args: o }),
|
|
269
270
|
args: {
|
|
270
271
|
width: "22.5rem",
|
|
271
272
|
transitionDuration: 300,
|
|
272
273
|
overlayTransparent: !0
|
|
273
274
|
}
|
|
274
|
-
},
|
|
275
|
-
render: (o) => /* @__PURE__ */ n(
|
|
275
|
+
}, B = {
|
|
276
|
+
render: (o) => /* @__PURE__ */ n(c, { args: o }),
|
|
276
277
|
args: {
|
|
277
278
|
width: "30rem",
|
|
278
279
|
transitionDuration: 300,
|
|
279
280
|
overlayTransparent: !1
|
|
280
281
|
}
|
|
281
|
-
},
|
|
282
|
-
render: (o) => /* @__PURE__ */ n(
|
|
282
|
+
}, N = {
|
|
283
|
+
render: (o) => /* @__PURE__ */ n(c, { args: o }),
|
|
283
284
|
args: {
|
|
284
285
|
width: "22.5rem",
|
|
285
286
|
transitionDuration: 1e3,
|
|
286
287
|
overlayTransparent: !1
|
|
287
288
|
}
|
|
288
|
-
},
|
|
289
|
-
render: (o) => /* @__PURE__ */ n(
|
|
289
|
+
}, W = {
|
|
290
|
+
render: (o) => /* @__PURE__ */ n(c, { args: o }),
|
|
290
291
|
args: {
|
|
291
292
|
width: "22.5rem",
|
|
292
293
|
transitionDuration: 150,
|
|
293
294
|
overlayTransparent: !1
|
|
294
295
|
}
|
|
296
|
+
}, H = {
|
|
297
|
+
render: (o) => /* @__PURE__ */ n(c, { args: o }),
|
|
298
|
+
args: {
|
|
299
|
+
width: "22.5rem",
|
|
300
|
+
transitionDuration: 300,
|
|
301
|
+
overlayTransparent: !1
|
|
302
|
+
},
|
|
303
|
+
play: async ({ canvasElement: o }) => {
|
|
304
|
+
const a = await b(o).getByRole("button", { name: /Open Sidebar/i });
|
|
305
|
+
await i.click(a), await new Promise((r) => setTimeout(r, 500)), await i.tab();
|
|
306
|
+
const s = o.ownerDocument.activeElement;
|
|
307
|
+
await m(s).toHaveTextContent("Maximize"), await i.tab(), await i.tab();
|
|
308
|
+
const t = o.ownerDocument.activeElement;
|
|
309
|
+
await m(t).toHaveTextContent("Calendar"), await i.tab(), await i.tab(), await i.tab(), await i.tab(), await i.tab(), await i.tab(), await i.tab(), await i.tab();
|
|
310
|
+
const e = o.ownerDocument.activeElement;
|
|
311
|
+
await m(e).toHaveTextContent("Clock");
|
|
312
|
+
}
|
|
313
|
+
}, A = {
|
|
314
|
+
render: (o) => /* @__PURE__ */ n(c, { args: o }),
|
|
315
|
+
args: {
|
|
316
|
+
width: "22.5rem",
|
|
317
|
+
transitionDuration: 300,
|
|
318
|
+
overlayTransparent: !1
|
|
319
|
+
},
|
|
320
|
+
play: async ({ canvasElement: o, step: l }) => {
|
|
321
|
+
const a = b(o), s = b(o.ownerDocument.body), t = await a.getByRole("button", { name: /Open Sidebar/i }), e = w(window, "open").mockImplementation(
|
|
322
|
+
() => null
|
|
323
|
+
);
|
|
324
|
+
await l("Open Sidebar", async () => {
|
|
325
|
+
await i.click(t), await new Promise((r) => setTimeout(r, 500));
|
|
326
|
+
}), await l("Command + Click Maximize item", async () => {
|
|
327
|
+
const r = await s.findByRole("link", { name: /Maximize/i });
|
|
328
|
+
await i.keyboard("{Control>}"), await i.click(r), await i.keyboard("{/Control}"), await m(e).toHaveBeenCalledWith("/maximize", "_blank");
|
|
329
|
+
}), e.mockRestore();
|
|
330
|
+
}
|
|
295
331
|
};
|
|
296
332
|
export {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
333
|
+
T as Basic,
|
|
334
|
+
B as CustomWidth,
|
|
335
|
+
W as FastTransition,
|
|
336
|
+
H as KeyboardNavigation,
|
|
337
|
+
D as ManyItems,
|
|
338
|
+
A as NewTabNavigation,
|
|
339
|
+
N as SlowTransition,
|
|
340
|
+
z as TopItemsOnly,
|
|
341
|
+
M as TransparentOverlay,
|
|
342
|
+
O as WithTopAndBottomItems,
|
|
343
|
+
I as default
|
|
306
344
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { NavigationItem as
|
|
3
|
-
import { u as
|
|
4
|
-
import { R as
|
|
1
|
+
import { jsx as r, jsxs as o, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { NavigationItem as s } from "../../../atoms/navigation/navigation-item/navigation-item.js";
|
|
3
|
+
import { u as v, a as c } from "../../../../react-spring_web.modern-BzbxCya-.js";
|
|
4
|
+
import { R as b, P as p, O as x, C as N, T as k, D as y } from "../../../../index-Ck3lRuRz.js";
|
|
5
5
|
import "../../../styles/colors/colors.js";
|
|
6
6
|
import { surface as C } from "../../../styles/colors/colormap.js";
|
|
7
7
|
function z({
|
|
8
|
-
open:
|
|
9
|
-
setOpen:
|
|
8
|
+
open: i,
|
|
9
|
+
setOpen: t,
|
|
10
10
|
topItems: d,
|
|
11
|
-
bottomItems:
|
|
12
|
-
transitionDuration:
|
|
13
|
-
width:
|
|
14
|
-
overlayTransparent:
|
|
11
|
+
bottomItems: a = [],
|
|
12
|
+
transitionDuration: f = 300,
|
|
13
|
+
width: u = "22.5rem",
|
|
14
|
+
overlayTransparent: n = !1
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
16
|
+
const m = v(i, {
|
|
17
17
|
from: { opacity: 0, transform: "translateX(-100%)" },
|
|
18
18
|
enter: { opacity: 1, transform: "translateX(0%)" },
|
|
19
19
|
leave: { opacity: 1 },
|
|
20
20
|
config: {
|
|
21
|
-
duration:
|
|
21
|
+
duration: f
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
(
|
|
26
|
-
!
|
|
27
|
-
|
|
24
|
+
return /* @__PURE__ */ r(b, { open: i, onOpenChange: t, modal: !n, children: /* @__PURE__ */ r(p, { children: m(
|
|
25
|
+
(l, g) => g ? /* @__PURE__ */ o(h, { children: [
|
|
26
|
+
!n && /* @__PURE__ */ r(c.div, { style: { opacity: l.opacity }, children: /* @__PURE__ */ r(
|
|
27
|
+
x,
|
|
28
28
|
{
|
|
29
29
|
forceMount: !0,
|
|
30
30
|
className: "DialogOverlay fixed inset-0 top-[6rem] z-50",
|
|
@@ -34,17 +34,38 @@ function z({
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
) }),
|
|
37
|
-
/* @__PURE__ */ o(N, { forceMount: !0, "data-state":
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ o(N, { forceMount: !0, "data-state": i ? "open" : "close", children: [
|
|
38
|
+
/* @__PURE__ */ r(k, { className: "sr-only", children: "Navigation Sidebar" }),
|
|
39
|
+
/* @__PURE__ */ r(y, { className: "sr-only", children: "Navigation menu with links to different sections" }),
|
|
40
40
|
/* @__PURE__ */ o(
|
|
41
|
-
|
|
41
|
+
c.div,
|
|
42
42
|
{
|
|
43
|
-
style: { transform:
|
|
44
|
-
className: `fixed top-[6rem] left-0 h-screen z-50 bg-surface-default focus:outline-none flex flex-col ${
|
|
43
|
+
style: { transform: l.transform, width: u },
|
|
44
|
+
className: `fixed top-[6rem] left-0 h-screen z-50 bg-surface-default focus:outline-none flex flex-col ${n ? "border-[0.1rem] border-bcolor-divider" : "shadow-[0rem_1rem_1rem_0rem_#B0B0B0] border-t-[0.1rem] border-bcolor-divider"}`,
|
|
45
45
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
|
|
46
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-xs p-md flex-1", children: d.map((e) => /* @__PURE__ */ o(
|
|
47
|
+
"a",
|
|
48
|
+
{
|
|
49
|
+
href: e.link,
|
|
50
|
+
onClick: () => e.onClick(e.link),
|
|
51
|
+
className: "group focus-visible:ring-2 focus-visible:ring-shadow-active focus:outline-none rounded hover:bg-bcolor-divider block no-underline",
|
|
52
|
+
children: [
|
|
53
|
+
" ",
|
|
54
|
+
/* @__PURE__ */ r(s, { ...e, isNavigation: !0 })
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
e.label
|
|
58
|
+
)) }),
|
|
59
|
+
a.length > 0 && /* @__PURE__ */ r("div", { className: "flex flex-col gap-lg p-md", children: a.map((e) => /* @__PURE__ */ r(
|
|
60
|
+
"a",
|
|
61
|
+
{
|
|
62
|
+
href: e.link,
|
|
63
|
+
onClick: () => e.onClick(e.link),
|
|
64
|
+
className: "group focus-visible:ring-2 focus-visible:ring-shadow-active focus:outline-none rounded hover:bg-bcolor-divider block no-underline",
|
|
65
|
+
children: /* @__PURE__ */ r(s, { ...e, isNavigation: !0 })
|
|
66
|
+
},
|
|
67
|
+
e.label
|
|
68
|
+
)) })
|
|
48
69
|
]
|
|
49
70
|
}
|
|
50
71
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as l } from "react";
|
|
3
|
-
import { S as r, P as c, V as d } from "../../../snackbar-
|
|
3
|
+
import { S as r, P as c, V as d } from "../../../snackbar-BUPlWHWk.js";
|
|
4
4
|
import { Button as h } from "../button/button.js";
|
|
5
5
|
const w = {
|
|
6
6
|
title: "@spotwork-ui/Snackbar",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { S as D } from "../../../snackbar-
|
|
2
|
+
import { S as D } from "../../../snackbar-BUPlWHWk.js";
|
|
3
3
|
import "../../styles/tailwind-config/index.js";
|
|
4
4
|
import "../../styles/typography/typography.js";
|
|
5
5
|
import "../../styles/colors/colors.js";
|
|
@@ -14,7 +14,7 @@ import "../../atoms/form/time-picker/time-picker.js";
|
|
|
14
14
|
import "../../atoms/form/dropdown/dropdown.js";
|
|
15
15
|
import "../filter/dropdown-selector/styles.js";
|
|
16
16
|
import "../../atoms/form/dropdown-search/dropdown-search.js";
|
|
17
|
-
import "../../../index-
|
|
17
|
+
import "../../../index-DMvnp-vR.js";
|
|
18
18
|
import "../../atoms/form/textfield/textfield.js";
|
|
19
19
|
import "../../atoms/form/stepper/stepper.js";
|
|
20
20
|
import "../../atoms/form/textarea/textarea.js";
|
|
@@ -23,7 +23,7 @@ import "../../atoms/form/timeselect/timeselect.js";
|
|
|
23
23
|
import "../button/button.js";
|
|
24
24
|
import "../datatables/cell/cell.js";
|
|
25
25
|
import "../dataviz/donut-chart/donut-chart.js";
|
|
26
|
-
import "../../../react-spring_web.modern-
|
|
26
|
+
import "../../../react-spring_web.modern-BzbxCya-.js";
|
|
27
27
|
import "../form/radiogroup/radiogroup.js";
|
|
28
28
|
import "../../../card-Cc2Qkiqr.js";
|
|
29
29
|
import "./styles.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as p, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { pseudoBorder as f, smallContainer as u, largeContainer as c } from "./styles.js";
|
|
3
3
|
import { Tab as d } from "../../atoms/tab/tab.js";
|
|
4
|
-
import { t as l } from "../../../bundle-mjs-
|
|
4
|
+
import { t as l } from "../../../bundle-mjs-BjFsLjkg.js";
|
|
5
5
|
function j({ nodesList: m, variant: r, activeTab: e, setActiveTab: s, className: a }) {
|
|
6
6
|
const o = (t) => t.id ? t.id === e ? "active" : "default" : t.title === e ? "active" : "default";
|
|
7
7
|
return /* @__PURE__ */ p("div", { className: l(r === "small" ? u : c, a), children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { f as c } from "../../../index-
|
|
2
|
+
import { f as c } from "../../../index-Dpx0xQmQ.js";
|
|
3
3
|
import { useState as r } from "react";
|
|
4
4
|
import { TabGroup as s } from "./tab-group.js";
|
|
5
5
|
import { Typography as n } from "../../styles/typography/typography.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElement as f } from "react";
|
|
2
|
-
import { p as l } from "../../../purify.es-
|
|
2
|
+
import { p as l } from "../../../purify.es-CcKdJiNO.js";
|
|
3
3
|
import { styleMap as y, fontFamilyMap as T, fontWeightMap as L, fontSizeMap as d, textTypeMap as s } from "./style.js";
|
|
4
4
|
import { glyphClassesMap as $ } from "../colors/colormap.js";
|
|
5
5
|
function E({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { P as L, a as I, u as O, b as N, c as S, d as j, e as H } from "./index-DLKZ-XYv.js";
|
|
3
3
|
import { u as z } from "./index-BZPx6jYI.js";
|
|
4
4
|
import { jsx as h, jsxs as G, Fragment as K } from "react/jsx-runtime";
|
|
5
|
-
var _ = "Checkbox", [U
|
|
5
|
+
var _ = "Checkbox", [U] = H(_), [X, g] = U(_);
|
|
6
6
|
function J(t) {
|
|
7
7
|
const {
|
|
8
8
|
__scopeCheckbox: a,
|
|
@@ -17,20 +17,20 @@ function J(t) {
|
|
|
17
17
|
value: k = "on",
|
|
18
18
|
// @ts-expect-error
|
|
19
19
|
internal_do_not_use_render: i
|
|
20
|
-
} = t, [l,
|
|
20
|
+
} = t, [l, x] = O({
|
|
21
21
|
prop: c,
|
|
22
22
|
defaultProp: r ?? !1,
|
|
23
23
|
onChange: d,
|
|
24
24
|
caller: _
|
|
25
|
-
}), [m,
|
|
25
|
+
}), [m, v] = s.useState(null), [R, o] = s.useState(null), n = s.useRef(!1), E = m ? !!f || !!m.closest("form") : (
|
|
26
26
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
27
27
|
!0
|
|
28
28
|
), P = {
|
|
29
29
|
checked: l,
|
|
30
30
|
disabled: e,
|
|
31
|
-
setChecked:
|
|
31
|
+
setChecked: x,
|
|
32
32
|
control: m,
|
|
33
|
-
setControl:
|
|
33
|
+
setControl: v,
|
|
34
34
|
name: p,
|
|
35
35
|
form: f,
|
|
36
36
|
value: k,
|
|
@@ -61,9 +61,9 @@ var w = "CheckboxTrigger", B = s.forwardRef(
|
|
|
61
61
|
setControl: k,
|
|
62
62
|
setChecked: i,
|
|
63
63
|
hasConsumerStoppedPropagationRef: l,
|
|
64
|
-
isFormControl:
|
|
64
|
+
isFormControl: x,
|
|
65
65
|
bubbleInput: m
|
|
66
|
-
} = g(w, t),
|
|
66
|
+
} = g(w, t), v = N(r, k), R = s.useRef(d);
|
|
67
67
|
return s.useEffect(() => {
|
|
68
68
|
const o = e == null ? void 0 : e.form;
|
|
69
69
|
if (o) {
|
|
@@ -82,12 +82,12 @@ var w = "CheckboxTrigger", B = s.forwardRef(
|
|
|
82
82
|
disabled: p,
|
|
83
83
|
value: f,
|
|
84
84
|
...u,
|
|
85
|
-
ref:
|
|
85
|
+
ref: v,
|
|
86
86
|
onKeyDown: S(a, (o) => {
|
|
87
87
|
o.key === "Enter" && o.preventDefault();
|
|
88
88
|
}),
|
|
89
89
|
onClick: S(c, (o) => {
|
|
90
|
-
i((n) => b(n) ? !0 : !n), m &&
|
|
90
|
+
i((n) => b(n) ? !0 : !n), m && x && (l.current = o.isPropagationStopped(), l.current || o.stopPropagation());
|
|
91
91
|
})
|
|
92
92
|
}
|
|
93
93
|
);
|
|
@@ -145,7 +145,7 @@ var M = "CheckboxIndicator", V = s.forwardRef(
|
|
|
145
145
|
(t, a) => {
|
|
146
146
|
const { __scopeCheckbox: c, forceMount: u, ...r } = t, e = g(M, c);
|
|
147
147
|
return /* @__PURE__ */ h(
|
|
148
|
-
|
|
148
|
+
L,
|
|
149
149
|
{
|
|
150
150
|
present: u || b(e.checked) || e.checked === !0,
|
|
151
151
|
children: /* @__PURE__ */ h(
|
|
@@ -176,8 +176,8 @@ var T = "CheckboxBubbleInput", q = s.forwardRef(
|
|
|
176
176
|
value: k,
|
|
177
177
|
form: i,
|
|
178
178
|
bubbleInput: l,
|
|
179
|
-
setBubbleInput:
|
|
180
|
-
} = g(T, t), m = N(c,
|
|
179
|
+
setBubbleInput: x
|
|
180
|
+
} = g(T, t), m = N(c, x), v = z(e), R = j(u);
|
|
181
181
|
s.useEffect(() => {
|
|
182
182
|
const n = l;
|
|
183
183
|
if (!n) return;
|
|
@@ -185,11 +185,11 @@ var T = "CheckboxBubbleInput", q = s.forwardRef(
|
|
|
185
185
|
E,
|
|
186
186
|
"checked"
|
|
187
187
|
).set, D = !r.current;
|
|
188
|
-
if (
|
|
188
|
+
if (v !== e && y) {
|
|
189
189
|
const F = new Event("click", { bubbles: D });
|
|
190
190
|
n.indeterminate = b(e), y.call(n, b(e) ? !1 : e), n.dispatchEvent(F);
|
|
191
191
|
}
|
|
192
|
-
}, [l,
|
|
192
|
+
}, [l, v, e, r]);
|
|
193
193
|
const o = s.useRef(b(e) ? !1 : e);
|
|
194
194
|
return /* @__PURE__ */ h(
|
|
195
195
|
I.input,
|