@altinn/altinn-components 0.15.2 → 0.15.4
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/README.md +38 -1
- package/dist/altinn-ds-overrides.css +1 -0
- package/dist/assets/ButtonBase.css +1 -1
- package/dist/assets/DialogSelect.css +1 -1
- package/dist/assets/DrawerBase.css +1 -1
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/HeaderSearch.css +1 -1
- package/dist/assets/ListItemBase.css +1 -1
- package/dist/assets/ListItemLabel.css +1 -1
- package/dist/assets/ListItemSelect.css +1 -1
- package/dist/assets/MenuSearch.css +1 -1
- package/dist/assets/SearchbarBase.css +1 -1
- package/dist/assets/ToolbarFilterBase.css +1 -1
- package/dist/components/Button/ButtonBase.js +13 -14
- package/dist/components/Byline/Byline.js +1 -1
- package/dist/components/Dialog/DialogHeading.js +1 -1
- package/dist/components/Dialog/DialogListItem.js +25 -23
- package/dist/components/Dialog/DialogSelect.js +10 -10
- package/dist/components/Dropdown/DrawerBase.js +20 -16
- package/dist/components/Dropdown/DropdownBase.js +21 -19
- package/dist/components/Header/HeaderMenu.js +5 -5
- package/dist/components/Header/HeaderSearch.js +10 -6
- package/dist/components/Icon/Icon.js +8 -8
- package/dist/components/List/ListItem.js +83 -68
- package/dist/components/List/ListItemBase.js +61 -56
- package/dist/components/List/ListItemLabel.js +6 -6
- package/dist/components/List/ListItemLink.js +5 -7
- package/dist/components/List/ListItemSelect.js +7 -7
- package/dist/components/Menu/MenuBase.js +6 -12
- package/dist/components/Menu/MenuItemBase.js +41 -48
- package/dist/components/Menu/MenuItems.js +26 -26
- package/dist/components/Menu/MenuSearch.js +11 -11
- package/dist/components/Meta/MetaItem.js +1 -1
- package/dist/components/Meta/MetaTimestamp.js +1 -1
- package/dist/components/Search/Autocomplete.js +22 -22
- package/dist/components/Search/SearchField.js +15 -16
- package/dist/components/Search/SearchbarBase.js +10 -15
- package/dist/components/Skeleton/Skeleton.js +15 -5
- package/dist/components/Toolbar/ToolbarFilterBase.js +10 -5
- package/dist/components/Typography/Heading.js +1 -1
- package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +7 -1
- package/dist/types/lib/components/Header/HeaderMenu.d.ts +1 -1
- package/dist/types/lib/components/List/ListItemBase.d.ts +2 -1
- package/dist/types/lib/components/List/ListItemLink.d.ts +1 -1
- package/dist/types/lib/components/Menu/MenuBase.d.ts +2 -2
- package/dist/types/lib/components/Menu/MenuItemBase.d.ts +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -72,4 +72,41 @@ The tags are:
|
|
|
72
72
|
- `@deprecated` - The component is deprecated and should not be used.
|
|
73
73
|
|
|
74
74
|
The main motivation behind having tags is relieving the pressure of having to make everything stable before releasing it for use.
|
|
75
|
-
It also allows us to get feedback on the components in an early stage.
|
|
75
|
+
It also allows us to get feedback on the components in an early stage.
|
|
76
|
+
|
|
77
|
+
## Storybook test runner (accessibility)
|
|
78
|
+
Config for the storybook test runner is placed under .storybook/test-runner.ts
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
First you will need to run the storybook:
|
|
82
|
+
```
|
|
83
|
+
pnpm storybook
|
|
84
|
+
```
|
|
85
|
+
-
|
|
86
|
+
|
|
87
|
+
When that is done, in another terminal run following command to test all the stories for accessibility
|
|
88
|
+
```
|
|
89
|
+
pnpm test-storybook
|
|
90
|
+
```
|
|
91
|
+
-
|
|
92
|
+
|
|
93
|
+
To test a specific file, run...
|
|
94
|
+
```
|
|
95
|
+
pnpm test-storybook --watch
|
|
96
|
+
```
|
|
97
|
+
...and press 'p' to choose filtering by file name. Then start typing the name of the storybook file f.ex. 'badge'. The helper will list all the files matching your input.
|
|
98
|
+
|
|
99
|
+
Hit enter to test the file.
|
|
100
|
+
|
|
101
|
+
If there is more files matching your input, they will also be tested.
|
|
102
|
+
|
|
103
|
+
-
|
|
104
|
+
If the storybook cli runs all the tests even with --watch flag, alternatively you can simply run:
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
pnpm test-storybook --watch 'MyComponent.stories.tsx'
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
-
|
|
111
|
+
To skip the test add 'skip-test' string into the tags array for the test you want to exclude. That option is defined in the test-runner.ts file.
|
|
112
|
+
Currently all the tests under stories/Demo and docs are excluded as the accessibility test is not needed there.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_mffb6_1{border:1px solid;border-color:transparent;margin:0;padding:0;width:auto;overflow:visible;background:transparent;text-decoration:none;color:inherit;font:inherit;text-align:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;cursor:pointer}._button_mffb6_1:disabled{opacity:.5;pointer-events:none}._button_mffb6_1[data-size=xs]{height:1.875rem}._button_mffb6_1[data-size=sm]{height:2.25rem}._button_mffb6_1[data-size=md]{height:2.75rem}._button_mffb6_1[data-size=lg]{height:3.5rem}._button_mffb6_1[data-variant=solid]{background-color:var(--ds-color-base-default);border-color:var(--ds-color-base-default);color:var(--ds-color-contrast-default)}._button_mffb6_1[data-variant=solid]:hover{background-color:var(--ds-color-base-hover)}._button_mffb6_1[data-variant=solid]:active{background-color:var(--ds-color-base-active)}._button_mffb6_1[data-variant=outline],._button_mffb6_1[data-variant=dotted]{border-color:var(--ds-color-base-default)}._button_mffb6_1[data-variant=outline]{border-style:solid}._button_mffb6_1[data-variant=dotted]{border-style:dotted}._button_mffb6_1[data-variant=text]{border-color:transparent;color:var(--ds-color-text-subtle)}._button_mffb6_1[data-variant=outline]:hover,._button_mffb6_1[data-variant=dotted]:hover,._button_mffb6_1[data-variant=text]:hover{background-color:var(--ds-color-surface-default);color:var(--ds-color-text-default)}._button_mffb6_1[data-variant=outline]:active,._button_mffb6_1[data-variant=dotted]:active,._button_mffb6_1[data-variant=text]:active{background-color:var(--ds-color-surface-active)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_19rag_1{display:inline-flex;align-items:center;justify-content:center;background-color:transparent;padding:.75rem;border-radius:50%;border:0}._label_19rag_1:hover{background-color:var(--ds-color-surface-default)}._input_19rag_15{display:none}._icon_19rag_19{font-size:1.25rem}._icon_19rag_19{color:var(--ds-color-base-default)}._icon_19rag_19 [data-hover=true]{opacity:0}._label_19rag_1:hover [data-hover=true]{opacity:1}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._drawer_1b2ni_1{display:none}._drawerExpanded_1b2ni_5{display:block;width:100%}._drawer_1b2ni_1[data-placement=bottom]{position:fixed;top:5.5rem;bottom:0;left:0;right:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dropdown_1wuga_1{display:none}._dropdownExpanded_1wuga_5{display:block;position:absolute;z-index:2}._dropdown_1wuga_1[data-placement=left]{left:0}._dropdown_1wuga_1[data-placement=right]{right:0}._dropdown_1wuga_1[data-padding=true]{padding:0 .5rem}._dropdown_1wuga_1{min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}._drawer_1wuga_31 ._button_1wuga_31{border-radius:50%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._search_1czaf_1{width:100%}._searchExpanded_1czaf_5{z-index:2}@media (min-width: 1024px){._search_1czaf_1{position:absolute;left:0;right:0;margin:0 auto;max-width:320px}._searchExpanded_1czaf_5{max-width:640px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_bqpwx_1{padding:0;border:0;background-color:transparent;color:inherit;font:inherit;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none;position:relative;width:100%;display:flex;flex-direction:column}._item_bqpwx_1[data-shadow=xs]{box-shadow:var(--ds-shadow-xs)}._item_bqpwx_1[data-variant=outline],._item_bqpwx_1[data-variant=dotted]{outline-color:var(--ds-color-base-default)}._item_bqpwx_1[data-variant=outline]{outline-style:solid}._item_bqpwx_1[data-variant=dotted]{outline-color:var(--ds-color-border-subtle);outline-style:dashed}._item_bqpwx_1[data-theme=default]{background-color:var(--ds-color-background-default)}._item_bqpwx_1[data-theme=subtle]{background-color:var(--ds-color-background-subtle)}._interactive_bqpwx_53[data-theme=subtle]:hover,._item_bqpwx_1[data-theme=surface]{background-color:var(--ds-color-surface-hover)}._interactive_bqpwx_53[data-theme=surface]:hover{background-color:var(--ds-color-surface-active)}._item_bqpwx_1[data-theme=base]{background-color:var(--ds-color-base-default);color:var(--ds-color-contrast-default)}._interactive_bqpwx_53[data-theme=base]:hover{background-color:var(--ds-color-base-hover);color:var(--ds-color-contrast-default)}._item_bqpwx_1[data-active=true]{background-color:var(--ds-color-surface-default)}._item_bqpwx_1[aria-expanded=true],._item_bqpwx_1[aria-selected=true]{outline:2px solid}._item_bqpwx_1[aria-disabled=true]{pointer-events:none}._interactiveSelected_bqpwx_95{outline:2px solid var(--ds-color-border-strong)}._interactiveHidden_bqpwx_99{display:none}._interactive_bqpwx_53:not([data-theme=transparent]):hover{outline:2px solid var(--ds-color-border-strong)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_lkhmo_3{width:100%}._label_lkhmo_3[data-size=xs]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}._label_lkhmo_3[data-size=sm],._label_lkhmo_3[data-size=md],._label_lkhmo_3[data-size=lg],._label_lkhmo_3[data-size=xl]{display:flex;flex-direction:column;row-gap:.125rem}._label_lkhmo_3[data-size=xs],._label_lkhmo_3[data-size=sm],._label_lkhmo_3[data-size=md]{font-size:1rem}._label_lkhmo_3[data-size=lg]{font-size:1.125rem}._label_lkhmo_3[data-size=xl]{font-size:1.25rem}._title_lkhmo_44{display:inline;font-size:1em;font-weight:600;line-height:1.125;margin:0}._description_lkhmo_52{display:inline;font-weight:400;line-height:1.125;color:var(--ds-color-text-subtle);margin:0}._description_lkhmo_52[data-size=xs],._description_lkhmo_52[data-size=sm],._description_lkhmo_52[data-size=md],._description_lkhmo_52[data-size=lg],._description_lkhmo_52[data-size=xl]{font-size:.875rem;line-height:1rem}[data-theme=base] ._description_lkhmo_52{color:var(--ds-color-contrast-subtle)}[data-theme=surface] ._description_lkhmo_52{color:var(--ds-color-text-default)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._label_1rc60_1{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background-color:transparent;border-radius:50%;border:0}._label_1rc60_1:hover{background-color:var(--ds-color-surface-default)}._input_1rc60_15{display:none}._icon_1rc60_19{color:var(--ds-color-base-default)}._icon_1rc60_19 [data-hover=true]{opacity:0}._label_1rc60_1:hover [data-hover=true]{opacity:1}._label_1rc60_1[data-size=xs] ._icon_1rc60_19{width:16px;height:16px;margin:2px}._label_1rc60_1[data-size=sm] ._icon_1rc60_19{width:16px;height:16px;margin:4px}._label_1rc60_1[data-size=md] ._icon_1rc60_19{width:16px;height:16px;margin:8px}._label_1rc60_1[data-size=lg] ._icon_1rc60_19{width:18px;height:18px;margin:9px}._label_1rc60_1[data-size=xl] ._icon_1rc60_19{width:20px;height:20px;margin:12px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._field_8g6tu_1{position:relative;margin:.5rem 0}._icon_8g6tu_6{position:absolute;top:0;left:0;font-size:1.25rem;color:var(--ds-color-text-subtle);margin:10px}._input_8g6tu_15{width:100%;font-size:.875rem;line-height:1rem;font-weight:500;padding:11px 36px;border-radius:2px;border:1px solid;border-color:var(--ds-color-border-default)}._input_8g6tu_15[type=search]::-webkit-search-decoration,._input_8g6tu_15[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}._clear_8g6tu_31{position:absolute;top:0;right:0;margin:8px;border-radius:100%;width:1.5rem;height:1.5rem}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._searchbar_1qnvb_1{position:relative}._searchbar_1qnvb_1[data-autocomplete=true][aria-expanded=true] input{border-bottom-left-radius:0;border-bottom-right-radius:0}._searchbar_1qnvb_1 nav{display:none}._searchbarExpanded_1qnvb_14 nav{position:absolute;display:block;border-top-left-radius:0;border-top-right-radius:0;margin-top:-2px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._base_4n04w_1{position:relative}._expanded_4n04w_5{z-index:2}
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { c as b } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/ButtonBase.css';const
|
|
4
|
-
button:
|
|
3
|
+
import '../../assets/ButtonBase.css';const f = "_button_mffb6_1", i = {
|
|
4
|
+
button: f
|
|
5
5
|
}, _ = ({
|
|
6
6
|
as: o,
|
|
7
|
-
color:
|
|
8
|
-
className:
|
|
7
|
+
color: n,
|
|
8
|
+
className: a,
|
|
9
9
|
children: s,
|
|
10
10
|
disabled: t = !1,
|
|
11
11
|
size: e,
|
|
12
|
-
selected:
|
|
13
|
-
variant:
|
|
14
|
-
tabIndex:
|
|
12
|
+
selected: l,
|
|
13
|
+
variant: r,
|
|
14
|
+
tabIndex: c = 0,
|
|
15
15
|
...m
|
|
16
|
-
}) => /* @__PURE__ */
|
|
16
|
+
}) => /* @__PURE__ */ u(
|
|
17
17
|
o || "button",
|
|
18
18
|
{
|
|
19
|
-
tabIndex:
|
|
19
|
+
tabIndex: c,
|
|
20
20
|
"data-size": e,
|
|
21
|
-
"data-variant":
|
|
22
|
-
"data-color":
|
|
23
|
-
"aria-selected": r,
|
|
21
|
+
"data-variant": r,
|
|
22
|
+
"data-color": n,
|
|
24
23
|
"aria-disabled": t,
|
|
25
24
|
disabled: t,
|
|
26
|
-
className: b(
|
|
25
|
+
className: b(i.button, a),
|
|
27
26
|
...m,
|
|
28
27
|
children: s
|
|
29
28
|
}
|
|
@@ -21,7 +21,7 @@ import '../../assets/Byline.css';const d = "_byline_160ic_1", y = "_label_160ic_
|
|
|
21
21
|
children: c
|
|
22
22
|
}) => /* @__PURE__ */ n("div", { className: t.byline, "data-color": o, "data-size": r, children: [
|
|
23
23
|
/* @__PURE__ */ a(m, { variant: "circle", className: t.avatar, loading: e, children: i ? /* @__PURE__ */ a(b, { ...i, size: r, className: t.avatar }) : l && /* @__PURE__ */ a(p, { ...l, size: r, className: t.avatar }) }),
|
|
24
|
-
/* @__PURE__ */ a("time", { "data-size": r, dateTime: s, className: t.label, children:
|
|
24
|
+
/* @__PURE__ */ a(m, { loading: e, children: /* @__PURE__ */ a("time", { "data-size": r, dateTime: s, className: t.label, children: c }) })
|
|
25
25
|
] });
|
|
26
26
|
export {
|
|
27
27
|
B as Byline
|
|
@@ -11,7 +11,7 @@ import '../../assets/DialogHeading.css';const p = "_heading_rx9gi_1", c = "_titl
|
|
|
11
11
|
heading: p,
|
|
12
12
|
title: c
|
|
13
13
|
}, N = ({ loading: i, size: s = "sm", seen: a = !1, state: e, label: r, children: m }) => /* @__PURE__ */ n("div", { className: o.heading, children: [
|
|
14
|
-
/* @__PURE__ */ t("h2", { className: o.title, "data-seen": a, "data-size": s, "data-state": e, children:
|
|
14
|
+
/* @__PURE__ */ t(l, { loading: i, children: /* @__PURE__ */ t("h2", { className: o.title, "data-seen": a, "data-size": s, "data-state": e, children: m }) }),
|
|
15
15
|
!i && r && /* @__PURE__ */ t(d, { type: e, size: "xs", children: r })
|
|
16
16
|
] });
|
|
17
17
|
export {
|
|
@@ -22,71 +22,73 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
22
22
|
touchedBy: V,
|
|
23
23
|
heading: W,
|
|
24
24
|
title: X
|
|
25
|
-
},
|
|
25
|
+
}, lt = ({
|
|
26
26
|
size: t = "lg",
|
|
27
27
|
state: x = "normal",
|
|
28
28
|
loading: o,
|
|
29
|
-
select:
|
|
30
|
-
selected:
|
|
29
|
+
select: s,
|
|
30
|
+
selected: c,
|
|
31
31
|
status: B,
|
|
32
|
-
sender:
|
|
32
|
+
sender: h,
|
|
33
33
|
recipient: g,
|
|
34
34
|
recipientLabel: k = "to",
|
|
35
35
|
grouped: I = !1,
|
|
36
36
|
updatedAt: l,
|
|
37
|
-
updatedAtLabel:
|
|
38
|
-
archivedAt:
|
|
37
|
+
updatedAtLabel: i,
|
|
38
|
+
archivedAt: n,
|
|
39
39
|
archivedAtLabel: D,
|
|
40
|
-
trashedAt:
|
|
40
|
+
trashedAt: d,
|
|
41
41
|
trashedAtLabel: L,
|
|
42
42
|
label: S,
|
|
43
43
|
dueAt: j,
|
|
44
44
|
dueAtLabel: v,
|
|
45
|
-
seen:
|
|
45
|
+
seen: m = !1,
|
|
46
46
|
seenBy: H,
|
|
47
47
|
touchedBy: M,
|
|
48
48
|
attachmentsCount: T,
|
|
49
|
-
title:
|
|
49
|
+
title: r,
|
|
50
50
|
description: _,
|
|
51
51
|
summary: y,
|
|
52
52
|
theme: q = "default",
|
|
53
53
|
...p
|
|
54
54
|
}) => {
|
|
55
|
-
const w =
|
|
55
|
+
const w = d ? "trashed" : n ? "archived" : x, f = c ? "subtle" : q;
|
|
56
56
|
return t === "xs" || t === "sm" || t === "md" ? /* @__PURE__ */ e(
|
|
57
57
|
N,
|
|
58
58
|
{
|
|
59
59
|
...p,
|
|
60
60
|
size: t,
|
|
61
|
-
selected:
|
|
61
|
+
selected: c,
|
|
62
62
|
theme: f,
|
|
63
|
-
label: /* @__PURE__ */ e("div", { className: a.border, "data-size": t, "data-seen":
|
|
64
|
-
badge: /* @__PURE__ */ e(u, { loading: o, sender:
|
|
63
|
+
label: /* @__PURE__ */ e("div", { className: a.border, "data-size": t, "data-seen": m, "data-loading": o, children: /* @__PURE__ */ e(G, { loading: o, size: t, title: r, description: y || _ }) }),
|
|
64
|
+
badge: /* @__PURE__ */ e(u, { loading: o, sender: h, updatedAt: l, updatedAtLabel: i }),
|
|
65
|
+
title: r
|
|
65
66
|
}
|
|
66
67
|
) : /* @__PURE__ */ e(
|
|
67
68
|
N,
|
|
68
69
|
{
|
|
69
70
|
...p,
|
|
70
71
|
size: t,
|
|
71
|
-
selected:
|
|
72
|
+
selected: c,
|
|
72
73
|
theme: f,
|
|
73
74
|
linkIcon: null,
|
|
74
|
-
controls:
|
|
75
|
-
|
|
75
|
+
controls: s && /* @__PURE__ */ e(J, { className: a.select, ...s, size: "xl" }),
|
|
76
|
+
title: r,
|
|
77
|
+
label: /* @__PURE__ */ b("div", { className: a.border, "data-size": t, "data-seen": m, "data-loading": o, children: [
|
|
76
78
|
/* @__PURE__ */ b("header", { className: a.header, "data-size": t, children: [
|
|
77
|
-
/* @__PURE__ */ e(F, { loading: o, size: t, state: w, label: S, seen:
|
|
79
|
+
/* @__PURE__ */ e(F, { loading: o, size: t, state: w, label: S, seen: m, children: r }),
|
|
78
80
|
/* @__PURE__ */ e(
|
|
79
81
|
C,
|
|
80
82
|
{
|
|
81
83
|
size: "xs",
|
|
82
84
|
loading: o,
|
|
83
|
-
sender:
|
|
85
|
+
sender: h,
|
|
84
86
|
recipient: g,
|
|
85
87
|
recipientLabel: k,
|
|
86
88
|
grouped: I
|
|
87
89
|
}
|
|
88
90
|
),
|
|
89
|
-
/* @__PURE__ */ e(
|
|
91
|
+
/* @__PURE__ */ e(E, { loading: o, children: /* @__PURE__ */ e("p", { "data-size": t, className: a.summary, children: y || _ }) })
|
|
90
92
|
] }),
|
|
91
93
|
/* @__PURE__ */ e(
|
|
92
94
|
u,
|
|
@@ -95,10 +97,10 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
95
97
|
loading: o,
|
|
96
98
|
status: B,
|
|
97
99
|
updatedAt: l,
|
|
98
|
-
updatedAtLabel:
|
|
99
|
-
archivedAt:
|
|
100
|
+
updatedAtLabel: i,
|
|
101
|
+
archivedAt: n,
|
|
100
102
|
archivedAtLabel: D,
|
|
101
|
-
trashedAt:
|
|
103
|
+
trashedAt: d,
|
|
102
104
|
trashedAtLabel: L,
|
|
103
105
|
dueAt: j,
|
|
104
106
|
dueAtLabel: v,
|
|
@@ -115,5 +117,5 @@ import '../../assets/DialogListItem.css';const K = "_link_1yhch_1", O = "_border
|
|
|
115
117
|
);
|
|
116
118
|
};
|
|
117
119
|
export {
|
|
118
|
-
|
|
120
|
+
lt as DialogListItem
|
|
119
121
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { c as l } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
5
|
import "../Search/AutocompleteBase.js";
|
|
6
6
|
import "../Snackbar/useSnackbar.js";
|
|
7
7
|
import "../Icon/SvgIcon.js";
|
|
8
|
-
import { CheckboxIcon as
|
|
9
|
-
import '../../assets/DialogSelect.css';const
|
|
10
|
-
label:
|
|
11
|
-
input:
|
|
12
|
-
icon:
|
|
13
|
-
},
|
|
14
|
-
/* @__PURE__ */ r("input", { type: "checkbox", checked: t, onChange:
|
|
15
|
-
/* @__PURE__ */ r(
|
|
8
|
+
import { CheckboxIcon as s } from "../Icon/CheckboxIcon.js";
|
|
9
|
+
import '../../assets/DialogSelect.css';const a = "_label_19rag_1", n = "_input_19rag_15", p = "_icon_19rag_19", o = {
|
|
10
|
+
label: a,
|
|
11
|
+
input: n,
|
|
12
|
+
icon: p
|
|
13
|
+
}, N = ({ checked: t = !1, onChange: i, className: c }) => /* @__PURE__ */ e("label", { className: l(o.label, c), children: [
|
|
14
|
+
/* @__PURE__ */ r("input", { type: "checkbox", checked: t, onChange: i, className: o.input }),
|
|
15
|
+
/* @__PURE__ */ r(s, { hover: !0, checked: t, className: o.icon })
|
|
16
16
|
] });
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
N as DialogSelect
|
|
19
19
|
};
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/DrawerBase.css';const
|
|
4
|
-
drawer:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/DrawerBase.css';const c = "_drawer_1b2ni_1", w = "_drawerExpanded_1b2ni_5", e = {
|
|
4
|
+
drawer: c,
|
|
5
|
+
drawerExpanded: w
|
|
6
|
+
}, p = ({ placement: r = "inline", open: a = !1, className: d, children: t }) => {
|
|
7
|
+
const n = o(e.drawer, d, a && e.drawerExpanded);
|
|
8
|
+
return /* @__PURE__ */ s(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
className: n,
|
|
12
|
+
"data-placement": r,
|
|
13
|
+
"data-theme": "default",
|
|
14
|
+
"data-color": "neutral",
|
|
15
|
+
"aria-expanded": a,
|
|
16
|
+
children: t
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
};
|
|
16
20
|
export {
|
|
17
|
-
|
|
21
|
+
p as DrawerBase
|
|
18
22
|
};
|
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { useClickOutside as
|
|
5
|
-
import '../../assets/DropdownBase.css';const
|
|
6
|
-
dropdown:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as w } from "react/jsx-runtime";
|
|
2
|
+
import { c as u } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { useRef as c } from "react";
|
|
4
|
+
import { useClickOutside as l } from "../../hooks/useClickOutside.js";
|
|
5
|
+
import '../../assets/DropdownBase.css';const m = "_dropdown_1wuga_1", _ = "_dropdownExpanded_1wuga_5", f = "_drawer_1wuga_31", i = "_button_1wuga_31", d = {
|
|
6
|
+
dropdown: m,
|
|
7
|
+
dropdownExpanded: _,
|
|
8
|
+
drawer: f,
|
|
9
|
+
button: i
|
|
10
|
+
}, h = ({
|
|
10
11
|
placement: t = "left",
|
|
11
12
|
padding: a = !0,
|
|
12
|
-
open:
|
|
13
|
-
className:
|
|
14
|
-
children:
|
|
15
|
-
onClose:
|
|
13
|
+
open: r = !1,
|
|
14
|
+
className: n,
|
|
15
|
+
children: e,
|
|
16
|
+
onClose: s
|
|
16
17
|
}) => {
|
|
17
|
-
const o =
|
|
18
|
-
|
|
18
|
+
const o = c(null);
|
|
19
|
+
l(o, s);
|
|
20
|
+
const p = u(d.dropdown, n, r && d.dropdownExpanded);
|
|
21
|
+
return /* @__PURE__ */ w(
|
|
19
22
|
"div",
|
|
20
23
|
{
|
|
21
24
|
ref: o,
|
|
22
|
-
className: p
|
|
25
|
+
className: p,
|
|
23
26
|
"data-theme": "default",
|
|
24
27
|
"data-color": "neutral",
|
|
25
28
|
"data-shadow": "md",
|
|
26
29
|
"data-placement": t,
|
|
27
30
|
"data-padding": a,
|
|
28
|
-
"aria-expanded": e,
|
|
29
31
|
role: "menu",
|
|
30
|
-
children:
|
|
32
|
+
children: e
|
|
31
33
|
}
|
|
32
34
|
);
|
|
33
35
|
};
|
|
34
36
|
export {
|
|
35
|
-
|
|
37
|
+
h as DropdownBase
|
|
36
38
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/HeaderMenu.css';const
|
|
4
|
-
menu:
|
|
5
|
-
}, u = ({
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/HeaderMenu.css';const o = "_menu_1cafh_1", r = {
|
|
4
|
+
menu: o
|
|
5
|
+
}, u = ({ className: e, children: m }) => /* @__PURE__ */ n("div", { className: s(r.menu, e), children: m });
|
|
6
6
|
export {
|
|
7
7
|
u as HeaderMenu
|
|
8
8
|
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/HeaderSearch.css';const
|
|
4
|
-
search:
|
|
5
|
-
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { c as h } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/HeaderSearch.css';const t = "_search_1czaf_1", n = "_searchExpanded_1czaf_5", e = {
|
|
4
|
+
search: t,
|
|
5
|
+
searchExpanded: n
|
|
6
|
+
}, x = ({ expanded: a = !1, className: s, children: c }) => {
|
|
7
|
+
const r = h(e.search, s, a && e.searchExpanded);
|
|
8
|
+
return /* @__PURE__ */ d("div", { className: r, children: c });
|
|
9
|
+
};
|
|
6
10
|
export {
|
|
7
|
-
|
|
11
|
+
x as HeaderSearch
|
|
8
12
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as a } from "../../index-L8X2o7IH.js";
|
|
3
3
|
import { SvgIcon as h } from "./SvgIcon.js";
|
|
4
|
-
import { iconsMap as
|
|
4
|
+
import { iconsMap as e } from "./iconsMap.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import { Skeleton as u } from "../Skeleton/Skeleton.js";
|
|
@@ -9,11 +9,11 @@ import "../Search/AutocompleteBase.js";
|
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
import '../../assets/Icon.css';const v = "_icon_3p8he_1", s = {
|
|
11
11
|
icon: v
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
const
|
|
15
|
-
return
|
|
12
|
+
}, z = ({ loading: p, name: o, size: m, color: l, theme: f, variant: d = "outline", className: t }) => {
|
|
13
|
+
var n, c;
|
|
14
|
+
const i = ((n = e[o]) == null ? void 0 : n[d]) ?? ((c = e[o]) == null ? void 0 : c.outline);
|
|
15
|
+
return i ? /* @__PURE__ */ r(u, { loading: p, variant: "circle", children: /* @__PURE__ */ r("span", { "data-size": m, "data-color": l, "data-theme": f, className: a([s.icon], t), children: /* @__PURE__ */ r(h, { svgIconComponent: i, "aria-label": o }) }) }) : /* @__PURE__ */ r("span", { className: a([s.icon], t), "aria-label": o });
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
z as Icon
|
|
19
19
|
};
|