@vygruppen/spor-react 4.0.1 → 4.0.2

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
@@ -294,7 +294,7 @@ type ButtonProps = Exclude<ButtonProps$1, "colorScheme" | "loadingText" | "size"
294
294
  * </Button>
295
295
  * ```
296
296
  *
297
- * @see https://spor.vy.no/komponenter/button
297
+ * @see https://spor.vy.no/components/button
298
298
  */
299
299
  declare const Button: _chakra_ui_system_dist_system_types.ComponentWithAs<"button", ButtonProps>;
300
300
 
@@ -524,7 +524,7 @@ type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & {
524
524
  *
525
525
  * Note that the TimePicker uses the `Time` class to represent the time. This is a class that is part of the `@internationalized/date` package.
526
526
  *
527
- * @see https://spor.vy.no/komponenter/timepicker
527
+ * @see https://spor.vy.no/komponents/timepicker
528
528
  */
529
529
  declare const TimePicker: ({ label: externalLabel, value, defaultValue, onChange, minuteInterval, isDisabled: isDisabledExternally, name, ...boxProps }: TimePickerProps) => React__default.JSX.Element;
530
530
 
@@ -676,7 +676,7 @@ type CardSelectProps = BoxProps & {
676
676
  * </CardSelect>
677
677
  * ```
678
678
  *
679
- * @see https://spor.vy.no/komponenter/card-select
679
+ * @see https://spor.vy.no/components/card-select
680
680
  */
681
681
  declare const CardSelect: _chakra_ui_system_dist_system_types.ComponentWithAs<"button", CardSelectProps>;
682
682
 
@@ -831,7 +831,7 @@ type FormErrorMessageProps = BoxProps & {
831
831
  * </FormControl>
832
832
  * ```
833
833
  *
834
- * @see https://spor.vy.no/komponenter/skjemaelementer
834
+ * @see https://spor.vy.no/components/form-control
835
835
  */
836
836
  declare const FormErrorMessage: ({ children, ...boxProps }: FormErrorMessageProps) => React__default.JSX.Element | null;
837
837
 
@@ -969,7 +969,7 @@ type InfoSelectProps<T extends object> = {
969
969
  * </InfoSelect>
970
970
  * ```
971
971
  *
972
- * @see https://spor.vy.no/komponenter/info-select
972
+ * @see https://spor.vy.no/components/info-select
973
973
  */
974
974
  declare function InfoSelect<T extends object>({ placeholder, width, height, onChange, value, isLabelSrOnly, defaultValue, ...props }: InfoSelectProps<T>): React__default.JSX.Element;
975
975
 
@@ -1343,7 +1343,7 @@ type InfoTagProps = TagProps;
1343
1343
  * />
1344
1344
  * ```
1345
1345
  *
1346
- * @see https://spor.vy.no/komponenter/linjetags
1346
+ * @see https://spor.vy.no/components/line-tags
1347
1347
  */
1348
1348
  declare const InfoTag: ({ variant, size, title, description, }: InfoTagProps) => React__default.JSX.Element;
1349
1349
 
@@ -1366,7 +1366,7 @@ type LineIconProps = BoxProps & {
1366
1366
  * <LineIcon variant="subway" size="lg" />
1367
1367
  * ```
1368
1368
  *
1369
- * @see https://spor.vy.no/komponenter/linjetags
1369
+ * @see https://spor.vy.no/components/line-tags
1370
1370
  */
1371
1371
  declare const LineIcon: ({ variant, size, sx, ...rest }: LineIconProps) => React__default.JSX.Element | null;
1372
1372
 
@@ -1409,7 +1409,7 @@ type TravelTagProps = TagProps & BoxProps & {
1409
1409
  * />
1410
1410
  * ```
1411
1411
  *
1412
- * @see https://spor.vy.no/komponenter/linjetags
1412
+ * @see https://spor.vy.no/components/line-tags
1413
1413
  */
1414
1414
  declare const TravelTag: _chakra_ui_system_dist_system_types.ComponentWithAs<As, TravelTagProps>;
1415
1415
 
@@ -3527,26 +3527,54 @@ declare const theme: {
3527
3527
  };
3528
3528
  button: {
3529
3529
  _disabled: {
3530
- boxShadow: string;
3531
3530
  _hover: {
3532
3531
  boxShadow: string;
3533
3532
  };
3534
3533
  _focus: {
3535
3534
  boxShadow: string;
3536
3535
  };
3536
+ backgroundColor: string;
3537
+ color: string;
3538
+ } | {
3539
+ _hover: {
3540
+ boxShadow: string;
3541
+ };
3542
+ _focus: {
3543
+ boxShadow: string;
3544
+ };
3545
+ backgroundColor?: undefined;
3546
+ color: string;
3547
+ };
3548
+ _active: {
3549
+ boxShadow: string;
3550
+ backgroundColor: string;
3551
+ } | {
3552
+ boxShadow: string;
3553
+ backgroundColor?: undefined;
3554
+ };
3555
+ _expanded: {
3556
+ boxShadow: string;
3557
+ backgroundColor: string;
3558
+ } | {
3559
+ boxShadow: string;
3560
+ backgroundColor?: undefined;
3537
3561
  };
3538
3562
  _invalid: {
3539
3563
  _focus: _chakra_ui_styled_system.SystemStyleObject;
3540
3564
  _focusVisible: _chakra_ui_styled_system.SystemStyleObject;
3541
3565
  "&[data-focus]:not([data-focus-visible])": _chakra_ui_styled_system.SystemStyleObject;
3542
- boxShadow: string;
3543
3566
  _hover: {
3544
3567
  boxShadow: string;
3545
3568
  };
3569
+ boxShadow: string;
3546
3570
  };
3547
3571
  _focus: _chakra_ui_styled_system.SystemStyleObject;
3548
3572
  _focusVisible: _chakra_ui_styled_system.SystemStyleObject;
3549
3573
  "&[data-focus]:not([data-focus-visible])": _chakra_ui_styled_system.SystemStyleObject;
3574
+ _hover: {
3575
+ boxShadow: string;
3576
+ };
3577
+ boxShadow: string;
3550
3578
  appearance: string;
3551
3579
  borderTopRadius: string;
3552
3580
  borderBottomRadius: string | number;
@@ -3556,10 +3584,6 @@ declare const theme: {
3556
3584
  justifyContent: string;
3557
3585
  alignItems: string;
3558
3586
  fontSize: string;
3559
- boxShadow: string;
3560
- _hover: {
3561
- boxShadow: string;
3562
- };
3563
3587
  };
3564
3588
  arrowIcon: {};
3565
3589
  }) | undefined;
@@ -3716,13 +3740,9 @@ declare const theme: {
3716
3740
  baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
3717
3741
  field: {
3718
3742
  _disabled: {
3743
+ backgroundColor: string;
3719
3744
  boxShadow: string;
3720
- _hover: {
3721
- boxShadow: string;
3722
- };
3723
- _focus: {
3724
- boxShadow: string;
3725
- };
3745
+ cursor: string;
3726
3746
  };
3727
3747
  _invalid: {
3728
3748
  _focus: _chakra_ui_styled_system.SystemStyleObject;
@@ -3777,6 +3797,11 @@ declare const theme: {
3777
3797
  element: {
3778
3798
  height: string;
3779
3799
  };
3800
+ group: {
3801
+ ":has(:disabled)": {
3802
+ color: string;
3803
+ };
3804
+ };
3780
3805
  }) | undefined;
3781
3806
  sizes?: {
3782
3807
  [key: string]: _chakra_ui_styled_system.PartsStyleInterpolation<{
@@ -3981,11 +4006,16 @@ declare const theme: {
3981
4006
  };
3982
4007
  List: {
3983
4008
  baseStyle?: {
4009
+ container: {
4010
+ fontSize: ("mobile.sm" | "desktop.sm")[];
4011
+ };
4012
+ item: {
4013
+ fontFamily: string;
4014
+ };
3984
4015
  icon: {
3985
4016
  marginEnd: string;
3986
4017
  display: string;
3987
4018
  verticalAlign: string;
3988
- fontFamily: string;
3989
4019
  };
3990
4020
  } | undefined;
3991
4021
  sizes?: {
@@ -4008,7 +4038,7 @@ declare const theme: {
4008
4038
  ListBox: {
4009
4039
  baseStyle?: ((props: _chakra_ui_styled_system.StyleFunctionProps) => {
4010
4040
  container: {
4011
- background: string;
4041
+ backgroundColor: string;
4012
4042
  boxShadow: string;
4013
4043
  overflowY: string;
4014
4044
  maxHeight: string;
@@ -4037,8 +4067,11 @@ declare const theme: {
4037
4067
  backgroundColor: string;
4038
4068
  };
4039
4069
  _selected: {
4070
+ color: string;
4040
4071
  backgroundColor: string;
4072
+ } | {
4041
4073
  color: string;
4074
+ backgroundColor?: undefined;
4042
4075
  };
4043
4076
  };
4044
4077
  label: {};
@@ -4400,13 +4433,9 @@ declare const theme: {
4400
4433
  background: string;
4401
4434
  };
4402
4435
  _disabled: {
4436
+ backgroundColor: string;
4403
4437
  boxShadow: string;
4404
- _hover: {
4405
- boxShadow: string;
4406
- };
4407
- _focus: {
4408
- boxShadow: string;
4409
- };
4438
+ cursor: string;
4410
4439
  };
4411
4440
  _invalid: {
4412
4441
  _focus: _chakra_ui_styled_system.SystemStyleObject;
@@ -4466,7 +4495,7 @@ declare const theme: {
4466
4495
  strokeLinecap: string;
4467
4496
  fontSize: string;
4468
4497
  _disabled: {
4469
- opacity: number;
4498
+ color: string;
4470
4499
  };
4471
4500
  };
4472
4501
  }) | undefined;
@@ -5217,13 +5246,9 @@ declare const theme: {
5217
5246
  };
5218
5247
  };
5219
5248
  _disabled: {
5249
+ backgroundColor: string;
5220
5250
  boxShadow: string;
5221
- _hover: {
5222
- boxShadow: string;
5223
- };
5224
- _focus: {
5225
- boxShadow: string;
5226
- };
5251
+ cursor: string;
5227
5252
  };
5228
5253
  _invalid: {
5229
5254
  _focus: _chakra_ui_styled_system.SystemStyleObject;
package/dist/index.js CHANGED
@@ -5632,7 +5632,8 @@ var init_PasswordInput = __esm({
5632
5632
  type: "button",
5633
5633
  onClick: onToggle,
5634
5634
  borderRadius: "sm",
5635
- marginRight: 1
5635
+ marginRight: 1,
5636
+ isDisabled: props.disabled || props.isDisabled
5636
5637
  },
5637
5638
  isShowingPassword ? t2(texts13.hidePassword) : t2(texts13.showPassword)
5638
5639
  )));
@@ -14513,13 +14514,88 @@ var init_sr_utils = __esm({
14513
14514
  };
14514
14515
  }
14515
14516
  });
14517
+ function baseBorder(state2, props) {
14518
+ switch (state2) {
14519
+ case "hover":
14520
+ return {
14521
+ boxShadow: getBoxShadowString({
14522
+ borderColor: themeTools.mode("darkGrey", "white")(props),
14523
+ borderWidth: 2
14524
+ })
14525
+ };
14526
+ case "focus": {
14527
+ return {
14528
+ boxShadow: getBoxShadowString({
14529
+ borderColor: themeTools.mode("greenHaze", "azure")(props),
14530
+ borderWidth: 2
14531
+ })
14532
+ };
14533
+ }
14534
+ case "disabled": {
14535
+ return {
14536
+ boxShadow: getBoxShadowString({
14537
+ borderColor: themeTools.mode("platinum", "whiteAlpha.400")(props)
14538
+ })
14539
+ };
14540
+ }
14541
+ case "selected":
14542
+ return {
14543
+ boxShadow: getBoxShadowString({
14544
+ borderColor: themeTools.mode("greenHaze", "azure")(props)
14545
+ })
14546
+ };
14547
+ case "invalid": {
14548
+ return {
14549
+ boxShadow: getBoxShadowString({
14550
+ borderColor: "brightRed",
14551
+ borderWidth: 2
14552
+ })
14553
+ };
14554
+ }
14555
+ case "default":
14556
+ default:
14557
+ return {
14558
+ boxShadow: getBoxShadowString({
14559
+ borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
14560
+ })
14561
+ };
14562
+ }
14563
+ }
14564
+ var init_border_utils = __esm({
14565
+ "src/theme/utils/border-utils.ts"() {
14566
+ init_box_shadow_utils();
14567
+ }
14568
+ });
14569
+ function baseBackground(state2, props) {
14570
+ switch (state2) {
14571
+ case "active":
14572
+ return {
14573
+ backgroundColor: themeTools.mode("mint", "whiteAlpha.100")(props)
14574
+ };
14575
+ case "selected":
14576
+ return {
14577
+ backgroundColor: "pine"
14578
+ };
14579
+ case "disabled":
14580
+ return {
14581
+ backgroundColor: themeTools.mode("silver", "whiteAlpha.100")(props)
14582
+ };
14583
+ default:
14584
+ return {};
14585
+ }
14586
+ }
14587
+ var init_background_utils = __esm({
14588
+ "src/theme/utils/background-utils.ts"() {
14589
+ }
14590
+ });
14516
14591
  var parts6, helpers10, config18, info_select_default;
14517
14592
  var init_info_select = __esm({
14518
14593
  "src/theme/components/info-select.ts"() {
14519
14594
  init_dist4();
14520
- init_box_shadow_utils();
14521
14595
  init_focus_utils();
14522
14596
  init_sr_utils();
14597
+ init_border_utils();
14598
+ init_background_utils();
14523
14599
  parts6 = anatomy("InfoSelect").parts(
14524
14600
  "container",
14525
14601
  "label",
@@ -14544,57 +14620,44 @@ var init_info_select = __esm({
14544
14620
  justifyContent: "space-between",
14545
14621
  alignItems: "center",
14546
14622
  fontSize: "mobile.md",
14547
- boxShadow: getBoxShadowString({
14548
- borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
14549
- }),
14623
+ ...baseBorder("default", props),
14550
14624
  _hover: {
14551
- boxShadow: getBoxShadowString({
14552
- borderColor: themeTools.mode("darkGrey", "whiteAlpha.600")(props),
14553
- borderWidth: 2
14554
- })
14625
+ ...baseBorder("hover", props)
14555
14626
  },
14556
14627
  ...focusVisible({
14557
14628
  focus: {
14558
- boxShadow: getBoxShadowString({
14559
- borderColor: "greenHaze",
14560
- borderWidth: 2
14561
- }),
14629
+ ...baseBorder("focus", props),
14562
14630
  outline: "none"
14563
14631
  },
14564
14632
  notFocus: {
14565
- boxShadow: getBoxShadowString({
14566
- borderColor: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
14567
- })
14633
+ ...baseBorder("default", props)
14568
14634
  }
14569
14635
  }),
14570
14636
  _disabled: {
14571
- boxShadow: getBoxShadowString({ borderColor: "platinum" }),
14572
- _hover: { boxShadow: getBoxShadowString({ borderColor: "platinum" }) },
14573
- _focus: { boxShadow: getBoxShadowString({ borderColor: "platinum" }) }
14637
+ color: "whiteAlpha.400",
14638
+ ...baseBackground("disabled", props),
14639
+ _hover: { ...baseBorder("disabled", props) },
14640
+ _focus: { ...baseBorder("disabled", props) }
14641
+ },
14642
+ _active: {
14643
+ ...baseBackground("active", props),
14644
+ ...baseBorder("focus", props)
14645
+ },
14646
+ _expanded: {
14647
+ ...baseBackground("active", props),
14648
+ ...baseBorder("focus", props)
14574
14649
  },
14575
14650
  _invalid: {
14576
- boxShadow: getBoxShadowString({
14577
- borderColor: "brightRed",
14578
- borderWidth: 2
14579
- }),
14651
+ ...baseBorder("invalid", props),
14580
14652
  _hover: {
14581
- boxShadow: getBoxShadowString({
14582
- borderColor: "darkGrey",
14583
- borderWidth: 2
14584
- })
14653
+ ...baseBorder("hover", props)
14585
14654
  },
14586
14655
  ...focusVisible({
14587
14656
  focus: {
14588
- boxShadow: getBoxShadowString({
14589
- borderColor: "greenHaze",
14590
- borderWidth: 2
14591
- })
14657
+ ...baseBorder("focus", props)
14592
14658
  },
14593
14659
  notFocus: {
14594
- boxShadow: getBoxShadowString({
14595
- borderColor: "brightRed",
14596
- borderWidth: 2
14597
- })
14660
+ ...baseBorder("invalid", props)
14598
14661
  }
14599
14662
  })
14600
14663
  }
@@ -14975,13 +15038,15 @@ var init_input2 = __esm({
14975
15038
  })
14976
15039
  },
14977
15040
  notFocus: {
14978
- boxShadow: getBoxShadowString({ borderColor: "darkGrey" })
15041
+ boxShadow: getBoxShadowString({ borderColor: themeTools.mode("darkGrey", "white")(props) })
14979
15042
  }
14980
15043
  }),
14981
15044
  _disabled: {
14982
- boxShadow: getBoxShadowString({ borderColor: "platinum" }),
14983
- _hover: { boxShadow: getBoxShadowString({ borderColor: "platinum" }) },
14984
- _focus: { boxShadow: getBoxShadowString({ borderColor: "platinum" }) }
15045
+ backgroundColor: themeTools.mode("blackAlpha.100", "whiteAlpha.100")(props),
15046
+ boxShadow: getBoxShadowString({
15047
+ borderColor: themeTools.mode("blackAlpha.200", "whiteAlpha.200")(props)
15048
+ }),
15049
+ cursor: "not-allowed"
14985
15050
  },
14986
15051
  _invalid: {
14987
15052
  boxShadow: getBoxShadowString({
@@ -14990,7 +15055,7 @@ var init_input2 = __esm({
14990
15055
  }),
14991
15056
  _hover: {
14992
15057
  boxShadow: getBoxShadowString({
14993
- borderColor: "darkGrey",
15058
+ borderColor: themeTools.mode("darkGrey", "white")(props),
14994
15059
  borderWidth: 2
14995
15060
  })
14996
15061
  },
@@ -15029,6 +15094,11 @@ var init_input2 = __esm({
15029
15094
  },
15030
15095
  element: {
15031
15096
  height: "100%"
15097
+ },
15098
+ group: {
15099
+ ":has(:disabled)": {
15100
+ color: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
15101
+ }
15032
15102
  }
15033
15103
  })
15034
15104
  });
@@ -15248,20 +15318,24 @@ var init_link2 = __esm({
15248
15318
  });
15249
15319
 
15250
15320
  // src/theme/components/list.ts
15251
- var defineMultiStyleConfig28, definePartsStyle28, baseStyleIcon8, baseStyle45, list_default;
15321
+ var defineMultiStyleConfig28, definePartsStyle28, baseStyle45, list_default;
15252
15322
  var init_list2 = __esm({
15253
15323
  "src/theme/components/list.ts"() {
15254
15324
  init_dist4();
15255
15325
  init_dist3();
15256
15326
  ({ defineMultiStyleConfig: defineMultiStyleConfig28, definePartsStyle: definePartsStyle28 } = createMultiStyleConfigHelpers(listAnatomy.keys));
15257
- baseStyleIcon8 = defineStyle({
15258
- marginEnd: "2",
15259
- display: "inline",
15260
- verticalAlign: "text-bottom",
15261
- fontFamily: "body"
15262
- });
15263
15327
  baseStyle45 = definePartsStyle28({
15264
- icon: baseStyleIcon8
15328
+ container: {
15329
+ fontSize: ["mobile.sm", "desktop.sm"]
15330
+ },
15331
+ item: {
15332
+ fontFamily: "body"
15333
+ },
15334
+ icon: {
15335
+ marginEnd: "2",
15336
+ display: "inline",
15337
+ verticalAlign: "text-bottom"
15338
+ }
15265
15339
  });
15266
15340
  list_default = defineMultiStyleConfig28({
15267
15341
  baseStyle: baseStyle45
@@ -15272,6 +15346,8 @@ var parts10, helpers15, config24, listbox_default;
15272
15346
  var init_listbox = __esm({
15273
15347
  "src/theme/components/listbox.ts"() {
15274
15348
  init_dist4();
15349
+ init_foundations();
15350
+ init_background_utils();
15275
15351
  parts10 = anatomy("ListBox").parts(
15276
15352
  "container",
15277
15353
  "item",
@@ -15282,7 +15358,11 @@ var init_listbox = __esm({
15282
15358
  config24 = helpers15.defineMultiStyleConfig({
15283
15359
  baseStyle: (props) => ({
15284
15360
  container: {
15285
- background: themeTools.mode("white", "darkGrey")(props),
15361
+ // avoiding extra div by blending a transparent color into darkGrey for dark mode
15362
+ backgroundColor: themeTools.mode(
15363
+ "mint",
15364
+ `color-mix(in srgb, ${colors.darkGrey}, ${colors.white} 10%)`
15365
+ )(props),
15286
15366
  boxShadow: "sm",
15287
15367
  overflowY: "auto",
15288
15368
  maxHeight: "50vh",
@@ -15299,20 +15379,20 @@ var init_listbox = __esm({
15299
15379
  color: themeTools.mode("darkGrey", "white")(props),
15300
15380
  cursor: "pointer",
15301
15381
  _hover: {
15302
- backgroundColor: themeTools.mode("seaMist", "darkTeal")(props),
15382
+ backgroundColor: themeTools.mode("seaMist", "pine")(props),
15303
15383
  outline: "none"
15304
15384
  },
15305
15385
  _active: {
15306
- backgroundColor: themeTools.mode("mint", "darkTeal")(props),
15386
+ backgroundColor: themeTools.mode("mint", "pine")(props),
15307
15387
  outline: "none"
15308
15388
  },
15309
15389
  _focus: {
15310
15390
  outline: "none",
15311
- backgroundColor: themeTools.mode("seaMist", "darkTeal")(props)
15391
+ backgroundColor: themeTools.mode("seaMist", "pine")(props)
15312
15392
  },
15313
15393
  _selected: {
15314
- backgroundColor: themeTools.mode("pine", "pine")(props),
15315
- color: themeTools.mode("white", "white")(props)
15394
+ ...baseBackground("selected", props),
15395
+ color: "white"
15316
15396
  }
15317
15397
  },
15318
15398
  label: {},
@@ -15732,7 +15812,7 @@ var init_select = __esm({
15732
15812
  strokeLinecap: "round",
15733
15813
  fontSize: "1.125rem",
15734
15814
  _disabled: {
15735
- opacity: 0.5
15815
+ color: themeTools.mode("blackAlpha.400", "whiteAlpha.400")(props)
15736
15816
  }
15737
15817
  }
15738
15818
  })
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, Portal, ProgressBar, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, UnorderedList, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-3SY4N6MP.mjs';
1
+ export { Accordion, AccordionButton, AccordionIcon, AccordionItem, AccordionPanel, AttachedInputs, Badge, Box, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Button, ButtonGroup, Card, CardSelect, Center, Checkbox, CheckboxGroup, ChoiceChip, ClosableAlert, CloseButton, Code, Collapse, ColorInlineLoader, ColorSpinner, Combobox, Container, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkMode, DarkSpinner, DatePicker, DateRangePicker, Divider, Drawer, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, ModalHeader as DrawerHeader, DrawerOverlay, Expandable, ExpandableAlert, ExpandableItem, Fade, Flex, FloatingActionButton, FormControl, FormErrorMessage, FormHelperText, FormLabel, Grid, GridItem, HStack, Heading, IconButton, Image, Img, InfoSelect, InfoTag, Input, InputGroup, InputLeftElement, InputRightElement, Item, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightMode, LightSpinner, LineIcon, ListBox, ListItem, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, NativeSelect, NumericStepper, OrderedList, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, PopoverWizardBody, Portal, ProgressBar, ProgressLoader, Radio, RadioGroup, ScaleFade, SearchInput, Section, SimpleDrawer, SimpleGrid, SimplePopover, Skeleton, SkeletonCircle, SkeletonText, SkipButton, Slide, SlideFade, Spacer, SporProvider, Stack, StaticAlert, Stepper, StepperStep, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableCaption, Tabs, Tbody, Td, Text, TextLink, Textarea, Tfoot, Th, Thead, Time, TimePicker, Tr, TravelTag, UnorderedList, VStack, VyLogo, WizardPopover, Wrap, WrapItem, createTexts, extendTheme, fontFaces, theme, tokens, useBreakpointValue, useClipboard, useColorMode, useColorModePreference, useColorModeValue, useControllableProp, useDisclosure, useMediaQuery, useMergeRefs, useOutsideClick, usePrefersReducedMotion, useTheme, useToast, useToken, useTranslation } from './chunk-MGJQOEU2.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vygruppen/spor-react",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -58,7 +58,7 @@ export type ButtonProps = Exclude<
58
58
  * </Button>
59
59
  * ```
60
60
  *
61
- * @see https://spor.vy.no/komponenter/button
61
+ * @see https://spor.vy.no/components/button
62
62
  */
63
63
  export const Button = forwardRef<ButtonProps, "button">((props, ref) => {
64
64
  const {
@@ -55,7 +55,7 @@ type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & {
55
55
  *
56
56
  * Note that the TimePicker uses the `Time` class to represent the time. This is a class that is part of the `@internationalized/date` package.
57
57
  *
58
- * @see https://spor.vy.no/komponenter/timepicker
58
+ * @see https://spor.vy.no/komponents/timepicker
59
59
  */
60
60
  export const TimePicker = ({
61
61
  label: externalLabel,
@@ -58,7 +58,7 @@ type CardSelectProps = BoxProps & {
58
58
  * </CardSelect>
59
59
  * ```
60
60
  *
61
- * @see https://spor.vy.no/komponenter/card-select
61
+ * @see https://spor.vy.no/components/card-select
62
62
  */
63
63
  export const CardSelect = forwardRef<CardSelectProps, "button">(
64
64
  (
@@ -30,7 +30,7 @@ export type FormErrorMessageProps = BoxProps & {
30
30
  * </FormControl>
31
31
  * ```
32
32
  *
33
- * @see https://spor.vy.no/komponenter/skjemaelementer
33
+ * @see https://spor.vy.no/components/form-control
34
34
  */
35
35
  export const FormErrorMessage = ({
36
36
  children,
@@ -147,7 +147,7 @@ type InfoSelectProps<T extends object> = {
147
147
  * </InfoSelect>
148
148
  * ```
149
149
  *
150
- * @see https://spor.vy.no/komponenter/info-select
150
+ * @see https://spor.vy.no/components/info-select
151
151
  */
152
152
  export function InfoSelect<T extends object>({
153
153
  placeholder,
@@ -46,6 +46,7 @@ export const PasswordInput = forwardRef<PasswordInputProps, "input">(
46
46
  onClick={onToggle}
47
47
  borderRadius="sm"
48
48
  marginRight={1}
49
+ isDisabled={props.disabled || props.isDisabled}
49
50
  >
50
51
  {isShowingPassword ? t(texts.hidePassword) : t(texts.showPassword)}
51
52
  </Button>
@@ -24,7 +24,7 @@ export type InfoTagProps = TagProps;
24
24
  * />
25
25
  * ```
26
26
  *
27
- * @see https://spor.vy.no/komponenter/linjetags
27
+ * @see https://spor.vy.no/components/line-tags
28
28
  */
29
29
  export const InfoTag = ({
30
30
  variant,
@@ -23,7 +23,7 @@ export type LineIconProps = BoxProps & {
23
23
  * <LineIcon variant="subway" size="lg" />
24
24
  * ```
25
25
  *
26
- * @see https://spor.vy.no/komponenter/linjetags
26
+ * @see https://spor.vy.no/components/line-tags
27
27
  */
28
28
  export const LineIcon = ({
29
29
  variant,
@@ -58,7 +58,7 @@ export type TravelTagProps = TagProps &
58
58
  * />
59
59
  * ```
60
60
  *
61
- * @see https://spor.vy.no/komponenter/linjetags
61
+ * @see https://spor.vy.no/components/line-tags
62
62
  */
63
63
  export const TravelTag = forwardRef<TravelTagProps, As>(
64
64
  (