@ogcio/design-system-react 1.17.1 → 1.17.2
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 +1 -0
- package/dist/index.js +100 -97
- package/dist/progress-bar/progress-bar.d.ts +3 -2
- package/dist/progress-bar/progress-bar.js +18 -14
- package/dist/progress-stepper/progress-stepper.d.ts +5 -3
- package/dist/progress-stepper/progress-stepper.js +132 -121
- package/dist/progress-stepper/types.d.ts +16 -4
- package/dist/progress-stepper/types.js +12 -2
- package/dist/section-break/section-break.d.ts +2 -3
- package/dist/section-break/section-break.js +12 -12
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export { PhaseBanner, type PhaseBannerProps, } from './phase-banner/phase-banner
|
|
|
65
65
|
export { Popover } from './popover/popover.js';
|
|
66
66
|
export type { PopoverProps } from './popover/types.js';
|
|
67
67
|
export { ProgressBar, type ProgressBarProps, } from './progress-bar/progress-bar.js';
|
|
68
|
+
export { type ProgressStepperProps, StepFillLevel, StepStatus, } from './progress-stepper/types.js';
|
|
68
69
|
export * from './progress-stepper/progress-stepper.js';
|
|
69
70
|
export { RadioGroup } from './radio/radio-group.js';
|
|
70
71
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
103
|
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
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
|
-
|
|
138
|
-
|
|
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
|
-
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
2
|
-
import { cn as
|
|
3
|
-
import { translate as
|
|
4
|
-
function
|
|
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:
|
|
8
|
+
label: i,
|
|
9
|
+
className: l,
|
|
10
|
+
dataTestid: t,
|
|
11
|
+
...n
|
|
9
12
|
}) {
|
|
10
|
-
const
|
|
11
|
-
return /* @__PURE__ */
|
|
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":
|
|
22
|
+
"aria-label": p("progressBar.progressBar", {
|
|
20
23
|
defaultValue: "Progress bar"
|
|
21
24
|
}),
|
|
22
|
-
|
|
23
|
-
|
|
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:
|
|
31
|
+
className: o({
|
|
28
32
|
"gi-progress-bar-indeterminate": r
|
|
29
33
|
}),
|
|
30
|
-
style: r ? {} : { width: `${
|
|
34
|
+
style: r ? {} : { width: `${g}%` }
|
|
31
35
|
}
|
|
32
36
|
)
|
|
33
37
|
}
|
|
34
38
|
),
|
|
35
|
-
|
|
39
|
+
i && /* @__PURE__ */ a("span", { children: i })
|
|
36
40
|
] });
|
|
37
41
|
}
|
|
38
42
|
export {
|
|
39
|
-
|
|
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,
|
|
9
|
+
export declare const ProgressStepper: ({ children, currentStepIndex, orientation, indicator, completeAll, stepStates, className, verticalGap, ...props }: ProgressStepperProps) => import("react/jsx-runtime").JSX.Element;
|