@vygruppen/spor-react 13.7.0 → 13.7.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.cts CHANGED
@@ -4333,6 +4333,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4333
4333
  neutral: {
4334
4334
  backgroundColor: "surface";
4335
4335
  color: "text";
4336
+ outlineColor: "outline";
4336
4337
  "& svg": {
4337
4338
  color: "icon";
4338
4339
  };
@@ -4340,6 +4341,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4340
4341
  grey: {
4341
4342
  backgroundColor: "surface.neutral";
4342
4343
  color: "text.neutral";
4344
+ outlineColor: "outline.neutral";
4343
4345
  "& svg": {
4344
4346
  color: "icon.neutral";
4345
4347
  };
@@ -4347,6 +4349,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4347
4349
  green: {
4348
4350
  backgroundColor: "surface.success";
4349
4351
  color: "text.success";
4352
+ outlineColor: "outline.success";
4350
4353
  "& svg": {
4351
4354
  color: "icon.success";
4352
4355
  };
@@ -4354,6 +4357,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4354
4357
  blue: {
4355
4358
  backgroundColor: "surface.info";
4356
4359
  color: "text.info";
4360
+ outlineColor: "outline.info";
4357
4361
  "& svg": {
4358
4362
  color: "icon.info";
4359
4363
  };
@@ -4361,6 +4365,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4361
4365
  cream: {
4362
4366
  backgroundColor: "surface.warning";
4363
4367
  color: "text.warning";
4368
+ outlineColor: "outline.warning";
4364
4369
  "& svg": {
4365
4370
  color: "icon.warning";
4366
4371
  };
@@ -4368,6 +4373,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4368
4373
  yellow: {
4369
4374
  backgroundColor: "surface.notice";
4370
4375
  color: "text.notice";
4376
+ outlineColor: "outline.notice";
4371
4377
  "& svg": {
4372
4378
  color: "icon.notice";
4373
4379
  };
@@ -4375,6 +4381,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4375
4381
  orange: {
4376
4382
  backgroundColor: "surface.caution";
4377
4383
  color: "text.caution";
4384
+ outlineColor: "outline.caution";
4378
4385
  "& svg": {
4379
4386
  color: "icon.caution";
4380
4387
  };
@@ -4382,6 +4389,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4382
4389
  red: {
4383
4390
  backgroundColor: "surface.critical";
4384
4391
  color: "text.critical";
4392
+ outlineColor: "outline.critical";
4385
4393
  "& svg": {
4386
4394
  color: "icon.critical";
4387
4395
  };
@@ -4395,6 +4403,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4395
4403
  _light: "pink";
4396
4404
  _dark: "pink";
4397
4405
  };
4406
+ outlineColor: "outline.error";
4398
4407
  "& svg": {
4399
4408
  color: {
4400
4409
  _light: "pink";
@@ -4405,6 +4414,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4405
4414
  disabled: {
4406
4415
  backgroundColor: "surface.disabled";
4407
4416
  color: "text.disabled";
4417
+ outlineColor: "outline.disabled";
4408
4418
  "& svg": {
4409
4419
  color: "icon.disabled";
4410
4420
  };
package/dist/index.d.ts CHANGED
@@ -4333,6 +4333,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4333
4333
  neutral: {
4334
4334
  backgroundColor: "surface";
4335
4335
  color: "text";
4336
+ outlineColor: "outline";
4336
4337
  "& svg": {
4337
4338
  color: "icon";
4338
4339
  };
@@ -4340,6 +4341,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4340
4341
  grey: {
4341
4342
  backgroundColor: "surface.neutral";
4342
4343
  color: "text.neutral";
4344
+ outlineColor: "outline.neutral";
4343
4345
  "& svg": {
4344
4346
  color: "icon.neutral";
4345
4347
  };
@@ -4347,6 +4349,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4347
4349
  green: {
4348
4350
  backgroundColor: "surface.success";
4349
4351
  color: "text.success";
4352
+ outlineColor: "outline.success";
4350
4353
  "& svg": {
4351
4354
  color: "icon.success";
4352
4355
  };
@@ -4354,6 +4357,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4354
4357
  blue: {
4355
4358
  backgroundColor: "surface.info";
4356
4359
  color: "text.info";
4360
+ outlineColor: "outline.info";
4357
4361
  "& svg": {
4358
4362
  color: "icon.info";
4359
4363
  };
@@ -4361,6 +4365,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4361
4365
  cream: {
4362
4366
  backgroundColor: "surface.warning";
4363
4367
  color: "text.warning";
4368
+ outlineColor: "outline.warning";
4364
4369
  "& svg": {
4365
4370
  color: "icon.warning";
4366
4371
  };
@@ -4368,6 +4373,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4368
4373
  yellow: {
4369
4374
  backgroundColor: "surface.notice";
4370
4375
  color: "text.notice";
4376
+ outlineColor: "outline.notice";
4371
4377
  "& svg": {
4372
4378
  color: "icon.notice";
4373
4379
  };
@@ -4375,6 +4381,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4375
4381
  orange: {
4376
4382
  backgroundColor: "surface.caution";
4377
4383
  color: "text.caution";
4384
+ outlineColor: "outline.caution";
4378
4385
  "& svg": {
4379
4386
  color: "icon.caution";
4380
4387
  };
@@ -4382,6 +4389,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4382
4389
  red: {
4383
4390
  backgroundColor: "surface.critical";
4384
4391
  color: "text.critical";
4392
+ outlineColor: "outline.critical";
4385
4393
  "& svg": {
4386
4394
  color: "icon.critical";
4387
4395
  };
@@ -4395,6 +4403,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4395
4403
  _light: "pink";
4396
4404
  _dark: "pink";
4397
4405
  };
4406
+ outlineColor: "outline.error";
4398
4407
  "& svg": {
4399
4408
  color: {
4400
4409
  _light: "pink";
@@ -4405,6 +4414,7 @@ declare const badgeRecipie: _chakra_ui_react.RecipeDefinition<{
4405
4414
  disabled: {
4406
4415
  backgroundColor: "surface.disabled";
4407
4416
  color: "text.disabled";
4417
+ outlineColor: "outline.disabled";
4408
4418
  "& svg": {
4409
4419
  color: "icon.disabled";
4410
4420
  };
package/dist/index.mjs CHANGED
@@ -673,58 +673,70 @@ var badgeRecipie = defineRecipe({
673
673
  alignItems: "center",
674
674
  justifyContent: "center",
675
675
  height: "fit-content",
676
- gap: "0.5"
676
+ gap: "0.5",
677
+ outline: "1px solid",
678
+ outlineOffset: "-1px"
677
679
  },
678
680
  variants: {
679
681
  colorPalette: {
680
682
  neutral: {
681
683
  backgroundColor: "surface",
682
684
  color: "text",
685
+ outlineColor: "outline",
683
686
  "& svg": { color: "icon" }
684
687
  },
685
688
  grey: {
686
689
  backgroundColor: "surface.neutral",
687
690
  color: "text.neutral",
691
+ outlineColor: "outline.neutral",
688
692
  "& svg": { color: "icon.neutral" }
689
693
  },
690
694
  green: {
691
695
  backgroundColor: "surface.success",
692
696
  color: "text.success",
697
+ outlineColor: "outline.success",
693
698
  "& svg": { color: "icon.success" }
694
699
  },
695
700
  blue: {
696
701
  backgroundColor: "surface.info",
697
702
  color: "text.info",
703
+ outlineColor: "outline.info",
698
704
  "& svg": { color: "icon.info" }
699
705
  },
700
706
  cream: {
701
707
  backgroundColor: "surface.warning",
702
708
  color: "text.warning",
709
+ outlineColor: "outline.warning",
703
710
  "& svg": { color: "icon.warning" }
704
711
  },
705
712
  yellow: {
706
713
  backgroundColor: "surface.notice",
707
714
  color: "text.notice",
715
+ outlineColor: "outline.notice",
708
716
  "& svg": { color: "icon.notice" }
709
717
  },
710
718
  orange: {
711
719
  backgroundColor: "surface.caution",
712
720
  color: "text.caution",
721
+ outlineColor: "outline.caution",
713
722
  "& svg": { color: "icon.caution" }
714
723
  },
715
724
  red: {
716
725
  backgroundColor: "surface.critical",
717
726
  color: "text.critical",
727
+ outlineColor: "outline.critical",
718
728
  "& svg": { color: "icon.critical" }
719
729
  },
720
730
  brightRed: {
721
731
  backgroundColor: { _light: "brightRed", _dark: "brightRed" },
722
732
  color: { _light: "pink", _dark: "pink" },
733
+ outlineColor: "outline.error",
723
734
  "& svg": { color: { _light: "pink", _dark: "pink" } }
724
735
  },
725
736
  disabled: {
726
737
  backgroundColor: "surface.disabled",
727
738
  color: "text.disabled",
739
+ outlineColor: "outline.disabled",
728
740
  "& svg": { color: "icon.disabled" }
729
741
  }
730
742
  },
@@ -767,6 +779,7 @@ var badgeRecipie = defineRecipe({
767
779
  css: {
768
780
  backgroundColor: { _light: "darkBlue", _dark: "lightBlue" },
769
781
  color: { _light: "icyBlue", _dark: "royal" },
782
+ outlineColor: { _light: "ocean", _dark: "cloudy" },
770
783
  "& svg": { color: { _light: "royal", _dark: "icyBlue" } }
771
784
  }
772
785
  },
@@ -776,6 +789,7 @@ var badgeRecipie = defineRecipe({
776
789
  css: {
777
790
  backgroundColor: { _light: "darkTeal", _dark: "seaMist" },
778
791
  color: { _light: "mint", _dark: "jungle" },
792
+ outlineColor: { _light: "greenHaze", _dark: "coralGreen" },
779
793
  "& svg": { color: { _light: "mint", _dark: "jungle" } }
780
794
  }
781
795
  },
@@ -785,6 +799,7 @@ var badgeRecipie = defineRecipe({
785
799
  css: {
786
800
  backgroundColor: { _light: "carbon", _dark: "platinum" },
787
801
  color: { _light: "white", _dark: "darkGrey" },
802
+ outlineColor: { _light: "iron", _dark: "silver" },
788
803
  "& svg": { color: { _light: "white", _dark: "darkGrey" } }
789
804
  }
790
805
  },
@@ -795,6 +810,7 @@ var badgeRecipie = defineRecipe({
795
810
  css: {
796
811
  backgroundColor: { _light: "coffee", _dark: "blonde" },
797
812
  color: { _light: "cornsilk", _dark: "coffee" },
813
+ outlineColor: { _light: "bronze", _dark: "banana" },
798
814
  "& svg": { color: { _light: "cornsilk", _dark: "coffee" } }
799
815
  }
800
816
  },
@@ -804,6 +820,7 @@ var badgeRecipie = defineRecipe({
804
820
  css: {
805
821
  backgroundColor: { _light: "bronze", _dark: "banana" },
806
822
  color: { _light: "cornsilk", _dark: "coffee" },
823
+ outlineColor: { _light: "golden", _dark: "banana" },
807
824
  "& svg": { color: { _light: "cornsilk", _dark: "coffee" } }
808
825
  }
809
826
  },
@@ -813,6 +830,7 @@ var badgeRecipie = defineRecipe({
813
830
  css: {
814
831
  backgroundColor: { _light: "wood", _dark: "champagne" },
815
832
  color: { _light: "bisque", _dark: "wood" },
833
+ outlineColor: { _light: "russet", _dark: "saffron" },
816
834
  "& svg": { color: { _light: "bisque", _dark: "wood" } }
817
835
  }
818
836
  },
@@ -822,6 +840,7 @@ var badgeRecipie = defineRecipe({
822
840
  css: {
823
841
  backgroundColor: { _light: "burgundy", _dark: "lightRed" },
824
842
  color: { _light: "pink", _dark: "maroon" },
843
+ outlineColor: { _light: "crimson", _dark: "salmon" },
825
844
  "& svg": { color: { _light: "pink", _dark: "maroon" } }
826
845
  }
827
846
  },
@@ -831,6 +850,7 @@ var badgeRecipie = defineRecipe({
831
850
  inverted: true,
832
851
  css: {
833
852
  backgroundColor: { _light: "ink", _dark: "white" },
853
+ outlineColor: { _light: "whiteAlpha.400", _dark: "blackAlpha.400" },
834
854
  color: { _light: "white", _dark: "darkGrey" },
835
855
  "& svg": { color: { _light: "white", _dark: "darkGrey" } }
836
856
  }
@@ -1571,7 +1591,7 @@ var RadioCard = ({
1571
1591
  ),
1572
1592
  /* @__PURE__ */ jsxs(RadioCard$1.ItemControl, { id: itemControlId, "aria-hidden": true, children: [
1573
1593
  showIndicator && /* @__PURE__ */ jsx(RadioCard$1.ItemIndicator, {}),
1574
- children
1594
+ /* @__PURE__ */ jsx(Flex, { direction: "column", width: "100%", children })
1575
1595
  ] })
1576
1596
  ] });
1577
1597
  };
@@ -2089,18 +2109,17 @@ var Field3 = ({
2089
2109
  id,
2090
2110
  gap,
2091
2111
  children: [
2092
- label && !floatingLabel && /* @__PURE__ */ jsx(Label, { asChild: labelAsChild, "aria-hidden": true, css: styles.label, children: renderLabelWithIndicator(label, labelAsChild) }),
2093
- children,
2112
+ label && !floatingLabel && /* @__PURE__ */ jsx(Label, { asChild: labelAsChild, css: styles.label, children: renderLabelWithIndicator(label, labelAsChild) }),
2094
2113
  label && floatingLabel && /* @__PURE__ */ jsx(
2095
2114
  FloatingLabel,
2096
2115
  {
2097
2116
  "data-float": shouldFloat ? true : void 0,
2098
2117
  asChild: labelAsChild,
2099
- "aria-hidden": true,
2100
2118
  css: styles.label,
2101
2119
  children: renderLabelWithIndicator(label, labelAsChild)
2102
2120
  }
2103
2121
  ),
2122
+ children,
2104
2123
  errorText && /* @__PURE__ */ jsx(Field.ErrorText, { "aria-live": "polite", children: errorText })
2105
2124
  ]
2106
2125
  }
@@ -11569,6 +11588,11 @@ var selectSlotRecipe = defineSlotRecipe({
11569
11588
  outlineColor: "outline.error"
11570
11589
  }
11571
11590
  },
11591
+ valueText: {
11592
+ textOverflow: "ellipsis",
11593
+ whiteSpace: "nowrap",
11594
+ overflow: "hidden"
11595
+ },
11572
11596
  itemText: {
11573
11597
  flex: "1",
11574
11598
  alignItems: "center"