@the-portland-company/shell 0.88.0 → 0.90.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.
package/dist/index.cjs CHANGED
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  var react = require('@chakra-ui/react');
4
+ var clsx = require('clsx');
4
5
  var jsxRuntime = require('react/jsx-runtime');
5
- var clsx2 = require('clsx');
6
- var reactRouterDom = require('react-router-dom');
7
6
  var react$1 = require('react');
7
+ var reactRouterDom = require('react-router-dom');
8
8
  require('react-dom');
9
9
 
10
10
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
11
 
12
- var clsx2__default = /*#__PURE__*/_interopDefault(clsx2);
12
+ var clsx__default = /*#__PURE__*/_interopDefault(clsx);
13
13
 
14
14
  // src/theme/index.ts
15
15
 
@@ -839,89 +839,152 @@ var politogyTheme = react.extendTheme({
839
839
  full: "9999px"
840
840
  }
841
841
  });
842
+ var PADDING = {
843
+ none: "p-0",
844
+ sm: "p-4",
845
+ md: "p-6",
846
+ lg: "p-8"
847
+ };
842
848
  function Card({
843
849
  title,
850
+ subtitle,
851
+ aside,
852
+ actions,
853
+ footer,
844
854
  children,
855
+ padding = "md",
856
+ bodyClassName,
845
857
  minH,
846
858
  className,
847
859
  style,
848
860
  ...props
849
861
  }) {
862
+ const structured = Boolean(subtitle || aside || actions || footer || bodyClassName);
863
+ const surface = "rounded-lg border border-[color:var(--app-card-border,var(--color-border))] bg-[color:var(--app-card-bg,var(--color-panel))] text-[color:var(--app-card-fg,var(--color-text))] shadow-sm";
864
+ if (!structured) {
865
+ return /* @__PURE__ */ jsxRuntime.jsxs(
866
+ "div",
867
+ {
868
+ "data-shell-card": "",
869
+ className: clsx__default.default(surface, PADDING[padding], className),
870
+ style: { minHeight: minH, ...style },
871
+ ...props,
872
+ children: [
873
+ title ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4 text-lg font-semibold", children: title }) : null,
874
+ children
875
+ ]
876
+ }
877
+ );
878
+ }
879
+ const hasHeader = Boolean(title || subtitle || aside || actions);
880
+ const divider = "border-[color:var(--app-card-border,var(--color-border))]";
850
881
  return /* @__PURE__ */ jsxRuntime.jsxs(
851
882
  "div",
852
883
  {
853
- className: `rounded-lg border border-slate-200 bg-white p-6 shadow-sm ${className || ""}`,
884
+ "data-shell-card": "",
885
+ "data-shell-card-structured": "",
886
+ className: clsx__default.default(surface, "overflow-hidden", className),
854
887
  style: { minHeight: minH, ...style },
855
888
  ...props,
856
889
  children: [
857
- title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-4 text-lg font-semibold", children: title }),
858
- children
890
+ hasHeader ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx__default.default("flex flex-wrap items-start justify-between gap-3 border-b px-5 py-4", divider), children: [
891
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
892
+ title ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-base font-semibold", children: title }) : null,
893
+ subtitle ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-0.5 text-sm text-[color:var(--app-card-fg-muted,var(--color-text-muted))]", children: subtitle }) : null
894
+ ] }),
895
+ aside || actions ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [
896
+ aside,
897
+ actions
898
+ ] }) : null
899
+ ] }) : null,
900
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: bodyClassName ?? PADDING[padding], children }),
901
+ footer ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx__default.default("border-t px-5 py-3", divider), children: footer }) : null
859
902
  ]
860
903
  }
861
904
  );
862
905
  }
863
906
  function FormColumn({ children, className }) {
864
- return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-shell-form-column": "", className: clsx2__default.default("w-full max-w-[960px]", className), children });
907
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-shell-form-column": "", className: clsx__default.default("w-full max-w-[960px]", className), children });
908
+ }
909
+
910
+ // src/lib/deprecation.ts
911
+ var warned = /* @__PURE__ */ new Set();
912
+ function isDev() {
913
+ try {
914
+ return typeof process !== "undefined" && process.env?.NODE_ENV !== "production";
915
+ } catch {
916
+ return false;
917
+ }
918
+ }
919
+ function warnDeprecated(key, message) {
920
+ if (!isDev() || warned.has(key)) return;
921
+ warned.add(key);
922
+ console.warn(`[@the-portland-company/shell] ${message}`);
865
923
  }
866
924
  var MODE_EYEBROW_LABEL = {
867
925
  relationship: "Relationship mode",
868
926
  campaign: "Campaign mode",
869
927
  petition: "Petition mode"
870
928
  };
871
- var resolveMaxWidthClass = (maxW) => {
872
- if (maxW === "full") return "max-w-none";
873
- if (maxW === "container.lg") return "max-w-6xl";
874
- if (maxW === "container.md") return "max-w-5xl";
875
- return "max-w-7xl";
876
- };
929
+ var EMAIL_PATTERN = /[^\s@]+@[^\s@]+\.[^\s@]+/;
877
930
  function PageHeaderView({
878
- renderCrumbLink,
879
931
  title,
880
932
  mode,
881
933
  eyebrow,
882
934
  showEyebrow = true,
883
935
  subtitle,
884
- breadcrumbs = [],
936
+ breadcrumbs,
885
937
  actions = null,
886
938
  tabBar = null,
887
- maxW = "full",
939
+ maxW,
888
940
  hideSidebar = false
889
941
  }) {
890
- const maxWClass = resolveMaxWidthClass(maxW);
891
- const titleText = typeof title === "string" ? title.trim() : "";
892
- const normalizedTitle = titleText.toLowerCase();
893
- const breadcrumbsWithoutCurrent = [...breadcrumbs];
894
- const last = breadcrumbsWithoutCurrent[breadcrumbsWithoutCurrent.length - 1];
895
- if (breadcrumbsWithoutCurrent.length > 1 && normalizedTitle && last && last.label.trim().toLowerCase() === normalizedTitle) {
896
- breadcrumbsWithoutCurrent.pop();
942
+ if (breadcrumbs !== void 0) {
943
+ warnDeprecated(
944
+ "PageHeader.breadcrumbs",
945
+ '<PageHeader breadcrumbs> is deprecated and renders nothing: the breadcrumb trail is retired (Reference/UI-Platform \u2192 "Page header"). Remove the prop.'
946
+ );
947
+ }
948
+ if (maxW !== void 0) {
949
+ warnDeprecated(
950
+ "PageHeader.maxW",
951
+ "<PageHeader maxW> is deprecated and ignored: the header spans its container. Use <FormColumn> (960px) or the fluid frame for page width."
952
+ );
953
+ }
954
+ if (typeof title === "string" && EMAIL_PATTERN.test(title) || typeof subtitle === "string" && EMAIL_PATTERN.test(subtitle)) {
955
+ warnDeprecated(
956
+ "PageHeader.email",
957
+ `<PageHeader> title/subtitle contains an email address. The user's email never appears in the page header (Reference/UI-Platform \u2192 "Page header"); identity lives in the left bar footer.`
958
+ );
897
959
  }
898
960
  const eyebrowText = showEyebrow ? eyebrow ?? (mode ? MODE_EYEBROW_LABEL[mode] : void 0) : void 0;
899
- if (!title && !eyebrowText && breadcrumbsWithoutCurrent.length === 0 && !actions && !tabBar) {
961
+ if (!title && !eyebrowText && !actions && !tabBar) {
900
962
  return null;
901
963
  }
902
964
  return /* @__PURE__ */ jsxRuntime.jsxs(
903
965
  "div",
904
966
  {
905
- style: { backgroundColor: "var(--app-tab-header-bg, #888888)" },
906
- className: clsx2__default.default("text-slate-100", tabBar ? "pt-3 pb-0" : "py-3 border-b border-gray-200", {
967
+ "data-shell-page-header": "",
968
+ className: clsx__default.default("pt-[22px] text-[color:var(--color-text,#2F3136)]", tabBar ? "pb-0" : "pb-4", {
907
969
  "md:ml-60": !hideSidebar
908
970
  }),
909
971
  children: [
910
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx2__default.default("w-full px-4", maxWClass), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full flex-nowrap items-start justify-between gap-4", children: [
972
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full px-4 md:px-6", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full flex-nowrap items-start justify-between gap-4", children: [
911
973
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
912
974
  eyebrowText ? /* @__PURE__ */ jsxRuntime.jsx(
913
975
  "div",
914
976
  {
915
977
  className: "truncate text-[11px] font-bold uppercase leading-[1.2] tracking-[0.09em]",
916
- style: { color: "var(--mode-accent, var(--color-accent, #E63946))" },
978
+ style: { color: "var(--color-accent-fg, var(--mode-accent, var(--color-accent, #E63946)))" },
917
979
  children: eyebrowText
918
980
  }
919
981
  ) : null,
920
982
  title ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children: /* @__PURE__ */ jsxRuntime.jsx(
921
- "div",
983
+ "h1",
922
984
  {
923
- className: "truncate font-bold text-white",
985
+ className: "m-0 truncate font-bold",
924
986
  style: {
987
+ color: "var(--color-text, #2F3136)",
925
988
  fontFamily: "var(--font-family, ui-sans-serif, system-ui, sans-serif)",
926
989
  fontSize: "var(--type-h2-size, 1.875rem)",
927
990
  lineHeight: "var(--type-h2-line-height, 1.25)"
@@ -929,25 +992,7 @@ function PageHeaderView({
929
992
  children: title
930
993
  }
931
994
  ) }) : null,
932
- subtitle ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 truncate text-[15px] text-[color:var(--color-g4,#929599)]", children: subtitle }) : null,
933
- breadcrumbsWithoutCurrent.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
934
- "nav",
935
- {
936
- "aria-label": "Breadcrumb",
937
- className: clsx2__default.default("min-w-0 text-slate-100", title ? "mt-1" : ""),
938
- children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: "flex flex-nowrap items-center gap-2 overflow-hidden text-sm text-gray-600", children: breadcrumbsWithoutCurrent.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
939
- "li",
940
- {
941
- className: "flex min-w-0 flex-shrink-0 items-center gap-2",
942
- children: [
943
- index > 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-gray-400", children: ">" }) : null,
944
- item.href ? renderCrumbLink(item.href, item.label, "truncate text-slate-100 hover:underline") : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-slate-100", children: item.label })
945
- ]
946
- },
947
- `${item.label}-${index}`
948
- )) })
949
- }
950
- ) : null
995
+ subtitle ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 truncate text-[15px] text-[color:var(--color-g4,#58657A)]", children: subtitle }) : null
951
996
  ] }),
952
997
  actions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-shrink-0", children: actions }) : null
953
998
  ] }) }),
@@ -957,13 +1002,7 @@ function PageHeaderView({
957
1002
  );
958
1003
  }
959
1004
  function PageHeader(props) {
960
- return /* @__PURE__ */ jsxRuntime.jsx(
961
- PageHeaderView,
962
- {
963
- ...props,
964
- renderCrumbLink: (href, label, className) => /* @__PURE__ */ jsxRuntime.jsx(reactRouterDom.Link, { to: href, className, children: label })
965
- }
966
- );
1005
+ return /* @__PURE__ */ jsxRuntime.jsx(PageHeaderView, { ...props });
967
1006
  }
968
1007
  var VARIANT_CLASS = {
969
1008
  primary: "border border-transparent bg-[color:var(--app-btn-primary-bg,var(--color-accent))] text-[color:var(--app-btn-primary-fg,var(--color-white))] hover:bg-[color:var(--app-btn-primary-bg-hover,var(--color-accent-hover))]",
@@ -1003,7 +1042,7 @@ var Button = react$1.forwardRef(function Button2({
1003
1042
  "data-shell-button": "",
1004
1043
  "data-variant": variant,
1005
1044
  "aria-busy": loading || void 0,
1006
- className: clsx2__default.default(
1045
+ className: clsx__default.default(
1007
1046
  "inline-flex items-center justify-center gap-2 rounded-[5px] px-3 text-sm font-semibold no-underline transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--app-field-focus,var(--color-accent))] focus-visible:ring-offset-2",
1008
1047
  SIZE_CLASS[size],
1009
1048
  VARIANT_CLASS[variant],
@@ -1040,7 +1079,7 @@ function FormField({
1040
1079
  className,
1041
1080
  children
1042
1081
  }) {
1043
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx2__default.default("flex w-full flex-col gap-1", className), children: [
1082
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx__default.default("flex w-full flex-col gap-1", className), children: [
1044
1083
  label ? /* @__PURE__ */ jsxRuntime.jsxs("label", { htmlFor: id, className: "text-sm font-semibold text-[color:var(--color-text)]", children: [
1045
1084
  label,
1046
1085
  required ? /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: " *" }) : null
@@ -1089,7 +1128,7 @@ var Input = react$1.forwardRef(function Input2({ label, helperText, error, inval
1089
1128
  "data-shell-field": "",
1090
1129
  "aria-invalid": isInvalid || void 0,
1091
1130
  "aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
1092
- className: clsx2__default.default(FIELD_BASE, "h-[44px]", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
1131
+ className: clsx__default.default(FIELD_BASE, "h-[44px]", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
1093
1132
  ...props
1094
1133
  }
1095
1134
  )
@@ -1119,7 +1158,7 @@ var Select = react$1.forwardRef(function Select2({ label, helperText, error, inv
1119
1158
  "data-shell-field": "",
1120
1159
  "aria-invalid": isInvalid || void 0,
1121
1160
  "aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
1122
- className: clsx2__default.default(FIELD_BASE, "h-[44px]", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
1161
+ className: clsx__default.default(FIELD_BASE, "h-[44px]", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
1123
1162
  ...props,
1124
1163
  children
1125
1164
  }
@@ -1150,7 +1189,7 @@ var Textarea = react$1.forwardRef(function Textarea2({ label, helperText, error,
1150
1189
  "data-shell-field": "",
1151
1190
  "aria-invalid": isInvalid || void 0,
1152
1191
  "aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
1153
- className: clsx2__default.default(FIELD_BASE, "min-h-[88px] py-3", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
1192
+ className: clsx__default.default(FIELD_BASE, "min-h-[88px] py-3", isInvalid ? FIELD_INVALID : FIELD_VALID, className),
1154
1193
  ...props
1155
1194
  }
1156
1195
  )
@@ -1158,21 +1197,118 @@ var Textarea = react$1.forwardRef(function Textarea2({ label, helperText, error,
1158
1197
  );
1159
1198
  });
1160
1199
  var Textarea_default = Textarea;
1161
-
1162
- // src/lib/deprecation.ts
1163
- var warned = /* @__PURE__ */ new Set();
1164
- function isDev() {
1165
- try {
1166
- return typeof process !== "undefined" && process.env?.NODE_ENV !== "production";
1167
- } catch {
1168
- return false;
1169
- }
1170
- }
1171
- function warnDeprecated(key, message) {
1172
- if (!isDev() || warned.has(key)) return;
1173
- warned.add(key);
1174
- console.warn(`[@the-portland-company/shell] ${message}`);
1175
- }
1200
+ var Checkbox = react$1.forwardRef(function Checkbox2({
1201
+ label,
1202
+ description,
1203
+ indeterminate,
1204
+ invalid,
1205
+ className,
1206
+ wrapperClassName,
1207
+ id,
1208
+ disabled,
1209
+ "aria-describedby": ariaDescribedBy,
1210
+ ...props
1211
+ }, ref) {
1212
+ const autoId = react$1.useId();
1213
+ const fieldId = id ?? autoId;
1214
+ const descId = description ? `${fieldId}-description` : void 0;
1215
+ const inner = react$1.useRef(null);
1216
+ const setRef = react$1.useCallback(
1217
+ (node) => {
1218
+ inner.current = node;
1219
+ if (typeof ref === "function") ref(node);
1220
+ else if (ref) ref.current = node;
1221
+ },
1222
+ [ref]
1223
+ );
1224
+ react$1.useEffect(() => {
1225
+ if (inner.current) inner.current.indeterminate = Boolean(indeterminate);
1226
+ }, [indeterminate]);
1227
+ const describedBy2 = [descId, ariaDescribedBy].filter(Boolean).join(" ") || void 0;
1228
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1229
+ "label",
1230
+ {
1231
+ htmlFor: fieldId,
1232
+ "data-shell-checkbox": "",
1233
+ className: clsx__default.default(
1234
+ "flex min-h-[44px] items-start gap-3 py-[10px] text-sm text-[color:var(--app-card-fg,var(--color-text))]",
1235
+ disabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
1236
+ wrapperClassName
1237
+ ),
1238
+ children: [
1239
+ /* @__PURE__ */ jsxRuntime.jsx(
1240
+ "input",
1241
+ {
1242
+ ...props,
1243
+ ref: setRef,
1244
+ id: fieldId,
1245
+ type: "checkbox",
1246
+ disabled,
1247
+ "data-shell-field": "",
1248
+ "aria-invalid": invalid || void 0,
1249
+ "aria-describedby": describedBy2,
1250
+ className: clsx__default.default(
1251
+ "mt-[2px] h-5 w-5 shrink-0 rounded-[5px] border focus:outline-none focus-visible:ring-2",
1252
+ "accent-[color:var(--color-accent-bg-safe,var(--color-accent))]",
1253
+ "focus-visible:ring-[color:var(--app-field-focus,var(--color-accent))]",
1254
+ invalid ? "border-[color:var(--chrome-danger,var(--color-race-red))] outline outline-2 outline-[color:var(--chrome-danger,var(--color-race-red))]" : "border-[color:var(--app-field-border,var(--color-border))]",
1255
+ disabled ? "cursor-not-allowed" : "cursor-pointer",
1256
+ className
1257
+ )
1258
+ }
1259
+ ),
1260
+ label || description ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0", children: [
1261
+ label ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "block font-medium", children: label }) : null,
1262
+ description ? /* @__PURE__ */ jsxRuntime.jsx(
1263
+ "span",
1264
+ {
1265
+ id: descId,
1266
+ className: "block text-xs text-[color:var(--app-card-fg-muted,var(--color-text-muted))]",
1267
+ children: description
1268
+ }
1269
+ ) : null
1270
+ ] }) : null
1271
+ ]
1272
+ }
1273
+ );
1274
+ });
1275
+ var Checkbox_default = Checkbox;
1276
+ var FileInput = react$1.forwardRef(function FileInput2({ label, helperText, error, invalid, className, wrapperClassName, id, required, "aria-describedby": ariaDescribedBy, ...props }, ref) {
1277
+ const autoId = react$1.useId();
1278
+ const fieldId = id ?? autoId;
1279
+ const isInvalid = Boolean(error) || Boolean(invalid);
1280
+ return /* @__PURE__ */ jsxRuntime.jsx(
1281
+ FormField,
1282
+ {
1283
+ id: fieldId,
1284
+ label,
1285
+ helperText,
1286
+ error,
1287
+ required,
1288
+ className: wrapperClassName,
1289
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1290
+ "input",
1291
+ {
1292
+ ...props,
1293
+ ref,
1294
+ id: fieldId,
1295
+ type: "file",
1296
+ required,
1297
+ "data-shell-field": "",
1298
+ "aria-invalid": isInvalid || void 0,
1299
+ "aria-describedby": describedBy(fieldId, helperText, error, ariaDescribedBy),
1300
+ className: clsx__default.default(
1301
+ FIELD_BASE,
1302
+ "h-[44px] cursor-pointer py-[5px] file:mr-3 file:h-[32px] file:cursor-pointer file:rounded-[5px] file:border file:border-[color:var(--app-btn-secondary-border,var(--color-border))] file:bg-[color:var(--app-btn-secondary-bg,var(--color-white))] file:px-3 file:text-sm file:font-medium file:text-[color:var(--app-btn-secondary-fg,var(--color-text))]",
1303
+ isInvalid ? FIELD_INVALID : FIELD_VALID,
1304
+ className
1305
+ )
1306
+ }
1307
+ )
1308
+ }
1309
+ );
1310
+ });
1311
+ var FileInput_default = FileInput;
1176
1312
  function PageContainer({
1177
1313
  children,
1178
1314
  maxW = "container.xl",
@@ -1201,7 +1337,7 @@ function PageContainer({
1201
1337
  children: /* @__PURE__ */ jsxRuntime.jsx(
1202
1338
  "div",
1203
1339
  {
1204
- className: clsx2__default.default(
1340
+ className: clsx__default.default(
1205
1341
  "mx-auto w-full",
1206
1342
  maxWClass,
1207
1343
  pxClass,
@@ -1234,7 +1370,7 @@ function BreadcrumbBarView({
1234
1370
  {
1235
1371
  className: "ml-0 border-b border-gray-200 px-4 py-3 md:ml-60",
1236
1372
  style: { backgroundColor: "var(--app-tab-header-bg, #888888)" },
1237
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx2__default.default("mx-auto w-full px-0", maxWClass), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-center justify-between", children: [
1373
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx__default.default("mx-auto w-full px-0", maxWClass), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-center justify-between", children: [
1238
1374
  breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: "flex items-center gap-2 text-sm text-slate-100", children: breadcrumbs.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-center gap-2", children: [
1239
1375
  index > 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-gray-400", children: ">" }) : null,
1240
1376
  item.href ? renderCrumbLink(item.href, item.label, "text-slate-100 hover:underline") : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-slate-100", children: item.label })
@@ -1401,7 +1537,7 @@ function HeaderTabBar({
1401
1537
  {
1402
1538
  role: "tablist",
1403
1539
  "aria-label": ariaLabel,
1404
- className: clsx2__default.default(
1540
+ className: clsx__default.default(
1405
1541
  // Header-wide tab strip: background + bottom border only (no outer box).
1406
1542
  // Left-aligned and fluid: the container spans the full content width,
1407
1543
  // the tabs keep their natural width packed from the left (Global-Rules
@@ -1425,7 +1561,7 @@ function HeaderTabBar({
1425
1561
  "aria-label": item.label,
1426
1562
  disabled: isDisabled,
1427
1563
  onClick: () => onChange(item.id),
1428
- className: clsx2__default.default(
1564
+ className: clsx__default.default(
1429
1565
  // `group/tbtip relative` powers the shared <TopBarTooltip>.
1430
1566
  // Natural width (no flex-1 stretch); 40px square hit area for the
1431
1567
  // icon-only tab so the strip stays tappable.
@@ -1989,6 +2125,8 @@ exports.BrandLogo = BrandLogo;
1989
2125
  exports.BreadcrumbBar = BreadcrumbBar;
1990
2126
  exports.Button = Button_default;
1991
2127
  exports.Card = Card;
2128
+ exports.Checkbox = Checkbox_default;
2129
+ exports.FileInput = FileInput_default;
1992
2130
  exports.FormColumn = FormColumn;
1993
2131
  exports.GlobalUiIdProvider = GlobalUiIdProvider;
1994
2132
  exports.HeaderTabBar = HeaderTabBar;