@temp-spotwork/ui 1.6.8 → 1.6.9
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/components/atoms/avatar/Avatar.stories.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.stories.js +1 -1
- package/dist/components/atoms/form/chips/chips.stories.js +1 -1
- package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.js +1 -1
- package/dist/components/atoms/form/stepper/Stepper.stories.js +1 -1
- package/dist/components/atoms/form/time-picker/time-picker.stories.js +1 -1
- package/dist/components/atoms/icons/icons.stories.js +1 -1
- package/dist/components/atoms/message/message.stories.js +1 -1
- package/dist/components/atoms/navigation/navigation-item/navigation-item.js +14 -14
- package/dist/components/atoms/tab/Tab.stories.js +1 -1
- package/dist/components/molecules/button/Button.stories.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/row/Row.stories.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/dot-matrix/DotMatrix.stories.js +1 -1
- package/dist/components/molecules/dataviz/single-stacked-bar/SingleStackedBar.stories.js +1 -1
- package/dist/components/molecules/dialog/dialog.stories.js +1 -1
- package/dist/components/molecules/filter/context-search/context-search.js +23 -24
- package/dist/components/molecules/filter/date-selector/DateSelector.stories.js +1 -1
- package/dist/components/molecules/filter/range-selector/RangeSelector.stories.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/header/Header.stories.js +1 -1
- package/dist/components/molecules/navigation/sidebar/Sidebar.stories.d.ts +0 -2
- package/dist/components/molecules/navigation/sidebar/Sidebar.stories.js +67 -103
- package/dist/components/molecules/navigation/sidebar/sidebar.js +24 -45
- package/dist/components/molecules/notifications/content/Content.stories.js +1 -1
- package/dist/components/molecules/tab-group/tabgroup.stories.js +1 -1
- package/dist/{index-DM2Ov9_y.js → index-CktvVE7I.js} +0 -9
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as o } from "../../../../index-
|
|
1
|
+
import { f as o } from "../../../../index-CktvVE7I.js";
|
|
2
2
|
import { LabelValuePair as r } from "./label-value-pair.js";
|
|
3
3
|
import "../../../styles/colors/colors.js";
|
|
4
4
|
import { glyphColorsKeys as a } from "../../../styles/colors/colormap.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { f as b } from "../../../../index-
|
|
2
|
+
import { f as b } from "../../../../index-CktvVE7I.js";
|
|
3
3
|
import { useState as u } from "react";
|
|
4
4
|
import { DropdownSearch as c } from "./dropdown-search.js";
|
|
5
5
|
import { Typography as p } from "../../../styles/typography/typography.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as d } from "react";
|
|
3
3
|
import { TimePicker as m } from "./time-picker.js";
|
|
4
4
|
import { m as t } from "../../../../index-CYyrKZeH.js";
|
|
5
|
-
import { w as i, e as s, u as c } from "../../../../index-
|
|
5
|
+
import { w as i, e as s, u as c } from "../../../../index-CktvVE7I.js";
|
|
6
6
|
const n = (e) => {
|
|
7
7
|
const [r, a] = d(e.value || /* @__PURE__ */ new Date());
|
|
8
8
|
return /* @__PURE__ */ l("div", { className: "space-y-4", children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { f as o } from "../../../index-
|
|
2
|
+
import { f as o } from "../../../index-CktvVE7I.js";
|
|
3
3
|
import { Icons as l } from "./icons.js";
|
|
4
4
|
import "./iconsSVGs/Large/Profile.js";
|
|
5
5
|
import "./iconsSVGs/Small/Profile.js";
|
|
@@ -6,10 +6,10 @@ import { Icons as n } from "../../icons/icons.js";
|
|
|
6
6
|
import "../../icons/iconsSVGs/Large/Profile.js";
|
|
7
7
|
import "../../icons/iconsSVGs/Small/Profile.js";
|
|
8
8
|
import { t as u } from "../../../../bundle-mjs-CAy1p0fn.js";
|
|
9
|
-
import { LoadingSpinner as
|
|
10
|
-
function
|
|
11
|
-
label:
|
|
12
|
-
icon:
|
|
9
|
+
import { LoadingSpinner as h } from "../../../molecules/button/loading-spinner.js";
|
|
10
|
+
function j({
|
|
11
|
+
label: t,
|
|
12
|
+
icon: r,
|
|
13
13
|
isActive: o = !1,
|
|
14
14
|
isNavigation: s = !1,
|
|
15
15
|
isLoading: m = !1,
|
|
@@ -23,24 +23,24 @@ function $({
|
|
|
23
23
|
d,
|
|
24
24
|
"flex items-center min-w-[14rem]",
|
|
25
25
|
// horizontal layout
|
|
26
|
-
o ? "bg-surface-active" : "cursor-pointer
|
|
26
|
+
o ? "bg-surface-active" : "cursor-pointer"
|
|
27
27
|
),
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
onMouseOver: () => a(!0),
|
|
29
|
+
onMouseOut: () => a(!1),
|
|
30
30
|
"data-testid": "navigationItem-container",
|
|
31
31
|
children: [
|
|
32
|
-
|
|
32
|
+
r && /* @__PURE__ */ e("span", { className: "mr-2", children: /* @__PURE__ */ e(
|
|
33
33
|
n,
|
|
34
34
|
{
|
|
35
|
-
icon:
|
|
36
|
-
id: `navitem-${
|
|
35
|
+
icon: r,
|
|
36
|
+
id: `navitem-${t}-start-icon`,
|
|
37
37
|
color: o ? "active" : "default"
|
|
38
38
|
}
|
|
39
39
|
) }),
|
|
40
|
-
/* @__PURE__ */ e(p, { swStyle: 3, color: o ? "active" : "default", className: "whitespace-nowrap", children:
|
|
40
|
+
/* @__PURE__ */ e(p, { swStyle: 3, color: o ? "active" : "default", className: "whitespace-nowrap", children: t }),
|
|
41
41
|
/* @__PURE__ */ i("div", { className: "ml-auto flex items-center gap-2", children: [
|
|
42
42
|
m && /* @__PURE__ */ e(
|
|
43
|
-
|
|
43
|
+
h,
|
|
44
44
|
{
|
|
45
45
|
size: c
|
|
46
46
|
}
|
|
@@ -49,7 +49,7 @@ function $({
|
|
|
49
49
|
n,
|
|
50
50
|
{
|
|
51
51
|
icon: "ChevronRight",
|
|
52
|
-
id: `navitem-${
|
|
52
|
+
id: `navitem-${t}-end-icon`,
|
|
53
53
|
color: "default",
|
|
54
54
|
disabled: !0
|
|
55
55
|
}
|
|
@@ -60,5 +60,5 @@ function $({
|
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
j as NavigationItem
|
|
64
64
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { w as n, e as i } from "../../../index-
|
|
2
|
+
import { w as n, e as i } from "../../../index-CktvVE7I.js";
|
|
3
3
|
import { useState as l } from "react";
|
|
4
4
|
import { Dialog as s } from "./dialog.js";
|
|
5
5
|
const a = (t) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as b, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as x } from "react";
|
|
3
|
-
import { Icons as
|
|
3
|
+
import { Icons as g } from "../../../atoms/icons/icons.js";
|
|
4
4
|
import "../../../atoms/icons/iconsSVGs/Large/Profile.js";
|
|
5
5
|
import "../../../atoms/icons/iconsSVGs/Small/Profile.js";
|
|
6
6
|
import { t as s } from "../../../../bundle-mjs-CAy1p0fn.js";
|
|
@@ -8,44 +8,43 @@ import { outlinedBorder as l } from "../../../styles/defaults/defaults.js";
|
|
|
8
8
|
import "../../../../purify.es-eYFoHPwR.js";
|
|
9
9
|
import { styleMap as v } from "../../../styles/typography/style.js";
|
|
10
10
|
import "../../../styles/colors/colormap.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
style: c,
|
|
11
|
+
const $ = ({
|
|
12
|
+
value: a,
|
|
13
|
+
onChange: e,
|
|
14
|
+
placeholder: i,
|
|
15
|
+
disabled: o = !1,
|
|
16
|
+
className: c,
|
|
17
|
+
style: m,
|
|
19
18
|
preventBrowserSuggestions: u = !1
|
|
20
19
|
}) => {
|
|
21
|
-
const [f, t] = x(!1),
|
|
20
|
+
const [f, t] = x(!1), p = () => {
|
|
22
21
|
t(!0);
|
|
23
|
-
},
|
|
22
|
+
}, d = () => {
|
|
24
23
|
t(!1);
|
|
25
24
|
};
|
|
26
25
|
return /* @__PURE__ */ b(
|
|
27
26
|
"div",
|
|
28
27
|
{
|
|
29
28
|
className: s(
|
|
30
|
-
|
|
29
|
+
`h-[3rem] flex items-center gap-xs px-xs bg-surface-default ${l.base} border-bcolor-default `,
|
|
31
30
|
f && l.active,
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
o && "bg-surface-disabled border-bcolor-disabled",
|
|
32
|
+
c
|
|
34
33
|
),
|
|
35
|
-
style:
|
|
34
|
+
style: m,
|
|
36
35
|
children: [
|
|
37
|
-
/* @__PURE__ */ r(
|
|
36
|
+
/* @__PURE__ */ r(g, { disabled: !0, icon: "MagnifyingGlassSmall", color: o ? "disabled" : "active" }),
|
|
38
37
|
/* @__PURE__ */ r(
|
|
39
38
|
"input",
|
|
40
39
|
{
|
|
41
40
|
type: "text",
|
|
42
|
-
className: s(`
|
|
43
|
-
placeholder:
|
|
44
|
-
onFocus:
|
|
45
|
-
onBlur:
|
|
46
|
-
onChange: (
|
|
47
|
-
value:
|
|
48
|
-
disabled:
|
|
41
|
+
className: s(`focus:outline-none w-full ${v[1]}`),
|
|
42
|
+
placeholder: i,
|
|
43
|
+
onFocus: p,
|
|
44
|
+
onBlur: d,
|
|
45
|
+
onChange: (n) => e == null ? void 0 : e(n.target.value),
|
|
46
|
+
value: a,
|
|
47
|
+
disabled: o,
|
|
49
48
|
autoComplete: u ? "off" : "on"
|
|
50
49
|
}
|
|
51
50
|
)
|
|
@@ -54,5 +53,5 @@ const k = ({
|
|
|
54
53
|
);
|
|
55
54
|
};
|
|
56
55
|
export {
|
|
57
|
-
|
|
56
|
+
$ as ContextSearch
|
|
58
57
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { w as o, u as r, e as s } from "../../../../index-
|
|
2
|
+
import { w as o, u as r, e as s } from "../../../../index-CktvVE7I.js";
|
|
3
3
|
import { useState as i } from "react";
|
|
4
4
|
import { DateSelector as d } from "./date-selector.js";
|
|
5
5
|
const n = (e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { f as t } from "../../../../index-
|
|
2
|
+
import { f as t } from "../../../../index-CktvVE7I.js";
|
|
3
3
|
import { Radiogroup as s } from "./radiogroup.js";
|
|
4
4
|
import { useState as d } from "react";
|
|
5
5
|
import { Icons as r } from "../../../atoms/icons/icons.js";
|
|
@@ -12,5 +12,3 @@ export declare const TransparentOverlay: Story;
|
|
|
12
12
|
export declare const CustomWidth: Story;
|
|
13
13
|
export declare const SlowTransition: Story;
|
|
14
14
|
export declare const FastTransition: Story;
|
|
15
|
-
export declare const KeyboardNavigation: Story;
|
|
16
|
-
export declare const NewTabNavigation: Story;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const I = {
|
|
1
|
+
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r } from "react";
|
|
3
|
+
import { Sidebar as s } from "./sidebar.js";
|
|
4
|
+
import { Button as d } from "../../button/button.js";
|
|
5
|
+
const f = {
|
|
7
6
|
title: "@spotwork-ui/molecules/Sidebar",
|
|
8
|
-
component:
|
|
7
|
+
component: s,
|
|
9
8
|
parameters: {
|
|
10
9
|
layout: "fullscreen"
|
|
11
10
|
},
|
|
@@ -28,16 +27,16 @@ const I = {
|
|
|
28
27
|
description: "If true, no overlay is rendered. If false, renders the overlay with background."
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
|
-
},
|
|
32
|
-
const [
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */ n(
|
|
35
|
-
/* @__PURE__ */ n(
|
|
30
|
+
}, m = ({ args: o }) => {
|
|
31
|
+
const [t, i] = r(!1);
|
|
32
|
+
return /* @__PURE__ */ c("div", { className: "p-4", children: [
|
|
33
|
+
/* @__PURE__ */ n(d, { text: "Open Sidebar", onClick: () => i(!0) }),
|
|
34
|
+
/* @__PURE__ */ n(s, { ...o, topItems: [
|
|
36
35
|
{
|
|
37
36
|
icon: "Clock",
|
|
38
37
|
label: "Clock",
|
|
39
|
-
onClick: (
|
|
40
|
-
console.log("Clicked:",
|
|
38
|
+
onClick: (l) => {
|
|
39
|
+
console.log("Clicked:", l);
|
|
41
40
|
},
|
|
42
41
|
link: "/clock"
|
|
43
42
|
},
|
|
@@ -45,26 +44,26 @@ const I = {
|
|
|
45
44
|
icon: "Maximize",
|
|
46
45
|
label: "Maximize",
|
|
47
46
|
isActive: !0,
|
|
48
|
-
onClick: (
|
|
49
|
-
console.log("Clicked:",
|
|
47
|
+
onClick: (l) => {
|
|
48
|
+
console.log("Clicked:", l);
|
|
50
49
|
},
|
|
51
50
|
link: "/maximize"
|
|
52
51
|
},
|
|
53
52
|
{
|
|
54
53
|
icon: "CalendarSmall",
|
|
55
54
|
label: "Calendar",
|
|
56
|
-
onClick: (
|
|
57
|
-
console.log("Clicked:",
|
|
55
|
+
onClick: (l) => {
|
|
56
|
+
console.log("Clicked:", l);
|
|
58
57
|
},
|
|
59
58
|
link: "/calendar"
|
|
60
59
|
}
|
|
61
|
-
], open:
|
|
60
|
+
], open: t, setOpen: i })
|
|
62
61
|
] });
|
|
63
|
-
},
|
|
64
|
-
const [
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
/* @__PURE__ */ n(
|
|
67
|
-
/* @__PURE__ */ n(
|
|
62
|
+
}, a = ({ args: o }) => {
|
|
63
|
+
const [t, i] = r(!1);
|
|
64
|
+
return /* @__PURE__ */ c("div", { className: "p-4", children: [
|
|
65
|
+
/* @__PURE__ */ n(d, { text: "Open Sidebar with Top & Bottom Items", onClick: () => i(!0) }),
|
|
66
|
+
/* @__PURE__ */ n(s, { ...o, topItems: [
|
|
68
67
|
{
|
|
69
68
|
icon: "Clock",
|
|
70
69
|
label: "Clock",
|
|
@@ -115,44 +114,44 @@ const I = {
|
|
|
115
114
|
},
|
|
116
115
|
link: "/help"
|
|
117
116
|
}
|
|
118
|
-
], open:
|
|
117
|
+
], open: t, setOpen: i })
|
|
119
118
|
] });
|
|
120
|
-
},
|
|
121
|
-
const [
|
|
122
|
-
return /* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */ n(
|
|
124
|
-
/* @__PURE__ */ n(
|
|
119
|
+
}, p = ({ args: o }) => {
|
|
120
|
+
const [t, i] = r(!1);
|
|
121
|
+
return /* @__PURE__ */ c("div", { className: "p-4", children: [
|
|
122
|
+
/* @__PURE__ */ n(d, { text: "Open Sidebar (Top Items Only)", onClick: () => i(!0) }),
|
|
123
|
+
/* @__PURE__ */ n(s, { ...o, topItems: [
|
|
125
124
|
{
|
|
126
125
|
icon: "Clock",
|
|
127
126
|
label: "Clock",
|
|
128
|
-
onClick: (
|
|
129
|
-
console.log("Clicked:",
|
|
127
|
+
onClick: (l) => {
|
|
128
|
+
console.log("Clicked:", l);
|
|
130
129
|
},
|
|
131
130
|
link: "/clock"
|
|
132
131
|
},
|
|
133
132
|
{
|
|
134
133
|
icon: "Maximize",
|
|
135
134
|
label: "Maximize",
|
|
136
|
-
onClick: (
|
|
137
|
-
console.log("Clicked:",
|
|
135
|
+
onClick: (l) => {
|
|
136
|
+
console.log("Clicked:", l);
|
|
138
137
|
},
|
|
139
138
|
link: "/maximize"
|
|
140
139
|
},
|
|
141
140
|
{
|
|
142
141
|
icon: "CalendarSmall",
|
|
143
142
|
label: "Calendar",
|
|
144
|
-
onClick: (
|
|
145
|
-
console.log("Clicked:",
|
|
143
|
+
onClick: (l) => {
|
|
144
|
+
console.log("Clicked:", l);
|
|
146
145
|
},
|
|
147
146
|
link: "/calendar"
|
|
148
147
|
}
|
|
149
|
-
], open:
|
|
148
|
+
], open: t, setOpen: i })
|
|
150
149
|
] });
|
|
151
|
-
},
|
|
152
|
-
const [
|
|
153
|
-
return /* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */ n(
|
|
155
|
-
/* @__PURE__ */ n(
|
|
150
|
+
}, C = ({ args: o }) => {
|
|
151
|
+
const [t, i] = r(!1);
|
|
152
|
+
return /* @__PURE__ */ c("div", { className: "p-4", children: [
|
|
153
|
+
/* @__PURE__ */ n(d, { text: "Open Sidebar with Many Items", onClick: () => i(!0) }),
|
|
154
|
+
/* @__PURE__ */ n(s, { ...o, topItems: [
|
|
156
155
|
{
|
|
157
156
|
icon: "Clock",
|
|
158
157
|
label: "Clock",
|
|
@@ -235,108 +234,73 @@ const I = {
|
|
|
235
234
|
},
|
|
236
235
|
link: "/feedback"
|
|
237
236
|
}
|
|
238
|
-
], open:
|
|
237
|
+
], open: t, setOpen: i })
|
|
239
238
|
] });
|
|
240
|
-
},
|
|
241
|
-
render: (o) => /* @__PURE__ */ n(
|
|
239
|
+
}, S = {
|
|
240
|
+
render: (o) => /* @__PURE__ */ n(m, { args: o }),
|
|
242
241
|
args: {
|
|
243
242
|
width: "22.5rem",
|
|
244
243
|
transitionDuration: 300,
|
|
245
244
|
overlayTransparent: !1
|
|
246
245
|
}
|
|
247
|
-
},
|
|
248
|
-
render: (o) => /* @__PURE__ */ n(
|
|
246
|
+
}, I = {
|
|
247
|
+
render: (o) => /* @__PURE__ */ n(a, { args: o }),
|
|
249
248
|
args: {
|
|
250
249
|
width: "22.5rem",
|
|
251
250
|
transitionDuration: 300,
|
|
252
251
|
overlayTransparent: !1
|
|
253
252
|
}
|
|
254
|
-
},
|
|
255
|
-
render: (o) => /* @__PURE__ */ n(
|
|
253
|
+
}, x = {
|
|
254
|
+
render: (o) => /* @__PURE__ */ n(p, { args: o }),
|
|
256
255
|
args: {
|
|
257
256
|
width: "22.5rem",
|
|
258
257
|
transitionDuration: 300,
|
|
259
258
|
overlayTransparent: !1
|
|
260
259
|
}
|
|
261
|
-
},
|
|
262
|
-
render: (o) => /* @__PURE__ */ n(
|
|
260
|
+
}, y = {
|
|
261
|
+
render: (o) => /* @__PURE__ */ n(C, { args: o }),
|
|
263
262
|
args: {
|
|
264
263
|
width: "22.5rem",
|
|
265
264
|
transitionDuration: 300,
|
|
266
265
|
overlayTransparent: !1
|
|
267
266
|
}
|
|
268
|
-
},
|
|
269
|
-
render: (o) => /* @__PURE__ */ n(
|
|
267
|
+
}, O = {
|
|
268
|
+
render: (o) => /* @__PURE__ */ n(a, { args: o }),
|
|
270
269
|
args: {
|
|
271
270
|
width: "22.5rem",
|
|
272
271
|
transitionDuration: 300,
|
|
273
272
|
overlayTransparent: !0
|
|
274
273
|
}
|
|
275
|
-
},
|
|
276
|
-
render: (o) => /* @__PURE__ */ n(
|
|
274
|
+
}, T = {
|
|
275
|
+
render: (o) => /* @__PURE__ */ n(a, { args: o }),
|
|
277
276
|
args: {
|
|
278
277
|
width: "30rem",
|
|
279
278
|
transitionDuration: 300,
|
|
280
279
|
overlayTransparent: !1
|
|
281
280
|
}
|
|
282
|
-
},
|
|
283
|
-
render: (o) => /* @__PURE__ */ n(
|
|
281
|
+
}, v = {
|
|
282
|
+
render: (o) => /* @__PURE__ */ n(a, { args: o }),
|
|
284
283
|
args: {
|
|
285
284
|
width: "22.5rem",
|
|
286
285
|
transitionDuration: 1e3,
|
|
287
286
|
overlayTransparent: !1
|
|
288
287
|
}
|
|
289
|
-
},
|
|
290
|
-
render: (o) => /* @__PURE__ */ n(
|
|
288
|
+
}, w = {
|
|
289
|
+
render: (o) => /* @__PURE__ */ n(a, { args: o }),
|
|
291
290
|
args: {
|
|
292
291
|
width: "22.5rem",
|
|
293
292
|
transitionDuration: 150,
|
|
294
293
|
overlayTransparent: !1
|
|
295
294
|
}
|
|
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(() => null);
|
|
322
|
-
await l("Open Sidebar", async () => {
|
|
323
|
-
await i.click(t), await new Promise((r) => setTimeout(r, 500));
|
|
324
|
-
}), await l("Command + Click Maximize item", async () => {
|
|
325
|
-
const r = await s.findByRole("link", { name: /Maximize/i });
|
|
326
|
-
await i.keyboard("{Control>}"), await i.click(r), await i.keyboard("{/Control}"), await m(e).toHaveBeenCalledWith("/maximize", "_blank");
|
|
327
|
-
}), e.mockRestore();
|
|
328
|
-
}
|
|
329
295
|
};
|
|
330
296
|
export {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
O as WithTopAndBottomItems,
|
|
341
|
-
I as default
|
|
297
|
+
S as Basic,
|
|
298
|
+
T as CustomWidth,
|
|
299
|
+
w as FastTransition,
|
|
300
|
+
y as ManyItems,
|
|
301
|
+
v as SlowTransition,
|
|
302
|
+
x as TopItemsOnly,
|
|
303
|
+
O as TransparentOverlay,
|
|
304
|
+
I as WithTopAndBottomItems,
|
|
305
|
+
f as default
|
|
342
306
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { NavigationItem as
|
|
3
|
-
import { u as
|
|
4
|
-
import { R as
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { NavigationItem as t } from "../../../atoms/navigation/navigation-item/navigation-item.js";
|
|
3
|
+
import { u as g, a as s } from "../../../../react-spring_web.modern-BLL8Qmtg.js";
|
|
4
|
+
import { R as v, P as x, O as b, C as N, T as y, D as k } from "../../../../index-C0ZrzaoZ.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: a,
|
|
9
|
+
setOpen: c,
|
|
10
10
|
topItems: d,
|
|
11
|
-
bottomItems:
|
|
12
|
-
transitionDuration:
|
|
13
|
-
width:
|
|
14
|
-
overlayTransparent:
|
|
11
|
+
bottomItems: l = [],
|
|
12
|
+
transitionDuration: m = 300,
|
|
13
|
+
width: f = "22.5rem",
|
|
14
|
+
overlayTransparent: i = !1
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
16
|
+
const u = g(a, {
|
|
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: m
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
(
|
|
26
|
-
!
|
|
27
|
-
|
|
24
|
+
return /* @__PURE__ */ e(v, { open: a, onOpenChange: c, modal: !i, children: /* @__PURE__ */ e(x, { children: u(
|
|
25
|
+
(n, p) => p ? /* @__PURE__ */ o(h, { children: [
|
|
26
|
+
!i && /* @__PURE__ */ e(s.div, { style: { opacity: n.opacity }, children: /* @__PURE__ */ e(
|
|
27
|
+
b,
|
|
28
28
|
{
|
|
29
29
|
forceMount: !0,
|
|
30
30
|
className: "DialogOverlay fixed inset-0 top-[6rem] z-50",
|
|
@@ -34,38 +34,17 @@ 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": a ? "open" : "close", children: [
|
|
38
|
+
/* @__PURE__ */ e(y, { className: "sr-only", children: "Navigation Sidebar" }),
|
|
39
|
+
/* @__PURE__ */ e(k, { className: "sr-only", children: "Navigation menu with links to different sections" }),
|
|
40
40
|
/* @__PURE__ */ o(
|
|
41
|
-
|
|
41
|
+
s.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: n.transform, width: f },
|
|
44
|
+
className: `fixed top-[6rem] left-0 h-screen z-50 bg-surface-default focus:outline-none flex flex-col ${i ? "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
|
-
|
|
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
|
-
)) })
|
|
46
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col gap-xs p-md flex-1", children: d.map((r) => /* @__PURE__ */ e("div", { onClick: () => r.onClick(r.link), children: /* @__PURE__ */ e(t, { ...r, isNavigation: !0 }) }, r.label)) }),
|
|
47
|
+
l.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-lg p-md", children: l.map((r) => /* @__PURE__ */ e("div", { onClick: () => r.onClick(r.link), children: /* @__PURE__ */ e(t, { ...r, isNavigation: !0 }) }, r.label)) })
|
|
69
48
|
]
|
|
70
49
|
}
|
|
71
50
|
)
|
|
@@ -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-CktvVE7I.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";
|
|
@@ -20302,10 +20302,6 @@ var mocks = /* @__PURE__ */ new Set();
|
|
|
20302
20302
|
function isMockFunction(ne) {
|
|
20303
20303
|
return typeof ne == "function" && "_isMockFunction" in ne && ne._isMockFunction;
|
|
20304
20304
|
}
|
|
20305
|
-
function spyOn(ne, pt, yt) {
|
|
20306
|
-
let ir = yt ? { [{ get: "getter", set: "setter" }[yt]]: pt } : pt, io = C2(ne, ir);
|
|
20307
|
-
return enhanceSpy(io);
|
|
20308
|
-
}
|
|
20309
20305
|
var callOrder = 0;
|
|
20310
20306
|
function enhanceSpy(ne) {
|
|
20311
20307
|
let pt = ne, yt, ir = [], io = [], uo = [], fo = T(ne), _o = { get calls() {
|
|
@@ -21184,10 +21180,6 @@ var listeners = /* @__PURE__ */ new Set();
|
|
|
21184
21180
|
function onMockCall(ne) {
|
|
21185
21181
|
return listeners.add(ne), () => void listeners.delete(ne);
|
|
21186
21182
|
}
|
|
21187
|
-
var spyOn2 = (...ne) => {
|
|
21188
|
-
let pt = spyOn(...ne);
|
|
21189
|
-
return reactiveMock(pt);
|
|
21190
|
-
};
|
|
21191
21183
|
function fn2(ne) {
|
|
21192
21184
|
let pt = ne ? fn(ne) : fn();
|
|
21193
21185
|
return reactiveMock(pt);
|
|
@@ -24173,7 +24165,6 @@ scope.__STORYBOOK_TEST_ON_MOCK_CALL__ = onMockCall;
|
|
|
24173
24165
|
export {
|
|
24174
24166
|
expect3 as e,
|
|
24175
24167
|
fn2 as f,
|
|
24176
|
-
spyOn2 as s,
|
|
24177
24168
|
userEvent2 as u,
|
|
24178
24169
|
within as w
|
|
24179
24170
|
};
|