@vygruppen/spor-react 12.24.16 → 13.0.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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +4 -3
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +2753 -2646
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +887 -601
- package/dist/index.d.ts +887 -601
- package/dist/index.mjs +2712 -2605
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
- package/src/accordion/Accordion.tsx +34 -29
- package/src/accordion/Expandable.tsx +20 -21
- package/src/alert/Alert.tsx +7 -5
- package/src/alert/AlertIcon.tsx +19 -20
- package/src/alert/ExpandableAlert.tsx +65 -64
- package/src/alert/ServiceAlert.tsx +78 -78
- package/src/breadcrumb/Breadcrumb.tsx +37 -34
- package/src/button/Button.tsx +64 -57
- package/src/button/ButtonGroup.tsx +12 -10
- package/src/button/Clipboard.tsx +21 -18
- package/src/button/CloseButton.tsx +19 -17
- package/src/button/FloatingActionButton.tsx +41 -47
- package/src/button/IconButton.tsx +20 -18
- package/src/calendar/CalendarContext.tsx +1 -1
- package/src/color-mode/color-mode.tsx +7 -5
- package/src/datepicker/CalendarTriggerButton.tsx +11 -7
- package/src/datepicker/DateField.tsx +53 -51
- package/src/datepicker/DatePicker.tsx +127 -134
- package/src/datepicker/DateTimeSegment.tsx +44 -40
- package/src/datepicker/StyledField.tsx +39 -36
- package/src/dialog/Dialog.tsx +14 -11
- package/src/dialog/Drawer.tsx +74 -67
- package/src/input/AttachedInputs.tsx +35 -41
- package/src/input/Autocomplete.tsx +118 -129
- package/src/input/CardSelect.tsx +67 -65
- package/src/input/Checkbox.tsx +19 -17
- package/src/input/CheckboxGroup.tsx +0 -2
- package/src/input/ChoiceChip.tsx +42 -38
- package/src/input/Combobox.tsx +4 -4
- package/src/input/CountryCodeSelect.tsx +8 -8
- package/src/input/Field.tsx +78 -75
- package/src/input/FloatingLabel.tsx +6 -8
- package/src/input/Input.tsx +87 -92
- package/src/input/ListBox.tsx +3 -4
- package/src/input/Menu.tsx +149 -142
- package/src/input/NativeSelect.tsx +7 -5
- package/src/input/NumericStepper.tsx +15 -12
- package/src/input/PasswordInput.tsx +65 -61
- package/src/input/PhoneNumberInput.tsx +7 -7
- package/src/input/Popover.tsx +52 -55
- package/src/input/Radio.tsx +16 -11
- package/src/input/SearchInput.tsx +32 -31
- package/src/input/Select.tsx +106 -96
- package/src/input/Switch.tsx +43 -41
- package/src/input/Textarea.tsx +68 -66
- package/src/layout/PressableCard.tsx +11 -10
- package/src/layout/RadioCard.tsx +57 -53
- package/src/layout/Separator.tsx +8 -7
- package/src/layout/StaticCard.tsx +11 -10
- package/src/linjetag/LineIcon.tsx +48 -54
- package/src/linjetag/TravelTag.tsx +57 -59
- package/src/link/TextLink.tsx +50 -40
- package/src/loader/ProgressBar.tsx +41 -46
- package/src/loader/ProgressLoader.tsx +83 -86
- package/src/loader/Skeleton.tsx +56 -48
- package/src/logo/CargonetLogo.tsx +88 -87
- package/src/logo/VyLogo.tsx +80 -77
- package/src/logo/VyLogoPride.tsx +137 -135
- package/src/media-controller/JumpButton.tsx +30 -28
- package/src/media-controller/PlayPauseButton.tsx +8 -7
- package/src/media-controller/SkipButton.tsx +28 -26
- package/src/nudge/Nudge.tsx +66 -70
- package/src/pagination/Pagination.tsx +52 -46
- package/src/popover/index.tsx +46 -41
- package/src/progress-indicator/ProgressIndicator.tsx +10 -7
- package/src/stepper/Stepper.tsx +84 -81
- package/src/tab/Tabs.tsx +8 -4
- package/src/table/Table.tsx +89 -109
- package/src/tooltip.tsx +26 -22
- package/src/typography/Badge.tsx +8 -5
- package/src/typography/Code.tsx +8 -5
- package/src/typography/Heading.tsx +22 -23
- package/src/typography/Text.tsx +11 -9
- package/tsconfig.json +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, {
|
|
2
|
+
import React__default, { PropsWithChildren, ReactNode, ComponentProps, Ref } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
4
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
4
|
-
import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue,
|
|
5
|
+
import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, ComboboxItemProps, Combobox as Combobox$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCardRootProps, Fieldset as Fieldset$1, Input as Input$1, ListRootProps, MenuRootProps, MenuCheckboxItemProps, MenuContentProps, MenuItemProps as MenuItemProps$1, MenuItemGroupProps as MenuItemGroupProps$1, MenuRadioItemProps, MenuRadioItemGroupProps, MenuSeparatorProps, MenuTriggerItemProps as MenuTriggerItemProps$1, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, SelectLabelProps, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, LinkProps as LinkProps$1, List as List$1, UseProgressProps, SkeletonProps as SkeletonProps$1, CircleProps, Popover as Popover$1, Pagination as Pagination$1, ChakraProviderProps, SystemContext, TabsRootProps, Tabs as Tabs$1, TableRootProps, TableBodyProps as TableBodyProps$1, TableColumnHeaderProps as TableColumnHeaderProps$1, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
|
|
5
6
|
export { AspectRatio, Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Icon, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, SystemConfig, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnGroup, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, Wrap, createIcon, createListCollection, createSystem, defineConfig, defineRecipe, defineSlotRecipe, defineStyle, mergeConfigs, chakra as spor, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useRecipe, useSlotRecipe, useToken } from '@chakra-ui/react';
|
|
6
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { IconComponent } from '@vygruppen/spor-icon-react';
|
|
8
8
|
import { CalendarDate, DateDuration, DateValue as DateValue$1 } from '@internationalized/date';
|
|
9
9
|
export { Time } from '@internationalized/date';
|
|
@@ -17,10 +17,111 @@ export { useIsClient, useMap, useOnClickOutside } from 'usehooks-ts';
|
|
|
17
17
|
import * as sporDesignTokens from '@vygruppen/spor-design-tokens';
|
|
18
18
|
export { sporDesignTokens as tokens };
|
|
19
19
|
|
|
20
|
+
declare const accordionSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "itemTrigger" | "item" | "itemBody" | "itemContent" | "itemIndicator", {
|
|
21
|
+
variant: {
|
|
22
|
+
ghost: {
|
|
23
|
+
item: {
|
|
24
|
+
outline: "none";
|
|
25
|
+
};
|
|
26
|
+
itemTrigger: {
|
|
27
|
+
"&:hover": {
|
|
28
|
+
background: "ghost.surface.hover";
|
|
29
|
+
};
|
|
30
|
+
"&:active": {
|
|
31
|
+
backgroundColor: "ghost.surface.active";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
core: {
|
|
36
|
+
item: {
|
|
37
|
+
outline: "solid";
|
|
38
|
+
outlineWidth: string;
|
|
39
|
+
outlineColor: "core.outline";
|
|
40
|
+
};
|
|
41
|
+
itemTrigger: {
|
|
42
|
+
_expanded: {
|
|
43
|
+
borderBottomRadius: "none";
|
|
44
|
+
};
|
|
45
|
+
"&:hover": {
|
|
46
|
+
outlineWidth: string;
|
|
47
|
+
outlineColor: "core.outline";
|
|
48
|
+
outline: "2px solid";
|
|
49
|
+
outlineOffset: number;
|
|
50
|
+
};
|
|
51
|
+
"&:active": {
|
|
52
|
+
backgroundColor: "core.surface.active";
|
|
53
|
+
outlineWidth: string;
|
|
54
|
+
outline: "none";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
underlined: {
|
|
59
|
+
root: {
|
|
60
|
+
borderRadius: "none";
|
|
61
|
+
};
|
|
62
|
+
item: {
|
|
63
|
+
borderRadius: "none";
|
|
64
|
+
borderBottom: "1px solid";
|
|
65
|
+
borderBottomColor: "floating.outline.active";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
floating: {
|
|
69
|
+
item: {
|
|
70
|
+
outline: "1px solid";
|
|
71
|
+
outlineWidth: string;
|
|
72
|
+
boxShadow: "sm";
|
|
73
|
+
outlineColor: "floating.outline";
|
|
74
|
+
};
|
|
75
|
+
itemTrigger: {
|
|
76
|
+
_expanded: {
|
|
77
|
+
borderBottomRadius: "none";
|
|
78
|
+
};
|
|
79
|
+
"&:hover": {
|
|
80
|
+
outlineWidth: string;
|
|
81
|
+
outline: "1px solid";
|
|
82
|
+
outlineColor: "floating.outline.hover";
|
|
83
|
+
outlineOffset: number;
|
|
84
|
+
};
|
|
85
|
+
"&:active": {
|
|
86
|
+
backgroundColor: "floating.surface.active";
|
|
87
|
+
outlineWidth: string;
|
|
88
|
+
outline: "none";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
|
|
95
|
+
type AccordionVariantProps = RecipeVariantProps<typeof accordionSlotRecipe>;
|
|
96
|
+
type AccordionProps = Exclude<AccordionRootProps, "variant" | "size" | "orientation" | "href"> & AccordionVariantProps & PropsWithChildren & {
|
|
97
|
+
/**
|
|
98
|
+
* The display variant of the accordion items.
|
|
99
|
+
*
|
|
100
|
+
* - `core` renders a pretty unstyled expandable list without any borders
|
|
101
|
+
* - `base` renders an outlined version
|
|
102
|
+
* - `floating` renders a version with a drop shadow
|
|
103
|
+
*/
|
|
104
|
+
variant?: "ghost" | "core" | "floating" | "underlined";
|
|
105
|
+
gap?: string | number;
|
|
106
|
+
href?: string;
|
|
107
|
+
};
|
|
20
108
|
type HeadingLevel = {
|
|
21
109
|
/** Heading level of the trigger button */
|
|
22
110
|
headingLevel?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
23
111
|
};
|
|
112
|
+
type AccordionItemTriggerProps = Omit<Accordion$1.ItemTriggerProps, "indicatorElement"> & HeadingLevel & {
|
|
113
|
+
/** Icon to be displayed on the left of the trigger button. Use 24px outline. */
|
|
114
|
+
startElement?: React.ReactNode;
|
|
115
|
+
showChevron?: boolean;
|
|
116
|
+
/** URL to navigate to when the trigger is clicked (makes it a link instead of expandable) */
|
|
117
|
+
href?: string;
|
|
118
|
+
};
|
|
119
|
+
type AccordionItemContentProps = Accordion$1.ItemContentProps & {
|
|
120
|
+
children?: React.ReactNode;
|
|
121
|
+
};
|
|
122
|
+
type ExpandableProps = Omit<AccordionProps & AccordionItemTriggerProps, "title"> & HeadingLevel & {
|
|
123
|
+
title: ReactNode;
|
|
124
|
+
};
|
|
24
125
|
type ExpandableItemProps = HeadingLevel & {
|
|
25
126
|
value: string;
|
|
26
127
|
title: ReactNode;
|
|
@@ -28,23 +129,15 @@ type ExpandableItemProps = HeadingLevel & {
|
|
|
28
129
|
startElement?: React.ReactNode;
|
|
29
130
|
};
|
|
30
131
|
|
|
31
|
-
declare const Accordion:
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
declare const AccordionItemTrigger: React$1.ForwardRefExoticComponent<Omit<Accordion$1.ItemTriggerProps, "indicatorElement"> & HeadingLevel & {
|
|
41
|
-
startElement?: React.ReactNode;
|
|
42
|
-
showChevron?: boolean;
|
|
43
|
-
href?: string;
|
|
44
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
45
|
-
declare const AccordionItemContent: React$1.ForwardRefExoticComponent<Accordion$1.ItemContentProps & {
|
|
46
|
-
children?: React.ReactNode;
|
|
47
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
132
|
+
declare const Accordion: ({ ref, ...props }: AccordionProps & {
|
|
133
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
134
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
135
|
+
declare const AccordionItemTrigger: ({ ref, ...props }: AccordionItemTriggerProps & {
|
|
136
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
137
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
138
|
+
declare const AccordionItemContent: ({ ref, ...props }: AccordionItemContentProps & {
|
|
139
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
140
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
48
141
|
declare const AccordionItem: React$1.ForwardRefExoticComponent<Accordion$1.ItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
49
142
|
|
|
50
143
|
/**
|
|
@@ -59,21 +152,9 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Accordion$1.ItemP
|
|
|
59
152
|
* </Expandable>
|
|
60
153
|
* ```
|
|
61
154
|
*/
|
|
62
|
-
declare const Expandable:
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
children?: React$1.ReactNode | undefined;
|
|
66
|
-
} & {
|
|
67
|
-
variant?: "ghost" | "core" | "floating" | "underlined";
|
|
68
|
-
gap?: string | number;
|
|
69
|
-
href?: string;
|
|
70
|
-
} & Omit<_chakra_ui_react.AccordionItemTriggerProps, "indicatorElement"> & HeadingLevel & {
|
|
71
|
-
startElement?: React.ReactNode;
|
|
72
|
-
showChevron?: boolean;
|
|
73
|
-
href?: string;
|
|
74
|
-
}, "title"> & HeadingLevel & {
|
|
75
|
-
title: React$1.ReactNode;
|
|
76
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
155
|
+
declare const Expandable: ({ ref, ...props }: ExpandableProps & {
|
|
156
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
157
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
77
158
|
/**
|
|
78
159
|
* An item in a set of Expandables. Must be wrapped in an `<Accordion>` component.
|
|
79
160
|
*
|
|
@@ -124,32 +205,132 @@ type AlertProps = Omit<Alert$1.RootProps, "colorPalette"> & {
|
|
|
124
205
|
*
|
|
125
206
|
* @see Docs https://spor.vy.no/alert
|
|
126
207
|
*/
|
|
127
|
-
declare const Alert:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
/** Whether or not the alert is closable */
|
|
131
|
-
icon?: IconComponent;
|
|
132
|
-
closable?: boolean;
|
|
133
|
-
/** Callback for when the alert is closed */
|
|
134
|
-
onAlertClose?: () => void;
|
|
135
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
208
|
+
declare const Alert: ({ ref, ...props }: AlertProps & {
|
|
209
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
210
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
136
211
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
212
|
+
declare const alertExpandableSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "itemTrigger" | "itemContent" | "itemIndicator" | "indicator" | "title", {
|
|
213
|
+
variant: {
|
|
214
|
+
important: {
|
|
215
|
+
itemContent: {
|
|
216
|
+
color: "alert.important.text.secondary";
|
|
217
|
+
};
|
|
218
|
+
itemTrigger: {
|
|
219
|
+
"&:hover": {
|
|
220
|
+
bg: "alert.important.surface.hover";
|
|
221
|
+
outline: "1px solid";
|
|
222
|
+
outlineColor: "alert.important.outline.hover";
|
|
223
|
+
outlineOffset: "0px";
|
|
224
|
+
};
|
|
225
|
+
"&:active": {
|
|
226
|
+
bg: "alert.important.surface.active";
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
root: {
|
|
230
|
+
borderColor: "alert.important.outline";
|
|
231
|
+
bg: "alert.important.surface";
|
|
232
|
+
};
|
|
233
|
+
title: {
|
|
234
|
+
color: "alert.important.text";
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
success: {
|
|
238
|
+
itemContent: {
|
|
239
|
+
color: "alert.success.text.secondary";
|
|
240
|
+
};
|
|
241
|
+
itemTrigger: {
|
|
242
|
+
"&:hover": {
|
|
243
|
+
bg: "alert.success.surface.hover";
|
|
244
|
+
outline: "1px solid";
|
|
245
|
+
outlineOffset: "0px";
|
|
246
|
+
outlineColor: "alert.success.outline.hover";
|
|
247
|
+
"&:active": {
|
|
248
|
+
bg: "alert.success.surface.active";
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
root: {
|
|
253
|
+
borderColor: "alert.success.outline";
|
|
254
|
+
bg: "alert.success.surface";
|
|
255
|
+
};
|
|
256
|
+
title: {
|
|
257
|
+
color: "alert.success.text";
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
alt: {
|
|
261
|
+
itemContent: {
|
|
262
|
+
color: "alert.alt.text.secondary";
|
|
263
|
+
};
|
|
264
|
+
itemTrigger: {
|
|
265
|
+
"&:hover": {
|
|
266
|
+
bg: "alert.alt.surface.hover";
|
|
267
|
+
outlineOffset: "0px";
|
|
268
|
+
outline: "1px solid";
|
|
269
|
+
outlineColor: "alert.alt.outline.hover";
|
|
270
|
+
"&:active": {
|
|
271
|
+
bg: "alert.alt.surface.active";
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
root: {
|
|
276
|
+
borderColor: "alert.alt.outline";
|
|
277
|
+
bg: "alert.alt.surface";
|
|
278
|
+
};
|
|
279
|
+
title: {
|
|
280
|
+
color: "alert.alt.text";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
info: {
|
|
284
|
+
itemContent: {
|
|
285
|
+
color: "alert.info.text.secondary";
|
|
286
|
+
};
|
|
287
|
+
itemTrigger: {
|
|
288
|
+
"&:hover": {
|
|
289
|
+
bg: "alert.info.surface.hover";
|
|
290
|
+
outlineOffset: "0px";
|
|
291
|
+
outline: "1px solid";
|
|
292
|
+
outlineColor: "alert.info.outline.hover";
|
|
293
|
+
"&:active": {
|
|
294
|
+
bg: "alert.info.surface.active";
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
root: {
|
|
299
|
+
borderColor: "alert.info.outline";
|
|
300
|
+
bg: "alert.info.surface";
|
|
301
|
+
};
|
|
302
|
+
title: {
|
|
303
|
+
color: "alert.info.text";
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
error: {
|
|
307
|
+
itemContent: {
|
|
308
|
+
color: "alert.error.text.secondary";
|
|
309
|
+
};
|
|
310
|
+
itemTrigger: {
|
|
311
|
+
"&:hover": {
|
|
312
|
+
bg: "alert.error.surface.hover";
|
|
313
|
+
outlineOffset: "0px";
|
|
314
|
+
outline: "1px solid";
|
|
315
|
+
outlineColor: "alert.error.outline.hover";
|
|
316
|
+
"&:active": {
|
|
317
|
+
bg: "alert.error.surface.active";
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
root: {
|
|
322
|
+
borderColor: "alert.error.outline";
|
|
323
|
+
bg: "alert.error.surface";
|
|
324
|
+
};
|
|
325
|
+
title: {
|
|
326
|
+
color: "alert.error.text";
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
}>;
|
|
331
|
+
|
|
332
|
+
type ExpandableAlertVariantProps = RecipeVariantProps<typeof alertExpandableSlotRecipe>;
|
|
333
|
+
type ExpandableAlertProps = PropsWithChildren<ExpandableAlertVariantProps> & Omit<Accordion$1.RootProps, "variant" | "orientation" | "size" | "value"> & {
|
|
153
334
|
/** The title string */
|
|
154
335
|
title: string;
|
|
155
336
|
/** Whether or not the default state of the expandable alert is open */
|
|
@@ -172,22 +353,26 @@ declare const ExpandableAlert: React$1.ForwardRefExoticComponent<{
|
|
|
172
353
|
| "global-deviation";
|
|
173
354
|
*/
|
|
174
355
|
variant?: ConditionalValue<"important" | "success" | "alt" | "info" | "error" | undefined>;
|
|
175
|
-
}
|
|
176
|
-
|
|
356
|
+
};
|
|
177
357
|
/**
|
|
178
|
-
*
|
|
358
|
+
* An expandable alert component.
|
|
179
359
|
*
|
|
180
|
-
* A regular alert with an expandable body
|
|
360
|
+
* A regular alert with an expandable body. The expandable body can be used to provide more information about the alert.
|
|
181
361
|
*
|
|
182
362
|
* ```tsx
|
|
183
|
-
* <
|
|
184
|
-
*
|
|
185
|
-
* </
|
|
363
|
+
* <ExpandableAlert variant="alt-transport" title="Replacement bus service">
|
|
364
|
+
* The replacement bus service will be running from 10:00 to 16:00.
|
|
365
|
+
* </ExpandableAlert>
|
|
186
366
|
* ```
|
|
187
367
|
*/
|
|
188
|
-
declare const
|
|
189
|
-
|
|
190
|
-
}
|
|
368
|
+
declare const ExpandableAlert: ({ ref, ...props }: ExpandableAlertProps & {
|
|
369
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
370
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
371
|
+
|
|
372
|
+
declare const alertServiceSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "itemTrigger" | "itemBody" | "itemContent" | "itemTriggerTitle" | "notificationText", _chakra_ui_react.SlotRecipeVariantRecord<"root" | "itemTrigger" | "itemBody" | "itemContent" | "itemTriggerTitle" | "notificationText">>;
|
|
373
|
+
|
|
374
|
+
type ServiceAlertVariantProps = RecipeVariantProps<typeof alertServiceSlotRecipe>;
|
|
375
|
+
type ServiceAlertProps = Omit<AlertProps, "variant"> & PropsWithChildren<ServiceAlertVariantProps> & Omit<Accordion$1.RootProps, "variant" | "orientation" | "size" | "value"> & {
|
|
191
376
|
/** The title string */
|
|
192
377
|
title: string;
|
|
193
378
|
/** The number of notifications when there is a list of multiple alerts */
|
|
@@ -205,7 +390,21 @@ declare const ServiceAlert: React$1.ForwardRefExoticComponent<Omit<AlertProps, "
|
|
|
205
390
|
headingLevel?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
206
391
|
/** The variant of Service Alert. Default: service */
|
|
207
392
|
variant?: "service" | "global-deviation";
|
|
208
|
-
}
|
|
393
|
+
};
|
|
394
|
+
/**
|
|
395
|
+
* A service alert component.
|
|
396
|
+
*
|
|
397
|
+
* A regular alert with an expandable body, used to show service messages. The expandable body can be used to provide more information about the alert(s).
|
|
398
|
+
*
|
|
399
|
+
* ```tsx
|
|
400
|
+
* <ServiceAlert title="Error with Vipps" notification={1} contentWidth="container.md">
|
|
401
|
+
* <Text>Some customers are experiencing issues logging in with Vipps. Vipps is working to resolve the issue. Try logging in with email instead.</Text>
|
|
402
|
+
* </ServiceAlert>
|
|
403
|
+
* ```
|
|
404
|
+
*/
|
|
405
|
+
declare const ServiceAlert: ({ ref, ...props }: ServiceAlertProps & {
|
|
406
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
407
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
209
408
|
|
|
210
409
|
/**
|
|
211
410
|
* A breadcrumb component.
|
|
@@ -221,7 +420,9 @@ declare const ServiceAlert: React$1.ForwardRefExoticComponent<Omit<AlertProps, "
|
|
|
221
420
|
* </Breadcrumb>
|
|
222
421
|
* ```
|
|
223
422
|
*/
|
|
224
|
-
declare const Breadcrumb:
|
|
423
|
+
declare const Breadcrumb: ({ ref, children, css, ...props }: BreadcrumbRootProps & {
|
|
424
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
425
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
225
426
|
|
|
226
427
|
declare const buttonRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
227
428
|
variant: {
|
|
@@ -332,21 +533,9 @@ type ButtonProps = Exclude<ButtonProps$1, "size" | "variant" | "colorPalette"> &
|
|
|
332
533
|
download?: string;
|
|
333
534
|
href?: string;
|
|
334
535
|
};
|
|
335
|
-
declare const Button:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
} & {
|
|
339
|
-
children?: React__default.ReactNode | undefined;
|
|
340
|
-
} & {
|
|
341
|
-
loading?: boolean;
|
|
342
|
-
loadingText?: React__default.ReactNode;
|
|
343
|
-
leftIcon?: React__default.ReactNode;
|
|
344
|
-
rightIcon?: React__default.ReactNode;
|
|
345
|
-
variant?: ButtonProps$1["variant"];
|
|
346
|
-
size?: ButtonProps$1["size"];
|
|
347
|
-
download?: string;
|
|
348
|
-
href?: string;
|
|
349
|
-
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
536
|
+
declare const Button: ({ ref, loading, disabled, loadingText, variant, size, leftIcon, rightIcon, type, children, ...rest }: ButtonProps & {
|
|
537
|
+
ref?: React__default.RefObject<HTMLButtonElement>;
|
|
538
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
350
539
|
|
|
351
540
|
declare const groupRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
352
541
|
disabled: {
|
|
@@ -394,27 +583,14 @@ type ButtonGroupProps = GroupProps & PropsWithChildren<GroupVariantProps>;
|
|
|
394
583
|
* <Button variant="secondary">Save</Button>
|
|
395
584
|
* </ButtonGroup>
|
|
396
585
|
*/
|
|
397
|
-
declare const ButtonGroup:
|
|
398
|
-
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xs" | undefined>;
|
|
406
|
-
} & {
|
|
407
|
-
children?: React$1.ReactNode | undefined;
|
|
408
|
-
} & {
|
|
409
|
-
loading?: boolean;
|
|
410
|
-
loadingText?: React$1.ReactNode;
|
|
411
|
-
leftIcon?: React$1.ReactNode;
|
|
412
|
-
rightIcon?: React$1.ReactNode;
|
|
413
|
-
variant?: _chakra_ui_react.ButtonProps["variant"];
|
|
414
|
-
size?: _chakra_ui_react.ButtonProps["size"];
|
|
415
|
-
download?: string;
|
|
416
|
-
href?: string;
|
|
417
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
586
|
+
declare const ButtonGroup: ({ ref, ...props }: ButtonGroupProps & {
|
|
587
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
588
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
589
|
+
|
|
590
|
+
type ClipboardButtonProps = ButtonProps;
|
|
591
|
+
declare const ClipboardButton: ({ ref, ...props }: ClipboardButtonProps & {
|
|
592
|
+
ref?: React$1.RefObject<HTMLButtonElement>;
|
|
593
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
418
594
|
declare const Clipboard: React$1.ForwardRefExoticComponent<Clipboard$1.RootProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
419
595
|
|
|
420
596
|
type IconButtonProps = Exclude<IconButtonProps$1, "variant" | "spinner" | "icon"> & PropsWithChildren<ButtonVariantProps> & {
|
|
@@ -462,22 +638,9 @@ type IconButtonProps = Exclude<IconButtonProps$1, "variant" | "spinner" | "icon"
|
|
|
462
638
|
* />
|
|
463
639
|
* ```
|
|
464
640
|
*/
|
|
465
|
-
declare const IconButton:
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
} & {
|
|
469
|
-
children?: React__default.ReactNode | undefined;
|
|
470
|
-
} & {
|
|
471
|
-
/** The button variant.
|
|
472
|
-
*
|
|
473
|
-
*/
|
|
474
|
-
variant: "primary" | "secondary" | "tertiary" | "ghost" | "floating";
|
|
475
|
-
spinner?: React__default.JSX.Element;
|
|
476
|
-
icon?: React__default.JSX.Element;
|
|
477
|
-
loading?: boolean;
|
|
478
|
-
download?: string;
|
|
479
|
-
href?: string;
|
|
480
|
-
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
641
|
+
declare const IconButton: ({ ref, ...props }: IconButtonProps & {
|
|
642
|
+
ref?: React__default.RefObject<HTMLButtonElement | null>;
|
|
643
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
481
644
|
|
|
482
645
|
type CloseButtonProps = Omit<IconButtonProps, "variant" | "aria-label"> & {
|
|
483
646
|
/** Defaults to a localized version of "close" */
|
|
@@ -492,11 +655,92 @@ type CloseButtonProps = Omit<IconButtonProps, "variant" | "aria-label"> & {
|
|
|
492
655
|
* <CloseButton onClick={closeModal} />
|
|
493
656
|
* ```
|
|
494
657
|
*/
|
|
495
|
-
declare const CloseButton:
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
658
|
+
declare const CloseButton: ({ ref, size, ...props }: CloseButtonProps & {
|
|
659
|
+
ref?: React.RefObject<HTMLButtonElement | null>;
|
|
660
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
661
|
+
|
|
662
|
+
declare const floatingActionButtonSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" | "root" | "text", {
|
|
663
|
+
variant: {
|
|
664
|
+
brand: {
|
|
665
|
+
root: {
|
|
666
|
+
backgroundColor: "brand.surface";
|
|
667
|
+
color: "brand.text";
|
|
668
|
+
_hover: {
|
|
669
|
+
backgroundColor: "brand.surface.hover";
|
|
670
|
+
_active: {
|
|
671
|
+
backgroundColor: "brand.surface.active";
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
core: {
|
|
677
|
+
root: {
|
|
678
|
+
backgroundColor: "transparent";
|
|
679
|
+
outline: "1px solid";
|
|
680
|
+
outlineColor: "core.outline";
|
|
681
|
+
color: "core.text";
|
|
682
|
+
_hover: {
|
|
683
|
+
backgroundColor: "transparent";
|
|
684
|
+
outline: "2px solid";
|
|
685
|
+
outlineColor: "core.outline";
|
|
686
|
+
_active: {
|
|
687
|
+
outline: "1px solid";
|
|
688
|
+
outlineColor: "core.outline";
|
|
689
|
+
backgroundColor: "core.surface.active";
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
accent: {
|
|
695
|
+
root: {
|
|
696
|
+
backgroundColor: "accent.surface";
|
|
697
|
+
color: "accent.text";
|
|
698
|
+
_hover: {
|
|
699
|
+
backgroundColor: "accent.surface.hover";
|
|
700
|
+
color: "accent.text";
|
|
701
|
+
_active: {
|
|
702
|
+
backgroundColor: "accent.surface.active";
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
placement: {
|
|
709
|
+
"top left": {
|
|
710
|
+
root: {
|
|
711
|
+
top: "1rem";
|
|
712
|
+
left: "1rem";
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
"top right": {
|
|
716
|
+
root: {
|
|
717
|
+
top: "1rem";
|
|
718
|
+
right: "1rem";
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
"bottom left": {
|
|
722
|
+
root: {
|
|
723
|
+
bottom: "1rem";
|
|
724
|
+
left: "1rem";
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
"bottom right": {
|
|
728
|
+
root: {
|
|
729
|
+
bottom: "1rem";
|
|
730
|
+
right: "1rem";
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
}>;
|
|
499
735
|
|
|
736
|
+
type FloatingActionButtonVariantProps = RecipeVariantProps<typeof floatingActionButtonSlotRecipe>;
|
|
737
|
+
type FloatingActionButtonProps = BoxProps & PropsWithChildren<FloatingActionButtonVariantProps> & {
|
|
738
|
+
variant?: "accent" | "core" | "brand";
|
|
739
|
+
placement?: "bottom right" | "bottom left" | "top right" | "top left";
|
|
740
|
+
icon: React__default.ReactNode;
|
|
741
|
+
children: React__default.ReactNode;
|
|
742
|
+
isTextVisible?: boolean;
|
|
743
|
+
};
|
|
500
744
|
/**
|
|
501
745
|
* Creates a floating action button.
|
|
502
746
|
*
|
|
@@ -509,20 +753,11 @@ declare const CloseButton: React$1.ForwardRefExoticComponent<Omit<IconButtonProp
|
|
|
509
753
|
* placement="bottom right"
|
|
510
754
|
* />
|
|
511
755
|
*/
|
|
512
|
-
declare const FloatingActionButton:
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
} & {
|
|
516
|
-
children?: React__default.ReactNode | undefined;
|
|
517
|
-
} & {
|
|
518
|
-
variant?: "accent" | "core" | "brand";
|
|
519
|
-
placement?: "bottom right" | "bottom left" | "top right" | "top left";
|
|
520
|
-
icon: React__default.ReactNode;
|
|
521
|
-
children: React__default.ReactNode;
|
|
522
|
-
isTextVisible?: boolean;
|
|
523
|
-
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
756
|
+
declare const FloatingActionButton: ({ ref, children, icon, variant, isTextVisible: externalIsTextVisible, placement, ...props }: FloatingActionButtonProps & {
|
|
757
|
+
ref?: React__default.RefObject<HTMLButtonElement>;
|
|
758
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
524
759
|
|
|
525
|
-
type Props$
|
|
760
|
+
type Props$5 = {
|
|
526
761
|
/**
|
|
527
762
|
* Show two months side by side
|
|
528
763
|
*/
|
|
@@ -533,13 +768,13 @@ type Props$4 = {
|
|
|
533
768
|
* Calendar component that displays a grid of days for a specific month.
|
|
534
769
|
* Standard view with pagination, with the option to show dual months side by side.
|
|
535
770
|
*/
|
|
536
|
-
declare function Calendar({ dualView, css }: Props$
|
|
771
|
+
declare function Calendar({ dualView, css }: Props$5): react_jsx_runtime.JSX.Element;
|
|
537
772
|
|
|
538
|
-
type Props$
|
|
773
|
+
type Props$4 = {
|
|
539
774
|
date: CalendarDate;
|
|
540
775
|
currentMonth: CalendarDate;
|
|
541
776
|
};
|
|
542
|
-
declare function CalendarCell({ date, currentMonth }: Props$
|
|
777
|
+
declare function CalendarCell({ date, currentMonth }: Props$4): react_jsx_runtime.JSX.Element;
|
|
543
778
|
|
|
544
779
|
type CalendarValue = [CalendarDate | null, CalendarDate | null];
|
|
545
780
|
type CalendarMode = "single" | "range";
|
|
@@ -550,7 +785,7 @@ type BaseCalendarState = {
|
|
|
550
785
|
prevButtonProps: AriaButtonProps<"button">;
|
|
551
786
|
startValue: CalendarDate | null;
|
|
552
787
|
isSelectingRange: boolean;
|
|
553
|
-
ref
|
|
788
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
554
789
|
};
|
|
555
790
|
type SingleCalendarState = BaseCalendarState & {
|
|
556
791
|
mode: "single";
|
|
@@ -563,7 +798,7 @@ type RangeCalendarState = BaseCalendarState & {
|
|
|
563
798
|
endValue: CalendarDate | null;
|
|
564
799
|
};
|
|
565
800
|
declare function useCalendar(): CalendarState;
|
|
566
|
-
type Props$
|
|
801
|
+
type Props$3 = {
|
|
567
802
|
children?: React.ReactNode;
|
|
568
803
|
/**
|
|
569
804
|
* The selection mode of the calendar. Can be "single" or "range".
|
|
@@ -594,39 +829,201 @@ type Props$2 = {
|
|
|
594
829
|
/**
|
|
595
830
|
* Provides context for calendar components. Must be used as a wrapper around the Calendar.
|
|
596
831
|
*/
|
|
597
|
-
declare function CalendarProvider(props: Props$
|
|
832
|
+
declare function CalendarProvider(props: Props$3): react_jsx_runtime.JSX.Element;
|
|
598
833
|
|
|
599
|
-
type Props$
|
|
834
|
+
type Props$2 = {
|
|
600
835
|
offset?: DateDuration;
|
|
601
836
|
};
|
|
602
|
-
declare function CalendarGrid({ offset }: Props$
|
|
837
|
+
declare function CalendarGrid({ offset }: Props$2): react_jsx_runtime.JSX.Element;
|
|
603
838
|
|
|
604
|
-
type Props = {
|
|
839
|
+
type Props$1 = {
|
|
605
840
|
dualView?: boolean;
|
|
606
841
|
};
|
|
607
|
-
declare function CalendarHeader({ dualView }: Props): react_jsx_runtime.JSX.Element;
|
|
842
|
+
declare function CalendarHeader({ dualView }: Props$1): react_jsx_runtime.JSX.Element;
|
|
608
843
|
|
|
609
|
-
declare const
|
|
610
|
-
variant
|
|
611
|
-
|
|
844
|
+
declare const pressableCardRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
845
|
+
variant: {
|
|
846
|
+
floating: {
|
|
847
|
+
boxShadow: "0px 1px 3px 0px var(--shadow-color)";
|
|
848
|
+
shadowColor: "surface.disabled";
|
|
849
|
+
border: "sm";
|
|
850
|
+
borderColor: "floating.outline";
|
|
851
|
+
backgroundColor: "floating.surface";
|
|
852
|
+
_hover: {
|
|
853
|
+
boxShadow: "0px 2px 6px 0px var(--shadow-color)";
|
|
854
|
+
backgroundColor: "floating.surface.hover";
|
|
855
|
+
borderColor: "floating.outline.hover";
|
|
856
|
+
_active: {
|
|
857
|
+
boxShadow: "none";
|
|
858
|
+
backgroundColor: "floating.surface.active";
|
|
859
|
+
borderColor: "floating.outline.active";
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
core: {
|
|
864
|
+
outlineColor: "core.outline";
|
|
865
|
+
outlineWidth: string;
|
|
866
|
+
outlineStyle: "solid";
|
|
867
|
+
_hover: {
|
|
868
|
+
outlineColor: "core.outline.hover";
|
|
869
|
+
outlineWidth: string;
|
|
870
|
+
outlineStyle: "solid";
|
|
871
|
+
_active: {
|
|
872
|
+
backgroundColor: "core.surface.active";
|
|
873
|
+
outlineWidth: string;
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
};
|
|
877
|
+
accent: {
|
|
878
|
+
boxShadow: "0px 1px 3px 0px var(--shadow-color)";
|
|
879
|
+
shadowColor: "surface.disabled";
|
|
880
|
+
background: "alert.success.surface";
|
|
881
|
+
_hover: {
|
|
882
|
+
background: "alert.success.surface.hover";
|
|
883
|
+
boxShadow: "0px 2px 6px 0px var(--shadow-color)";
|
|
884
|
+
_active: {
|
|
885
|
+
background: "alert.success.surface.active";
|
|
886
|
+
boxShadow: "none";
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
}>;
|
|
612
892
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
893
|
+
/**
|
|
894
|
+
* `PressableCard` is a component that renders a pressable card.
|
|
895
|
+
*
|
|
896
|
+
* The `PressableCard` component can be used to create a card that responds to user interactions.
|
|
897
|
+
* It can be rendered as a button, link, label, or any other HTML element by specifying the `as` prop.
|
|
898
|
+
* If no `as` prop is provided, it defaults to a button.
|
|
899
|
+
*
|
|
900
|
+
* The `variant` prop can be used to control the style variant of the card. It defaults to "core".
|
|
901
|
+
*
|
|
902
|
+
* Example usage:
|
|
903
|
+
*
|
|
904
|
+
* ```tsx
|
|
905
|
+
* <PressableCard>
|
|
906
|
+
* Content
|
|
907
|
+
* </PressableCard>
|
|
908
|
+
* ```
|
|
909
|
+
*
|
|
910
|
+
* To render the card as a different HTML element, specify the `as` prop:
|
|
911
|
+
*
|
|
912
|
+
* ```tsx
|
|
913
|
+
* <PressableCard as="a">
|
|
914
|
+
* This is now a <a /> element
|
|
915
|
+
* </PressableCard>
|
|
916
|
+
* ```
|
|
917
|
+
*
|
|
918
|
+
* For a static card with other color palette, use the `StaticCard` component.
|
|
919
|
+
*
|
|
920
|
+
* @see StaticCard
|
|
921
|
+
*/
|
|
922
|
+
type PressableCardProps = RecipeVariantProps<typeof pressableCardRecipe> & ButtonProps$1;
|
|
923
|
+
declare const PressableCard: ({ ref, ...props }: PressableCardProps & {
|
|
924
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
925
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
926
|
+
|
|
927
|
+
declare const radioCardSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "itemContent" | "label" | "itemText" | "itemDescription", {
|
|
928
|
+
variant: {
|
|
929
|
+
core: {
|
|
930
|
+
item: {
|
|
931
|
+
outlineColor: "core.outline";
|
|
932
|
+
outlineWidth: string;
|
|
933
|
+
outlineStyle: "solid";
|
|
934
|
+
_hover: {
|
|
935
|
+
outlineColor: "core.outline.hover";
|
|
936
|
+
outlineWidth: string;
|
|
937
|
+
outlineStyle: "solid";
|
|
938
|
+
_active: {
|
|
939
|
+
backgroundColor: "core.surface.active";
|
|
940
|
+
outlineWidth: string;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
_checked: {
|
|
944
|
+
outlineColor: "outline.focus";
|
|
945
|
+
outlineWidth: string;
|
|
946
|
+
outlineStyle: "solid";
|
|
947
|
+
backgroundColor: "core.surface.active";
|
|
948
|
+
_focusVisible: {
|
|
949
|
+
outlineStyle: "double";
|
|
950
|
+
outlineWidth: `calc(3 * ${string})`;
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
floating: {
|
|
956
|
+
item: {
|
|
957
|
+
boxShadow: "0px 1px 3px 0px var(--shadow-color)";
|
|
958
|
+
shadowColor: "surface.disabled";
|
|
959
|
+
border: "sm";
|
|
960
|
+
borderColor: "floating.outline";
|
|
961
|
+
background: "floating.surface";
|
|
962
|
+
_hover: {
|
|
963
|
+
background: "floating.surface.hover";
|
|
964
|
+
borderColor: "floating.outline.hover";
|
|
965
|
+
boxShadow: "0px 2px 6px 0px var(--shadow-color)";
|
|
966
|
+
_active: {
|
|
967
|
+
background: "floating.surface.active";
|
|
968
|
+
borderColor: "floating.outline.active";
|
|
969
|
+
boxShadow: "none";
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
_checked: {
|
|
973
|
+
outlineColor: "outline.focus";
|
|
974
|
+
outlineWidth: string;
|
|
975
|
+
outlineStyle: "solid";
|
|
976
|
+
backgroundColor: "core.surface.active";
|
|
977
|
+
_focusVisible: {
|
|
978
|
+
outlineStyle: "double";
|
|
979
|
+
outlineWidth: `calc(3 * ${string})`;
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
};
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
}>;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Radio cards are used to present a set of options where only one option can be selected.
|
|
989
|
+
*
|
|
990
|
+
* @example
|
|
991
|
+
* ```tsx
|
|
992
|
+
* <RadioCardGroup defaultValue="economy">
|
|
993
|
+
* <RadioCardLabel>Choose your class</RadioCardLabel>
|
|
994
|
+
* <Stack direction="row">
|
|
995
|
+
* <RadioCard value="economy" label="Economy" />
|
|
996
|
+
* <RadioCard value="business" label="Business" />
|
|
997
|
+
* <RadioCard value="first-class" label="First Class" />
|
|
998
|
+
* </Stack>
|
|
999
|
+
* </RadioCardGroup>
|
|
1000
|
+
* ```
|
|
1001
|
+
*
|
|
1002
|
+
*
|
|
1003
|
+
* @see Docs https://spor.vy.no/components/radiocard
|
|
1004
|
+
*/
|
|
1005
|
+
type RadioCardVariantProps = RecipeVariantProps<typeof radioCardSlotRecipe>;
|
|
1006
|
+
type RadioCardItemProps = Exclude<RadioCard$1.ItemProps, "colorPalette" | "indicator" | "variant" | "size" | "addon"> & RadioCardVariantProps & {
|
|
616
1007
|
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
617
1008
|
ariaLabel?: string;
|
|
618
|
-
}
|
|
619
|
-
declare const
|
|
620
|
-
|
|
621
|
-
}
|
|
1009
|
+
};
|
|
1010
|
+
declare const RadioCard: ({ ref, ...props }: RadioCardItemProps & {
|
|
1011
|
+
ref?: React__default.RefObject<HTMLInputElement>;
|
|
1012
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1013
|
+
type RadioCardRootProps = RadioCardVariantProps & Exclude<RadioCard$1.RootProps, "variant"> & {
|
|
622
1014
|
children: React__default.ReactNode;
|
|
623
1015
|
gap?: string | number;
|
|
624
1016
|
direction?: "row" | "column";
|
|
625
1017
|
display?: string;
|
|
626
|
-
}
|
|
1018
|
+
};
|
|
1019
|
+
declare const RadioCardGroup: ({ ref, ...props }: RadioCardRootProps & {
|
|
1020
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
1021
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
627
1022
|
declare const RadioCardLabel: React__default.ForwardRefExoticComponent<RadioCard$1.LabelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
628
1023
|
|
|
629
|
-
declare const Separator:
|
|
1024
|
+
declare const Separator: ({ ref, ...props }: SeparatorProps & {
|
|
1025
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
1026
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
630
1027
|
|
|
631
1028
|
declare const staticCardRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
632
1029
|
colorPalette: {
|
|
@@ -695,9 +1092,9 @@ declare const staticCardRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
|
695
1092
|
* @see PressableCard
|
|
696
1093
|
*/
|
|
697
1094
|
type StaticCardProps = RecipeVariantProps<typeof staticCardRecipe> & BoxProps;
|
|
698
|
-
declare const StaticCard:
|
|
699
|
-
|
|
700
|
-
}
|
|
1095
|
+
declare const StaticCard: ({ ref, ...props }: StaticCardProps & {
|
|
1096
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
1097
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
701
1098
|
|
|
702
1099
|
/**
|
|
703
1100
|
* A calendar component that displays multiple months in a scrollable view.
|
|
@@ -716,7 +1113,9 @@ declare function useColorMode(): UseColorModeReturn;
|
|
|
716
1113
|
declare function useColorModeValue<T>(light: T, dark: T): T;
|
|
717
1114
|
declare function ColorModeIcon(): react_jsx_runtime.JSX.Element;
|
|
718
1115
|
type ColorModeButtonProps = Omit<IconButtonProps$1, "aria-label">;
|
|
719
|
-
declare const ColorModeButton:
|
|
1116
|
+
declare const ColorModeButton: ({ ref, ...props }: ColorModeButtonProps & {
|
|
1117
|
+
ref?: React$1.RefObject<HTMLButtonElement>;
|
|
1118
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
720
1119
|
|
|
721
1120
|
declare const fieldSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "label" | "requiredIndicator" | "helperText" | "errorText", _chakra_ui_react.SlotRecipeVariantRecord<"root" | "label" | "requiredIndicator" | "helperText" | "errorText">>;
|
|
722
1121
|
|
|
@@ -751,10 +1150,12 @@ type FieldProps = Omit<Field$1.RootProps, "label" | "onChange" | "onBlur"> & Rea
|
|
|
751
1150
|
*
|
|
752
1151
|
* This component is not exported and should be used as a wrapper for other input components.
|
|
753
1152
|
*/
|
|
754
|
-
declare const Field:
|
|
755
|
-
|
|
756
|
-
}
|
|
757
|
-
declare const FieldErrorText:
|
|
1153
|
+
declare const Field: ({ ref, ...props }: FieldProps & {
|
|
1154
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
1155
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1156
|
+
declare const FieldErrorText: ({ ref, ...props }: Field$1.ErrorTextProps & {
|
|
1157
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
1158
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
758
1159
|
declare const FieldLabel: React$1.ForwardRefExoticComponent<Field$1.LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
759
1160
|
|
|
760
1161
|
declare const datePickerSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"cell" | "arrow" | "wrapper" | "calendarTriggerButton" | "calendarPopover" | "calendar" | "weekdays" | "weekend" | "dateCell" | "inputLabel" | "dateTimeSegment" | "box" | "rangeCalendarPopover", {
|
|
@@ -845,20 +1246,7 @@ type CalendarVariants = {
|
|
|
845
1246
|
};
|
|
846
1247
|
|
|
847
1248
|
type DatePickerVariantProps = RecipeVariantProps<typeof datePickerSlotRecipe>;
|
|
848
|
-
|
|
849
|
-
* A date picker component.
|
|
850
|
-
*
|
|
851
|
-
* There are three different variants –`core`, `floating` and `ghost`.
|
|
852
|
-
*
|
|
853
|
-
* ```tsx
|
|
854
|
-
* <DatePicker label="Dato" variant="core" />
|
|
855
|
-
* ```
|
|
856
|
-
*/
|
|
857
|
-
declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<AriaDatePickerProps<DateValue>, "onChange"> & Pick<BoxProps, "minHeight" | "width"> & {
|
|
858
|
-
variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | "floating" | undefined>;
|
|
859
|
-
} & {
|
|
860
|
-
children?: React__default.ReactNode | undefined;
|
|
861
|
-
} & CalendarVariants & {
|
|
1249
|
+
type DatePickerProps = Omit<AriaDatePickerProps<DateValue>, "onChange"> & Pick<BoxProps, "minHeight" | "width"> & PropsWithChildren<DatePickerVariantProps> & CalendarVariants & {
|
|
862
1250
|
name?: string;
|
|
863
1251
|
showYearNavigation?: boolean;
|
|
864
1252
|
withPortal?: boolean;
|
|
@@ -870,7 +1258,19 @@ declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<AriaDate
|
|
|
870
1258
|
onClick?: () => void;
|
|
871
1259
|
} & FieldBaseProps & {
|
|
872
1260
|
css?: SystemStyleObject;
|
|
873
|
-
}
|
|
1261
|
+
};
|
|
1262
|
+
/**
|
|
1263
|
+
* A date picker component.
|
|
1264
|
+
*
|
|
1265
|
+
* There are three different variants –`core`, `floating` and `ghost`.
|
|
1266
|
+
*
|
|
1267
|
+
* ```tsx
|
|
1268
|
+
* <DatePicker label="Dato" variant="core" />
|
|
1269
|
+
* ```
|
|
1270
|
+
*/
|
|
1271
|
+
declare const DatePicker: ({ ref: externalRef, variant, errorText, minHeight, showYearNavigation, withPortal, width, invalid, helperText, positioning, css, ...props }: DatePickerProps & {
|
|
1272
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
1273
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
874
1274
|
|
|
875
1275
|
type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue>, "onChange" | "errorMessage" | "isInvalid" | "isRequired"> & Pick<BoxProps, "minHeight"> & PropsWithChildren<DatePickerVariantProps> & CalendarVariants & {
|
|
876
1276
|
startLabel?: string;
|
|
@@ -958,8 +1358,12 @@ interface DialogContentProps extends Dialog.ContentProps {
|
|
|
958
1358
|
backdrop?: boolean;
|
|
959
1359
|
children?: React$1.ReactNode;
|
|
960
1360
|
}
|
|
961
|
-
declare const DialogContent:
|
|
962
|
-
|
|
1361
|
+
declare const DialogContent: ({ ref, ...props }: DialogContentProps & {
|
|
1362
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
1363
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1364
|
+
declare const DialogCloseTrigger: ({ ref, ...props }: Dialog.CloseTriggerProps & {
|
|
1365
|
+
ref?: React$1.RefObject<HTMLButtonElement>;
|
|
1366
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
963
1367
|
declare const DialogRoot: React$1.FC<Dialog.RootProps>;
|
|
964
1368
|
declare const DialogFooter: React$1.ForwardRefExoticComponent<Dialog.FooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
965
1369
|
declare const DialogHeader: React$1.ForwardRefExoticComponent<Dialog.HeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1091,30 +1495,36 @@ declare const drawerSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"title" |
|
|
|
1091
1495
|
}>;
|
|
1092
1496
|
|
|
1093
1497
|
type DrawerVariantProps = RecipeVariantProps<typeof drawerSlotRecipe>;
|
|
1094
|
-
type
|
|
1095
|
-
children: React.ReactNode;
|
|
1096
|
-
};
|
|
1097
|
-
|
|
1098
|
-
declare const DrawerContent: React$1.ForwardRefExoticComponent<Drawer$1.ContentProps & {
|
|
1099
|
-
size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xl" | "xs" | "full" | undefined>;
|
|
1100
|
-
placement?: _chakra_ui_react.ConditionalValue<"bottom" | "top" | "end" | "start" | undefined>;
|
|
1101
|
-
} & {
|
|
1102
|
-
children?: React$1.ReactNode | undefined;
|
|
1103
|
-
} & {
|
|
1498
|
+
type DrawerContentProps = Drawer$1.ContentProps & PropsWithChildren<DrawerVariantProps> & {
|
|
1104
1499
|
children: React.ReactNode;
|
|
1105
1500
|
portalled?: boolean;
|
|
1106
1501
|
portalRef?: React.RefObject<HTMLElement>;
|
|
1107
1502
|
hideHandle?: boolean;
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
declare const DrawerBackTrigger: React$1.ForwardRefExoticComponent<Drawer$1.CloseTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1114
|
-
declare const DrawerFullScreenHeader: React$1.ForwardRefExoticComponent<Omit<Drawer$1.HeaderProps, "title"> & {
|
|
1503
|
+
};
|
|
1504
|
+
type DrawerProps = Omit<Drawer$1.RootProps, "colorPalette" | "contained" | "unstyled"> & Drawer$1.RootProps & PropsWithChildren<DrawerVariantProps> & {
|
|
1505
|
+
children: React.ReactNode;
|
|
1506
|
+
};
|
|
1507
|
+
type DrawerFullScreenHeaderProps = Omit<Drawer$1.HeaderProps, "title"> & {
|
|
1115
1508
|
backTrigger?: boolean;
|
|
1116
1509
|
closeTrigger?: boolean;
|
|
1117
|
-
}
|
|
1510
|
+
};
|
|
1511
|
+
type DrawerCloseTriggerProps = Drawer$1.CloseTriggerProps & {
|
|
1512
|
+
showText?: boolean;
|
|
1513
|
+
};
|
|
1514
|
+
|
|
1515
|
+
declare const DrawerContent: ({ ref, ...props }: DrawerContentProps & {
|
|
1516
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
1517
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1518
|
+
declare const CloseDrawerLine: ({ ref, ...props }: React.ComponentProps<typeof Box>) => react_jsx_runtime.JSX.Element;
|
|
1519
|
+
declare const DrawerCloseTrigger: ({ ref, ...props }: DrawerCloseTriggerProps & {
|
|
1520
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
1521
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1522
|
+
declare const DrawerBackTrigger: ({ ref, ...props }: Drawer$1.CloseTriggerProps & {
|
|
1523
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
1524
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1525
|
+
declare const DrawerFullScreenHeader: ({ ref, ...props }: DrawerFullScreenHeaderProps & {
|
|
1526
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
1527
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1118
1528
|
declare const Drawer: (props: DrawerProps) => react_jsx_runtime.JSX.Element;
|
|
1119
1529
|
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<Drawer$1.TriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1120
1530
|
declare const DrawerFooter: React$1.ForwardRefExoticComponent<Drawer$1.FooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1275,9 +1685,11 @@ type AttachedInputsProps = RecipeVariantProps<typeof attachedInputsRecipe> & Gro
|
|
|
1275
1685
|
onFlip: () => void;
|
|
1276
1686
|
flipAriaLabel: string;
|
|
1277
1687
|
});
|
|
1278
|
-
declare const AttachedInputs:
|
|
1688
|
+
declare const AttachedInputs: ({ ref, ...props }: AttachedInputsProps & {
|
|
1689
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
1690
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1279
1691
|
|
|
1280
|
-
|
|
1692
|
+
type Props = {
|
|
1281
1693
|
variant?: "core" | "floating";
|
|
1282
1694
|
label: React__default.ReactNode;
|
|
1283
1695
|
leftIcon?: React__default.ReactNode;
|
|
@@ -1285,17 +1697,17 @@ declare const Autocomplete: React__default.ForwardRefExoticComponent<{
|
|
|
1285
1697
|
loading?: boolean;
|
|
1286
1698
|
emptyLabel?: React__default.ReactNode;
|
|
1287
1699
|
openOnFocus?: boolean;
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1700
|
+
ref?: React__default.RefObject<HTMLInputElement | null>;
|
|
1701
|
+
} & Omit<ComboboxRootProps, "collection"> & FieldProps;
|
|
1702
|
+
declare function Autocomplete({ variant, children, css, label, leftIcon, onInputValueChange, invalid, helperText, errorText, required, filteredExternally, loading, disabled, emptyLabel, onFocus, openOnClick, openOnFocus, ref, ...rest }: Props): react_jsx_runtime.JSX.Element;
|
|
1291
1703
|
declare const AutocompleteItemGroup: React__default.ForwardRefExoticComponent<Combobox$1.ItemGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1292
1704
|
declare const AutocompleteItemGroupLabel: React__default.ForwardRefExoticComponent<_chakra_ui_react.ComboboxItemGroupLabelProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1293
|
-
declare const AutocompleteItem:
|
|
1705
|
+
declare const AutocompleteItem: ({ children, ...props }: ComboboxItemProps) => react_jsx_runtime.JSX.Element;
|
|
1294
1706
|
|
|
1295
1707
|
declare const CardSelect: ({ size, ...props }: PopoverRootProps) => react_jsx_runtime.JSX.Element;
|
|
1296
|
-
declare const CardSelectContent:
|
|
1297
|
-
|
|
1298
|
-
}
|
|
1708
|
+
declare const CardSelectContent: ({ ref, children, ...props }: StaticCardProps & {
|
|
1709
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
1710
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1299
1711
|
type CardSelectTriggerProps = {
|
|
1300
1712
|
/** The design of the trigger button.
|
|
1301
1713
|
*
|
|
@@ -1309,20 +1721,17 @@ type CardSelectTriggerProps = {
|
|
|
1309
1721
|
/** Whether or not to show the chevron. Defaults to true */
|
|
1310
1722
|
withChevron?: boolean;
|
|
1311
1723
|
} & Omit<ButtonProps, "variant" | "rightIcon" | "leftIcon">;
|
|
1312
|
-
declare const CardSelectTrigger:
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
* - `floating` is a button with a drop shadow (like a card) and text
|
|
1318
|
-
*/
|
|
1319
|
-
variant?: "core" | "ghost" | "floating";
|
|
1320
|
-
/** An optional trigger button icon, rendered to the left of the label */
|
|
1321
|
-
icon?: ReactNode;
|
|
1322
|
-
/** Whether or not to show the chevron. Defaults to true */
|
|
1323
|
-
withChevron?: boolean;
|
|
1324
|
-
} & Omit<ButtonProps, "variant" | "leftIcon" | "rightIcon"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1724
|
+
declare const CardSelectTrigger: ({ ref, icon, variant, withChevron, size, children, ...props }: CardSelectTriggerProps & {
|
|
1725
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
1726
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1727
|
+
|
|
1728
|
+
declare const checkboxSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "indicator" | "content" | "description" | "label" | "control" | "addon", _chakra_ui_react.SlotRecipeVariantRecord<"root" | "indicator" | "content" | "description" | "label" | "control" | "addon">>;
|
|
1325
1729
|
|
|
1730
|
+
type CheckboxVariantProps = RecipeVariantProps<typeof checkboxSlotRecipe>;
|
|
1731
|
+
type CheckboxProps = Omit<Checkbox$1.RootProps, "onChange"> & PropsWithChildren<CheckboxVariantProps> & {
|
|
1732
|
+
inputProps?: React$1.InputHTMLAttributes<HTMLInputElement>;
|
|
1733
|
+
rootRef?: React$1.Ref<HTMLLabelElement>;
|
|
1734
|
+
};
|
|
1326
1735
|
/**
|
|
1327
1736
|
* Creates a checkbox.
|
|
1328
1737
|
*
|
|
@@ -1336,12 +1745,9 @@ declare const CardSelectTrigger: React$1.ForwardRefExoticComponent<{
|
|
|
1336
1745
|
*
|
|
1337
1746
|
* You can group several of these together with a `CheckboxGroup`.
|
|
1338
1747
|
*/
|
|
1339
|
-
declare const Checkbox:
|
|
1340
|
-
|
|
1341
|
-
}
|
|
1342
|
-
inputProps?: React$1.InputHTMLAttributes<HTMLInputElement>;
|
|
1343
|
-
rootRef?: React$1.Ref<HTMLLabelElement>;
|
|
1344
|
-
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
1748
|
+
declare const Checkbox: ({ ref, ...props }: CheckboxProps & {
|
|
1749
|
+
ref?: React$1.RefObject<HTMLInputElement>;
|
|
1750
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1345
1751
|
|
|
1346
1752
|
type CheckboxGroupProps = React__default.ComponentProps<typeof CheckboxGroup$1> & {
|
|
1347
1753
|
direction?: "row" | "column";
|
|
@@ -1367,10 +1773,7 @@ type CheckboxGroupProps = React__default.ComponentProps<typeof CheckboxGroup$1>
|
|
|
1367
1773
|
* </CheckboxGroup>
|
|
1368
1774
|
* ```
|
|
1369
1775
|
*/
|
|
1370
|
-
declare const CheckboxGroup:
|
|
1371
|
-
(props: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
1372
|
-
displayName: string;
|
|
1373
|
-
};
|
|
1776
|
+
declare const CheckboxGroup: (props: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1374
1777
|
|
|
1375
1778
|
type CheckBoxIcon = {
|
|
1376
1779
|
default: React__default.ReactNode;
|
|
@@ -1412,11 +1815,9 @@ type ChoiceChipProps = Omit<CheckboxCardRootProps, "onCheckedChange" | "checked"
|
|
|
1412
1815
|
* </Stack>
|
|
1413
1816
|
* ```
|
|
1414
1817
|
*/
|
|
1415
|
-
declare const ChoiceChip:
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
checked?: boolean;
|
|
1419
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
1818
|
+
declare const ChoiceChip: ({ ref, children, icon, onCheckedChange, ...rootProps }: ChoiceChipProps & {
|
|
1819
|
+
ref?: React__default.RefObject<HTMLInputElement>;
|
|
1820
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1420
1821
|
|
|
1421
1822
|
type ComboboxProps<T> = Exclude<InputProps, "variant" | "colorPalette" | "size"> & AriaComboBoxProps<T> & {
|
|
1422
1823
|
/** The label of the combobox */
|
|
@@ -1456,10 +1857,7 @@ type ComboboxProps<T> = Exclude<InputProps, "variant" | "colorPalette" | "size">
|
|
|
1456
1857
|
* </Combobox>
|
|
1457
1858
|
* ```
|
|
1458
1859
|
*/
|
|
1459
|
-
declare const Combobox:
|
|
1460
|
-
(props: ComboboxProps<object>): react_jsx_runtime.JSX.Element;
|
|
1461
|
-
displayName: string;
|
|
1462
|
-
};
|
|
1860
|
+
declare const Combobox: (props: ComboboxProps<object>) => react_jsx_runtime.JSX.Element;
|
|
1463
1861
|
|
|
1464
1862
|
declare const Fieldset: React$1.ForwardRefExoticComponent<Fieldset$1.RootProps & React$1.RefAttributes<HTMLFieldSetElement>>;
|
|
1465
1863
|
declare const FieldsetLegend: React$1.ForwardRefExoticComponent<Fieldset$1.LegendProps & React$1.RefAttributes<HTMLLegendElement>>;
|
|
@@ -1507,7 +1905,9 @@ type InputProps = FieldProps & Exclude<ChakraInputProps, "size" | "label" | "col
|
|
|
1507
1905
|
*
|
|
1508
1906
|
* @see https://spor.vy.no/components/input
|
|
1509
1907
|
*/
|
|
1510
|
-
declare const Input:
|
|
1908
|
+
declare const Input: ({ ref, startElement, endElement, label, invalid, helperText, errorText, required, hidden, fontSize, labelAsChild, ...props }: InputProps & {
|
|
1909
|
+
ref?: React__default.RefObject<HTMLInputElement | null>;
|
|
1910
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1511
1911
|
|
|
1512
1912
|
declare const listBoxSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "description" | "label", {
|
|
1513
1913
|
variant: {
|
|
@@ -1575,10 +1975,7 @@ type ListBoxProps<T> = AriaListBoxProps<T> & Omit<BoxProps, "filter" | "autoFocu
|
|
|
1575
1975
|
* );
|
|
1576
1976
|
* ```
|
|
1577
1977
|
*/
|
|
1578
|
-
declare const ListBox:
|
|
1579
|
-
(props: ListBoxProps<object>): react_jsx_runtime.JSX.Element;
|
|
1580
|
-
displayName: string;
|
|
1581
|
-
};
|
|
1978
|
+
declare const ListBox: (props: ListBoxProps<object>) => react_jsx_runtime.JSX.Element;
|
|
1582
1979
|
/**
|
|
1583
1980
|
* Renders a label for a listbox item.
|
|
1584
1981
|
*
|
|
@@ -1617,47 +2014,48 @@ declare const useMenuContext: () => Variant$2;
|
|
|
1617
2014
|
*
|
|
1618
2015
|
*/
|
|
1619
2016
|
declare const Menu: ({ children, ...props }: MenuRootProps) => react_jsx_runtime.JSX.Element;
|
|
1620
|
-
declare const MenuContent:
|
|
2017
|
+
declare const MenuContent: ({ children, ref, ...props }: MenuContentProps & {
|
|
2018
|
+
ref?: Ref<HTMLDivElement>;
|
|
2019
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1621
2020
|
type MenuTriggerProps = {
|
|
1622
|
-
/** An optional trigger button icon, rendered to the left of the label */
|
|
1623
2021
|
icon?: ReactNode;
|
|
1624
|
-
} & Omit<ButtonProps, "variant" | "rightIcon" | "leftIcon"
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
} & Omit<ButtonProps, "variant" | "leftIcon" | "rightIcon"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2022
|
+
} & Omit<ButtonProps, "variant" | "rightIcon" | "leftIcon"> & {
|
|
2023
|
+
ref?: Ref<HTMLButtonElement>;
|
|
2024
|
+
};
|
|
2025
|
+
declare const MenuTrigger: ({ icon, size, children, ref, ...props }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
1629
2026
|
type MenuItemProps = {
|
|
1630
|
-
/** Display a command in the menu */
|
|
1631
2027
|
itemCommand?: string;
|
|
1632
2028
|
leftIcon?: React.ReactNode;
|
|
1633
2029
|
rightIcon?: React.ReactNode;
|
|
1634
|
-
} & MenuItemProps$1
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
leftIcon?: React.ReactNode;
|
|
1639
|
-
rightIcon?: React.ReactNode;
|
|
1640
|
-
} & Menu$1.ItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2030
|
+
} & MenuItemProps$1 & {
|
|
2031
|
+
ref?: Ref<HTMLDivElement>;
|
|
2032
|
+
};
|
|
2033
|
+
declare const MenuItem: ({ itemCommand, children, value, leftIcon, rightIcon, ref, ...props }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
1641
2034
|
type MenuTriggerItemProps = {
|
|
1642
2035
|
leftIcon?: React.ReactNode;
|
|
1643
2036
|
rightIcon?: React.ReactNode;
|
|
1644
|
-
} & MenuTriggerItemProps$1
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
|
-
|
|
2037
|
+
} & MenuTriggerItemProps$1 & {
|
|
2038
|
+
ref?: Ref<HTMLDivElement>;
|
|
2039
|
+
};
|
|
2040
|
+
declare const MenuTriggerItem: ({ children, leftIcon, rightIcon, ref, ...props }: MenuTriggerItemProps) => react_jsx_runtime.JSX.Element;
|
|
2041
|
+
declare const MenuRadioItemGroup: ({ children, ref, ...props }: MenuRadioItemGroupProps & {
|
|
2042
|
+
ref?: Ref<HTMLDivElement>;
|
|
2043
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2044
|
+
declare const MenuRadioItem: ({ children, ref, ...props }: MenuRadioItemProps & {
|
|
2045
|
+
ref?: Ref<HTMLDivElement>;
|
|
2046
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1651
2047
|
type MenuItemGroupProps = {
|
|
1652
|
-
/** Display group label */
|
|
1653
|
-
label?: string;
|
|
1654
|
-
} & MenuItemGroupProps$1;
|
|
1655
|
-
declare const MenuItemGroup: React$1.ForwardRefExoticComponent<{
|
|
1656
|
-
/** Display group label */
|
|
1657
2048
|
label?: string;
|
|
1658
|
-
} &
|
|
1659
|
-
|
|
1660
|
-
|
|
2049
|
+
} & MenuItemGroupProps$1 & {
|
|
2050
|
+
ref?: Ref<HTMLDivElement>;
|
|
2051
|
+
};
|
|
2052
|
+
declare const MenuItemGroup: ({ children, label, ref, ...props }: MenuItemGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2053
|
+
declare const MenuCheckboxItem: ({ children, closeOnSelect, ref, ...props }: MenuCheckboxItemProps & {
|
|
2054
|
+
ref?: Ref<HTMLDivElement>;
|
|
2055
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2056
|
+
declare const MenuSeparator: ({ ref, ...props }: MenuSeparatorProps & {
|
|
2057
|
+
ref?: Ref<HTMLHRElement>;
|
|
2058
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1661
2059
|
|
|
1662
2060
|
declare const nativeSelectSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" | "root" | "field", {
|
|
1663
2061
|
variant: {
|
|
@@ -1725,13 +2123,9 @@ type NativeSelectdProps = React$1.PropsWithChildren<NativeSelectVariantProps> &
|
|
|
1725
2123
|
* </NativeSelect>
|
|
1726
2124
|
*
|
|
1727
2125
|
*/
|
|
1728
|
-
declare const NativeSelect:
|
|
1729
|
-
|
|
1730
|
-
}
|
|
1731
|
-
children?: React$1.ReactNode | undefined;
|
|
1732
|
-
} & FieldBaseProps & NativeSelect$1.FieldProps & {
|
|
1733
|
-
icon?: React$1.ReactNode;
|
|
1734
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
2126
|
+
declare const NativeSelect: ({ ref, ...props }: NativeSelectdProps & {
|
|
2127
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
2128
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1735
2129
|
|
|
1736
2130
|
declare const numericStepperRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "container" | "input" | "text" | "button", {
|
|
1737
2131
|
withStepLabel: {
|
|
@@ -1794,34 +2188,9 @@ type NumericStepperProps = FieldBaseProps & NumericStepperVariants & {
|
|
|
1794
2188
|
* ```
|
|
1795
2189
|
* @see https://spor.vy.no/components/numeric-stepper
|
|
1796
2190
|
*/
|
|
1797
|
-
declare const NumericStepper:
|
|
1798
|
-
|
|
1799
|
-
}
|
|
1800
|
-
children?: React__default.ReactNode;
|
|
1801
|
-
/** The name of the input field */
|
|
1802
|
-
name?: string;
|
|
1803
|
-
/** The current value */
|
|
1804
|
-
value?: number;
|
|
1805
|
-
/** A default value, if uncontrolled */
|
|
1806
|
-
defaultValue?: number;
|
|
1807
|
-
/** Callback for when the value changes */
|
|
1808
|
-
onValueChange?: (value: number) => void;
|
|
1809
|
-
/** Optional minimum value. Defaults to 0 */
|
|
1810
|
-
minValue?: number;
|
|
1811
|
-
/** Optional maximum value. Defaults to 99 */
|
|
1812
|
-
maxValue?: number;
|
|
1813
|
-
/** Whether the stepper is disabled or not */
|
|
1814
|
-
disabled?: boolean;
|
|
1815
|
-
/** Whether to show input field or not */
|
|
1816
|
-
withInput?: boolean;
|
|
1817
|
-
/** The amount to increase/decrease when pressing +/- */
|
|
1818
|
-
stepSize?: number;
|
|
1819
|
-
/** Name added to the aria-label of subtract and add buttons. */
|
|
1820
|
-
ariaLabelContext?: {
|
|
1821
|
-
singular: string;
|
|
1822
|
-
plural: string;
|
|
1823
|
-
};
|
|
1824
|
-
} & Omit<BoxProps, "onChange"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2191
|
+
declare const NumericStepper: ({ ref, ...props }: NumericStepperProps & {
|
|
2192
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
2193
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1825
2194
|
|
|
1826
2195
|
interface PasswordVisibilityProps {
|
|
1827
2196
|
/** Default visibility state */
|
|
@@ -1855,7 +2224,9 @@ interface PasswordInputProps extends InputProps, PasswordVisibilityProps {
|
|
|
1855
2224
|
*
|
|
1856
2225
|
* @see https://spor.vy.no/components/password-input
|
|
1857
2226
|
*/
|
|
1858
|
-
declare const PasswordInput:
|
|
2227
|
+
declare const PasswordInput: ({ ref, ...props }: PasswordInputProps & {
|
|
2228
|
+
ref?: React__default.RefObject<HTMLInputElement>;
|
|
2229
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1859
2230
|
|
|
1860
2231
|
type CountryCodeAndPhoneNumber = {
|
|
1861
2232
|
countryCode: string;
|
|
@@ -1891,7 +2262,9 @@ type PhoneNumberInputProps = Omit<InputProps, "value"> & {
|
|
|
1891
2262
|
* />
|
|
1892
2263
|
* ```
|
|
1893
2264
|
*/
|
|
1894
|
-
declare const PhoneNumberInput:
|
|
2265
|
+
declare const PhoneNumberInput: ({ ref, ...props }: PhoneNumberInputProps & {
|
|
2266
|
+
ref?: React.RefObject<HTMLInputElement>;
|
|
2267
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1895
2268
|
|
|
1896
2269
|
declare const radioGroupSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "label" | "itemText" | "itemControl", {
|
|
1897
2270
|
orientation: {
|
|
@@ -1922,15 +2295,13 @@ type RadioProps = PropsWithChildren<RadioVariants> & RadioGroup$1.ItemProps & {
|
|
|
1922
2295
|
* <Radio value="first-class">First Class</Radio>
|
|
1923
2296
|
* </RadioGroup>
|
|
1924
2297
|
*/
|
|
1925
|
-
declare const Radio:
|
|
1926
|
-
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
1933
|
-
declare const RadioGroup: React__default.ForwardRefExoticComponent<Omit<RadioGroup$1.RootProps, "colorPalette" | "size" | "variant"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2298
|
+
declare const Radio: ({ ref, ...props }: RadioProps & {
|
|
2299
|
+
ref?: React__default.RefObject<HTMLInputElement>;
|
|
2300
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2301
|
+
type RadioGroupProps = Omit<RadioGroup$1.RootProps, "colorPalette" | "variant" | "size"> & {};
|
|
2302
|
+
declare const RadioGroup: ({ ref, ...props }: RadioGroupProps & {
|
|
2303
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
2304
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1934
2305
|
|
|
1935
2306
|
type SearchInputProps = InputProps & {
|
|
1936
2307
|
/** Callback for when the clear button is clicked */
|
|
@@ -1940,7 +2311,9 @@ type SearchInputProps = InputProps & {
|
|
|
1940
2311
|
*
|
|
1941
2312
|
* Includes a search icon, a localized label and a reset button.
|
|
1942
2313
|
*/
|
|
1943
|
-
declare const SearchInput:
|
|
2314
|
+
declare const SearchInput: ({ ref, ...props }: SearchInputProps & {
|
|
2315
|
+
ref?: React.RefObject<HTMLInputElement>;
|
|
2316
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1944
2317
|
|
|
1945
2318
|
type SelectProps = SelectRootProps & FieldProps & {
|
|
1946
2319
|
label?: string;
|
|
@@ -1973,34 +2346,47 @@ type SelectProps = SelectRootProps & FieldProps & {
|
|
|
1973
2346
|
* @see https://spor.vy.no/components/select
|
|
1974
2347
|
*
|
|
1975
2348
|
*/
|
|
1976
|
-
declare const Select:
|
|
1977
|
-
|
|
1978
|
-
}
|
|
1979
|
-
label?: string;
|
|
1980
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
2349
|
+
declare const Select: ({ ref, ...props }: SelectProps & {
|
|
2350
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
2351
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1981
2352
|
declare const SelectLabel: (props: SelectLabelProps) => react_jsx_runtime.JSX.Element;
|
|
1982
|
-
|
|
2353
|
+
type SelectItemProps = Select$1.ItemProps & {
|
|
1983
2354
|
children: React$1.ReactNode;
|
|
1984
2355
|
description?: React$1.ReactNode;
|
|
1985
|
-
}
|
|
1986
|
-
declare const
|
|
2356
|
+
};
|
|
2357
|
+
declare const SelectItem: ({ ref, ...props }: SelectItemProps & {
|
|
2358
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
2359
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2360
|
+
type SelectItemGroupProps = Select$1.ItemGroupProps & {
|
|
1987
2361
|
label: React$1.ReactNode;
|
|
1988
2362
|
children: React$1.ReactNode;
|
|
1989
|
-
}
|
|
1990
|
-
declare const
|
|
2363
|
+
};
|
|
2364
|
+
declare const SelectItemGroup: ({ ref, ...props }: SelectItemGroupProps & {
|
|
2365
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
2366
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2367
|
+
type SelectTriggerProps = Select$1.ControlProps & {
|
|
1991
2368
|
clearable?: boolean;
|
|
1992
2369
|
children?: React$1.ReactNode;
|
|
1993
|
-
}
|
|
1994
|
-
declare const
|
|
2370
|
+
};
|
|
2371
|
+
declare const SelectTrigger: ({ ref, ...props }: SelectTriggerProps & {
|
|
2372
|
+
ref?: React$1.RefObject<HTMLButtonElement>;
|
|
2373
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2374
|
+
type SelectContentProps = Select$1.ContentProps & {
|
|
1995
2375
|
portalled?: boolean;
|
|
1996
2376
|
portalRef?: React$1.RefObject<HTMLElement>;
|
|
1997
2377
|
baseStyle?: SystemStyleObject;
|
|
1998
|
-
}
|
|
1999
|
-
declare const
|
|
2378
|
+
};
|
|
2379
|
+
declare const SelectContent: ({ ref, ...props }: SelectContentProps & {
|
|
2380
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
2381
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2382
|
+
type SelectValueTextProps = Omit<Select$1.ValueTextProps, "children"> & {
|
|
2000
2383
|
children?(items: CollectionItem[]): React$1.ReactNode;
|
|
2001
2384
|
placeholder?: string;
|
|
2002
2385
|
withPlaceholder?: boolean;
|
|
2003
|
-
}
|
|
2386
|
+
};
|
|
2387
|
+
declare const SelectValueText: ({ ref, ...props }: SelectValueTextProps & {
|
|
2388
|
+
ref?: React$1.RefObject<HTMLSpanElement>;
|
|
2389
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2004
2390
|
declare const SelectItemText: React$1.ForwardRefExoticComponent<Select$1.ItemTextProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2005
2391
|
declare const SelectRoot: Select$1.RootComponent;
|
|
2006
2392
|
|
|
@@ -2069,25 +2455,9 @@ type SwitchProps = Exclude<Switch$1.RootProps, "size" | "colorPalette"> & FieldB
|
|
|
2069
2455
|
*
|
|
2070
2456
|
* ```
|
|
2071
2457
|
*/
|
|
2072
|
-
declare const Switch:
|
|
2073
|
-
|
|
2074
|
-
}
|
|
2075
|
-
children?: React__default.ReactNode | undefined;
|
|
2076
|
-
} & {
|
|
2077
|
-
inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
2078
|
-
rootRef?: React__default.Ref<HTMLLabelElement>;
|
|
2079
|
-
trackLabel?: {
|
|
2080
|
-
on: React__default.ReactNode;
|
|
2081
|
-
off: React__default.ReactNode;
|
|
2082
|
-
};
|
|
2083
|
-
thumbLabel?: {
|
|
2084
|
-
on: React__default.ReactNode;
|
|
2085
|
-
off: React__default.ReactNode;
|
|
2086
|
-
};
|
|
2087
|
-
size?: ConditionalValue<"sm" | "md" | "lg">;
|
|
2088
|
-
label?: React__default.ReactNode;
|
|
2089
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
2090
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
2458
|
+
declare const Switch: ({ ref, ...props }: SwitchProps & {
|
|
2459
|
+
ref?: React__default.RefObject<HTMLInputElement>;
|
|
2460
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2091
2461
|
|
|
2092
2462
|
declare const textareaRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
2093
2463
|
variant: {
|
|
@@ -2135,13 +2505,9 @@ type TextareaVariants = RecipeVariantProps<typeof textareaRecipe>;
|
|
|
2135
2505
|
type TextareaProps = Exclude<TextareaProps$1, "size" | "colorPalette"> & FieldProps & PropsWithChildren<TextareaVariants> & {
|
|
2136
2506
|
label: ReactNode;
|
|
2137
2507
|
};
|
|
2138
|
-
declare const Textarea:
|
|
2139
|
-
|
|
2140
|
-
}
|
|
2141
|
-
variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
|
|
2142
|
-
} & {
|
|
2143
|
-
label: ReactNode;
|
|
2144
|
-
} & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
2508
|
+
declare const Textarea: ({ ref, ...props }: TextareaProps & {
|
|
2509
|
+
ref?: React__default.RefObject<HTMLTextAreaElement>;
|
|
2510
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2145
2511
|
|
|
2146
2512
|
declare const infoTagSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" | "title" | "description" | "iconContainer" | "container" | "textContainer" | "walk", {
|
|
2147
2513
|
variant: {
|
|
@@ -2393,7 +2759,9 @@ type LineIconProps = Exclude<BoxProps, "variant"> & VariantProps & PropsWithChil
|
|
|
2393
2759
|
*
|
|
2394
2760
|
* @see https://spor.vy.no/components/line-tags
|
|
2395
2761
|
*/
|
|
2396
|
-
declare const LineIcon:
|
|
2762
|
+
declare const LineIcon: ({ ref, variant, size, foregroundColor, disabled, style, target, label, ...rest }: LineIconProps & {
|
|
2763
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
2764
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2397
2765
|
|
|
2398
2766
|
declare const travelTagSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" | "title" | "description" | "iconContainer" | "container" | "textContainer" | "deviationIcon", {
|
|
2399
2767
|
deviationLevel: {
|
|
@@ -2543,7 +2911,9 @@ type TravelTagProps = TagProps & BoxProps & PropsWithChildren<TravelTagVariantPr
|
|
|
2543
2911
|
*/
|
|
2544
2912
|
customIconVariant?: string;
|
|
2545
2913
|
};
|
|
2546
|
-
declare const TravelTag:
|
|
2914
|
+
declare const TravelTag: ({ ref, variant, size, deviationLevel, title, description, disabled, foregroundColor, backgroundColor, customIconVariant, ...rest }: TravelTagProps & {
|
|
2915
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
2916
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2547
2917
|
|
|
2548
2918
|
type LinkProps = LinkProps$1 & {
|
|
2549
2919
|
/** Defaults to primary */
|
|
@@ -2551,12 +2921,9 @@ type LinkProps = LinkProps$1 & {
|
|
|
2551
2921
|
/** Define if the link shows an icon on the right that indicate it is an external link */
|
|
2552
2922
|
external?: boolean;
|
|
2553
2923
|
};
|
|
2554
|
-
declare const TextLink:
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
/** Define if the link shows an icon on the right that indicate it is an external link */
|
|
2558
|
-
external?: boolean;
|
|
2559
|
-
} & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
2924
|
+
declare const TextLink: ({ ref, children, external, href, ...props }: LinkProps & {
|
|
2925
|
+
ref?: React__default.RefObject<HTMLAnchorElement>;
|
|
2926
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2560
2927
|
|
|
2561
2928
|
/**
|
|
2562
2929
|
* Use this component to display a list of items.
|
|
@@ -2726,36 +3093,9 @@ type ProgressBarProps = BoxProps & UseProgressProps & PropsWithChildren<Progress
|
|
|
2726
3093
|
* <ProgressBar value={50} aria-label="Loading..." />
|
|
2727
3094
|
* ```
|
|
2728
3095
|
*/
|
|
2729
|
-
declare const ProgressBar:
|
|
2730
|
-
|
|
2731
|
-
}
|
|
2732
|
-
children?: React__default.ReactNode;
|
|
2733
|
-
/** The height of the progress bar.
|
|
2734
|
-
* Defaults to .5rem
|
|
2735
|
-
**/
|
|
2736
|
-
height?: BoxProps["height"];
|
|
2737
|
-
/** The width of the progress bar.
|
|
2738
|
-
*
|
|
2739
|
-
* Defaults to the width of its container
|
|
2740
|
-
**/
|
|
2741
|
-
width?: BoxProps["width"];
|
|
2742
|
-
/** Pass if no label is passed to the label */
|
|
2743
|
-
"aria-label"?: string;
|
|
2744
|
-
/** Optional text shown below the loader.
|
|
2745
|
-
*
|
|
2746
|
-
* If you pass an array of strings, the text will rotate every 5 seconds. If you want to change the delay, pass the delay in milliseconds to the `labelRotationDelay` prop.
|
|
2747
|
-
*/
|
|
2748
|
-
label?: string | string[];
|
|
2749
|
-
/** The number of milliseconds a label is shown, if an array of strings is passed to the `label` prop.
|
|
2750
|
-
*
|
|
2751
|
-
* Defaults to 5000 (5 seconds).
|
|
2752
|
-
*/
|
|
2753
|
-
labelRotationDelay?: number;
|
|
2754
|
-
/** Pass to disable the color of the component */
|
|
2755
|
-
isActive?: boolean;
|
|
2756
|
-
/** Pass to show the value text */
|
|
2757
|
-
showValueText?: boolean;
|
|
2758
|
-
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
3096
|
+
declare const ProgressBar: ({ ref, value, label, labelRotationDelay, isActive, showValueText, height, css, ...rest }: ProgressBarProps & {
|
|
3097
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
3098
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2759
3099
|
|
|
2760
3100
|
declare const progressLoaderRecipe: _chakra_ui_react.RecipeDefinition<_chakra_ui_react.RecipeVariantRecord>;
|
|
2761
3101
|
|
|
@@ -2811,30 +3151,9 @@ type ProgressLoaderProps = BoxProps & {
|
|
|
2811
3151
|
* <ProgressLoader value={50} aria-label="Fetching your trips..." />
|
|
2812
3152
|
* ```
|
|
2813
3153
|
*/
|
|
2814
|
-
declare const ProgressLoader:
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
*
|
|
2818
|
-
* The value must be between 0 and 100 */
|
|
2819
|
-
value: number;
|
|
2820
|
-
/** The width of the progress bar.
|
|
2821
|
-
*
|
|
2822
|
-
* Defaults to the width of its container
|
|
2823
|
-
**/
|
|
2824
|
-
width?: BoxProps["width"];
|
|
2825
|
-
/** Pass if no label is passed to the label */
|
|
2826
|
-
"aria-label": string;
|
|
2827
|
-
/** Optional text shown below the loader.
|
|
2828
|
-
*
|
|
2829
|
-
* If you pass an array of strings, the text will rotate every 5 seconds. If you want to change the delay, pass the delay in milliseconds to the `labelRotationDelay` prop.
|
|
2830
|
-
*/
|
|
2831
|
-
label: string | string[];
|
|
2832
|
-
/** The number of milliseconds a label is shown, if an array of strings is passed to the `label` prop.
|
|
2833
|
-
*
|
|
2834
|
-
* Defaults to 5000 (5 seconds).
|
|
2835
|
-
*/
|
|
2836
|
-
labelRotationDelay?: number;
|
|
2837
|
-
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
3154
|
+
declare const ProgressLoader: ({ ref, value, label, labelRotationDelay, "aria-label": ariaLabel, width, ...rest }: ProgressLoaderProps & {
|
|
3155
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
3156
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2838
3157
|
|
|
2839
3158
|
declare const skeletonRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
2840
3159
|
loading: {
|
|
@@ -2891,28 +3210,19 @@ type SkeletonVariantProps = RecipeVariantProps<typeof skeletonRecipe>;
|
|
|
2891
3210
|
type SkeletonCircleProps = SkeletonProps$1 & SkeletonVariantProps & {
|
|
2892
3211
|
size?: CircleProps["size"];
|
|
2893
3212
|
};
|
|
2894
|
-
declare const SkeletonCircle:
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
} & {
|
|
2898
|
-
size?: CircleProps["size"];
|
|
2899
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
3213
|
+
declare const SkeletonCircle: ({ ref, ...props }: SkeletonCircleProps & {
|
|
3214
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
3215
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2900
3216
|
type SkeletonTextProps = SkeletonProps$1 & SkeletonVariantProps & {
|
|
2901
3217
|
noOfLines?: number;
|
|
2902
3218
|
};
|
|
2903
|
-
declare const SkeletonText:
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
} & {
|
|
2907
|
-
noOfLines?: number;
|
|
2908
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
3219
|
+
declare const SkeletonText: (props: SkeletonTextProps & {
|
|
3220
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
3221
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2909
3222
|
type SkeletonProps = SkeletonProps$1 & SkeletonVariantProps;
|
|
2910
|
-
declare const Skeleton:
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
} & {
|
|
2914
|
-
noOfLines?: number;
|
|
2915
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
3223
|
+
declare const Skeleton: (props: SkeletonProps & {
|
|
3224
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
3225
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2916
3226
|
|
|
2917
3227
|
type CargonetLogoProps = {
|
|
2918
3228
|
/** The color of the logo
|
|
@@ -2922,7 +3232,9 @@ type CargonetLogoProps = {
|
|
|
2922
3232
|
*/
|
|
2923
3233
|
colorPalette: "light" | "dark";
|
|
2924
3234
|
};
|
|
2925
|
-
declare const CargonetLogo:
|
|
3235
|
+
declare const CargonetLogo: ({ ref, ...props }: CargonetLogoProps & {
|
|
3236
|
+
ref?: React.RefObject<SVGSVGElement>;
|
|
3237
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2926
3238
|
|
|
2927
3239
|
declare const SvgBox: _chakra_ui_react.ChakraComponent<"svg", {}>;
|
|
2928
3240
|
type VyLogoBaseProps = ComponentProps<typeof SvgBox>;
|
|
@@ -2930,11 +3242,14 @@ type VyLogoProps = VyLogoBaseProps & {
|
|
|
2930
3242
|
/** mono = black in light mode, white in dark mode */
|
|
2931
3243
|
variant?: "default" | "mono";
|
|
2932
3244
|
};
|
|
2933
|
-
declare const VyLogo:
|
|
3245
|
+
declare const VyLogo: ({ ref, variant, ...props }: VyLogoProps & {
|
|
3246
|
+
ref?: React.RefObject<SVGSVGElement>;
|
|
3247
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2934
3248
|
|
|
2935
|
-
declare const VyLogoPride: React$1.ForwardRefExoticComponent<Omit<Omit<_chakra_ui_react.PatchHtmlProps<Omit<React$1.SVGProps<SVGSVGElement>, "ref">>, "content" | "container" | "background" | "page" | "_hover" | "_active" | "_focus" | "_focusWithin" | "_focusVisible" | "_disabled" | "_visited" | "_target" | "_readOnly" | "_readWrite" | "_empty" | "_checked" | "_enabled" | "_expanded" | "_highlighted" | "_complete" | "_incomplete" | "_dragging" | "_before" | "_after" | "_firstLetter" | "_firstLine" | "_marker" | "_selection" | "_file" | "_backdrop" | "_first" | "_last" | "_notFirst" | "_notLast" | "_only" | "_even" | "_odd" | "_peerFocus" | "_peerHover" | "_peerActive" | "_peerFocusWithin" | "_peerFocusVisible" | "_peerDisabled" | "_peerChecked" | "_peerInvalid" | "_peerExpanded" | "_peerPlaceholderShown" | "_groupFocus" | "_groupHover" | "_groupActive" | "_groupFocusWithin" | "_groupFocusVisible" | "_groupDisabled" | "_groupChecked" | "_groupExpanded" | "_groupInvalid" | "_indeterminate" | "_required" | "_valid" | "_invalid" | "_autofill" | "_inRange" | "_outOfRange" | "_placeholder" | "_placeholderShown" | "_pressed" | "_selected" | "_grabbed" | "_underValue" | "_overValue" | "_atValue" | "_default" | "_optional" | "_open" | "_closed" | "_fullscreen" | "_loading" | "_hidden" | "_current" | "_currentPage" | "_currentStep" | "_today" | "_unavailable" | "_rangeStart" | "_rangeEnd" | "_now" | "_topmost" | "_motionReduce" | "_motionSafe" | "_print" | "_landscape" | "_portrait" | "_dark" | "_light" | "_osDark" | "_osLight" | "_highContrast" | "_lessContrast" | "_moreContrast" | "_ltr" | "_rtl" | "_scrollbar" | "_scrollbarThumb" | "_scrollbarTrack" | "_horizontal" | "_vertical" | "_icon" | "_starting" | "_off" | "_on" | "sm" | "smOnly" | "smDown" | "md" | "mdOnly" | "mdDown" | "lg" | "lgOnly" | "lgDown" | "xl" | "xlOnly" | "xlDown" | "smToMd" | "smToLg" | "smToXl" | "mdToLg" | "mdToXl" | "lgToXl" | "base" | "borderRadius" | "accentColor" | "alignContent" | "alignItems" | "alignSelf" | "alignTracks" | "alignmentBaseline" | "anchorName" | "anchorScope" | "animationComposition" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationRangeEnd" | "animationRangeStart" | "animationTimeline" | "animationTimingFunction" | "appearance" | "aspectRatio" | "backdropFilter" | "backfaceVisibility" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPositionX" | "backgroundPositionY" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "blockSize" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderEndEndRadius" | "borderEndStartRadius" | "borderImageOutset" | "borderImageRepeat" | "borderImageSlice" | "borderImageSource" | "borderImageWidth" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStartEndRadius" | "borderStartStartRadius" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "boxDecorationBreak" | "boxShadow" | "boxSizing" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "caretColor" | "caretShape" | "clear" | "clipPath" | "clipRule" | "color" | "colorInterpolationFilters" | "colorScheme" | "columnCount" | "columnFill" | "columnGap" | "columnRuleColor" | "columnRuleStyle" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "contain" | "containIntrinsicBlockSize" | "containIntrinsicHeight" | "containIntrinsicInlineSize" | "containIntrinsicWidth" | "containerName" | "containerType" | "contentVisibility" | "counterIncrement" | "counterReset" | "counterSet" | "cursor" | "cx" | "cy" | "d" | "direction" | "display" | "dominantBaseline" | "emptyCells" | "fieldSizing" | "fill" | "fillOpacity" | "fillRule" | "filter" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "floodColor" | "floodOpacity" | "fontFamily" | "fontFeatureSettings" | "fontKerning" | "fontLanguageOverride" | "fontOpticalSizing" | "fontPalette" | "fontSize" | "fontSizeAdjust" | "fontSmooth" | "fontStyle" | "fontSynthesis" | "fontSynthesisPosition" | "fontSynthesisSmallCaps" | "fontSynthesisStyle" | "fontSynthesisWeight" | "fontVariant" | "fontVariantAlternates" | "fontVariantCaps" | "fontVariantEastAsian" | "fontVariantEmoji" | "fontVariantLigatures" | "fontVariantNumeric" | "fontVariantPosition" | "fontVariationSettings" | "fontWeight" | "forcedColorAdjust" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumnEnd" | "gridColumnStart" | "gridRowEnd" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "hangingPunctuation" | "height" | "hyphenateCharacter" | "hyphenateLimitChars" | "hyphens" | "imageOrientation" | "imageRendering" | "imageResolution" | "initialLetter" | "initialLetterAlign" | "inlineSize" | "insetBlockEnd" | "insetBlockStart" | "insetInlineEnd" | "insetInlineStart" | "interpolateSize" | "isolation" | "justifyContent" | "justifyItems" | "justifySelf" | "justifyTracks" | "left" | "letterSpacing" | "lightingColor" | "lineBreak" | "lineHeight" | "lineHeightStep" | "listStyleImage" | "listStylePosition" | "listStyleType" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "marginTrim" | "marker" | "markerEnd" | "markerMid" | "markerStart" | "maskBorderMode" | "maskBorderOutset" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "masonryAutoFlow" | "mathDepth" | "mathShift" | "mathStyle" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxLines" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "offsetAnchor" | "offsetDistance" | "offsetPath" | "offsetPosition" | "offsetRotate" | "opacity" | "order" | "orphans" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflowAnchor" | "overflowBlock" | "overflowClipBox" | "overflowClipMargin" | "overflowInline" | "overflowWrap" | "overflowX" | "overflowY" | "overlay" | "overscrollBehaviorBlock" | "overscrollBehaviorInline" | "overscrollBehaviorX" | "overscrollBehaviorY" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "paintOrder" | "perspective" | "perspectiveOrigin" | "pointerEvents" | "position" | "positionAnchor" | "positionArea" | "positionTryFallbacks" | "positionTryOrder" | "positionVisibility" | "printColorAdjust" | "quotes" | "r" | "resize" | "right" | "rotate" | "rowGap" | "rubyAlign" | "rubyMerge" | "rubyPosition" | "rx" | "ry" | "scale" | "scrollBehavior" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginBottom" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollPaddingBlockEnd" | "scrollPaddingBlockStart" | "scrollPaddingBottom" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollSnapAlign" | "scrollSnapMarginBottom" | "scrollSnapMarginLeft" | "scrollSnapMarginRight" | "scrollSnapMarginTop" | "scrollSnapStop" | "scrollSnapType" | "scrollTimelineAxis" | "scrollTimelineName" | "scrollbarColor" | "scrollbarGutter" | "scrollbarWidth" | "shapeImageThreshold" | "shapeMargin" | "shapeOutside" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAlign" | "textAlignLast" | "textAnchor" | "textBox" | "textBoxEdge" | "textBoxTrim" | "textCombineUpright" | "textDecorationColor" | "textDecorationLine" | "textDecorationSkip" | "textDecorationSkipInk" | "textDecorationStyle" | "textDecorationThickness" | "textEmphasisColor" | "textEmphasisPosition" | "textEmphasisStyle" | "textIndent" | "textJustify" | "textOrientation" | "textOverflow" | "textRendering" | "textShadow" | "textSizeAdjust" | "textSpacingTrim" | "textTransform" | "textUnderlineOffset" | "textUnderlinePosition" | "textWrapMode" | "textWrapStyle" | "timelineScope" | "top" | "touchAction" | "transform" | "transformBox" | "transformOrigin" | "transformStyle" | "transitionBehavior" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "translate" | "unicodeBidi" | "userSelect" | "vectorEffect" | "verticalAlign" | "viewTimelineAxis" | "viewTimelineInset" | "viewTimelineName" | "viewTransitionName" | "visibility" | "whiteSpace" | "whiteSpaceCollapse" | "widows" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "writingMode" | "x" | "y" | "zIndex" | "zoom" | "all" | "animation" | "animationRange" | "backgroundPosition" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEnd" | "borderBlockStart" | "borderBlockStyle" | "borderBlockWidth" | "borderBottom" | "borderColor" | "borderImage" | "borderInline" | "borderInlineColor" | "borderInlineEnd" | "borderInlineStart" | "borderInlineStyle" | "borderInlineWidth" | "borderLeft" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "caret" | "columnRule" | "columns" | "containIntrinsicSize" | "flex" | "flexFlow" | "font" | "gap" | "grid" | "gridArea" | "gridColumn" | "gridRow" | "gridTemplate" | "inset" | "insetBlock" | "insetInline" | "lineClamp" | "listStyle" | "margin" | "marginBlock" | "marginInline" | "mask" | "maskBorder" | "offset" | "outline" | "overflow" | "overscrollBehavior" | "padding" | "paddingBlock" | "paddingInline" | "placeContent" | "placeItems" | "placeSelf" | "positionTry" | "scrollMargin" | "scrollMarginBlock" | "scrollMarginInline" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingInline" | "scrollSnapMargin" | "scrollTimeline" | "textDecoration" | "textEmphasis" | "textWrap" | "transition" | "viewTimeline" | "WebkitAppearance" | "WebkitBorderBeforeColor" | "WebkitBorderBeforeStyle" | "WebkitBorderBeforeWidth" | "WebkitBoxReflect" | "WebkitLineClamp" | "WebkitMaskAttachment" | "WebkitMaskClip" | "WebkitMaskComposite" | "WebkitMaskImage" | "WebkitMaskOrigin" | "WebkitMaskPosition" | "WebkitMaskPositionX" | "WebkitMaskPositionY" | "WebkitMaskRepeat" | "WebkitMaskRepeatX" | "WebkitMaskRepeatY" | "WebkitMaskSize" | "WebkitOverflowScrolling" | "WebkitTapHighlightColor" | "WebkitTextFillColor" | "WebkitTextStrokeColor" | "WebkitTextStrokeWidth" | "WebkitTouchCallout" | "WebkitUserModify" | "WebkitUserSelect" | "WebkitBorderBefore" | "WebkitMask" | "WebkitTextStroke" | "boxAlign" | "boxDirection" | "boxFlex" | "boxFlexGroup" | "boxLines" | "boxOrdinalGroup" | "boxOrient" | "boxPack" | "clip" | "fontStretch" | "gridColumnGap" | "gridGap" | "gridRowGap" | "imeMode" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "scrollSnapCoordinate" | "scrollSnapDestination" | "scrollSnapPointsX" | "scrollSnapPointsY" | "scrollSnapTypeX" | "scrollSnapTypeY" | "colorInterpolation" | "colorRendering" | "glyphOrientationVertical" | "bg" | "colorPalette" | "borderBottomRadius" | "paddingY" | "shadow" | "paddingX" | "css" | "bgColor" | "bgSize" | "bgPos" | "bgRepeat" | "bgAttachment" | "bgClip" | "bgGradient" | "bgImg" | "bgImage" | "borderStart" | "borderEnd" | "borderX" | "borderY" | "borderStartColor" | "borderEndColor" | "borderStartStyle" | "borderEndStyle" | "rounded" | "roundedTopLeft" | "roundedStartStart" | "borderTopStartRadius" | "roundedEndStart" | "borderBottomStartRadius" | "roundedTopRight" | "roundedStartEnd" | "borderTopEndRadius" | "roundedEndEnd" | "borderBottomEndRadius" | "roundedBottomLeft" | "roundedBottomRight" | "roundedStart" | "borderStartRadius" | "roundedEnd" | "borderEndRadius" | "roundedTop" | "roundedBottom" | "roundedLeft" | "roundedRight" | "borderXWidth" | "borderStartWidth" | "borderEndWidth" | "borderYWidth" | "shadowColor" | "blendMode" | "bgBlendMode" | "gapY" | "gapX" | "flexDir" | "w" | "h" | "minW" | "minH" | "maxW" | "maxH" | "overscroll" | "overscrollX" | "overscrollY" | "scrollPaddingX" | "scrollPaddingY" | "listStylePos" | "listStyleImg" | "pos" | "insetX" | "insetY" | "insetStart" | "insetEnd" | "m" | "mt" | "mr" | "mb" | "ml" | "ms" | "marginStart" | "me" | "marginEnd" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "ps" | "paddingStart" | "pe" | "paddingEnd" | "px" | "py" | "textDecor" | "backgroundGradient" | "gradientFrom" | "gradientTo" | "gradientVia" | "borderInlineStartRadius" | "borderInlineEndRadius" | "borderTopRadius" | "borderLeftRadius" | "borderRightRadius" | "divideX" | "divideY" | "divideColor" | "divideStyle" | "boxShadowColor" | "blur" | "brightness" | "contrast" | "grayscale" | "hueRotate" | "invert" | "saturate" | "sepia" | "dropShadow" | "backdropBlur" | "backdropBrightness" | "backdropContrast" | "backdropGrayscale" | "backdropHueRotate" | "backdropInvert" | "backdropOpacity" | "backdropSaturate" | "backdropSepia" | "focusRing" | "focusVisibleRing" | "focusRingColor" | "focusRingOffset" | "focusRingWidth" | "focusRingStyle" | "boxSize" | "hideFrom" | "hideBelow" | "scrollbar" | "scrollMarginX" | "scrollMarginY" | "scrollSnapStrictness" | "ring" | "ringColor" | "ringOffset" | "ringOffsetColor" | "ringInset" | "skewX" | "skewY" | "scaleX" | "scaleY" | "spaceXReverse" | "spaceX" | "spaceYReverse" | "spaceY" | "rotateX" | "rotateY" | "translateX" | "translateY" | "truncate" | "borderSpacingX" | "borderSpacingY" | "srOnly" | "debug" | "textStyle" | "animationStyle" | keyof _chakra_ui_react.PolymorphicProps> & Omit<_chakra_ui_react.JsxStyleProps, never> & _chakra_ui_react.PolymorphicProps & {
|
|
2936
|
-
|
|
2937
|
-
|
|
3249
|
+
type VyLogoPrideProps = ComponentProps<typeof SvgBox>;
|
|
3250
|
+
declare const VyLogoPride: ({ ref, ...props }: VyLogoPrideProps & {
|
|
3251
|
+
ref?: React.RefObject<SVGSVGElement>;
|
|
3252
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2938
3253
|
|
|
2939
3254
|
declare const mediaControllerSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" | "root", {
|
|
2940
3255
|
variant: {
|
|
@@ -2992,6 +3307,13 @@ declare const mediaControllerSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"
|
|
|
2992
3307
|
}>;
|
|
2993
3308
|
|
|
2994
3309
|
type MediaControllerVariantProps = RecipeVariantProps<typeof mediaControllerSlotRecipe>;
|
|
3310
|
+
type JumpButtonProps = BoxProps & PropsWithChildren<MediaControllerVariantProps> & {
|
|
3311
|
+
onClick: () => void;
|
|
3312
|
+
"aria-label"?: string;
|
|
3313
|
+
disabled?: boolean;
|
|
3314
|
+
direction: "backward" | "forward";
|
|
3315
|
+
size: "sm" | "lg";
|
|
3316
|
+
};
|
|
2995
3317
|
/**
|
|
2996
3318
|
* A jump button.
|
|
2997
3319
|
*
|
|
@@ -3003,19 +3325,17 @@ type MediaControllerVariantProps = RecipeVariantProps<typeof mediaControllerSlot
|
|
|
3003
3325
|
* <JumpButton direction="forward" onClick={onGoForward} />
|
|
3004
3326
|
* ```
|
|
3005
3327
|
*/
|
|
3006
|
-
declare const JumpButton:
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
} & {
|
|
3328
|
+
declare const JumpButton: ({ ref, ...props }: JumpButtonProps & {
|
|
3329
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
3330
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3331
|
+
|
|
3332
|
+
type PlayPauseButtonProps = BoxProps & PropsWithChildren<MediaControllerVariantProps> & {
|
|
3012
3333
|
onClick: () => void;
|
|
3013
3334
|
"aria-label"?: string;
|
|
3014
3335
|
disabled?: boolean;
|
|
3015
|
-
|
|
3336
|
+
playing: boolean;
|
|
3016
3337
|
size: "sm" | "lg";
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3338
|
+
};
|
|
3019
3339
|
/**
|
|
3020
3340
|
* A playback button.
|
|
3021
3341
|
*
|
|
@@ -3027,19 +3347,17 @@ declare const JumpButton: React$1.ForwardRefExoticComponent<BoxProps & {
|
|
|
3027
3347
|
* <PlayPauseButton playing={playing} onClick={onPlaybackClick} />
|
|
3028
3348
|
* ```
|
|
3029
3349
|
*/
|
|
3030
|
-
declare const PlayPauseButton:
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
} & {
|
|
3350
|
+
declare const PlayPauseButton: ({ ref, ...props }: PlayPauseButtonProps & {
|
|
3351
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
3352
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3353
|
+
|
|
3354
|
+
type SkipButtonProps = BoxProps & PropsWithChildren<MediaControllerVariantProps> & {
|
|
3036
3355
|
onClick: () => void;
|
|
3037
3356
|
"aria-label"?: string;
|
|
3038
3357
|
disabled?: boolean;
|
|
3039
|
-
|
|
3358
|
+
direction: "backward" | "forward";
|
|
3040
3359
|
size: "sm" | "lg";
|
|
3041
|
-
}
|
|
3042
|
-
|
|
3360
|
+
};
|
|
3043
3361
|
/**
|
|
3044
3362
|
* A skip button.
|
|
3045
3363
|
*
|
|
@@ -3051,51 +3369,61 @@ declare const PlayPauseButton: React$1.ForwardRefExoticComponent<BoxProps & {
|
|
|
3051
3369
|
* <SkipButton direction="forward" onClick={onNextChapter} />
|
|
3052
3370
|
* ```
|
|
3053
3371
|
*/
|
|
3054
|
-
declare const SkipButton:
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
} & {
|
|
3058
|
-
children?: React$1.ReactNode | undefined;
|
|
3059
|
-
} & {
|
|
3060
|
-
onClick: () => void;
|
|
3061
|
-
"aria-label"?: string;
|
|
3062
|
-
disabled?: boolean;
|
|
3063
|
-
direction: "backward" | "forward";
|
|
3064
|
-
size: "sm" | "lg";
|
|
3065
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3372
|
+
declare const SkipButton: ({ ref, ...props }: SkipButtonProps & {
|
|
3373
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
3374
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3066
3375
|
|
|
3067
3376
|
type NudgeProps = {
|
|
3068
3377
|
introducedDate: string;
|
|
3069
3378
|
} & PopoverRootProps;
|
|
3070
3379
|
declare const Nudge: (props: NudgeProps) => react_jsx_runtime.JSX.Element | null;
|
|
3071
|
-
declare const NudgeTrigger:
|
|
3072
|
-
|
|
3380
|
+
declare const NudgeTrigger: ({ ref, ...props }: Popover$1.TriggerProps & {
|
|
3381
|
+
ref?: React__default.RefObject<HTMLButtonElement>;
|
|
3382
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3383
|
+
declare const NudgeContent: ({ ref, showCloseButton, children, ...props }: PopoverProps & {
|
|
3384
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
3385
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3073
3386
|
declare const NudgeActions: ({ ...props }: BoxProps) => react_jsx_runtime.JSX.Element;
|
|
3074
|
-
declare const NudgeWizardStep: {
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
};
|
|
3078
|
-
|
|
3387
|
+
declare const NudgeWizardStep: ({ children }: PropsWithChildren) => react_jsx_runtime.JSX.Element;
|
|
3388
|
+
declare const NudgeCloseTrigger: ({ ref, children, ...props }: Popover$1.TriggerProps & {
|
|
3389
|
+
ref?: React__default.RefObject<HTMLButtonElement>;
|
|
3390
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3391
|
+
|
|
3392
|
+
declare const paginationSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"item" | "list", _chakra_ui_react.SlotRecipeVariantRecord<"item" | "list">>;
|
|
3079
3393
|
|
|
3394
|
+
type PaginationVariantProps = RecipeVariantProps<typeof paginationSlotRecipe>;
|
|
3080
3395
|
type ButtonVariantContext = {
|
|
3081
3396
|
getHref?: (page: number) => string;
|
|
3082
3397
|
};
|
|
3398
|
+
type PaginationRootProps = Omit<Pagination$1.RootProps, "type"> & React.PropsWithChildren<PaginationVariantProps> & ButtonVariantContext & {};
|
|
3083
3399
|
|
|
3084
|
-
declare const Pagination:
|
|
3085
|
-
|
|
3086
|
-
}
|
|
3087
|
-
declare const PaginationEllipsis:
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
declare const
|
|
3400
|
+
declare const Pagination: ({ ref, ...props }: PaginationRootProps & {
|
|
3401
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
3402
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3403
|
+
declare const PaginationEllipsis: ({ ref, ...props }: Pagination$1.EllipsisProps & {
|
|
3404
|
+
ref?: React$1.RefObject<HTMLDivElement>;
|
|
3405
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3406
|
+
declare const PaginationItem: ({ ref, ...props }: Pagination$1.ItemProps & {
|
|
3407
|
+
ref?: React$1.RefObject<HTMLButtonElement>;
|
|
3408
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3409
|
+
declare const PaginationPrevTrigger: ({ ref, ...props }: Pagination$1.PrevTriggerProps & {
|
|
3410
|
+
ref?: React$1.RefObject<HTMLButtonElement>;
|
|
3411
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
3412
|
+
declare const PaginationNextTrigger: ({ ref, ...props }: Pagination$1.NextTriggerProps & {
|
|
3413
|
+
ref?: React$1.RefObject<HTMLButtonElement>;
|
|
3414
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
3091
3415
|
declare const PaginationItems: (props: React$1.HTMLAttributes<HTMLElement> & {}) => react_jsx_runtime.JSX.Element;
|
|
3092
3416
|
|
|
3093
3417
|
declare const Popover: React__default.FC<Popover$1.RootProps>;
|
|
3094
|
-
declare const PopoverTrigger:
|
|
3418
|
+
declare const PopoverTrigger: ({ ref, children, ...props }: Popover$1.TriggerProps & {
|
|
3419
|
+
ref?: React__default.RefObject<HTMLButtonElement>;
|
|
3420
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3095
3421
|
type PopoverProps = Popover$1.ContentProps & React__default.RefAttributes<HTMLDivElement> & {
|
|
3096
3422
|
showCloseButton?: boolean;
|
|
3097
3423
|
};
|
|
3098
|
-
declare const PopoverContent:
|
|
3424
|
+
declare const PopoverContent: ({ ref, children, showCloseButton, ...props }: PopoverProps & {
|
|
3425
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
3426
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3099
3427
|
|
|
3100
3428
|
declare const progressIndicatorRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "container" | "circle" | "progressDot", _chakra_ui_react.SlotRecipeVariantRecord<"root" | "container" | "circle" | "progressDot">>;
|
|
3101
3429
|
|
|
@@ -3120,15 +3448,9 @@ type ProgressIndicatorProps = BoxProps & PropsWithChildren<ProgressIndicatorVari
|
|
|
3120
3448
|
* />
|
|
3121
3449
|
* ```
|
|
3122
3450
|
*/
|
|
3123
|
-
declare const ProgressIndicator:
|
|
3124
|
-
|
|
3125
|
-
}
|
|
3126
|
-
children?: React__default.ReactNode;
|
|
3127
|
-
numberOfSteps: number;
|
|
3128
|
-
activeStep: number;
|
|
3129
|
-
colorPalette?: string;
|
|
3130
|
-
css?: SystemStyleObject;
|
|
3131
|
-
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
3451
|
+
declare const ProgressIndicator: ({ ref, numberOfSteps, activeStep, css, }: ProgressIndicatorProps & {
|
|
3452
|
+
ref?: React__default.RefObject<HTMLDivElement>;
|
|
3453
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3132
3454
|
|
|
3133
3455
|
type SporProviderProps = Omit<ChakraProviderProps, "value"> & {
|
|
3134
3456
|
/**
|
|
@@ -3222,25 +3544,7 @@ declare const stepperSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" |
|
|
|
3222
3544
|
}>;
|
|
3223
3545
|
|
|
3224
3546
|
type StepperVariantProps = RecipeVariantProps<typeof stepperSlotRecipe>;
|
|
3225
|
-
|
|
3226
|
-
* A stepper is used to show which step of a process a user is currently in.
|
|
3227
|
-
*
|
|
3228
|
-
* You specify the active step, which starts at 1 (not 0)
|
|
3229
|
-
*
|
|
3230
|
-
* ```tsx
|
|
3231
|
-
* <Stepper
|
|
3232
|
-
* title="Example"
|
|
3233
|
-
* onClick={handleStepClick}
|
|
3234
|
-
* activeStep={2}
|
|
3235
|
-
* steps={['Where', 'When', 'How']}
|
|
3236
|
-
* />
|
|
3237
|
-
* ```
|
|
3238
|
-
**/
|
|
3239
|
-
declare const Stepper: React$1.ForwardRefExoticComponent<{
|
|
3240
|
-
variant?: _chakra_ui_react.ConditionalValue<"core" | "accent" | undefined>;
|
|
3241
|
-
} & {
|
|
3242
|
-
children?: React$1.ReactNode | undefined;
|
|
3243
|
-
} & {
|
|
3547
|
+
type StepperProps = PropsWithChildren<StepperVariantProps> & {
|
|
3244
3548
|
/** Callback for when a step is clicked */
|
|
3245
3549
|
onClick: (clickedStep: number) => void;
|
|
3246
3550
|
/** Callback for when the back button is clicked (on smaller screens).
|
|
@@ -3267,7 +3571,24 @@ declare const Stepper: React$1.ForwardRefExoticComponent<{
|
|
|
3267
3571
|
/** Disables all clicks */
|
|
3268
3572
|
disabled?: boolean;
|
|
3269
3573
|
css?: SystemStyleObject;
|
|
3270
|
-
}
|
|
3574
|
+
};
|
|
3575
|
+
/**
|
|
3576
|
+
* A stepper is used to show which step of a process a user is currently in.
|
|
3577
|
+
*
|
|
3578
|
+
* You specify the active step, which starts at 1 (not 0)
|
|
3579
|
+
*
|
|
3580
|
+
* ```tsx
|
|
3581
|
+
* <Stepper
|
|
3582
|
+
* title="Example"
|
|
3583
|
+
* onClick={handleStepClick}
|
|
3584
|
+
* activeStep={2}
|
|
3585
|
+
* steps={['Where', 'When', 'How']}
|
|
3586
|
+
* />
|
|
3587
|
+
* ```
|
|
3588
|
+
**/
|
|
3589
|
+
declare const Stepper: ({ ref, ...props }: StepperProps & {
|
|
3590
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
3591
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3271
3592
|
|
|
3272
3593
|
type StepperStepProps = PropsWithChildren<StepperVariantProps> & {
|
|
3273
3594
|
children: React__default.ReactNode;
|
|
@@ -3463,23 +3784,9 @@ type TabsProps = Exclude<TabsRootProps, "colorPalette" | "orientation"> & PropsW
|
|
|
3463
3784
|
/** Defaults to `start` */
|
|
3464
3785
|
justify?: "start" | "center" | "end";
|
|
3465
3786
|
};
|
|
3466
|
-
declare const Tabs:
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
variant?: _chakra_ui_react.ConditionalValue<"core" | "accent" | undefined>;
|
|
3470
|
-
size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xs" | undefined>;
|
|
3471
|
-
} & {
|
|
3472
|
-
children?: React$1.ReactNode | undefined;
|
|
3473
|
-
} & {
|
|
3474
|
-
/** Defaults to `core` */
|
|
3475
|
-
variant?: "core" | "accent";
|
|
3476
|
-
/** Defaults to `sm` */
|
|
3477
|
-
size?: "xs" | "sm" | "md" | "lg";
|
|
3478
|
-
/** If Tabs should take up the full width or not. Defaults to `false` */
|
|
3479
|
-
fitted?: boolean;
|
|
3480
|
-
/** Defaults to `start` */
|
|
3481
|
-
justify?: "start" | "center" | "end";
|
|
3482
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
3787
|
+
declare const Tabs: ({ ref, ...props }: TabsProps & {
|
|
3788
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
3789
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3483
3790
|
declare const TabsList: React$1.ForwardRefExoticComponent<Tabs$1.ListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3484
3791
|
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Tabs$1.TriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3485
3792
|
declare const TabsIndicator: React$1.ForwardRefExoticComponent<Tabs$1.IndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -3669,38 +3976,17 @@ type TableProps = Exclude<TableRootProps, "variant" | "colorPalette"> & PropsWit
|
|
|
3669
3976
|
variant?: "ghost" | "core";
|
|
3670
3977
|
colorPalette?: "grey" | "green" | "white";
|
|
3671
3978
|
sortable?: boolean;
|
|
3979
|
+
ref?: React.Ref<HTMLTableElement>;
|
|
3672
3980
|
};
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
* <Thead>
|
|
3683
|
-
* ...
|
|
3684
|
-
* </Thead>
|
|
3685
|
-
* ...
|
|
3686
|
-
* </Table>
|
|
3687
|
-
* ```
|
|
3688
|
-
*/
|
|
3689
|
-
declare const Table: React$1.ForwardRefExoticComponent<Table$1.RootProps & {
|
|
3690
|
-
colorPalette?: _chakra_ui_react.ConditionalValue<"white" | "green" | "grey" | undefined>;
|
|
3691
|
-
variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | undefined>;
|
|
3692
|
-
size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | undefined>;
|
|
3693
|
-
} & {
|
|
3694
|
-
children?: React$1.ReactNode | undefined;
|
|
3695
|
-
} & {
|
|
3696
|
-
variant?: "ghost" | "core";
|
|
3697
|
-
colorPalette?: "grey" | "green" | "white";
|
|
3698
|
-
sortable?: boolean;
|
|
3699
|
-
} & React$1.RefAttributes<HTMLTableElement>>;
|
|
3700
|
-
type TableColumnHeaderProps = TableColumnHeaderProps$1;
|
|
3701
|
-
declare const TableColumnHeader: React$1.ForwardRefExoticComponent<Table$1.ColumnHeaderProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
3702
|
-
type TableBodyProps = TableBodyProps$1;
|
|
3703
|
-
declare const TableBody: React$1.ForwardRefExoticComponent<Table$1.BodyProps & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
3981
|
+
declare const Table: ({ variant, size, colorPalette, children, sortable, ref, ...rest }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
3982
|
+
type TableColumnHeaderProps = TableColumnHeaderProps$1 & {
|
|
3983
|
+
ref?: React.Ref<HTMLTableCellElement>;
|
|
3984
|
+
};
|
|
3985
|
+
declare const TableColumnHeader: ({ children, ref, ...rest }: TableColumnHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
3986
|
+
type TableBodyProps = TableBodyProps$1 & {
|
|
3987
|
+
ref?: React.Ref<HTMLTableSectionElement>;
|
|
3988
|
+
};
|
|
3989
|
+
declare const TableBody: ({ children, ref, ...rest }: TableBodyProps) => react_jsx_runtime.JSX.Element;
|
|
3704
3990
|
|
|
3705
3991
|
declare const themes: {
|
|
3706
3992
|
VyDigital: _chakra_ui_react.SystemContext;
|
|
@@ -3728,20 +4014,29 @@ type ToastProps = {
|
|
|
3728
4014
|
declare const createToast: ({ text, variant, id, duration, }: ToastProps) => string;
|
|
3729
4015
|
|
|
3730
4016
|
declare const Tooltip: React$1.FC<Tooltip$1.RootProps>;
|
|
3731
|
-
declare const TooltipTrigger:
|
|
4017
|
+
declare const TooltipTrigger: ({ ref, children, ...props }: Tooltip$1.TriggerProps & {
|
|
4018
|
+
ref?: React.RefObject<HTMLButtonElement>;
|
|
4019
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3732
4020
|
type TooltipProps = Tooltip$1.ContentProps;
|
|
3733
|
-
declare const TooltipContent:
|
|
4021
|
+
declare const TooltipContent: ({ ref, children, ...props }: TooltipProps & {
|
|
4022
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
4023
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3734
4024
|
|
|
3735
4025
|
type BadgeProps = BadgeProps$1 & {
|
|
3736
4026
|
icon?: IconComponent;
|
|
3737
4027
|
};
|
|
3738
|
-
declare const Badge:
|
|
3739
|
-
|
|
3740
|
-
}
|
|
4028
|
+
declare const Badge: ({ ref, icon, children, ...props }: BadgeProps & {
|
|
4029
|
+
ref?: React.RefObject<HTMLSpanElement>;
|
|
4030
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
4031
|
+
|
|
4032
|
+
declare const codeRecipie: _chakra_ui_react.RecipeDefinition<{
|
|
4033
|
+
colorPalette: {};
|
|
4034
|
+
}>;
|
|
3741
4035
|
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
4036
|
+
type CodeVariantProps = RecipeVariantProps<typeof codeRecipie> & CodeProps;
|
|
4037
|
+
declare const Code: ({ ref, ...props }: CodeVariantProps & {
|
|
4038
|
+
ref?: React__default.RefObject<HTMLElement>;
|
|
4039
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3745
4040
|
|
|
3746
4041
|
type HeadingProps = Omit<HeadingProps$1, "textStyle" | "as"> & {
|
|
3747
4042
|
/** The heading level, e.g. h1, h2, h3... **/
|
|
@@ -3774,14 +4069,9 @@ type HeadingProps = Omit<HeadingProps$1, "textStyle" | "as"> & {
|
|
|
3774
4069
|
* <Heading as="h1" autoId>Page heading</Heading> // Will set id="page-heading"
|
|
3775
4070
|
* ```
|
|
3776
4071
|
*/
|
|
3777
|
-
declare const Heading:
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
/** The size and style of the heading. Defaults to xl-display */
|
|
3781
|
-
variant?: ConditionalValue<"sm" | "md" | "lg" | "xxl" | "xl-display" | "xl-sans" | "xs">;
|
|
3782
|
-
/** If true, generate an ID based on the children */
|
|
3783
|
-
autoId?: boolean;
|
|
3784
|
-
} & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
4072
|
+
declare const Heading: ({ ref, ...props }: HeadingProps & {
|
|
4073
|
+
ref?: React.RefObject<HTMLHeadingElement>;
|
|
4074
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3785
4075
|
|
|
3786
4076
|
type TextProps = Omit<TextProps$1, "textStyle"> & {
|
|
3787
4077
|
/** The size and style of the text.
|
|
@@ -3797,13 +4087,9 @@ type TextProps = Omit<TextProps$1, "textStyle"> & {
|
|
|
3797
4087
|
* <Text>Welcome to this paragraph of text.</Text>
|
|
3798
4088
|
* ```
|
|
3799
4089
|
*/
|
|
3800
|
-
declare const Text:
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
* Defaults to "sm"
|
|
3804
|
-
* textStyle values are: "sm" | "md" | "lg" | "2xl" | "xl-display" | "xl-sans" | "xs" */
|
|
3805
|
-
variant?: TextProps$1["textStyle"];
|
|
3806
|
-
} & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
4090
|
+
declare const Text: ({ ref, ...props }: TextProps & {
|
|
4091
|
+
ref?: React.RefObject<HTMLParagraphElement>;
|
|
4092
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
3807
4093
|
|
|
3808
4094
|
/**
|
|
3809
4095
|
* Makes a slug-version of any string.
|