@vygruppen/spor-react 12.17.0 → 12.19.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.17.0 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.19.0 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
- ESM dist/index.mjs 300.00 KB
15
- ESM dist/icons/index.mjs 110.00 B
16
- ESM dist/index.mjs.map 641.63 KB
17
- ESM dist/icons/index.mjs.map 157.00 B
18
- ESM ⚡️ Build success in 2812ms
19
- CJS dist/index.cjs 321.71 KB
14
+ CJS dist/index.cjs 321.03 KB
20
15
  CJS dist/icons/index.cjs 381.00 B
21
- CJS dist/index.cjs.map 641.63 KB
22
16
  CJS dist/icons/index.cjs.map 157.00 B
23
- CJS ⚡️ Build success in 2813ms
24
- DTS ⚡️ Build success in 19521ms
17
+ CJS dist/index.cjs.map 638.43 KB
18
+ CJS ⚡️ Build success in 2666ms
19
+ ESM dist/index.mjs 299.20 KB
20
+ ESM dist/icons/index.mjs 110.00 B
21
+ ESM dist/icons/index.mjs.map 157.00 B
22
+ ESM dist/index.mjs.map 638.43 KB
23
+ ESM ⚡️ Build success in 2673ms
24
+ DTS ⚡️ Build success in 20756ms
25
25
  DTS dist/icons/index.d.ts 44.00 B
26
- DTS dist/index.d.ts 157.05 KB
26
+ DTS dist/index.d.ts 155.63 KB
27
27
  DTS dist/icons/index.d.cts 44.00 B
28
- DTS dist/index.d.cts 157.05 KB
28
+ DTS dist/index.d.cts 155.63 KB
@@ -1,11 +1,12 @@
1
1
 
2
- > @vygruppen/spor-react@12.17.0 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.19.0 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: 🔐 prevent building .env in docker: https://dotenvx.com/prebuild
5
+ [dotenv@17.2.2] injecting env (0) from .env -- tip: 🔐 prevent committing .env to code: https://dotenvx.com/precommit
6
6
  ┌ Chakra CLI ⚡️
7
7
  [?25l│
8
- ◇ Generated conditions typings
8
+ ◒ Generating conditions types...
9
+ ◇ ✅ Generated conditions typings
9
10
  [?25h[?25l│
10
11
  ◒ Generating recipe types...
11
12
  ◇ ✅ Generated recipe typings
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.19.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fbf18ea: Update all eslint config dependencies to their latest versions.
8
+ This may introduce breaking changes due to major version upgrades.
9
+
10
+ ### Patch Changes
11
+
12
+ - @vygruppen/spor-design-tokens@4.2.0
13
+ - @vygruppen/spor-icon-react@4.3.0
14
+
15
+ ## 12.18.0
16
+
17
+ ### Minor Changes
18
+
19
+ - cd46711: **Separator**
20
+ - Fix dashed style not rendering correctly on vertical orientation
21
+ - Enable responsive values by removing compound variants from recipe
22
+ - Simplify component types
23
+
24
+ **Button**
25
+ - Fix types to properly support responsive style props
26
+
27
+ **Checkbox**
28
+ - Remove `onChange` prop to prevent confusion with `onValueChange`
29
+
30
+ - 9c3987d: Add a variant to accordion to display it with a border bottom line
31
+
3
32
  ## 12.17.0
4
33
 
5
34
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -190,23 +190,6 @@ function useTranslation() {
190
190
  function createTexts(texts26) {
191
191
  return texts26;
192
192
  }
193
- var hydrating = true;
194
- function useHydrated() {
195
- const [hydrated, setHydrated] = React28.useState(() => !hydrating);
196
- React28.useEffect(function hydrate() {
197
- hydrating = false;
198
- setHydrated(true);
199
- }, []);
200
- return hydrated;
201
- }
202
-
203
- // src/loader/ClientOnly.tsx
204
- var ClientOnly = ({ children, fallback = null }) => {
205
- const isHydrated = useHydrated();
206
- if (!isHydrated)
207
- return fallback;
208
- return children;
209
- };
210
193
  function Lottie({ animationData }) {
211
194
  return /* @__PURE__ */ jsxRuntime.jsx(ReactLottie__default.default, { animationData });
212
195
  }
@@ -216,7 +199,7 @@ var ColorInlineLoader = ({
216
199
  ...props
217
200
  }) => {
218
201
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { role: "status", "aria-live": "polite", ...props, children: [
219
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderColorData }) }) }),
202
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderColorData }) }) }),
220
203
  /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
221
204
  ] });
222
205
  };
@@ -227,14 +210,14 @@ var ColorSpinner = ({
227
210
  ...props
228
211
  }) => {
229
212
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { flexDirection: "column", role: "status", "aria-live": "polite", ...props, children: [
230
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.spinnerColorData }) }) }),
213
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.spinnerColorData }) }) }),
231
214
  /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." }),
232
215
  children && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { marginTop: 3, fontWeight: "bold", children })
233
216
  ] });
234
217
  };
235
218
  var ContentLoader = ({ children, ...props }) => {
236
219
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { role: "status", "aria-live": "polite", ...props, children: [
237
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { maxWidth: "140px", marginX: "auto", children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.contentLoaderData }) }) }),
220
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { maxWidth: "140px", marginX: "auto", children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.contentLoaderData }) }) }),
238
221
  /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." }),
239
222
  children && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { textAlign: "center", fontWeight: "bold", children })
240
223
  ] });
@@ -254,7 +237,7 @@ var DarkFullScreenLoader = ({
254
237
  "aria-live": "polite",
255
238
  ...props,
256
239
  children: [
257
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.fullScreenLoaderWhiteData }) }) }),
240
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.fullScreenLoaderWhiteData }) }) }),
258
241
  /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
259
242
  ]
260
243
  }
@@ -266,7 +249,7 @@ var DarkInlineLoader = ({
266
249
  ...props
267
250
  }) => {
268
251
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { role: "status", "aria-live": "polite", ...props, children: [
269
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderDarkData }) }) }),
252
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderDarkData }) }) }),
270
253
  /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
271
254
  ] });
272
255
  };
@@ -279,7 +262,7 @@ var DarkSpinner = ({
279
262
  const { colorMode } = useColorMode();
280
263
  const spinnerData = colorMode === "dark" ? sporLoader.spinnerLightData : sporLoader.spinnerDarkData;
281
264
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { flexDirection: "column", role: "status", "aria-live": "polite", ...props, children: [
282
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: spinnerData }) }) }),
265
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: spinnerData }) }) }),
283
266
  /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." }),
284
267
  children && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { marginTop: 3, fontWeight: "bold", children })
285
268
  ] });
@@ -290,7 +273,7 @@ var LightFullScreenLoader = ({
290
273
  ...props
291
274
  }) => {
292
275
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { height: "100%", role: "status", "aria-live": "polite", ...props, children: [
293
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.fullScreenLoaderBlackData }) }) }),
276
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.fullScreenLoaderBlackData }) }) }),
294
277
  /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
295
278
  ] });
296
279
  };
@@ -300,7 +283,7 @@ var LightInlineLoader = ({
300
283
  ...props
301
284
  }) => {
302
285
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { height: "100%", role: "status", "aria-live": "polite", ...props, children: [
303
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderLightData }) }) }),
286
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.inlineLoaderLightData }) }) }),
304
287
  /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." })
305
288
  ] });
306
289
  };
@@ -311,7 +294,7 @@ var LightSpinner = ({
311
294
  ...props
312
295
  }) => {
313
296
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Center, { flexDirection: "column", role: "status", "aria-live": "polite", ...props, children: [
314
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.spinnerLightData }) }) }),
297
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { width, maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(react.ClientOnly, { children: /* @__PURE__ */ jsxRuntime.jsx(Lottie, { animationData: sporLoader.spinnerLightData }) }) }),
315
298
  /* @__PURE__ */ jsxRuntime.jsx(react.VisuallyHidden, { children: "Loading..." }),
316
299
  children && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { marginTop: 3, fontWeight: "bold", children })
317
300
  ] });
@@ -900,23 +883,8 @@ var FloatingActionButton = React28.forwardRef(
900
883
  placement = "bottom right",
901
884
  ...props
902
885
  }, ref) => {
903
- const [isTextVisible, setIsTextVisible] = React28__namespace.default.useState(
904
- externalIsTextVisible === void 0 ? false : externalIsTextVisible
905
- );
906
886
  const scrollDirection = useScrollDirection();
907
- React28.useEffect(() => {
908
- if (externalIsTextVisible !== void 0) {
909
- return;
910
- }
911
- const id = globalThis.setTimeout(
912
- () => setIsTextVisible(scrollDirection !== "down"),
913
- 1e3
914
- );
915
- return () => globalThis.clearTimeout(id);
916
- }, [scrollDirection, externalIsTextVisible]);
917
- React28.useEffect(() => {
918
- setIsTextVisible(!!externalIsTextVisible);
919
- }, [externalIsTextVisible]);
887
+ const isTextVisible = externalIsTextVisible === void 0 ? scrollDirection !== "down" : !!externalIsTextVisible;
920
888
  const recipe = react.useSlotRecipe({ key: "floatingActionButton" });
921
889
  const style = recipe({
922
890
  variant,
@@ -3452,36 +3420,39 @@ var prioritizedCountryCodes = [
3452
3420
  { label: "+46", value: "+46" },
3453
3421
  { label: "+45", value: "+45" }
3454
3422
  ];
3455
- var sortedCallingCodes = awesomePhonenumber.getSupportedCallingCodes().sort((a, b) => Number(a) - Number(b)).map((code) => ({
3423
+ var sortedCallingCodes = awesomePhonenumber.getSupportedCallingCodes().toSorted((a, b) => Number(a) - Number(b)).map((code) => ({
3456
3424
  label: `+${code}`,
3457
3425
  value: `+${code}`
3458
3426
  })).filter(
3459
3427
  (code) => !prioritizedCountryCodes.some((pCode) => pCode.label === code.label)
3460
3428
  );
3461
- var callingCodes = react.createListCollection({
3429
+ var allCallingCodes = react.createListCollection({
3462
3430
  items: [...prioritizedCountryCodes, ...sortedCallingCodes]
3463
3431
  });
3464
3432
  var CountryCodeSelect = React28.forwardRef((props, ref) => {
3465
3433
  const { t } = useTranslation();
3466
- if (props.allowedCountryCodes) {
3467
- callingCodes.items = callingCodes.items.filter(
3434
+ const filteredCallingCodes = React28.useMemo(() => {
3435
+ if (!props.allowedCountryCodes)
3436
+ return allCallingCodes;
3437
+ const filteredItems = allCallingCodes.items.filter(
3468
3438
  (callingCode) => {
3469
3439
  var _a5;
3470
- return (_a5 = props.allowedCountryCodes) == null ? void 0 : _a5.some((code) => code === callingCode.label);
3440
+ return (_a5 = props.allowedCountryCodes) == null ? void 0 : _a5.includes(callingCode.label);
3471
3441
  }
3472
3442
  );
3473
- }
3443
+ return react.createListCollection({ items: filteredItems });
3444
+ }, [props.allowedCountryCodes]);
3474
3445
  return /* @__PURE__ */ jsxRuntime.jsx(
3475
3446
  Select,
3476
3447
  {
3477
3448
  ...props,
3478
3449
  ref,
3479
3450
  positioning: { placement: "bottom", flip: false },
3480
- collection: callingCodes,
3451
+ collection: filteredCallingCodes,
3481
3452
  lazyMount: true,
3482
3453
  "aria-label": t(texts15.countryCode),
3483
3454
  sideRadiusVariant: "rightSideSquare",
3484
- children: callingCodes.items.map((code) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { item: code, children: code.label }, code.label))
3455
+ children: filteredCallingCodes.items.map((code) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { item: code, children: code.label }, code.label))
3485
3456
  }
3486
3457
  );
3487
3458
  });
@@ -3942,14 +3913,7 @@ RadioCardGroup.displayName = "RadioCardGroup";
3942
3913
  var RadioCardLabel = react.RadioCard.Label;
3943
3914
  var Separator = React28.forwardRef(
3944
3915
  (props, ref) => {
3945
- const {
3946
- size = "md",
3947
- variant = "solid",
3948
- orientation = "horizontal"
3949
- } = props;
3950
- const recipe = react.useRecipe({ key: "seperator" });
3951
- const styles = recipe({ size, variant, orientation });
3952
- return /* @__PURE__ */ jsxRuntime.jsx(react.Separator, { css: styles, ...props, ref });
3916
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Separator, { ...props, ref, "data-": true });
3953
3917
  }
3954
3918
  );
3955
3919
  Separator.displayName = "Separator";
@@ -4026,9 +3990,10 @@ var icons = {
4026
3990
  },
4027
3991
  walk: { sm: sporIconReact.WalkFill18Icon, md: sporIconReact.WalkFill24Icon, lg: sporIconReact.WalkFill30Icon }
4028
3992
  };
4029
- var getCorrectIcon = ({ variant, size }) => {
3993
+ var LinjeTagIcon = ({ variant, size, css }) => {
4030
3994
  var _a5;
4031
- return ((_a5 = icons[variant]) == null ? void 0 : _a5[size]) ?? react.Box;
3995
+ const IconComponent2 = ((_a5 = icons[variant]) == null ? void 0 : _a5[size]) ?? react.Box;
3996
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconComponent2, {}) });
4032
3997
  };
4033
3998
  var LineIcon = React28.forwardRef(
4034
3999
  function LineIcon2({
@@ -4049,19 +4014,18 @@ var LineIcon = React28.forwardRef(
4049
4014
  const borderContainer = () => {
4050
4015
  return variant === "walk" && target === "travelTag" ? 0 : "1px";
4051
4016
  };
4052
- const Icon2 = getCorrectIcon({
4053
- variant: (
4054
- // eslint-disable-next-line no-nested-ternary
4055
- variant === "custom" && "customIconVariant" in rest ? rest.customIconVariant : variant === "custom" ? "local-train" : variant
4056
- ),
4057
- size
4058
- });
4059
- if (!Icon2) {
4060
- return null;
4061
- }
4062
4017
  if (foregroundColor) {
4063
4018
  styles.iconContainer.backgroundColor = disabled ? "surface.disabled" : foregroundColor;
4064
4019
  }
4020
+ function getIconVariant() {
4021
+ if (variant === "custom") {
4022
+ if ("customIconVariant" in rest) {
4023
+ return rest.customIconVariant;
4024
+ }
4025
+ return "local-train";
4026
+ }
4027
+ return variant;
4028
+ }
4065
4029
  return /* @__PURE__ */ jsxRuntime.jsx(
4066
4030
  react.Box,
4067
4031
  {
@@ -4072,7 +4036,14 @@ var LineIcon = React28.forwardRef(
4072
4036
  "aria-label": label,
4073
4037
  ref,
4074
4038
  className: clsx_default("light", rest.className),
4075
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon2, { css: styles.icon })
4039
+ children: /* @__PURE__ */ jsxRuntime.jsx(
4040
+ LinjeTagIcon,
4041
+ {
4042
+ size,
4043
+ css: styles.icon,
4044
+ variant: getIconVariant()
4045
+ }
4046
+ )
4076
4047
  }
4077
4048
  );
4078
4049
  }
@@ -4106,6 +4077,23 @@ var InfoTag = ({
4106
4077
  ] })
4107
4078
  ] });
4108
4079
  };
4080
+ function renderDeviationLevelIcon(deviationLevel, size, css) {
4081
+ switch (deviationLevel) {
4082
+ case "critical": {
4083
+ return size === "lg" ? /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.ErrorFill24Icon, { css }) : /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.ErrorFill18Icon, { css });
4084
+ }
4085
+ case "major":
4086
+ case "minor": {
4087
+ return size === "lg" ? /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.WarningFill24Icon, { css }) : /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.WarningFill18Icon, { css });
4088
+ }
4089
+ case "info": {
4090
+ return size === "lg" ? /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.InformationFill24Icon, { css }) : /* @__PURE__ */ jsxRuntime.jsx(sporIconReact.InformationFill18Icon, { css });
4091
+ }
4092
+ default: {
4093
+ return null;
4094
+ }
4095
+ }
4096
+ }
4109
4097
  var TravelTag = React28.forwardRef(
4110
4098
  function TravelTag2({
4111
4099
  variant,
@@ -4125,7 +4113,6 @@ var TravelTag = React28.forwardRef(
4125
4113
  size,
4126
4114
  deviationLevel
4127
4115
  });
4128
- const DeviationLevelIcon = getDeviationLevelIcon({ deviationLevel, size });
4129
4116
  return /* @__PURE__ */ jsxRuntime.jsxs(
4130
4117
  react.Box,
4131
4118
  {
@@ -4154,32 +4141,12 @@ var TravelTag = React28.forwardRef(
4154
4141
  title && description && " ",
4155
4142
  description && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: "span", css: styles.description, children: description })
4156
4143
  ] }),
4157
- DeviationLevelIcon && /* @__PURE__ */ jsxRuntime.jsx(DeviationLevelIcon, { css: styles.deviationIcon })
4144
+ renderDeviationLevelIcon(deviationLevel, size, styles.deviationIcon)
4158
4145
  ]
4159
4146
  }
4160
4147
  );
4161
4148
  }
4162
4149
  );
4163
- var getDeviationLevelIcon = ({
4164
- deviationLevel,
4165
- size
4166
- }) => {
4167
- switch (deviationLevel) {
4168
- case "critical": {
4169
- return size === "lg" ? sporIconReact.ErrorFill24Icon : sporIconReact.ErrorFill18Icon;
4170
- }
4171
- case "major":
4172
- case "minor": {
4173
- return size === "lg" ? sporIconReact.WarningFill24Icon : sporIconReact.WarningFill18Icon;
4174
- }
4175
- case "info": {
4176
- return size === "lg" ? sporIconReact.InformationFill24Icon : sporIconReact.InformationFill18Icon;
4177
- }
4178
- default: {
4179
- return null;
4180
- }
4181
- }
4182
- };
4183
4150
  var ExternalIcon = ({
4184
4151
  label,
4185
4152
  size
@@ -5988,11 +5955,9 @@ var pressableCardRecipe = react.defineRecipe({
5988
5955
  }
5989
5956
  });
5990
5957
  var separatorRecipe = react.defineRecipe({
5991
- className: "spor-separator",
5992
5958
  base: {
5993
- borderColor: "outline.disabled",
5994
5959
  display: "block",
5995
- borderRadius: "xl"
5960
+ borderColor: "outline.disabled"
5996
5961
  },
5997
5962
  variants: {
5998
5963
  variant: {
@@ -6000,72 +5965,54 @@ var separatorRecipe = react.defineRecipe({
6000
5965
  borderStyle: "solid"
6001
5966
  },
6002
5967
  dashed: {
5968
+ borderImageSlice: 1,
5969
+ borderImageSource: `repeating-linear-gradient(
5970
+ var(--gradient-direction),
5971
+ var(--spor-colors-outline-disabled) 0,
5972
+ var(--spor-colors-outline-disabled) var(--dash-size),
5973
+ transparent var(--dash-size),
5974
+ transparent calc(var(--dash-size) + var(--dash-gap))
5975
+ )`
5976
+ }
5977
+ },
5978
+ orientation: {
5979
+ vertical: {
5980
+ height: "100%",
5981
+ borderInlineStartWidth: "var(--separator-thickness)",
5982
+ "--gradient-direction": "0deg"
5983
+ },
5984
+ horizontal: {
6003
5985
  width: "100%",
6004
- borderWidth: "0px"
5986
+ borderTopWidth: "var(--separator-thickness)",
5987
+ "--gradient-direction": "90deg"
6005
5988
  }
6006
5989
  },
6007
5990
  size: {
6008
5991
  sm: {
6009
- borderBottomWidth: "1px",
6010
- height: "1px"
5992
+ "--separator-thickness": "1px",
5993
+ borderRadius: "1px",
5994
+ "--dash-size": "2px",
5995
+ "--dash-gap": "3px"
6011
5996
  },
6012
5997
  md: {
6013
- borderBottomWidth: "2px",
6014
- height: "2px"
5998
+ "--separator-thickness": "2px",
5999
+ borderRadius: "2px",
6000
+ "--dash-size": "4px",
6001
+ "--dash-gap": "4px"
6015
6002
  },
6016
6003
  lg: {
6017
- borderBottomWidth: "3px",
6018
- height: "3px"
6019
- }
6020
- },
6021
- orientation: {
6022
- horizontal: {
6023
- width: "100%"
6024
- },
6025
- vertical: {
6026
- height: "100%",
6027
- borderLeftWidth: "1px"
6004
+ "--separator-thickness": "3px",
6005
+ borderRadius: "3px",
6006
+ "--dash-size": "6px",
6007
+ "--dash-gap": "6px"
6028
6008
  }
6029
6009
  }
6030
6010
  },
6031
- compoundVariants: [
6032
- {
6033
- variant: "dashed",
6034
- size: "sm",
6035
- css: {
6036
- background: "linear-gradient(to left, var(--spor-colors-outline-disabled), var(--spor-colors-outline-disabled) 1px, transparent 1px, transparent 4px)",
6037
- backgroundSize: "4px 1px",
6038
- backgroundRepeat: "repeat-x"
6039
- }
6040
- },
6041
- {
6042
- variant: "dashed",
6043
- size: "md",
6044
- css: {
6045
- background: "linear-gradient(to left, var(--spor-colors-outline-disabled), var(--spor-colors-outline-disabled) 3px, transparent 3px, transparent 6px)",
6046
- backgroundSize: "9px 2px",
6047
- backgroundRepeat: "repeat-x"
6048
- }
6049
- },
6050
- {
6051
- variant: "dashed",
6052
- size: "lg",
6053
- css: {
6054
- background: "linear-gradient(to left, var(--spor-colors-outline-disabled), var(--spor-colors-outline-disabled) 3px, transparent 3px, transparent 9px)",
6055
- backgroundSize: "9px 3px",
6056
- backgroundRepeat: "repeat-x"
6057
- }
6058
- },
6059
- {
6060
- variant: "dashed",
6061
- orientation: "vertical",
6062
- css: {
6063
- background: "0",
6064
- width: "0%",
6065
- height: "100%"
6066
- }
6067
- }
6068
- ]
6011
+ defaultVariants: {
6012
+ size: "md",
6013
+ variant: "solid",
6014
+ orientation: "horizontal"
6015
+ }
6069
6016
  });
6070
6017
  var skeletonRecipe = react.defineRecipe({
6071
6018
  className: "chakra-skeleton",
@@ -6195,7 +6142,7 @@ var recipes = {
6195
6142
  link: linkRecipe,
6196
6143
  pressableCard: pressableCardRecipe,
6197
6144
  progressLoader: progressLoaderRecipe,
6198
- seperator: separatorRecipe,
6145
+ separator: separatorRecipe,
6199
6146
  skeleton: skeletonRecipe,
6200
6147
  staticCard: staticCardRecipe,
6201
6148
  textarea: textareaRecipe
@@ -6606,6 +6553,16 @@ var accordionSlotRecipe = react.defineSlotRecipe({
6606
6553
  }
6607
6554
  }
6608
6555
  },
6556
+ underlined: {
6557
+ root: {
6558
+ borderRadius: "none"
6559
+ },
6560
+ item: {
6561
+ borderRadius: "none",
6562
+ borderBottom: "1px solid",
6563
+ borderBottomColor: "floating.outline.active"
6564
+ }
6565
+ },
6609
6566
  floating: {
6610
6567
  item: {
6611
6568
  outline: "1px solid",