@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/components/ProgressBar/ProgressBar.d.ts +10 -1
- package/dist/components/ProgressBar/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +44 -43
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
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: "
|
|
338
|
-
fill: "
|
|
339
|
-
|
|
340
|
-
|
|
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,
|
|
345
|
-
let
|
|
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":
|
|
349
|
-
"aria-labelledby":
|
|
350
|
-
"aria-valuenow":
|
|
351
|
-
"aria-valuemin":
|
|
352
|
-
"aria-valuemax":
|
|
353
|
-
className: [pe.track,
|
|
354
|
-
...
|
|
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: [
|
|
357
|
-
|
|
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: "
|
|
1250
|
-
item: "
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
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("
|
|
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: "
|
|
2922
|
-
header: "
|
|
2923
|
-
leading: "
|
|
2924
|
-
content: "
|
|
2925
|
-
title: "
|
|
2926
|
-
subtitle: "
|
|
2927
|
-
trailing: "
|
|
2928
|
-
chevronWrap: "
|
|
2929
|
-
chevronOpen: "
|
|
2930
|
-
chevron: "
|
|
2931
|
-
panel: "
|
|
2932
|
-
expanded: "
|
|
2933
|
-
panelInner: "
|
|
2934
|
-
childItem: "
|
|
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("
|
|
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
|
})]
|