@ogcio/design-system-react 1.12.4 → 1.14.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/accordion/accordion-item.js +1 -1
- package/dist/alert/alert.js +1 -1
- package/dist/autocomplete/autocomplete.d.ts +21 -3
- package/dist/autocomplete/autocomplete.js +212 -237
- package/dist/autocomplete/types.d.ts +29 -7
- package/dist/autocomplete/types.js +2 -1
- package/dist/autocomplete/use-autocomplete-controller.d.ts +12 -0
- package/dist/autocomplete/use-autocomplete-controller.js +169 -0
- package/dist/button/button.js +27 -22
- package/dist/button/helpers.d.ts +1 -1
- package/dist/button/helpers.js +14 -12
- package/dist/button/types.d.ts +1 -1
- package/dist/button-group/button-group.d.ts +1 -0
- package/dist/button-group/button-group.js +67 -60
- package/dist/card/card-next.js +28 -28
- package/dist/checkbox/checkbox.d.ts +7 -1
- package/dist/combo-box/dropdown-item.js +30 -30
- package/dist/data-grid/editable-table-cell.d.ts +3 -0
- package/dist/data-grid/editable-table-cell.js +73 -0
- package/dist/data-grid/tanstack/tanstack-helpers.d.ts +11 -0
- package/dist/data-grid/tanstack/tanstack-helpers.js +1799 -0
- package/dist/data-grid/types.d.ts +20 -0
- package/dist/data-grid/types.js +1 -0
- 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.js +4 -4
- package/dist/forms/form-field-with-tag/form-field-with-tag.js +1 -1
- package/dist/header/components/header-slot.js +38 -27
- package/dist/header/header.js +5 -5
- package/dist/heading/heading.js +1 -1
- package/dist/hint-text/hint-text.js +1 -1
- package/dist/hooks/use-aria-hider.d.ts +1 -0
- package/dist/hooks/use-aria-hider.js +20 -0
- package/dist/hooks/use-combined-refs.d.ts +5 -0
- package/dist/hooks/use-combined-refs.js +10 -0
- package/dist/hooks/use-focus-trap.d.ts +2 -0
- package/dist/hooks/use-focus-trap.js +678 -0
- package/dist/hooks/use-scroll-highlighted-item.d.ts +1 -0
- package/dist/hooks/use-scroll-highlighted-item.js +16 -0
- package/dist/icon/icon.js +46 -46
- package/dist/icon/icons.d.ts +2 -2
- package/dist/icon/icons.js +5 -1
- package/dist/icon/svgs/placeholder.js +2 -2
- package/dist/icon-button/icon-button.js +24 -22
- package/dist/index-2sRBqKFV.js +78 -0
- package/dist/{index-DNkhmzZp.js → index-CB-zPpNk.js} +44 -44
- package/dist/index.d.ts +9 -6
- package/dist/index.js +135 -130
- package/dist/input-checkbox/input-checkbox.d.ts +9 -2
- package/dist/input-checkbox/input-checkbox.js +65 -42
- package/dist/input-checkbox/types.d.ts +5 -0
- package/dist/input-checkbox-group/input-checkbox-group.js +22 -16
- package/dist/input-checkbox-group/types.d.ts +1 -0
- package/dist/input-radio/input-radio.js +15 -15
- package/dist/input-radio-group/input-radio-group.js +24 -17
- package/dist/input-radio-group/types.d.ts +1 -0
- package/dist/input-text/input-text.d.ts +22 -0
- package/dist/input-text/input-text.js +121 -100
- package/dist/input-text/type.d.ts +5 -0
- package/dist/label/label.js +1 -1
- package/dist/link/link.js +1 -1
- package/dist/list/list.js +3 -3
- package/dist/lodash-D1c5hFAM.js +3677 -0
- package/dist/modal/modal.content.js +1 -1
- package/dist/modal/modal.d.ts +8 -2
- package/dist/modal/modal.js +166 -131
- package/dist/popover/popover.d.ts +1 -1
- package/dist/popover/popover.js +534 -526
- package/dist/popover/types.d.ts +1 -0
- package/dist/popover/utilities.d.ts +2 -0
- package/dist/popover/utilities.js +16 -0
- package/dist/primitives/anchor.js +1 -1
- package/dist/primitives/button.d.ts +3 -0
- package/dist/primitives/button.js +9 -0
- package/dist/progress-bar/progress-bar.js +8 -8
- package/dist/progress-stepper/progress-stepper.js +12 -12
- package/dist/score-select/score-select.js +3 -3
- package/dist/select/select-menu.d.ts +2 -2
- package/dist/select/select-menu.js +113 -110
- package/dist/select/select-native.d.ts +5 -2
- package/dist/select/select-native.js +45 -15
- package/dist/select/select-next.d.ts +14 -2
- package/dist/select/select-next.js +190 -142
- package/dist/select/select-search.d.ts +3 -0
- package/dist/select/select-search.js +24 -0
- package/dist/select/select.d.ts +4 -2
- package/dist/select/select.js +3 -2
- package/dist/select/types.d.ts +25 -1
- package/dist/side-nav/side-nav.js +23 -23
- package/dist/spinner/spinner.js +1 -1
- package/dist/stack/stack.js +40 -49
- package/dist/styles.css +2 -3
- package/dist/table/index.d.ts +8 -0
- package/dist/table/index.js +19 -0
- package/dist/table/table-data.d.ts +16 -2
- package/dist/table/table-data.js +64 -17
- package/dist/table/table-header.d.ts +4 -1
- package/dist/table/table-header.js +58 -18
- package/dist/table/table-pagination.d.ts +8 -0
- package/dist/table/table-pagination.js +97 -0
- package/dist/table/table-row.js +7 -6
- package/dist/table/table.d.ts +4 -1
- package/dist/table/table.js +22 -15
- package/dist/tabs/scrollable-tab-list.d.ts +9 -0
- package/dist/tabs/scrollable-tab-list.js +84 -0
- package/dist/tabs/tab-item.d.ts +9 -15
- package/dist/tabs/tab-item.js +85 -38
- package/dist/tabs/tab-list.d.ts +2 -5
- package/dist/tabs/tab-list.js +83 -49
- package/dist/tabs/tab-panel.d.ts +2 -7
- package/dist/tabs/tab-panel.js +2 -5
- package/dist/tabs/tabs.d.ts +2 -7
- package/dist/tabs/tabs.js +24 -20
- package/dist/tabs/types.d.ts +64 -0
- package/dist/tabs/types.js +1 -0
- package/dist/text-input/text-input.d.ts +1 -0
- package/dist/textarea/textarea.d.ts +1 -2
- package/dist/textarea/textarea.js +60 -60
- package/dist/toast/ds-toast.js +1 -1
- package/dist/tooltip/tooltip.js +1 -1
- package/package.json +6 -6
- package/dist/index-ntYL1VRC.js +0 -64
package/dist/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export { Icon, type IconProps } from './icon/icon.js';
|
|
|
42
42
|
export { Icons } from './icon/icons.js';
|
|
43
43
|
export { InputCheckboxGroup } from './input-checkbox-group/input-checkbox-group.js';
|
|
44
44
|
export type { InputCheckboxGroupProps } from './input-checkbox-group/types.js';
|
|
45
|
-
export { InputCheckbox } from './input-checkbox/input-checkbox.js';
|
|
45
|
+
export { InputCheckbox, InputCheckboxTableCell, } from './input-checkbox/input-checkbox.js';
|
|
46
46
|
export { InputCheckboxSizeEnum, type InputCheckboxProps, type InputCheckboxSizeEnumType, } from './input-checkbox/types.js';
|
|
47
47
|
export { InputFile } from './input-file/input-file.js';
|
|
48
48
|
export type { InputFileProps } from './input-file/types.js';
|
|
@@ -51,8 +51,8 @@ export { InputRadioGroup } from './input-radio-group/input-radio-group.js';
|
|
|
51
51
|
export type { InputRadioGroupProps } from './input-radio-group/types.js';
|
|
52
52
|
export { InputRadio } from './input-radio/input-radio.js';
|
|
53
53
|
export { InputRadioSizeEnum, type InputRadioProps, type InputRadioSizeType, } from './input-radio/types.js';
|
|
54
|
-
export { InputText } from './input-text/input-text.js';
|
|
55
|
-
export type { InputActionButtonProps, InputTextProps, } from './input-text/type.js';
|
|
54
|
+
export { InputText, InputTextTableCell } from './input-text/input-text.js';
|
|
55
|
+
export type { InputActionButtonProps, InputTextProps, InputTextTableCellProps, } from './input-text/type.js';
|
|
56
56
|
export type { LabelTextProps } from './label/types.js';
|
|
57
57
|
export { Link, type LinkProps } from './link/link.js';
|
|
58
58
|
export { ListItem, type ListItemProps } from './list-item/list-item.js';
|
|
@@ -72,7 +72,7 @@ export type { RadioGroupProps, RadioProps } from './radio/types.js';
|
|
|
72
72
|
export { ScoreSelect } from './score-select/score-select.js';
|
|
73
73
|
export type { ScoreSelectProps } from './score-select/type.js';
|
|
74
74
|
export { SectionBreak, type SectionBreakProps, } from './section-break/section-break.js';
|
|
75
|
-
export { Select, SelectGroupItem, SelectItem } from './select/select.js';
|
|
75
|
+
export { Select, SelectGroupItem, SelectItem, SelectTableCell, } from './select/select.js';
|
|
76
76
|
export { SelectNext, SelectGroupItemNext, SelectItemNext, } from './select/select-next.js';
|
|
77
77
|
export type { SelectGroupItemProps, SelectMenuOptionProps, SelectMenuProps, SelectNextGroupProps, SelectNextOptionProps, SelectNextProps, } from './select/types.js';
|
|
78
78
|
export { SideNav, SideNavItem } from './side-nav/side-nav.js';
|
|
@@ -92,13 +92,16 @@ export { TableHead } from './table/table-head.js';
|
|
|
92
92
|
export { TableHeader } from './table/table-header.js';
|
|
93
93
|
export { TableRow } from './table/table-row.js';
|
|
94
94
|
export { Table, type TableProps } from './table/table.js';
|
|
95
|
-
export { TabItem
|
|
95
|
+
export { TabItem } from './tabs/tab-item.js';
|
|
96
96
|
export { TabList } from './tabs/tab-list.js';
|
|
97
97
|
export { TabPanel } from './tabs/tab-panel.js';
|
|
98
|
-
export { Tabs
|
|
98
|
+
export { Tabs } from './tabs/tabs.js';
|
|
99
|
+
export type { TabItemProps, TabsProps, TabPanelProps } from './tabs/types.js';
|
|
99
100
|
export { Tag, TagTypeEnum, type TagProps, type TagType } from './tag/tag.js';
|
|
100
101
|
export { TextInput, type TextInputProps } from './text-input/text-input.js';
|
|
101
102
|
export { TextArea, type TextAreaProps } from './textarea/textarea.js';
|
|
102
103
|
export { toaster, ToastProvider } from './toast/toast.js';
|
|
103
104
|
export type { ToastHorizontalPosition, ToastPosition, ToastProps, ToastVariant, ToastVerticalPosition, } from './toast/types.js';
|
|
104
105
|
export { Tooltip, type TooltipProps } from './tooltip/tooltip.js';
|
|
106
|
+
export { EditableTableCell } from './data-grid/editable-table-cell.js';
|
|
107
|
+
export type { EditorTableCellConfig, EditorTableCellProps, } from './data-grid/types.js';
|
package/dist/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import { AccordionItem as e } from "./accordion/accordion-item.js";
|
|
|
2
2
|
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
|
-
import { Blockquote as
|
|
6
|
-
import { BreadcrumbCurrentLink as u, BreadcrumbEllipsis as c, BreadcrumbLink as
|
|
7
|
-
import { ButtonGroup as
|
|
5
|
+
import { Blockquote as n } from "./blockquote/blockquote.js";
|
|
6
|
+
import { BreadcrumbCurrentLink as u, BreadcrumbEllipsis as c, BreadcrumbLink as b, Breadcrumbs as C } from "./breadcrumbs/breadcrumbs.js";
|
|
7
|
+
import { ButtonGroup as T, ButtonGroupItem as S } from "./button-group/button-group.js";
|
|
8
8
|
import { Button as F } from "./button/button.js";
|
|
9
|
-
import { CardAction as k, CardContainer as
|
|
9
|
+
import { CardAction as k, CardContainer as h, CardDescription as L, CardHeader as g, CardMedia as G, CardSubtitle as P, CardTag as w, CardTitle as y } from "./card/card-next.js";
|
|
10
10
|
import { Card as D } from "./card/card.js";
|
|
11
11
|
import { CheckboxGroup as R } from "./checkbox/checkbox-group.js";
|
|
12
|
-
import { Checkbox as
|
|
12
|
+
import { Checkbox as M } from "./checkbox/checkbox.js";
|
|
13
13
|
import { Chip as v } 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";
|
|
@@ -20,94 +20,95 @@ 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, FormFieldError as fo, FormFieldHint as io, FormFieldLabel as
|
|
23
|
+
import { FormField as ao, FormFieldError as fo, FormFieldHint as io, FormFieldLabel as lo } from "./forms/form-field/form-field.js";
|
|
24
24
|
import { Form as uo } from "./forms/form.js";
|
|
25
|
-
import { HeaderSearch as
|
|
26
|
-
import { Header as
|
|
27
|
-
import { Heading as
|
|
25
|
+
import { HeaderSearch as bo } from "./header/components/header-search.js";
|
|
26
|
+
import { Header as Io } from "./header/header.js";
|
|
27
|
+
import { Heading as So } 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 wo } from "./input-checkbox-group/input-checkbox-group.js";
|
|
33
|
-
import { InputCheckbox as Ao } from "./input-checkbox/input-checkbox.js";
|
|
34
|
-
import { InputCheckboxSizeEnum as
|
|
33
|
+
import { InputCheckbox as Ao, InputCheckboxTableCell as Do } from "./input-checkbox/input-checkbox.js";
|
|
34
|
+
import { InputCheckboxSizeEnum as Ro } from "./input-checkbox/types.js";
|
|
35
35
|
import { InputFile as Mo } from "./input-file/input-file.js";
|
|
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 Ir, Step as
|
|
51
|
-
import { RadioGroup as
|
|
52
|
-
import { Radio as
|
|
53
|
-
import { ScoreSelect as
|
|
54
|
-
import { SectionBreak as
|
|
55
|
-
import { Select as
|
|
56
|
-
import { SelectGroupItemNext as
|
|
57
|
-
import { SideNav as
|
|
58
|
-
import { Spinner as
|
|
59
|
-
import { Stack as
|
|
60
|
-
import { SummaryList as
|
|
61
|
-
import { Caption as
|
|
62
|
-
import { ColumnGroup as
|
|
63
|
-
import { Column as
|
|
64
|
-
import { TableBody as
|
|
65
|
-
import { TableData as
|
|
66
|
-
import { TableFoot as
|
|
67
|
-
import { TableHead as
|
|
68
|
-
import { TableHeader as
|
|
69
|
-
import { TableRow as
|
|
70
|
-
import { Table as
|
|
71
|
-
import { TabItem as
|
|
72
|
-
import { TabList as
|
|
36
|
+
import { InputPassword as vo } from "./input-password/input-password.js";
|
|
37
|
+
import { InputRadioGroup as zo } from "./input-radio-group/input-radio-group.js";
|
|
38
|
+
import { InputRadio as Uo } from "./input-radio/input-radio.js";
|
|
39
|
+
import { InputRadioSizeEnum as jo } from "./input-radio/types.js";
|
|
40
|
+
import { InputText as Ko, InputTextTableCell as Oo } from "./input-text/input-text.js";
|
|
41
|
+
import { Link as Xo } from "./link/link.js";
|
|
42
|
+
import { ListItem as Zo } from "./list-item/list-item.js";
|
|
43
|
+
import { List as $o } from "./list/list.js";
|
|
44
|
+
import { Modal as rr, ModalBody as er, ModalFooter as tr, ModalTitle as pr, ModalWrapper as mr } from "./modal/modal.js";
|
|
45
|
+
import { Pagination as ar } from "./pagination/pagination.js";
|
|
46
|
+
import { Paragraph as ir } from "./paragraph/paragraph.js";
|
|
47
|
+
import { PhaseBanner as nr } from "./phase-banner/phase-banner.js";
|
|
48
|
+
import { Popover as ur } from "./popover/popover.js";
|
|
49
|
+
import { ProgressBar as br } from "./progress-bar/progress-bar.js";
|
|
50
|
+
import { ProgressStepper as Ir, Step as Tr, 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 Lr } from "./score-select/score-select.js";
|
|
54
|
+
import { SectionBreak as Gr } from "./section-break/section-break.js";
|
|
55
|
+
import { Select as wr } from "./select/select.js";
|
|
56
|
+
import { SelectGroupItemNext as Ar, SelectItemNext as Dr, SelectNext as Hr } from "./select/select-next.js";
|
|
57
|
+
import { SideNav as Er, 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 ae } from "./table/table-header.js";
|
|
69
|
+
import { TableRow as ie } 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
73
|
import { TabPanel as Ie } from "./tabs/tab-panel.js";
|
|
74
|
-
import { Tabs as
|
|
75
|
-
import { Tag as
|
|
76
|
-
import { TextInput as
|
|
77
|
-
import { TextArea as
|
|
78
|
-
import { ToastProvider as
|
|
79
|
-
import { Tooltip as
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
74
|
+
import { Tabs as Se } from "./tabs/tabs.js";
|
|
75
|
+
import { Tag as Fe, TagTypeEnum as Be } from "./tag/tag.js";
|
|
76
|
+
import { TextInput as he } from "./text-input/text-input.js";
|
|
77
|
+
import { TextArea as ge } from "./textarea/textarea.js";
|
|
78
|
+
import { ToastProvider as Pe, toaster as we } from "./toast/toast.js";
|
|
79
|
+
import { Tooltip as Ae } from "./tooltip/tooltip.js";
|
|
80
|
+
import { EditableTableCell as He } from "./data-grid/editable-table-cell.js";
|
|
81
|
+
import { SelectGroupItem as Ee, SelectItem as Me, SelectTableCell as Ne } from "./select/select-native.js";
|
|
82
|
+
import { i as We } from "./i18next-DxWa09nx.js";
|
|
82
83
|
export {
|
|
83
84
|
p as Accordion,
|
|
84
85
|
e as AccordionItem,
|
|
85
86
|
x as Alert,
|
|
86
87
|
f as Autocomplete,
|
|
87
88
|
i as AutocompleteItem,
|
|
88
|
-
|
|
89
|
+
n as Blockquote,
|
|
89
90
|
u as BreadcrumbCurrentLink,
|
|
90
91
|
c as BreadcrumbEllipsis,
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
b as BreadcrumbLink,
|
|
93
|
+
C as Breadcrumbs,
|
|
93
94
|
F as Button,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
T as ButtonGroup,
|
|
96
|
+
S as ButtonGroupItem,
|
|
97
|
+
Or as Caption,
|
|
97
98
|
D as Card,
|
|
98
99
|
k as CardAction,
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
h as CardContainer,
|
|
101
|
+
L as CardDescription,
|
|
101
102
|
g as CardHeader,
|
|
102
103
|
G as CardMedia,
|
|
103
104
|
P as CardSubtitle,
|
|
104
105
|
w as CardTag,
|
|
105
106
|
y as CardTitle,
|
|
106
|
-
|
|
107
|
+
M as Checkbox,
|
|
107
108
|
R as CheckboxGroup,
|
|
108
109
|
v as Chip,
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
Zr as Column,
|
|
111
|
+
Xr as ColumnGroup,
|
|
111
112
|
z as Combobox,
|
|
112
113
|
j as Container,
|
|
113
114
|
K as CookieBanner,
|
|
@@ -117,81 +118,85 @@ export {
|
|
|
117
118
|
_ as DrawerFooter,
|
|
118
119
|
$ as DrawerWrapper,
|
|
119
120
|
U as DropdownItem,
|
|
121
|
+
He as EditableTableCell,
|
|
120
122
|
ro as FileUpload,
|
|
121
123
|
to as Footer,
|
|
122
124
|
uo as Form,
|
|
123
125
|
ao as FormField,
|
|
124
126
|
fo as FormFieldError,
|
|
125
127
|
io as FormFieldHint,
|
|
126
|
-
|
|
128
|
+
lo as FormFieldLabel,
|
|
127
129
|
mo as FormFieldWithTag,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
Io as Header,
|
|
131
|
+
bo as HeaderSearch,
|
|
132
|
+
So as Heading,
|
|
133
|
+
Lo as Icon,
|
|
132
134
|
ko as IconButton,
|
|
133
135
|
Go as Icons,
|
|
134
136
|
Ao as InputCheckbox,
|
|
135
137
|
wo as InputCheckboxGroup,
|
|
136
|
-
|
|
138
|
+
Ro as InputCheckboxSizeEnum,
|
|
139
|
+
Do as InputCheckboxTableCell,
|
|
137
140
|
Mo as InputFile,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
Oo as
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
mr as
|
|
152
|
-
ar as
|
|
153
|
-
ir as
|
|
154
|
-
|
|
155
|
-
ur as
|
|
141
|
+
vo as InputPassword,
|
|
142
|
+
Uo as InputRadio,
|
|
143
|
+
zo as InputRadioGroup,
|
|
144
|
+
jo as InputRadioSizeEnum,
|
|
145
|
+
Ko as InputText,
|
|
146
|
+
Oo as InputTextTableCell,
|
|
147
|
+
Xo as Link,
|
|
148
|
+
$o as List,
|
|
149
|
+
Zo as ListItem,
|
|
150
|
+
rr as Modal,
|
|
151
|
+
er as ModalBody,
|
|
152
|
+
tr as ModalFooter,
|
|
153
|
+
pr as ModalTitle,
|
|
154
|
+
mr as ModalWrapper,
|
|
155
|
+
ar as Pagination,
|
|
156
|
+
ir as Paragraph,
|
|
157
|
+
nr as PhaseBanner,
|
|
158
|
+
ur as Popover,
|
|
159
|
+
br as ProgressBar,
|
|
156
160
|
Ir as ProgressStepper,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
vr as
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
ue as
|
|
161
|
+
kr as Radio,
|
|
162
|
+
Fr as RadioGroup,
|
|
163
|
+
Lr as ScoreSelect,
|
|
164
|
+
Gr as SectionBreak,
|
|
165
|
+
wr as Select,
|
|
166
|
+
Ee as SelectGroupItem,
|
|
167
|
+
Ar as SelectGroupItemNext,
|
|
168
|
+
Me as SelectItem,
|
|
169
|
+
Dr as SelectItemNext,
|
|
170
|
+
Hr as SelectNext,
|
|
171
|
+
Ne as SelectTableCell,
|
|
172
|
+
Er as SideNav,
|
|
173
|
+
Mr as SideNavItem,
|
|
174
|
+
vr as Spinner,
|
|
175
|
+
zr as Stack,
|
|
176
|
+
Tr as Step,
|
|
177
|
+
Sr as StepItem,
|
|
178
|
+
Ur as SummaryList,
|
|
179
|
+
Vr as SummaryListAction,
|
|
180
|
+
jr as SummaryListRow,
|
|
181
|
+
Jr as SummaryListValue,
|
|
182
|
+
ue as TabItem,
|
|
183
|
+
be as TabList,
|
|
179
184
|
Ie as TabPanel,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
185
|
+
ne as Table,
|
|
186
|
+
$r as TableBody,
|
|
187
|
+
re as TableData,
|
|
188
|
+
te as TableFoot,
|
|
189
|
+
me as TableHead,
|
|
190
|
+
ae as TableHeader,
|
|
191
|
+
ie as TableRow,
|
|
192
|
+
Se as Tabs,
|
|
193
|
+
Fe as Tag,
|
|
194
|
+
Be as TagTypeEnum,
|
|
195
|
+
ge as TextArea,
|
|
196
|
+
he as TextInput,
|
|
197
|
+
Pe as ToastProvider,
|
|
198
|
+
Ae as Tooltip,
|
|
199
|
+
We as i18next,
|
|
195
200
|
Fo as initI18n,
|
|
196
|
-
|
|
201
|
+
we as toaster
|
|
197
202
|
};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import { InputCheckboxSizeEnumType,
|
|
1
|
+
import { InputCheckboxSizeEnumType, InputCheckboxTableCellProps } from './types.js';
|
|
2
2
|
export declare const getCheckboxWidth: (size?: InputCheckboxSizeEnumType) => string;
|
|
3
|
-
export declare const InputCheckbox:
|
|
3
|
+
export declare const InputCheckbox: import('react').ForwardRefExoticComponent<{
|
|
4
|
+
size?: InputCheckboxSizeEnumType;
|
|
5
|
+
label?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
containerProps?: any;
|
|
9
|
+
} & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
10
|
+
export declare const InputCheckboxTableCell: React.FC<InputCheckboxTableCellProps>;
|
|
@@ -1,51 +1,74 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useId as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
2
|
+
import { jsxs as n, Fragment as u, jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as p, useId as b } from "react";
|
|
4
|
+
import { cn as x } from "../cn.js";
|
|
5
|
+
import { HintText as g } from "../hint-text/hint-text.js";
|
|
6
|
+
import { Input as k } from "../primitives/input.js";
|
|
7
|
+
import { InputCheckboxSizeEnum as a } from "./types.js";
|
|
8
|
+
const f = (e) => {
|
|
8
9
|
switch (e) {
|
|
9
|
-
case
|
|
10
|
+
case a.Large:
|
|
10
11
|
return "gi-input-checkbox-large";
|
|
11
|
-
case
|
|
12
|
+
case a.Small:
|
|
12
13
|
return "gi-input-checkbox-small";
|
|
13
14
|
default:
|
|
14
15
|
return "gi-input-checkbox-medium";
|
|
15
16
|
}
|
|
16
|
-
},
|
|
17
|
-
let
|
|
18
|
-
return e ===
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
17
|
+
}, C = (e) => {
|
|
18
|
+
let t = "gi-w-8";
|
|
19
|
+
return e === a.Large && (t = "gi-w-11"), e === a.Small && (t = "gi-w-6"), t;
|
|
20
|
+
}, r = p(
|
|
21
|
+
({
|
|
22
|
+
id: e,
|
|
23
|
+
size: t = a.Medium,
|
|
24
|
+
label: l,
|
|
25
|
+
hint: o,
|
|
26
|
+
indeterminate: s = !1,
|
|
27
|
+
containerProps: m,
|
|
28
|
+
...d
|
|
29
|
+
}, h) => {
|
|
30
|
+
const c = e || b();
|
|
31
|
+
return /* @__PURE__ */ n(u, { children: [
|
|
32
|
+
/* @__PURE__ */ n("div", { className: "gi-input-checkbox-container", ...m, children: [
|
|
33
|
+
/* @__PURE__ */ i(
|
|
34
|
+
k,
|
|
35
|
+
{
|
|
36
|
+
type: "checkbox",
|
|
37
|
+
ref: h,
|
|
38
|
+
id: c,
|
|
39
|
+
className: x(f(t), {
|
|
40
|
+
"gi-checkbox-indeterminate": s
|
|
41
|
+
}),
|
|
42
|
+
"aria-labelledby": l ? `${c}-label` : void 0,
|
|
43
|
+
...d
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
l && /* @__PURE__ */ i("label", { id: `${c}-label`, htmlFor: c, children: l })
|
|
47
|
+
] }),
|
|
48
|
+
o && /* @__PURE__ */ n("div", { className: "gi-input-checkbox-hint-container", children: [
|
|
49
|
+
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("div", { className: C(t) }) }),
|
|
50
|
+
/* @__PURE__ */ i(g, { id: `${c}-hint`, text: o })
|
|
51
|
+
] })
|
|
52
|
+
] });
|
|
53
|
+
}
|
|
54
|
+
), I = ({
|
|
55
|
+
error: e,
|
|
56
|
+
...t
|
|
57
|
+
}) => /* @__PURE__ */ i(
|
|
58
|
+
r,
|
|
59
|
+
{
|
|
60
|
+
...t,
|
|
61
|
+
size: "sm",
|
|
62
|
+
containerProps: {
|
|
63
|
+
"data-table-cell": !0,
|
|
64
|
+
"data-table-cell-error-state": e == null ? void 0 : e.toString()
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
I.displayName = "InputCheckboxTableCell";
|
|
69
|
+
r.displayName = "InputCheckbox";
|
|
48
70
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
71
|
+
r as InputCheckbox,
|
|
72
|
+
I as InputCheckboxTableCell,
|
|
73
|
+
C as getCheckboxWidth
|
|
51
74
|
};
|
|
@@ -9,4 +9,9 @@ export type InputCheckboxProps = {
|
|
|
9
9
|
size?: InputCheckboxSizeEnumType;
|
|
10
10
|
label?: string;
|
|
11
11
|
hint?: string;
|
|
12
|
+
indeterminate?: boolean;
|
|
13
|
+
containerProps?: any;
|
|
12
14
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;
|
|
15
|
+
export type InputCheckboxTableCellProps = Partial<InputCheckboxProps> & {
|
|
16
|
+
error?: boolean;
|
|
17
|
+
};
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as
|
|
4
|
-
const
|
|
5
|
-
const [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { useState as g, useEffect as m, Children as v, isValidElement as k, cloneElement as E } from "react";
|
|
4
|
+
const C = ({ size: p, groupId: e, inline: u, onChange: t, children: d, values: n }) => {
|
|
5
|
+
const [l, s] = g(
|
|
6
|
+
n || []
|
|
7
|
+
);
|
|
8
|
+
m(() => {
|
|
9
|
+
s(n || []);
|
|
10
|
+
}, [n]);
|
|
11
|
+
const o = n === void 0 ? l : n, a = (i) => {
|
|
12
|
+
let c = [];
|
|
13
|
+
c = o.includes(i) ? o.filter((f) => f !== i) : [...o, i], n === void 0 && s(c), t == null || t(c);
|
|
14
|
+
}, h = v.map(d, (i) => k(i) ? E(i, {
|
|
15
|
+
onChange: () => a(i.props.value),
|
|
16
|
+
checked: o.includes(i.props.value),
|
|
17
|
+
size: p,
|
|
18
|
+
name: e
|
|
19
|
+
}) : i);
|
|
20
|
+
return /* @__PURE__ */ r("div", { className: "gi-input-group-container", children: /* @__PURE__ */ r("div", { className: "gi-input-group-options-container", children: /* @__PURE__ */ r(
|
|
15
21
|
"div",
|
|
16
22
|
{
|
|
17
|
-
className:
|
|
18
|
-
children:
|
|
23
|
+
className: u ? "gi-input-group-options-inline" : "gi-input-group-options-stacked",
|
|
24
|
+
children: h
|
|
19
25
|
}
|
|
20
26
|
) }) });
|
|
21
27
|
};
|
|
22
28
|
export {
|
|
23
|
-
|
|
29
|
+
C as InputCheckboxGroup
|
|
24
30
|
};
|