@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.14.0 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.14.1 build /home/runner/work/spor/spor/packages/spor-react
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.tsx, src/icons/index.tsx
@@ -11,18 +11,18 @@ CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
13
  DTS Build start
14
- CJS dist/index.cjs 319.89 KB
14
+ CJS dist/index.cjs 320.36 KB
15
15
  CJS dist/icons/index.cjs 381.00 B
16
- CJS dist/index.cjs.map 636.92 KB
16
+ CJS dist/index.cjs.map 637.96 KB
17
17
  CJS dist/icons/index.cjs.map 157.00 B
18
- CJS ⚡️ Build success in 2691ms
19
- ESM dist/index.mjs 298.29 KB
18
+ CJS ⚡️ Build success in 2498ms
19
+ ESM dist/index.mjs 298.78 KB
20
20
  ESM dist/icons/index.mjs 110.00 B
21
- ESM dist/index.mjs.map 636.92 KB
21
+ ESM dist/index.mjs.map 637.96 KB
22
22
  ESM dist/icons/index.mjs.map 157.00 B
23
- ESM ⚡️ Build success in 2692ms
24
- DTS ⚡️ Build success in 18936ms
23
+ ESM ⚡️ Build success in 2498ms
24
+ DTS ⚡️ Build success in 19261ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
- DTS dist/index.d.ts 157.02 KB
26
+ DTS dist/index.d.ts 157.08 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
28
- DTS dist/index.d.cts 157.02 KB
28
+ DTS dist/index.d.cts 157.08 KB
@@ -1,8 +1,8 @@
1
1
 
2
- > @vygruppen/spor-react@12.14.0 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.14.1 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
- [dotenv@17.2.2] injecting env (0) from .env -- tip: 📡 version env with Radar: https://dotenvx.com/radar
5
+ [dotenv@17.2.2] injecting env (0) from .env -- tip: ⚙️ suppress all logs with { quiet: true }
6
6
  ┌ Chakra CLI ⚡️
7
7
  [?25l│
8
8
  ◒ Generating conditions types...
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f582d9c: Resolved padding and overflow issues in the ServiceAlert component
8
+
9
+ Also adjust some stylings that were inconsistent with figma for other components.
10
+
11
+ - 86345da: Correct icon color for alt-transport LineTags.
12
+
3
13
  ## 12.14.0
4
14
 
5
15
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1228,15 +1228,7 @@ var ServiceAlert = React27.forwardRef(
1228
1228
  ]
1229
1229
  }
1230
1230
  ) }),
1231
- /* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemContent, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(react.Stack, { flexDirection: "row", width: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(
1232
- react.Accordion.ItemBody,
1233
- {
1234
- as: react.Stack,
1235
- width: contentWidth,
1236
- css: styles.itemBody,
1237
- children
1238
- }
1239
- ) }) })
1231
+ /* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemContent, { css: styles.itemContent, children: /* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemBody, { maxWidth: contentWidth, css: styles.itemBody, children }) })
1240
1232
  ] })
1241
1233
  }
1242
1234
  );
@@ -1404,7 +1396,7 @@ var Field3 = React27__namespace.forwardRef(
1404
1396
  ]
1405
1397
  }
1406
1398
  ),
1407
- helperText && /* @__PURE__ */ jsxRuntime.jsx(Text3, { fontSize: "sm", color: "text.tertiary", children: helperText })
1399
+ helperText && /* @__PURE__ */ jsxRuntime.jsx(Text3, { variant: "sm", color: "text.tertiary", children: helperText })
1408
1400
  ] });
1409
1401
  }
1410
1402
  );
@@ -1637,10 +1629,10 @@ var CalendarNavigator = ({
1637
1629
  }
1638
1630
  ),
1639
1631
  /* @__PURE__ */ jsxRuntime.jsx(
1640
- react.Box,
1632
+ Text3,
1641
1633
  {
1642
1634
  role: "heading",
1643
- fontSize: "sm",
1635
+ variant: "md",
1644
1636
  fontWeight: "bold",
1645
1637
  flex: "1",
1646
1638
  textAlign: "center",
@@ -1821,19 +1813,11 @@ var DateField = React27.forwardRef(
1821
1813
  css: styles.inputLabel,
1822
1814
  position: "absolute",
1823
1815
  paddingTop: "2px",
1824
- children: /* @__PURE__ */ jsxRuntime.jsxs(
1825
- Label,
1826
- {
1827
- padding: "0",
1828
- fontSize: ["mobile.xs", "desktop.xs"],
1829
- ...props.labelProps,
1830
- children: [
1831
- props.label,
1832
- " ",
1833
- /* @__PURE__ */ jsxRuntime.jsx(react.Field.RequiredIndicator, {})
1834
- ]
1835
- }
1836
- )
1816
+ children: /* @__PURE__ */ jsxRuntime.jsxs(Label, { padding: "0", ...props.labelProps, children: [
1817
+ props.label,
1818
+ " ",
1819
+ /* @__PURE__ */ jsxRuntime.jsx(react.Field.RequiredIndicator, {})
1820
+ ] })
1837
1821
  }
1838
1822
  ),
1839
1823
  /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, i) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -2948,7 +2932,15 @@ function ItemDescription({ children }) {
2948
2932
  const { descriptionProps } = useOptionContext();
2949
2933
  const recipe = react.useSlotRecipe({ key: "listbox" });
2950
2934
  const styles = recipe({});
2951
- return /* @__PURE__ */ jsxRuntime.jsx(react.Box, { ...descriptionProps, css: styles, fontSize: "xs", children });
2935
+ return /* @__PURE__ */ jsxRuntime.jsx(
2936
+ react.Box,
2937
+ {
2938
+ ...descriptionProps,
2939
+ css: styles,
2940
+ fontSize: ["mobile.xs", "desktop.xs"],
2941
+ children
2942
+ }
2943
+ );
2952
2944
  }
2953
2945
  function Option({ item, state }) {
2954
2946
  const ref = React27.useRef(null);
@@ -3025,7 +3017,7 @@ function ListBoxSection({ section, state }) {
3025
3017
  section.rendered && /* @__PURE__ */ jsxRuntime.jsx(
3026
3018
  react.Box,
3027
3019
  {
3028
- fontSize: "mobile.xs",
3020
+ fontSize: ["mobile.sm", "desktop.sm"],
3029
3021
  color: titleColor,
3030
3022
  paddingTop: 1,
3031
3023
  marginTop: isFirstSection ? 0 : 2,
@@ -5428,7 +5420,6 @@ var StepperStep = ({
5428
5420
  Text3,
5429
5421
  {
5430
5422
  variant: "xs",
5431
- fontSize: "1rem",
5432
5423
  color: disabledTextColor,
5433
5424
  cursor: "default",
5434
5425
  paddingX: 2,
@@ -6467,13 +6458,13 @@ var accordionSlotRecipe = react.defineSlotRecipe({
6467
6458
  textAlign: "left",
6468
6459
  width: "full",
6469
6460
  alignItems: "center",
6470
- fontSize: ["mobile.sm", null, "desktop.sm"],
6461
+ fontSize: ["mobile.sm", "desktop.sm"],
6471
6462
  fontFamily: "body",
6472
6463
  fontWeight: "bold",
6473
6464
  outlineOffset: "-2px",
6474
- paddingX: [2, null, 3],
6475
- paddingY: [1, null, 1.5],
6476
- minHeight: [6, null, 7],
6465
+ paddingX: [2, 3],
6466
+ paddingY: [1, 1.5],
6467
+ minHeight: [6, 7],
6477
6468
  cursor: "pointer",
6478
6469
  _disabled: {
6479
6470
  pointerEvents: "none",
@@ -6482,7 +6473,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
6482
6473
  },
6483
6474
  itemContent: {
6484
6475
  borderBottomRadius: "sm",
6485
- fontSize: ["mobile.sm", null, "desktop.sm"],
6476
+ fontSize: ["mobile.sm", "desktop.sm"],
6486
6477
  color: "text",
6487
6478
  height: "auto",
6488
6479
  overflow: "hidden",
@@ -6497,7 +6488,7 @@ var accordionSlotRecipe = react.defineSlotRecipe({
6497
6488
  },
6498
6489
  itemBody: {
6499
6490
  paddingY: 2,
6500
- paddingX: [2, null, 3]
6491
+ paddingX: [2, 3]
6501
6492
  },
6502
6493
  itemIndicator: {
6503
6494
  transition: "rotate 0.2s",
@@ -6799,7 +6790,8 @@ var alertServiceSlotRecipe = react.defineSlotRecipe({
6799
6790
  display: "flex",
6800
6791
  flexDirection: "column",
6801
6792
  justifyContent: "center",
6802
- padding: [2, null, null, 2],
6793
+ padding: ["2", "3"],
6794
+ paddingBottom: "1",
6803
6795
  borderBottomRadius: "md",
6804
6796
  borderTopRadius: "none",
6805
6797
  width: "full",
@@ -6815,27 +6807,37 @@ var alertServiceSlotRecipe = react.defineSlotRecipe({
6815
6807
  }
6816
6808
  },
6817
6809
  itemTriggerTitle: {
6818
- fontSize: ["xs", null, null, "sm"]
6810
+ fontSize: ["mobile.sm", "desktop.sm"]
6819
6811
  },
6820
6812
  notificationText: {
6821
6813
  fontWeight: "400",
6822
- fontSize: ["2xs", null, null, "xs"],
6823
- textWrap: "nowrap"
6814
+ fontSize: ["mobile.xs", "desktop.xs"],
6815
+ textWrap: "nowrap",
6816
+ color: "alert.service.text.secondary"
6817
+ },
6818
+ itemContent: {
6819
+ paddingX: ["2", "3"],
6820
+ paddingBottom: ["2", "3"],
6821
+ paddingTop: ["1", "2"]
6824
6822
  },
6825
6823
  itemBody: {
6826
6824
  marginX: "auto",
6827
6825
  padding: "0 !important",
6828
- paddingBottom: ["0.5", null, null, "1"],
6829
- color: "text.inverted",
6826
+ color: "alert.service.text.secondary",
6827
+ gap: 0,
6828
+ flexDirection: "column",
6829
+ display: "flex",
6830
6830
  "& > p": {
6831
- gap: 2,
6832
6831
  width: "full",
6833
6832
  borderBottom: "1px dashed",
6834
6833
  borderColor: "outline.inverted",
6835
- paddingBottom: "3",
6836
- paddingTop: "2",
6834
+ paddingY: ["1", "1.5"],
6835
+ _first: {
6836
+ paddingTop: 0
6837
+ },
6837
6838
  _last: {
6838
- borderBottom: "none"
6839
+ borderBottom: "none",
6840
+ paddingBottom: 0
6839
6841
  }
6840
6842
  }
6841
6843
  }
@@ -6980,7 +6982,6 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
6980
6982
  display: "inline-flex",
6981
6983
  alignItems: "center",
6982
6984
  boxAlign: "center",
6983
- fontSize: "xs",
6984
6985
  cursor: "pointer",
6985
6986
  transitionProperty: "all",
6986
6987
  borderRadius: "xl",
@@ -7033,8 +7034,7 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
7033
7034
  label: {
7034
7035
  display: "flex",
7035
7036
  alignItems: "center",
7036
- gap: "1",
7037
- fontSize: "xs"
7037
+ gap: "1"
7038
7038
  }
7039
7039
  },
7040
7040
  variants: {
@@ -7046,6 +7046,10 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
7046
7046
  },
7047
7047
  height: 5,
7048
7048
  paddingX: 1.5
7049
+ },
7050
+ label: {
7051
+ fontSize: { base: "mobile.sm", sm: "desktop.sm" },
7052
+ fontWeight: "medium"
7049
7053
  }
7050
7054
  },
7051
7055
  sm: {
@@ -7055,6 +7059,10 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
7055
7059
  },
7056
7060
  height: 6,
7057
7061
  paddingX: 2
7062
+ },
7063
+ label: {
7064
+ fontSize: { base: "mobile.sm", sm: "desktop.sm" },
7065
+ fontWeight: "bold"
7058
7066
  }
7059
7067
  },
7060
7068
  md: {
@@ -7064,6 +7072,10 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
7064
7072
  },
7065
7073
  height: 7,
7066
7074
  paddingX: 2
7075
+ },
7076
+ label: {
7077
+ fontSize: { base: "mobile.md", sm: "desktop.md" },
7078
+ fontWeight: "bold"
7067
7079
  }
7068
7080
  },
7069
7081
  lg: {
@@ -7073,6 +7085,10 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
7073
7085
  },
7074
7086
  height: 8,
7075
7087
  paddingX: 3
7088
+ },
7089
+ label: {
7090
+ fontSize: { base: "mobile.md", sm: "desktop.md" },
7091
+ fontWeight: "bold"
7076
7092
  }
7077
7093
  }
7078
7094
  },
@@ -7132,7 +7148,7 @@ var choiceChipSlotRecipe = react.defineSlotRecipe({
7132
7148
  }
7133
7149
  },
7134
7150
  defaultVariants: {
7135
- size: "md",
7151
+ size: "sm",
7136
7152
  variant: "core",
7137
7153
  chipType: "choice"
7138
7154
  }
@@ -7191,7 +7207,7 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
7191
7207
  }
7192
7208
  },
7193
7209
  inputLabel: {
7194
- fontSize: "mobile.xs",
7210
+ fontSize: ["mobile.xs", "desktop.xs"],
7195
7211
  margin: 0,
7196
7212
  cursor: "text"
7197
7213
  },
@@ -8311,6 +8327,10 @@ var lineIconSlotRecipe = react.defineSlotRecipe({
8311
8327
  "alt-transport": {
8312
8328
  iconContainer: {
8313
8329
  backgroundColor: "linjetag.altTransport"
8330
+ },
8331
+ icon: {
8332
+ // eslint-disable-next-line spor/use-semantic-tokens
8333
+ color: "darkGrey"
8314
8334
  }
8315
8335
  },
8316
8336
  walk: {