@vygruppen/spor-react 12.4.4 → 12.4.5

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.4.4 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.4.5 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
@@ -10,18 +10,18 @@ CLI Target: node16
10
10
  CJS Build start
11
11
  ESM Build start
12
12
  DTS Build start
13
+ ESM dist/index.mjs 290.10 KB
13
14
  ESM dist/icons/index.mjs 110.00 B
15
+ ESM dist/index.mjs.map 622.03 KB
14
16
  ESM dist/icons/index.mjs.map 157.00 B
15
- ESM dist/index.mjs 294.81 KB
16
- ESM dist/index.mjs.map 633.53 KB
17
- ESM ⚡️ Build success in 2742ms
17
+ ESM ⚡️ Build success in 2664ms
18
18
  CJS dist/icons/index.js 380.00 B
19
+ CJS dist/index.js 310.44 KB
19
20
  CJS dist/icons/index.js.map 157.00 B
20
- CJS dist/index.js 315.09 KB
21
- CJS dist/index.js.map 633.53 KB
22
- CJS ⚡️ Build success in 2743ms
23
- DTS ⚡️ Build success in 28946ms
21
+ CJS dist/index.js.map 622.03 KB
22
+ CJS ⚡️ Build success in 2665ms
23
+ DTS ⚡️ Build success in 29697ms
24
24
  DTS dist/icons/index.d.ts 44.00 B
25
- DTS dist/index.d.ts 126.10 KB
25
+ DTS dist/index.d.ts 126.17 KB
26
26
  DTS dist/icons/index.d.mts 44.00 B
27
- DTS dist/index.d.mts 126.10 KB
27
+ DTS dist/index.d.mts 126.17 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@12.4.4 postinstall /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.4.5 postinstall /home/runner/work/spor/spor/packages/spor-react
3
3
  > chakra typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 9f9f9c0: Replace style utils with tokens for better maintainability
8
+ - @vygruppen/spor-design-tokens@4.0.7
9
+ - @vygruppen/spor-icon-react@4.1.0
10
+
3
11
  ## 12.4.4
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -28,7 +28,7 @@ type ExpandableItemProps = HeadingLevel & {
28
28
  };
29
29
 
30
30
  declare const Accordion: React$1.ForwardRefExoticComponent<Accordion$1.RootProps & {
31
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "ghost" | "core" | undefined>;
31
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | "floating" | undefined>;
32
32
  } & {
33
33
  children?: React$1.ReactNode | undefined;
34
34
  } & {
@@ -56,7 +56,7 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Accordion$1.ItemP
56
56
  * ```
57
57
  */
58
58
  declare const Expandable: React$1.ForwardRefExoticComponent<_chakra_ui_react.AccordionRootProps & {
59
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "ghost" | "core" | undefined>;
59
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | "floating" | undefined>;
60
60
  } & {
61
61
  children?: React$1.ReactNode | undefined;
62
62
  } & {
@@ -139,7 +139,7 @@ declare const Alert: React$1.ForwardRefExoticComponent<Omit<Alert$1.RootProps, "
139
139
  * ```
140
140
  */
141
141
  declare const ExpandableAlert: React$1.ForwardRefExoticComponent<{
142
- variant?: ConditionalValue<"error" | "alt" | "important" | "success" | "info" | undefined>;
142
+ variant?: ConditionalValue<"alt" | "error" | "important" | "success" | "info" | undefined>;
143
143
  } & {
144
144
  children?: React$1.ReactNode | undefined;
145
145
  } & Omit<Accordion$1.RootProps, "size" | "variant" | "orientation" | "value"> & {
@@ -321,7 +321,7 @@ type ButtonProps = Exclude<ButtonProps$1, "size" | "variant" | "colorPalette"> &
321
321
  href?: string;
322
322
  };
323
323
  declare const Button: React__default.ForwardRefExoticComponent<ButtonProps$1 & {
324
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "secondary" | "tertiary" | "ghost" | "primary" | undefined>;
324
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "floating" | "primary" | "secondary" | "tertiary" | undefined>;
325
325
  size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xs" | undefined>;
326
326
  } & {
327
327
  children?: React__default.ReactNode | undefined;
@@ -357,7 +357,7 @@ declare const ButtonGroup: React$1.ForwardRefExoticComponent<GroupProps & {
357
357
  } & React$1.RefAttributes<HTMLDivElement>>;
358
358
 
359
359
  declare const ClipboardButton: React$1.ForwardRefExoticComponent<_chakra_ui_react.ButtonProps & {
360
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "secondary" | "tertiary" | "ghost" | "primary" | undefined>;
360
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "floating" | "primary" | "secondary" | "tertiary" | undefined>;
361
361
  size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xs" | undefined>;
362
362
  } & {
363
363
  children?: React$1.ReactNode | undefined;
@@ -419,7 +419,7 @@ type IconButtonProps = Exclude<IconButtonProps$1, "variant" | "spinner" | "icon"
419
419
  * ```
420
420
  */
421
421
  declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps$1 & {
422
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "secondary" | "tertiary" | "ghost" | "primary" | undefined>;
422
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "floating" | "primary" | "secondary" | "tertiary" | undefined>;
423
423
  size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xs" | undefined>;
424
424
  } & {
425
425
  children?: React__default.ReactNode | undefined;
@@ -610,7 +610,7 @@ type DatePickerVariantProps = RecipeVariantProps<typeof datePickerSlotRecipe>;
610
610
  * ```
611
611
  */
612
612
  declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<AriaDatePickerProps<DateValue>, "onChange"> & Pick<BoxProps, "minHeight" | "width"> & {
613
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "ghost" | "core" | undefined>;
613
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | "floating" | undefined>;
614
614
  } & {
615
615
  children?: React__default.ReactNode | undefined;
616
616
  } & CalendarVariants & {
@@ -1349,7 +1349,7 @@ type NativeSelectdProps = React$1.PropsWithChildren<NativeSelectVariantProps> &
1349
1349
  *
1350
1350
  */
1351
1351
  declare const NativeSelect: React$1.ForwardRefExoticComponent<{
1352
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
1352
+ variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
1353
1353
  } & {
1354
1354
  children?: React$1.ReactNode | undefined;
1355
1355
  } & FieldBaseProps & NativeSelect$1.FieldProps & {
@@ -1782,23 +1782,23 @@ type TextareaProps = Exclude<TextareaProps$1, "size" | "colorPalette"> & FieldPr
1782
1782
  declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1783
1783
  children?: ReactNode | undefined;
1784
1784
  } & FieldBaseProps & {
1785
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
1785
+ variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
1786
1786
  } & {
1787
1787
  label: ReactNode;
1788
1788
  } & React__default.RefAttributes<HTMLTextAreaElement>>;
1789
1789
 
1790
1790
  declare const PressableCard: React$1.ForwardRefExoticComponent<{
1791
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | "accent" | undefined>;
1791
+ variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | "accent" | undefined>;
1792
1792
  } & ButtonProps$1 & React$1.RefAttributes<HTMLDivElement>>;
1793
1793
 
1794
1794
  declare const RadioCard: React__default.ForwardRefExoticComponent<RadioCard$1.ItemProps & {
1795
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
1795
+ variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
1796
1796
  } & {
1797
1797
  inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
1798
1798
  ariaLabel?: string;
1799
1799
  } & React__default.RefAttributes<HTMLInputElement>>;
1800
1800
  declare const RadioCardGroup: React__default.ForwardRefExoticComponent<{
1801
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
1801
+ variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
1802
1802
  } & RadioCard$1.RootProps & {
1803
1803
  children: React__default.ReactNode;
1804
1804
  gap?: string | number;
@@ -2325,23 +2325,23 @@ declare const TravelTag: React$1.ForwardRefExoticComponent<TravelTagProps & Reac
2325
2325
  declare const linkRecipe: _chakra_ui_react.RecipeDefinition<{
2326
2326
  variant: {
2327
2327
  primary: {
2328
+ color: "core.text";
2328
2329
  _hover: {
2329
2330
  color: "text.default";
2330
2331
  _active: {
2331
2332
  color: "text.disabled";
2332
2333
  };
2333
2334
  };
2334
- color: string;
2335
2335
  };
2336
2336
  secondary: {
2337
+ color: "text.hightlight";
2337
2338
  padding: "2px";
2338
2339
  _hover: {
2340
+ color: "text.hightlight";
2339
2341
  _active: {
2340
2342
  color: "text.disabled";
2341
2343
  };
2342
- color: string;
2343
2344
  };
2344
- color: string;
2345
2345
  };
2346
2346
  };
2347
2347
  }>;
@@ -2354,7 +2354,7 @@ type LinkProps = Exclude<LinkProps$1, "variant"> & PropsWithChildren<linkVariant
2354
2354
  external?: boolean;
2355
2355
  };
2356
2356
  declare const TextLink: React__default.ForwardRefExoticComponent<LinkProps$1 & {
2357
- variant?: _chakra_ui_react.ConditionalValue<"secondary" | "primary" | undefined>;
2357
+ variant?: _chakra_ui_react.ConditionalValue<"primary" | "secondary" | undefined>;
2358
2358
  } & {
2359
2359
  children?: React__default.ReactNode | undefined;
2360
2360
  } & {
@@ -2989,13 +2989,13 @@ declare const stepperSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" |
2989
2989
  _dark: "whiteAlpha.900";
2990
2990
  };
2991
2991
  _disabled: {
2992
- color: string;
2992
+ color: "core.text";
2993
2993
  };
2994
2994
  _currentStep: {
2995
- color: string;
2995
+ color: "accent.text";
2996
2996
  };
2997
2997
  _hover: {
2998
- backgroundColor: string;
2998
+ backgroundColor: "accent.surface.hover";
2999
2999
  _disabled: {
3000
3000
  backgroundColor: "transparent";
3001
3001
  };
@@ -3003,7 +3003,7 @@ declare const stepperSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" |
3003
3003
  };
3004
3004
  backButton: {
3005
3005
  _hover: {
3006
- backgroundColor: string;
3006
+ backgroundColor: "brand.surface.hover";
3007
3007
  };
3008
3008
  };
3009
3009
  };
package/dist/index.d.ts CHANGED
@@ -28,7 +28,7 @@ type ExpandableItemProps = HeadingLevel & {
28
28
  };
29
29
 
30
30
  declare const Accordion: React$1.ForwardRefExoticComponent<Accordion$1.RootProps & {
31
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "ghost" | "core" | undefined>;
31
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | "floating" | undefined>;
32
32
  } & {
33
33
  children?: React$1.ReactNode | undefined;
34
34
  } & {
@@ -56,7 +56,7 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Accordion$1.ItemP
56
56
  * ```
57
57
  */
58
58
  declare const Expandable: React$1.ForwardRefExoticComponent<_chakra_ui_react.AccordionRootProps & {
59
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "ghost" | "core" | undefined>;
59
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | "floating" | undefined>;
60
60
  } & {
61
61
  children?: React$1.ReactNode | undefined;
62
62
  } & {
@@ -139,7 +139,7 @@ declare const Alert: React$1.ForwardRefExoticComponent<Omit<Alert$1.RootProps, "
139
139
  * ```
140
140
  */
141
141
  declare const ExpandableAlert: React$1.ForwardRefExoticComponent<{
142
- variant?: ConditionalValue<"error" | "alt" | "important" | "success" | "info" | undefined>;
142
+ variant?: ConditionalValue<"alt" | "error" | "important" | "success" | "info" | undefined>;
143
143
  } & {
144
144
  children?: React$1.ReactNode | undefined;
145
145
  } & Omit<Accordion$1.RootProps, "size" | "variant" | "orientation" | "value"> & {
@@ -321,7 +321,7 @@ type ButtonProps = Exclude<ButtonProps$1, "size" | "variant" | "colorPalette"> &
321
321
  href?: string;
322
322
  };
323
323
  declare const Button: React__default.ForwardRefExoticComponent<ButtonProps$1 & {
324
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "secondary" | "tertiary" | "ghost" | "primary" | undefined>;
324
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "floating" | "primary" | "secondary" | "tertiary" | undefined>;
325
325
  size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xs" | undefined>;
326
326
  } & {
327
327
  children?: React__default.ReactNode | undefined;
@@ -357,7 +357,7 @@ declare const ButtonGroup: React$1.ForwardRefExoticComponent<GroupProps & {
357
357
  } & React$1.RefAttributes<HTMLDivElement>>;
358
358
 
359
359
  declare const ClipboardButton: React$1.ForwardRefExoticComponent<_chakra_ui_react.ButtonProps & {
360
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "secondary" | "tertiary" | "ghost" | "primary" | undefined>;
360
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "floating" | "primary" | "secondary" | "tertiary" | undefined>;
361
361
  size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xs" | undefined>;
362
362
  } & {
363
363
  children?: React$1.ReactNode | undefined;
@@ -419,7 +419,7 @@ type IconButtonProps = Exclude<IconButtonProps$1, "variant" | "spinner" | "icon"
419
419
  * ```
420
420
  */
421
421
  declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps$1 & {
422
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "secondary" | "tertiary" | "ghost" | "primary" | undefined>;
422
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "floating" | "primary" | "secondary" | "tertiary" | undefined>;
423
423
  size?: _chakra_ui_react.ConditionalValue<"sm" | "md" | "lg" | "xs" | undefined>;
424
424
  } & {
425
425
  children?: React__default.ReactNode | undefined;
@@ -610,7 +610,7 @@ type DatePickerVariantProps = RecipeVariantProps<typeof datePickerSlotRecipe>;
610
610
  * ```
611
611
  */
612
612
  declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<AriaDatePickerProps<DateValue>, "onChange"> & Pick<BoxProps, "minHeight" | "width"> & {
613
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "ghost" | "core" | undefined>;
613
+ variant?: _chakra_ui_react.ConditionalValue<"ghost" | "core" | "floating" | undefined>;
614
614
  } & {
615
615
  children?: React__default.ReactNode | undefined;
616
616
  } & CalendarVariants & {
@@ -1349,7 +1349,7 @@ type NativeSelectdProps = React$1.PropsWithChildren<NativeSelectVariantProps> &
1349
1349
  *
1350
1350
  */
1351
1351
  declare const NativeSelect: React$1.ForwardRefExoticComponent<{
1352
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
1352
+ variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
1353
1353
  } & {
1354
1354
  children?: React$1.ReactNode | undefined;
1355
1355
  } & FieldBaseProps & NativeSelect$1.FieldProps & {
@@ -1782,23 +1782,23 @@ type TextareaProps = Exclude<TextareaProps$1, "size" | "colorPalette"> & FieldPr
1782
1782
  declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps$1 & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1783
1783
  children?: ReactNode | undefined;
1784
1784
  } & FieldBaseProps & {
1785
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
1785
+ variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
1786
1786
  } & {
1787
1787
  label: ReactNode;
1788
1788
  } & React__default.RefAttributes<HTMLTextAreaElement>>;
1789
1789
 
1790
1790
  declare const PressableCard: React$1.ForwardRefExoticComponent<{
1791
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | "accent" | undefined>;
1791
+ variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | "accent" | undefined>;
1792
1792
  } & ButtonProps$1 & React$1.RefAttributes<HTMLDivElement>>;
1793
1793
 
1794
1794
  declare const RadioCard: React__default.ForwardRefExoticComponent<RadioCard$1.ItemProps & {
1795
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
1795
+ variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
1796
1796
  } & {
1797
1797
  inputProps?: React__default.InputHTMLAttributes<HTMLInputElement>;
1798
1798
  ariaLabel?: string;
1799
1799
  } & React__default.RefAttributes<HTMLInputElement>>;
1800
1800
  declare const RadioCardGroup: React__default.ForwardRefExoticComponent<{
1801
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
1801
+ variant?: _chakra_ui_react.ConditionalValue<"core" | "floating" | undefined>;
1802
1802
  } & RadioCard$1.RootProps & {
1803
1803
  children: React__default.ReactNode;
1804
1804
  gap?: string | number;
@@ -2325,23 +2325,23 @@ declare const TravelTag: React$1.ForwardRefExoticComponent<TravelTagProps & Reac
2325
2325
  declare const linkRecipe: _chakra_ui_react.RecipeDefinition<{
2326
2326
  variant: {
2327
2327
  primary: {
2328
+ color: "core.text";
2328
2329
  _hover: {
2329
2330
  color: "text.default";
2330
2331
  _active: {
2331
2332
  color: "text.disabled";
2332
2333
  };
2333
2334
  };
2334
- color: string;
2335
2335
  };
2336
2336
  secondary: {
2337
+ color: "text.hightlight";
2337
2338
  padding: "2px";
2338
2339
  _hover: {
2340
+ color: "text.hightlight";
2339
2341
  _active: {
2340
2342
  color: "text.disabled";
2341
2343
  };
2342
- color: string;
2343
2344
  };
2344
- color: string;
2345
2345
  };
2346
2346
  };
2347
2347
  }>;
@@ -2354,7 +2354,7 @@ type LinkProps = Exclude<LinkProps$1, "variant"> & PropsWithChildren<linkVariant
2354
2354
  external?: boolean;
2355
2355
  };
2356
2356
  declare const TextLink: React__default.ForwardRefExoticComponent<LinkProps$1 & {
2357
- variant?: _chakra_ui_react.ConditionalValue<"secondary" | "primary" | undefined>;
2357
+ variant?: _chakra_ui_react.ConditionalValue<"primary" | "secondary" | undefined>;
2358
2358
  } & {
2359
2359
  children?: React__default.ReactNode | undefined;
2360
2360
  } & {
@@ -2989,13 +2989,13 @@ declare const stepperSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" |
2989
2989
  _dark: "whiteAlpha.900";
2990
2990
  };
2991
2991
  _disabled: {
2992
- color: string;
2992
+ color: "core.text";
2993
2993
  };
2994
2994
  _currentStep: {
2995
- color: string;
2995
+ color: "accent.text";
2996
2996
  };
2997
2997
  _hover: {
2998
- backgroundColor: string;
2998
+ backgroundColor: "accent.surface.hover";
2999
2999
  _disabled: {
3000
3000
  backgroundColor: "transparent";
3001
3001
  };
@@ -3003,7 +3003,7 @@ declare const stepperSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" |
3003
3003
  };
3004
3004
  backButton: {
3005
3005
  _hover: {
3006
- backgroundColor: string;
3006
+ backgroundColor: "brand.surface.hover";
3007
3007
  };
3008
3008
  };
3009
3009
  };