@altinn/altinn-components 0.15.3 → 0.15.5
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/DrawerOrDropdown.css +1 -1
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/GlobalMenuBase.css +1 -1
- package/dist/assets/Header.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 +3 -3
- package/dist/components/Dropdown/DrawerOrDropdown.js +1 -1
- package/dist/components/Dropdown/DropdownBase.js +14 -14
- package/dist/components/GlobalMenu/GlobalMenuBase.js +6 -6
- package/dist/components/Header/Header.js +18 -18
- 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/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_vej3t_1{display:none}._drawer_vej3t_1[data-expanded=true]{display:block;width:100%}._drawer_vej3t_1[data-placement=bottom]{position:fixed;top:5.5rem;bottom:0;left:0;right:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dropdown_oo71i_1[data-expanded=true]{display:none}._drawer_oo71i_5[data-expanded=true]{display:block;z-index:2}@media (min-width: 1024px){._drawer_oo71i_5[data-expanded=true]{display:none}._dropdown_oo71i_1[data-expanded=true]{display:block;z-index:2}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dropdown_1hh2v_1{display:none}._dropdown_1hh2v_1[data-expanded=true]{display:block;position:absolute;z-index:2}._dropdown_1hh2v_1[data-placement=left]{left:0}._dropdown_1hh2v_1[data-placement=right]{right:0}._dropdown_1hh2v_1[data-padding=true]{padding:0 .5rem}._dropdown_1hh2v_1{min-width:16rem;max-width:24rem;margin-top:.5rem;border-radius:.375rem;overflow:hidden}._drawer_1hh2v_31 ._button_1hh2v_31{border-radius:50%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._nav_1hlpr_1{display:flex;flex-direction:column}._footer_1hlpr_6{padding:1rem .5rem;display:flex;width:100%;flex-direction:column;align-items:stretch}._drawer_1hlpr_14[data-expanded=true]{display:block;padding:.5rem;z-index:2}._dropdown_1hlpr_20[data-expanded=true]{display:none}@media (min-width: 1024px){._drawer_1hlpr_14[data-expanded=true]{display:none}._dropdown_1hlpr_20[data-expanded=true]{display:block;z-index:2}}
|
package/dist/assets/Header.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._drawer_d2s9o_1[data-expanded=true]{display:block}._dropdown_d2s9o_5[data-expanded=true]{display:none}@media (min-width: 1024px){._dropdown_d2s9o_5[data-expanded=true]{width:320px;display:block}._drawer_d2s9o_1[data-expanded=true]{display:none}}
|
|
@@ -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,15 +1,15 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { c as s } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/DrawerBase.css';const o = "
|
|
3
|
+
import '../../assets/DrawerBase.css';const o = "_drawer_vej3t_1", n = {
|
|
4
4
|
drawer: o
|
|
5
5
|
}, m = ({ placement: a = "inline", open: e = !1, className: r, children: t }) => /* @__PURE__ */ d(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
8
|
-
className: s(
|
|
8
|
+
className: s(n.drawer, r),
|
|
9
9
|
"data-placement": a,
|
|
10
10
|
"data-theme": "default",
|
|
11
11
|
"data-color": "neutral",
|
|
12
|
-
"
|
|
12
|
+
"data-expanded": e,
|
|
13
13
|
children: t
|
|
14
14
|
}
|
|
15
15
|
);
|
|
@@ -12,7 +12,7 @@ import { DrawerButton as D } from "./DrawerButton.js";
|
|
|
12
12
|
import { DrawerBody as w } from "./DrawerBody.js";
|
|
13
13
|
import "../Search/AutocompleteBase.js";
|
|
14
14
|
import "../Snackbar/useSnackbar.js";
|
|
15
|
-
import '../../assets/DrawerOrDropdown.css';const _ = "
|
|
15
|
+
import '../../assets/DrawerOrDropdown.css';const _ = "_dropdown_oo71i_1", k = "_drawer_oo71i_5", s = {
|
|
16
16
|
dropdown: _,
|
|
17
17
|
drawer: k
|
|
18
18
|
}, A = ({
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { useRef as
|
|
2
|
+
import { c as m } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import { useRef as p } from "react";
|
|
4
4
|
import { useClickOutside as c } from "../../hooks/useClickOutside.js";
|
|
5
|
-
import '../../assets/DropdownBase.css';const l = "
|
|
5
|
+
import '../../assets/DropdownBase.css';const l = "_dropdown_1hh2v_1", u = "_drawer_1hh2v_31", f = "_button_1hh2v_31", w = {
|
|
6
6
|
dropdown: l,
|
|
7
7
|
drawer: u,
|
|
8
8
|
button: f
|
|
9
|
-
},
|
|
9
|
+
}, x = ({
|
|
10
10
|
placement: t = "left",
|
|
11
|
-
padding:
|
|
12
|
-
open:
|
|
13
|
-
className:
|
|
14
|
-
children:
|
|
11
|
+
padding: d = !0,
|
|
12
|
+
open: r = !1,
|
|
13
|
+
className: a,
|
|
14
|
+
children: e,
|
|
15
15
|
onClose: n
|
|
16
16
|
}) => {
|
|
17
|
-
const o =
|
|
17
|
+
const o = p(null);
|
|
18
18
|
return c(o, n), /* @__PURE__ */ s(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
21
21
|
ref: o,
|
|
22
|
-
className:
|
|
22
|
+
className: m(w.dropdown, a),
|
|
23
23
|
"data-theme": "default",
|
|
24
24
|
"data-color": "neutral",
|
|
25
25
|
"data-shadow": "md",
|
|
26
26
|
"data-placement": t,
|
|
27
|
-
"data-padding":
|
|
28
|
-
"aria-expanded": e,
|
|
27
|
+
"data-padding": d,
|
|
29
28
|
role: "menu",
|
|
30
|
-
|
|
29
|
+
"data-expanded": r,
|
|
30
|
+
children: e
|
|
31
31
|
}
|
|
32
32
|
);
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
x as DropdownBase
|
|
36
36
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import '../../assets/GlobalMenuBase.css';const a = "
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/GlobalMenuBase.css';const a = "_nav_1hlpr_1", t = "_footer_1hlpr_6", n = "_drawer_1hlpr_14", s = "_dropdown_1hlpr_20", e = {
|
|
3
3
|
nav: a,
|
|
4
4
|
footer: t,
|
|
5
5
|
drawer: n,
|
|
6
6
|
dropdown: s
|
|
7
|
-
},
|
|
7
|
+
}, d = ({ children: o }) => /* @__PURE__ */ r("nav", { className: e.nav, "data-theme": "default", children: o }), _ = ({ children: o }) => /* @__PURE__ */ r("header", { className: e.header, children: o }), c = ({ children: o }) => /* @__PURE__ */ r("footer", { className: e.footer, children: o });
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
d as GlobalMenuBase,
|
|
10
|
+
c as GlobalMenuFooter,
|
|
11
|
+
_ as GlobalMenuHeader
|
|
12
12
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { DropdownBase as g } from "../Dropdown/DropdownBase.js";
|
|
4
4
|
import "../../index-L8X2o7IH.js";
|
|
5
5
|
import { DrawerBase as x } from "../Dropdown/DrawerBase.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { useRootContext as C } from "../RootProvider/RootProvider.js";
|
|
8
|
-
import { GlobalMenu as
|
|
8
|
+
import { GlobalMenu as t } from "../GlobalMenu/GlobalMenu.js";
|
|
9
9
|
import { HeaderBase as H } from "./HeaderBase.js";
|
|
10
10
|
import { HeaderLogo as _ } from "./HeaderLogo.js";
|
|
11
11
|
import { HeaderButton as b } from "./HeaderButton.js";
|
|
12
|
-
import { Searchbar as
|
|
12
|
+
import { Searchbar as y } from "../Search/Searchbar.js";
|
|
13
13
|
import "../Search/AutocompleteBase.js";
|
|
14
14
|
import "../Snackbar/useSnackbar.js";
|
|
15
15
|
import "../Icon/SvgIcon.js";
|
|
16
|
-
import { HeaderMenu as
|
|
17
|
-
import { HeaderSearch as
|
|
18
|
-
import '../../assets/Header.css';const
|
|
19
|
-
drawer:
|
|
20
|
-
dropdown:
|
|
21
|
-
}, O = ({ search:
|
|
22
|
-
const { currentId: o, toggleId:
|
|
16
|
+
import { HeaderMenu as B } from "./HeaderMenu.js";
|
|
17
|
+
import { HeaderSearch as N } from "./HeaderSearch.js";
|
|
18
|
+
import '../../assets/Header.css';const S = "_drawer_d2s9o_1", I = "_dropdown_d2s9o_5", s = {
|
|
19
|
+
drawer: S,
|
|
20
|
+
dropdown: I
|
|
21
|
+
}, O = ({ search: d, menu: r, currentAccount: a, logo: l = {}, badge: i }) => {
|
|
22
|
+
const { currentId: o, toggleId: n, openId: c, closeAll: m } = C(), h = () => {
|
|
23
23
|
c("search");
|
|
24
24
|
}, f = () => {
|
|
25
|
-
|
|
25
|
+
n("search");
|
|
26
26
|
}, w = () => {
|
|
27
|
-
|
|
27
|
+
n("menu");
|
|
28
28
|
};
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */ e(_, { ...l, className:
|
|
31
|
-
/* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ p(H, { currentId: o, open: o === "search" || o === "menu", onClose: m, children: [
|
|
30
|
+
/* @__PURE__ */ e(_, { ...l, className: s.logo }),
|
|
31
|
+
/* @__PURE__ */ p(B, { className: s.menu, children: [
|
|
32
32
|
/* @__PURE__ */ e(
|
|
33
33
|
b,
|
|
34
34
|
{
|
|
@@ -44,10 +44,10 @@ import '../../assets/Header.css';const N = "_drawer_ft5v3_1", S = "_dropdown_ft5
|
|
|
44
44
|
label: r == null ? void 0 : r.menuLabel
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
r && /* @__PURE__ */ e(g, { padding: !0, placement: "right", open: o === "menu", className:
|
|
47
|
+
r && /* @__PURE__ */ e(g, { padding: !0, placement: "right", open: o === "menu", className: s.dropdown, children: /* @__PURE__ */ e(t, { ...r, currentAccount: a, onClose: m }) })
|
|
48
48
|
] }),
|
|
49
|
-
|
|
50
|
-
r && /* @__PURE__ */ e(x, { open: o === "menu", className:
|
|
49
|
+
d && /* @__PURE__ */ e(N, { expanded: o === "search", children: /* @__PURE__ */ e(y, { ...d, expanded: o === "search", onClose: f, onFocus: h }) }),
|
|
50
|
+
r && /* @__PURE__ */ e(x, { open: o === "menu", className: s.drawer, children: /* @__PURE__ */ e(t, { ...r, currentAccount: a }) })
|
|
51
51
|
] });
|
|
52
52
|
};
|
|
53
53
|
export {
|
|
@@ -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
|
};
|