@ogcio/design-system-react 1.17.1 → 1.18.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.
@@ -1,22 +1,4 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { ButtonAppearance, ButtonSize } from '../button/types.js';
3
- type ButtonGroupItemProps = PropsWithChildren<{
4
- value: string;
5
- role?: string;
6
- 'aria-checked'?: boolean;
7
- 'aria-label'?: string;
8
- }>;
1
+ import { FC } from 'react';
2
+ import { ButtonGroupItemProps, ButtonGroupProps } from './types.js';
9
3
  export declare const ButtonGroupItem: FC<ButtonGroupItemProps>;
10
- type ButtonGroupProps = PropsWithChildren<{
11
- name: string;
12
- size?: ButtonSize;
13
- appearance?: ButtonAppearance;
14
- onChange?: (value: string) => void;
15
- defaultValue?: string;
16
- value?: string;
17
- role?: string;
18
- 'aria-labelledby'?: string;
19
- 'aria-describedby'?: string;
20
- }>;
21
4
  export declare const ButtonGroup: FC<ButtonGroupProps>;
22
- export {};
@@ -1,92 +1,98 @@
1
1
  "use client";
2
- import { jsx as f } from "react/jsx-runtime";
3
- import { createContext as x, useState as B, useEffect as G, useContext as V } from "react";
4
- import { Button as k } from "../button/button.js";
5
- import { useDomId as S } from "../hooks/use-dom-id.js";
6
- const I = x(
2
+ import { jsx as y } from "react/jsx-runtime";
3
+ import { createContext as G, useState as V, useEffect as k, useContext as S } from "react";
4
+ import { Button as w } from "../button/button.js";
5
+ import { cn as E } from "../cn.js";
6
+ import { useDomId as $ } from "../hooks/use-dom-id.js";
7
+ const x = G(
7
8
  void 0
8
- ), v = ({
9
+ ), P = ({
9
10
  value: r,
10
11
  children: d,
11
12
  role: s,
12
13
  "aria-checked": e,
13
- "aria-label": a
14
+ "aria-label": a,
15
+ ...t
14
16
  }) => {
15
- const t = V(I);
16
- if (!t)
17
+ const c = S(x);
18
+ if (!c)
17
19
  throw new Error("ButtonGroupItem must be used within a ButtonGroup");
18
20
  const {
19
21
  selectedValue: n,
20
22
  setSelectedValue: l,
21
23
  size: u,
22
24
  onChange: o,
23
- groupId: p,
24
- appearance: i
25
- } = t, c = n === r, m = () => {
25
+ groupId: m,
26
+ appearance: p
27
+ } = c, i = n === r, b = () => {
26
28
  l(r), o == null || o(r);
27
- }, b = `${p}-${r}`;
28
- return /* @__PURE__ */ f(
29
- k,
29
+ }, f = `${m}-${r}`;
30
+ return /* @__PURE__ */ y(
31
+ w,
30
32
  {
31
- variant: c ? "primary" : "secondary",
33
+ variant: i ? "primary" : "secondary",
32
34
  size: u,
33
- appearance: i,
34
- onClick: m,
35
- id: b,
35
+ appearance: p,
36
+ onClick: b,
37
+ id: f,
36
38
  role: s || "radio",
37
- "aria-checked": e === void 0 ? c : e,
39
+ "aria-checked": e === void 0 ? i : e,
38
40
  "aria-label": a,
39
41
  type: "button",
42
+ ...t,
40
43
  children: d
41
44
  }
42
45
  );
43
- }, z = ({
46
+ }, q = ({
44
47
  name: r,
45
48
  size: d = "medium",
46
49
  appearance: s = "dark",
47
50
  onChange: e,
48
51
  defaultValue: a,
49
52
  value: t,
50
- children: n,
51
- role: l,
52
- "aria-labelledby": u,
53
- "aria-describedby": o
53
+ children: c,
54
+ role: n,
55
+ "aria-labelledby": l,
56
+ "aria-describedby": u,
57
+ className: o,
58
+ ...m
54
59
  }) => {
55
- const [p, i] = B(
60
+ const [p, i] = V(
56
61
  a
57
- ), c = t === void 0 ? p : t;
58
- G(() => {
62
+ ), b = t === void 0 ? p : t;
63
+ k(() => {
59
64
  t !== void 0 && i(t);
60
65
  }, [t]);
61
- const m = (y) => {
62
- t === void 0 && i(y), e == null || e(y);
63
- }, b = S();
64
- return /* @__PURE__ */ f(
65
- I.Provider,
66
+ const f = (I) => {
67
+ t === void 0 && i(I), e == null || e(I);
68
+ }, B = $();
69
+ return /* @__PURE__ */ y(
70
+ x.Provider,
66
71
  {
67
72
  value: {
68
- selectedValue: c,
69
- setSelectedValue: m,
73
+ selectedValue: b,
74
+ setSelectedValue: f,
70
75
  name: r,
71
76
  size: d,
72
77
  onChange: e,
73
- groupId: b,
74
- appearance: s
78
+ groupId: B,
79
+ appearance: s,
80
+ ...m
75
81
  },
76
- children: /* @__PURE__ */ f(
82
+ children: /* @__PURE__ */ y(
77
83
  "div",
78
84
  {
79
- className: "gi-btn-group",
80
- role: l || "radiogroup",
81
- "aria-labelledby": u,
82
- "aria-describedby": o,
83
- children: n
85
+ className: E("gi-btn-group", o),
86
+ role: n || "radiogroup",
87
+ "aria-labelledby": l,
88
+ "aria-describedby": u,
89
+ children: c
84
90
  }
85
91
  )
86
92
  }
87
93
  );
88
94
  };
89
95
  export {
90
- z as ButtonGroup,
91
- v as ButtonGroupItem
96
+ q as ButtonGroup,
97
+ P as ButtonGroupItem
92
98
  };
@@ -0,0 +1,29 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { ButtonAppearance, ButtonSize } from '../button/types.js';
3
+ export type ButtonGroupProps = PropsWithChildren<{
4
+ name: string;
5
+ size?: ButtonSize;
6
+ appearance?: ButtonAppearance;
7
+ onChange?: (value: string) => void;
8
+ defaultValue?: string;
9
+ value?: string;
10
+ role?: string;
11
+ 'aria-labelledby'?: string;
12
+ 'aria-describedby'?: string;
13
+ className?: string;
14
+ }>;
15
+ export type ButtonGroupItemProps = PropsWithChildren<{
16
+ value: string;
17
+ role?: string;
18
+ 'aria-checked'?: boolean;
19
+ 'aria-label'?: string;
20
+ }>;
21
+ export type ButtonGroupContextType = {
22
+ selectedValue?: string;
23
+ setSelectedValue: (value: string) => void;
24
+ name: string;
25
+ size: ButtonSize;
26
+ appearance?: ButtonAppearance;
27
+ onChange?: (value: string) => void;
28
+ groupId: string;
29
+ };
@@ -0,0 +1 @@
1
+
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export { Blockquote, type BlockquoteProps } from './blockquote/blockquote.js';
7
7
  export { BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Breadcrumbs, } from './breadcrumbs/breadcrumbs.js';
8
8
  export { type BreadcrumbLinkProps, type BreadcrumbProps, } from './breadcrumbs/types.js';
9
9
  export { ButtonGroup, ButtonGroupItem } from './button-group/button-group.js';
10
+ export * from './button-group/types.js';
10
11
  export { Button } from './button/button.js';
11
12
  export { type ButtonProps } from './button/types.js';
12
13
  export { CardAction, CardContainer, CardDescription, CardHeader, CardMedia, CardSubtitle, CardTag, CardTitle, } from './card/card-next.js';
@@ -65,6 +66,7 @@ export { PhaseBanner, type PhaseBannerProps, } from './phase-banner/phase-banner
65
66
  export { Popover } from './popover/popover.js';
66
67
  export type { PopoverProps } from './popover/types.js';
67
68
  export { ProgressBar, type ProgressBarProps, } from './progress-bar/progress-bar.js';
69
+ export { type ProgressStepperProps, StepFillLevel, StepStatus, } from './progress-stepper/types.js';
68
70
  export * from './progress-stepper/progress-stepper.js';
69
71
  export { RadioGroup } from './radio/radio-group.js';
70
72
  export { Radio } from './radio/radio.js';
package/dist/index.js CHANGED
@@ -4,13 +4,13 @@ import { Alert as a } from "./alert/alert.js";
4
4
  import { Autocomplete as f, AutocompleteItem as l } from "./autocomplete/autocomplete.js";
5
5
  import { Blockquote as n } from "./blockquote/blockquote.js";
6
6
  import { BreadcrumbCurrentLink as u, BreadcrumbEllipsis as c, BreadcrumbLink as b, Breadcrumbs as T } from "./breadcrumbs/breadcrumbs.js";
7
- import { ButtonGroup as I, ButtonGroupItem as S } from "./button-group/button-group.js";
7
+ import { ButtonGroup as S, ButtonGroupItem as I } from "./button-group/button-group.js";
8
8
  import { Button as F } from "./button/button.js";
9
- import { CardAction as k, CardContainer as D, CardDescription as h, CardHeader as L, CardMedia as g, CardSubtitle as G, CardTag as P, CardTitle as w } from "./card/card-next.js";
9
+ import { CardAction as k, CardContainer as D, CardDescription as L, CardHeader as h, CardMedia as g, CardSubtitle as G, CardTag as P, CardTitle as w } from "./card/card-next.js";
10
10
  import { Card as A } from "./card/card.js";
11
11
  import { CheckboxGroup as H } from "./checkbox/checkbox-group.js";
12
12
  import { Checkbox as M } from "./checkbox/checkbox.js";
13
- import { Chip as v } from "./chip/chip.js";
13
+ import { Chip as N } from "./chip/chip.js";
14
14
  import { Combobox as z } from "./combo-box/combo-box.js";
15
15
  import { DropdownItem as U } from "./combo-box/dropdown-item.js";
16
16
  import { Container as j } from "./container/container.js";
@@ -24,16 +24,16 @@ import { FormField as xo, FormFieldError as fo, FormFieldHint as lo, FormFieldLa
24
24
  import { Form as uo } from "./forms/form.js";
25
25
  import { HeaderSearch as bo } from "./header/components/header-search.js";
26
26
  import { Header as Co } from "./header/header.js";
27
- import { Heading as So } from "./heading/heading.js";
27
+ import { Heading as Io } from "./heading/heading.js";
28
28
  import { initI18n as Fo } from "./i18n/config.js";
29
29
  import { IconButton as ko } from "./icon-button/icon-button.js";
30
- import { Icon as ho } from "./icon/icon.js";
30
+ import { Icon as Lo } from "./icon/icon.js";
31
31
  import { Icons as go } from "./icon/icons.js";
32
32
  import { InputCheckboxGroup as Po } from "./input-checkbox-group/input-checkbox-group.js";
33
33
  import { InputCheckbox as yo, InputCheckboxTableCell as Ao } from "./input-checkbox/input-checkbox.js";
34
34
  import { InputCheckboxSizeEnum as Ho } from "./input-checkbox/types.js";
35
35
  import { InputFile as Mo } from "./input-file/input-file.js";
36
- import { InputPassword as vo } from "./input-password/input-password.js";
36
+ import { InputPassword as No } from "./input-password/input-password.js";
37
37
  import { InputRadioGroup as zo } from "./input-radio-group/input-radio-group.js";
38
38
  import { InputRadio as Uo } from "./input-radio/input-radio.js";
39
39
  import { InputRadioSizeEnum as jo } from "./input-radio/types.js";
@@ -47,40 +47,41 @@ import { Paragraph as lr } from "./paragraph/paragraph.js";
47
47
  import { PhaseBanner as nr } from "./phase-banner/phase-banner.js";
48
48
  import { Popover as ur } from "./popover/popover.js";
49
49
  import { ProgressBar as br } from "./progress-bar/progress-bar.js";
50
- import { ProgressStepper as Cr, Step as Ir, StepItem as Sr } from "./progress-stepper/progress-stepper.js";
51
- import { RadioGroup as Fr } from "./radio/radio-group.js";
52
- import { Radio as kr } from "./radio/radio.js";
53
- import { ScoreSelect as hr } from "./score-select/score-select.js";
54
- import { SectionBreak as gr } from "./section-break/section-break.js";
55
- import { Select as Pr } from "./select/select.js";
56
- import { SelectGroupItemNext as yr, SelectItemNext as Ar, SelectNext as Er } from "./select/select-next.js";
57
- import { SideNav as Rr, SideNavItem as Mr } from "./side-nav/side-nav.js";
58
- import { Spinner as vr } from "./spinner/spinner.js";
59
- import { Stack as zr } from "./stack/stack.js";
60
- import { SummaryList as Ur, SummaryListAction as Vr, SummaryListRow as jr, SummaryListValue as Jr } from "./summary-list/summary-list.js";
61
- import { Caption as Or } from "./table/caption.js";
62
- import { ColumnGroup as Xr } from "./table/column-group.js";
63
- import { Column as Zr } from "./table/column.js";
64
- import { TableBody as $r } from "./table/table-body.js";
65
- import { TableData as re } from "./table/table-data.js";
66
- import { TableFoot as te } from "./table/table-foot.js";
67
- import { TableHead as me } from "./table/table-head.js";
68
- import { TableHeader as xe } from "./table/table-header.js";
69
- import { TableRow as le } from "./table/table-row.js";
70
- import { Table as ne } from "./table/table.js";
71
- import { TabItem as ue } from "./tabs/tab-item.js";
72
- import { TabList as be } from "./tabs/tab-list.js";
73
- import { TabPanel as Ce } from "./tabs/tab-panel.js";
74
- import { Tabs as Se } from "./tabs/tabs.js";
75
- import { DataTableFooter as Fe, DataTableFooterCenter as Be, DataTableFooterEnd as ke, DataTableFooterStart as De } from "./data-table/data-table-footer.js";
76
- import { Tag as Le, TagTypeEnum as ge } from "./tag/tag.js";
77
- import { TextInput as Pe } from "./text-input/text-input.js";
78
- import { TextArea as ye } from "./textarea/textarea.js";
79
- import { ToastProvider as Ee, toaster as He } from "./toast/toast.js";
80
- import { Tooltip as Me } from "./tooltip/tooltip.js";
81
- import { EditableTableCell as ve } from "./data-table/editable-table-cell.js";
82
- import { SelectGroupItem as ze, SelectItem as qe, SelectTableCell as Ue } from "./select/select-native.js";
83
- import { i as je } from "./i18next-DxWa09nx.js";
50
+ import { StepFillLevel as Cr, StepStatus as Sr } from "./progress-stepper/types.js";
51
+ import { ProgressStepper as sr, Step as Fr, StepItem as Br } from "./progress-stepper/progress-stepper.js";
52
+ import { RadioGroup as Dr } from "./radio/radio-group.js";
53
+ import { Radio as hr } from "./radio/radio.js";
54
+ import { ScoreSelect as Gr } from "./score-select/score-select.js";
55
+ import { SectionBreak as wr } from "./section-break/section-break.js";
56
+ import { Select as Ar } from "./select/select.js";
57
+ import { SelectGroupItemNext as Hr, SelectItemNext as Rr, SelectNext as Mr } from "./select/select-next.js";
58
+ import { SideNav as Nr, SideNavItem as Wr } from "./side-nav/side-nav.js";
59
+ import { Spinner as qr } from "./spinner/spinner.js";
60
+ import { Stack as Vr } from "./stack/stack.js";
61
+ import { SummaryList as Jr, SummaryListAction as Kr, SummaryListRow as Or, SummaryListValue as Qr } from "./summary-list/summary-list.js";
62
+ import { Caption as Yr } from "./table/caption.js";
63
+ import { ColumnGroup as _r } from "./table/column-group.js";
64
+ import { Column as oe } from "./table/column.js";
65
+ import { TableBody as ee } from "./table/table-body.js";
66
+ import { TableData as pe } from "./table/table-data.js";
67
+ import { TableFoot as ae } from "./table/table-foot.js";
68
+ import { TableHead as fe } from "./table/table-head.js";
69
+ import { TableHeader as ie } from "./table/table-header.js";
70
+ import { TableRow as de } from "./table/table-row.js";
71
+ import { Table as ce } from "./table/table.js";
72
+ import { TabItem as Te } from "./tabs/tab-item.js";
73
+ import { TabList as Se } from "./tabs/tab-list.js";
74
+ import { TabPanel as se } from "./tabs/tab-panel.js";
75
+ import { Tabs as Be } from "./tabs/tabs.js";
76
+ import { DataTableFooter as De, DataTableFooterCenter as Le, DataTableFooterEnd as he, DataTableFooterStart as ge } from "./data-table/data-table-footer.js";
77
+ import { Tag as Pe, TagTypeEnum as we } from "./tag/tag.js";
78
+ import { TextInput as Ae } from "./text-input/text-input.js";
79
+ import { TextArea as He } from "./textarea/textarea.js";
80
+ import { ToastProvider as Me, toaster as ve } from "./toast/toast.js";
81
+ import { Tooltip as We } from "./tooltip/tooltip.js";
82
+ import { EditableTableCell as qe } from "./data-table/editable-table-cell.js";
83
+ import { SelectGroupItem as Ve, SelectItem as je, SelectTableCell as Je } from "./select/select-native.js";
84
+ import { i as Oe } from "./i18next-DxWa09nx.js";
84
85
  export {
85
86
  p as Accordion,
86
87
  e as AccordionItem,
@@ -93,37 +94,37 @@ export {
93
94
  b as BreadcrumbLink,
94
95
  T as Breadcrumbs,
95
96
  F as Button,
96
- I as ButtonGroup,
97
- S as ButtonGroupItem,
98
- Or as Caption,
97
+ S as ButtonGroup,
98
+ I as ButtonGroupItem,
99
+ Yr as Caption,
99
100
  A as Card,
100
101
  k as CardAction,
101
102
  D as CardContainer,
102
- h as CardDescription,
103
- L as CardHeader,
103
+ L as CardDescription,
104
+ h as CardHeader,
104
105
  g as CardMedia,
105
106
  G as CardSubtitle,
106
107
  P as CardTag,
107
108
  w as CardTitle,
108
109
  M as Checkbox,
109
110
  H as CheckboxGroup,
110
- v as Chip,
111
- Zr as Column,
112
- Xr as ColumnGroup,
111
+ N as Chip,
112
+ oe as Column,
113
+ _r as ColumnGroup,
113
114
  z as Combobox,
114
115
  j as Container,
115
116
  K as CookieBanner,
116
- Fe as DataTableFooter,
117
- Be as DataTableFooterCenter,
118
- ke as DataTableFooterEnd,
119
- De as DataTableFooterStart,
117
+ De as DataTableFooter,
118
+ Le as DataTableFooterCenter,
119
+ he as DataTableFooterEnd,
120
+ ge as DataTableFooterStart,
120
121
  Q as Details,
121
122
  Y as Drawer,
122
123
  Z as DrawerBody,
123
124
  _ as DrawerFooter,
124
125
  $ as DrawerWrapper,
125
126
  U as DropdownItem,
126
- ve as EditableTableCell,
127
+ qe as EditableTableCell,
127
128
  ro as FileUpload,
128
129
  to as Footer,
129
130
  uo as Form,
@@ -134,8 +135,8 @@ export {
134
135
  mo as FormFieldWithTag,
135
136
  Co as Header,
136
137
  bo as HeaderSearch,
137
- So as Heading,
138
- ho as Icon,
138
+ Io as Heading,
139
+ Lo as Icon,
139
140
  ko as IconButton,
140
141
  go as Icons,
141
142
  yo as InputCheckbox,
@@ -143,7 +144,7 @@ export {
143
144
  Ho as InputCheckboxSizeEnum,
144
145
  Ao as InputCheckboxTableCell,
145
146
  Mo as InputFile,
146
- vo as InputPassword,
147
+ No as InputPassword,
147
148
  Uo as InputRadio,
148
149
  zo as InputRadioGroup,
149
150
  jo as InputRadioSizeEnum,
@@ -162,46 +163,48 @@ export {
162
163
  nr as PhaseBanner,
163
164
  ur as Popover,
164
165
  br as ProgressBar,
165
- Cr as ProgressStepper,
166
- kr as Radio,
167
- Fr as RadioGroup,
168
- hr as ScoreSelect,
169
- gr as SectionBreak,
170
- Pr as Select,
171
- ze as SelectGroupItem,
172
- yr as SelectGroupItemNext,
173
- qe as SelectItem,
174
- Ar as SelectItemNext,
175
- Er as SelectNext,
176
- Ue as SelectTableCell,
177
- Rr as SideNav,
178
- Mr as SideNavItem,
179
- vr as Spinner,
180
- zr as Stack,
181
- Ir as Step,
182
- Sr as StepItem,
183
- Ur as SummaryList,
184
- Vr as SummaryListAction,
185
- jr as SummaryListRow,
186
- Jr as SummaryListValue,
187
- ue as TabItem,
188
- be as TabList,
189
- Ce as TabPanel,
190
- ne as Table,
191
- $r as TableBody,
192
- re as TableData,
193
- te as TableFoot,
194
- me as TableHead,
195
- xe as TableHeader,
196
- le as TableRow,
197
- Se as Tabs,
198
- Le as Tag,
199
- ge as TagTypeEnum,
200
- ye as TextArea,
201
- Pe as TextInput,
202
- Ee as ToastProvider,
203
- Me as Tooltip,
204
- je as i18next,
166
+ sr as ProgressStepper,
167
+ hr as Radio,
168
+ Dr as RadioGroup,
169
+ Gr as ScoreSelect,
170
+ wr as SectionBreak,
171
+ Ar as Select,
172
+ Ve as SelectGroupItem,
173
+ Hr as SelectGroupItemNext,
174
+ je as SelectItem,
175
+ Rr as SelectItemNext,
176
+ Mr as SelectNext,
177
+ Je as SelectTableCell,
178
+ Nr as SideNav,
179
+ Wr as SideNavItem,
180
+ qr as Spinner,
181
+ Vr as Stack,
182
+ Fr as Step,
183
+ Cr as StepFillLevel,
184
+ Br as StepItem,
185
+ Sr as StepStatus,
186
+ Jr as SummaryList,
187
+ Kr as SummaryListAction,
188
+ Or as SummaryListRow,
189
+ Qr as SummaryListValue,
190
+ Te as TabItem,
191
+ Se as TabList,
192
+ se as TabPanel,
193
+ ce as Table,
194
+ ee as TableBody,
195
+ pe as TableData,
196
+ ae as TableFoot,
197
+ fe as TableHead,
198
+ ie as TableHeader,
199
+ de as TableRow,
200
+ Be as Tabs,
201
+ Pe as Tag,
202
+ we as TagTypeEnum,
203
+ He as TextArea,
204
+ Ae as TextInput,
205
+ Me as ToastProvider,
206
+ We as Tooltip,
207
+ Oe as i18next,
205
208
  Fo as initI18n,
206
- He as toaster
209
+ ve as toaster
207
210
  };
@@ -3,5 +3,6 @@ export type ProgressBarProps = {
3
3
  value?: number;
4
4
  isIndeterminate?: boolean;
5
5
  label?: string;
6
- };
7
- export declare function ProgressBar({ value, max, isIndeterminate, label, }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
6
+ dataTestid?: string;
7
+ } & React.HTMLAttributes<HTMLDivElement>;
8
+ export declare function ProgressBar({ value, max, isIndeterminate, label, className, dataTestid, ...props }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,17 @@
1
- import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
- import { cn as t } from "../cn.js";
3
- import { translate as g } from "../i18n/utility.js";
4
- function d({
1
+ import { jsxs as c, jsx as a } from "react/jsx-runtime";
2
+ import { cn as o } from "../cn.js";
3
+ import { translate as p } from "../i18n/utility.js";
4
+ function u({
5
5
  value: s = 0,
6
6
  max: e = 100,
7
7
  isIndeterminate: r,
8
- label: o
8
+ label: i,
9
+ className: l,
10
+ dataTestid: t,
11
+ ...n
9
12
  }) {
10
- const i = s * 100 / e;
11
- return /* @__PURE__ */ l("div", { className: "gi-progress-bar-container", children: [
13
+ const g = s * 100 / e;
14
+ return /* @__PURE__ */ c("div", { className: "gi-progress-bar-container", children: [
12
15
  /* @__PURE__ */ a(
13
16
  "div",
14
17
  {
@@ -16,25 +19,26 @@ function d({
16
19
  "aria-valuenow": r ? void 0 : s,
17
20
  "aria-valuemin": 0,
18
21
  "aria-valuemax": e,
19
- "aria-label": g("progressBar.progressBar", {
22
+ "aria-label": p("progressBar.progressBar", {
20
23
  defaultValue: "Progress bar"
21
24
  }),
22
- "data-testid": "progress-bar",
23
- className: "gi-progress-bar",
25
+ className: o("gi-progress-bar", l),
26
+ "data-testid": t,
27
+ ...n,
24
28
  children: /* @__PURE__ */ a(
25
29
  "div",
26
30
  {
27
- className: t({
31
+ className: o({
28
32
  "gi-progress-bar-indeterminate": r
29
33
  }),
30
- style: r ? {} : { width: `${i}%` }
34
+ style: r ? {} : { width: `${g}%` }
31
35
  }
32
36
  )
33
37
  }
34
38
  ),
35
- o && /* @__PURE__ */ a("span", { children: o })
39
+ i && /* @__PURE__ */ a("span", { children: i })
36
40
  ] });
37
41
  }
38
42
  export {
39
- d as ProgressBar
43
+ u as ProgressBar
40
44
  };
@@ -1,7 +1,9 @@
1
1
  import { FC } from 'react';
2
- import { InnerStepProps, ProgressStepperProps, StepItemProps } from './types.js';
3
- export declare const Step: ({ isCurrentStep, isCompleted, isLastStep, isDisabled, stepNumber, orientation, children, indicator, verticalSlot, defaultOpen, dataTestId, ariaLabel, verticalGap, }: InnerStepProps & {
2
+ import { InnerStepProps, ProgressStepperProps, StepItemProps, StepFillLevelType } from './types.js';
3
+ export declare const Step: ({ isCurrentStep, isCompleted, isLastStep, isDisabled, stepNumber, orientation, children, indicator, verticalSlot, defaultOpen, dataTestId, ariaLabel, verticalGap, fill, useFill, }: InnerStepProps & {
4
4
  isDisabled?: boolean;
5
+ fill?: StepFillLevelType;
6
+ useFill?: boolean;
5
7
  }) => import("react/jsx-runtime").JSX.Element;
6
8
  export declare const StepItem: FC<StepItemProps>;
7
- export declare const ProgressStepper: ({ children, currentStepIndex, orientation, indicator, completeAll, stepStates, dataTestId, className, verticalGap, }: ProgressStepperProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const ProgressStepper: ({ children, currentStepIndex, orientation, indicator, completeAll, stepStates, className, verticalGap, ...props }: ProgressStepperProps) => import("react/jsx-runtime").JSX.Element;