@vygruppen/spor-react 12.1.1 → 12.2.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 +11 -11
- package/.turbo/turbo-typegen.log +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +151 -190
- package/dist/index.d.ts +151 -190
- package/dist/index.js +2327 -1915
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2214 -1811
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/accordion/Accordion.tsx +2 -1
- package/src/accordion/Expandable.tsx +3 -1
- package/src/accordion/helpers.ts +2 -1
- package/src/alert/Alert.tsx +3 -1
- package/src/alert/AlertIcon.tsx +17 -10
- package/src/alert/ExpandableAlert.tsx +3 -2
- package/src/alert/ServiceAlert.tsx +2 -1
- package/src/breadcrumb/Breadcrumb.tsx +9 -8
- package/src/button/Button.tsx +65 -52
- package/src/button/ButtonGroup.tsx +2 -1
- package/src/button/Clipboard.tsx +3 -0
- package/src/button/CloseButton.tsx +8 -4
- package/src/button/FloatingActionButton.tsx +5 -5
- package/src/button/IconButton.tsx +1 -0
- package/src/color-mode/color-mode.tsx +2 -2
- package/src/datepicker/Calendar.tsx +0 -1
- package/src/datepicker/CalendarCell.tsx +5 -5
- package/src/datepicker/CalendarGrid.tsx +3 -2
- package/src/datepicker/CalendarHeader.tsx +1 -4
- package/src/datepicker/CalendarTriggerButton.tsx +3 -4
- package/src/datepicker/DateField.tsx +13 -6
- package/src/datepicker/DatePicker.tsx +2 -1
- package/src/datepicker/DateRangePicker.tsx +1 -1
- package/src/datepicker/DateTimeSegment.tsx +2 -1
- package/src/datepicker/RangeCalendar.tsx +1 -1
- package/src/datepicker/StyledField.tsx +1 -1
- package/src/datepicker/TimeField.tsx +3 -3
- package/src/datepicker/TimePicker.tsx +4 -2
- package/src/datepicker/utils.ts +10 -5
- package/src/dialog/Dialog.tsx +1 -0
- package/src/dialog/Drawer.tsx +28 -26
- package/src/i18n/index.tsx +1 -0
- package/src/input/AttachedInputs.tsx +6 -3
- package/src/input/CardSelect.tsx +3 -1
- package/src/input/Checkbox.tsx +1 -0
- package/src/input/CheckboxGroup.tsx +3 -1
- package/src/input/ChoiceChip.tsx +1 -1
- package/src/input/Combobox.tsx +6 -4
- package/src/input/CountryCodeSelect.tsx +10 -4
- package/src/input/Field.tsx +2 -0
- package/src/input/Input.tsx +2 -3
- package/src/input/InputGroup.tsx +1 -1
- package/src/input/ListBox.tsx +9 -8
- package/src/input/NativeSelect.tsx +1 -2
- package/src/input/NumericStepper.tsx +22 -23
- package/src/input/PasswordInput.tsx +2 -1
- package/src/input/PhoneNumberInput.tsx +6 -2
- package/src/input/Popover.tsx +2 -0
- package/src/input/Radio.tsx +2 -0
- package/src/input/SearchInput.tsx +2 -1
- package/src/input/Select.tsx +8 -2
- package/src/input/Switch.tsx +22 -34
- package/src/input/Textarea.tsx +6 -4
- package/src/input/index.ts +1 -1
- package/src/layout/PressableCard.tsx +5 -2
- package/src/layout/RadioCard.tsx +3 -1
- package/src/layout/Separator.tsx +2 -1
- package/src/layout/StaticCard.tsx +6 -3
- package/src/linjetag/InfoTag.tsx +3 -2
- package/src/linjetag/LineIcon.tsx +5 -4
- package/src/linjetag/TravelTag.tsx +12 -8
- package/src/link/TextLink.tsx +44 -9
- package/src/loader/ColorInlineLoader.tsx +0 -1
- package/src/loader/ColorSpinner.tsx +0 -1
- package/src/loader/ContentLoader.tsx +0 -1
- package/src/loader/DarkFullScreenLoader.tsx +0 -1
- package/src/loader/DarkInlineLoader.tsx +0 -1
- package/src/loader/DarkSpinner.tsx +0 -1
- package/src/loader/LightFullScreenLoader.tsx +0 -1
- package/src/loader/LightInlineLoader.tsx +0 -1
- package/src/loader/LightSpinner.tsx +0 -1
- package/src/loader/Lottie.tsx +1 -2
- package/src/loader/ProgressBar.tsx +1 -2
- package/src/loader/ProgressLoader.tsx +2 -7
- package/src/logo/CargonetLogo.tsx +2 -1
- package/src/logo/VyLogo.tsx +3 -4
- package/src/logo/VyLogoPride.tsx +4 -1
- package/src/media-controller/JumpButton.tsx +2 -1
- package/src/media-controller/PlayPauseButton.tsx +2 -1
- package/src/media-controller/SkipButton.tsx +2 -1
- package/src/nudge/Nudge.tsx +7 -14
- package/src/pagination/Pagination.tsx +5 -0
- package/src/popover/index.tsx +2 -0
- package/src/progress-indicator/ProgressDot.tsx +1 -1
- package/src/progress-indicator/ProgressIndicator.tsx +4 -2
- package/src/provider/SporProvider.tsx +0 -1
- package/src/stepper/Stepper.tsx +1 -1
- package/src/tab/Tabs.tsx +1 -1
- package/src/table/Table.tsx +2 -1
- package/src/theme/recipes/button.ts +5 -0
- package/src/theme/slot-recipes/alert-expandable.ts +0 -4
- package/src/theme/slot-recipes/info-tag.ts +0 -1
- package/src/theme/slot-recipes/popover.ts +0 -1
- package/src/theme/slot-recipes/radio-card.ts +0 -3
- package/src/theme/utils/accent-utils.ts +12 -6
- package/src/theme/utils/bg-utils.ts +6 -3
- package/src/theme/utils/brand-utils.ts +7 -7
- package/src/theme/utils/core-utils.ts +23 -13
- package/src/theme/utils/floating-utils.ts +16 -8
- package/src/theme/utils/ghost-utils.ts +8 -4
- package/src/theme/utils/input-utils.ts +7 -4
- package/src/theme/utils/outline-utils.ts +6 -3
- package/src/theme/utils/surface-utils.ts +8 -4
- package/src/toast/toast.tsx +0 -1
- package/src/typography/Badge.tsx +8 -5
- package/src/typography/Heading.tsx +1 -1
- package/src/typography/Text.tsx +1 -1
- package/src/util/slugify.tsx +8 -8
- package/tsconfig.json +1 -0
package/dist/index.d.ts
CHANGED
@@ -1,15 +1,16 @@
|
|
1
|
-
import * as _chakra_ui_react from '@chakra-ui/react';
|
2
|
-
import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Dialog, Drawer as Drawer$1, InputElementProps, PopoverRootProps, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, Fieldset as Fieldset$1, Field as Field$1, InputProps as InputProps$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, 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, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
|
3
|
-
export { Box, BoxProps, Center, CenterProps, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnHeader, TableColumnHeaderProps, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
|
4
1
|
import * as React$1 from 'react';
|
5
2
|
import React__default, { PropsWithChildren, ReactNode, ChangeEvent } from 'react';
|
3
|
+
import * as _chakra_ui_react from '@chakra-ui/react';
|
4
|
+
import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Dialog, Drawer as Drawer$1, InputElementProps, PopoverRootProps, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, Field as Field$1, Fieldset as Fieldset$1, InputProps as InputProps$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, 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, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
|
5
|
+
export { Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnHeader, TableColumnHeaderProps, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
|
6
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
6
7
|
import { IconComponent } from '@vygruppen/spor-icon-react';
|
7
8
|
import { ThemeProviderProps } from 'next-themes';
|
8
9
|
import { AriaDatePickerProps, DateValue, AriaDateRangePickerProps, AriaComboBoxProps, AriaListBoxProps } from 'react-aria';
|
9
10
|
import { DateValue as DateValue$1 } from '@internationalized/date';
|
10
11
|
export { Time } from '@internationalized/date';
|
11
12
|
import { TimeValue } from '@react-types/datepicker';
|
12
|
-
import {
|
13
|
+
import { ListState, SelectState } from 'react-stately';
|
13
14
|
export { Item, Section } from 'react-stately';
|
14
15
|
export { useIsClient, useMap, useOnClickOutside } from 'usehooks-ts';
|
15
16
|
import * as sporDesignTokens from '@vygruppen/spor-design-tokens';
|
@@ -26,21 +27,21 @@ type ExpandableItemProps = HeadingLevel & {
|
|
26
27
|
startElement?: React.ReactNode;
|
27
28
|
};
|
28
29
|
|
29
|
-
declare const Accordion:
|
30
|
+
declare const Accordion: React$1.ForwardRefExoticComponent<Accordion$1.RootProps & {
|
30
31
|
variant?: _chakra_ui_react.ConditionalValue<"floating" | "ghost" | "core" | undefined>;
|
31
32
|
} & {
|
32
|
-
children?:
|
33
|
+
children?: React$1.ReactNode | undefined;
|
33
34
|
} & {
|
34
35
|
variant?: "ghost" | "core" | "floating";
|
35
36
|
gap?: string | number;
|
36
|
-
} &
|
37
|
-
declare const AccordionItemTrigger:
|
38
|
-
startElement?:
|
39
|
-
} &
|
40
|
-
declare const AccordionItemContent:
|
41
|
-
children?:
|
42
|
-
} &
|
43
|
-
declare const AccordionItem:
|
37
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
38
|
+
declare const AccordionItemTrigger: React$1.ForwardRefExoticComponent<Omit<Accordion$1.ItemTriggerProps, "indicatorElement"> & HeadingLevel & {
|
39
|
+
startElement?: React.ReactNode;
|
40
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
41
|
+
declare const AccordionItemContent: React$1.ForwardRefExoticComponent<Accordion$1.ItemContentProps & {
|
42
|
+
children?: React.ReactNode;
|
43
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
44
|
+
declare const AccordionItem: React$1.ForwardRefExoticComponent<Accordion$1.ItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
44
45
|
|
45
46
|
/**
|
46
47
|
* A standalone expandable component.
|
@@ -54,18 +55,18 @@ declare const AccordionItem: React__default.ForwardRefExoticComponent<Accordion$
|
|
54
55
|
* </Expandable>
|
55
56
|
* ```
|
56
57
|
*/
|
57
|
-
declare const Expandable:
|
58
|
+
declare const Expandable: React$1.ForwardRefExoticComponent<_chakra_ui_react.AccordionRootProps & {
|
58
59
|
variant?: _chakra_ui_react.ConditionalValue<"floating" | "ghost" | "core" | undefined>;
|
59
60
|
} & {
|
60
|
-
children?:
|
61
|
+
children?: React$1.ReactNode | undefined;
|
61
62
|
} & {
|
62
63
|
variant?: "ghost" | "core" | "floating";
|
63
64
|
gap?: string | number;
|
64
65
|
} & Omit<_chakra_ui_react.AccordionItemTriggerProps, "indicatorElement"> & HeadingLevel & {
|
65
|
-
startElement?:
|
66
|
+
startElement?: React.ReactNode;
|
66
67
|
} & {
|
67
68
|
title: string;
|
68
|
-
} &
|
69
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
69
70
|
/**
|
70
71
|
* An item in a set of Expandables. Must be wrapped in an `<Accordion>` component.
|
71
72
|
*
|
@@ -85,7 +86,7 @@ declare const Expandable: React__default.ForwardRefExoticComponent<_chakra_ui_re
|
|
85
86
|
*
|
86
87
|
* @see https://spor.vy.no/components/accordion
|
87
88
|
*/
|
88
|
-
declare const ExpandableItem: (props: ExpandableItemProps) =>
|
89
|
+
declare const ExpandableItem: (props: ExpandableItemProps) => react_jsx_runtime.JSX.Element;
|
89
90
|
|
90
91
|
type AlertProps = Omit<Alert$1.RootProps, "colorPalette"> & {
|
91
92
|
/** Whether or not to show the alert icon */
|
@@ -116,7 +117,7 @@ type AlertProps = Omit<Alert$1.RootProps, "colorPalette"> & {
|
|
116
117
|
*
|
117
118
|
* @see Docs https://spor.vy.no/alert
|
118
119
|
*/
|
119
|
-
declare const Alert:
|
120
|
+
declare const Alert: React$1.ForwardRefExoticComponent<Omit<Alert$1.RootProps, "colorPalette"> & {
|
120
121
|
/** Whether or not to show the alert icon */
|
121
122
|
showIndicator?: boolean;
|
122
123
|
/** Whether or not the alert is closable */
|
@@ -124,7 +125,7 @@ declare const Alert: React__default.ForwardRefExoticComponent<Omit<Alert$1.RootP
|
|
124
125
|
closable?: boolean;
|
125
126
|
/** Callback for when the alert is closed */
|
126
127
|
onAlertClose?: () => void;
|
127
|
-
} &
|
128
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
128
129
|
|
129
130
|
/**
|
130
131
|
* An expandable alert component.
|
@@ -137,10 +138,10 @@ declare const Alert: React__default.ForwardRefExoticComponent<Omit<Alert$1.RootP
|
|
137
138
|
* </ExpandableAlert>
|
138
139
|
* ```
|
139
140
|
*/
|
140
|
-
declare const ExpandableAlert:
|
141
|
+
declare const ExpandableAlert: React$1.ForwardRefExoticComponent<{
|
141
142
|
variant?: ConditionalValue<"error" | "alt" | "important" | "success" | "info" | undefined>;
|
142
143
|
} & {
|
143
|
-
children?:
|
144
|
+
children?: React$1.ReactNode | undefined;
|
144
145
|
} & Omit<Accordion$1.RootProps, "size" | "variant" | "orientation" | "value"> & {
|
145
146
|
/** The title string */
|
146
147
|
title: string;
|
@@ -164,7 +165,7 @@ declare const ExpandableAlert: React__default.ForwardRefExoticComponent<{
|
|
164
165
|
| "global-deviation";
|
165
166
|
*/
|
166
167
|
variant?: ConditionalValue<"important" | "success" | "alt" | "info" | "error" | undefined>;
|
167
|
-
} &
|
168
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
168
169
|
|
169
170
|
/**
|
170
171
|
* A service alert component.
|
@@ -177,8 +178,8 @@ declare const ExpandableAlert: React__default.ForwardRefExoticComponent<{
|
|
177
178
|
* </ServiceAlert>
|
178
179
|
* ```
|
179
180
|
*/
|
180
|
-
declare const ServiceAlert:
|
181
|
-
children?:
|
181
|
+
declare const ServiceAlert: React$1.ForwardRefExoticComponent<Omit<AlertProps, "variant"> & {
|
182
|
+
children?: React$1.ReactNode | undefined;
|
182
183
|
} & Omit<Accordion$1.RootProps, "size" | "variant" | "orientation" | "value"> & {
|
183
184
|
/** The title string */
|
184
185
|
title: string;
|
@@ -197,7 +198,7 @@ declare const ServiceAlert: React__default.ForwardRefExoticComponent<Omit<AlertP
|
|
197
198
|
headingLevel?: "h2" | "h3" | "h4" | "h5" | "h6";
|
198
199
|
/** The variant of Service Alert. Default: service */
|
199
200
|
variant?: "service" | "global-deviation";
|
200
|
-
} &
|
201
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
201
202
|
|
202
203
|
/**
|
203
204
|
* A breadcrumb component.
|
@@ -214,9 +215,6 @@ declare const ServiceAlert: React__default.ForwardRefExoticComponent<Omit<AlertP
|
|
214
215
|
* ```
|
215
216
|
*/
|
216
217
|
declare const Breadcrumb: React__default.ForwardRefExoticComponent<Breadcrumb$1.RootProps & React__default.RefAttributes<HTMLDivElement>>;
|
217
|
-
declare const BreadcrumbLink: React__default.ForwardRefExoticComponent<Breadcrumb$1.LinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
|
218
|
-
declare const BreadcrumbCurrentLink: React__default.ForwardRefExoticComponent<Breadcrumb$1.CurrentLinkProps & React__default.RefAttributes<HTMLElement>>;
|
219
|
-
declare const BreadcrumbEllipsis: React__default.ForwardRefExoticComponent<Breadcrumb$1.EllipsisProps & React__default.RefAttributes<HTMLElement>>;
|
220
218
|
|
221
219
|
declare const buttonRecipe: _chakra_ui_react.RecipeDefinition<{
|
222
220
|
variant: {
|
@@ -317,38 +315,11 @@ type ButtonProps = Exclude<ButtonProps$1, "size" | "variant" | "colorPalette"> &
|
|
317
315
|
loadingText?: React__default.ReactNode;
|
318
316
|
leftIcon?: React__default.ReactNode;
|
319
317
|
rightIcon?: React__default.ReactNode;
|
320
|
-
variant
|
318
|
+
variant?: "primary" | "secondary" | "tertiary" | "ghost" | "floating";
|
321
319
|
size?: "lg" | "md" | "sm" | "xs";
|
322
320
|
download?: string;
|
323
321
|
href?: string;
|
324
322
|
};
|
325
|
-
/**
|
326
|
-
* Buttons are used to trigger actions.
|
327
|
-
*
|
328
|
-
* There are several button variants. You can specify which one you want with the `variant` prop. The available variants are:
|
329
|
-
*
|
330
|
-
* - `primary`: This is our main button. It's used for the main actions in a view, like a call to action. There should only be a single primary button in each view.
|
331
|
-
* - `secondary`: Used for secondary actions in a view, and when you need to make several actions available at the same time.
|
332
|
-
* - `tertiary`: Used for additional choices, like a less important secondary action.
|
333
|
-
* - `ghost`: Used inside other interactive elements, like date pickers and input fields.
|
334
|
-
* - `floating`: Used for floating actions, like a menu button in a menu.
|
335
|
-
*
|
336
|
-
* ```tsx
|
337
|
-
* <Button variant="primary" onClick={confirmOrder}>
|
338
|
-
* Buy trip
|
339
|
-
* </Button>
|
340
|
-
* ```
|
341
|
-
*
|
342
|
-
* There are also different sizes. You can specify which one you want with the `size` prop. The available sizes are "lg", "md", "sm" and "xs".
|
343
|
-
*
|
344
|
-
* ```tsx
|
345
|
-
* <Button variant="secondary" size="sm" onClick={cancelOrder}>
|
346
|
-
* Cancel trip
|
347
|
-
* </Button>
|
348
|
-
* ```
|
349
|
-
*
|
350
|
-
* @see https://spor.vy.no/components/button
|
351
|
-
*/
|
352
323
|
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps$1 & {
|
353
324
|
variant?: _chakra_ui_react.ConditionalValue<"floating" | "secondary" | "tertiary" | "ghost" | "primary" | undefined>;
|
354
325
|
size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xs" | undefined>;
|
@@ -359,7 +330,7 @@ declare const Button: React__default.ForwardRefExoticComponent<ButtonProps$1 & {
|
|
359
330
|
loadingText?: React__default.ReactNode;
|
360
331
|
leftIcon?: React__default.ReactNode;
|
361
332
|
rightIcon?: React__default.ReactNode;
|
362
|
-
variant
|
333
|
+
variant?: "primary" | "secondary" | "tertiary" | "ghost" | "floating";
|
363
334
|
size?: "lg" | "md" | "sm" | "xs";
|
364
335
|
download?: string;
|
365
336
|
href?: string;
|
@@ -379,11 +350,11 @@ declare const groupRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
379
350
|
|
380
351
|
type GroupVariantProps = RecipeVariantProps<typeof groupRecipe>;
|
381
352
|
type ButtonGroupProps = GroupProps & PropsWithChildren<GroupVariantProps>;
|
382
|
-
declare const ButtonGroup:
|
353
|
+
declare const ButtonGroup: React$1.ForwardRefExoticComponent<GroupProps & {
|
383
354
|
disabled?: _chakra_ui_react.ConditionalValue<boolean | undefined>;
|
384
355
|
} & {
|
385
|
-
children?:
|
386
|
-
} &
|
356
|
+
children?: React$1.ReactNode | undefined;
|
357
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
387
358
|
|
388
359
|
declare const ClipboardButton: React$1.ForwardRefExoticComponent<_chakra_ui_react.ButtonProps & {
|
389
360
|
variant?: _chakra_ui_react.ConditionalValue<"floating" | "secondary" | "tertiary" | "ghost" | "primary" | undefined>;
|
@@ -395,7 +366,7 @@ declare const ClipboardButton: React$1.ForwardRefExoticComponent<_chakra_ui_reac
|
|
395
366
|
loadingText?: React$1.ReactNode;
|
396
367
|
leftIcon?: React$1.ReactNode;
|
397
368
|
rightIcon?: React$1.ReactNode;
|
398
|
-
variant
|
369
|
+
variant?: "primary" | "secondary" | "tertiary" | "ghost" | "floating";
|
399
370
|
size?: "lg" | "md" | "sm" | "xs";
|
400
371
|
download?: string;
|
401
372
|
href?: string;
|
@@ -477,10 +448,10 @@ type CloseButtonProps = Omit<IconButtonProps, "variant" | "aria-label"> & {
|
|
477
448
|
* <CloseButton onClick={closeModal} />
|
478
449
|
* ```
|
479
450
|
*/
|
480
|
-
declare const CloseButton:
|
451
|
+
declare const CloseButton: React$1.ForwardRefExoticComponent<Omit<IconButtonProps, "variant" | "aria-label"> & {
|
481
452
|
/** Defaults to a localized version of "close" */
|
482
453
|
"aria-label"?: string;
|
483
|
-
} &
|
454
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
484
455
|
|
485
456
|
/**
|
486
457
|
* Creates a floating action button.
|
@@ -507,9 +478,8 @@ declare const FloatingActionButton: React__default.ForwardRefExoticComponent<Box
|
|
507
478
|
isTextVisible?: boolean;
|
508
479
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
509
480
|
|
510
|
-
|
511
|
-
|
512
|
-
declare function ColorModeProvider(props: ColorModeProviderProps): React$1.JSX.Element;
|
481
|
+
type ColorModeProviderProps = ThemeProviderProps;
|
482
|
+
declare function ColorModeProvider(props: ColorModeProviderProps): react_jsx_runtime.JSX.Element;
|
513
483
|
type ColorMode = "light" | "dark";
|
514
484
|
interface UseColorModeReturn {
|
515
485
|
colorMode: ColorMode;
|
@@ -518,9 +488,8 @@ interface UseColorModeReturn {
|
|
518
488
|
}
|
519
489
|
declare function useColorMode(): UseColorModeReturn;
|
520
490
|
declare function useColorModeValue<T>(light: T, dark: T): T;
|
521
|
-
declare function ColorModeIcon():
|
522
|
-
|
523
|
-
}
|
491
|
+
declare function ColorModeIcon(): react_jsx_runtime.JSX.Element;
|
492
|
+
type ColorModeButtonProps = Omit<IconButtonProps$1, "aria-label">;
|
524
493
|
declare const ColorModeButton: React$1.ForwardRefExoticComponent<ColorModeButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
525
494
|
|
526
495
|
declare const datePickerSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"cell" | "arrow" | "wrapper" | "calendarTriggerButton" | "calendarPopover" | "calendar" | "weekdays" | "weekend" | "dateCell" | "inputLabel" | "dateTimeSegment" | "box" | "rangeCalendarPopover", {
|
@@ -597,7 +566,7 @@ type DatePickerVariantProps = RecipeVariantProps<typeof datePickerSlotRecipe>;
|
|
597
566
|
/**
|
598
567
|
* A date picker component.
|
599
568
|
*
|
600
|
-
* There are three different variants
|
569
|
+
* There are three different variants –`core`, `floating` and `ghost`.
|
601
570
|
*
|
602
571
|
* ```tsx
|
603
572
|
* <DatePicker label="Dato" variant="core" />
|
@@ -634,7 +603,7 @@ type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue$1>, "onChang
|
|
634
603
|
* ```tsx
|
635
604
|
* <DateRangePicker startLabel="From" startName="from" endLabel="To" endName="to" variant="core" />
|
636
605
|
* ```
|
637
|
-
*/ declare function DateRangePicker({ variant, minHeight, startName, endName, withPortal, ...props }: DateRangePickerProps):
|
606
|
+
*/ declare function DateRangePicker({ variant, minHeight, startName, endName, withPortal, ...props }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
638
607
|
|
639
608
|
type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & {
|
640
609
|
/** The label. Defaults to a localized version of "Time" */
|
@@ -684,7 +653,7 @@ type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & {
|
|
684
653
|
*
|
685
654
|
* @see https://spor.vy.no/komponents/timepicker
|
686
655
|
*/
|
687
|
-
declare const TimePicker: ({ label: externalLabel, value, defaultValue, onChange, minuteInterval, disabled: isDisabledExternally, name, ...boxProps }: TimePickerProps) =>
|
656
|
+
declare const TimePicker: ({ label: externalLabel, value, defaultValue, onChange, minuteInterval, disabled: isDisabledExternally, name, ...boxProps }: TimePickerProps) => react_jsx_runtime.JSX.Element;
|
688
657
|
|
689
658
|
interface DialogContentProps extends Dialog.ContentProps {
|
690
659
|
portalled?: boolean;
|
@@ -829,31 +798,31 @@ type DrawerProps = Omit<Drawer$1.RootProps, "colorPalette" | "contained" | "unst
|
|
829
798
|
children: React.ReactNode;
|
830
799
|
};
|
831
800
|
|
832
|
-
declare const DrawerContent:
|
801
|
+
declare const DrawerContent: React$1.ForwardRefExoticComponent<Drawer$1.ContentProps & {
|
833
802
|
size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xl" | "xs" | "full" | undefined>;
|
834
803
|
placement?: _chakra_ui_react.ConditionalValue<"bottom" | "top" | "end" | "start" | undefined>;
|
835
804
|
} & {
|
836
|
-
children?:
|
805
|
+
children?: React$1.ReactNode | undefined;
|
837
806
|
} & {
|
838
|
-
children:
|
807
|
+
children: React.ReactNode;
|
839
808
|
portalled?: boolean;
|
840
|
-
portalRef?:
|
841
|
-
} &
|
842
|
-
declare const CloseDrawerLine:
|
843
|
-
declare const DrawerCloseTrigger:
|
844
|
-
declare const DrawerBackTrigger:
|
845
|
-
declare const DrawerFullScreenHeader:
|
809
|
+
portalRef?: React.RefObject<HTMLElement>;
|
810
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
811
|
+
declare const CloseDrawerLine: React$1.ForwardRefExoticComponent<React$1.RefAttributes<HTMLButtonElement>>;
|
812
|
+
declare const DrawerCloseTrigger: React$1.ForwardRefExoticComponent<Drawer$1.CloseTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
813
|
+
declare const DrawerBackTrigger: React$1.ForwardRefExoticComponent<Drawer$1.CloseTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
814
|
+
declare const DrawerFullScreenHeader: React$1.ForwardRefExoticComponent<Drawer$1.HeaderProps & {
|
846
815
|
backTrigger?: boolean;
|
847
816
|
title?: string;
|
848
|
-
} &
|
849
|
-
declare const Drawer: (props: DrawerProps) =>
|
850
|
-
declare const DrawerTrigger:
|
851
|
-
declare const DrawerFooter:
|
852
|
-
declare const DrawerBody:
|
853
|
-
declare const DrawerBackdrop:
|
854
|
-
declare const DrawerTitle:
|
855
|
-
declare const DrawerActionTrigger:
|
856
|
-
declare const DrawerHeader:
|
817
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
818
|
+
declare const Drawer: (props: DrawerProps) => react_jsx_runtime.JSX.Element;
|
819
|
+
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<Drawer$1.TriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
820
|
+
declare const DrawerFooter: React$1.ForwardRefExoticComponent<Drawer$1.FooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
821
|
+
declare const DrawerBody: React$1.ForwardRefExoticComponent<Drawer$1.BodyProps & React$1.RefAttributes<HTMLDivElement>>;
|
822
|
+
declare const DrawerBackdrop: React$1.ForwardRefExoticComponent<Drawer$1.BackdropProps & React$1.RefAttributes<HTMLDivElement>>;
|
823
|
+
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Drawer$1.TitleProps & React$1.RefAttributes<HTMLDivElement>>;
|
824
|
+
declare const DrawerActionTrigger: React$1.ForwardRefExoticComponent<Drawer$1.ActionTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
825
|
+
declare const DrawerHeader: React$1.ForwardRefExoticComponent<Drawer$1.HeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
857
826
|
|
858
827
|
declare enum Language {
|
859
828
|
NorwegianBokmal = "nb",
|
@@ -893,7 +862,7 @@ type LanguageProviderProps = {
|
|
893
862
|
* ```
|
894
863
|
*
|
895
864
|
*/
|
896
|
-
declare function LanguageProvider({ language, children, }: LanguageProviderProps):
|
865
|
+
declare function LanguageProvider({ language, children, }: LanguageProviderProps): react_jsx_runtime.JSX.Element;
|
897
866
|
/**
|
898
867
|
* A hook that returns translation utilities. Typically used to translate text.
|
899
868
|
*
|
@@ -999,21 +968,21 @@ type InputGroupProps = GroupProps & {
|
|
999
968
|
* ```
|
1000
969
|
*/
|
1001
970
|
type AttachedInputsProps = RecipeVariantProps<typeof attachedInputsRecipe> & InputGroupProps;
|
1002
|
-
declare const AttachedInputs:
|
971
|
+
declare const AttachedInputs: React$1.ForwardRefExoticComponent<{
|
1003
972
|
orientation?: _chakra_ui_react.ConditionalValue<"horizontal" | "vertical" | undefined>;
|
1004
973
|
} & _chakra_ui_react.GroupProps & {
|
1005
974
|
startElementProps?: _chakra_ui_react.InputElementProps;
|
1006
975
|
endElementProps?: _chakra_ui_react.InputElementProps;
|
1007
|
-
startElement?:
|
1008
|
-
endElement?:
|
1009
|
-
children:
|
976
|
+
startElement?: React.ReactNode;
|
977
|
+
endElement?: React.ReactNode;
|
978
|
+
children: React.ReactElement;
|
1010
979
|
label?: string;
|
1011
|
-
} &
|
980
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
1012
981
|
|
1013
|
-
declare const CardSelect: ({ size, ...props }: PopoverRootProps) =>
|
1014
|
-
declare const CardSelectContent:
|
982
|
+
declare const CardSelect: ({ size, ...props }: PopoverRootProps) => react_jsx_runtime.JSX.Element;
|
983
|
+
declare const CardSelectContent: React$1.ForwardRefExoticComponent<{
|
1015
984
|
colorPalette?: _chakra_ui_react.ConditionalValue<"white" | "blue" | "green" | "grey" | "orange" | "red" | "yellow" | "darkYellow" | undefined>;
|
1016
|
-
} & _chakra_ui_react.BoxProps &
|
985
|
+
} & _chakra_ui_react.BoxProps & React$1.RefAttributes<HTMLDivElement>>;
|
1017
986
|
type CardSelectTriggerProps = {
|
1018
987
|
/** The design of the trigger button.
|
1019
988
|
*
|
@@ -1027,7 +996,7 @@ type CardSelectTriggerProps = {
|
|
1027
996
|
/** Whether or not to show the chevron. Defaults to true */
|
1028
997
|
withChevron?: boolean;
|
1029
998
|
} & Omit<ButtonProps, "variant" | "rightIcon" | "leftIcon">;
|
1030
|
-
declare const CardSelectTrigger:
|
999
|
+
declare const CardSelectTrigger: React$1.ForwardRefExoticComponent<{
|
1031
1000
|
/** The design of the trigger button.
|
1032
1001
|
*
|
1033
1002
|
* - `ghost` is a transparent button with text
|
@@ -1039,7 +1008,7 @@ declare const CardSelectTrigger: React__default.ForwardRefExoticComponent<{
|
|
1039
1008
|
icon?: ReactNode;
|
1040
1009
|
/** Whether or not to show the chevron. Defaults to true */
|
1041
1010
|
withChevron?: boolean;
|
1042
|
-
} & Omit<ButtonProps, "variant" | "leftIcon" | "rightIcon"> &
|
1011
|
+
} & Omit<ButtonProps, "variant" | "leftIcon" | "rightIcon"> & React$1.RefAttributes<HTMLButtonElement>>;
|
1043
1012
|
|
1044
1013
|
/**
|
1045
1014
|
* Creates a checkbox.
|
@@ -1180,7 +1149,7 @@ type ChoiceChipProps = PropsWithChildren<ChoiceChipVariantProps> & {
|
|
1180
1149
|
chipType?: "icon" | "choice" | "filter";
|
1181
1150
|
"aria-label"?: string;
|
1182
1151
|
};
|
1183
|
-
declare const ChoiceChip: ({ children, icon, size, chipType, variant, ...props }: ChoiceChipProps) =>
|
1152
|
+
declare const ChoiceChip: ({ children, icon, size, chipType, variant, ...props }: ChoiceChipProps) => react_jsx_runtime.JSX.Element;
|
1184
1153
|
|
1185
1154
|
type ComboboxProps<T> = Exclude<InputProps, "variant" | "colorPalette" | "size"> & AriaComboBoxProps<T> & {
|
1186
1155
|
/** The label of the combobox */
|
@@ -1248,12 +1217,6 @@ declare const Combobox: React__default.ForwardRefExoticComponent<_chakra_ui_reac
|
|
1248
1217
|
children?: React__default.ReactNode;
|
1249
1218
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
1250
1219
|
|
1251
|
-
declare const Fieldset: React$1.ForwardRefExoticComponent<Fieldset$1.RootProps & React$1.RefAttributes<HTMLFieldSetElement>>;
|
1252
|
-
declare const FieldsetLegend: React$1.ForwardRefExoticComponent<Fieldset$1.LegendProps & React$1.RefAttributes<HTMLLegendElement>>;
|
1253
|
-
declare const FieldsetContent: React$1.ForwardRefExoticComponent<Fieldset$1.ContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
1254
|
-
declare const FieldsetHelperText: React$1.ForwardRefExoticComponent<Fieldset$1.HelperTextProps & React$1.RefAttributes<HTMLSpanElement>>;
|
1255
|
-
declare const FieldsetErrorText: React$1.ForwardRefExoticComponent<Fieldset$1.ErrorTextProps & React$1.RefAttributes<HTMLSpanElement>>;
|
1256
|
-
|
1257
1220
|
declare const fieldSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "label" | "requiredIndicator" | "helperText" | "errorText", _chakra_ui_react.SlotRecipeVariantRecord<"root" | "label" | "requiredIndicator" | "helperText" | "errorText">>;
|
1258
1221
|
|
1259
1222
|
type FieldVariantProps = RecipeVariantProps<typeof fieldSlotRecipe>;
|
@@ -1294,6 +1257,12 @@ declare const Field: React$1.ForwardRefExoticComponent<Omit<Field$1.RootProps, "
|
|
1294
1257
|
declare const FieldErrorText: React$1.ForwardRefExoticComponent<Field$1.ErrorTextProps & React$1.RefAttributes<HTMLDivElement>>;
|
1295
1258
|
declare const FieldLabel: React$1.ForwardRefExoticComponent<Field$1.LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
1296
1259
|
|
1260
|
+
declare const Fieldset: React$1.ForwardRefExoticComponent<Fieldset$1.RootProps & React$1.RefAttributes<HTMLFieldSetElement>>;
|
1261
|
+
declare const FieldsetLegend: React$1.ForwardRefExoticComponent<Fieldset$1.LegendProps & React$1.RefAttributes<HTMLLegendElement>>;
|
1262
|
+
declare const FieldsetContent: React$1.ForwardRefExoticComponent<Fieldset$1.ContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
1263
|
+
declare const FieldsetHelperText: React$1.ForwardRefExoticComponent<Fieldset$1.HelperTextProps & React$1.RefAttributes<HTMLSpanElement>>;
|
1264
|
+
declare const FieldsetErrorText: React$1.ForwardRefExoticComponent<Fieldset$1.ErrorTextProps & React$1.RefAttributes<HTMLSpanElement>>;
|
1265
|
+
|
1297
1266
|
type InputProps = Exclude<InputProps$1, "size" | "label" | "colorPalette"> & FieldProps & {
|
1298
1267
|
/** The input's label */
|
1299
1268
|
label: string;
|
@@ -1340,7 +1309,7 @@ declare const Input: React__default.ForwardRefExoticComponent<InputProps$1 & Omi
|
|
1340
1309
|
*
|
1341
1310
|
* @example
|
1342
1311
|
* ```jsx
|
1343
|
-
* const { data, isLoading }
|
1312
|
+
* const { data, isLoading } = useSWR('/api/options')
|
1344
1313
|
* const state = useListState({ items: data });
|
1345
1314
|
* const ref = useRef(null);
|
1346
1315
|
*
|
@@ -1361,7 +1330,7 @@ declare const ListBox: React__default.ForwardRefExoticComponent<AriaListBoxProps
|
|
1361
1330
|
/** Whether or not the listbox is waiting on new data, i.e. through a autosuggest search */
|
1362
1331
|
loading?: boolean;
|
1363
1332
|
/** The state of the listbox, provided externally somehow. */
|
1364
|
-
state:
|
1333
|
+
state: ListState<object> | SelectState<unknown>;
|
1365
1334
|
/** UI to render if the collection is empty */
|
1366
1335
|
emptyContent?: React__default.ReactNode;
|
1367
1336
|
maxWidth?: BoxProps["maxWidth"];
|
@@ -1376,7 +1345,7 @@ declare const ListBox: React__default.ForwardRefExoticComponent<AriaListBoxProps
|
|
1376
1345
|
*/
|
1377
1346
|
declare function ItemLabel({ children }: {
|
1378
1347
|
children: React__default.ReactNode;
|
1379
|
-
}):
|
1348
|
+
}): react_jsx_runtime.JSX.Element;
|
1380
1349
|
/**
|
1381
1350
|
* Renders a description for an Item.
|
1382
1351
|
*
|
@@ -1384,7 +1353,7 @@ declare function ItemLabel({ children }: {
|
|
1384
1353
|
*/
|
1385
1354
|
declare function ItemDescription({ children }: {
|
1386
1355
|
children: React__default.ReactNode;
|
1387
|
-
}):
|
1356
|
+
}): react_jsx_runtime.JSX.Element;
|
1388
1357
|
|
1389
1358
|
declare const nativeSelectSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" | "root" | "field", {
|
1390
1359
|
variant: {
|
@@ -1606,16 +1575,16 @@ type CountryCodeAndPhoneNumber = {
|
|
1606
1575
|
* />
|
1607
1576
|
* ```
|
1608
1577
|
*/
|
1609
|
-
declare const PhoneNumberInput:
|
1610
|
-
children?:
|
1578
|
+
declare const PhoneNumberInput: React$1.ForwardRefExoticComponent<_chakra_ui_react.InputProps & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
|
1579
|
+
children?: React$1.ReactNode | undefined;
|
1611
1580
|
} & {
|
1612
|
-
label?:
|
1613
|
-
helperText?:
|
1614
|
-
errorText?:
|
1581
|
+
label?: React.ReactNode;
|
1582
|
+
helperText?: React.ReactNode;
|
1583
|
+
errorText?: React.ReactNode;
|
1615
1584
|
} & {
|
1616
1585
|
label: string;
|
1617
|
-
startElement?:
|
1618
|
-
endElement?:
|
1586
|
+
startElement?: React.ReactNode;
|
1587
|
+
endElement?: React.ReactNode;
|
1619
1588
|
} & {
|
1620
1589
|
/** The label. Defaults to a localized version of "Phone number" */
|
1621
1590
|
label?: string;
|
@@ -1625,9 +1594,10 @@ declare const PhoneNumberInput: React__default.ForwardRefExoticComponent<_chakra
|
|
1625
1594
|
value?: CountryCodeAndPhoneNumber;
|
1626
1595
|
/** Returns an extra optional text when true */
|
1627
1596
|
optional?: boolean;
|
1597
|
+
allowedCountryCodes?: string[];
|
1628
1598
|
invalid?: boolean;
|
1629
1599
|
errorText?: string;
|
1630
|
-
} &
|
1600
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
1631
1601
|
|
1632
1602
|
declare const radioGroupSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "label" | "itemText" | "itemControl", {
|
1633
1603
|
orientation: {
|
@@ -1676,20 +1646,20 @@ type SearchInputProps = InputProps & {
|
|
1676
1646
|
*
|
1677
1647
|
* Includes a search icon, a localized label and a reset button.
|
1678
1648
|
*/
|
1679
|
-
declare const SearchInput:
|
1680
|
-
children?:
|
1649
|
+
declare const SearchInput: React$1.ForwardRefExoticComponent<_chakra_ui_react.InputProps & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
|
1650
|
+
children?: React$1.ReactNode | undefined;
|
1681
1651
|
} & {
|
1682
|
-
label?:
|
1683
|
-
helperText?:
|
1684
|
-
errorText?:
|
1652
|
+
label?: React.ReactNode;
|
1653
|
+
helperText?: React.ReactNode;
|
1654
|
+
errorText?: React.ReactNode;
|
1685
1655
|
} & {
|
1686
1656
|
label: string;
|
1687
|
-
startElement?:
|
1688
|
-
endElement?:
|
1657
|
+
startElement?: React.ReactNode;
|
1658
|
+
endElement?: React.ReactNode;
|
1689
1659
|
} & {
|
1690
1660
|
/** Callback for when the clear button is clicked */
|
1691
1661
|
onReset?: () => void;
|
1692
|
-
} &
|
1662
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
1693
1663
|
|
1694
1664
|
declare const selectSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "indicator" | "label" | "control" | "itemText" | "itemDescription" | "trigger" | "indicatorGroup" | "selectContent" | "itemGroup" | "itemGroupLabel" | "valueText", {
|
1695
1665
|
variant: {
|
@@ -2007,9 +1977,9 @@ declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1
|
|
2007
1977
|
label: ReactNode;
|
2008
1978
|
} & React__default.RefAttributes<HTMLTextAreaElement>>;
|
2009
1979
|
|
2010
|
-
declare const PressableCard:
|
1980
|
+
declare const PressableCard: React$1.ForwardRefExoticComponent<{
|
2011
1981
|
variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | "accent" | undefined>;
|
2012
|
-
} & ButtonProps$1 &
|
1982
|
+
} & ButtonProps$1 & React$1.RefAttributes<HTMLDivElement>>;
|
2013
1983
|
|
2014
1984
|
declare const RadioCard: React__default.ForwardRefExoticComponent<RadioCard$1.ItemProps & {
|
2015
1985
|
variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
|
@@ -2027,16 +1997,16 @@ declare const RadioCardGroup: React__default.ForwardRefExoticComponent<{
|
|
2027
1997
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
2028
1998
|
declare const RadioCardLabel: React__default.ForwardRefExoticComponent<RadioCard$1.LabelProps & React__default.RefAttributes<HTMLDivElement>>;
|
2029
1999
|
|
2030
|
-
declare const Separator:
|
2000
|
+
declare const Separator: React$1.ForwardRefExoticComponent<SeparatorProps & {
|
2031
2001
|
variant?: _chakra_ui_react.ConditionalValue<"dashed" | "solid" | undefined>;
|
2032
2002
|
size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | undefined>;
|
2033
2003
|
orientation?: _chakra_ui_react.ConditionalValue<"horizontal" | "vertical" | undefined>;
|
2034
2004
|
} & {
|
2035
|
-
children?:
|
2005
|
+
children?: React$1.ReactNode | undefined;
|
2036
2006
|
} & {
|
2037
2007
|
size?: "sm" | "md" | "lg";
|
2038
2008
|
variant?: "solid" | "dashed";
|
2039
|
-
} &
|
2009
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
2040
2010
|
|
2041
2011
|
declare const staticCardRecipe: _chakra_ui_react.RecipeDefinition<{
|
2042
2012
|
colorPalette: {
|
@@ -2069,9 +2039,9 @@ declare const staticCardRecipe: _chakra_ui_react.RecipeDefinition<{
|
|
2069
2039
|
}>;
|
2070
2040
|
|
2071
2041
|
type StaticCardProps = RecipeVariantProps<typeof staticCardRecipe> & BoxProps;
|
2072
|
-
declare const StaticCard:
|
2042
|
+
declare const StaticCard: React$1.ForwardRefExoticComponent<{
|
2073
2043
|
colorPalette?: _chakra_ui_react.ConditionalValue<"white" | "blue" | "green" | "grey" | "orange" | "red" | "yellow" | "darkYellow" | undefined>;
|
2074
|
-
} & BoxProps &
|
2044
|
+
} & BoxProps & React$1.RefAttributes<HTMLDivElement>>;
|
2075
2045
|
|
2076
2046
|
declare const infoTagSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" | "title" | "description" | "iconContainer" | "container" | "textContainer" | "walk", {
|
2077
2047
|
variant: {
|
@@ -2156,7 +2126,7 @@ type InfoTagProps = TagProps & PropsWithChildren<InfoTagVariantProps>;
|
|
2156
2126
|
* ```tsx
|
2157
2127
|
* <InfoTag variant="subway" title="3" description="Ringen" />
|
2158
2128
|
* ```
|
2159
|
-
* They support three different sizes
|
2129
|
+
* They support three different sizes –`sm`, `md` and `lg`.
|
2160
2130
|
*
|
2161
2131
|
* ```tsx
|
2162
2132
|
* <InfoTag
|
@@ -2180,7 +2150,7 @@ type InfoTagProps = TagProps & PropsWithChildren<InfoTagVariantProps>;
|
|
2180
2150
|
*
|
2181
2151
|
* @see https://spor.vy.no/components/line-tags
|
2182
2152
|
*/
|
2183
|
-
declare const InfoTag: ({ variant, size, title, description, ...customProps }: InfoTagProps) =>
|
2153
|
+
declare const InfoTag: ({ variant, size, title, description, ...customProps }: InfoTagProps) => react_jsx_runtime.JSX.Element;
|
2184
2154
|
|
2185
2155
|
declare const lineIconSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" | "root" | "title" | "iconContainer" | "desc", {
|
2186
2156
|
variant: {
|
@@ -2314,7 +2284,7 @@ type LineIconProps = Exclude<BoxProps, "variant"> & VariantProps & PropsWithChil
|
|
2314
2284
|
* <LineIcon variant="subway" />
|
2315
2285
|
* ```
|
2316
2286
|
*
|
2317
|
-
* They support three different sizes
|
2287
|
+
* They support three different sizes - `sm`, `md` and `lg`.
|
2318
2288
|
*
|
2319
2289
|
* ```tsx
|
2320
2290
|
* <LineIcon variant="subway" size="lg" />
|
@@ -2497,7 +2467,7 @@ type TravelTagProps = TagProps & BoxProps & PropsWithChildren<TravelTagVariantPr
|
|
2497
2467
|
* <TravelTag variant="subway" title="3" description="Ringen" />
|
2498
2468
|
* ```
|
2499
2469
|
*
|
2500
|
-
* They support three different sizes
|
2470
|
+
* They support three different sizes - `sm`, `md` and `lg`.
|
2501
2471
|
*
|
2502
2472
|
* You can also render them with a deviation level to indicate an extra focus:
|
2503
2473
|
*
|
@@ -2540,7 +2510,7 @@ type TravelTagProps = TagProps & BoxProps & PropsWithChildren<TravelTagVariantPr
|
|
2540
2510
|
*
|
2541
2511
|
* @see https://spor.vy.no/components/line-tags
|
2542
2512
|
*/
|
2543
|
-
declare const TravelTag:
|
2513
|
+
declare const TravelTag: React$1.ForwardRefExoticComponent<TravelTagProps & React$1.RefAttributes<HTMLDivElement>>;
|
2544
2514
|
|
2545
2515
|
declare const linkRecipe: _chakra_ui_react.RecipeDefinition<{
|
2546
2516
|
variant: {
|
@@ -2573,15 +2543,6 @@ type LinkProps = Exclude<LinkProps$1, "variant"> & PropsWithChildren<linkVariant
|
|
2573
2543
|
/** Define if the link shows an icon on the right that indicate it is an external link */
|
2574
2544
|
external?: boolean;
|
2575
2545
|
};
|
2576
|
-
/** Link to different sites or parts of site
|
2577
|
-
*
|
2578
|
-
* You can specify the `variant` prop to get different link designs.
|
2579
|
-
* * ```tsx
|
2580
|
-
* <TextLink href="/url-to-page" variant="primary" size="md">
|
2581
|
-
* text that is linked
|
2582
|
-
* </TextLink>
|
2583
|
-
* ```
|
2584
|
-
*/
|
2585
2546
|
declare const TextLink: React__default.ForwardRefExoticComponent<LinkProps$1 & {
|
2586
2547
|
variant?: _chakra_ui_react.ConditionalValue<"secondary" | "primary" | undefined>;
|
2587
2548
|
} & {
|
@@ -2621,7 +2582,7 @@ type ColorInlineLoaderProps = Exclude<BoxProps, "children">;
|
|
2621
2582
|
*
|
2622
2583
|
* This component should only be used on light backgrounds with low saturation (e.g. white, light grey etc.). For colored backgrounds, please use the LightInlineLoader component.
|
2623
2584
|
*/
|
2624
|
-
declare const ColorInlineLoader: ({ width, maxWidth, ...props }: ColorInlineLoaderProps) =>
|
2585
|
+
declare const ColorInlineLoader: ({ width, maxWidth, ...props }: ColorInlineLoaderProps) => react_jsx_runtime.JSX.Element;
|
2625
2586
|
|
2626
2587
|
type SpinnerProps = BoxProps;
|
2627
2588
|
type ColorSpinnerProps = SpinnerProps;
|
@@ -2640,23 +2601,23 @@ type ColorSpinnerProps = SpinnerProps;
|
|
2640
2601
|
* Hold your horses
|
2641
2602
|
* </ColorSpinner>
|
2642
2603
|
*/
|
2643
|
-
declare const ColorSpinner: ({ children, width, maxWidth, ...props }: SpinnerProps) =>
|
2604
|
+
declare const ColorSpinner: ({ children, width, maxWidth, ...props }: SpinnerProps) => react_jsx_runtime.JSX.Element;
|
2644
2605
|
|
2645
2606
|
type ContentLoaderProps = BoxProps;
|
2646
2607
|
/**
|
2647
2608
|
* ContentLoader is a component that renders a loading animation.
|
2648
2609
|
* It should mostly be used for loading content that is not yet available.
|
2649
2610
|
*/
|
2650
|
-
declare const ContentLoader: ({ children, ...props }: ContentLoaderProps) =>
|
2611
|
+
declare const ContentLoader: ({ children, ...props }: ContentLoaderProps) => react_jsx_runtime.JSX.Element;
|
2651
2612
|
|
2652
2613
|
type DarkFullScreenLoaderProps = BoxProps;
|
2653
|
-
declare const DarkFullScreenLoader: ({ width, maxWidth, ...props }: DarkFullScreenLoaderProps) =>
|
2614
|
+
declare const DarkFullScreenLoader: ({ width, maxWidth, ...props }: DarkFullScreenLoaderProps) => react_jsx_runtime.JSX.Element;
|
2654
2615
|
|
2655
2616
|
type DarkInlineLoaderProps = Exclude<BoxProps, "children">;
|
2656
2617
|
/**
|
2657
2618
|
* Loading component that works well in bounded contexts, like inside a button.
|
2658
2619
|
*/
|
2659
|
-
declare const DarkInlineLoader: ({ width, maxWidth, ...props }: DarkInlineLoaderProps) =>
|
2620
|
+
declare const DarkInlineLoader: ({ width, maxWidth, ...props }: DarkInlineLoaderProps) => react_jsx_runtime.JSX.Element;
|
2660
2621
|
|
2661
2622
|
type DarkSpinnerProps = BoxProps;
|
2662
2623
|
/** A circular spinner
|
@@ -2674,16 +2635,16 @@ type DarkSpinnerProps = BoxProps;
|
|
2674
2635
|
* Hold your horses
|
2675
2636
|
* </DarkSpinner>
|
2676
2637
|
*/
|
2677
|
-
declare const DarkSpinner: ({ children, width, maxWidth, ...props }: DarkSpinnerProps) =>
|
2638
|
+
declare const DarkSpinner: ({ children, width, maxWidth, ...props }: DarkSpinnerProps) => react_jsx_runtime.JSX.Element;
|
2678
2639
|
|
2679
2640
|
type LightFullScreenLoaderProps = BoxProps;
|
2680
|
-
declare const LightFullScreenLoader: ({ width, maxWidth, ...props }: LightFullScreenLoaderProps) =>
|
2641
|
+
declare const LightFullScreenLoader: ({ width, maxWidth, ...props }: LightFullScreenLoaderProps) => react_jsx_runtime.JSX.Element;
|
2681
2642
|
|
2682
2643
|
type LightInlineLoaderProps = Exclude<BoxProps, "children">;
|
2683
2644
|
/**
|
2684
2645
|
* Loading component that works well in bounded contexts, like inside a button.
|
2685
2646
|
*/
|
2686
|
-
declare const LightInlineLoader: ({ width, maxWidth, ...props }: LightInlineLoaderProps) =>
|
2647
|
+
declare const LightInlineLoader: ({ width, maxWidth, ...props }: LightInlineLoaderProps) => react_jsx_runtime.JSX.Element;
|
2687
2648
|
|
2688
2649
|
type LightSpinnerProps = BoxProps;
|
2689
2650
|
/** A circular spinner
|
@@ -2701,7 +2662,7 @@ type LightSpinnerProps = BoxProps;
|
|
2701
2662
|
* Hold your horses
|
2702
2663
|
* </LightSpinner>
|
2703
2664
|
*/
|
2704
|
-
declare const LightSpinner: ({ children, width, maxWidth, ...props }: LightSpinnerProps) =>
|
2665
|
+
declare const LightSpinner: ({ children, width, maxWidth, ...props }: LightSpinnerProps) => react_jsx_runtime.JSX.Element;
|
2705
2666
|
|
2706
2667
|
declare const progressBarRecipe: _chakra_ui_react.SlotRecipeDefinition<"description" | "container" | "background" | "progress" | "disabledBackground", _chakra_ui_react.SlotRecipeVariantRecord<"description" | "container" | "background" | "progress" | "disabledBackground">>;
|
2707
2668
|
|
@@ -2957,14 +2918,14 @@ type CargonetLogoProps = {
|
|
2957
2918
|
*/
|
2958
2919
|
colorPalette: "light" | "dark";
|
2959
2920
|
};
|
2960
|
-
declare const CargonetLogo:
|
2921
|
+
declare const CargonetLogo: React$1.ForwardRefExoticComponent<CargonetLogoProps & React$1.RefAttributes<SVGSVGElement>>;
|
2961
2922
|
|
2962
2923
|
declare const SvgBox: _chakra_ui_react.ChakraComponent<"svg", {}>;
|
2963
2924
|
type VyLogoProps = BoxProps & React__default.SVGProps<SVGSVGElement>;
|
2964
2925
|
declare const VyLogo: React__default.ForwardRefExoticComponent<Omit<VyLogoProps, "ref"> & React__default.RefAttributes<SVGSVGElement>>;
|
2965
2926
|
|
2966
2927
|
type VyLogoPrideProps = BoxProps;
|
2967
|
-
declare const VyLogoPride:
|
2928
|
+
declare const VyLogoPride: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<SVGSVGElement>>;
|
2968
2929
|
|
2969
2930
|
declare const mediaControllerSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" | "root", {
|
2970
2931
|
variant: {
|
@@ -3033,18 +2994,18 @@ type MediaControllerVariantProps = RecipeVariantProps<typeof mediaControllerSlot
|
|
3033
2994
|
* <JumpButton direction="forward" onClick={onGoForward} />
|
3034
2995
|
* ```
|
3035
2996
|
*/
|
3036
|
-
declare const JumpButton:
|
2997
|
+
declare const JumpButton: React$1.ForwardRefExoticComponent<BoxProps & {
|
3037
2998
|
variant?: _chakra_ui_react.ConditionalValue<"play" | "jumpSkip" | undefined>;
|
3038
2999
|
size?: _chakra_ui_react.ConditionalValue<"sm" | "lg" | undefined>;
|
3039
3000
|
} & {
|
3040
|
-
children?:
|
3001
|
+
children?: React$1.ReactNode | undefined;
|
3041
3002
|
} & {
|
3042
3003
|
onClick: () => void;
|
3043
3004
|
"aria-label"?: string;
|
3044
3005
|
disabled?: boolean;
|
3045
3006
|
direction: "backward" | "forward";
|
3046
3007
|
size: "sm" | "lg";
|
3047
|
-
} &
|
3008
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
3048
3009
|
|
3049
3010
|
/**
|
3050
3011
|
* A playback button.
|
@@ -3057,18 +3018,18 @@ declare const JumpButton: React__default.ForwardRefExoticComponent<BoxProps & {
|
|
3057
3018
|
* <PlayPauseButton playing={playing} onClick={onPlaybackClick} />
|
3058
3019
|
* ```
|
3059
3020
|
*/
|
3060
|
-
declare const PlayPauseButton:
|
3021
|
+
declare const PlayPauseButton: React$1.ForwardRefExoticComponent<BoxProps & {
|
3061
3022
|
variant?: _chakra_ui_react.ConditionalValue<"play" | "jumpSkip" | undefined>;
|
3062
3023
|
size?: _chakra_ui_react.ConditionalValue<"sm" | "lg" | undefined>;
|
3063
3024
|
} & {
|
3064
|
-
children?:
|
3025
|
+
children?: React$1.ReactNode | undefined;
|
3065
3026
|
} & {
|
3066
3027
|
onClick: () => void;
|
3067
3028
|
"aria-label"?: string;
|
3068
3029
|
disabled?: boolean;
|
3069
3030
|
playing: boolean;
|
3070
3031
|
size: "sm" | "lg";
|
3071
|
-
} &
|
3032
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
3072
3033
|
|
3073
3034
|
/**
|
3074
3035
|
* A skip button.
|
@@ -3081,28 +3042,28 @@ declare const PlayPauseButton: React__default.ForwardRefExoticComponent<BoxProps
|
|
3081
3042
|
* <SkipButton direction="forward" onClick={onNextChapter} />
|
3082
3043
|
* ```
|
3083
3044
|
*/
|
3084
|
-
declare const SkipButton:
|
3045
|
+
declare const SkipButton: React$1.ForwardRefExoticComponent<BoxProps & {
|
3085
3046
|
variant?: _chakra_ui_react.ConditionalValue<"play" | "jumpSkip" | undefined>;
|
3086
3047
|
size?: _chakra_ui_react.ConditionalValue<"sm" | "lg" | undefined>;
|
3087
3048
|
} & {
|
3088
|
-
children?:
|
3049
|
+
children?: React$1.ReactNode | undefined;
|
3089
3050
|
} & {
|
3090
3051
|
onClick: () => void;
|
3091
3052
|
"aria-label"?: string;
|
3092
3053
|
disabled?: boolean;
|
3093
3054
|
direction: "backward" | "forward";
|
3094
3055
|
size: "sm" | "lg";
|
3095
|
-
} &
|
3056
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
3096
3057
|
|
3097
3058
|
type NudgeProps = {
|
3098
3059
|
introducedDate: string;
|
3099
3060
|
} & PopoverRootProps;
|
3100
|
-
declare const Nudge: (props: NudgeProps) =>
|
3061
|
+
declare const Nudge: (props: NudgeProps) => react_jsx_runtime.JSX.Element | null;
|
3101
3062
|
declare const NudgeTrigger: React__default.ForwardRefExoticComponent<Popover$1.TriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
3102
3063
|
declare const NudgeContent: React__default.ForwardRefExoticComponent<Omit<PopoverProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
3103
|
-
declare const NudgeActions: ({
|
3064
|
+
declare const NudgeActions: ({ ...props }: BoxProps) => react_jsx_runtime.JSX.Element;
|
3104
3065
|
declare const NudgeWizardStep: {
|
3105
|
-
({ children }: PropsWithChildren):
|
3066
|
+
({ children }: PropsWithChildren): react_jsx_runtime.JSX.Element;
|
3106
3067
|
displayName: string;
|
3107
3068
|
};
|
3108
3069
|
declare const NudgeCloseTrigger: React__default.ForwardRefExoticComponent<Popover$1.TriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
@@ -3118,7 +3079,7 @@ declare const PaginationEllipsis: React$1.ForwardRefExoticComponent<Pagination$1
|
|
3118
3079
|
declare const PaginationItem: React$1.ForwardRefExoticComponent<Pagination$1.ItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
3119
3080
|
declare const PaginationPrevTrigger: React$1.ForwardRefExoticComponent<Pagination$1.PrevTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
3120
3081
|
declare const PaginationNextTrigger: React$1.ForwardRefExoticComponent<Pagination$1.NextTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
3121
|
-
declare const PaginationItems: (props: React$1.HTMLAttributes<HTMLElement> & {}) =>
|
3082
|
+
declare const PaginationItems: (props: React$1.HTMLAttributes<HTMLElement> & {}) => react_jsx_runtime.JSX.Element;
|
3122
3083
|
|
3123
3084
|
declare const Popover: React__default.FC<Popover$1.RootProps>;
|
3124
3085
|
declare const PopoverTrigger: React__default.ForwardRefExoticComponent<Popover$1.TriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
@@ -3199,7 +3160,7 @@ import { theme } from '../../../../apps/docs/app/features/portable-text/code-blo
|
|
3199
3160
|
* );
|
3200
3161
|
* ```
|
3201
3162
|
*/
|
3202
|
-
declare const SporProvider: ({ language, theme, children, }: SporProviderProps) =>
|
3163
|
+
declare const SporProvider: ({ language, theme, children, }: SporProviderProps) => react_jsx_runtime.JSX.Element;
|
3203
3164
|
|
3204
3165
|
declare const stepperSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "title" | "closeButton" | "container" | "innerContainer" | "stepCounter" | "stepContainer" | "stepButton" | "stepNumber" | "stepTitle" | "backButton", {
|
3205
3166
|
variant: {
|
@@ -3254,10 +3215,10 @@ type StepperVariantProps = RecipeVariantProps<typeof stepperSlotRecipe>;
|
|
3254
3215
|
* />
|
3255
3216
|
* ```
|
3256
3217
|
**/
|
3257
|
-
declare const Stepper:
|
3218
|
+
declare const Stepper: React$1.ForwardRefExoticComponent<{
|
3258
3219
|
variant?: _chakra_ui_react.ConditionalValue<"core" | "accent" | undefined>;
|
3259
3220
|
} & {
|
3260
|
-
children?:
|
3221
|
+
children?: React$1.ReactNode | undefined;
|
3261
3222
|
} & {
|
3262
3223
|
/** Callback for when a step is clicked */
|
3263
3224
|
onClick: (clickedStep: number) => void;
|
@@ -3284,7 +3245,7 @@ declare const Stepper: React__default.ForwardRefExoticComponent<{
|
|
3284
3245
|
variant: "core" | "accent";
|
3285
3246
|
/** Disables all clicks */
|
3286
3247
|
disabled?: boolean;
|
3287
|
-
} &
|
3248
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
3288
3249
|
|
3289
3250
|
type StepperStepProps = PropsWithChildren<StepperVariantProps> & {
|
3290
3251
|
children: React__default.ReactNode;
|
@@ -3292,7 +3253,7 @@ type StepperStepProps = PropsWithChildren<StepperVariantProps> & {
|
|
3292
3253
|
variant: "core" | "accent";
|
3293
3254
|
disabled?: boolean;
|
3294
3255
|
};
|
3295
|
-
declare const StepperStep: ({ children, stepNumber, variant, disabled: disabledOverride, }: StepperStepProps) =>
|
3256
|
+
declare const StepperStep: ({ children, stepNumber, variant, disabled: disabledOverride, }: StepperStepProps) => react_jsx_runtime.JSX.Element;
|
3296
3257
|
|
3297
3258
|
declare const tabsSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "indicator" | "content" | "list" | "trigger", {
|
3298
3259
|
fitted: {
|
@@ -3682,16 +3643,16 @@ type TableProps = Exclude<TableRootProps, "variant" | "colorPalette"> & PropsWit
|
|
3682
3643
|
* </Table>
|
3683
3644
|
* ```
|
3684
3645
|
*/
|
3685
|
-
declare const Table:
|
3646
|
+
declare const Table: React$1.ForwardRefExoticComponent<Table$1.RootProps & {
|
3686
3647
|
colorPalette?: _chakra_ui_react.ConditionalValue<"white" | "green" | "grey" | undefined>;
|
3687
3648
|
variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | undefined>;
|
3688
3649
|
size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | undefined>;
|
3689
3650
|
} & {
|
3690
|
-
children?:
|
3651
|
+
children?: React$1.ReactNode | undefined;
|
3691
3652
|
} & {
|
3692
3653
|
variant?: "ghost" | "core";
|
3693
3654
|
colorPalette?: "grey" | "green" | "white";
|
3694
|
-
} &
|
3655
|
+
} & React$1.RefAttributes<HTMLTableElement>>;
|
3695
3656
|
|
3696
3657
|
declare const themes: {
|
3697
3658
|
VyDigital: _chakra_ui_react.SystemContext;
|
@@ -3721,9 +3682,9 @@ declare const createToast: ({ text, variant, id, duration, }: ToastProps) => str
|
|
3721
3682
|
type BadgeProps = BadgeProps$1 & {
|
3722
3683
|
icon?: IconComponent;
|
3723
3684
|
};
|
3724
|
-
declare const Badge:
|
3685
|
+
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps$1 & {
|
3725
3686
|
icon?: IconComponent;
|
3726
|
-
} &
|
3687
|
+
} & React$1.RefAttributes<HTMLSpanElement>>;
|
3727
3688
|
|
3728
3689
|
declare const Code: React__default.ForwardRefExoticComponent<{
|
3729
3690
|
colorPalette?: _chakra_ui_react.ConditionalValue<undefined>;
|
@@ -3760,14 +3721,14 @@ type HeadingProps = Omit<HeadingProps$1, "textStyle" | "as"> & {
|
|
3760
3721
|
* <Heading as="h1" autoId>Page heading</Heading> // Will set id="page-heading"
|
3761
3722
|
* ```
|
3762
3723
|
*/
|
3763
|
-
declare const Heading:
|
3724
|
+
declare const Heading: React$1.ForwardRefExoticComponent<Omit<HeadingProps$1, "textStyle" | "as"> & {
|
3764
3725
|
/** The heading level, e.g. h1, h2, h3... **/
|
3765
3726
|
as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
3766
3727
|
/** The size and style of the heading. Defaults to xl-display */
|
3767
3728
|
variant?: ConditionalValue<"sm" | "md" | "lg" | "xxl" | "xl-display" | "xl-sans" | "xs">;
|
3768
3729
|
/** If true, generate an ID based on the children */
|
3769
3730
|
autoId?: boolean;
|
3770
|
-
} &
|
3731
|
+
} & React$1.RefAttributes<HTMLHeadingElement>>;
|
3771
3732
|
|
3772
3733
|
type TextProps = Omit<TextProps$1, "textStyle"> & {
|
3773
3734
|
/** The size and style of the text.
|
@@ -3783,13 +3744,13 @@ type TextProps = Omit<TextProps$1, "textStyle"> & {
|
|
3783
3744
|
* <Text>Welcome to this paragraph of text.</Text>
|
3784
3745
|
* ```
|
3785
3746
|
*/
|
3786
|
-
declare const Text:
|
3747
|
+
declare const Text: React$1.ForwardRefExoticComponent<Omit<TextProps$1, "textStyle"> & {
|
3787
3748
|
/** The size and style of the text.
|
3788
3749
|
*
|
3789
3750
|
* Defaults to "sm"
|
3790
3751
|
* textStyle values are: "sm" | "md" | "lg" | "2xl" | "xl-display" | "xl-sans" | "xs" */
|
3791
3752
|
variant?: TextProps$1["textStyle"];
|
3792
|
-
} &
|
3753
|
+
} & React$1.RefAttributes<HTMLParagraphElement>>;
|
3793
3754
|
|
3794
3755
|
/**
|
3795
3756
|
* Makes a slug-version of any string.
|
@@ -3802,4 +3763,4 @@ declare const Text: React__default.ForwardRefExoticComponent<Omit<TextProps$1, "
|
|
3802
3763
|
**/
|
3803
3764
|
declare function slugify(text: string | string[], maxLength?: number): string;
|
3804
3765
|
|
3805
|
-
export { Accordion, AccordionItem, AccordionItemContent, AccordionItemTrigger, Alert, type AlertProps, AttachedInputs, type AttachedInputsProps, Badge, type BadgeProps, Brand, Breadcrumb,
|
3766
|
+
export { Accordion, AccordionItem, AccordionItemContent, AccordionItemTrigger, Alert, type AlertProps, AttachedInputs, type AttachedInputsProps, Badge, type BadgeProps, Brand, Breadcrumb, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonVariantProps, CardSelect, CardSelectContent, CardSelectTrigger, type CardSelectTriggerProps, CargonetLogo, type CargonetLogoProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, ChoiceChip, type ChoiceChipProps, Clipboard, ClipboardButton, CloseButton, type CloseButtonProps, CloseDrawerLine, Code, ColorInlineLoader, type ColorInlineLoaderProps, type ColorMode, ColorModeButton, ColorModeIcon, ColorModeProvider, type ColorModeProviderProps, ColorSpinner, type ColorSpinnerProps, Combobox, type ComboboxProps, ContentLoader, type ContentLoaderProps, type CountryCodeAndPhoneNumber, DarkFullScreenLoader, DarkInlineLoader, type DarkInlineLoaderProps, DarkSpinner, type DarkSpinnerProps, DatePicker, type DatePickerVariantProps, DateRangePicker, DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger, Drawer, DrawerActionTrigger, DrawerBackTrigger, DrawerBackdrop, DrawerBody, DrawerCloseTrigger, DrawerContent, DrawerFooter, DrawerFullScreenHeader, DrawerHeader, DrawerTitle, DrawerTrigger, Expandable, ExpandableAlert, ExpandableItem, Field, FieldErrorText, FieldLabel, type FieldProps, Fieldset, FieldsetContent, FieldsetErrorText, FieldsetHelperText, FieldsetLegend, FloatingActionButton, type GroupVariantProps, Heading, type HeadingProps, IconButton, type IconButtonProps, InfoTag, type InfoTagProps, Input, type InputProps, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, type LightInlineLoaderProps, LightSpinner, type LightSpinnerProps, LineIcon, type LineIconProps, type LinkProps, List, ListBox, ListIndicator, ListItem, type MediaControllerVariantProps, NativeSelect, type NativeSelectdProps, Nudge, NudgeActions, NudgeCloseTrigger, NudgeContent, type NudgeProps, NudgeTrigger, NudgeWizardStep, NumericStepper, type NumericStepperProps, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNextTrigger, PaginationPrevTrigger, PasswordInput, type PasswordInputProps, type PasswordVisibilityProps, PhoneNumberInput, PlayPauseButton, Popover, PopoverContent, type PopoverProps, PopoverTrigger, PressableCard, ProgressBar, type ProgressBarProps, ProgressIndicator, type ProgressIndicatorProps, type ProgressIndicatorVariantProps, ProgressLoader, type ProgressLoaderProps, type ProgressLoaderVariantProps, Radio, RadioCard, RadioCardGroup, RadioCardLabel, RadioGroup, type RadioProps, SearchInput, type SearchInputProps, Select, SelectContent, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, type SelectProps, SelectRoot, SelectTrigger, SelectValueText, Separator, ServiceAlert, Skeleton, SkeletonCircle, type SkeletonCircleProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, SkipButton, type SpinnerProps, SporProvider, StaticCard, type StaticCardProps, Stepper, StepperStep, type StepperVariantProps, SvgBox, Switch, type SwitchProps, Table, type TableProps, Tabs, TabsContent, TabsIndicator, TabsList, type TabsProps, TabsTrigger, Text, TextLink, type TextProps, Textarea, type TextareaProps, TimePicker, type TranslationObject, type Translations, TravelTag, type TravelTagProps, type UseColorModeReturn, VyLogo, VyLogoPride, type VyLogoPrideProps, createTexts, createToast, fontFaces, slugify, system, themes, useColorMode, useColorModeValue, useTranslation };
|