@vygruppen/spor-react 12.14.0 → 12.14.1

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
@@ -2132,6 +2132,9 @@ declare const lineIconSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" |
2132
2132
  iconContainer: {
2133
2133
  backgroundColor: "linjetag.altTransport";
2134
2134
  };
2135
+ icon: {
2136
+ color: "darkGrey";
2137
+ };
2135
2138
  };
2136
2139
  walk: {
2137
2140
  title: {
package/dist/index.d.ts CHANGED
@@ -2132,6 +2132,9 @@ declare const lineIconSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"icon" |
2132
2132
  iconContainer: {
2133
2133
  backgroundColor: "linjetag.altTransport";
2134
2134
  };
2135
+ icon: {
2136
+ color: "darkGrey";
2137
+ };
2135
2138
  };
2136
2139
  walk: {
2137
2140
  title: {
package/dist/index.mjs CHANGED
@@ -1208,15 +1208,7 @@ var ServiceAlert = forwardRef(
1208
1208
  ]
1209
1209
  }
1210
1210
  ) }),
1211
- /* @__PURE__ */ jsx(Accordion$1.ItemContent, { asChild: true, children: /* @__PURE__ */ jsx(Stack, { flexDirection: "row", width: "100%", children: /* @__PURE__ */ jsx(
1212
- Accordion$1.ItemBody,
1213
- {
1214
- as: Stack,
1215
- width: contentWidth,
1216
- css: styles.itemBody,
1217
- children
1218
- }
1219
- ) }) })
1211
+ /* @__PURE__ */ jsx(Accordion$1.ItemContent, { css: styles.itemContent, children: /* @__PURE__ */ jsx(Accordion$1.ItemBody, { maxWidth: contentWidth, css: styles.itemBody, children }) })
1220
1212
  ] })
1221
1213
  }
1222
1214
  );
@@ -1384,7 +1376,7 @@ var Field3 = React27.forwardRef(
1384
1376
  ]
1385
1377
  }
1386
1378
  ),
1387
- helperText && /* @__PURE__ */ jsx(Text3, { fontSize: "sm", color: "text.tertiary", children: helperText })
1379
+ helperText && /* @__PURE__ */ jsx(Text3, { variant: "sm", color: "text.tertiary", children: helperText })
1388
1380
  ] });
1389
1381
  }
1390
1382
  );
@@ -1617,10 +1609,10 @@ var CalendarNavigator = ({
1617
1609
  }
1618
1610
  ),
1619
1611
  /* @__PURE__ */ jsx(
1620
- Box,
1612
+ Text3,
1621
1613
  {
1622
1614
  role: "heading",
1623
- fontSize: "sm",
1615
+ variant: "md",
1624
1616
  fontWeight: "bold",
1625
1617
  flex: "1",
1626
1618
  textAlign: "center",
@@ -1801,19 +1793,11 @@ var DateField = forwardRef(
1801
1793
  css: styles.inputLabel,
1802
1794
  position: "absolute",
1803
1795
  paddingTop: "2px",
1804
- children: /* @__PURE__ */ jsxs(
1805
- Label,
1806
- {
1807
- padding: "0",
1808
- fontSize: ["mobile.xs", "desktop.xs"],
1809
- ...props.labelProps,
1810
- children: [
1811
- props.label,
1812
- " ",
1813
- /* @__PURE__ */ jsx(Field.RequiredIndicator, {})
1814
- ]
1815
- }
1816
- )
1796
+ children: /* @__PURE__ */ jsxs(Label, { padding: "0", ...props.labelProps, children: [
1797
+ props.label,
1798
+ " ",
1799
+ /* @__PURE__ */ jsx(Field.RequiredIndicator, {})
1800
+ ] })
1817
1801
  }
1818
1802
  ),
1819
1803
  /* @__PURE__ */ jsx(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, i) => /* @__PURE__ */ jsx(
@@ -2928,7 +2912,15 @@ function ItemDescription({ children }) {
2928
2912
  const { descriptionProps } = useOptionContext();
2929
2913
  const recipe = useSlotRecipe({ key: "listbox" });
2930
2914
  const styles = recipe({});
2931
- return /* @__PURE__ */ jsx(Box, { ...descriptionProps, css: styles, fontSize: "xs", children });
2915
+ return /* @__PURE__ */ jsx(
2916
+ Box,
2917
+ {
2918
+ ...descriptionProps,
2919
+ css: styles,
2920
+ fontSize: ["mobile.xs", "desktop.xs"],
2921
+ children
2922
+ }
2923
+ );
2932
2924
  }
2933
2925
  function Option({ item, state }) {
2934
2926
  const ref = useRef(null);
@@ -3005,7 +2997,7 @@ function ListBoxSection({ section, state }) {
3005
2997
  section.rendered && /* @__PURE__ */ jsx(
3006
2998
  Box,
3007
2999
  {
3008
- fontSize: "mobile.xs",
3000
+ fontSize: ["mobile.sm", "desktop.sm"],
3009
3001
  color: titleColor,
3010
3002
  paddingTop: 1,
3011
3003
  marginTop: isFirstSection ? 0 : 2,
@@ -5408,7 +5400,6 @@ var StepperStep = ({
5408
5400
  Text3,
5409
5401
  {
5410
5402
  variant: "xs",
5411
- fontSize: "1rem",
5412
5403
  color: disabledTextColor,
5413
5404
  cursor: "default",
5414
5405
  paddingX: 2,
@@ -6447,13 +6438,13 @@ var accordionSlotRecipe = defineSlotRecipe({
6447
6438
  textAlign: "left",
6448
6439
  width: "full",
6449
6440
  alignItems: "center",
6450
- fontSize: ["mobile.sm", null, "desktop.sm"],
6441
+ fontSize: ["mobile.sm", "desktop.sm"],
6451
6442
  fontFamily: "body",
6452
6443
  fontWeight: "bold",
6453
6444
  outlineOffset: "-2px",
6454
- paddingX: [2, null, 3],
6455
- paddingY: [1, null, 1.5],
6456
- minHeight: [6, null, 7],
6445
+ paddingX: [2, 3],
6446
+ paddingY: [1, 1.5],
6447
+ minHeight: [6, 7],
6457
6448
  cursor: "pointer",
6458
6449
  _disabled: {
6459
6450
  pointerEvents: "none",
@@ -6462,7 +6453,7 @@ var accordionSlotRecipe = defineSlotRecipe({
6462
6453
  },
6463
6454
  itemContent: {
6464
6455
  borderBottomRadius: "sm",
6465
- fontSize: ["mobile.sm", null, "desktop.sm"],
6456
+ fontSize: ["mobile.sm", "desktop.sm"],
6466
6457
  color: "text",
6467
6458
  height: "auto",
6468
6459
  overflow: "hidden",
@@ -6477,7 +6468,7 @@ var accordionSlotRecipe = defineSlotRecipe({
6477
6468
  },
6478
6469
  itemBody: {
6479
6470
  paddingY: 2,
6480
- paddingX: [2, null, 3]
6471
+ paddingX: [2, 3]
6481
6472
  },
6482
6473
  itemIndicator: {
6483
6474
  transition: "rotate 0.2s",
@@ -6779,7 +6770,8 @@ var alertServiceSlotRecipe = defineSlotRecipe({
6779
6770
  display: "flex",
6780
6771
  flexDirection: "column",
6781
6772
  justifyContent: "center",
6782
- padding: [2, null, null, 2],
6773
+ padding: ["2", "3"],
6774
+ paddingBottom: "1",
6783
6775
  borderBottomRadius: "md",
6784
6776
  borderTopRadius: "none",
6785
6777
  width: "full",
@@ -6795,27 +6787,37 @@ var alertServiceSlotRecipe = defineSlotRecipe({
6795
6787
  }
6796
6788
  },
6797
6789
  itemTriggerTitle: {
6798
- fontSize: ["xs", null, null, "sm"]
6790
+ fontSize: ["mobile.sm", "desktop.sm"]
6799
6791
  },
6800
6792
  notificationText: {
6801
6793
  fontWeight: "400",
6802
- fontSize: ["2xs", null, null, "xs"],
6803
- textWrap: "nowrap"
6794
+ fontSize: ["mobile.xs", "desktop.xs"],
6795
+ textWrap: "nowrap",
6796
+ color: "alert.service.text.secondary"
6797
+ },
6798
+ itemContent: {
6799
+ paddingX: ["2", "3"],
6800
+ paddingBottom: ["2", "3"],
6801
+ paddingTop: ["1", "2"]
6804
6802
  },
6805
6803
  itemBody: {
6806
6804
  marginX: "auto",
6807
6805
  padding: "0 !important",
6808
- paddingBottom: ["0.5", null, null, "1"],
6809
- color: "text.inverted",
6806
+ color: "alert.service.text.secondary",
6807
+ gap: 0,
6808
+ flexDirection: "column",
6809
+ display: "flex",
6810
6810
  "& > p": {
6811
- gap: 2,
6812
6811
  width: "full",
6813
6812
  borderBottom: "1px dashed",
6814
6813
  borderColor: "outline.inverted",
6815
- paddingBottom: "3",
6816
- paddingTop: "2",
6814
+ paddingY: ["1", "1.5"],
6815
+ _first: {
6816
+ paddingTop: 0
6817
+ },
6817
6818
  _last: {
6818
- borderBottom: "none"
6819
+ borderBottom: "none",
6820
+ paddingBottom: 0
6819
6821
  }
6820
6822
  }
6821
6823
  }
@@ -6960,7 +6962,6 @@ var choiceChipSlotRecipe = defineSlotRecipe({
6960
6962
  display: "inline-flex",
6961
6963
  alignItems: "center",
6962
6964
  boxAlign: "center",
6963
- fontSize: "xs",
6964
6965
  cursor: "pointer",
6965
6966
  transitionProperty: "all",
6966
6967
  borderRadius: "xl",
@@ -7013,8 +7014,7 @@ var choiceChipSlotRecipe = defineSlotRecipe({
7013
7014
  label: {
7014
7015
  display: "flex",
7015
7016
  alignItems: "center",
7016
- gap: "1",
7017
- fontSize: "xs"
7017
+ gap: "1"
7018
7018
  }
7019
7019
  },
7020
7020
  variants: {
@@ -7026,6 +7026,10 @@ var choiceChipSlotRecipe = defineSlotRecipe({
7026
7026
  },
7027
7027
  height: 5,
7028
7028
  paddingX: 1.5
7029
+ },
7030
+ label: {
7031
+ fontSize: { base: "mobile.sm", sm: "desktop.sm" },
7032
+ fontWeight: "medium"
7029
7033
  }
7030
7034
  },
7031
7035
  sm: {
@@ -7035,6 +7039,10 @@ var choiceChipSlotRecipe = defineSlotRecipe({
7035
7039
  },
7036
7040
  height: 6,
7037
7041
  paddingX: 2
7042
+ },
7043
+ label: {
7044
+ fontSize: { base: "mobile.sm", sm: "desktop.sm" },
7045
+ fontWeight: "bold"
7038
7046
  }
7039
7047
  },
7040
7048
  md: {
@@ -7044,6 +7052,10 @@ var choiceChipSlotRecipe = defineSlotRecipe({
7044
7052
  },
7045
7053
  height: 7,
7046
7054
  paddingX: 2
7055
+ },
7056
+ label: {
7057
+ fontSize: { base: "mobile.md", sm: "desktop.md" },
7058
+ fontWeight: "bold"
7047
7059
  }
7048
7060
  },
7049
7061
  lg: {
@@ -7053,6 +7065,10 @@ var choiceChipSlotRecipe = defineSlotRecipe({
7053
7065
  },
7054
7066
  height: 8,
7055
7067
  paddingX: 3
7068
+ },
7069
+ label: {
7070
+ fontSize: { base: "mobile.md", sm: "desktop.md" },
7071
+ fontWeight: "bold"
7056
7072
  }
7057
7073
  }
7058
7074
  },
@@ -7112,7 +7128,7 @@ var choiceChipSlotRecipe = defineSlotRecipe({
7112
7128
  }
7113
7129
  },
7114
7130
  defaultVariants: {
7115
- size: "md",
7131
+ size: "sm",
7116
7132
  variant: "core",
7117
7133
  chipType: "choice"
7118
7134
  }
@@ -7171,7 +7187,7 @@ var datePickerSlotRecipe = defineSlotRecipe({
7171
7187
  }
7172
7188
  },
7173
7189
  inputLabel: {
7174
- fontSize: "mobile.xs",
7190
+ fontSize: ["mobile.xs", "desktop.xs"],
7175
7191
  margin: 0,
7176
7192
  cursor: "text"
7177
7193
  },
@@ -8291,6 +8307,10 @@ var lineIconSlotRecipe = defineSlotRecipe({
8291
8307
  "alt-transport": {
8292
8308
  iconContainer: {
8293
8309
  backgroundColor: "linjetag.altTransport"
8310
+ },
8311
+ icon: {
8312
+ // eslint-disable-next-line spor/use-semantic-tokens
8313
+ color: "darkGrey"
8294
8314
  }
8295
8315
  },
8296
8316
  walk: {