@altinn/altinn-components 0.28.1 → 0.29.0

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.
Files changed (146) hide show
  1. package/dist/assets/Badge.css +1 -1
  2. package/dist/assets/Button.css +1 -1
  3. package/dist/assets/ButtonBase.css +1 -1
  4. package/dist/assets/ButtonIcon.css +1 -1
  5. package/dist/assets/ComboButton.css +1 -1
  6. package/dist/assets/Flex.css +1 -1
  7. package/dist/assets/Grid.css +1 -1
  8. package/dist/assets/Heading.css +1 -1
  9. package/dist/assets/List.css +1 -0
  10. package/dist/assets/ListItemControls.css +1 -1
  11. package/dist/assets/ListItemHeader.css +1 -1
  12. package/dist/assets/MenuItem.css +1 -0
  13. package/dist/assets/MenuItemBase.css +1 -1
  14. package/dist/assets/MenuItemLabel.css +1 -1
  15. package/dist/assets/MenuSearch.css +1 -1
  16. package/dist/assets/SearchField.css +1 -1
  17. package/dist/assets/SearchbarField.css +1 -0
  18. package/dist/assets/Section.css +1 -0
  19. package/dist/components/Account/AccountList.js +24 -0
  20. package/dist/components/Account/AccountListItem.js +58 -0
  21. package/dist/components/Account/AccountListItemControls.js +77 -0
  22. package/dist/components/Account/AccountMenu.js +56 -0
  23. package/dist/components/Account/index.js +8 -0
  24. package/dist/components/Badge/Badge.js +13 -3
  25. package/dist/components/Button/Button.js +49 -44
  26. package/dist/components/Button/ButtonBase.js +17 -15
  27. package/dist/components/Button/ButtonIcon.js +13 -7
  28. package/dist/components/Button/ComboButton.js +49 -33
  29. package/dist/components/Button/IconButton.js +31 -27
  30. package/dist/components/ContextMenu/ContextMenu.js +45 -48
  31. package/dist/components/Forms/SearchField.js +34 -0
  32. package/dist/components/Forms/index.js +14 -12
  33. package/dist/components/GlobalMenu/CurrentAccount.js +28 -0
  34. package/dist/components/GlobalMenu/GlobalMenu.js +70 -75
  35. package/dist/components/GlobalMenu/index.js +6 -8
  36. package/dist/components/Header/HeaderButton.js +1 -1
  37. package/dist/components/Icon/Icon.js +21 -22
  38. package/dist/components/Icon/IconOrAvatar.js +12 -12
  39. package/dist/components/List/List.js +9 -7
  40. package/dist/components/List/ListItemControls.js +1 -1
  41. package/dist/components/List/ListItemHeader.js +64 -57
  42. package/dist/components/List/ListItemLabel.js +36 -28
  43. package/dist/components/List/ListItemLink.js +32 -32
  44. package/dist/components/Menu/MenuItem.js +41 -41
  45. package/dist/components/Menu/MenuItemBase.js +33 -54
  46. package/dist/components/Menu/MenuItemLabel.js +58 -20
  47. package/dist/components/Menu/MenuOption.js +32 -41
  48. package/dist/components/Menu/MenuSearch.js +24 -43
  49. package/dist/components/Menu/index.js +24 -23
  50. package/dist/components/Page/Flex.js +5 -5
  51. package/dist/components/Page/Grid.js +24 -26
  52. package/dist/components/Page/Section.js +7 -5
  53. package/dist/components/Page/index.js +20 -22
  54. package/dist/components/Searchbar/Searchbar.js +6 -6
  55. package/dist/components/Searchbar/{SearchField.js → SearchbarField.js} +8 -8
  56. package/dist/components/Searchbar/index.js +6 -6
  57. package/dist/components/Settings/SettingsItem.js +27 -30
  58. package/dist/components/Toolbar/ToolbarAccountMenu.js +6 -6
  59. package/dist/components/Toolbar/ToolbarSearch.js +22 -43
  60. package/dist/components/Typography/Heading.js +7 -7
  61. package/dist/components/index.js +391 -390
  62. package/dist/index.js +397 -396
  63. package/dist/spacing.css +44 -8
  64. package/dist/types/lib/components/Account/AccountList.d.ts +10 -0
  65. package/dist/types/lib/components/Account/AccountList.stories.d.ts +18 -0
  66. package/dist/types/lib/components/Account/AccountListItem.d.ts +18 -0
  67. package/dist/types/lib/components/{Profile → Account}/AccountListItem.stories.d.ts +16 -7
  68. package/dist/types/lib/components/Account/AccountListItemControls.d.ts +17 -0
  69. package/dist/types/lib/components/Account/AccountMenu.d.ts +22 -0
  70. package/dist/types/lib/components/Account/AccountMenu.stories.d.ts +15 -0
  71. package/dist/types/lib/components/{Profile → Account}/index.d.ts +1 -0
  72. package/dist/types/lib/components/Badge/Badge.d.ts +4 -1
  73. package/dist/types/lib/components/Badge/Badge.stories.d.ts +1 -1
  74. package/dist/types/lib/components/Button/Button.d.ts +5 -5
  75. package/dist/types/lib/components/Button/Button.stories.d.ts +2 -1
  76. package/dist/types/lib/components/Button/ButtonBase.d.ts +2 -1
  77. package/dist/types/lib/components/Button/ButtonIcon.d.ts +5 -5
  78. package/dist/types/lib/components/Button/ButtonLabel.d.ts +2 -2
  79. package/dist/types/lib/components/Button/ComboButton.d.ts +6 -4
  80. package/dist/types/lib/components/Button/IconButton.d.ts +4 -4
  81. package/dist/types/lib/components/ContextMenu/ContextMenu.d.ts +1 -3
  82. package/dist/types/lib/components/ContextMenu/ContextMenu.stories.d.ts +2 -1
  83. package/dist/types/lib/components/Forms/SearchField.d.ts +9 -0
  84. package/dist/types/lib/components/Forms/SearchField.stories.d.ts +16 -0
  85. package/dist/types/lib/components/Forms/index.d.ts +1 -0
  86. package/dist/types/lib/components/GlobalMenu/{AccountButton.d.ts → CurrentAccount.d.ts} +3 -2
  87. package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +4 -4
  88. package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +8 -11
  89. package/dist/types/lib/components/GlobalMenu/index.d.ts +1 -2
  90. package/dist/types/lib/components/Header/Header.stories.d.ts +8 -7
  91. package/dist/types/lib/components/Header/LocaleSwitcher.stories.d.ts +3 -1
  92. package/dist/types/lib/components/Icon/Icon.d.ts +1 -3
  93. package/dist/types/lib/components/Layout/Layout.stories.d.ts +1 -0
  94. package/dist/types/lib/components/List/List.d.ts +1 -1
  95. package/dist/types/lib/components/List/List.stories.d.ts +1 -1
  96. package/dist/types/lib/components/List/ListItem.d.ts +24 -1
  97. package/dist/types/lib/components/List/ListItem.stories.d.ts +1 -1
  98. package/dist/types/lib/components/List/ListItemLabel.d.ts +2 -1
  99. package/dist/types/lib/components/List/ListItemLink.d.ts +3 -5
  100. package/dist/types/lib/components/List/Specimens.stories.d.ts +1 -1
  101. package/dist/types/lib/components/Menu/Menu.stories.d.ts +5 -0
  102. package/dist/types/lib/components/Menu/MenuItem.d.ts +7 -9
  103. package/dist/types/lib/components/Menu/MenuItemBase.d.ts +2 -5
  104. package/dist/types/lib/components/Menu/MenuItemLabel.d.ts +6 -4
  105. package/dist/types/lib/components/Menu/MenuSearch.d.ts +1 -1
  106. package/dist/types/lib/components/Menu/MenuSearch.stories.d.ts +1 -1
  107. package/dist/types/lib/components/Page/Breadcrumbs.stories.d.ts +19 -0
  108. package/dist/types/lib/components/Page/BreadcrumbsLink.d.ts +1 -1
  109. package/dist/types/lib/components/Page/Flex.d.ts +1 -1
  110. package/dist/types/lib/components/Page/Flex.stories.d.ts +17 -0
  111. package/dist/types/lib/components/Page/Grid.d.ts +5 -8
  112. package/dist/types/lib/components/Page/Grid.stories.d.ts +15 -0
  113. package/dist/types/lib/components/Page/List.stories.d.ts +17 -0
  114. package/dist/types/lib/components/Page/Section.d.ts +2 -1
  115. package/dist/types/lib/components/Page/index.d.ts +0 -1
  116. package/dist/types/lib/components/Search/SearchItem.d.ts +2 -2
  117. package/dist/types/lib/components/Searchbar/Searchbar.d.ts +2 -2
  118. package/dist/types/lib/components/Searchbar/{SearchField.d.ts → SearchbarField.d.ts} +2 -2
  119. package/dist/types/lib/components/Searchbar/index.d.ts +1 -1
  120. package/dist/types/lib/components/Settings/SettingsItem.d.ts +5 -6
  121. package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +8 -7
  122. package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +1 -1
  123. package/dist/types/lib/components/Toolbar/ToolbarSearch.d.ts +2 -5
  124. package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +1 -0
  125. package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +7 -8
  126. package/dist/types/lib/components/Typography/Heading.d.ts +1 -1
  127. package/dist/types/lib/components/index.d.ts +1 -1
  128. package/dist/types/lib/stories/Profile/Accounts.stories.d.ts +6 -11
  129. package/package.json +1 -1
  130. package/dist/assets/AccountButton.css +0 -1
  131. package/dist/assets/IconButton.css +0 -1
  132. package/dist/assets/MenuOption.css +0 -1
  133. package/dist/assets/ToolbarSearch.css +0 -1
  134. package/dist/components/GlobalMenu/AccountButton.js +0 -58
  135. package/dist/components/GlobalMenu/AccountMenu.js +0 -72
  136. package/dist/components/Page/PageHeader.js +0 -55
  137. package/dist/components/Profile/AccountList.js +0 -12
  138. package/dist/components/Profile/AccountListItem.js +0 -86
  139. package/dist/components/Profile/index.js +0 -6
  140. package/dist/types/lib/components/GlobalMenu/AccountMenu.d.ts +0 -27
  141. package/dist/types/lib/components/GlobalMenu/AccountMenu.stories.d.ts +0 -19
  142. package/dist/types/lib/components/Menu/Examples.stories.d.ts +0 -97
  143. package/dist/types/lib/components/Page/PageHeader.d.ts +0 -18
  144. package/dist/types/lib/components/Page/PageHeader.stories.d.ts +0 -16
  145. package/dist/types/lib/components/Profile/AccountList.d.ts +0 -5
  146. package/dist/types/lib/components/Profile/AccountListItem.d.ts +0 -12
@@ -1,24 +1,62 @@
1
- import { jsx as e, jsxs as m, Fragment as d } from "react/jsx-runtime";
2
- import { c as p } from "../../index-L8X2o7IH.js";
3
- import '../../assets/MenuItemLabel.css';const _ = "_label_10xs5_1", x = "_title_10xs5_19", b = "_description_10xs5_42", s = {
4
- label: _,
5
- title: x,
6
- description: b
7
- }, u = ({
8
- className: l,
9
- size: t = "sm",
10
- label: i,
11
- title: n,
12
- weight: c,
13
- description: o,
14
- children: a
15
- }) => {
16
- const r = c || t === "lg" ? "medium" : "normal";
17
- return /* @__PURE__ */ e("span", { className: p(s.label, l), "data-size": t, children: a || /* @__PURE__ */ m(d, { children: [
18
- /* @__PURE__ */ e("strong", { className: s.title, "data-size": t, "data-weight": r, children: n || i }),
19
- /* @__PURE__ */ e("span", { className: s.description, "data-size": t, children: o })
1
+ import { jsx as o, jsxs as c, Fragment as d } from "react/jsx-runtime";
2
+ import { c as g } from "../../index-L8X2o7IH.js";
3
+ import { isValidElement as h } from "react";
4
+ import { Badge as b } from "../Badge/Badge.js";
5
+ import "../RootProvider/RootProvider.js";
6
+ import { Heading as f } from "../Typography/Heading.js";
7
+ import "../Searchbar/AutocompleteBase.js";
8
+ import "../Snackbar/useSnackbar.js";
9
+ import '../../assets/MenuItemLabel.css';const x = "_label_mk4ho_1", y = "_title_mk4ho_20", p = {
10
+ label: x,
11
+ title: y
12
+ }, s = (r) => typeof r == "object" && r !== null && "children" in r;
13
+ function u(r) {
14
+ return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null || h(r);
15
+ }
16
+ const _ = (r) => {
17
+ const n = {
18
+ as: "span"
19
+ };
20
+ return s(r) ? { ...n, ...r } : u(r) ? {
21
+ ...n,
22
+ children: r
23
+ } : null;
24
+ }, P = (r) => {
25
+ const n = {
26
+ as: "span",
27
+ weight: "normal",
28
+ variant: "subtle"
29
+ };
30
+ return s(r) ? { ...n, ...r } : u(r) ? {
31
+ ...n,
32
+ children: r
33
+ } : null;
34
+ };
35
+ function T(r) {
36
+ if (typeof r == "string")
37
+ return r;
38
+ if (s(r))
39
+ return r.children;
40
+ }
41
+ const A = ({ className: r, size: n = "sm", title: i, badge: l, description: m, children: a }) => {
42
+ const t = i && _(i), e = m && P(m);
43
+ return /* @__PURE__ */ o("span", { className: g(p.label, r), "data-size": n, children: a || /* @__PURE__ */ c(d, { children: [
44
+ t && /* @__PURE__ */ c(
45
+ f,
46
+ {
47
+ ...t,
48
+ className: p.title,
49
+ weight: t != null && t.weight || n === "lg" ? "medium" : "normal",
50
+ children: [
51
+ t.children,
52
+ l && /* @__PURE__ */ o(b, { ...l })
53
+ ]
54
+ }
55
+ ),
56
+ e && /* @__PURE__ */ o(f, { ...e, size: e.size || "xxs" })
20
57
  ] }) });
21
58
  };
22
59
  export {
23
- u as MenuItemLabel
60
+ A as MenuItemLabel,
61
+ T as getAriaLabelFromTitle
24
62
  };
@@ -1,49 +1,40 @@
1
- import { jsxs as u, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as x, jsx as o } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { MenuItemBase as f } from "./MenuItemBase.js";
6
- import { MenuItemLabel as x } from "./MenuItemLabel.js";
5
+ import { MenuItemBase as d } from "./MenuItemBase.js";
6
+ import { MenuItemLabel as I } from "./MenuItemLabel.js";
7
7
  import "../Searchbar/AutocompleteBase.js";
8
8
  import "../Snackbar/useSnackbar.js";
9
- import { CheckboxIcon as N } from "../Icon/CheckboxIcon.js";
10
- import { RadioIcon as g } from "../Icon/RadioIcon.js";
11
- import '../../assets/MenuOption.css';const I = "_base_igy0i_1", d = "_label_igy0i_9", h = "_input_igy0i_18", y = "_icon_igy0i_23", o = {
12
- base: I,
13
- label: d,
14
- input: h,
15
- icon: y
16
- }, A = ({
17
- size: e = "md",
9
+ import { Label as M } from "../Forms/Label.js";
10
+ import { Input as b } from "../Forms/Input.js";
11
+ const y = ({
12
+ size: r = "md",
18
13
  type: t,
19
- name: a,
20
- value: n,
21
- label: r,
22
- title: m,
23
- description: l,
24
- badge: c,
25
- checked: i = !1,
26
- disabled: p,
27
- onChange: b,
28
- ..._
29
- }) => /* @__PURE__ */ u(
30
- f,
31
- {
32
- className: o.base,
33
- disabled: p,
34
- selected: i,
35
- size: e,
36
- badge: c,
37
- as: "label",
38
- ..._,
39
- children: [
40
- /* @__PURE__ */ s("input", { className: o.input, name: a, value: n, type: t, checked: i, onChange: b }),
41
- t === "checkbox" && /* @__PURE__ */ s(N, { checked: i, hover: !0, className: o.icon }),
42
- t === "radio" && /* @__PURE__ */ s(g, { checked: i, hover: !0, className: o.icon }),
43
- /* @__PURE__ */ s(x, { className: o.label, title: m, description: l, size: e, children: r })
44
- ]
45
- }
46
- );
14
+ name: e,
15
+ value: i,
16
+ label: p,
17
+ title: n,
18
+ description: s,
19
+ badge: f,
20
+ checked: m = !1,
21
+ disabled: l,
22
+ onChange: a,
23
+ ...u
24
+ }) => /* @__PURE__ */ x(d, { disabled: l, selected: m, size: r, as: M, ...u, children: [
25
+ /* @__PURE__ */ o(
26
+ b,
27
+ {
28
+ size: "xs",
29
+ name: e,
30
+ value: i,
31
+ type: t,
32
+ checked: m,
33
+ onChange: a
34
+ }
35
+ ),
36
+ /* @__PURE__ */ o(I, { title: n, description: s, size: r, badge: f, children: p })
37
+ ] });
47
38
  export {
48
- A as MenuOption
39
+ y as MenuOption
49
40
  };
@@ -1,51 +1,32 @@
1
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
- import { Icon as m } from "../Icon/Icon.js";
1
+ import { jsx as m } from "react/jsx-runtime";
3
2
  import "../../index-L8X2o7IH.js";
4
3
  import "react";
5
- import { IconButton as l } from "../Button/IconButton.js";
6
4
  import "../RootProvider/RootProvider.js";
7
5
  import "../Searchbar/AutocompleteBase.js";
8
6
  import "../Snackbar/useSnackbar.js";
9
- import { S as p } from "../../MagnifyingGlass-3Ln1MufI.js";
10
- import { S as u } from "../../XMark-DIqxCTTQ.js";
11
- import '../../assets/MenuSearch.css';const f = "_field_8g6tu_1", _ = "_icon_8g6tu_6", g = "_input_8g6tu_15", d = "_clear_8g6tu_31", t = {
12
- field: f,
13
- icon: _,
14
- input: g,
15
- clear: d
16
- }, I = ({
17
- value: i,
7
+ import { SearchField as c } from "../Forms/SearchField.js";
8
+ import '../../assets/MenuSearch.css';const l = "_field_99cd6_1", p = {
9
+ field: l
10
+ }, _ = ({
18
11
  name: r,
19
- placeholder: s = "Search",
20
- clearButtonAltText: e = "Clear search",
21
- onChange: n,
22
- onClear: c
23
- }) => /* @__PURE__ */ a("div", { className: t.field, children: [
24
- /* @__PURE__ */ o(
25
- "input",
26
- {
27
- type: "search",
28
- value: i,
29
- name: r,
30
- placeholder: s,
31
- className: t.input,
32
- onChange: n,
33
- autoComplete: "off"
34
- }
35
- ),
36
- /* @__PURE__ */ o(m, { svgElement: p, className: t.icon }),
37
- c && !!i && /* @__PURE__ */ o(
38
- l,
39
- {
40
- icon: u,
41
- variant: "solid",
42
- size: "custom",
43
- className: t.clear,
44
- onClick: c,
45
- iconAltText: e
46
- }
47
- )
48
- ] });
12
+ value: e,
13
+ placeholder: i = "Search",
14
+ clearButtonAltText: o = "Clear search",
15
+ onChange: t,
16
+ onClear: s
17
+ }) => /* @__PURE__ */ m(
18
+ c,
19
+ {
20
+ size: "xs",
21
+ name: r,
22
+ value: e,
23
+ placeholder: i,
24
+ onChange: t,
25
+ onClear: s,
26
+ clearButtonAltText: o,
27
+ className: p.field
28
+ }
29
+ );
49
30
  export {
50
- I as MenuSearch
31
+ _ as MenuSearch
51
32
  };
@@ -1,26 +1,27 @@
1
- import { MenuItemBase as r } from "./MenuItemBase.js";
2
- import { MenuItemLabel as m } from "./MenuItemLabel.js";
3
- import { MenuItemIcon as u } from "./MenuItemIcon.js";
4
- import { MenuItem as M } from "./MenuItem.js";
5
- import { MenuInputField as x } from "./MenuInputField.js";
6
- import { MenuOption as a } from "./MenuOption.js";
7
- import { MenuSearch as i } from "./MenuSearch.js";
8
- import { MenuHeader as c } from "./MenuHeader.js";
9
- import { MenuItems as l } from "./MenuItems.js";
10
- import { MenuBase as b, MenuList as h, MenuListItem as F } from "./MenuBase.js";
11
- import { Menu as O } from "./Menu.js";
1
+ import { MenuItemBase as o } from "./MenuItemBase.js";
2
+ import { MenuItemLabel as m, getAriaLabelFromTitle as n } from "./MenuItemLabel.js";
3
+ import { MenuItemIcon as p } from "./MenuItemIcon.js";
4
+ import { MenuItem as f } from "./MenuItem.js";
5
+ import { MenuInputField as I } from "./MenuInputField.js";
6
+ import { MenuOption as i } from "./MenuOption.js";
7
+ import { MenuSearch as l } from "./MenuSearch.js";
8
+ import { MenuHeader as b } from "./MenuHeader.js";
9
+ import { MenuItems as d } from "./MenuItems.js";
10
+ import { MenuBase as F, MenuList as g, MenuListItem as h } from "./MenuBase.js";
11
+ import { Menu as H } from "./Menu.js";
12
12
  export {
13
- O as Menu,
14
- b as MenuBase,
15
- c as MenuHeader,
16
- x as MenuInputField,
17
- M as MenuItem,
18
- r as MenuItemBase,
19
- u as MenuItemIcon,
13
+ H as Menu,
14
+ F as MenuBase,
15
+ b as MenuHeader,
16
+ I as MenuInputField,
17
+ f as MenuItem,
18
+ o as MenuItemBase,
19
+ p as MenuItemIcon,
20
20
  m as MenuItemLabel,
21
- l as MenuItems,
22
- h as MenuList,
23
- F as MenuListItem,
24
- a as MenuOption,
25
- i as MenuSearch
21
+ d as MenuItems,
22
+ g as MenuList,
23
+ h as MenuListItem,
24
+ i as MenuOption,
25
+ l as MenuSearch,
26
+ n as getAriaLabelFromTitle
26
27
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as b } from "react/jsx-runtime";
2
2
  import { c as h } from "../../index-L8X2o7IH.js";
3
- import '../../assets/Flex.css';const j = "_flex_144b4_1", u = {
3
+ import '../../assets/Flex.css';const j = "_flex_1b3x8_1", u = {
4
4
  flex: j
5
5
  }, C = ({
6
6
  as: a = "div",
@@ -16,15 +16,15 @@ import '../../assets/Flex.css';const j = "_flex_144b4_1", u = {
16
16
  padding: c,
17
17
  margin: f,
18
18
  bleed: m = !1,
19
- className: p,
20
- style: x,
19
+ className: x,
20
+ style: p,
21
21
  children: g,
22
22
  ..._
23
23
  }) => /* @__PURE__ */ b(
24
24
  a,
25
25
  {
26
- className: h(u.flex, p),
27
- style: x,
26
+ className: h(u.flex, x),
27
+ style: p,
28
28
  "data-size": e,
29
29
  "data-color": t,
30
30
  "data-theme": n,
@@ -1,34 +1,32 @@
1
- import { jsx as g } from "react/jsx-runtime";
1
+ import { jsx as m } from "react/jsx-runtime";
2
2
  import { c as p } from "../../index-L8X2o7IH.js";
3
- import '../../assets/Grid.css';const l = "_grid_alo99_1", f = {
4
- grid: l
5
- }, C = ({
3
+ import '../../assets/Grid.css';const g = "_grid_aha67_1", l = {
4
+ grid: g
5
+ }, h = ({
6
6
  as: a = "div",
7
- theme: t,
8
- color: o,
9
- cols: r = 2,
10
- reverse: d = !1,
11
- spacing: s,
12
- padding: e,
13
- margin: n,
14
- className: i,
15
- style: c,
16
- children: m
17
- }) => /* @__PURE__ */ g(
7
+ size: t,
8
+ theme: o,
9
+ color: r,
10
+ cols: s = 2,
11
+ reverse: e = !1,
12
+ spacing: d,
13
+ className: c,
14
+ style: i,
15
+ children: n
16
+ }) => /* @__PURE__ */ m(
18
17
  a,
19
18
  {
20
- className: p(f.grid, i),
21
- style: c,
22
- "data-theme": t,
23
- "data-color": o,
24
- "data-cols": r,
25
- "data-reverse": d,
26
- "data-spacing": s,
27
- "data-padding": e,
28
- "data-margin": n,
29
- children: m
19
+ className: p(l.grid, c),
20
+ style: i,
21
+ "data-theme": o,
22
+ "data-size": t,
23
+ "data-color": r,
24
+ "data-cols": s,
25
+ "data-reverse": e,
26
+ "data-spacing": d,
27
+ children: n
30
28
  }
31
29
  );
32
30
  export {
33
- C as Grid
31
+ h as Grid
34
32
  };
@@ -1,11 +1,13 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import "../../index-L8X2o7IH.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { c as m } from "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
5
  import "../Searchbar/AutocompleteBase.js";
6
6
  import "../Snackbar/useSnackbar.js";
7
- import { Flex as p } from "./Flex.js";
8
- const j = ({ as: o = "section", direction: r = "col", children: t, ...i }) => /* @__PURE__ */ m(p, { as: o, direction: r, ...i, children: t });
7
+ import { Flex as n } from "./Flex.js";
8
+ import '../../assets/Section.css';const p = "_section_1w6kc_1", l = {
9
+ section: p
10
+ }, u = ({ as: o = "section", direction: t = "col", variant: c, className: s, children: e, ...i }) => /* @__PURE__ */ r(n, { as: o, direction: t, theme: c, className: m(l.section, s), ...i, children: e });
9
11
  export {
10
- j as Section
12
+ u as Section
11
13
  };
@@ -1,30 +1,28 @@
1
1
  import { PageBase as e } from "./PageBase.js";
2
2
  import { PageNav as m } from "./PageNav.js";
3
- import { PageMenu as x } from "./PageMenu.js";
3
+ import { PageMenu as a } from "./PageMenu.js";
4
4
  import { PageTabs as p } from "./PageTabs.js";
5
- import { PageHeader as n } from "./PageHeader.js";
6
- import { PageDetails as g } from "./PageDetails.js";
7
- import { Flex as P } from "./Flex.js";
8
- import { Grid as u } from "./Grid.js";
9
- import { Breadcrumbs as b } from "./Breadcrumbs.js";
10
- import { BreadcrumbsLink as l } from "./BreadcrumbsLink.js";
11
- import { Section as k } from "./Section.js";
12
- import { ContactSection as A } from "./ContactSection.js";
13
- import { ContactButtons as F } from "./ContactButtons.js";
14
- import { AccordionSection as H } from "./AccordionSection.js";
5
+ import { PageDetails as n } from "./PageDetails.js";
6
+ import { Flex as s } from "./Flex.js";
7
+ import { Grid as P } from "./Grid.js";
8
+ import { Breadcrumbs as u } from "./Breadcrumbs.js";
9
+ import { BreadcrumbsLink as b } from "./BreadcrumbsLink.js";
10
+ import { Section as l } from "./Section.js";
11
+ import { ContactSection as k } from "./ContactSection.js";
12
+ import { ContactButtons as A } from "./ContactButtons.js";
13
+ import { AccordionSection as F } from "./AccordionSection.js";
15
14
  export {
16
- H as AccordionSection,
17
- b as Breadcrumbs,
18
- l as BreadcrumbsLink,
19
- F as ContactButtons,
20
- A as ContactSection,
21
- P as Flex,
22
- u as Grid,
15
+ F as AccordionSection,
16
+ u as Breadcrumbs,
17
+ b as BreadcrumbsLink,
18
+ A as ContactButtons,
19
+ k as ContactSection,
20
+ s as Flex,
21
+ P as Grid,
23
22
  e as PageBase,
24
- g as PageDetails,
25
- n as PageHeader,
26
- x as PageMenu,
23
+ n as PageDetails,
24
+ a as PageMenu,
27
25
  m as PageNav,
28
26
  p as PageTabs,
29
- k as Section
27
+ l as Section
30
28
  };
@@ -2,10 +2,10 @@ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { SearchbarBase as f } from "./SearchbarBase.js";
6
- import { SearchField as s } from "./SearchField.js";
5
+ import { SearchbarBase as a } from "./SearchbarBase.js";
6
+ import { SearchbarField as f } from "./SearchbarField.js";
7
7
  import "./AutocompleteBase.js";
8
- import { Autocomplete as a } from "./Autocomplete.js";
8
+ import { Autocomplete as s } from "./Autocomplete.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
10
  const B = ({
11
11
  className: i,
@@ -14,9 +14,9 @@ const B = ({
14
14
  onClose: m,
15
15
  tabIndex: p,
16
16
  ...c
17
- }) => /* @__PURE__ */ e(f, { className: i, expanded: o, autocomplete: !!r, children: [
18
- /* @__PURE__ */ t(s, { ...c, expanded: o, onClose: m, tabIndex: p }),
19
- r && /* @__PURE__ */ t(a, { ...r, expanded: o, onSelect: m })
17
+ }) => /* @__PURE__ */ e(a, { className: i, expanded: o, autocomplete: !!r, children: [
18
+ /* @__PURE__ */ t(f, { ...c, expanded: o, onClose: m, tabIndex: p }),
19
+ r && /* @__PURE__ */ t(s, { ...r, expanded: o, onSelect: m })
20
20
  ] });
21
21
  export {
22
22
  B as Searchbar
@@ -9,7 +9,7 @@ import "./AutocompleteBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
10
  import { S as N } from "../../MagnifyingGlass-3Ln1MufI.js";
11
11
  import { S as l } from "../../XMark-DIqxCTTQ.js";
12
- import '../../assets/SearchField.css';const v = "_field_ljqfn_1", T = "_icon_ljqfn_10", A = "_input_ljqfn_17", K = "_dismiss_ljqfn_41", M = "_clear_ljqfn_47", s = {
12
+ import '../../assets/SearchbarField.css';const v = "_field_ljqfn_1", T = "_icon_ljqfn_10", A = "_input_ljqfn_17", K = "_dismiss_ljqfn_41", M = "_clear_ljqfn_47", s = {
13
13
  field: v,
14
14
  icon: T,
15
15
  input: A,
@@ -25,9 +25,9 @@ import '../../assets/SearchField.css';const v = "_field_ljqfn_1", T = "_icon_ljq
25
25
  clearButtonAltText: _ = "Clear search",
26
26
  onFocus: h,
27
27
  onBlur: x,
28
- onChange: j,
29
- onClear: y,
30
- onClose: b,
28
+ onChange: b,
29
+ onClear: j,
30
+ onClose: y,
31
31
  onEnter: i,
32
32
  tabIndex: q
33
33
  }) => {
@@ -44,7 +44,7 @@ import '../../assets/SearchField.css';const v = "_field_ljqfn_1", T = "_icon_ljq
44
44
  onBlur: x,
45
45
  name: f,
46
46
  value: a,
47
- onChange: j,
47
+ onChange: b,
48
48
  placeholder: u,
49
49
  className: s.input,
50
50
  onKeyUp: S,
@@ -64,7 +64,7 @@ import '../../assets/SearchField.css';const v = "_field_ljqfn_1", T = "_icon_ljq
64
64
  variant: "solid",
65
65
  size: "custom",
66
66
  className: s.clear,
67
- onClick: y,
67
+ onClick: j,
68
68
  dataTestId: "search-button-clear",
69
69
  iconAltText: _
70
70
  }
@@ -74,7 +74,7 @@ import '../../assets/SearchField.css';const v = "_field_ljqfn_1", T = "_icon_ljq
74
74
  icon: l,
75
75
  variant: "text",
76
76
  className: s.dismiss,
77
- onClick: b,
77
+ onClick: y,
78
78
  dataTestId: "search-button-close",
79
79
  iconAltText: d
80
80
  }
@@ -82,5 +82,5 @@ import '../../assets/SearchField.css';const v = "_field_ljqfn_1", T = "_icon_ljq
82
82
  ] });
83
83
  };
84
84
  export {
85
- H as SearchField
85
+ H as SearchbarField
86
86
  };
@@ -1,23 +1,23 @@
1
1
  import { Searchbar as r } from "./Searchbar.js";
2
2
  import { SearchbarBase as m } from "./SearchbarBase.js";
3
- import { SearchField as f } from "./SearchField.js";
3
+ import { SearchbarField as f } from "./SearchbarField.js";
4
4
  import { AutocompleteBase as a } from "./AutocompleteBase.js";
5
5
  import { AutocompleteGroup as u } from "./AutocompleteGroup.js";
6
6
  import { Autocomplete as s } from "./Autocomplete.js";
7
- import { AutocompleteItem as A } from "./AutocompleteItem.js";
8
- import { ScopeListItem as b } from "./ScopeListItem.js";
7
+ import { AutocompleteItem as b } from "./AutocompleteItem.js";
8
+ import { ScopeListItem as I } from "./ScopeListItem.js";
9
9
  import { SuggestListItem as i } from "./SuggestListItem.js";
10
10
  import { QueryItem as g, QueryLabel as y } from "./QueryLabel.js";
11
11
  export {
12
12
  s as Autocomplete,
13
13
  a as AutocompleteBase,
14
14
  u as AutocompleteGroup,
15
- A as AutocompleteItem,
15
+ b as AutocompleteItem,
16
16
  g as QueryItem,
17
17
  y as QueryLabel,
18
- b as ScopeListItem,
19
- f as SearchField,
18
+ I as ScopeListItem,
20
19
  r as Searchbar,
21
20
  m as SearchbarBase,
21
+ f as SearchbarField,
22
22
  i as SuggestListItem
23
23
  };
@@ -1,37 +1,34 @@
1
- import { jsxs as s, jsx as e, Fragment as o } from "react/jsx-runtime";
1
+ import { jsxs as L, jsx as i } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { ListItemBase as g } from "../List/ListItemBase.js";
6
- import { ListItemHeader as x } from "../List/ListItemHeader.js";
7
- import { ListItemLabel as _ } from "../List/ListItemLabel.js";
8
- import { Heading as i } from "../Typography/Heading.js";
5
+ import { ListItemBase as _ } from "../List/ListItemBase.js";
6
+ import { ListItemHeader as f } from "../List/ListItemHeader.js";
7
+ import { ListItemLabel as h } from "../List/ListItemLabel.js";
8
+ import { getAriaLabelFromTitle as j } from "../Menu/MenuItemLabel.js";
9
9
  import "../Searchbar/AutocompleteBase.js";
10
10
  import "../Snackbar/useSnackbar.js";
11
- import '../../assets/SettingsItem.css';const f = "_item_jqpsx_1", L = "_label_jqpsx_12", t = {
12
- item: f,
13
- label: L
14
- }, F = ({
15
- color: n,
16
- size: h,
17
- expanded: a,
18
- icon: c,
19
- label: p,
20
- title: r,
21
- value: m,
22
- description: l,
23
- children: d,
24
- ...b
25
- }) => /* @__PURE__ */ s(g, { className: t.item, color: n, size: h, expanded: a, children: [
26
- /* @__PURE__ */ e(x, { ariaLabel: r, ...b, className: t.header, icon: c, children: /* @__PURE__ */ e(_, { className: t.label, children: r && m ? /* @__PURE__ */ s(o, { children: [
27
- /* @__PURE__ */ e(i, { as: "h3", size: "xs", variant: "subtle", weight: "normal", children: r }),
28
- /* @__PURE__ */ e(i, { weight: "normal", size: "sm", children: m })
29
- ] }) : r ? /* @__PURE__ */ s(o, { children: [
30
- /* @__PURE__ */ e(i, { weight: "normal", size: "sm", children: r || m }),
31
- l && /* @__PURE__ */ e(i, { as: "h3", size: "xs", variant: "subtle", weight: "normal", children: l })
32
- ] }) : p }) }),
33
- a && d
34
- ] });
11
+ import '../../assets/SettingsItem.css';const x = "_item_jqpsx_1", I = "_label_jqpsx_12", t = {
12
+ item: x,
13
+ label: I
14
+ }, S = ({
15
+ color: s,
16
+ size: a,
17
+ expanded: e,
18
+ icon: o,
19
+ label: l,
20
+ title: m,
21
+ value: c,
22
+ description: p,
23
+ children: n,
24
+ ...r
25
+ }) => {
26
+ const b = r.ariaLabel || j(m);
27
+ return /* @__PURE__ */ L(_, { className: t.item, color: s, size: a, expanded: e, children: [
28
+ /* @__PURE__ */ i(f, { ...r, ariaLabel: b, className: t.header, icon: o, children: /* @__PURE__ */ i(h, { className: t.label, title: m, value: c, description: p, children: l }) }),
29
+ e && n
30
+ ] });
31
+ };
35
32
  export {
36
- F as SettingsItem
33
+ S as SettingsItem
37
34
  };