@gnome-ui/react 1.16.0 → 1.17.1

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.d.ts CHANGED
@@ -21,7 +21,7 @@ export type { TextFieldProps } from './components/TextField';
21
21
  export { RadioButton } from './components/RadioButton';
22
22
  export type { RadioButtonProps } from './components/RadioButton';
23
23
  export { ProgressBar } from './components/ProgressBar';
24
- export type { ProgressBarProps } from './components/ProgressBar';
24
+ export type { ProgressBarProps, ProgressBarVariant } from './components/ProgressBar';
25
25
  export { Banner } from './components/Banner';
26
26
  export type { BannerProps, BannerVariant } from './components/Banner';
27
27
  export { HeaderBar } from './components/HeaderBar';
package/dist/index.js CHANGED
@@ -334,27 +334,35 @@ function fe({ className: e, ...n }) {
334
334
  });
335
335
  }
336
336
  var pe = {
337
- track: "_track_n3qbv_3",
338
- fill: "_fill_n3qbv_14",
339
- indeterminate: "_indeterminate_n3qbv_24",
340
- pulse: "_pulse_n3qbv_1"
337
+ track: "_track_endpr_3",
338
+ fill: "_fill_endpr_14",
339
+ accent: "_accent_endpr_23",
340
+ success: "_success_endpr_24",
341
+ warning: "_warning_endpr_25",
342
+ error: "_error_endpr_26",
343
+ indeterminate: "_indeterminate_endpr_30",
344
+ pulse: "_pulse_endpr_1"
341
345
  };
342
346
  //#endregion
343
347
  //#region src/components/ProgressBar/ProgressBar.tsx
344
- function me({ value: e, className: n, "aria-label": r, "aria-labelledby": i, ...a }) {
345
- let o = e == null, s = o ? void 0 : Math.min(1, Math.max(0, e)), c = s === void 0 ? void 0 : s * 100;
348
+ function me({ value: e, variant: n = "accent", className: r, "aria-label": i, "aria-labelledby": a, ...o }) {
349
+ let s = e == null, c = s ? void 0 : Math.min(1, Math.max(0, e)), l = c === void 0 ? void 0 : c * 100;
346
350
  return /* @__PURE__ */ t("div", {
347
351
  role: "progressbar",
348
- "aria-label": r,
349
- "aria-labelledby": i,
350
- "aria-valuenow": s === void 0 ? void 0 : Math.round(c),
351
- "aria-valuemin": o ? void 0 : 0,
352
- "aria-valuemax": o ? void 0 : 100,
353
- className: [pe.track, n].filter(Boolean).join(" "),
354
- ...a,
352
+ "aria-label": i,
353
+ "aria-labelledby": a,
354
+ "aria-valuenow": c === void 0 ? void 0 : Math.round(l),
355
+ "aria-valuemin": s ? void 0 : 0,
356
+ "aria-valuemax": s ? void 0 : 100,
357
+ className: [pe.track, r].filter(Boolean).join(" "),
358
+ ...o,
355
359
  children: /* @__PURE__ */ t("div", {
356
- className: [pe.fill, o ? pe.indeterminate : null].filter(Boolean).join(" "),
357
- style: o ? void 0 : { width: `${c}%` }
360
+ className: [
361
+ pe.fill,
362
+ pe[n],
363
+ s ? pe.indeterminate : null
364
+ ].filter(Boolean).join(" "),
365
+ style: s ? void 0 : { width: `${l}%` }
358
366
  })
359
367
  });
360
368
  }
@@ -1246,11 +1254,11 @@ function Dt({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !
1246
1254
  });
1247
1255
  }
1248
1256
  var Ot = {
1249
- list: "_list_1mn4t_3",
1250
- item: "_item_1mn4t_17",
1251
- divider: "_divider_1mn4t_25",
1252
- separate: "_separate_1mn4t_34",
1253
- separateItem: "_separateItem_1mn4t_44"
1257
+ list: "_list_cy3hv_3",
1258
+ item: "_item_cy3hv_17",
1259
+ separate: "_separate_cy3hv_26",
1260
+ separateItem: "_separateItem_cy3hv_36",
1261
+ divider: "_divider_cy3hv_58"
1254
1262
  };
1255
1263
  //#endregion
1256
1264
  //#region src/components/BoxedList/BoxedList.tsx
@@ -1266,10 +1274,7 @@ function kt({ children: e, variant: i = "default", className: a, ...o }) {
1266
1274
  ...o,
1267
1275
  children: s.map((e, r) => /* @__PURE__ */ n("li", {
1268
1276
  className: c ? Ot.separateItem : Ot.item,
1269
- children: [!c && r > 0 && /* @__PURE__ */ t("div", {
1270
- className: Ot.divider,
1271
- "aria-hidden": "true"
1272
- }), e]
1277
+ children: [!c && r > 0 && /* @__PURE__ */ t(ae, { "aria-hidden": "true" }), e]
1273
1278
  }, r))
1274
1279
  });
1275
1280
  }
@@ -2918,21 +2923,20 @@ function $r({ children: e, className: n, ...r }) {
2918
2923
  });
2919
2924
  }
2920
2925
  var K = {
2921
- expanderRow: "_expanderRow_16el8_3",
2922
- header: "_header_16el8_11",
2923
- leading: "_leading_16el8_55",
2924
- content: "_content_16el8_64",
2925
- title: "_title_16el8_72",
2926
- subtitle: "_subtitle_16el8_83",
2927
- trailing: "_trailing_16el8_97",
2928
- chevronWrap: "_chevronWrap_16el8_106",
2929
- chevronOpen: "_chevronOpen_16el8_115",
2930
- chevron: "_chevron_16el8_106",
2931
- panel: "_panel_16el8_125",
2932
- expanded: "_expanded_16el8_131",
2933
- panelInner: "_panelInner_16el8_135",
2934
- childItem: "_childItem_16el8_142",
2935
- divider: "_divider_16el8_147"
2926
+ expanderRow: "_expanderRow_12nz4_3",
2927
+ header: "_header_12nz4_11",
2928
+ leading: "_leading_12nz4_55",
2929
+ content: "_content_12nz4_64",
2930
+ title: "_title_12nz4_72",
2931
+ subtitle: "_subtitle_12nz4_83",
2932
+ trailing: "_trailing_12nz4_97",
2933
+ chevronWrap: "_chevronWrap_12nz4_106",
2934
+ chevronOpen: "_chevronOpen_12nz4_115",
2935
+ chevron: "_chevron_12nz4_106",
2936
+ panel: "_panel_12nz4_125",
2937
+ expanded: "_expanded_12nz4_131",
2938
+ panelInner: "_panelInner_12nz4_135",
2939
+ childItem: "_childItem_12nz4_142"
2936
2940
  };
2937
2941
  //#endregion
2938
2942
  //#region src/components/ExpanderRow/ExpanderRow.tsx
@@ -3002,10 +3006,7 @@ function ei({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
3002
3006
  className: K.panelInner,
3003
3007
  children: S.map((e, r) => /* @__PURE__ */ n("div", {
3004
3008
  className: K.childItem,
3005
- children: [/* @__PURE__ */ t("div", {
3006
- className: K.divider,
3007
- "aria-hidden": "true"
3008
- }), e]
3009
+ children: [/* @__PURE__ */ t(ae, { "aria-hidden": "true" }), e]
3009
3010
  }, r))
3010
3011
  })
3011
3012
  })]