@vygruppen/spor-react 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -75,7 +75,7 @@ type ExpandableProps = AccordionProps & {
75
75
  * </Expandable>
76
76
  * ```
77
77
  */
78
- declare const Expandable: ({ children, headingLevel, title, leftIcon, size, ...rest }: ExpandableProps) => JSX.Element;
78
+ declare const Expandable: ({ children, headingLevel, title, leftIcon, size, ...rest }: ExpandableProps) => React__default.JSX.Element;
79
79
  type ExpandableItemProps = AccordionItemProps & {
80
80
  /** The hidden content */
81
81
  children: React__default.ReactNode;
@@ -106,7 +106,7 @@ type ExpandableItemProps = AccordionItemProps & {
106
106
  *
107
107
  * If you need even more control, you can put together your own expandable with the `Accordion`, `AccordionItem`, `AccordionButton`, `AccordionIcon` and `AccordionPanel` components.
108
108
  */
109
- declare const ExpandableItem: ({ children, title, headingLevel, leftIcon, ...rest }: ExpandableItemProps) => JSX.Element;
109
+ declare const ExpandableItem: ({ children, title, headingLevel, leftIcon, ...rest }: ExpandableItemProps) => React__default.JSX.Element;
110
110
 
111
111
  type BaseAlertProps = BoxProps & {
112
112
  /** The color scheme and icon of the alert */
@@ -141,7 +141,7 @@ type ClosableAlertProps = BaseAlertProps & {
141
141
  * <Text>Some info here</Text>
142
142
  * </ClosableAlert>
143
143
  */
144
- declare const ClosableAlert: ({ variant, children, onClose: externalOnClose, }: ClosableAlertProps) => JSX.Element | null;
144
+ declare const ClosableAlert: ({ variant, children, onClose: externalOnClose, }: ClosableAlertProps) => React__default.JSX.Element | null;
145
145
 
146
146
  type ExpandableAlertProps = BaseAlertProps & {
147
147
  /** The title string */
@@ -167,7 +167,7 @@ type ExpandableAlertProps = BaseAlertProps & {
167
167
  * </ExpandableAlert>
168
168
  * ```
169
169
  */
170
- declare const ExpandableAlert: ({ variant, children, title, headingLevel, defaultOpen, onToggle, }: ExpandableAlertProps) => JSX.Element;
170
+ declare const ExpandableAlert: ({ variant, children, title, headingLevel, defaultOpen, onToggle, }: ExpandableAlertProps) => React__default.JSX.Element;
171
171
 
172
172
  type StaticAlertProps = BaseAlertProps;
173
173
  /**
@@ -181,7 +181,7 @@ type StaticAlertProps = BaseAlertProps;
181
181
  * </StaticAlert>
182
182
  * ```
183
183
  */
184
- declare const StaticAlert: ({ children, ...props }: StaticAlertProps) => JSX.Element;
184
+ declare const StaticAlert: ({ children, ...props }: StaticAlertProps) => React__default.JSX.Element;
185
185
 
186
186
  type ButtonProps = Exclude<ButtonProps$1, "colorScheme" | "loadingText" | "size" | "variant"> & {
187
187
  /**
@@ -336,7 +336,7 @@ type FloatingActionButtonProps = BoxProps & {
336
336
  * placement="bottom right"
337
337
  * />
338
338
  */
339
- declare const FloatingActionButton: ({ children, icon, variant, isTextVisible: externalIsTextVisible, placement, ...props }: FloatingActionButtonProps) => JSX.Element;
339
+ declare const FloatingActionButton: ({ children, icon, variant, isTextVisible: externalIsTextVisible, placement, ...props }: FloatingActionButtonProps) => React__default.JSX.Element;
340
340
 
341
341
  type DividerProps = BoxProps;
342
342
  /** A dividing line, used to divide content.
@@ -432,7 +432,7 @@ type DatePickerProps = AriaDatePickerProps<DateValue> & Pick<BoxProps, "minHeigh
432
432
  * <DatePicker label="Dato" variant="simple" />
433
433
  * ```
434
434
  */
435
- declare function DatePicker({ variant, errorMessage, minHeight, showYearNavigation, ...props }: DatePickerProps): JSX.Element;
435
+ declare function DatePicker({ variant, errorMessage, minHeight, showYearNavigation, ...props }: DatePickerProps): React__default.JSX.Element;
436
436
 
437
437
  type DateRangePickerProps = AriaDateRangePickerProps<DateValue> & Pick<BoxProps, "minHeight"> & {
438
438
  startLabel?: string;
@@ -450,7 +450,7 @@ type DateRangePickerProps = AriaDateRangePickerProps<DateValue> & Pick<BoxProps,
450
450
  * <DateRangePicker startLabel="From" startName="from" endLabel="To" endName="to" variant="simple" />
451
451
  * ```
452
452
  */
453
- declare function DateRangePicker({ variant, minHeight, startName, endName, ...props }: DateRangePickerProps): JSX.Element;
453
+ declare function DateRangePicker({ variant, minHeight, startName, endName, ...props }: DateRangePickerProps): React__default.JSX.Element;
454
454
 
455
455
  type TimePickerProps = Omit<BoxProps, "defaultValue"> & {
456
456
  /** The label. Defaults to a localized version of "Time" */
@@ -497,7 +497,7 @@ type TimePickerProps = Omit<BoxProps, "defaultValue"> & {
497
497
  *
498
498
  * @see https://spor.vy.no/komponenter/timepicker
499
499
  */
500
- declare const TimePicker: ({ label: externalLabel, value, defaultValue, onChange, minuteInterval, isDisabled: isDisabledExternally, name, ...boxProps }: TimePickerProps) => JSX.Element;
500
+ declare const TimePicker: ({ label: externalLabel, value, defaultValue, onChange, minuteInterval, isDisabled: isDisabledExternally, name, ...boxProps }: TimePickerProps) => React__default.JSX.Element;
501
501
 
502
502
  declare enum Language {
503
503
  NorwegianBokmal = "nb",
@@ -545,7 +545,7 @@ type AttachedInputsProps = FlexProps;
545
545
  * </AttachedInputs>
546
546
  * ```
547
547
  */
548
- declare const AttachedInputs: ({ flexDirection, ...rest }: AttachedInputsProps) => JSX.Element;
548
+ declare const AttachedInputs: ({ flexDirection, ...rest }: AttachedInputsProps) => React__default.JSX.Element;
549
549
 
550
550
  type CardSelectProps = BoxProps & {
551
551
  /** The design of the trigger button.
@@ -630,7 +630,7 @@ type CheckboxGroupProps = Exclude<CheckboxGroupProps$1, "colorScheme" | "size" |
630
630
  * <Checkbox>First Class</Checkbox>
631
631
  * </CheckboxGroup>
632
632
  */
633
- declare const CheckboxGroup: ({ direction, children, ...props }: CheckboxGroupProps) => JSX.Element;
633
+ declare const CheckboxGroup: ({ direction, children, ...props }: CheckboxGroupProps) => React__default.JSX.Element;
634
634
 
635
635
  type ChoiceChipProps = {
636
636
  onChange?: (value: ChangeEvent<HTMLInputElement>) => void;
@@ -677,6 +677,48 @@ type ChoiceChipProps = {
677
677
  */
678
678
  declare const ChoiceChip: _chakra_ui_system_dist_system_types.ComponentWithAs<_chakra_ui_system_dist_system_types.As, ChoiceChipProps>;
679
679
 
680
+ type CounterProps = {
681
+ /** The name of the input field */
682
+ name?: string;
683
+ /** The current value */
684
+ value?: number;
685
+ /** A default value, if uncontrolled */
686
+ defaultValue?: number;
687
+ /** Callback for when the value changes */
688
+ onChange?: (value: number) => void;
689
+ /** Optional minimum value. Defaults to 0 */
690
+ minValue?: number;
691
+ /** Optional maximum value. Defaults to 99 */
692
+ maxValue?: number;
693
+ /** Whether the counter is disabled or not */
694
+ isDisabled?: boolean;
695
+ } & BoxProps;
696
+ /** A simple counter component
697
+ *
698
+ * Allows you to choose a given integer value, like for example the number of
699
+ * adults on your journey.
700
+ *
701
+ * ```tsx
702
+ * <Counter value={value} onChange={setValue} />
703
+ * ```
704
+ *
705
+ * You can also set a minimum and/or maximum value:
706
+ *
707
+ * ```tsx
708
+ * <Counter value={value} onChange={setValue} minValue={1} maxValue={10} />
709
+ * ```
710
+ *
711
+ * You can use the Counter inside of a FormControl component to get IDs etc linked up automatically:
712
+ *
713
+ * ```tsx
714
+ * <FormControl>
715
+ * <FormLabel>Number of adults</FormLabel>
716
+ * <Counter />
717
+ * </FormControl>
718
+ * ```
719
+ */
720
+ declare function Counter({ name: nameProp, id: idProp, value: valueProp, defaultValue, onChange: onChangeProp, minValue, maxValue, isDisabled, ...boxProps }: CounterProps): React__default.JSX.Element;
721
+
680
722
  type FormControlProps = FormControlProps$1;
681
723
  declare const FormControl: _chakra_ui_system_dist_system_types.ComponentWithAs<"div", FormControlProps$1>;
682
724
 
@@ -711,7 +753,7 @@ type FormErrorMessageProps = BoxProps & {
711
753
  *
712
754
  * @see https://spor.vy.no/komponenter/skjemaelementer
713
755
  */
714
- declare const FormErrorMessage: ({ children, ...boxProps }: FormErrorMessageProps) => JSX.Element | null;
756
+ declare const FormErrorMessage: ({ children, ...boxProps }: FormErrorMessageProps) => React__default.JSX.Element | null;
715
757
 
716
758
  type FormLabelProps = FormLabelProps$1;
717
759
  declare const FormLabel: _chakra_ui_system_dist_system_types.ComponentWithAs<"label", FormLabelProps$1>;
@@ -851,7 +893,7 @@ type InfoSelectProps<T> = {
851
893
  */
852
894
  declare function InfoSelect<T extends {
853
895
  key: string;
854
- }>({ placeholder, width, height, onChange, value, isLabelSrOnly, defaultValue, ...props }: InfoSelectProps<T>): JSX.Element;
896
+ }>({ placeholder, width, height, onChange, value, isLabelSrOnly, defaultValue, ...props }: InfoSelectProps<T>): React__default.JSX.Element;
855
897
 
856
898
  type InputProps = Exclude<InputProps$1, "variant" | "size"> & {
857
899
  /** The input's label */
@@ -928,7 +970,7 @@ declare const ListBox: _chakra_ui_system_dist_system_types.ComponentWithAs<"ul",
928
970
  */
929
971
  declare function SelectItemLabel({ children }: {
930
972
  children: React__default.ReactNode;
931
- }): JSX.Element;
973
+ }): React__default.JSX.Element;
932
974
  /**
933
975
  * Renders a description for a SelectItem.
934
976
  *
@@ -936,7 +978,7 @@ declare function SelectItemLabel({ children }: {
936
978
  */
937
979
  declare function SelectItemDescription({ children, }: {
938
980
  children: React__default.ReactNode;
939
- }): JSX.Element;
981
+ }): React__default.JSX.Element;
940
982
 
941
983
  type NativeSelectProps = Exclude<SelectProps, "colorScheme" | "variant" | "size"> & {
942
984
  label?: string;
@@ -1142,7 +1184,7 @@ type InfoTagProps = TagProps;
1142
1184
  *
1143
1185
  * @see https://spor.vy.no/komponenter/linjetags
1144
1186
  */
1145
- declare const InfoTag: ({ variant, size, title, description, }: InfoTagProps) => JSX.Element;
1187
+ declare const InfoTag: ({ variant, size, title, description, }: InfoTagProps) => React__default.JSX.Element;
1146
1188
 
1147
1189
  type LineIconProps = BoxProps & {
1148
1190
  variant: TagProps["variant"];
@@ -1165,7 +1207,7 @@ type LineIconProps = BoxProps & {
1165
1207
  *
1166
1208
  * @see https://spor.vy.no/komponenter/linjetags
1167
1209
  */
1168
- declare const LineIcon: ({ variant, size, sx, ...rest }: LineIconProps) => JSX.Element | null;
1210
+ declare const LineIcon: ({ variant, size, sx, ...rest }: LineIconProps) => React__default.JSX.Element | null;
1169
1211
 
1170
1212
  type TravelTagProps = TagProps & BoxProps & {
1171
1213
  deviationLevel?: "critical" | "major" | "minor" | "info" | "none";
@@ -1225,7 +1267,7 @@ type ColorInlineLoaderProps = Exclude<BoxProps, "children">;
1225
1267
  *
1226
1268
  * 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.
1227
1269
  */
1228
- declare const ColorInlineLoader: ({ width, maxWidth, ...props }: ColorInlineLoaderProps) => JSX.Element;
1270
+ declare const ColorInlineLoader: ({ width, maxWidth, ...props }: ColorInlineLoaderProps) => React__default.JSX.Element;
1229
1271
 
1230
1272
  type SpinnerProps = BoxProps;
1231
1273
  type ColorSpinnerProps = SpinnerProps;
@@ -1244,23 +1286,23 @@ type ColorSpinnerProps = SpinnerProps;
1244
1286
  * Hold your horses
1245
1287
  * </ColorSpinner>
1246
1288
  */
1247
- declare const ColorSpinner: ({ children, width, maxWidth, ...props }: SpinnerProps) => JSX.Element;
1289
+ declare const ColorSpinner: ({ children, width, maxWidth, ...props }: SpinnerProps) => React__default.JSX.Element;
1248
1290
 
1249
1291
  type ContentLoaderProps = BoxProps;
1250
1292
  /**
1251
1293
  * ContentLoader is a component that renders a loading animation.
1252
1294
  * It should mostly be used for
1253
1295
  */
1254
- declare const ContentLoader: ({ children, ...props }: ContentLoaderProps) => JSX.Element;
1296
+ declare const ContentLoader: ({ children, ...props }: ContentLoaderProps) => React__default.JSX.Element;
1255
1297
 
1256
1298
  type DarkFullScreenLoaderProps = BoxProps;
1257
- declare const DarkFullScreenLoader: ({ width, maxWidth, ...props }: DarkFullScreenLoaderProps) => JSX.Element;
1299
+ declare const DarkFullScreenLoader: ({ width, maxWidth, ...props }: DarkFullScreenLoaderProps) => React__default.JSX.Element;
1258
1300
 
1259
1301
  type DarkInlineLoaderProps = Exclude<BoxProps, "children">;
1260
1302
  /**
1261
1303
  * Loading component that works well in bounded contexts, like inside a button.
1262
1304
  */
1263
- declare const DarkInlineLoader: ({ width, maxWidth, ...props }: DarkInlineLoaderProps) => JSX.Element;
1305
+ declare const DarkInlineLoader: ({ width, maxWidth, ...props }: DarkInlineLoaderProps) => React__default.JSX.Element;
1264
1306
 
1265
1307
  type DarkSpinnerProps = BoxProps;
1266
1308
  /** A circular spinner
@@ -1278,16 +1320,16 @@ type DarkSpinnerProps = BoxProps;
1278
1320
  * Hold your horses
1279
1321
  * </DarkSpinner>
1280
1322
  */
1281
- declare const DarkSpinner: ({ children, width, maxWidth, ...props }: DarkSpinnerProps) => JSX.Element;
1323
+ declare const DarkSpinner: ({ children, width, maxWidth, ...props }: DarkSpinnerProps) => React__default.JSX.Element;
1282
1324
 
1283
1325
  type LightFullScreenLoaderProps = BoxProps;
1284
- declare const LightFullScreenLoader: ({ width, maxWidth, ...props }: LightFullScreenLoaderProps) => JSX.Element;
1326
+ declare const LightFullScreenLoader: ({ width, maxWidth, ...props }: LightFullScreenLoaderProps) => React__default.JSX.Element;
1285
1327
 
1286
1328
  type LightInlineLoaderProps = Exclude<BoxProps, "children">;
1287
1329
  /**
1288
1330
  * Loading component that works well in bounded contexts, like inside a button.
1289
1331
  */
1290
- declare const LightInlineLoader: ({ width, maxWidth, ...props }: LightInlineLoaderProps) => JSX.Element;
1332
+ declare const LightInlineLoader: ({ width, maxWidth, ...props }: LightInlineLoaderProps) => React__default.JSX.Element;
1291
1333
 
1292
1334
  type LightSpinnerProps = BoxProps;
1293
1335
  /** A circular spinner
@@ -1305,7 +1347,7 @@ type LightSpinnerProps = BoxProps;
1305
1347
  * Hold your horses
1306
1348
  * </LightSpinner>
1307
1349
  */
1308
- declare const LightSpinner: ({ children, width, maxWidth, ...props }: LightSpinnerProps) => JSX.Element;
1350
+ declare const LightSpinner: ({ children, width, maxWidth, ...props }: LightSpinnerProps) => React__default.JSX.Element;
1309
1351
 
1310
1352
  type ProgressBarProps = BoxProps & {
1311
1353
  /** The percentage of progress made.
@@ -1361,7 +1403,7 @@ type ProgressBarProps = BoxProps & {
1361
1403
  * <ProgressBar value={50} aria-label="Loading..." />
1362
1404
  * ```
1363
1405
  */
1364
- declare const ProgressBar: ({ value, label, labelRotationDelay, height, width, "aria-label": ariaLabel, ...rest }: ProgressBarProps) => JSX.Element;
1406
+ declare const ProgressBar: ({ value, label, labelRotationDelay, height, width, "aria-label": ariaLabel, ...rest }: ProgressBarProps) => React__default.JSX.Element;
1365
1407
 
1366
1408
  type ProgressLoaderProps = BoxProps & {
1367
1409
  /** The percentage of progress made.
@@ -1413,7 +1455,7 @@ type ProgressLoaderProps = BoxProps & {
1413
1455
  * <ProgressLoader value={50} aria-label="Fetching your trips..." />
1414
1456
  * ```
1415
1457
  */
1416
- declare const ProgressLoader: ({ value, label, labelRotationDelay, "aria-label": ariaLabel, width, ...rest }: ProgressLoaderProps) => JSX.Element;
1458
+ declare const ProgressLoader: ({ value, label, labelRotationDelay, "aria-label": ariaLabel, width, ...rest }: ProgressLoaderProps) => React__default.JSX.Element;
1417
1459
 
1418
1460
  type SkeletonProps = BoxProps & {
1419
1461
  isLoaded?: boolean;
@@ -1427,13 +1469,13 @@ type SkeletonCircleProps = BoxProps;
1427
1469
  /**
1428
1470
  * SkeletonCircle renders a loading animation for a given circle. It works great as a placeholder to avoid layout shifts.
1429
1471
  */
1430
- declare const SkeletonCircle: (props: SkeletonCircleProps) => JSX.Element;
1472
+ declare const SkeletonCircle: (props: SkeletonCircleProps) => React__default.JSX.Element;
1431
1473
 
1432
1474
  type SkeletonTextProps = BoxProps;
1433
1475
  /**
1434
1476
  * SkeletonText renders a loading animation for a given text. It works great as a placeholder to avoid layout shifts.
1435
1477
  */
1436
- declare const SkeletonText: (props: SkeletonTextProps) => JSX.Element;
1478
+ declare const SkeletonText: (props: SkeletonTextProps) => React__default.JSX.Element;
1437
1479
 
1438
1480
  type VyLogoProps = {
1439
1481
  /** The color of the logo
@@ -1443,7 +1485,7 @@ type VyLogoProps = {
1443
1485
  */
1444
1486
  colorScheme: "light" | "dark";
1445
1487
  } & BoxProps;
1446
- declare const VyLogo: ({ colorScheme, ...boxProps }: VyLogoProps) => JSX.Element;
1488
+ declare const VyLogo: ({ colorScheme, ...boxProps }: VyLogoProps) => React__default.JSX.Element;
1447
1489
 
1448
1490
  type JumpButtonProps = BoxProps & {
1449
1491
  onClick: () => void;
@@ -1463,7 +1505,7 @@ type JumpButtonProps = BoxProps & {
1463
1505
  * <JumpButton direction="forward" onClick={onGoForward} />
1464
1506
  * ```
1465
1507
  */
1466
- declare const JumpButton: ({ direction, isDisabled, size, ...props }: JumpButtonProps) => JSX.Element;
1508
+ declare const JumpButton: ({ direction, isDisabled, size, ...props }: JumpButtonProps) => React__default.JSX.Element;
1467
1509
 
1468
1510
  type PlayPauseButtonProps = BoxProps & {
1469
1511
  onClick: () => void;
@@ -1483,7 +1525,7 @@ type PlayPauseButtonProps = BoxProps & {
1483
1525
  * <PlayPauseButton isPlaying={isPlaying} onClick={onPlaybackClick} />
1484
1526
  * ```
1485
1527
  */
1486
- declare const PlayPauseButton: ({ size, isPlaying, isDisabled, ...props }: PlayPauseButtonProps) => JSX.Element;
1528
+ declare const PlayPauseButton: ({ size, isPlaying, isDisabled, ...props }: PlayPauseButtonProps) => React__default.JSX.Element;
1487
1529
 
1488
1530
  type SkipButtonProps = BoxProps & {
1489
1531
  onClick: () => void;
@@ -1503,7 +1545,7 @@ type SkipButtonProps = BoxProps & {
1503
1545
  * <SkipButton direction="forward" onClick={onNextChapter} />
1504
1546
  * ```
1505
1547
  */
1506
- declare const SkipButton: ({ direction, isDisabled, size, ...props }: SkipButtonProps) => JSX.Element;
1548
+ declare const SkipButton: ({ direction, isDisabled, size, ...props }: SkipButtonProps) => React__default.JSX.Element;
1507
1549
 
1508
1550
  type ModalHeaderProps = ModalHeaderProps$1 & {
1509
1551
  size?: "sm" | "lg";
@@ -1516,7 +1558,7 @@ type ModalHeaderProps = ModalHeaderProps$1 & {
1516
1558
  declare const ModalHeader: _chakra_ui_system_dist_system_types.ComponentWithAs<"header", ModalHeaderProps>;
1517
1559
 
1518
1560
  type DrawerProps = DrawerProps$1;
1519
- declare const Drawer: (props: DrawerProps) => JSX.Element;
1561
+ declare const Drawer: (props: DrawerProps) => React__default.JSX.Element;
1520
1562
  declare const DrawerContent: _chakra_ui_system_dist_system_types.ComponentWithAs<any, DrawerContentProps>;
1521
1563
 
1522
1564
  type SimpleDrawerProps = {
@@ -1536,14 +1578,14 @@ type SimpleDrawerProps = {
1536
1578
  *
1537
1579
  * For more advanced use cases, see the [Drawer](./Drawer.tsx) component.
1538
1580
  */
1539
- declare const SimpleDrawer: ({ placement, children, title, ...props }: SimpleDrawerProps) => JSX.Element;
1581
+ declare const SimpleDrawer: ({ placement, children, title, ...props }: SimpleDrawerProps) => React__default.JSX.Element;
1540
1582
 
1541
1583
  type PopoverWizardProps = {
1542
1584
  /** Each child will be their own step */
1543
1585
  children: React.ReactNode;
1544
1586
  };
1545
1587
  /** A popover wizard is great for showing new features one by one */
1546
- declare const PopoverWizardBody: ({ children }: PopoverWizardProps) => JSX.Element;
1588
+ declare const PopoverWizardBody: ({ children }: PopoverWizardProps) => React.JSX.Element;
1547
1589
 
1548
1590
  type SimplePopoverProps = PopoverProps & {
1549
1591
  /**
@@ -1574,7 +1616,7 @@ type SimplePopoverProps = PopoverProps & {
1574
1616
  borderRadius?: string;
1575
1617
  };
1576
1618
  /** A basic popover component for basic content */
1577
- declare const SimplePopover: ({ children, triggerElement, onClose, isOpen, defaultIsOpen, placement, size, withCloseButton, borderRadius, ...props }: SimplePopoverProps) => JSX.Element;
1619
+ declare const SimplePopover: ({ children, triggerElement, onClose, isOpen, defaultIsOpen, placement, size, withCloseButton, borderRadius, ...props }: SimplePopoverProps) => React__default.JSX.Element;
1578
1620
 
1579
1621
  type WizardPopoverProps = PopoverProps & {
1580
1622
  /** Steps in the wizard. Each item is its own step */
@@ -1607,7 +1649,7 @@ type WizardPopoverProps = PopoverProps & {
1607
1649
  * </WizardPopover>
1608
1650
  * ```
1609
1651
  */
1610
- declare const WizardPopover: ({ children, triggerElement, withCloseButton, }: WizardPopoverProps) => JSX.Element;
1652
+ declare const WizardPopover: ({ children, triggerElement, withCloseButton, }: WizardPopoverProps) => React.JSX.Element;
1611
1653
 
1612
1654
  type SporProviderProps = ChakraProviderProps & {
1613
1655
  language?: Language;
@@ -1648,7 +1690,7 @@ type SporProviderProps = ChakraProviderProps & {
1648
1690
  * );
1649
1691
  * ```
1650
1692
  */
1651
- declare const SporProvider: ({ theme, language, children, ...props }: SporProviderProps) => JSX.Element;
1693
+ declare const SporProvider: ({ theme, language, children, ...props }: SporProviderProps) => React__default.JSX.Element;
1652
1694
 
1653
1695
  type StepperProps = {
1654
1696
  onClick: (clickedStep: number) => void;
@@ -1671,13 +1713,13 @@ type StepperProps = {
1671
1713
  * />
1672
1714
  * ```
1673
1715
  **/
1674
- declare const Stepper: ({ onClick, steps, activeStep: activeStepAsStringOrNumber, title, colorScheme, }: StepperProps) => JSX.Element;
1716
+ declare const Stepper: ({ onClick, steps, activeStep: activeStepAsStringOrNumber, title, colorScheme, }: StepperProps) => React__default.JSX.Element;
1675
1717
 
1676
1718
  type StepperStepProps = {
1677
1719
  children: React__default.ReactNode;
1678
1720
  stepNumber: number;
1679
1721
  };
1680
- declare const StepperStep: ({ children, stepNumber }: StepperStepProps) => JSX.Element;
1722
+ declare const StepperStep: ({ children, stepNumber }: StepperStepProps) => React__default.JSX.Element;
1681
1723
 
1682
1724
  type TabsProps = Exclude<TabsProps$1, "colorScheme" | "variant" | "orientation" | "size"> & {
1683
1725
  colorScheme: "dark" | "light" | "green" | "grey";
@@ -2032,7 +2074,7 @@ declare const theme: {
2032
2074
  color: string;
2033
2075
  fontWeight: string;
2034
2076
  };
2035
- additional: ({ colorMode }: _chakra_ui_styled_system.StyleFunctionProps) => {
2077
+ additional: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
2036
2078
  _hover: {
2037
2079
  boxShadow: string;
2038
2080
  };
@@ -2048,7 +2090,7 @@ declare const theme: {
2048
2090
  fontWeight: string;
2049
2091
  boxShadow: string;
2050
2092
  };
2051
- ghost: () => {
2093
+ ghost: (props: _chakra_ui_styled_system.StyleFunctionProps) => {
2052
2094
  _hover: {
2053
2095
  backgroundColor: string;
2054
2096
  _disabled: {
@@ -2507,7 +2549,7 @@ declare const theme: {
2507
2549
  } | undefined;
2508
2550
  };
2509
2551
  Datepicker: {
2510
- baseStyle?: {
2552
+ baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
2511
2553
  wrapper: {
2512
2554
  backgroundColor: string;
2513
2555
  boxShadow: string;
@@ -2540,6 +2582,9 @@ declare const theme: {
2540
2582
  color: string;
2541
2583
  margin: number;
2542
2584
  };
2585
+ dateTimeSegment: {
2586
+ color: string;
2587
+ };
2543
2588
  calendarTriggerButton: {
2544
2589
  _invalid: {
2545
2590
  boxShadow: string;
@@ -2547,6 +2592,7 @@ declare const theme: {
2547
2592
  _focus: _chakra_ui_styled_system.SystemStyleObject;
2548
2593
  _focusVisible: _chakra_ui_styled_system.SystemStyleObject;
2549
2594
  "&[data-focus]:not([data-focus-visible])": _chakra_ui_styled_system.SystemStyleObject;
2595
+ backgroundColor: string;
2550
2596
  boxShadow: string;
2551
2597
  width: number;
2552
2598
  display: string;
@@ -2564,6 +2610,19 @@ declare const theme: {
2564
2610
  backgroundColor: string;
2565
2611
  };
2566
2612
  };
2613
+ arrow: {
2614
+ [x: string]: string;
2615
+ };
2616
+ calendar: {
2617
+ backgroundColor: string;
2618
+ color: string;
2619
+ };
2620
+ weekdays: {
2621
+ color: string;
2622
+ };
2623
+ weekend: {
2624
+ color: string;
2625
+ };
2567
2626
  dateCell: {
2568
2627
  _active: {
2569
2628
  backgroundColor: string;
@@ -2608,10 +2667,10 @@ declare const theme: {
2608
2667
  backgroundColor: string;
2609
2668
  };
2610
2669
  };
2611
- } | undefined;
2670
+ }) | undefined;
2612
2671
  sizes?: {
2613
2672
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
2614
- keys: ("dateCell" | "calendarTriggerButton" | "inputLabel" | "wrapper")[];
2673
+ keys: ("dateCell" | "weekdays" | "weekend" | "calendarTriggerButton" | "dateTimeSegment" | "calendar" | "inputLabel" | "wrapper" | "arrow")[];
2615
2674
  }>;
2616
2675
  } | undefined;
2617
2676
  variants?: {
@@ -2631,7 +2690,7 @@ declare const theme: {
2631
2690
  variant?: "simple" | "with-trigger" | undefined;
2632
2691
  colorScheme?: string | undefined;
2633
2692
  } | undefined;
2634
- parts: ("dateCell" | "calendarTriggerButton" | "inputLabel" | "wrapper")[];
2693
+ parts: ("dateCell" | "weekdays" | "weekend" | "calendarTriggerButton" | "dateTimeSegment" | "calendar" | "inputLabel" | "wrapper" | "arrow")[];
2635
2694
  };
2636
2695
  Drawer: {
2637
2696
  baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
@@ -3720,7 +3779,7 @@ declare const theme: {
3720
3779
  } | undefined;
3721
3780
  variants?: {
3722
3781
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
3723
- keys: ("body" | "footer" | "header" | "content" | "closeButton" | "popper" | "arrow")[];
3782
+ keys: ("body" | "footer" | "header" | "content" | "closeButton" | "arrow" | "popper")[];
3724
3783
  }>;
3725
3784
  } | undefined;
3726
3785
  defaultProps?: {
@@ -3728,7 +3787,7 @@ declare const theme: {
3728
3787
  variant?: string | number | undefined;
3729
3788
  colorScheme?: string | undefined;
3730
3789
  } | undefined;
3731
- parts: ("body" | "footer" | "header" | "content" | "closeButton" | "popper" | "arrow")[];
3790
+ parts: ("body" | "footer" | "header" | "content" | "closeButton" | "arrow" | "popper")[];
3732
3791
  };
3733
3792
  Radio: {
3734
3793
  baseStyle?: {
@@ -4004,7 +4063,7 @@ declare const theme: {
4004
4063
  }) | undefined;
4005
4064
  sizes?: {
4006
4065
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
4007
- keys: ("title" | "container" | "closeButton" | "root" | "innerContainer" | "stepNumber" | "backButton" | "stepCounter" | "stepContainer" | "stepButton" | "stepTitle")[];
4066
+ keys: ("title" | "container" | "closeButton" | "root" | "innerContainer" | "backButton" | "stepCounter" | "stepContainer" | "stepButton" | "stepNumber" | "stepTitle")[];
4008
4067
  }>;
4009
4068
  } | undefined;
4010
4069
  variants?: {
@@ -4065,7 +4124,7 @@ declare const theme: {
4065
4124
  variant?: "disabled" | "active" | "completed" | undefined;
4066
4125
  colorScheme?: string | undefined;
4067
4126
  } | undefined;
4068
- parts: ("title" | "container" | "closeButton" | "root" | "innerContainer" | "stepNumber" | "backButton" | "stepCounter" | "stepContainer" | "stepButton" | "stepTitle")[];
4127
+ parts: ("title" | "container" | "closeButton" | "root" | "innerContainer" | "backButton" | "stepCounter" | "stepContainer" | "stepButton" | "stepNumber" | "stepTitle")[];
4069
4128
  };
4070
4129
  Switch: {
4071
4130
  baseStyle?: {
@@ -4456,6 +4515,7 @@ declare const theme: {
4456
4515
  transitionDuration: string;
4457
4516
  width: string;
4458
4517
  height: string;
4518
+ whiteSpace: string;
4459
4519
  } | {
4460
4520
  _selected: {
4461
4521
  backgroundColor: string;
@@ -4530,6 +4590,7 @@ declare const theme: {
4530
4590
  transitionDuration: string;
4531
4591
  width: string;
4532
4592
  height: string;
4593
+ whiteSpace: string;
4533
4594
  };
4534
4595
  tabpanel: {};
4535
4596
  }) | undefined;
@@ -5135,18 +5196,29 @@ declare const theme: {
5135
5196
  Breadcrumb: {
5136
5197
  baseStyle?: {
5137
5198
  link: {
5199
+ [x: string]: string | {
5200
+ cursor: string;
5201
+ _hover: {
5202
+ [x: string]: string;
5203
+ };
5204
+ _focusVisible: {
5205
+ boxShadow: string;
5206
+ };
5207
+ };
5138
5208
  transitionProperty: string;
5139
5209
  transitionDuration: string;
5140
5210
  transitionTimingFunction: string;
5141
- cursor: string;
5142
- textDecoration: string;
5143
5211
  outline: string;
5144
5212
  color: string;
5145
- _hover: {
5146
- textDecoration: string;
5147
- };
5148
- _focusVisible: {
5149
- boxShadow: string;
5213
+ textDecoration: string;
5214
+ "&:not([aria-current=page])": {
5215
+ cursor: string;
5216
+ _hover: {
5217
+ [x: string]: string;
5218
+ };
5219
+ _focusVisible: {
5220
+ boxShadow: string;
5221
+ };
5150
5222
  };
5151
5223
  };
5152
5224
  } | undefined;
@@ -6123,6 +6195,9 @@ declare const theme: {
6123
6195
  Tag: {
6124
6196
  baseStyle?: {
6125
6197
  container: {
6198
+ [x: string]: string | number | {
6199
+ [x: string]: string;
6200
+ };
6126
6201
  fontWeight: string;
6127
6202
  lineHeight: number;
6128
6203
  outline: number;
@@ -6130,8 +6205,12 @@ declare const theme: {
6130
6205
  bg: string;
6131
6206
  boxShadow: string;
6132
6207
  borderRadius: string;
6208
+ minH: string;
6209
+ minW: string;
6210
+ fontSize: string;
6211
+ px: string;
6133
6212
  _focusVisible: {
6134
- boxShadow: string;
6213
+ [x: string]: string;
6135
6214
  };
6136
6215
  };
6137
6216
  label: {
@@ -6166,10 +6245,7 @@ declare const theme: {
6166
6245
  sizes?: {
6167
6246
  sm: {
6168
6247
  container: {
6169
- minH: string;
6170
- minW: string;
6171
- fontSize: string;
6172
- px: string;
6248
+ [x: string]: string;
6173
6249
  };
6174
6250
  closeButton: {
6175
6251
  marginEnd: string;
@@ -6178,18 +6254,12 @@ declare const theme: {
6178
6254
  };
6179
6255
  md: {
6180
6256
  container: {
6181
- minH: string;
6182
- minW: string;
6183
- fontSize: string;
6184
- px: string;
6257
+ [x: string]: string;
6185
6258
  };
6186
6259
  };
6187
6260
  lg: {
6188
6261
  container: {
6189
- minH: string;
6190
- minW: string;
6191
- fontSize: string;
6192
- px: string;
6262
+ [x: string]: string;
6193
6263
  };
6194
6264
  };
6195
6265
  } | undefined;
@@ -6643,10 +6713,18 @@ declare const theme: {
6643
6713
  _light: string;
6644
6714
  _dark: string;
6645
6715
  };
6716
+ "chakra-inverse-text": {
6717
+ _light: string;
6718
+ _dark: string;
6719
+ };
6646
6720
  "chakra-subtle-bg": {
6647
6721
  _light: string;
6648
6722
  _dark: string;
6649
6723
  };
6724
+ "chakra-subtle-text": {
6725
+ _light: string;
6726
+ _dark: string;
6727
+ };
6650
6728
  "chakra-placeholder-color": {
6651
6729
  _light: string;
6652
6730
  _dark: string;
@@ -6773,7 +6851,7 @@ type HeadingProps = Exclude<HeadingProps$1, "textStyle"> & {
6773
6851
  * <Heading as="h1">Page heading</Heading>
6774
6852
  * ```
6775
6853
  */
6776
- declare const Heading: ({ variant, as, ...props }: any) => JSX.Element;
6854
+ declare const Heading: ({ variant, as, ...props }: any) => React__default.JSX.Element;
6777
6855
 
6778
6856
  type TextProps = Omit<TextProps$1, "textStyle"> & {
6779
6857
  /** The size and style of the text.
@@ -6790,4 +6868,4 @@ type TextProps = Omit<TextProps$1, "textStyle"> & {
6790
6868
  */
6791
6869
  declare const Text: _chakra_ui_system_dist_system_types.ComponentWithAs<"p", TextProps>;
6792
6870
 
6793
- export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, ContentLoader, ContentLoaderProps, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, PopoverWizardProps, ProgressBar, ProgressLoader, Radio, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SelectItemDescription, SelectItemLabel, SimpleDrawer, SimpleDrawerProps, SimplePopover, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoProps, WizardPopover, WizardPopoverProps, createTexts, fontFaces, theme, useToast, useTranslation };
6871
+ export { Accordion, AccordionProps, AttachedInputs, Badge, BadgeProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Card, CardProps, CardSelect, Checkbox, CheckboxGroup, CheckboxGroupProps, CheckboxProps, ChoiceChip, ChoiceChipProps, ClosableAlert, CloseButton, CloseButtonProps, Code, CodeProps, ColorInlineLoader, ColorInlineLoaderProps, ColorSpinner, ColorSpinnerProps, ContentLoader, ContentLoaderProps, Counter, DarkFullScreenLoader, DarkInlineLoader, DarkInlineLoaderProps, DarkSpinner, DarkSpinnerProps, DatePicker, DateRangePicker, Divider, DividerProps, Drawer, DrawerContent, ModalHeader as DrawerHeader, Expandable, ExpandableAlert, ExpandableItem, ExpandableItemProps, FloatingActionButton, FormControl, FormControlProps, FormErrorMessage, FormErrorMessageProps, FormLabel, FormLabelProps, Heading, HeadingProps, IconButton, IconButtonProps, InfoSelect, InfoTag, InfoTagProps, Input, InputElementProps, InputLeftElement, InputProps, InputRightElement, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightInlineLoaderProps, LightSpinner, LightSpinnerProps, LineIcon, LineIconProps, ListBox, ModalHeader, ModalHeaderProps, NativeSelect, NativeSelectProps, PasswordInput, PasswordInputProps, PhoneNumberInput, PlayPauseButton, PopoverWizardBody, PopoverWizardProps, ProgressBar, ProgressLoader, Radio, RadioGroup, RadioGroupProps, RadioProps, SearchInput, SearchInputProps, SelectItemDescription, SelectItemLabel, SimpleDrawer, SimpleDrawerProps, SimplePopover, Skeleton, SkeletonCircle, SkeletonCircleProps, SkeletonProps, SkeletonText, SkeletonTextProps, SkipButton, SpinnerProps, SporProvider, Stack, StackProps, StaticAlert, Stepper, StepperStep, Switch, SwitchProps, Table, TableProps, Tabs, TabsProps, Text, TextLink, TextProps, Textarea, TextareaProps, TimePicker, ToastOptions, Translations, TravelTag, TravelTagProps, VyLogo, VyLogoProps, WizardPopover, WizardPopoverProps, createTexts, fontFaces, theme, useToast, useTranslation };