@ogcio/design-system-react 1.11.3 → 1.12.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/accordion/accordion-item.js +1 -1
- package/dist/alert/alert.js +1 -1
- package/dist/autocomplete/autocomplete.js +4 -4
- package/dist/button-group/button-group.js +44 -44
- package/dist/card/card-next.js +28 -28
- package/dist/combo-box/dropdown-item.js +30 -30
- package/dist/drawer/drawer.content.js +6 -6
- package/dist/drawer/drawer.js +8 -8
- package/dist/error-text/error-text.js +1 -1
- package/dist/forms/form-field/form-field.d.ts +18 -0
- package/dist/forms/form-field/form-field.js +85 -0
- package/dist/forms/form-field/types.d.ts +13 -0
- package/dist/forms/form-field/types.js +1 -0
- package/dist/forms/form-field-with-tag/form-field-with-tag.js +1 -1
- package/dist/heading/heading.js +1 -1
- package/dist/hint-text/hint-text.js +1 -1
- package/dist/icon/icon.js +32 -32
- package/dist/index-2sRBqKFV.js +78 -0
- package/dist/{index-DNkhmzZp.js → index-CB-zPpNk.js} +44 -44
- package/dist/index.d.ts +3 -1
- package/dist/index.js +162 -155
- package/dist/input-checkbox/input-checkbox.js +13 -13
- package/dist/input-radio/input-radio.js +15 -15
- package/dist/label/label.js +1 -1
- package/dist/link/link.js +1 -1
- package/dist/list/list.js +2 -2
- package/dist/modal/modal.content.js +1 -1
- package/dist/modal/modal.js +3 -3
- package/dist/popover/popover.js +471 -467
- package/dist/primitives/anchor.js +1 -1
- package/dist/progress-bar/progress-bar.js +8 -8
- package/dist/progress-stepper/progress-stepper.js +10 -10
- package/dist/score-select/score-select.js +29 -29
- package/dist/select/select-menu.js +1 -0
- package/dist/select/select-next.js +11 -10
- package/dist/side-nav/side-nav.js +23 -23
- package/dist/spinner/spinner.js +1 -1
- package/dist/stack/stack.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/table/table.js +1 -1
- package/dist/textarea/textarea.js +7 -7
- package/dist/toast/ds-toast.js +1 -1
- package/dist/tooltip/tooltip.js +1 -1
- package/package.json +2 -2
- package/dist/forms/form-field.d.ts +0 -11
- package/dist/forms/form-field.js +0 -41
- package/dist/index-ntYL1VRC.js +0 -64
package/dist/index.js
CHANGED
|
@@ -3,15 +3,15 @@ import { Accordion as p } from "./accordion/accordion.js";
|
|
|
3
3
|
import { Alert as x } from "./alert/alert.js";
|
|
4
4
|
import { Autocomplete as f, AutocompleteItem as i } from "./autocomplete/autocomplete.js";
|
|
5
5
|
import { Blockquote as d } from "./blockquote/blockquote.js";
|
|
6
|
-
import { BreadcrumbCurrentLink as
|
|
7
|
-
import { ButtonGroup as
|
|
8
|
-
import { Button as
|
|
9
|
-
import { CardAction as
|
|
10
|
-
import { Card as
|
|
11
|
-
import { CheckboxGroup as
|
|
12
|
-
import { Checkbox as
|
|
13
|
-
import { Chip as
|
|
14
|
-
import { Combobox as
|
|
6
|
+
import { BreadcrumbCurrentLink as u, BreadcrumbEllipsis as c, BreadcrumbLink as I, Breadcrumbs as b } from "./breadcrumbs/breadcrumbs.js";
|
|
7
|
+
import { ButtonGroup as S, ButtonGroupItem as C } from "./button-group/button-group.js";
|
|
8
|
+
import { Button as F } from "./button/button.js";
|
|
9
|
+
import { CardAction as k, CardContainer as L, CardDescription as h, CardHeader as g, CardMedia as G, CardSubtitle as P, CardTag as w, CardTitle as y } from "./card/card-next.js";
|
|
10
|
+
import { Card as D } from "./card/card.js";
|
|
11
|
+
import { CheckboxGroup as R } from "./checkbox/checkbox-group.js";
|
|
12
|
+
import { Checkbox as E } from "./checkbox/checkbox.js";
|
|
13
|
+
import { Chip as v } from "./chip/chip.js";
|
|
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";
|
|
17
17
|
import { CookieBanner as K } from "./cookie-banner/cookie-banner.js";
|
|
@@ -20,64 +20,65 @@ import { Drawer as Y, DrawerBody as Z, DrawerFooter as _, DrawerWrapper as $ } f
|
|
|
20
20
|
import { FileUpload as ro } from "./file-upload/file-upload.js";
|
|
21
21
|
import { Footer as to } from "./footer/footer.js";
|
|
22
22
|
import { FormFieldWithTag as mo } from "./forms/form-field-with-tag/form-field-with-tag.js";
|
|
23
|
-
import { FormField as ao } from "./forms/form-field.js";
|
|
24
|
-
import { Form as
|
|
25
|
-
import { HeaderSearch as
|
|
26
|
-
import { Header as
|
|
27
|
-
import { Heading as
|
|
28
|
-
import { initI18n as
|
|
29
|
-
import { IconButton as
|
|
30
|
-
import { Icon as
|
|
31
|
-
import { Icons as
|
|
32
|
-
import { InputCheckboxGroup as
|
|
33
|
-
import { InputCheckbox as
|
|
34
|
-
import { InputCheckboxSizeEnum as
|
|
35
|
-
import { InputFile as
|
|
36
|
-
import { InputPassword as
|
|
37
|
-
import { InputRadioGroup as
|
|
38
|
-
import { InputRadio as
|
|
39
|
-
import { InputRadioSizeEnum as
|
|
40
|
-
import { InputText as
|
|
41
|
-
import { Link as
|
|
42
|
-
import { ListItem as
|
|
43
|
-
import { List as
|
|
44
|
-
import { Modal as
|
|
45
|
-
import { Pagination as
|
|
46
|
-
import { Paragraph as
|
|
47
|
-
import { PhaseBanner as
|
|
48
|
-
import { Popover as
|
|
49
|
-
import { ProgressBar as
|
|
50
|
-
import { ProgressStepper as
|
|
51
|
-
import { RadioGroup as
|
|
52
|
-
import { Radio as
|
|
53
|
-
import { ScoreSelect as
|
|
54
|
-
import { SectionBreak as
|
|
55
|
-
import { Select as
|
|
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 {
|
|
23
|
+
import { FormField as ao, FormFieldError as fo, FormFieldHint as io, FormFieldLabel as no } from "./forms/form-field/form-field.js";
|
|
24
|
+
import { Form as uo } from "./forms/form.js";
|
|
25
|
+
import { HeaderSearch as Io } from "./header/components/header-search.js";
|
|
26
|
+
import { Header as so } from "./header/header.js";
|
|
27
|
+
import { Heading as Co } from "./heading/heading.js";
|
|
28
|
+
import { initI18n as Fo } from "./i18n/config.js";
|
|
29
|
+
import { IconButton as ko } from "./icon-button/icon-button.js";
|
|
30
|
+
import { Icon as ho } from "./icon/icon.js";
|
|
31
|
+
import { Icons as Go } from "./icon/icons.js";
|
|
32
|
+
import { InputCheckboxGroup as wo } from "./input-checkbox-group/input-checkbox-group.js";
|
|
33
|
+
import { InputCheckbox as Ao } from "./input-checkbox/input-checkbox.js";
|
|
34
|
+
import { InputCheckboxSizeEnum as Ho } from "./input-checkbox/types.js";
|
|
35
|
+
import { InputFile as Mo } from "./input-file/input-file.js";
|
|
36
|
+
import { InputPassword as No } from "./input-password/input-password.js";
|
|
37
|
+
import { InputRadioGroup as Wo } from "./input-radio-group/input-radio-group.js";
|
|
38
|
+
import { InputRadio as qo } from "./input-radio/input-radio.js";
|
|
39
|
+
import { InputRadioSizeEnum as Vo } from "./input-radio/types.js";
|
|
40
|
+
import { InputText as Jo } from "./input-text/input-text.js";
|
|
41
|
+
import { Link as Oo } from "./link/link.js";
|
|
42
|
+
import { ListItem as Xo } from "./list-item/list-item.js";
|
|
43
|
+
import { List as Zo } from "./list/list.js";
|
|
44
|
+
import { Modal as $o, ModalBody as or, ModalFooter as rr, ModalTitle as er, ModalWrapper as tr } from "./modal/modal.js";
|
|
45
|
+
import { Pagination as mr } from "./pagination/pagination.js";
|
|
46
|
+
import { Paragraph as ar } from "./paragraph/paragraph.js";
|
|
47
|
+
import { PhaseBanner as ir } from "./phase-banner/phase-banner.js";
|
|
48
|
+
import { Popover as dr } from "./popover/popover.js";
|
|
49
|
+
import { ProgressBar as ur } from "./progress-bar/progress-bar.js";
|
|
50
|
+
import { ProgressStepper as Ir, Step as br, StepItem as sr } from "./progress-stepper/progress-stepper.js";
|
|
51
|
+
import { RadioGroup as Cr } from "./radio/radio-group.js";
|
|
52
|
+
import { Radio as Fr } from "./radio/radio.js";
|
|
53
|
+
import { ScoreSelect as kr } from "./score-select/score-select.js";
|
|
54
|
+
import { SectionBreak as hr } from "./section-break/section-break.js";
|
|
55
|
+
import { Select as Gr } from "./select/select.js";
|
|
56
|
+
import { SelectGroupItemNext as wr, SelectItemNext as yr, SelectNext as Ar } from "./select/select-next.js";
|
|
57
|
+
import { SideNav as Hr, SideNavItem as Rr } from "./side-nav/side-nav.js";
|
|
58
|
+
import { Spinner as Er } from "./spinner/spinner.js";
|
|
59
|
+
import { Stack as vr } from "./stack/stack.js";
|
|
60
|
+
import { SummaryList as zr, SummaryListAction as qr, SummaryListRow as Ur, SummaryListValue as Vr } from "./summary-list/summary-list.js";
|
|
61
|
+
import { Caption as Jr } from "./table/caption.js";
|
|
62
|
+
import { ColumnGroup as Or } from "./table/column-group.js";
|
|
63
|
+
import { Column as Xr } from "./table/column.js";
|
|
64
|
+
import { TableBody as Zr } from "./table/table-body.js";
|
|
65
|
+
import { TableData as $r } from "./table/table-data.js";
|
|
66
|
+
import { TableFoot as re } from "./table/table-foot.js";
|
|
67
|
+
import { TableHead as te } from "./table/table-head.js";
|
|
68
|
+
import { TableHeader as me } from "./table/table-header.js";
|
|
69
|
+
import { TableRow as ae } from "./table/table-row.js";
|
|
70
|
+
import { Table as ie } from "./table/table.js";
|
|
71
|
+
import { TabItem as de } from "./tabs/tab-item.js";
|
|
72
|
+
import { TabList as ue } from "./tabs/tab-list.js";
|
|
73
|
+
import { TabPanel as Ie } from "./tabs/tab-panel.js";
|
|
74
|
+
import { Tabs as se } from "./tabs/tabs.js";
|
|
75
|
+
import { Tag as Ce, TagTypeEnum as Te } from "./tag/tag.js";
|
|
76
|
+
import { TextInput as Be } from "./text-input/text-input.js";
|
|
77
|
+
import { TextArea as Le } from "./textarea/textarea.js";
|
|
78
|
+
import { ToastProvider as ge, toaster as Ge } from "./toast/toast.js";
|
|
79
|
+
import { Tooltip as we } from "./tooltip/tooltip.js";
|
|
80
|
+
import { SelectGroupItem as Ae, SelectItem as De } from "./select/select-native.js";
|
|
81
|
+
import { i as Re } from "./i18next-DxWa09nx.js";
|
|
81
82
|
export {
|
|
82
83
|
p as Accordion,
|
|
83
84
|
e as AccordionItem,
|
|
@@ -85,29 +86,29 @@ export {
|
|
|
85
86
|
f as Autocomplete,
|
|
86
87
|
i as AutocompleteItem,
|
|
87
88
|
d as Blockquote,
|
|
88
|
-
|
|
89
|
+
u as BreadcrumbCurrentLink,
|
|
89
90
|
c as BreadcrumbEllipsis,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
91
|
+
I as BreadcrumbLink,
|
|
92
|
+
b as Breadcrumbs,
|
|
93
|
+
F as Button,
|
|
94
|
+
S as ButtonGroup,
|
|
95
|
+
C as ButtonGroupItem,
|
|
96
|
+
Jr as Caption,
|
|
97
|
+
D as Card,
|
|
98
|
+
k as CardAction,
|
|
99
|
+
L as CardContainer,
|
|
100
|
+
h as CardDescription,
|
|
100
101
|
g as CardHeader,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
102
|
+
G as CardMedia,
|
|
103
|
+
P as CardSubtitle,
|
|
104
|
+
w as CardTag,
|
|
105
|
+
y as CardTitle,
|
|
106
|
+
E as Checkbox,
|
|
107
|
+
R as CheckboxGroup,
|
|
108
|
+
v as Chip,
|
|
109
|
+
Xr as Column,
|
|
110
|
+
Or as ColumnGroup,
|
|
111
|
+
z as Combobox,
|
|
111
112
|
j as Container,
|
|
112
113
|
K as CookieBanner,
|
|
113
114
|
Q as Details,
|
|
@@ -118,73 +119,79 @@ export {
|
|
|
118
119
|
U as DropdownItem,
|
|
119
120
|
ro as FileUpload,
|
|
120
121
|
to as Footer,
|
|
121
|
-
|
|
122
|
+
uo as Form,
|
|
122
123
|
ao as FormField,
|
|
124
|
+
fo as FormFieldError,
|
|
125
|
+
io as FormFieldHint,
|
|
126
|
+
no as FormFieldLabel,
|
|
123
127
|
mo as FormFieldWithTag,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
Te as
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
128
|
+
so as Header,
|
|
129
|
+
Io as HeaderSearch,
|
|
130
|
+
Co as Heading,
|
|
131
|
+
ho as Icon,
|
|
132
|
+
ko as IconButton,
|
|
133
|
+
Go as Icons,
|
|
134
|
+
Ao as InputCheckbox,
|
|
135
|
+
wo as InputCheckboxGroup,
|
|
136
|
+
Ho as InputCheckboxSizeEnum,
|
|
137
|
+
Mo as InputFile,
|
|
138
|
+
No as InputPassword,
|
|
139
|
+
qo as InputRadio,
|
|
140
|
+
Wo as InputRadioGroup,
|
|
141
|
+
Vo as InputRadioSizeEnum,
|
|
142
|
+
Jo as InputText,
|
|
143
|
+
Oo as Link,
|
|
144
|
+
Zo as List,
|
|
145
|
+
Xo as ListItem,
|
|
146
|
+
$o as Modal,
|
|
147
|
+
or as ModalBody,
|
|
148
|
+
rr as ModalFooter,
|
|
149
|
+
er as ModalTitle,
|
|
150
|
+
tr as ModalWrapper,
|
|
151
|
+
mr as Pagination,
|
|
152
|
+
ar as Paragraph,
|
|
153
|
+
ir as PhaseBanner,
|
|
154
|
+
dr as Popover,
|
|
155
|
+
ur as ProgressBar,
|
|
156
|
+
Ir as ProgressStepper,
|
|
157
|
+
Fr as Radio,
|
|
158
|
+
Cr as RadioGroup,
|
|
159
|
+
kr as ScoreSelect,
|
|
160
|
+
hr as SectionBreak,
|
|
161
|
+
Gr as Select,
|
|
162
|
+
Ae as SelectGroupItem,
|
|
163
|
+
wr as SelectGroupItemNext,
|
|
164
|
+
De as SelectItem,
|
|
165
|
+
yr as SelectItemNext,
|
|
166
|
+
Ar as SelectNext,
|
|
167
|
+
Hr as SideNav,
|
|
168
|
+
Rr as SideNavItem,
|
|
169
|
+
Er as Spinner,
|
|
170
|
+
vr as Stack,
|
|
171
|
+
br as Step,
|
|
172
|
+
sr as StepItem,
|
|
173
|
+
zr as SummaryList,
|
|
174
|
+
qr as SummaryListAction,
|
|
175
|
+
Ur as SummaryListRow,
|
|
176
|
+
Vr as SummaryListValue,
|
|
177
|
+
de as TabItem,
|
|
178
|
+
ue as TabList,
|
|
179
|
+
Ie as TabPanel,
|
|
180
|
+
ie as Table,
|
|
181
|
+
Zr as TableBody,
|
|
182
|
+
$r as TableData,
|
|
183
|
+
re as TableFoot,
|
|
184
|
+
te as TableHead,
|
|
185
|
+
me as TableHeader,
|
|
186
|
+
ae as TableRow,
|
|
187
|
+
se as Tabs,
|
|
188
|
+
Ce as Tag,
|
|
189
|
+
Te as TagTypeEnum,
|
|
190
|
+
Le as TextArea,
|
|
191
|
+
Be as TextInput,
|
|
192
|
+
ge as ToastProvider,
|
|
193
|
+
we as Tooltip,
|
|
194
|
+
Re as i18next,
|
|
195
|
+
Fo as initI18n,
|
|
196
|
+
Ge as toaster
|
|
190
197
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as n, Fragment as m, jsx as c } from "react/jsx-runtime";
|
|
3
3
|
import { useId as s } from "react";
|
|
4
4
|
import { HintText as d } from "../hint-text/hint-text.js";
|
|
5
5
|
import { Input as h } from "../primitives/input.js";
|
|
6
|
-
import { InputCheckboxSizeEnum as
|
|
6
|
+
import { InputCheckboxSizeEnum as r } from "./types.js";
|
|
7
7
|
const u = (e) => {
|
|
8
8
|
switch (e) {
|
|
9
|
-
case
|
|
9
|
+
case r.Large:
|
|
10
10
|
return "gi-input-checkbox-large";
|
|
11
|
-
case
|
|
11
|
+
case r.Small:
|
|
12
12
|
return "gi-input-checkbox-small";
|
|
13
13
|
default:
|
|
14
14
|
return "gi-input-checkbox-medium";
|
|
15
15
|
}
|
|
16
16
|
}, p = (e) => {
|
|
17
17
|
let i = "gi-w-8";
|
|
18
|
-
return e ===
|
|
18
|
+
return e === r.Large && (i = "gi-w-11"), e === r.Small && (i = "gi-w-6"), i;
|
|
19
19
|
}, x = ({
|
|
20
20
|
id: e,
|
|
21
|
-
size: i =
|
|
21
|
+
size: i = r.Medium,
|
|
22
22
|
label: l,
|
|
23
|
-
hint:
|
|
24
|
-
...
|
|
23
|
+
hint: o,
|
|
24
|
+
...a
|
|
25
25
|
}) => {
|
|
26
26
|
const t = e || s();
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ n(m, { children: [
|
|
28
|
+
/* @__PURE__ */ n("div", { className: "gi-input-checkbox-container", children: [
|
|
29
29
|
/* @__PURE__ */ c(
|
|
30
30
|
h,
|
|
31
31
|
{
|
|
@@ -33,14 +33,14 @@ const u = (e) => {
|
|
|
33
33
|
id: t,
|
|
34
34
|
className: u(i),
|
|
35
35
|
"aria-labelledby": l ? `${t}-label` : void 0,
|
|
36
|
-
...
|
|
36
|
+
...a
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
39
|
/* @__PURE__ */ c("label", { id: `${t}-label`, htmlFor: t, children: l })
|
|
40
40
|
] }),
|
|
41
|
-
|
|
41
|
+
o && /* @__PURE__ */ n("div", { className: "gi-input-checkbox-hint-container", children: [
|
|
42
42
|
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c("div", { className: p(i) }) }),
|
|
43
|
-
/* @__PURE__ */ c(d, { id: `${t}-hint`, text:
|
|
43
|
+
/* @__PURE__ */ c(d, { id: `${t}-hint`, text: o })
|
|
44
44
|
] })
|
|
45
45
|
] });
|
|
46
46
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as t, Fragment as c, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import { useId as p } from "react";
|
|
4
4
|
import { cn as n } from "../cn.js";
|
|
5
5
|
import { HintText as u } from "../hint-text/hint-text.js";
|
|
6
6
|
import { InputText as f } from "../input-text/input-text.js";
|
|
7
7
|
import { Label as h } from "../label/label.js";
|
|
8
|
-
import { Input as
|
|
8
|
+
import { Input as v } from "../primitives/input.js";
|
|
9
9
|
import { InputRadioSizeEnum as d } from "./types.js";
|
|
10
|
-
const
|
|
10
|
+
const x = (r) => {
|
|
11
11
|
let i = "gi-input-radio-medium";
|
|
12
12
|
return r === d.Large && (i = "gi-input-radio-large"), r === d.Small && (i = "gi-input-radio-small"), i;
|
|
13
13
|
}, y = (r) => {
|
|
@@ -17,20 +17,20 @@ const v = (r) => {
|
|
|
17
17
|
label: r,
|
|
18
18
|
hint: i,
|
|
19
19
|
id: s,
|
|
20
|
-
size:
|
|
20
|
+
size: e = "md",
|
|
21
21
|
conditionalInput: a,
|
|
22
22
|
checked: l,
|
|
23
23
|
...g
|
|
24
24
|
}) => {
|
|
25
25
|
const m = s ?? p();
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
26
|
+
return /* @__PURE__ */ t(c, { children: /* @__PURE__ */ o("div", { className: "gi-input-radio-container", children: [
|
|
27
|
+
/* @__PURE__ */ t(
|
|
28
|
+
v,
|
|
29
29
|
{
|
|
30
30
|
type: "radio",
|
|
31
31
|
id: m,
|
|
32
32
|
checked: l,
|
|
33
|
-
className:
|
|
33
|
+
className: x(e),
|
|
34
34
|
"aria-describedby": i ? `${m}-hint` : void 0,
|
|
35
35
|
"aria-required": a ? "true" : "false",
|
|
36
36
|
...g
|
|
@@ -40,20 +40,20 @@ const v = (r) => {
|
|
|
40
40
|
"div",
|
|
41
41
|
{
|
|
42
42
|
className: n({
|
|
43
|
-
"gi-mt-1":
|
|
44
|
-
"gi-mt-2":
|
|
43
|
+
"gi-mt-1": e === "md",
|
|
44
|
+
"gi-mt-2": e === "lg"
|
|
45
45
|
}),
|
|
46
46
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
(i || a) && /* @__PURE__ */
|
|
49
|
-
i && /* @__PURE__ */
|
|
50
|
-
a && /* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ t(h, { htmlFor: m, text: r || "", size: e }),
|
|
48
|
+
(i || a) && /* @__PURE__ */ t("div", { className: "gi-radio-conditional-divider-container", children: /* @__PURE__ */ o("div", { children: [
|
|
49
|
+
i && /* @__PURE__ */ t(u, { text: i, size: e }),
|
|
50
|
+
a && /* @__PURE__ */ t(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
53
|
className: n("gi-mt-3", {
|
|
54
54
|
"gi-hidden": !l
|
|
55
55
|
}),
|
|
56
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ t(f, { ...a })
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
] }) })
|
package/dist/label/label.js
CHANGED
package/dist/link/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as S, Fragment as b } from "react/jsx-runtime";
|
|
2
|
-
import { a as j } from "../index-
|
|
2
|
+
import { a as j } from "../index-2sRBqKFV.js";
|
|
3
3
|
import { forwardRef as w } from "react";
|
|
4
4
|
import { getVariantAppearanceClass as I, getSizeClass as L } from "../button/helpers.js";
|
|
5
5
|
import { cn as A } from "../cn.js";
|
package/dist/list/list.js
CHANGED
|
@@ -21,7 +21,7 @@ const s = {
|
|
|
21
21
|
}
|
|
22
22
|
return i && e.push("gi-list-spaced"), e.join(" ");
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function c({
|
|
25
25
|
items: i,
|
|
26
26
|
type: t = s.None,
|
|
27
27
|
spaced: e,
|
|
@@ -39,6 +39,6 @@ function o({
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
c as List,
|
|
43
43
|
s as ListTypeEnum
|
|
44
44
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as i,
|
|
1
|
+
import { jsxs as i, jsx as t, Fragment as r } from "react/jsx-runtime";
|
|
2
2
|
import { Button as o } from "../button/button.js";
|
|
3
3
|
import { ModalTitle as e, ModalBody as a, ModalFooter as n } from "./modal.js";
|
|
4
4
|
const c = /* @__PURE__ */ i(r, { children: [
|
package/dist/modal/modal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r, jsxs as p, Fragment as T } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { useState as x, cloneElement as f, isValidElement as k, Children as F } from "react";
|
|
4
4
|
import { Button as A } from "../button/button.js";
|
|
5
5
|
import { cn as s } from "../cn.js";
|
|
6
6
|
import { Heading as I } from "../heading/heading.js";
|
|
@@ -63,7 +63,7 @@ const v = (e, a, t) => {
|
|
|
63
63
|
dataTestId: u,
|
|
64
64
|
...y
|
|
65
65
|
}) => {
|
|
66
|
-
const h =
|
|
66
|
+
const h = F.toArray(o), C = h.find(
|
|
67
67
|
(l) => v(M, "ModalTitle", l)
|
|
68
68
|
), N = h.find(
|
|
69
69
|
(l) => v(_, "ModalFooter", l)
|
|
@@ -194,7 +194,7 @@ const v = (e, a, t) => {
|
|
|
194
194
|
startsOpen: t,
|
|
195
195
|
...n
|
|
196
196
|
}) => {
|
|
197
|
-
const [i, c] =
|
|
197
|
+
const [i, c] = x(!!t), d = () => c(!0), m = () => c(!1), o = f(a, {
|
|
198
198
|
"data-testid": "modal-trigger-button-container",
|
|
199
199
|
"aria-haspopup": "dialog",
|
|
200
200
|
onClick: d
|