@ssa-ui-kit/core 2.33.0 → 3.1.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/components/AccordionGroup/Accordion.d.ts +37 -0
- package/dist/components/AccordionGroup/AccordionContent.d.ts +48 -0
- package/dist/components/AccordionGroup/AccordionContext.d.ts +76 -2
- package/dist/components/AccordionGroup/AccordionGroup.d.ts +56 -0
- package/dist/components/AccordionGroup/AccordionTitle.d.ts +41 -0
- package/dist/components/AccordionGroup/types.d.ts +199 -1
- package/dist/components/Avatar/Avatar.d.ts +33 -0
- package/dist/components/Button/Button.d.ts +61 -0
- package/dist/components/Button/fixtures.d.ts +52 -31
- package/dist/components/Button/styles.d.ts +7 -12
- package/dist/components/Button/types.d.ts +98 -4
- package/dist/components/Charts/BarGaugeChart/components/BarGaugeChartHeader.d.ts +1 -1
- package/dist/components/Charts/BarLineComplexChart/BarLineComplexChartView.d.ts +2 -2
- package/dist/components/Charts/BarLineComplexChart/types.d.ts +2 -2
- package/dist/components/Charts/BigNumberChart/BigNumberChart.d.ts +4 -2
- package/dist/components/Charts/BigNumberChart/components/BigNumberChartHeader.d.ts +1 -1
- package/dist/components/Charts/BigNumberChart/components/TrendLine.d.ts +8 -3
- package/dist/components/Charts/BigNumberChart/components/TrendLineTooltip.d.ts +8 -5
- package/dist/components/Charts/GaugeChart/components/GaugeChartBase.d.ts +3 -1
- package/dist/components/Charts/GaugeChart/components/GaugeChartHeader.d.ts +1 -1
- package/dist/components/Charts/PieChart/PieChartLegendMarker.d.ts +1 -1
- package/dist/components/Charts/PieChart/styles.d.ts +1 -1
- package/dist/components/Charts/PieChart/types.d.ts +1 -1
- package/dist/components/Charts/RadarChart/RadarChart.d.ts +1 -1
- package/dist/components/Charts/RadarChart/components/RadarChartHeader.d.ts +1 -1
- package/dist/components/Charts/TreeMapChart/TreeMapChart.d.ts +1 -1
- package/dist/components/Charts/TreeMapChart/TreeMapChartHeader.d.ts +1 -1
- package/dist/components/Charts/index.d.ts +1 -0
- package/dist/components/Charts/utils/nivoReact19Compat.d.ts +18 -0
- package/dist/components/Checkbox/Checkbox.d.ts +84 -0
- package/dist/components/Checkbox/CheckboxBase.d.ts +1 -1
- package/dist/components/Checkbox/styles.d.ts +2 -2
- package/dist/components/Checkbox/types.d.ts +104 -3
- package/dist/components/Chip/Chip.d.ts +70 -0
- package/dist/components/Chip/constants.d.ts +1 -1
- package/dist/components/Chip/helpers.d.ts +6 -0
- package/dist/components/Chip/types.d.ts +129 -1
- package/dist/components/CollapsibleNavBar/CollapsibleNavBar.d.ts +1 -1
- package/dist/components/CollapsibleNavBar/CollapsibleNavBarContext.d.ts +2 -2
- package/dist/components/CollapsibleNavBar/components/TriggerIcon.d.ts +4 -2
- package/dist/components/CollapsibleNavBar/types.d.ts +9 -2
- package/dist/components/ColorPicker/components/CopyButton.d.ts +1 -1
- package/dist/components/DatePicker/constants.d.ts +22 -0
- package/dist/components/DatePicker/hooks/useDatePicker.d.ts +7 -5
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/styles.d.ts +3 -2
- package/dist/components/DatePicker/types.d.ts +10 -2
- package/dist/components/DatePicker/utils/dates.d.ts +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker/DateRangePickerFormBridge.d.ts +46 -0
- package/dist/components/DateRangePicker/components/DatesListWrapper.d.ts +3 -2
- package/dist/components/DateRangePicker/constants.d.ts +1 -0
- package/dist/components/DateRangePicker/hooks/useDateRangePicker.d.ts +22 -17
- package/dist/components/DateRangePicker/index.d.ts +3 -0
- package/dist/components/DateRangePicker/styles.d.ts +6 -4
- package/dist/components/DateRangePicker/types.d.ts +24 -7
- package/dist/components/DateRangePicker/utils/dates.d.ts +2 -2
- package/dist/components/Drawer/index.d.ts +2 -1
- package/dist/components/Dropdown/Dropdown.d.ts +88 -0
- package/dist/components/Dropdown/types.d.ts +102 -1
- package/dist/components/DropdownOption/DropdownOption.d.ts +2 -0
- package/dist/components/DropdownOptions/DropdownOptions.d.ts +31 -0
- package/dist/components/DropdownOptions/types.d.ts +22 -0
- package/dist/components/DropdownToggle/DropdownToggle.d.ts +3 -2
- package/dist/components/DropdownToggle/types.d.ts +5 -3
- package/dist/components/Field/FieldControl.d.ts +62 -1
- package/dist/components/Field/FieldDescription.d.ts +33 -0
- package/dist/components/Field/FieldError.d.ts +36 -0
- package/dist/components/Field/FieldLabel.d.ts +37 -0
- package/dist/components/Field/FieldProvider.d.ts +19 -1
- package/dist/components/Field/FieldRoot.d.ts +90 -0
- package/dist/components/Field/FieldSuccess.d.ts +34 -0
- package/dist/components/Field/index.d.ts +4 -0
- package/dist/components/Filters/FilterBlockWrapper.d.ts +3 -2
- package/dist/components/Filters/FiltersContext.d.ts +4 -4
- package/dist/components/Filters/hooks/useVisibility.d.ts +2 -2
- package/dist/components/FullscreenModeContext.d.ts +1 -4
- package/dist/components/Icon/icons/Assessment.d.ts +1 -1
- package/dist/components/Icon/icons/Award.d.ts +3 -0
- package/dist/components/Icon/icons/Bench.d.ts +3 -0
- package/dist/components/Icon/icons/Briefcase.d.ts +3 -0
- package/dist/components/Icon/icons/Building.d.ts +3 -0
- package/dist/components/Icon/icons/CalendarSchedule.d.ts +3 -0
- package/dist/components/Icon/icons/Camera.d.ts +3 -0
- package/dist/components/Icon/icons/CardText.d.ts +3 -0
- package/dist/components/Icon/icons/Case.d.ts +3 -0
- package/dist/components/Icon/icons/Comments.d.ts +3 -0
- package/dist/components/Icon/icons/Compensation.d.ts +3 -0
- package/dist/components/Icon/icons/Contacts.d.ts +3 -0
- package/dist/components/Icon/icons/CopyLink.d.ts +3 -0
- package/dist/components/Icon/icons/Delete.d.ts +3 -0
- package/dist/components/Icon/icons/DiamondRing.d.ts +3 -0
- package/dist/components/Icon/icons/Document.d.ts +3 -0
- package/dist/components/Icon/icons/Documents.d.ts +3 -0
- package/dist/components/Icon/icons/Education.d.ts +3 -0
- package/dist/components/Icon/icons/EmployeeProfile.d.ts +3 -0
- package/dist/components/Icon/icons/Export.d.ts +3 -0
- package/dist/components/Icon/icons/FollowLink.d.ts +3 -0
- package/dist/components/Icon/icons/Form.d.ts +3 -0
- package/dist/components/Icon/icons/Gender.d.ts +3 -0
- package/dist/components/Icon/icons/Gift.d.ts +3 -0
- package/dist/components/Icon/icons/Inventory.d.ts +3 -0
- package/dist/components/Icon/icons/Link.d.ts +3 -0
- package/dist/components/Icon/icons/OfficeChair.d.ts +3 -0
- package/dist/components/Icon/icons/OpenBook.d.ts +3 -0
- package/dist/components/Icon/icons/Report.d.ts +1 -1
- package/dist/components/Icon/icons/Results.d.ts +3 -0
- package/dist/components/Icon/icons/Signature.d.ts +3 -0
- package/dist/components/Icon/icons/Summery.d.ts +3 -0
- package/dist/components/Icon/icons/Team.d.ts +3 -0
- package/dist/components/Icon/icons/TechnicalReview.d.ts +3 -0
- package/dist/components/Icon/icons/TennisBall.d.ts +3 -0
- package/dist/components/Icon/icons/Timeline.d.ts +3 -0
- package/dist/components/Icon/icons/UnionCircle.d.ts +3 -0
- package/dist/components/Icon/icons/Url.d.ts +3 -0
- package/dist/components/Icon/icons/all.d.ts +36 -1
- package/dist/components/Icon/icons/iconsList.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +39 -0
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/styles.d.ts +2 -0
- package/dist/components/IconButton/types.d.ts +41 -0
- package/dist/components/Indicator/types.d.ts +4 -2
- package/dist/components/Input/types.d.ts +157 -0
- package/dist/components/JsonSchemaForm/fields/DateRangeField.d.ts +15 -1
- package/dist/components/JsonSchemaForm/utils/dateFormats.d.ts +37 -0
- package/dist/components/JsonSchemaForm/utils/dateRangeField.d.ts +24 -0
- package/dist/components/JsonSchemaForm/utils/index.d.ts +1 -0
- package/dist/components/JsonSchemaForm/utils/selectWidget.d.ts +16 -0
- package/dist/components/Modal/Modal.d.ts +60 -0
- package/dist/components/Modal/types.d.ts +21 -1
- package/dist/components/ModalContent/ModalContent.d.ts +42 -1
- package/dist/components/ModalDialog/ModalDialog.d.ts +27 -0
- package/dist/components/ModalDialog/types.d.ts +18 -0
- package/dist/components/ModalDismissButton/ModalDismissButton.d.ts +29 -2
- package/dist/components/ModalOpenButton/ModalOpenButton.d.ts +25 -1
- package/dist/components/MultipleDropdown/index.d.ts +1 -0
- package/dist/components/MultipleDropdown/types.d.ts +74 -0
- package/dist/components/NavBar/types.d.ts +1 -1
- package/dist/components/NotificationMenu/types.d.ts +3 -3
- package/dist/components/Pagination/ArrowButton.d.ts +32 -0
- package/dist/components/Pagination/Pagination.d.ts +81 -0
- package/dist/components/Pagination/PaginationButtons.d.ts +35 -0
- package/dist/components/Pagination/PaginationContext.d.ts +30 -0
- package/dist/components/Pagination/WithPagination.d.ts +47 -4
- package/dist/components/Pagination/components/RowsPerPageDropdown/RowsPerPageDropdown.d.ts +41 -0
- package/dist/components/Pagination/components/RowsPerPageDropdown/types.d.ts +39 -0
- package/dist/components/Pagination/styles.d.ts +1 -1
- package/dist/components/Pagination/types.d.ts +178 -0
- package/dist/components/PersonInfo/styles.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +120 -0
- package/dist/components/Popover/PopoverClose.d.ts +26 -0
- package/dist/components/Popover/PopoverContent.d.ts +33 -0
- package/dist/components/Popover/PopoverDescription.d.ts +22 -1
- package/dist/components/Popover/PopoverHeading.d.ts +22 -1
- package/dist/components/Popover/PopoverTrigger.d.ts +30 -0
- package/dist/components/Popover/hooks/usePopover.d.ts +21 -0
- package/dist/components/Popover/hooks/usePopoverContext.d.ts +23 -0
- package/dist/components/Popover/types.d.ts +86 -0
- package/dist/components/Radio/Radio.d.ts +69 -1
- package/dist/components/Radio/RadioBase.d.ts +1 -1
- package/dist/components/Radio/types.d.ts +109 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/RadioGroup/types.d.ts +42 -0
- package/dist/components/SearchBox/SearchBox.d.ts +60 -0
- package/dist/components/SearchBox/SearchBoxInput.d.ts +1 -1
- package/dist/components/SearchBox/types.d.ts +46 -0
- package/dist/components/Slider/Slider.d.ts +53 -0
- package/dist/components/Slider/consts.d.ts +4 -0
- package/dist/components/Slider/index.d.ts +4 -0
- package/dist/components/Slider/styles.d.ts +90 -0
- package/dist/components/Slider/types.d.ts +69 -0
- package/dist/components/Switch/Switch.d.ts +66 -1
- package/dist/components/Switch/SwitchBase.d.ts +5 -1
- package/dist/components/Switch/SwitchContext.d.ts +50 -0
- package/dist/components/Switch/types.d.ts +74 -0
- package/dist/components/Table/Table.d.ts +74 -0
- package/dist/components/TableBody/TableBody.d.ts +55 -0
- package/dist/components/TableCell/TableCell.d.ts +56 -4
- package/dist/components/TableCell/types.d.ts +33 -0
- package/dist/components/TableCellHeader/TableCellHeader.d.ts +63 -2
- package/dist/components/TableCellHeader/types.d.ts +28 -0
- package/dist/components/TableFilters/TableFilters.d.ts +72 -0
- package/dist/components/TableFilters/hooks/useTableData.d.ts +3 -3
- package/dist/components/TableFilters/types.d.ts +130 -2
- package/dist/components/TableHead/TableHead.d.ts +37 -0
- package/dist/components/TableRow/TableRow.d.ts +2 -7
- package/dist/components/TableRow/types.d.ts +34 -0
- package/dist/components/TextField/TextField.d.ts +76 -0
- package/dist/components/TextField/types.d.ts +80 -0
- package/dist/components/Textarea/Textarea.d.ts +81 -0
- package/dist/components/Textarea/TextareaBase.d.ts +6 -1
- package/dist/components/Textarea/types.d.ts +109 -0
- package/dist/components/Tooltip/SimpleChartTooltip.d.ts +2 -1
- package/dist/components/Tooltip/Tooltip.d.ts +73 -0
- package/dist/components/Tooltip/types.d.ts +116 -5
- package/dist/components/TooltipContent/TooltipContent.d.ts +45 -0
- package/dist/components/TooltipTrigger/TooltipTrigger.d.ts +27 -1
- package/dist/components/Typeahead/Typeahead.context.d.ts +10 -4
- package/dist/components/Typeahead/Typeahead.d.ts +173 -9
- package/dist/components/Typeahead/components/TypeaheadOption.d.ts +1 -1
- package/dist/components/Typeahead/styles.d.ts +10 -5
- package/dist/components/Typeahead/types.d.ts +191 -1
- package/dist/components/Typeahead/useTypeahead.d.ts +13 -5
- package/dist/components/Typography/Typography.d.ts +50 -0
- package/dist/components/Typography/types.d.ts +67 -0
- package/dist/components/UserProfile/UserProfile.d.ts +76 -0
- package/dist/components/UserProfile/styles.d.ts +6 -4
- package/dist/components/UserProfile/types.d.ts +85 -1
- package/dist/components/WidgetCard/Title.d.ts +1 -1
- package/dist/components/WidgetCard/WidgetCardBase.d.ts +1 -1
- package/dist/components/WithLink.d.ts +1 -1
- package/dist/components/Wrapper/Wrapper.d.ts +83 -2
- package/dist/components/Wrapper/index.d.ts +1 -0
- package/dist/components/index.d.ts +113 -85
- package/dist/index.d.ts +1 -0
- package/dist/index.js +48942 -19624
- package/dist/index.js.map +1 -1
- package/dist/types/emotion.d.ts +65 -0
- package/dist/utils/react19HocCompat.d.ts +14 -0
- package/package.json +42 -33
- package/dist/components/Icon/icons/Company.d.ts +0 -3
|
@@ -9,20 +9,20 @@ export declare const primaryBtnSpecs: TestPropsType[];
|
|
|
9
9
|
export declare const secondaryBtnSpecs: {
|
|
10
10
|
variant: ButtonProps["variant"];
|
|
11
11
|
text?: string | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
className?: string | undefined;
|
|
15
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
12
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
13
|
+
"aria-label"?: string | undefined | undefined;
|
|
16
14
|
"aria-describedby"?: string | undefined | undefined;
|
|
17
15
|
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
18
|
-
"aria-label"?: string | undefined | undefined;
|
|
19
|
-
"aria-labelledby"?: string | undefined | undefined;
|
|
20
16
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
21
|
-
|
|
22
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
17
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
23
18
|
block?: boolean | undefined;
|
|
19
|
+
size?: keyof MainSizes | undefined;
|
|
24
20
|
startIconClassName?: string | undefined;
|
|
25
21
|
endIconClassName?: string | undefined;
|
|
22
|
+
type?: "button" | "reset" | "submit" | undefined;
|
|
23
|
+
className?: string | undefined;
|
|
24
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
25
|
+
children?: import("react").ReactNode;
|
|
26
26
|
disabled?: boolean;
|
|
27
27
|
startIcon?: React.ComponentProps<typeof Icon>["name"];
|
|
28
28
|
endIcon?: React.ComponentProps<typeof Icon>["name"];
|
|
@@ -30,62 +30,83 @@ export declare const secondaryBtnSpecs: {
|
|
|
30
30
|
export declare const tertiaryBtnSpecs: {
|
|
31
31
|
variant: ButtonProps["variant"];
|
|
32
32
|
text?: string | undefined;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
className?: string | undefined;
|
|
36
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
33
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
34
|
+
"aria-label"?: string | undefined | undefined;
|
|
37
35
|
"aria-describedby"?: string | undefined | undefined;
|
|
38
36
|
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
39
|
-
"aria-label"?: string | undefined | undefined;
|
|
40
|
-
"aria-labelledby"?: string | undefined | undefined;
|
|
41
37
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
42
|
-
|
|
43
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
38
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
44
39
|
block?: boolean | undefined;
|
|
40
|
+
size?: keyof MainSizes | undefined;
|
|
45
41
|
startIconClassName?: string | undefined;
|
|
46
42
|
endIconClassName?: string | undefined;
|
|
43
|
+
type?: "button" | "reset" | "submit" | undefined;
|
|
44
|
+
className?: string | undefined;
|
|
45
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
46
|
+
children?: import("react").ReactNode;
|
|
47
47
|
disabled?: boolean;
|
|
48
48
|
startIcon?: React.ComponentProps<typeof Icon>["name"];
|
|
49
49
|
endIcon?: React.ComponentProps<typeof Icon>["name"];
|
|
50
50
|
}[];
|
|
51
|
-
export declare const
|
|
51
|
+
export declare const errorBtnSpecs: {
|
|
52
52
|
variant: ButtonProps["variant"];
|
|
53
53
|
text?: string | undefined;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
className?: string | undefined;
|
|
57
|
-
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
54
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
55
|
+
"aria-label"?: string | undefined | undefined;
|
|
58
56
|
"aria-describedby"?: string | undefined | undefined;
|
|
59
57
|
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
60
|
-
"aria-label"?: string | undefined | undefined;
|
|
61
|
-
"aria-labelledby"?: string | undefined | undefined;
|
|
62
58
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
63
|
-
|
|
64
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
59
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
65
60
|
block?: boolean | undefined;
|
|
61
|
+
size?: keyof MainSizes | undefined;
|
|
66
62
|
startIconClassName?: string | undefined;
|
|
67
63
|
endIconClassName?: string | undefined;
|
|
64
|
+
type?: "button" | "reset" | "submit" | undefined;
|
|
65
|
+
className?: string | undefined;
|
|
66
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
67
|
+
children?: import("react").ReactNode;
|
|
68
68
|
disabled?: boolean;
|
|
69
69
|
startIcon?: React.ComponentProps<typeof Icon>["name"];
|
|
70
70
|
endIcon?: React.ComponentProps<typeof Icon>["name"];
|
|
71
71
|
}[];
|
|
72
|
-
export declare const
|
|
72
|
+
export declare const warningBtnSpecs: {
|
|
73
73
|
variant: ButtonProps["variant"];
|
|
74
74
|
text?: string | undefined;
|
|
75
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
76
|
+
"aria-label"?: string | undefined | undefined;
|
|
77
|
+
"aria-describedby"?: string | undefined | undefined;
|
|
78
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
79
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
80
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
81
|
+
block?: boolean | undefined;
|
|
75
82
|
size?: keyof MainSizes | undefined;
|
|
83
|
+
startIconClassName?: string | undefined;
|
|
84
|
+
endIconClassName?: string | undefined;
|
|
76
85
|
type?: "button" | "reset" | "submit" | undefined;
|
|
77
86
|
className?: string | undefined;
|
|
78
|
-
|
|
87
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
88
|
+
children?: import("react").ReactNode;
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
startIcon?: React.ComponentProps<typeof Icon>["name"];
|
|
91
|
+
endIcon?: React.ComponentProps<typeof Icon>["name"];
|
|
92
|
+
}[];
|
|
93
|
+
export declare const successBtnSpecs: {
|
|
94
|
+
variant: ButtonProps["variant"];
|
|
95
|
+
text?: string | undefined;
|
|
96
|
+
"aria-labelledby"?: string | undefined | undefined;
|
|
97
|
+
"aria-label"?: string | undefined | undefined;
|
|
79
98
|
"aria-describedby"?: string | undefined | undefined;
|
|
80
99
|
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
81
|
-
"aria-label"?: string | undefined | undefined;
|
|
82
|
-
"aria-labelledby"?: string | undefined | undefined;
|
|
83
100
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
|
|
84
|
-
|
|
85
|
-
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
101
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
|
|
86
102
|
block?: boolean | undefined;
|
|
103
|
+
size?: keyof MainSizes | undefined;
|
|
87
104
|
startIconClassName?: string | undefined;
|
|
88
105
|
endIconClassName?: string | undefined;
|
|
106
|
+
type?: "button" | "reset" | "submit" | undefined;
|
|
107
|
+
className?: string | undefined;
|
|
108
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
109
|
+
children?: import("react").ReactNode;
|
|
89
110
|
disabled?: boolean;
|
|
90
111
|
startIcon?: React.ComponentProps<typeof Icon>["name"];
|
|
91
112
|
endIcon?: React.ComponentProps<typeof Icon>["name"];
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const primary: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
9
|
-
export declare const info: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
10
|
-
export declare const secondary: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
11
|
-
export declare const tertiary: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
12
|
-
export declare const attention: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import { ButtonVariants } from './types';
|
|
3
|
+
export declare const buttonBlock: SerializedStyles;
|
|
4
|
+
export declare const iconWrapperRight: SerializedStyles;
|
|
5
|
+
export declare const iconWrapperLeft: SerializedStyles;
|
|
6
|
+
export declare const sizeStyles: MainSizes;
|
|
7
|
+
export declare const variantStyles: ButtonVariants;
|
|
@@ -2,30 +2,124 @@ import { AriaAttributes } from 'react';
|
|
|
2
2
|
import { SerializedStyles, Theme } from '@emotion/react';
|
|
3
3
|
import { MouseEventHandler } from 'react';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* ARIA properties for button accessibility
|
|
6
|
+
* @see https://www.w3.org/WAI/ARIA/apg/patterns/button/
|
|
6
7
|
*/
|
|
7
8
|
type ButtonAriaProps = Pick<AriaAttributes, 'aria-labelledby' | 'aria-label' | 'aria-describedby' | 'aria-disabled' | 'aria-pressed' | 'aria-current'>;
|
|
9
|
+
/**
|
|
10
|
+
* Props for the Button component
|
|
11
|
+
*
|
|
12
|
+
* A flexible button component that supports multiple variants, sizes, and configurations.
|
|
13
|
+
* Buttons can display text, icons, or custom children content.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // Basic button with text
|
|
18
|
+
* <Button text="Click me" onClick={handleClick} />
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* // Button with icon
|
|
24
|
+
* <Button
|
|
25
|
+
* text="Save"
|
|
26
|
+
* startIcon={<Icon name="check" />}
|
|
27
|
+
* variant="primary"
|
|
28
|
+
* />
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* // Full-width block button
|
|
34
|
+
* <Button text="Submit" block variant="primary" />
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
8
37
|
export interface ButtonProps extends ButtonAriaProps {
|
|
38
|
+
/**
|
|
39
|
+
* Makes the button span the full width of its container
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
9
42
|
block?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Size variant of the button
|
|
45
|
+
* - `small`: Compact button for dense UIs (default)
|
|
46
|
+
* - `medium`: Standard button size
|
|
47
|
+
* - `large`: Prominent button for key actions
|
|
48
|
+
* @default 'small'
|
|
49
|
+
*/
|
|
10
50
|
size?: keyof MainSizes;
|
|
51
|
+
/**
|
|
52
|
+
* Text content to display inside the button
|
|
53
|
+
* Either `text`, `children`, or icons must be provided
|
|
54
|
+
*/
|
|
11
55
|
text?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Icon to display before the button text/content
|
|
58
|
+
* Can be any React node, commonly an Icon component
|
|
59
|
+
*/
|
|
12
60
|
startIcon?: React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Icon to display after the button text/content
|
|
63
|
+
* Can be any React node, commonly an Icon component
|
|
64
|
+
*/
|
|
13
65
|
endIcon?: React.ReactNode;
|
|
66
|
+
/**
|
|
67
|
+
* Custom CSS class name for the start icon wrapper
|
|
68
|
+
*/
|
|
14
69
|
startIconClassName?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Custom CSS class name for the end icon wrapper
|
|
72
|
+
*/
|
|
15
73
|
endIconClassName?: string;
|
|
16
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Visual style variant of the button (uses theme.palette)
|
|
76
|
+
* - `primary` | `secondary` | `tertiary` | `error` | `warning` | `success`
|
|
77
|
+
* @default 'tertiary'
|
|
78
|
+
*/
|
|
79
|
+
variant?: keyof ButtonVariants;
|
|
80
|
+
/**
|
|
81
|
+
* HTML button type attribute
|
|
82
|
+
* - `button`: Standard button (default)
|
|
83
|
+
* - `submit`: Form submission button
|
|
84
|
+
* - `reset`: Form reset button
|
|
85
|
+
* @default 'button'
|
|
86
|
+
*/
|
|
17
87
|
type?: 'button' | 'reset' | 'submit';
|
|
88
|
+
/**
|
|
89
|
+
* Disables the button, preventing user interaction
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
18
92
|
isDisabled?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Custom CSS class name for the button
|
|
95
|
+
*/
|
|
19
96
|
className?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Click event handler
|
|
99
|
+
* Fired when the button is clicked (if not disabled)
|
|
100
|
+
*/
|
|
20
101
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
102
|
+
/**
|
|
103
|
+
* Custom content to render inside the button
|
|
104
|
+
* If provided, takes precedence over `text` prop
|
|
105
|
+
* Either `text`, `children`, or icons must be provided
|
|
106
|
+
*/
|
|
21
107
|
children?: React.ReactNode;
|
|
22
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Button variant style functions.
|
|
111
|
+
* Each function reads from `theme.palette.<variant>` using the following convention:
|
|
112
|
+
* - `main` → default background
|
|
113
|
+
* - `dark` → hover and active background
|
|
114
|
+
* - `light` → focus background
|
|
115
|
+
*/
|
|
23
116
|
export interface ButtonVariants {
|
|
24
117
|
primary: (theme: Theme) => SerializedStyles;
|
|
25
|
-
info: (theme: Theme) => SerializedStyles;
|
|
26
118
|
secondary: (theme: Theme) => SerializedStyles;
|
|
27
119
|
tertiary: (theme: Theme) => SerializedStyles;
|
|
28
|
-
|
|
120
|
+
error: (theme: Theme) => SerializedStyles;
|
|
121
|
+
warning: (theme: Theme) => SerializedStyles;
|
|
122
|
+
success: (theme: Theme) => SerializedStyles;
|
|
29
123
|
}
|
|
30
124
|
export type ButtonTextProps = {
|
|
31
125
|
text: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BarGaugeChartHeaderProps } from '../types';
|
|
2
|
-
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../../
|
|
2
|
+
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../../index").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
}, {}, {}>;
|
|
5
5
|
export declare const BarGaugeChartHeader: <F extends string[]>({ features, }: BarGaugeChartHeaderProps<F>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
2
|
import { BarLineComplexInternalProps } from './types';
|
|
3
3
|
export declare const BarLineComplexChartView: ({ width, height, isFullscreenMode, transformedChartData, tooltipContentRef, extraModeBarButtons, systemModeBarButtons, onChange, ...props }: BarLineComplexInternalProps & {
|
|
4
4
|
isFullscreenMode: boolean;
|
|
5
5
|
transformedChartData: Plotly.Data[];
|
|
6
|
-
tooltipContentRef:
|
|
6
|
+
tooltipContentRef: RefObject<HTMLDivElement | null>;
|
|
7
7
|
extraModeBarButtons: Array<Plotly.ModeBarButtonAny>;
|
|
8
8
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
2
|
import { PlotParams } from 'react-plotly.js';
|
|
3
3
|
import { PieChartProps } from '../PieChart';
|
|
4
4
|
export type BarLineChartItem = Plotly.Data & {
|
|
@@ -52,7 +52,7 @@ export interface BarLineComplexChartContextProviderProps extends Pick<BarLineCom
|
|
|
52
52
|
export interface UseChartInfo {
|
|
53
53
|
(): {
|
|
54
54
|
transformedChartData: Plotly.Data[];
|
|
55
|
-
tooltipContentRef:
|
|
55
|
+
tooltipContentRef: RefObject<HTMLDivElement | null>;
|
|
56
56
|
modeBarButtonsByKey: Record<string, Plotly.ModeBarButtonAny>;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LineSeries } from '@nivo/line';
|
|
2
2
|
import { WidgetCardProps } from '../../index';
|
|
3
3
|
import { TrendLineProps } from './components';
|
|
4
4
|
export type BigNumberChartFeatures = 'header' | 'fullscreenMode';
|
|
5
|
+
type Datum = LineSeries['data'][number];
|
|
5
6
|
export interface BigNumberChartProps {
|
|
6
7
|
data: Datum[];
|
|
7
8
|
interactive?: boolean;
|
|
8
9
|
title?: string;
|
|
9
10
|
widgetCardProps?: WidgetCardProps;
|
|
10
|
-
trendLineProps?: Omit<TrendLineProps, 'data'>;
|
|
11
|
+
trendLineProps?: Omit<TrendLineProps, 'data' | 'height' | 'width'>;
|
|
11
12
|
features?: BigNumberChartFeatures[];
|
|
12
13
|
valueFormat?: (value: Datum) => React.ReactNode;
|
|
13
14
|
}
|
|
14
15
|
export declare const BigNumberChartComponent: ({ data, title, widgetCardProps, trendLineProps, interactive, features, valueFormat, }: BigNumberChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
16
|
export declare const BigNumberChart: typeof BigNumberChartComponent;
|
|
17
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MustInclude } from '@ssa-ui-kit/utils';
|
|
2
|
-
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../../
|
|
2
|
+
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../../index").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
}, {}, {}>;
|
|
5
5
|
export interface BigNumberChartHeaderProps<T extends string[]> {
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LineSvgProps, LineSeries } from '@nivo/line';
|
|
2
2
|
import { TrendLineTooltipProps } from './TrendLineTooltip';
|
|
3
|
-
|
|
3
|
+
type Datum = LineSeries['data'][number];
|
|
4
|
+
export interface TrendLineProps extends Omit<LineSvgProps<LineSeries>, 'data' | 'height' | 'width'> {
|
|
4
5
|
color?: string;
|
|
5
|
-
tooltipValueFormat?: TrendLineTooltipProps['valueFormat'];
|
|
6
|
+
tooltipValueFormat?: TrendLineTooltipProps<LineSeries>['valueFormat'];
|
|
6
7
|
lastActivePoint?: Datum;
|
|
8
|
+
data: LineSvgProps<LineSeries>['data'];
|
|
9
|
+
height: number;
|
|
10
|
+
width: number;
|
|
7
11
|
}
|
|
8
12
|
export declare const TrendLine: ({ color, tooltipValueFormat, ...props }: TrendLineProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Theme } from '@emotion/react';
|
|
2
|
+
import { Interpolation } from '@emotion/styled';
|
|
3
|
+
import { LineSeries, Point, PointTooltipProps } from '@nivo/line';
|
|
4
|
+
export interface TrendLineTooltipProps<Series extends LineSeries> extends PointTooltipProps<Series> {
|
|
5
|
+
valueFormat?: (data: Point<Series>['data']) => React.ReactNode;
|
|
6
|
+
css?: Interpolation<Theme>;
|
|
7
|
+
}
|
|
8
|
+
export declare const TrendLineTooltip: <Series extends LineSeries>({ point, css, valueFormat, }: TrendLineTooltipProps<Series>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { MayHaveLabel
|
|
1
|
+
import { MayHaveLabel } from '@nivo/pie';
|
|
2
|
+
declare const ResponsivePie: <RawDatum extends MayHaveLabel>(props: import("@nivo/core").WithChartRef<import("@nivo/core").ResponsiveProps<import("@nivo/pie").PieSvgProps<RawDatum>>, SVGSVGElement>) => import("react").ReactElement;
|
|
2
3
|
export type GaugeChartData = {
|
|
3
4
|
color?: string;
|
|
4
5
|
value?: number;
|
|
5
6
|
} & MayHaveLabel;
|
|
6
7
|
export type GaugeChartBaseProps = React.ComponentProps<typeof ResponsivePie<GaugeChartData>>;
|
|
7
8
|
export declare const GaugeChartBase: ({ ...props }: GaugeChartBaseProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MustInclude } from '@ssa-ui-kit/utils';
|
|
2
|
-
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../../
|
|
2
|
+
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../../index").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
}, {}, {}>;
|
|
5
5
|
export interface GaugeChartHeaderProps<T extends string[]> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const PieChartLegendMarker: import("@emotion/styled").StyledComponent<Omit<Omit<import("react").HTMLProps<HTMLDivElement>, "size"> & import("
|
|
1
|
+
export declare const PieChartLegendMarker: import("@emotion/styled").StyledComponent<Omit<Omit<import("react").HTMLProps<HTMLDivElement>, "size"> & import("../..").BadgeProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
3
|
} & {
|
|
4
4
|
background?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const PieChartButton: import("@emotion/styled").StyledComponent<import("
|
|
1
|
+
export declare const PieChartButton: import("@emotion/styled").StyledComponent<import("../..").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
3
|
}, {}, {}>;
|
|
@@ -49,7 +49,7 @@ export type PieChartLegendProps = {
|
|
|
49
49
|
export type PieChartTooltipViewProps = {
|
|
50
50
|
isOpen: boolean;
|
|
51
51
|
point?: PieTooltipProps<MayHaveLabel & {
|
|
52
|
-
percentage?: number;
|
|
52
|
+
percentage?: number | string;
|
|
53
53
|
dimension?: string;
|
|
54
54
|
}> | null;
|
|
55
55
|
outputType: PieChartTooltipProps['outputType'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
import { ResponsiveRadar } from '@nivo/radar';
|
|
3
2
|
import { WidgetCardProps } from '../../WidgetCard';
|
|
3
|
+
declare const ResponsiveRadar: <D extends Record<string, unknown>>(props: import("@nivo/core").WithChartRef<import("@nivo/core").ResponsiveProps<import("@nivo/radar").RadarSvgProps<D>>, SVGSVGElement>) => import("react").ReactElement;
|
|
4
4
|
export type RadarChartFeatures = 'header' | 'fullscreenMode';
|
|
5
5
|
type ResponsiveRadarProps<D extends Record<string, unknown>> = ComponentProps<typeof ResponsiveRadar<D>>;
|
|
6
6
|
export interface RadarChartProps<D extends Record<string, unknown>> extends Omit<ResponsiveRadarProps<D>, 'legends'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MustInclude } from '@ssa-ui-kit/utils';
|
|
2
|
-
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../../
|
|
2
|
+
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../../index").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
}, {}, {}>;
|
|
5
5
|
export interface RadarChartHeaderProps<T extends string[]> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResponsiveTreeMap } from '@nivo/treemap';
|
|
2
1
|
import { WidgetCardProps } from '../../WidgetCard';
|
|
2
|
+
declare const ResponsiveTreeMap: <Datum extends object = import("@nivo/treemap").DefaultTreeMapDatum>(props: import("@nivo/core").WithChartRef<import("@nivo/core").ResponsiveProps<import("@nivo/treemap").TreeMapSvgProps<Datum>>, SVGSVGElement>) => import("react").ReactElement;
|
|
3
3
|
export type TreeNode = {
|
|
4
4
|
name: string;
|
|
5
5
|
value?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TreeMapChartFeature } from './TreeMapChart';
|
|
2
|
-
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../
|
|
2
|
+
export declare const FullScreenButton: import("@emotion/styled").StyledComponent<import("../../index").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
}, {}, {}>;
|
|
5
5
|
export interface TreeMapChartHeaderProps {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* React 19 compatibility wrapper for Nivo responsive components.
|
|
4
|
+
*
|
|
5
|
+
* @nivo components can be received as module objects instead of functions due to
|
|
6
|
+
* CommonJS/ESM interop issues. This wrapper detects and unwraps such objects,
|
|
7
|
+
* then creates a functional component wrapper.
|
|
8
|
+
*
|
|
9
|
+
* The unwrapping process checks for:
|
|
10
|
+
* - .default export (CommonJS/ESM default export)
|
|
11
|
+
* - .ResponsiveWrapper property (Nivo's internal wrapper)
|
|
12
|
+
* - Direct function component
|
|
13
|
+
*
|
|
14
|
+
* @param Component - The Nivo responsive component (e.g., ResponsiveLine, ResponsivePie)
|
|
15
|
+
* @param displayName - Display name for debugging in React DevTools
|
|
16
|
+
* @returns A React 19 compatible functional component
|
|
17
|
+
*/
|
|
18
|
+
export declare function wrapNivoResponsiveComponent<T extends ComponentType<any>>(Component: T, displayName?: string): T;
|
|
@@ -1,3 +1,87 @@
|
|
|
1
1
|
import { CheckboxProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Checkbox - Form control for selecting one or more options
|
|
4
|
+
*
|
|
5
|
+
* A flexible checkbox component that supports controlled and uncontrolled states,
|
|
6
|
+
* indeterminate state, React Hook Form integration, and full accessibility.
|
|
7
|
+
* The component automatically manages indeterminate state and provides visual
|
|
8
|
+
* feedback through icons (checkmark or minus for indeterminate).
|
|
9
|
+
*
|
|
10
|
+
* Colors are driven by `theme.palette`:
|
|
11
|
+
* - `primary` (default) — blue; uses `palette.primary.light/main/dark` for
|
|
12
|
+
* the resting border, checked fill, and hover fill. Disabled uses `greyFocused40`.
|
|
13
|
+
* - `success` — green; uses `palette.success.main/dark` for the border and fills.
|
|
14
|
+
* Disabled uses `greyFocused40`.
|
|
15
|
+
* - `custom` — unstyled; apply your own colors via `className` or the `css` prop.
|
|
16
|
+
*
|
|
17
|
+
* @category Form Controls
|
|
18
|
+
* @subcategory Input
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* // Basic usage (primary / blue by default)
|
|
23
|
+
* <Checkbox
|
|
24
|
+
* id="accept-terms"
|
|
25
|
+
* text="Accept terms and conditions"
|
|
26
|
+
* onChange={(checked) => handleChange(checked)}
|
|
27
|
+
* />
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* // Green (success) variant
|
|
33
|
+
* <Checkbox
|
|
34
|
+
* id="success-checkbox"
|
|
35
|
+
* text="Task completed"
|
|
36
|
+
* color="success"
|
|
37
|
+
* onChange={handleChange}
|
|
38
|
+
* />
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* // With React Hook Form
|
|
44
|
+
* const { register } = useForm();
|
|
45
|
+
* <Checkbox
|
|
46
|
+
* name="newsletter"
|
|
47
|
+
* text="Subscribe to newsletter"
|
|
48
|
+
* register={register}
|
|
49
|
+
* isRequired
|
|
50
|
+
* />
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* // Controlled checkbox
|
|
56
|
+
* const [checked, setChecked] = useState(false);
|
|
57
|
+
* <Checkbox
|
|
58
|
+
* text="Controlled checkbox"
|
|
59
|
+
* externalState={checked}
|
|
60
|
+
* onChange={setChecked}
|
|
61
|
+
* />
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```tsx
|
|
66
|
+
* // Indeterminate state (e.g., "select all")
|
|
67
|
+
* <Checkbox
|
|
68
|
+
* text="Select all items"
|
|
69
|
+
* isIndeterminate={someSelected && !allSelected}
|
|
70
|
+
* initialState={allSelected}
|
|
71
|
+
* onChange={handleSelectAll}
|
|
72
|
+
* />
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @see {@link Field} - Use Field.Root to wrap Checkbox for labels and validation
|
|
76
|
+
* @see {@link FormCheckbox} - Alternative checkbox component with form integration
|
|
77
|
+
*
|
|
78
|
+
* @accessibility
|
|
79
|
+
* - Fully keyboard accessible (Space to toggle)
|
|
80
|
+
* - Supports ARIA attributes via HTML input element
|
|
81
|
+
* - Proper label association via htmlFor/id
|
|
82
|
+
* - Screen reader friendly with proper roles
|
|
83
|
+
*
|
|
84
|
+
* @requires React Hook Form when using `register` prop
|
|
85
|
+
*/
|
|
2
86
|
declare const Checkbox: ({ text, id, onChange, isDisabled, externalState, initialState, isIndeterminate, name, isRequired, ref, register, ...rest }: CheckboxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
87
|
export default Checkbox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CheckboxProps } from './types';
|
|
2
|
-
export declare const CheckboxBase: import("@emotion/styled").StyledComponent<import("
|
|
2
|
+
export declare const CheckboxBase: import("@emotion/styled").StyledComponent<import("..").LabelProps & {
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
} & Pick<CheckboxProps, "color">, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme } from '@emotion/react';
|
|
2
2
|
export declare const checkboxStyles: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
primaryInput: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
4
|
+
successInput: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
5
5
|
};
|