@optimum-intelligence/opti-ui 0.7.6 → 0.8.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 (87) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +20 -10
  3. package/dist/components/alert/Alert.d.ts +5 -2
  4. package/dist/components/alert/Alert.js +67 -65
  5. package/dist/components/alert/Alert.js.map +1 -1
  6. package/dist/components/app-shell/AppShell.d.ts +19 -7
  7. package/dist/components/app-shell/AppShell.js +329 -303
  8. package/dist/components/app-shell/AppShell.js.map +1 -1
  9. package/dist/components/calendar/Calendar.js +140 -136
  10. package/dist/components/calendar/Calendar.js.map +1 -1
  11. package/dist/components/combobox/Combobox.d.ts +8 -2
  12. package/dist/components/combobox/Combobox.js +182 -202
  13. package/dist/components/combobox/Combobox.js.map +1 -1
  14. package/dist/components/data-table/DataTable.d.ts +23 -11
  15. package/dist/components/data-table/DataTable.js +148 -88
  16. package/dist/components/data-table/DataTable.js.map +1 -1
  17. package/dist/components/data-table/DataTableContent.js +1 -1
  18. package/dist/components/data-table/DataTableFilters.d.ts +56 -4
  19. package/dist/components/data-table/DataTableFilters.js +492 -77
  20. package/dist/components/data-table/DataTableFilters.js.map +1 -1
  21. package/dist/components/data-table/types.d.ts +13 -2
  22. package/dist/components/data-table/useDataTable.d.ts +1 -1
  23. package/dist/components/data-table/useDataTable.js +251 -229
  24. package/dist/components/data-table/useDataTable.js.map +1 -1
  25. package/dist/components/date-picker/DatePicker.d.ts +5 -0
  26. package/dist/components/date-picker/DatePicker.js +148 -140
  27. package/dist/components/date-picker/DatePicker.js.map +1 -1
  28. package/dist/components/date-picker/DateRangePicker.d.ts +2 -0
  29. package/dist/components/date-picker/DateRangePicker.js +171 -164
  30. package/dist/components/date-picker/DateRangePicker.js.map +1 -1
  31. package/dist/components/date-picker/PickerField.d.ts +6 -3
  32. package/dist/components/date-picker/PickerField.js +166 -159
  33. package/dist/components/date-picker/PickerField.js.map +1 -1
  34. package/dist/components/dialog/ConfirmDialog.d.ts +5 -2
  35. package/dist/components/dialog/ConfirmDialog.js +79 -77
  36. package/dist/components/dialog/ConfirmDialog.js.map +1 -1
  37. package/dist/components/dialog/Dialog.d.ts +5 -2
  38. package/dist/components/dialog/Dialog.js +65 -63
  39. package/dist/components/dialog/Dialog.js.map +1 -1
  40. package/dist/components/drawer/Drawer.d.ts +13 -4
  41. package/dist/components/drawer/Drawer.js +122 -164
  42. package/dist/components/drawer/Drawer.js.map +1 -1
  43. package/dist/components/field/Field.d.ts +38 -9
  44. package/dist/components/field/Field.js +66 -1
  45. package/dist/components/field/Field.js.map +1 -1
  46. package/dist/components/file-upload/FileUpload.js +2 -0
  47. package/dist/components/file-upload/FileUpload.js.map +1 -1
  48. package/dist/components/input/Input.d.ts +9 -16
  49. package/dist/components/input/Input.js +124 -206
  50. package/dist/components/input/Input.js.map +1 -1
  51. package/dist/components/map/colors.d.ts +2 -2
  52. package/dist/components/map/colors.js +12 -3
  53. package/dist/components/map/colors.js.map +1 -1
  54. package/dist/components/number-field/NumberField.d.ts +12 -3
  55. package/dist/components/number-field/NumberField.js +109 -130
  56. package/dist/components/number-field/NumberField.js.map +1 -1
  57. package/dist/components/pagination/Pagination.js +135 -186
  58. package/dist/components/pagination/Pagination.js.map +1 -1
  59. package/dist/components/search-input/SearchInput.d.ts +5 -2
  60. package/dist/components/search-input/SearchInput.js +47 -45
  61. package/dist/components/search-input/SearchInput.js.map +1 -1
  62. package/dist/components/select/Select.d.ts +13 -3
  63. package/dist/components/select/Select.js +144 -139
  64. package/dist/components/select/Select.js.map +1 -1
  65. package/dist/components/spinner/Spinner.d.ts +6 -2
  66. package/dist/components/spinner/Spinner.js +42 -40
  67. package/dist/components/spinner/Spinner.js.map +1 -1
  68. package/dist/components/stepper/Stepper.js +44 -40
  69. package/dist/components/stepper/Stepper.js.map +1 -1
  70. package/dist/components/toast/Toast.d.ts +17 -1
  71. package/dist/components/toast/Toast.js +65 -33
  72. package/dist/components/toast/Toast.js.map +1 -1
  73. package/dist/components.json +377 -57
  74. package/dist/index.d.ts +2 -0
  75. package/dist/index.js +5 -3
  76. package/dist/labels/Labels.d.ts +85 -0
  77. package/dist/labels/Labels.js +92 -0
  78. package/dist/labels/Labels.js.map +1 -0
  79. package/dist/llms-full.txt +224 -37
  80. package/dist/llms.txt +10 -4
  81. package/dist/opti-ui.css +210 -18
  82. package/dist/theme/ThemeProvider.d.ts +8 -4
  83. package/dist/theme/ThemeProvider.js.map +1 -1
  84. package/dist/utils/media.d.ts +9 -2
  85. package/dist/utils/media.js +10 -3
  86. package/dist/utils/media.js.map +1 -1
  87. package/package.json +5 -2
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { usePortalContainer } from "../../utils/portal.js";
3
3
  import { cx } from "../../utils/cx.js";
4
+ import { useLabels } from "../../labels/Labels.js";
4
5
  import { createPrimitive } from "../../utils/primitive.js";
5
6
  import { ChevronLeftIcon, ChevronRightIcon, MenuIcon, XIcon } from "../../icons/index.js";
6
7
  import { c } from "react/compiler-runtime";
@@ -21,13 +22,14 @@ var PinnedRegistryContext = React.createContext(null);
21
22
  */
22
23
  function Navbar(t0) {
23
24
  const $ = c(29);
24
- const { variant: t1, collapsible: t2, collapsed: collapsedProp, defaultCollapsed: t3, onCollapsedChange, expandOnHover: t4, collapseLabel: t5, expandLabel: t6, render, children, ref, ...props } = t0;
25
+ const { variant: t1, collapsible: t2, collapsed: collapsedProp, defaultCollapsed: t3, onCollapsedChange, expandOnHover: t4, collapseLabel: collapseLabelProp, expandLabel: expandLabelProp, render, children, ref, ...props } = t0;
25
26
  const variant = t1 === void 0 ? "inverse" : t1;
26
27
  const collapsible = t2 === void 0 ? true : t2;
27
28
  const defaultCollapsed = t3 === void 0 ? false : t3;
28
29
  const expandOnHover = t4 === void 0 ? true : t4;
29
- const collapseLabel = t5 === void 0 ? "Collapse" : t5;
30
- const expandLabel = t6 === void 0 ? "Expand" : t6;
30
+ const text = useLabels();
31
+ const expandLabel = expandLabelProp ?? text.expandNavbar;
32
+ const collapseLabel = collapseLabelProp ?? text.collapseNavbar;
31
33
  const inDrawer = React.useContext(NavbarDrawerContext);
32
34
  const canCollapse = collapsible && !inDrawer;
33
35
  const [internal, setInternal] = React.useState(defaultCollapsed);
@@ -35,36 +37,36 @@ function Navbar(t0) {
35
37
  const label = collapsed ? expandLabel : collapseLabel;
36
38
  const [pointerInside, setPointerInside] = React.useState(false);
37
39
  const [hovered, setHovered] = React.useState(false);
38
- let t7;
39
- let t8;
40
+ let t5;
41
+ let t6;
40
42
  if ($[0] !== pointerInside) {
41
- t7 = () => {
43
+ t5 = () => {
42
44
  if (!pointerInside) return;
43
45
  const timer = setTimeout(() => setHovered(true), 120);
44
46
  return () => clearTimeout(timer);
45
47
  };
46
- t8 = [pointerInside];
48
+ t6 = [pointerInside];
47
49
  $[0] = pointerInside;
48
- $[1] = t7;
49
- $[2] = t8;
50
+ $[1] = t5;
51
+ $[2] = t6;
50
52
  } else {
51
- t7 = $[1];
52
- t8 = $[2];
53
+ t5 = $[1];
54
+ t6 = $[2];
53
55
  }
54
- React.useEffect(t7, t8);
56
+ React.useEffect(t5, t6);
55
57
  const peek = collapsed && expandOnHover && hovered;
56
- let t9;
58
+ let t7;
57
59
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
58
- t9 = () => {
60
+ t7 = () => {
59
61
  setPointerInside(false);
60
62
  setHovered(false);
61
63
  };
62
- $[3] = t9;
63
- } else t9 = $[3];
64
- const endHover = t9;
65
- let t10;
64
+ $[3] = t7;
65
+ } else t7 = $[3];
66
+ const endHover = t7;
67
+ let t8;
66
68
  if ($[4] !== collapsed || $[5] !== collapsedProp || $[6] !== onCollapsedChange) {
67
- t10 = () => {
69
+ t8 = () => {
68
70
  endHover();
69
71
  if (collapsedProp === void 0) setInternal(!collapsed);
70
72
  onCollapsedChange?.(!collapsed);
@@ -72,35 +74,35 @@ function Navbar(t0) {
72
74
  $[4] = collapsed;
73
75
  $[5] = collapsedProp;
74
76
  $[6] = onCollapsedChange;
75
- $[7] = t10;
76
- } else t10 = $[7];
77
- const toggle = t10;
78
- let t11;
77
+ $[7] = t8;
78
+ } else t8 = $[7];
79
+ const toggle = t8;
80
+ let t9;
79
81
  if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
80
- t11 = (event) => {
82
+ t9 = (event) => {
81
83
  if (event.pointerType === "mouse") setPointerInside(true);
82
84
  };
83
- $[8] = t11;
84
- } else t11 = $[8];
85
- const onPointerEnter = t11;
86
- const t12 = collapsed && !peek;
87
- let t13;
88
- if ($[9] !== peek || $[10] !== t12 || $[11] !== variant) {
89
- t13 = {
85
+ $[8] = t9;
86
+ } else t9 = $[8];
87
+ const onPointerEnter = t9;
88
+ const t10 = collapsed && !peek;
89
+ let t11;
90
+ if ($[9] !== peek || $[10] !== t10 || $[11] !== variant) {
91
+ t11 = {
90
92
  variant,
91
- collapsed: t12,
93
+ collapsed: t10,
92
94
  peek
93
95
  };
94
96
  $[9] = peek;
95
- $[10] = t12;
97
+ $[10] = t10;
96
98
  $[11] = variant;
97
- $[12] = t13;
98
- } else t13 = $[12];
99
- const state = t13;
100
- const t14 = "nav";
101
- let t15;
99
+ $[12] = t11;
100
+ } else t11 = $[12];
101
+ const state = t11;
102
+ const t12 = "nav";
103
+ let t13;
102
104
  if ($[13] !== canCollapse || $[14] !== collapsed || $[15] !== label || $[16] !== toggle) {
103
- t15 = canCollapse && /* @__PURE__ */ jsx("button", {
105
+ t13 = canCollapse && /* @__PURE__ */ jsx("button", {
104
106
  type: "button",
105
107
  className: "oui-navbar__toggle",
106
108
  "aria-label": label,
@@ -113,49 +115,49 @@ function Navbar(t0) {
113
115
  $[14] = collapsed;
114
116
  $[15] = label;
115
117
  $[16] = toggle;
116
- $[17] = t15;
117
- } else t15 = $[17];
118
- let t16;
119
- if ($[18] !== children || $[19] !== t15) {
120
- t16 = /* @__PURE__ */ jsxs(Fragment, { children: [t15, children] });
118
+ $[17] = t13;
119
+ } else t13 = $[17];
120
+ let t14;
121
+ if ($[18] !== children || $[19] !== t13) {
122
+ t14 = /* @__PURE__ */ jsxs(Fragment, { children: [t13, children] });
121
123
  $[18] = children;
122
- $[19] = t15;
123
- $[20] = t16;
124
- } else t16 = $[20];
125
- const t17 = mergeProps({
124
+ $[19] = t13;
125
+ $[20] = t14;
126
+ } else t14 = $[20];
127
+ const t15 = mergeProps({
126
128
  className: "oui-navbar",
127
129
  onPointerEnter: collapsed && expandOnHover ? onPointerEnter : void 0,
128
130
  onPointerLeave: collapsed && expandOnHover ? endHover : void 0,
129
- children: t16
131
+ children: t14
130
132
  }, props);
131
- let t18;
132
- if ($[21] !== ref || $[22] !== render || $[23] !== state || $[24] !== t17) {
133
- t18 = {
134
- defaultTagName: t14,
133
+ let t16;
134
+ if ($[21] !== ref || $[22] !== render || $[23] !== state || $[24] !== t15) {
135
+ t16 = {
136
+ defaultTagName: t12,
135
137
  render,
136
138
  ref,
137
139
  state,
138
- props: t17
140
+ props: t15
139
141
  };
140
142
  $[21] = ref;
141
143
  $[22] = render;
142
144
  $[23] = state;
143
- $[24] = t17;
144
- $[25] = t18;
145
- } else t18 = $[25];
146
- const element = useRender(t18);
147
- const t19 = collapsed && !peek;
148
- let t20;
149
- if ($[26] !== element || $[27] !== t19) {
150
- t20 = /* @__PURE__ */ jsx(NavbarCollapsedContext, {
151
- value: t19,
145
+ $[24] = t15;
146
+ $[25] = t16;
147
+ } else t16 = $[25];
148
+ const element = useRender(t16);
149
+ const t17 = collapsed && !peek;
150
+ let t18;
151
+ if ($[26] !== element || $[27] !== t17) {
152
+ t18 = /* @__PURE__ */ jsx(NavbarCollapsedContext, {
153
+ value: t17,
152
154
  children: element
153
155
  });
154
156
  $[26] = element;
155
- $[27] = t19;
156
- $[28] = t20;
157
- } else t20 = $[28];
158
- return t20;
157
+ $[27] = t17;
158
+ $[28] = t18;
159
+ } else t18 = $[28];
160
+ return t18;
159
161
  }
160
162
  var NavbarHeader = createPrimitive("div", "oui-navbar__header", "NavbarHeader");
161
163
  var NavbarFooter = createPrimitive("div", "oui-navbar__footer", "NavbarFooter");
@@ -700,64 +702,65 @@ function PinnedTab(t0) {
700
702
  * </AppShell>
701
703
  */
702
704
  function AppShell(t0) {
703
- const $ = c(83);
705
+ const $ = c(90);
704
706
  let children;
705
707
  let className;
706
708
  let mainProps;
709
+ let menuLabelProp;
707
710
  let mobileActions;
708
711
  let mobileBrand;
712
+ let moreLabelProp;
709
713
  let navbar;
710
714
  let props;
711
715
  let ref;
712
716
  let t1;
713
717
  let t2;
714
- let t3;
715
- let t4;
716
718
  if ($[0] !== t0) {
717
- ({navbar, mobileBrand, mobileActions, mobileNavPosition: t1, menuLabel: t2, moreLabel: t3, moreTabPosition: t4, mainProps, className, children, ref, ...props} = t0);
719
+ ({navbar, mobileBrand, mobileActions, mobileNavPosition: t1, menuLabel: menuLabelProp, moreLabel: moreLabelProp, moreTabPosition: t2, mainProps, className, children, ref, ...props} = t0);
718
720
  $[0] = t0;
719
721
  $[1] = children;
720
722
  $[2] = className;
721
723
  $[3] = mainProps;
722
- $[4] = mobileActions;
723
- $[5] = mobileBrand;
724
- $[6] = navbar;
725
- $[7] = props;
726
- $[8] = ref;
727
- $[9] = t1;
728
- $[10] = t2;
729
- $[11] = t3;
730
- $[12] = t4;
724
+ $[4] = menuLabelProp;
725
+ $[5] = mobileActions;
726
+ $[6] = mobileBrand;
727
+ $[7] = moreLabelProp;
728
+ $[8] = navbar;
729
+ $[9] = props;
730
+ $[10] = ref;
731
+ $[11] = t1;
732
+ $[12] = t2;
731
733
  } else {
732
734
  children = $[1];
733
735
  className = $[2];
734
736
  mainProps = $[3];
735
- mobileActions = $[4];
736
- mobileBrand = $[5];
737
- navbar = $[6];
738
- props = $[7];
739
- ref = $[8];
740
- t1 = $[9];
741
- t2 = $[10];
742
- t3 = $[11];
743
- t4 = $[12];
737
+ menuLabelProp = $[4];
738
+ mobileActions = $[5];
739
+ mobileBrand = $[6];
740
+ moreLabelProp = $[7];
741
+ navbar = $[8];
742
+ props = $[9];
743
+ ref = $[10];
744
+ t1 = $[11];
745
+ t2 = $[12];
744
746
  }
745
747
  const mobileNavPosition = t1 === void 0 ? "bottom" : t1;
746
- const menuLabel = t2 === void 0 ? "Open navigation" : t2;
747
- const moreLabel = t3 === void 0 ? "More" : t3;
748
- const moreTabPosition = t4 === void 0 ? "start" : t4;
748
+ const moreTabPosition = t2 === void 0 ? "start" : t2;
749
+ const text = useLabels();
750
+ const moreLabel = moreLabelProp ?? text.more;
751
+ const menuLabel = menuLabelProp ?? text.openNavigation;
749
752
  const [open, setOpen] = React.useState(false);
750
753
  const [drawer] = React.useState(_temp);
751
754
  const container = usePortalContainer();
752
- let t5;
755
+ let t3;
753
756
  if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
754
- t5 = /* @__PURE__ */ new Map();
755
- $[13] = t5;
756
- } else t5 = $[13];
757
- const [pinned, setPinned] = React.useState(t5);
758
- let t6;
757
+ t3 = /* @__PURE__ */ new Map();
758
+ $[13] = t3;
759
+ } else t3 = $[13];
760
+ const [pinned, setPinned] = React.useState(t3);
761
+ let t4;
759
762
  if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
760
- t6 = () => (id, entry) => {
763
+ t4 = () => (id, entry) => {
761
764
  setPinned((prev) => {
762
765
  const next = new Map(prev);
763
766
  if (entry) next.set(id, entry);
@@ -765,55 +768,55 @@ function AppShell(t0) {
765
768
  return next;
766
769
  });
767
770
  };
768
- $[14] = t6;
769
- } else t6 = $[14];
770
- const [register] = React.useState(t6);
771
+ $[14] = t4;
772
+ } else t4 = $[14];
773
+ const [register] = React.useState(t4);
771
774
  let hasTabs;
772
775
  let moreTab;
773
776
  let showTopBar;
774
- let t10;
775
- let t11;
777
+ let t5;
778
+ let t6;
776
779
  let t7;
777
780
  let t8;
778
781
  let t9;
779
- if ($[15] !== drawer || $[16] !== mobileActions || $[17] !== mobileBrand || $[18] !== mobileNavPosition || $[19] !== moreLabel || $[20] !== moreTabPosition || $[21] !== pinned) {
782
+ if ($[15] !== drawer || $[16] !== mobileActions || $[17] !== mobileBrand || $[18] !== mobileNavPosition || $[19] !== moreLabel || $[20] !== moreTabPosition || $[21] !== pinned || $[22] !== text.quickNavigation) {
780
783
  const tabs = [...pinned.entries()].sort(_temp2).slice(0, MAX_PINNED);
781
784
  hasTabs = tabs.length > 0;
782
785
  showTopBar = !hasTabs || mobileBrand != null || mobileActions != null;
783
- let t12;
784
- if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
785
- t12 = /* @__PURE__ */ jsx("span", {
786
+ let t10;
787
+ if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
788
+ t10 = /* @__PURE__ */ jsx("span", {
786
789
  className: "oui-app-shell__tab-icon",
787
790
  children: /* @__PURE__ */ jsx(MenuIcon, {})
788
791
  });
789
- $[30] = t12;
790
- } else t12 = $[30];
791
- let t13;
792
- if ($[31] !== moreLabel) {
793
- t13 = /* @__PURE__ */ jsx("span", {
792
+ $[31] = t10;
793
+ } else t10 = $[31];
794
+ let t11;
795
+ if ($[32] !== moreLabel) {
796
+ t11 = /* @__PURE__ */ jsx("span", {
794
797
  className: "oui-app-shell__tab-label",
795
798
  children: moreLabel
796
799
  });
797
- $[31] = moreLabel;
798
- $[32] = t13;
799
- } else t13 = $[32];
800
- let t14;
801
- if ($[33] !== drawer || $[34] !== t13) {
802
- t14 = /* @__PURE__ */ jsxs(Dialog.Trigger, {
800
+ $[32] = moreLabel;
801
+ $[33] = t11;
802
+ } else t11 = $[33];
803
+ let t12;
804
+ if ($[34] !== drawer || $[35] !== t11) {
805
+ t12 = /* @__PURE__ */ jsxs(Dialog.Trigger, {
803
806
  handle: drawer,
804
807
  className: "oui-app-shell__tab",
805
- children: [t12, t13]
808
+ children: [t10, t11]
806
809
  });
807
- $[33] = drawer;
808
- $[34] = t13;
809
- $[35] = t14;
810
- } else t14 = $[35];
811
- moreTab = t14;
812
- t7 = "oui-app-shell__tabbar";
813
- t8 = mobileNavPosition;
814
- t9 = "Quick navigation";
815
- t10 = moreTabPosition === "start" && moreTab;
816
- t11 = tabs.map(_temp3);
810
+ $[34] = drawer;
811
+ $[35] = t11;
812
+ $[36] = t12;
813
+ } else t12 = $[36];
814
+ moreTab = t12;
815
+ t5 = "oui-app-shell__tabbar";
816
+ t6 = mobileNavPosition;
817
+ t7 = text.quickNavigation;
818
+ t8 = moreTabPosition === "start" && moreTab;
819
+ t9 = tabs.map(_temp3);
817
820
  $[15] = drawer;
818
821
  $[16] = mobileActions;
819
822
  $[17] = mobileBrand;
@@ -821,77 +824,78 @@ function AppShell(t0) {
821
824
  $[19] = moreLabel;
822
825
  $[20] = moreTabPosition;
823
826
  $[21] = pinned;
824
- $[22] = hasTabs;
825
- $[23] = moreTab;
826
- $[24] = showTopBar;
827
- $[25] = t10;
828
- $[26] = t11;
829
- $[27] = t7;
830
- $[28] = t8;
831
- $[29] = t9;
827
+ $[22] = text.quickNavigation;
828
+ $[23] = hasTabs;
829
+ $[24] = moreTab;
830
+ $[25] = showTopBar;
831
+ $[26] = t5;
832
+ $[27] = t6;
833
+ $[28] = t7;
834
+ $[29] = t8;
835
+ $[30] = t9;
832
836
  } else {
833
- hasTabs = $[22];
834
- moreTab = $[23];
835
- showTopBar = $[24];
836
- t10 = $[25];
837
- t11 = $[26];
838
- t7 = $[27];
839
- t8 = $[28];
840
- t9 = $[29];
837
+ hasTabs = $[23];
838
+ moreTab = $[24];
839
+ showTopBar = $[25];
840
+ t5 = $[26];
841
+ t6 = $[27];
842
+ t7 = $[28];
843
+ t8 = $[29];
844
+ t9 = $[30];
841
845
  }
842
- const t12 = moreTabPosition === "end" && moreTab;
843
- let t13;
844
- if ($[36] !== t10 || $[37] !== t11 || $[38] !== t12 || $[39] !== t7 || $[40] !== t8 || $[41] !== t9) {
845
- t13 = /* @__PURE__ */ jsxs("nav", {
846
- className: t7,
847
- "data-position": t8,
848
- "aria-label": t9,
846
+ const t10 = moreTabPosition === "end" && moreTab;
847
+ let t11;
848
+ if ($[37] !== t10 || $[38] !== t5 || $[39] !== t6 || $[40] !== t7 || $[41] !== t8 || $[42] !== t9) {
849
+ t11 = /* @__PURE__ */ jsxs("nav", {
850
+ className: t5,
851
+ "data-position": t6,
852
+ "aria-label": t7,
849
853
  children: [
850
- t10,
851
- t11,
852
- t12
854
+ t8,
855
+ t9,
856
+ t10
853
857
  ]
854
858
  });
855
- $[36] = t10;
856
- $[37] = t11;
857
- $[38] = t12;
858
- $[39] = t7;
859
- $[40] = t8;
860
- $[41] = t9;
861
- $[42] = t13;
862
- } else t13 = $[42];
863
- const tabbar = t13;
864
- let t14;
865
- if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
866
- t14 = (event) => {
859
+ $[37] = t10;
860
+ $[38] = t5;
861
+ $[39] = t6;
862
+ $[40] = t7;
863
+ $[41] = t8;
864
+ $[42] = t9;
865
+ $[43] = t11;
866
+ } else t11 = $[43];
867
+ const tabbar = t11;
868
+ let t12;
869
+ if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
870
+ t12 = (event) => {
867
871
  const item = event.target.closest("a, .oui-navbar__item");
868
872
  if (item && !item.matches("[data-has-children]")) setOpen(false);
869
873
  };
870
- $[43] = t14;
871
- } else t14 = $[43];
872
- const closeOnNavigate = t14;
873
- let t15;
874
- if ($[44] !== className) {
875
- t15 = cx("oui-app-shell", className);
876
- $[44] = className;
877
- $[45] = t15;
878
- } else t15 = $[45];
879
- let t16;
880
- if ($[46] !== navbar || $[47] !== register) {
881
- t16 = /* @__PURE__ */ jsx("div", {
874
+ $[44] = t12;
875
+ } else t12 = $[44];
876
+ const closeOnNavigate = t12;
877
+ let t13;
878
+ if ($[45] !== className) {
879
+ t13 = cx("oui-app-shell", className);
880
+ $[45] = className;
881
+ $[46] = t13;
882
+ } else t13 = $[46];
883
+ let t14;
884
+ if ($[47] !== navbar || $[48] !== register) {
885
+ t14 = /* @__PURE__ */ jsx("div", {
882
886
  className: "oui-app-shell__navbar",
883
887
  children: /* @__PURE__ */ jsx(PinnedRegistryContext, {
884
888
  value: register,
885
889
  children: navbar
886
890
  })
887
891
  });
888
- $[46] = navbar;
889
- $[47] = register;
890
- $[48] = t16;
891
- } else t16 = $[48];
892
- let t17;
893
- if ($[49] !== drawer || $[50] !== hasTabs || $[51] !== menuLabel || $[52] !== mobileActions || $[53] !== mobileBrand || $[54] !== showTopBar) {
894
- t17 = showTopBar && /* @__PURE__ */ jsxs("header", {
892
+ $[47] = navbar;
893
+ $[48] = register;
894
+ $[49] = t14;
895
+ } else t14 = $[49];
896
+ let t15;
897
+ if ($[50] !== drawer || $[51] !== hasTabs || $[52] !== menuLabel || $[53] !== mobileActions || $[54] !== mobileBrand || $[55] !== showTopBar) {
898
+ t15 = showTopBar && /* @__PURE__ */ jsxs("header", {
895
899
  className: "oui-app-shell__mobile-bar",
896
900
  children: [
897
901
  !hasTabs && /* @__PURE__ */ jsx(Dialog.Trigger, {
@@ -907,112 +911,126 @@ function AppShell(t0) {
907
911
  mobileActions
908
912
  ]
909
913
  });
910
- $[49] = drawer;
911
- $[50] = hasTabs;
912
- $[51] = menuLabel;
913
- $[52] = mobileActions;
914
- $[53] = mobileBrand;
915
- $[54] = showTopBar;
916
- $[55] = t17;
917
- } else t17 = $[55];
918
- const t18 = hasTabs && mobileNavPosition === "top" && tabbar;
919
- const t19 = mainProps?.className;
920
- let t20;
921
- if ($[56] !== t19) {
922
- t20 = cx("oui-app-shell__main", t19);
923
- $[56] = t19;
924
- $[57] = t20;
925
- } else t20 = $[57];
926
- let t21;
927
- if ($[58] !== children || $[59] !== mainProps || $[60] !== t20) {
928
- t21 = /* @__PURE__ */ jsx("main", {
914
+ $[50] = drawer;
915
+ $[51] = hasTabs;
916
+ $[52] = menuLabel;
917
+ $[53] = mobileActions;
918
+ $[54] = mobileBrand;
919
+ $[55] = showTopBar;
920
+ $[56] = t15;
921
+ } else t15 = $[56];
922
+ const t16 = hasTabs && mobileNavPosition === "top" && tabbar;
923
+ const t17 = mainProps?.className;
924
+ let t18;
925
+ if ($[57] !== t17) {
926
+ t18 = cx("oui-app-shell__main", t17);
927
+ $[57] = t17;
928
+ $[58] = t18;
929
+ } else t18 = $[58];
930
+ let t19;
931
+ if ($[59] !== children || $[60] !== mainProps || $[61] !== t18) {
932
+ t19 = /* @__PURE__ */ jsx("main", {
929
933
  ...mainProps,
930
- className: t20,
934
+ className: t18,
931
935
  children
932
936
  });
933
- $[58] = children;
934
- $[59] = mainProps;
935
- $[60] = t20;
936
- $[61] = t21;
937
- } else t21 = $[61];
938
- const t22 = hasTabs && mobileNavPosition === "bottom" && tabbar;
939
- let t23;
940
- if ($[62] === Symbol.for("react.memo_cache_sentinel")) {
941
- t23 = /* @__PURE__ */ jsx(Dialog.Backdrop, { className: "oui-dialog__backdrop" });
942
- $[62] = t23;
943
- } else t23 = $[62];
944
- let t24;
937
+ $[59] = children;
938
+ $[60] = mainProps;
939
+ $[61] = t18;
940
+ $[62] = t19;
941
+ } else t19 = $[62];
942
+ const t20 = hasTabs && mobileNavPosition === "bottom" && tabbar;
943
+ let t21;
945
944
  if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
946
- t24 = /* @__PURE__ */ jsx(Dialog.Close, {
945
+ t21 = /* @__PURE__ */ jsx(Dialog.Backdrop, { className: "oui-dialog__backdrop" });
946
+ $[63] = t21;
947
+ } else t21 = $[63];
948
+ let t22;
949
+ if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
950
+ t22 = /* @__PURE__ */ jsx(XIcon, {});
951
+ $[64] = t22;
952
+ } else t22 = $[64];
953
+ let t23;
954
+ if ($[65] !== text.closeNavigation) {
955
+ t23 = /* @__PURE__ */ jsx(Dialog.Close, {
947
956
  className: "oui-app-shell__drawer-close",
948
- "aria-label": "Close navigation",
949
- children: /* @__PURE__ */ jsx(XIcon, {})
957
+ "aria-label": text.closeNavigation,
958
+ children: t22
950
959
  });
951
- $[63] = t24;
952
- } else t24 = $[63];
960
+ $[65] = text.closeNavigation;
961
+ $[66] = t23;
962
+ } else t23 = $[66];
963
+ let t24;
964
+ if ($[67] !== navbar) {
965
+ t24 = /* @__PURE__ */ jsx(NavbarDrawerContext, {
966
+ value: true,
967
+ children: navbar
968
+ });
969
+ $[67] = navbar;
970
+ $[68] = t24;
971
+ } else t24 = $[68];
953
972
  let t25;
954
- if ($[64] !== navbar) {
973
+ if ($[69] !== t23 || $[70] !== t24 || $[71] !== text.navigation) {
955
974
  t25 = /* @__PURE__ */ jsxs(Dialog.Popup, {
956
975
  className: "oui-app-shell__drawer",
957
- "aria-label": "Navigation",
976
+ "aria-label": text.navigation,
958
977
  onClick: closeOnNavigate,
959
- children: [t24, /* @__PURE__ */ jsx(NavbarDrawerContext, {
960
- value: true,
961
- children: navbar
962
- })]
978
+ children: [t23, t24]
963
979
  });
964
- $[64] = navbar;
965
- $[65] = t25;
966
- } else t25 = $[65];
980
+ $[69] = t23;
981
+ $[70] = t24;
982
+ $[71] = text.navigation;
983
+ $[72] = t25;
984
+ } else t25 = $[72];
967
985
  let t26;
968
- if ($[66] !== container || $[67] !== t25) {
986
+ if ($[73] !== container || $[74] !== t25) {
969
987
  t26 = /* @__PURE__ */ jsxs(Dialog.Portal, {
970
988
  container,
971
- children: [t23, t25]
989
+ children: [t21, t25]
972
990
  });
973
- $[66] = container;
974
- $[67] = t25;
975
- $[68] = t26;
976
- } else t26 = $[68];
991
+ $[73] = container;
992
+ $[74] = t25;
993
+ $[75] = t26;
994
+ } else t26 = $[75];
977
995
  let t27;
978
- if ($[69] !== drawer || $[70] !== open || $[71] !== t26) {
996
+ if ($[76] !== drawer || $[77] !== open || $[78] !== t26) {
979
997
  t27 = /* @__PURE__ */ jsx(Dialog.Root, {
980
998
  handle: drawer,
981
999
  open,
982
1000
  onOpenChange: setOpen,
983
1001
  children: t26
984
1002
  });
985
- $[69] = drawer;
986
- $[70] = open;
987
- $[71] = t26;
988
- $[72] = t27;
989
- } else t27 = $[72];
1003
+ $[76] = drawer;
1004
+ $[77] = open;
1005
+ $[78] = t26;
1006
+ $[79] = t27;
1007
+ } else t27 = $[79];
990
1008
  let t28;
991
- if ($[73] !== props || $[74] !== ref || $[75] !== t15 || $[76] !== t16 || $[77] !== t17 || $[78] !== t18 || $[79] !== t21 || $[80] !== t22 || $[81] !== t27) {
1009
+ if ($[80] !== props || $[81] !== ref || $[82] !== t13 || $[83] !== t14 || $[84] !== t15 || $[85] !== t16 || $[86] !== t19 || $[87] !== t20 || $[88] !== t27) {
992
1010
  t28 = /* @__PURE__ */ jsxs("div", {
993
1011
  ref,
994
- className: t15,
1012
+ className: t13,
995
1013
  ...props,
996
1014
  children: [
1015
+ t14,
1016
+ t15,
997
1017
  t16,
998
- t17,
999
- t18,
1000
- t21,
1001
- t22,
1018
+ t19,
1019
+ t20,
1002
1020
  t27
1003
1021
  ]
1004
1022
  });
1005
- $[73] = props;
1006
- $[74] = ref;
1007
- $[75] = t15;
1008
- $[76] = t16;
1009
- $[77] = t17;
1010
- $[78] = t18;
1011
- $[79] = t21;
1012
- $[80] = t22;
1013
- $[81] = t27;
1014
- $[82] = t28;
1015
- } else t28 = $[82];
1023
+ $[80] = props;
1024
+ $[81] = ref;
1025
+ $[82] = t13;
1026
+ $[83] = t14;
1027
+ $[84] = t15;
1028
+ $[85] = t16;
1029
+ $[86] = t19;
1030
+ $[87] = t20;
1031
+ $[88] = t27;
1032
+ $[89] = t28;
1033
+ } else t28 = $[89];
1016
1034
  return t28;
1017
1035
  }
1018
1036
  function _temp3(t0) {
@@ -1029,7 +1047,7 @@ function _temp() {
1029
1047
  }
1030
1048
  /** Page title block with optional breadcrumbs, eyebrow, description and actions. */
1031
1049
  function PageHeader(t0) {
1032
- const $ = c(32);
1050
+ const $ = c(34);
1033
1051
  let actions;
1034
1052
  let breadcrumbs;
1035
1053
  let className;
@@ -1093,56 +1111,64 @@ function PageHeader(t0) {
1093
1111
  $[16] = t4;
1094
1112
  } else t4 = $[16];
1095
1113
  let t5;
1096
- if ($[17] !== description) {
1097
- t5 = description && /* @__PURE__ */ jsx("p", {
1098
- className: "oui-page-header__description",
1099
- children: description
1100
- });
1101
- $[17] = description;
1102
- $[18] = t5;
1103
- } else t5 = $[18];
1104
- let t6;
1105
- if ($[19] !== t2 || $[20] !== t3 || $[21] !== t4 || $[22] !== t5) {
1106
- t6 = /* @__PURE__ */ jsxs("div", {
1114
+ if ($[17] !== t3 || $[18] !== t4) {
1115
+ t5 = /* @__PURE__ */ jsxs("div", {
1107
1116
  className: "oui-page-header__text",
1108
- children: [
1109
- t2,
1110
- t3,
1111
- t4,
1112
- t5
1113
- ]
1117
+ children: [t3, t4]
1114
1118
  });
1115
- $[19] = t2;
1116
- $[20] = t3;
1117
- $[21] = t4;
1118
- $[22] = t5;
1119
- $[23] = t6;
1120
- } else t6 = $[23];
1121
- let t7;
1122
- if ($[24] !== actions) {
1123
- t7 = actions && /* @__PURE__ */ jsx("div", {
1119
+ $[17] = t3;
1120
+ $[18] = t4;
1121
+ $[19] = t5;
1122
+ } else t5 = $[19];
1123
+ let t6;
1124
+ if ($[20] !== actions) {
1125
+ t6 = actions && /* @__PURE__ */ jsx("div", {
1124
1126
  className: "oui-page-header__actions",
1125
1127
  children: actions
1126
1128
  });
1127
- $[24] = actions;
1128
- $[25] = t7;
1129
- } else t7 = $[25];
1129
+ $[20] = actions;
1130
+ $[21] = t6;
1131
+ } else t6 = $[21];
1132
+ let t7;
1133
+ if ($[22] !== t5 || $[23] !== t6) {
1134
+ t7 = /* @__PURE__ */ jsxs("div", {
1135
+ className: "oui-page-header__heading",
1136
+ children: [t5, t6]
1137
+ });
1138
+ $[22] = t5;
1139
+ $[23] = t6;
1140
+ $[24] = t7;
1141
+ } else t7 = $[24];
1130
1142
  let t8;
1131
- if ($[26] !== props || $[27] !== ref || $[28] !== t1 || $[29] !== t6 || $[30] !== t7) {
1132
- t8 = /* @__PURE__ */ jsxs("header", {
1143
+ if ($[25] !== description) {
1144
+ t8 = description && /* @__PURE__ */ jsx("p", {
1145
+ className: "oui-page-header__description",
1146
+ children: description
1147
+ });
1148
+ $[25] = description;
1149
+ $[26] = t8;
1150
+ } else t8 = $[26];
1151
+ let t9;
1152
+ if ($[27] !== props || $[28] !== ref || $[29] !== t1 || $[30] !== t2 || $[31] !== t7 || $[32] !== t8) {
1153
+ t9 = /* @__PURE__ */ jsxs("header", {
1133
1154
  ref,
1134
1155
  className: t1,
1135
1156
  ...props,
1136
- children: [t6, t7]
1157
+ children: [
1158
+ t2,
1159
+ t7,
1160
+ t8
1161
+ ]
1137
1162
  });
1138
- $[26] = props;
1139
- $[27] = ref;
1140
- $[28] = t1;
1141
- $[29] = t6;
1142
- $[30] = t7;
1143
- $[31] = t8;
1144
- } else t8 = $[31];
1145
- return t8;
1163
+ $[27] = props;
1164
+ $[28] = ref;
1165
+ $[29] = t1;
1166
+ $[30] = t2;
1167
+ $[31] = t7;
1168
+ $[32] = t8;
1169
+ $[33] = t9;
1170
+ } else t9 = $[33];
1171
+ return t9;
1146
1172
  }
1147
1173
  /** Responsive dashboard grid: up to `columns` equal columns, fewer when its own width cannot fit them. */
1148
1174
  function Grid(t0) {