@ogcio/design-system-react 1.19.0 → 1.21.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.
- package/dist/card/card-legacy.d.ts +1 -1
- package/dist/card/card-legacy.js +12 -12
- package/dist/card/card-next.d.ts +2 -3
- package/dist/card/card-next.js +226 -61
- package/dist/card/card.js +17 -16
- package/dist/card/types.d.ts +20 -30
- package/dist/forms/form-field/form-field.js +58 -60
- package/dist/header/components/header-menu.d.ts +1 -2
- package/dist/header/header-legacy.d.ts +2 -0
- package/dist/header/header-legacy.js +223 -0
- package/dist/header/header-next/components/header-logo.d.ts +2 -0
- package/dist/header/header-next/components/header-logo.js +19 -0
- package/dist/header/header-next/components/header-title.d.ts +2 -0
- package/dist/header/header-next/components/header-title.js +29 -0
- package/dist/header/header-next/components/menu/components/header-menu-item-button.d.ts +2 -0
- package/dist/header/header-next/components/menu/components/header-menu-item-button.js +42 -0
- package/dist/header/header-next/components/menu/components/header-menu-item-link.d.ts +8 -0
- package/dist/header/header-next/components/menu/components/header-menu-item-link.js +72 -0
- package/dist/header/header-next/components/menu/components/header-menu-item-separator.d.ts +3 -0
- package/dist/header/header-next/components/menu/components/header-menu-item-separator.js +34 -0
- package/dist/header/header-next/components/menu/components/header-menu-item-slot.d.ts +5 -0
- package/dist/header/header-next/components/menu/components/header-menu-item-slot.js +42 -0
- package/dist/header/header-next/components/menu/header-menu-context.d.ts +7 -0
- package/dist/header/header-next/components/menu/header-menu-context.js +23 -0
- package/dist/header/header-next/components/menu/header-primary-menu.d.ts +3 -0
- package/dist/header/header-next/components/menu/header-primary-menu.js +63 -0
- package/dist/header/header-next/components/menu/header-secondary-menu.d.ts +3 -0
- package/dist/header/header-next/components/menu/header-secondary-menu.js +52 -0
- package/dist/header/header-next/header-context.d.ts +13 -0
- package/dist/header/header-next/header-context.js +31 -0
- package/dist/header/header-next/header-next.d.ts +7 -0
- package/dist/header/header-next/header-next.js +75 -0
- package/dist/header/header-next/index.d.ts +11 -0
- package/dist/header/header-next/index.js +27 -0
- package/dist/header/header.d.ts +2 -2
- package/dist/header/header.js +17 -219
- package/dist/header/types.d.ts +84 -4
- package/dist/header/variants.d.ts +2 -2
- package/dist/header/variants.js +1 -1
- package/dist/hooks/use-toggle-map.d.ts +15 -0
- package/dist/hooks/use-toggle-map.js +45 -0
- package/dist/icon/icons.d.ts +2 -2
- package/dist/icon/icons.js +2 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +210 -178
- package/dist/input-checkbox/input-checkbox.d.ts +1 -1
- package/dist/input-checkbox/input-checkbox.js +65 -48
- package/dist/input-radio/input-radio.d.ts +1 -1
- package/dist/input-radio/input-radio.js +50 -44
- package/dist/input-radio/types.d.ts +0 -1
- package/dist/input-radio/types.js +0 -1
- package/dist/list-item/list-item.d.ts +3 -2
- package/dist/list-item/list-item.js +15 -6
- package/dist/modal/types.d.ts +5 -3
- package/dist/radio/types.d.ts +0 -1
- package/dist/styles.css +2 -2
- package/dist/summary-list/index.d.ts +6 -0
- package/dist/summary-list/index.js +12 -0
- package/dist/summary-list/summary-list-action.d.ts +5 -0
- package/dist/summary-list/summary-list-action.js +18 -0
- package/dist/summary-list/summary-list-context.d.ts +2 -0
- package/dist/summary-list/summary-list-context.js +20 -0
- package/dist/summary-list/summary-list-header.d.ts +5 -0
- package/dist/summary-list/summary-list-header.js +68 -0
- package/dist/summary-list/summary-list-row.d.ts +6 -0
- package/dist/summary-list/summary-list-row.js +63 -0
- package/dist/summary-list/summary-list-value.d.ts +5 -0
- package/dist/summary-list/summary-list-value.js +17 -0
- package/dist/summary-list/summary-list.d.ts +2 -11
- package/dist/summary-list/summary-list.js +37 -43
- package/dist/summary-list/types.d.ts +15 -11
- package/dist/utilities.d.ts +3 -0
- package/dist/utilities.js +17 -7
- package/dist/utils/utilities.d.ts +3 -0
- package/dist/utils/utilities.js +34 -25
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AccordionItem as e } from "./accordion/accordion-item.js";
|
|
2
2
|
import { Accordion as p } from "./accordion/accordion.js";
|
|
3
3
|
import { Alert as a } from "./alert/alert.js";
|
|
4
|
-
import { Autocomplete as f, AutocompleteItem as
|
|
5
|
-
import { Blockquote as
|
|
6
|
-
import { BreadcrumbCurrentLink as u, BreadcrumbEllipsis as c, BreadcrumbLink as
|
|
7
|
-
import { ButtonGroup as
|
|
4
|
+
import { Autocomplete as f, AutocompleteItem as n } from "./autocomplete/autocomplete.js";
|
|
5
|
+
import { Blockquote as l } from "./blockquote/blockquote.js";
|
|
6
|
+
import { BreadcrumbCurrentLink as u, BreadcrumbEllipsis as c, BreadcrumbLink as S, Breadcrumbs as b } from "./breadcrumbs/breadcrumbs.js";
|
|
7
|
+
import { ButtonGroup as I, ButtonGroupItem as C } from "./button-group/button-group.js";
|
|
8
8
|
import { Button as F } from "./button/button.js";
|
|
9
|
-
import { CardAction as
|
|
10
|
-
import { Card as
|
|
11
|
-
import { CheckboxGroup as
|
|
12
|
-
import { Checkbox as
|
|
9
|
+
import { CardAction as B, CardContainer as L, CardDescription as M, CardHeader as k, CardMedia as g, CardSubtitle as D, CardTag as P, CardTitle as h } from "./card/card-next.js";
|
|
10
|
+
import { Card as G } from "./card/card.js";
|
|
11
|
+
import { CheckboxGroup as A } from "./checkbox/checkbox-group.js";
|
|
12
|
+
import { Checkbox as E } from "./checkbox/checkbox.js";
|
|
13
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";
|
|
@@ -17,194 +17,226 @@ import { Container as j } from "./container/container.js";
|
|
|
17
17
|
import { CookieBanner as K } from "./cookie-banner/cookie-banner.js";
|
|
18
18
|
import { Details as Q } from "./details/details.js";
|
|
19
19
|
import { Drawer as Y, DrawerBody as Z, DrawerFooter as _, DrawerWrapper as $ } from "./drawer/drawer.js";
|
|
20
|
-
import { FileUpload as
|
|
21
|
-
import { Footer as
|
|
22
|
-
import { FormFieldWithTag as
|
|
23
|
-
import { FormField as
|
|
24
|
-
import { Form as
|
|
25
|
-
import { HeaderSearch as
|
|
26
|
-
import { Header as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
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 {
|
|
84
|
-
import {
|
|
20
|
+
import { FileUpload as or } from "./file-upload/file-upload.js";
|
|
21
|
+
import { Footer as tr } from "./footer/footer.js";
|
|
22
|
+
import { FormFieldWithTag as mr } from "./forms/form-field-with-tag/form-field-with-tag.js";
|
|
23
|
+
import { FormField as xr, FormFieldError as fr, FormFieldHint as nr, FormFieldLabel as ir } from "./forms/form-field/form-field.js";
|
|
24
|
+
import { Form as dr } from "./forms/form.js";
|
|
25
|
+
import { HeaderSearch as cr } from "./header/components/header-search.js";
|
|
26
|
+
import { Header as br } from "./header/header.js";
|
|
27
|
+
import { HeaderNext as Ir, HeaderSlotContainer as Cr } from "./header/header-next/header-next.js";
|
|
28
|
+
import { HeaderProvider as Fr, useHeaderContext as Hr } from "./header/header-next/header-context.js";
|
|
29
|
+
import { HeaderLogo as Lr } from "./header/header-next/components/header-logo.js";
|
|
30
|
+
import { HeaderTitle as kr } from "./header/header-next/components/header-title.js";
|
|
31
|
+
import { HeaderMenuSectionProvider as Dr, useHeaderMenuSection as Pr } from "./header/header-next/components/menu/header-menu-context.js";
|
|
32
|
+
import { HeaderPrimaryMenu as yr } from "./header/header-next/components/menu/header-primary-menu.js";
|
|
33
|
+
import { HeaderSecondaryMenu as wr } from "./header/header-next/components/menu/header-secondary-menu.js";
|
|
34
|
+
import { HeaderMenuItemButton as vr } from "./header/header-next/components/menu/components/header-menu-item-button.js";
|
|
35
|
+
import { HeaderMenuItemLink as Rr } from "./header/header-next/components/menu/components/header-menu-item-link.js";
|
|
36
|
+
import { HeaderMenuItemSeparator as Wr } from "./header/header-next/components/menu/components/header-menu-item-separator.js";
|
|
37
|
+
import { HeaderMenuItemSlot as qr } from "./header/header-next/components/menu/components/header-menu-item-slot.js";
|
|
38
|
+
import { Heading as Vr } from "./heading/heading.js";
|
|
39
|
+
import { initI18n as Jr } from "./i18n/config.js";
|
|
40
|
+
import { IconButton as Or } from "./icon-button/icon-button.js";
|
|
41
|
+
import { Icon as Xr } from "./icon/icon.js";
|
|
42
|
+
import { Icons as Zr } from "./icon/icons.js";
|
|
43
|
+
import { InputCheckboxGroup as $r } from "./input-checkbox-group/input-checkbox-group.js";
|
|
44
|
+
import { InputCheckbox as oo, InputCheckboxTableCell as eo } from "./input-checkbox/input-checkbox.js";
|
|
45
|
+
import { InputCheckboxSizeEnum as po } from "./input-checkbox/types.js";
|
|
46
|
+
import { InputFile as ao } from "./input-file/input-file.js";
|
|
47
|
+
import { InputPassword as fo } from "./input-password/input-password.js";
|
|
48
|
+
import { InputRadioGroup as io } from "./input-radio-group/input-radio-group.js";
|
|
49
|
+
import { InputRadio as uo } from "./input-radio/input-radio.js";
|
|
50
|
+
import { InputRadioSizeEnum as So } from "./input-radio/types.js";
|
|
51
|
+
import { InputText as To, InputTextTableCell as Io } from "./input-text/input-text.js";
|
|
52
|
+
import { Link as so } from "./link/link.js";
|
|
53
|
+
import { ListItem as Ho } from "./list-item/list-item.js";
|
|
54
|
+
import { List as Lo } from "./list/list.js";
|
|
55
|
+
import { Modal as ko, ModalBody as go, ModalFooter as Do, ModalTitle as Po, ModalWrapper as ho } from "./modal/modal.js";
|
|
56
|
+
import { Pagination as Go } from "./pagination/pagination.js";
|
|
57
|
+
import { Paragraph as Ao } from "./paragraph/paragraph.js";
|
|
58
|
+
import { PhaseBanner as Eo } from "./phase-banner/phase-banner.js";
|
|
59
|
+
import { Popover as No } from "./popover/popover.js";
|
|
60
|
+
import { ProgressBar as zo } from "./progress-bar/progress-bar.js";
|
|
61
|
+
import { StepFillLevel as Uo, StepStatus as Vo } from "./progress-stepper/types.js";
|
|
62
|
+
import { ProgressStepper as Jo, Step as Ko, StepItem as Oo } from "./progress-stepper/progress-stepper.js";
|
|
63
|
+
import { RadioGroup as Xo } from "./radio/radio-group.js";
|
|
64
|
+
import { Radio as Zo } from "./radio/radio.js";
|
|
65
|
+
import { ScoreSelect as $o } from "./score-select/score-select.js";
|
|
66
|
+
import { SectionBreak as oe } from "./section-break/section-break.js";
|
|
67
|
+
import { Select as te } from "./select/select.js";
|
|
68
|
+
import { SelectGroupItemNext as me, SelectItemNext as ae, SelectNext as xe } from "./select/select-next.js";
|
|
69
|
+
import { SideNav as ne, SideNavItem as ie } from "./side-nav/side-nav.js";
|
|
70
|
+
import { Spinner as de } from "./spinner/spinner.js";
|
|
71
|
+
import { Stack as ce } from "./stack/stack.js";
|
|
72
|
+
import { SummaryListRow as be } from "./summary-list/summary-list-row.js";
|
|
73
|
+
import { SummaryListAction as Ie } from "./summary-list/summary-list-action.js";
|
|
74
|
+
import { SummaryListValue as se } from "./summary-list/summary-list-value.js";
|
|
75
|
+
import { SummaryList as He } from "./summary-list/summary-list.js";
|
|
76
|
+
import { SummaryListHeader as Le } from "./summary-list/summary-list-header.js";
|
|
77
|
+
import { Caption as ke } from "./table/caption.js";
|
|
78
|
+
import { ColumnGroup as De } from "./table/column-group.js";
|
|
79
|
+
import { Column as he } from "./table/column.js";
|
|
80
|
+
import { TableBody as Ge } from "./table/table-body.js";
|
|
81
|
+
import { TableData as Ae } from "./table/table-data.js";
|
|
82
|
+
import { TableFoot as Ee } from "./table/table-foot.js";
|
|
83
|
+
import { TableHead as Ne } from "./table/table-head.js";
|
|
84
|
+
import { TableHeader as ze } from "./table/table-header.js";
|
|
85
|
+
import { TableRow as Ue } from "./table/table-row.js";
|
|
86
|
+
import { Table as je } from "./table/table.js";
|
|
87
|
+
import { TabItem as Ke } from "./tabs/tab-item.js";
|
|
88
|
+
import { TabList as Qe } from "./tabs/tab-list.js";
|
|
89
|
+
import { TabPanel as Ye } from "./tabs/tab-panel.js";
|
|
90
|
+
import { Tabs as _e } from "./tabs/tabs.js";
|
|
91
|
+
import { DataTableFooter as rt, DataTableFooterCenter as ot, DataTableFooterEnd as et, DataTableFooterStart as tt } from "./data-table/data-table-footer.js";
|
|
92
|
+
import { Tag as mt, TagTypeEnum as at } from "./tag/tag.js";
|
|
93
|
+
import { TextInput as ft } from "./text-input/text-input.js";
|
|
94
|
+
import { TextArea as it } from "./textarea/textarea.js";
|
|
95
|
+
import { ToastProvider as dt, toaster as ut } from "./toast/toast.js";
|
|
96
|
+
import { Tooltip as St } from "./tooltip/tooltip.js";
|
|
97
|
+
import { EditableTableCell as Tt } from "./data-table/editable-table-cell.js";
|
|
98
|
+
import { useToggleMap as Ct } from "./hooks/use-toggle-map.js";
|
|
99
|
+
import { SelectGroupItem as Ft, SelectItem as Ht, SelectTableCell as Bt } from "./select/select-native.js";
|
|
100
|
+
import { i as Mt } from "./i18next-DxWa09nx.js";
|
|
85
101
|
export {
|
|
86
102
|
p as Accordion,
|
|
87
103
|
e as AccordionItem,
|
|
88
104
|
a as Alert,
|
|
89
105
|
f as Autocomplete,
|
|
90
|
-
|
|
91
|
-
|
|
106
|
+
n as AutocompleteItem,
|
|
107
|
+
l as Blockquote,
|
|
92
108
|
u as BreadcrumbCurrentLink,
|
|
93
109
|
c as BreadcrumbEllipsis,
|
|
94
|
-
|
|
95
|
-
|
|
110
|
+
S as BreadcrumbLink,
|
|
111
|
+
b as Breadcrumbs,
|
|
96
112
|
F as Button,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
113
|
+
I as ButtonGroup,
|
|
114
|
+
C as ButtonGroupItem,
|
|
115
|
+
ke as Caption,
|
|
116
|
+
G as Card,
|
|
117
|
+
B as CardAction,
|
|
118
|
+
L as CardContainer,
|
|
119
|
+
M as CardDescription,
|
|
120
|
+
k as CardHeader,
|
|
105
121
|
g as CardMedia,
|
|
106
|
-
|
|
122
|
+
D as CardSubtitle,
|
|
107
123
|
P as CardTag,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
124
|
+
h as CardTitle,
|
|
125
|
+
E as Checkbox,
|
|
126
|
+
A as CheckboxGroup,
|
|
111
127
|
N as Chip,
|
|
112
|
-
|
|
113
|
-
|
|
128
|
+
he as Column,
|
|
129
|
+
De as ColumnGroup,
|
|
114
130
|
z as Combobox,
|
|
115
131
|
j as Container,
|
|
116
132
|
K as CookieBanner,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
133
|
+
rt as DataTableFooter,
|
|
134
|
+
ot as DataTableFooterCenter,
|
|
135
|
+
et as DataTableFooterEnd,
|
|
136
|
+
tt as DataTableFooterStart,
|
|
121
137
|
Q as Details,
|
|
122
138
|
Y as Drawer,
|
|
123
139
|
Z as DrawerBody,
|
|
124
140
|
_ as DrawerFooter,
|
|
125
141
|
$ as DrawerWrapper,
|
|
126
142
|
U as DropdownItem,
|
|
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
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
ce as
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
143
|
+
Tt as EditableTableCell,
|
|
144
|
+
or as FileUpload,
|
|
145
|
+
tr as Footer,
|
|
146
|
+
dr as Form,
|
|
147
|
+
xr as FormField,
|
|
148
|
+
fr as FormFieldError,
|
|
149
|
+
nr as FormFieldHint,
|
|
150
|
+
ir as FormFieldLabel,
|
|
151
|
+
mr as FormFieldWithTag,
|
|
152
|
+
br as Header,
|
|
153
|
+
Lr as HeaderLogo,
|
|
154
|
+
vr as HeaderMenuItemButton,
|
|
155
|
+
Rr as HeaderMenuItemLink,
|
|
156
|
+
Wr as HeaderMenuItemSeparator,
|
|
157
|
+
qr as HeaderMenuItemSlot,
|
|
158
|
+
Dr as HeaderMenuSectionProvider,
|
|
159
|
+
Ir as HeaderNext,
|
|
160
|
+
yr as HeaderPrimaryMenu,
|
|
161
|
+
Fr as HeaderProvider,
|
|
162
|
+
cr as HeaderSearch,
|
|
163
|
+
wr as HeaderSecondaryMenu,
|
|
164
|
+
Cr as HeaderSlotContainer,
|
|
165
|
+
kr as HeaderTitle,
|
|
166
|
+
Vr as Heading,
|
|
167
|
+
Xr as Icon,
|
|
168
|
+
Or as IconButton,
|
|
169
|
+
Zr as Icons,
|
|
170
|
+
oo as InputCheckbox,
|
|
171
|
+
$r as InputCheckboxGroup,
|
|
172
|
+
po as InputCheckboxSizeEnum,
|
|
173
|
+
eo as InputCheckboxTableCell,
|
|
174
|
+
ao as InputFile,
|
|
175
|
+
fo as InputPassword,
|
|
176
|
+
uo as InputRadio,
|
|
177
|
+
io as InputRadioGroup,
|
|
178
|
+
So as InputRadioSizeEnum,
|
|
179
|
+
To as InputText,
|
|
180
|
+
Io as InputTextTableCell,
|
|
181
|
+
so as Link,
|
|
182
|
+
Lo as List,
|
|
183
|
+
Ho as ListItem,
|
|
184
|
+
ko as Modal,
|
|
185
|
+
go as ModalBody,
|
|
186
|
+
Do as ModalFooter,
|
|
187
|
+
Po as ModalTitle,
|
|
188
|
+
ho as ModalWrapper,
|
|
189
|
+
Go as Pagination,
|
|
190
|
+
Ao as Paragraph,
|
|
191
|
+
Eo as PhaseBanner,
|
|
192
|
+
No as Popover,
|
|
193
|
+
zo as ProgressBar,
|
|
194
|
+
Jo as ProgressStepper,
|
|
195
|
+
Zo as Radio,
|
|
196
|
+
Xo as RadioGroup,
|
|
197
|
+
$o as ScoreSelect,
|
|
198
|
+
oe as SectionBreak,
|
|
199
|
+
te as Select,
|
|
200
|
+
Ft as SelectGroupItem,
|
|
201
|
+
me as SelectGroupItemNext,
|
|
202
|
+
Ht as SelectItem,
|
|
203
|
+
ae as SelectItemNext,
|
|
204
|
+
xe as SelectNext,
|
|
205
|
+
Bt as SelectTableCell,
|
|
206
|
+
ne as SideNav,
|
|
207
|
+
ie as SideNavItem,
|
|
208
|
+
de as Spinner,
|
|
209
|
+
ce as Stack,
|
|
210
|
+
Ko as Step,
|
|
211
|
+
Uo as StepFillLevel,
|
|
212
|
+
Oo as StepItem,
|
|
213
|
+
Vo as StepStatus,
|
|
214
|
+
He as SummaryList,
|
|
215
|
+
Ie as SummaryListAction,
|
|
216
|
+
Le as SummaryListHeader,
|
|
217
|
+
be as SummaryListRow,
|
|
218
|
+
se as SummaryListValue,
|
|
219
|
+
Ke as TabItem,
|
|
220
|
+
Qe as TabList,
|
|
221
|
+
Ye as TabPanel,
|
|
222
|
+
je as Table,
|
|
223
|
+
Ge as TableBody,
|
|
224
|
+
Ae as TableData,
|
|
225
|
+
Ee as TableFoot,
|
|
226
|
+
Ne as TableHead,
|
|
227
|
+
ze as TableHeader,
|
|
228
|
+
Ue as TableRow,
|
|
229
|
+
_e as Tabs,
|
|
230
|
+
mt as Tag,
|
|
231
|
+
at as TagTypeEnum,
|
|
232
|
+
it as TextArea,
|
|
233
|
+
ft as TextInput,
|
|
234
|
+
dt as ToastProvider,
|
|
235
|
+
St as Tooltip,
|
|
236
|
+
Mt as i18next,
|
|
237
|
+
Jr as initI18n,
|
|
238
|
+
ut as toaster,
|
|
239
|
+
Hr as useHeaderContext,
|
|
240
|
+
Pr as useHeaderMenuSection,
|
|
241
|
+
Ct as useToggleMap
|
|
210
242
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputCheckboxSizeEnumType, InputCheckboxTableCellProps } from './types.js';
|
|
2
|
-
export declare const getCheckboxWidth: (size?: InputCheckboxSizeEnumType) =>
|
|
2
|
+
export declare const getCheckboxWidth: (size?: InputCheckboxSizeEnumType) => "gi-w-11" | "gi-w-6" | "gi-w-8";
|
|
3
3
|
export declare const InputCheckbox: import('react').ForwardRefExoticComponent<{
|
|
4
4
|
size?: InputCheckboxSizeEnumType;
|
|
5
5
|
label?: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "@ogcio/design-system-react/browser-check";
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { HintText as
|
|
7
|
-
import { Input as
|
|
3
|
+
import { jsxs as o, Fragment as g, jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { forwardRef as k, useId as f } from "react";
|
|
5
|
+
import { cn as r } from "../cn.js";
|
|
6
|
+
import { HintText as C } from "../hint-text/hint-text.js";
|
|
7
|
+
import { Input as I } from "../primitives/input.js";
|
|
8
8
|
import { InputCheckboxSizeEnum as a } from "./types.js";
|
|
9
|
-
const
|
|
9
|
+
const N = (e) => {
|
|
10
10
|
switch (e) {
|
|
11
11
|
case a.Large:
|
|
12
12
|
return "gi-input-checkbox-large";
|
|
@@ -15,50 +15,67 @@ const f = (e) => {
|
|
|
15
15
|
default:
|
|
16
16
|
return "gi-input-checkbox-medium";
|
|
17
17
|
}
|
|
18
|
-
},
|
|
19
|
-
let t = "gi-w-8";
|
|
20
|
-
return e === a.Large && (t = "gi-w-11"), e === a.Small && (t = "gi-w-6"), t;
|
|
21
|
-
}, r = u(
|
|
18
|
+
}, v = (e) => e === a.Large ? "gi-w-11" : e === a.Small ? "gi-w-6" : "gi-w-8", d = k(
|
|
22
19
|
({
|
|
23
20
|
id: e,
|
|
24
|
-
size:
|
|
25
|
-
label:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
21
|
+
size: c = a.Medium,
|
|
22
|
+
label: b,
|
|
23
|
+
children: s,
|
|
24
|
+
hint: m,
|
|
25
|
+
indeterminate: h = !1,
|
|
26
|
+
containerProps: u,
|
|
27
|
+
...p
|
|
28
|
+
}, x) => {
|
|
29
|
+
const i = e || f(), l = !!s, n = s ?? b;
|
|
30
|
+
return /* @__PURE__ */ o(g, { children: [
|
|
31
|
+
/* @__PURE__ */ o(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
className: r("gi-input-checkbox-container", {
|
|
35
|
+
"!gi-items-start": l
|
|
36
|
+
}),
|
|
37
|
+
...u,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ t(
|
|
40
|
+
I,
|
|
41
|
+
{
|
|
42
|
+
type: "checkbox",
|
|
43
|
+
ref: x,
|
|
44
|
+
id: i,
|
|
45
|
+
className: r(N(c), {
|
|
46
|
+
"gi-checkbox-indeterminate": h
|
|
47
|
+
}),
|
|
48
|
+
"aria-labelledby": n ? `${i}-label` : void 0,
|
|
49
|
+
...p
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
n && /* @__PURE__ */ t(
|
|
53
|
+
"label",
|
|
54
|
+
{
|
|
55
|
+
id: `${i}-label`,
|
|
56
|
+
htmlFor: l ? void 0 : i,
|
|
57
|
+
className: r({
|
|
58
|
+
"gi-rich-label": l
|
|
59
|
+
}),
|
|
60
|
+
children: n
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
m && /* @__PURE__ */ o("div", { className: "gi-input-checkbox-hint-container", children: [
|
|
67
|
+
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("div", { className: v(c) }) }),
|
|
68
|
+
/* @__PURE__ */ t(C, { id: `${i}-hint`, text: m })
|
|
52
69
|
] })
|
|
53
70
|
] });
|
|
54
71
|
}
|
|
55
|
-
),
|
|
72
|
+
), w = ({
|
|
56
73
|
error: e,
|
|
57
|
-
...
|
|
58
|
-
}) => /* @__PURE__ */
|
|
59
|
-
|
|
74
|
+
...c
|
|
75
|
+
}) => /* @__PURE__ */ t(
|
|
76
|
+
d,
|
|
60
77
|
{
|
|
61
|
-
...
|
|
78
|
+
...c,
|
|
62
79
|
size: "sm",
|
|
63
80
|
containerProps: {
|
|
64
81
|
"data-table-cell": !0,
|
|
@@ -66,10 +83,10 @@ const f = (e) => {
|
|
|
66
83
|
}
|
|
67
84
|
}
|
|
68
85
|
);
|
|
69
|
-
|
|
70
|
-
|
|
86
|
+
d.displayName = "InputCheckbox";
|
|
87
|
+
w.displayName = "InputCheckboxTableCell";
|
|
71
88
|
export {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
89
|
+
d as InputCheckbox,
|
|
90
|
+
w as InputCheckboxTableCell,
|
|
91
|
+
v as getCheckboxWidth
|
|
75
92
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputRadioProps, InputRadioSizeType } from './types.js';
|
|
2
|
-
export declare const getRadioWidth: (size?: InputRadioSizeType) =>
|
|
2
|
+
export declare const getRadioWidth: (size?: InputRadioSizeType) => "gi-w-6" | "gi-w-8";
|
|
3
3
|
export declare const InputRadio: React.FC<InputRadioProps>;
|