@purple/phoenix-components 5.26.0 → 5.28.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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import React$1, { HTMLAttributes, PropsWithChildren, ReactElement, InputHTMLAttributes, FocusEventHandler, JSXElementConstructor, MouseEventHandler, TextareaHTMLAttributes } from 'react';
2
+ import React$1, { HTMLAttributes, JSX, PropsWithChildren, ReactElement, InputHTMLAttributes, FocusEventHandler, JSXElementConstructor, MouseEventHandler, TextareaHTMLAttributes } from 'react';
3
3
  import * as styled_components from 'styled-components';
4
4
  import { DefaultTheme, IntrinsicElementsKeys } from 'styled-components';
5
5
  import { LayoutProps, FlexboxProps, GridProps, BackgroundColorProps, BackgroundProps, OpacityProps, PositionProps, BorderProps, DisplayProps } from 'styled-system';
@@ -12,16 +12,16 @@ import { PipsMode, PipsType } from 'nouislider';
12
12
  import { TabsProps as TabsProps$1 } from 'react-tabs';
13
13
  export { TabPanel } from 'react-tabs';
14
14
 
15
- declare type GenericComponentProps = {
15
+ type GenericComponentProps = {
16
16
  testId?: string;
17
17
  className?: string;
18
18
  };
19
19
 
20
- declare type CSSValue = (string & {}) | number;
21
- declare type CSSColor = string & {};
20
+ type CSSValue = (string & {}) | number;
21
+ type CSSColor = string & {};
22
22
 
23
23
  declare const Spacing: readonly ["3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl"];
24
- declare type Spacing = typeof Spacing[number];
24
+ type Spacing = typeof Spacing[number];
25
25
  declare const isSpacing: (size?: Spacing | CSSValue) => size is "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
26
26
  declare const getSpacingCssValue: (theme: DefaultTheme, value?: Spacing | CSSValue, defaultValue?: string) => string;
27
27
 
@@ -46,25 +46,25 @@ interface PaddingProps {
46
46
  }
47
47
 
48
48
  declare const ColorTheme: readonly ["brand", "success", "warning", "error", "info", "neutral"];
49
- declare type ColorTheme = typeof ColorTheme[number];
49
+ type ColorTheme = typeof ColorTheme[number];
50
50
  declare const isColorTheme: (color?: Color) => color is "brand" | "success" | "warning" | "error" | "info" | "neutral";
51
51
  declare const TextColor: readonly ["primary", "secondary", "tertiary", "quaternary"];
52
- declare type TextColor = typeof TextColor[number];
52
+ type TextColor = typeof TextColor[number];
53
53
  declare const isTextColor: (color?: Color) => color is "primary" | "secondary" | "tertiary" | "quaternary";
54
- declare type Color = TextColor | ColorTheme | CSSColor;
54
+ type Color = TextColor | ColorTheme | CSSColor;
55
55
 
56
56
  declare const Sizing: readonly ["xs", "sm", "md", "lg"];
57
- declare type Sizing = typeof Sizing[number];
57
+ type Sizing = typeof Sizing[number];
58
58
  declare const isSizing: (size?: Sizing | CSSValue) => size is "xs" | "sm" | "md" | "lg";
59
59
  declare const SizingSmMd: readonly ["sm", "md"];
60
- declare type SizingSmMd = typeof SizingSmMd[number];
60
+ type SizingSmMd = typeof SizingSmMd[number];
61
61
  declare const SizingMdLg: readonly ["md", "lg"];
62
- declare type SizingMdLg = typeof SizingMdLg[number];
62
+ type SizingMdLg = typeof SizingMdLg[number];
63
63
  declare const SizingSmMdLg: readonly ["sm", "md", "lg"];
64
- declare type SizingSmMdLg = typeof SizingSmMdLg[number];
64
+ type SizingSmMdLg = typeof SizingSmMdLg[number];
65
65
 
66
66
  declare const TextAlignment: readonly ["left", "center", "right", "justify"];
67
- declare type TextAlignment = typeof TextAlignment[number];
67
+ type TextAlignment = typeof TextAlignment[number];
68
68
 
69
69
  interface CommonTextProps<T> extends HTMLAttributes<T>, GenericComponentProps, TextAlignProp {
70
70
  color?: Color;
@@ -88,7 +88,7 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, Layout
88
88
  declare const Box: React$1.FC<BoxProps>;
89
89
 
90
90
  declare const IconAlignment: readonly ["left", "right"];
91
- declare type IconAlignment = typeof IconAlignment[number];
91
+ type IconAlignment = typeof IconAlignment[number];
92
92
 
93
93
  declare const PhoenixIconsOutlinedSrc: {
94
94
  readonly actions: string;
@@ -330,14 +330,14 @@ declare const PhoenixIconsSrc: {
330
330
  readonly withdrawal: string;
331
331
  readonly wrench: string;
332
332
  };
333
- declare const PhoenixIconsOutlined: ("filter" | "revert" | "key" | "document" | "list" | "search" | "email" | "download" | "actions" | "add" | "add-circle" | "android" | "angled-arrow-left" | "angled-arrow-right" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-right-up" | "arrow-switch" | "arrow-up" | "asterisk" | "bell" | "bitcoin-circle" | "block" | "browser" | "bullet-point" | "burger" | "calculator" | "calendar" | "camera" | "chart-bar-increase" | "chat" | "check" | "check-circle" | "clock" | "clock-idle" | "cog" | "contrast" | "copy" | "cross" | "deposit" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "dots-handle-reorder" | "driving-licence" | "edit" | "ellipsis" | "exclamation" | "exit" | "external" | "eye" | "eye-hidden" | "forward-arrow" | "globe" | "gift" | "history" | "house" | "id-card" | "info-circle" | "language" | "later" | "lightning" | "lock" | "paper" | "passport" | "pencil" | "photo-user" | "pin" | "play-circle" | "profile" | "question-circle" | "refresh" | "refund" | "scales" | "search-plus" | "share-social" | "sliders" | "smartphone" | "speedometer" | "star" | "star-circle" | "stopwatch" | "subtract-circle" | "times-circle" | "transfer" | "trash" | "upload" | "windows" | "withdrawal" | "wrench")[];
334
- declare type PhoenixIconsOutlined = keyof typeof PhoenixIconsOutlinedSrc;
333
+ declare const PhoenixIconsOutlined: ("search" | "filter" | "revert" | "actions" | "add" | "add-circle" | "android" | "angled-arrow-left" | "angled-arrow-right" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-right-up" | "arrow-switch" | "arrow-up" | "asterisk" | "bell" | "bitcoin-circle" | "block" | "browser" | "bullet-point" | "burger" | "calculator" | "calendar" | "camera" | "chart-bar-increase" | "chat" | "check" | "check-circle" | "clock" | "clock-idle" | "cog" | "contrast" | "copy" | "cross" | "deposit" | "document" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "dots-handle-reorder" | "download" | "driving-licence" | "edit" | "ellipsis" | "email" | "exclamation" | "exit" | "external" | "eye" | "eye-hidden" | "forward-arrow" | "globe" | "gift" | "history" | "house" | "id-card" | "info-circle" | "key" | "language" | "later" | "lightning" | "list" | "lock" | "paper" | "passport" | "pencil" | "photo-user" | "pin" | "play-circle" | "profile" | "question-circle" | "refresh" | "refund" | "scales" | "search-plus" | "share-social" | "sliders" | "smartphone" | "speedometer" | "star" | "star-circle" | "stopwatch" | "subtract-circle" | "times-circle" | "transfer" | "trash" | "upload" | "windows" | "withdrawal" | "wrench")[];
334
+ type PhoenixIconsOutlined = keyof typeof PhoenixIconsOutlinedSrc;
335
335
  declare const PhoenixIconsColored: ("bell-brand" | "browser-brand" | "calendar-brand" | "camera-brand" | "contrast-brand" | "driving-licence-brand" | "email-brand" | "exclamation-error" | "exclamation-warning" | "house-brand" | "id-card-brand" | "key-brand" | "language-brand" | "lock-brand" | "lock-success" | "paper-brand" | "passport-brand" | "photo-user-brand" | "pin-brand" | "question-circle-brand" | "smartphone-brand" | "star-brand" | "star-warning" | "trash-error")[];
336
- declare type PhoenixIconsColored = keyof typeof PhoenixIconsColoredSrc;
337
- declare const PhoenixIcons: ("filter" | "revert" | "key" | "document" | "list" | "search" | "email" | "download" | "actions" | "add" | "add-circle" | "android" | "angled-arrow-left" | "angled-arrow-right" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-right-up" | "arrow-switch" | "arrow-up" | "asterisk" | "bell" | "bitcoin-circle" | "block" | "browser" | "bullet-point" | "burger" | "calculator" | "calendar" | "camera" | "chart-bar-increase" | "chat" | "check" | "check-circle" | "clock" | "clock-idle" | "cog" | "contrast" | "copy" | "cross" | "deposit" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "dots-handle-reorder" | "driving-licence" | "edit" | "ellipsis" | "exclamation" | "exit" | "external" | "eye" | "eye-hidden" | "forward-arrow" | "globe" | "gift" | "history" | "house" | "id-card" | "info-circle" | "language" | "later" | "lightning" | "lock" | "paper" | "passport" | "pencil" | "photo-user" | "pin" | "play-circle" | "profile" | "question-circle" | "refresh" | "refund" | "scales" | "search-plus" | "share-social" | "sliders" | "smartphone" | "speedometer" | "star" | "star-circle" | "stopwatch" | "subtract-circle" | "times-circle" | "transfer" | "trash" | "upload" | "windows" | "withdrawal" | "wrench" | "bell-brand" | "browser-brand" | "calendar-brand" | "camera-brand" | "contrast-brand" | "driving-licence-brand" | "email-brand" | "exclamation-error" | "exclamation-warning" | "house-brand" | "id-card-brand" | "key-brand" | "language-brand" | "lock-brand" | "lock-success" | "paper-brand" | "passport-brand" | "photo-user-brand" | "pin-brand" | "question-circle-brand" | "smartphone-brand" | "star-brand" | "star-warning" | "trash-error")[];
338
- declare type PhoenixIcons = keyof typeof PhoenixIconsSrc;
336
+ type PhoenixIconsColored = keyof typeof PhoenixIconsColoredSrc;
337
+ declare const PhoenixIcons: ("search" | "filter" | "revert" | "actions" | "add" | "add-circle" | "android" | "angled-arrow-left" | "angled-arrow-right" | "apple" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-right-up" | "arrow-switch" | "arrow-up" | "asterisk" | "bell" | "bitcoin-circle" | "block" | "browser" | "bullet-point" | "burger" | "calculator" | "calendar" | "camera" | "chart-bar-increase" | "chat" | "check" | "check-circle" | "clock" | "clock-idle" | "cog" | "contrast" | "copy" | "cross" | "deposit" | "document" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "dots-handle-reorder" | "download" | "driving-licence" | "edit" | "ellipsis" | "email" | "exclamation" | "exit" | "external" | "eye" | "eye-hidden" | "forward-arrow" | "globe" | "gift" | "history" | "house" | "id-card" | "info-circle" | "key" | "language" | "later" | "lightning" | "list" | "lock" | "paper" | "passport" | "pencil" | "photo-user" | "pin" | "play-circle" | "profile" | "question-circle" | "refresh" | "refund" | "scales" | "search-plus" | "share-social" | "sliders" | "smartphone" | "speedometer" | "star" | "star-circle" | "stopwatch" | "subtract-circle" | "times-circle" | "transfer" | "trash" | "upload" | "windows" | "withdrawal" | "wrench" | "bell-brand" | "browser-brand" | "calendar-brand" | "camera-brand" | "contrast-brand" | "driving-licence-brand" | "email-brand" | "exclamation-error" | "exclamation-warning" | "house-brand" | "id-card-brand" | "key-brand" | "language-brand" | "lock-brand" | "lock-success" | "paper-brand" | "passport-brand" | "photo-user-brand" | "pin-brand" | "question-circle-brand" | "smartphone-brand" | "star-brand" | "star-warning" | "trash-error")[];
338
+ type PhoenixIcons = keyof typeof PhoenixIconsSrc;
339
339
 
340
- declare type IconType = PhoenixIconsOutlined | React.ReactElement | string;
340
+ type IconType = PhoenixIconsOutlined | React.ReactElement | string;
341
341
 
342
342
  interface CommonButtonProps extends MarginProps {
343
343
  colorTheme?: ColorTheme;
@@ -368,8 +368,8 @@ interface CardProps extends PaddingProps, MarginProps, GenericComponentProps {
368
368
  }
369
369
  declare const Card: React$1.FC<PropsWithChildren<CardProps>>;
370
370
 
371
- declare type FormControlWarningType = ReactElement | string;
372
- declare type FormControlErrorType = ReactElement | string | boolean;
371
+ type FormControlWarningType = ReactElement | string;
372
+ type FormControlErrorType = ReactElement | string | boolean;
373
373
 
374
374
  interface CheckboxRadioCommonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>, GenericComponentProps {
375
375
  colorTheme?: ColorTheme;
@@ -379,7 +379,7 @@ interface CheckboxRadioCommonProps extends Omit<InputHTMLAttributes<HTMLInputEle
379
379
  error?: FormControlErrorType;
380
380
  }
381
381
 
382
- declare type CheckboxProps = CheckboxRadioCommonProps & {
382
+ type CheckboxProps = CheckboxRadioCommonProps & {
383
383
  indeterminate?: boolean;
384
384
  };
385
385
  declare const Checkbox: React$1.FC<CheckboxProps>;
@@ -554,7 +554,7 @@ declare const Flex: React$1.FC<BoxProps>;
554
554
 
555
555
  declare const Grid: React$1.FC<BoxProps>;
556
556
 
557
- declare type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4';
557
+ type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4';
558
558
  interface HeadingProps extends CommonTextProps<HTMLHeadingElement>, PaddingProps, MarginProps {
559
559
  element?: HeadingElement;
560
560
  }
@@ -581,7 +581,7 @@ interface ImageProps extends Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, '
581
581
  }
582
582
  declare const Image: React$1.FC<ImageProps>;
583
583
 
584
- declare type LabelProps = React$1.LabelHTMLAttributes<HTMLLabelElement> & GenericComponentProps & PaddingProps & MarginProps;
584
+ type LabelProps = React$1.LabelHTMLAttributes<HTMLLabelElement> & GenericComponentProps & PaddingProps & MarginProps;
585
585
  declare const Label: React$1.FC<LabelProps>;
586
586
 
587
587
  interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, GenericComponentProps, MarginProps, PaddingProps {
@@ -661,9 +661,9 @@ interface ComponentSliderProps extends GenericComponentProps {
661
661
  px?: CSSValue;
662
662
  disabled?: boolean;
663
663
  }
664
- declare type Pips = PositionsPips | ValuesPips | CountPips | StepsPips | RangePips;
665
- declare type SubRange = number | [number] | [number, number];
666
- declare type PipsFilter = (value: number, type: PipsType) => PipsType;
664
+ type Pips = PositionsPips | ValuesPips | CountPips | StepsPips | RangePips;
665
+ type SubRange = number | [number] | [number, number];
666
+ type PipsFilter = (value: number, type: PipsType) => PipsType;
667
667
  interface PartialFormatter {
668
668
  to: (value: number) => string | number;
669
669
  from?: (value: string) => number | false;
@@ -696,7 +696,7 @@ interface RangePips extends BasePips {
696
696
  mode: PipsMode.Range;
697
697
  }
698
698
 
699
- declare type MultiSliderValue = (number | string)[];
699
+ type MultiSliderValue = (number | string)[];
700
700
  interface MultiSliderProps extends CommonSliderProps, ComponentSliderProps {
701
701
  value: MultiSliderValue;
702
702
  onChange(value: MultiSliderValue): void;
@@ -739,7 +739,7 @@ interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'si
739
739
  }
740
740
  declare const TextInput: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<TextInputProps> & React$1.RefAttributes<HTMLInputElement>>;
741
741
 
742
- declare type PasswordInputProps = Omit<TextInputProps, 'type' | 'contentRight'>;
742
+ type PasswordInputProps = Omit<TextInputProps, 'type' | 'contentRight'>;
743
743
  declare const PasswordInput: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<PasswordInputProps> & React$1.RefAttributes<HTMLInputElement>>;
744
744
 
745
745
  declare enum PasswordStrengthEnum {
@@ -769,8 +769,8 @@ interface ProgressBarProps extends MarginProps, GenericComponentProps {
769
769
  }
770
770
  declare const ProgressBar: React$1.FC<ProgressBarProps>;
771
771
 
772
- declare type RadioProps = CheckboxRadioCommonProps;
773
- declare const Radio: React$1.VoidFunctionComponent<RadioProps>;
772
+ type RadioProps = CheckboxRadioCommonProps;
773
+ declare const Radio: React$1.FunctionComponent<RadioProps>;
774
774
 
775
775
  interface SelectNativeProps<Option extends SelectOption = SelectOption> extends FormControlProps {
776
776
  onChange: (option: Option | null) => void;
@@ -805,7 +805,7 @@ interface SelectPickerOption {
805
805
  }
806
806
  declare const SelectPicker: React$1.FC<SelectPickerProps>;
807
807
 
808
- declare type SliderValue = number | string;
808
+ type SliderValue = number | string;
809
809
  interface SliderProps extends CommonSliderProps, ComponentSliderProps {
810
810
  value: SliderValue;
811
811
  onChange(value: SliderValue): void;
@@ -821,7 +821,7 @@ interface SpinnerProps extends MarginProps, GenericComponentProps {
821
821
  }
822
822
  declare const Spinner: React$1.FC<SpinnerProps>;
823
823
 
824
- declare type TabsProps = TabsProps$1 & GenericComponentProps;
824
+ type TabsProps = TabsProps$1 & GenericComponentProps;
825
825
  declare const Tabs: React$1.FC<TabsProps>;
826
826
 
827
827
  interface TabListCommonProps {
@@ -838,13 +838,14 @@ interface TabProps extends Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>,
838
838
  selectedClassName?: string;
839
839
  tabIndex?: string;
840
840
  id?: string;
841
+ ref?: React$1.Ref<HTMLAnchorElement>;
841
842
  }
842
- declare type TabFunctionProps = React$1.ForwardRefExoticComponent<TabProps> & {
843
+ type TabFunctionProps = React$1.FC<TabProps> & {
843
844
  tabsRole?: 'Tab';
844
- } & React$1.RefAttributes<HTMLAnchorElement>;
845
+ };
845
846
  declare const Tab: TabFunctionProps;
846
847
 
847
- declare type TabListProps = GenericComponentProps & TabListCommonProps;
848
+ type TabListProps = GenericComponentProps & TabListCommonProps;
848
849
  declare const TabList: React$1.FC<PropsWithChildren<TabListProps>> & {
849
850
  tabsRole: 'TabList';
850
851
  };
@@ -868,7 +869,7 @@ interface TextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, For
868
869
  }
869
870
  declare const TextArea: React$1.FC<TextAreaProps>;
870
871
 
871
- declare type TimezonePickerProps = Omit<SelectProps, 'options'> & GenericComponentProps;
872
+ type TimezonePickerProps = Omit<SelectProps, 'options'> & GenericComponentProps;
872
873
  declare const TimezonePicker: React$1.FC<TimezonePickerProps>;
873
874
 
874
875
  declare const getOptions: () => SelectOption[];
@@ -881,7 +882,7 @@ interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'
881
882
  }
882
883
  declare const Toggle: React$1.FC<ToggleProps>;
883
884
 
884
- declare type TooltipProps = Omit<TippyProps, 'theme'> & GenericComponentProps;
885
+ type TooltipProps = Omit<TippyProps, 'theme'> & GenericComponentProps;
885
886
  declare const Tooltip: React$1.FC<TooltipProps>;
886
887
 
887
888
  declare const prefixedTheme: {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@purple/phoenix-components",
3
- "version": "5.26.0",
3
+ "version": "5.28.0",
4
4
  "description": "",
5
5
  "main": "dist/bundle.umd.js",
6
6
  "module": "dist/bundle.esm.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "engines": {
10
- "node": ">=18"
10
+ "node": "22.x"
11
11
  },
12
12
  "files": [
13
13
  "dist"
@@ -22,7 +22,6 @@
22
22
  "styled-components"
23
23
  ],
24
24
  "contributors": [
25
- "Ales Chromec <achromec@purple-technology.com>",
26
25
  "Adam Stepanek <astepanek@purple-technology.com>"
27
26
  ],
28
27
  "license": "MIT",
@@ -36,23 +35,23 @@
36
35
  "@react-hook/previous": "~1.0.1",
37
36
  "@tippyjs/react": "~4.2.6",
38
37
  "countries-and-timezones": "^3.3.0",
39
- "formik": "~2.2.9",
38
+ "formik": "~2.4.6",
40
39
  "is-mobile": "~3.1.1",
41
40
  "lodash": "~4.17.21",
42
41
  "nanoid": "~3.3.4",
43
42
  "nouislider": "~15.7.2",
44
43
  "react-day-picker": "~8.7.1",
45
- "react-dropzone": "~14.2.2",
44
+ "react-dropzone": "~14.3.8",
46
45
  "react-inlinesvg": "~3.0.1",
47
46
  "react-pdf": "~8.0.2",
48
- "react-select": "^5.7.0",
47
+ "react-select": "^5.10.2",
49
48
  "react-tabs": "^6.1.0",
50
49
  "styled-system": "~5.1.5",
51
50
  "zxcvbn": "~4.4.2"
52
51
  },
53
52
  "peerDependencies": {
54
- "react": ">=16.3",
55
- "react-dom": ">=16.3",
53
+ "react": ">=18",
54
+ "react-dom": ">=18",
56
55
  "styled-components": ">=5.3"
57
56
  },
58
57
  "devDependencies": {
@@ -69,22 +68,20 @@
69
68
  "@babel/preset-typescript": "^7.23.3",
70
69
  "@commitlint/cli": "^17.0.0",
71
70
  "@commitlint/config-conventional": "^17.0.0",
71
+ "@eslint/js": "^9.29.0",
72
72
  "@ironkinoko/rollup-plugin-styles": "^4.0.3",
73
- "@pxblue/storybook-rtl-addon": "^1.0.1",
74
73
  "@rollup/plugin-json": "^6.0.0",
75
74
  "@rollup/plugin-node-resolve": "^15.0.2",
76
75
  "@rollup/plugin-terser": "^0.4.3",
77
76
  "@rollup/plugin-typescript": "^11.1.1",
78
77
  "@rollup/plugin-url": "^8.0.1",
79
- "@storybook/addon-a11y": "^7.0.21",
80
- "@storybook/addon-docs": "^7.0.21",
81
- "@storybook/addon-essentials": "^7.0.21",
82
- "@storybook/addon-links": "^7.0.21",
83
- "@storybook/addon-mdx-gfm": "^7.0.21",
84
- "@storybook/addon-viewport": "^7.0.21",
85
- "@storybook/blocks": "^7.0.21",
86
- "@storybook/react": "^7.0.21",
87
- "@storybook/react-webpack5": "^7.0.21",
78
+ "@storybook/addon-a11y": "^9.0.12",
79
+ "@storybook/addon-docs": "^9.0.12",
80
+ "@storybook/addon-links": "^9.0.12",
81
+ "@storybook/manager-api": "^8.6.14",
82
+ "@storybook/react": "^9.0.12",
83
+ "@storybook/react-vite": "^9.0.12",
84
+ "@storybook/react-webpack5": "^9.0.12",
88
85
  "@storybook/storybook-deployer": "^2.8.16",
89
86
  "@testing-library/dom": "^9.3.1",
90
87
  "@testing-library/jest-dom": "^6.1.3",
@@ -93,53 +90,57 @@
93
90
  "@types/jest": "^27.0.2",
94
91
  "@types/lodash": "^4.14.178",
95
92
  "@types/node": "^20.4.7",
96
- "@types/react": "^18.0.20",
97
- "@types/react-dom": "^18.0.6",
93
+ "@types/react": "^19.1.8",
94
+ "@types/react-dom": "^19.1.6",
98
95
  "@types/react-tabs": "^5.0.5",
99
96
  "@types/styled-components": "^5.1.26",
100
97
  "@types/styled-system": "^5.1.13",
101
98
  "@types/zxcvbn": "^4.4.2",
102
- "@typescript-eslint/eslint-plugin": "^4.8.2",
103
- "@typescript-eslint/parser": "^4.8.2",
99
+ "@typescript-eslint/eslint-plugin": "^8.34.1",
100
+ "@typescript-eslint/parser": "^8.34.1",
104
101
  "babel-loader": "^8.2.5",
105
102
  "core-js": "^3.25.2",
106
103
  "csstype": "^3.1.2",
107
104
  "date-fns": "^2.30.0",
108
- "eslint": "^7.32.0",
105
+ "eslint": "^9.29.0",
109
106
  "eslint-config-prettier": "^8.3.0",
110
- "eslint-plugin-prettier": "^4.0.0",
111
- "eslint-plugin-react": "^7.23.2",
112
- "eslint-plugin-react-hooks": "^4.2.0",
113
- "eslint-plugin-simple-import-sort": "^7.0.0",
114
- "eslint-plugin-storybook": "^0.6.12",
107
+ "eslint-plugin-json": "^4.0.1",
108
+ "eslint-plugin-prettier": "^5.5.0",
109
+ "eslint-plugin-react": "^7.37.2",
110
+ "eslint-plugin-react-hooks": "^5.2.0",
111
+ "eslint-plugin-simple-import-sort": "^12.0.0",
112
+ "eslint-plugin-storybook": "^9.0.12",
113
+ "globals": "^16.2.0",
115
114
  "husky": "^7.0.1",
116
115
  "jest": "^27.2.4",
117
116
  "lint-staged": "^12.0.0",
118
117
  "postcss": "^8.4.21",
119
118
  "prettier": "2.3.2",
120
- "react": "^18.2.0",
119
+ "react": "^19.1.0",
121
120
  "react-docgen-typescript-loader": "^3.1.1",
122
- "react-dom": "^18.2.0",
121
+ "react-dom": "^19.1.0",
123
122
  "react-is": "^18.2.0",
124
123
  "remark-gfm": "^3.0.1",
125
124
  "rimraf": "^3.0.0",
126
125
  "rollup": "^3.22.0",
127
126
  "rollup-plugin-dts": "^5.3.0",
128
127
  "rollup-plugin-peer-deps-external": "^2.2.0",
128
+ "sb-design-token": "^4.0.1",
129
129
  "standard-version": "^9.3.0",
130
- "storybook": "^7.0.21",
131
- "storybook-design-token": "^3.0.0-beta.3",
132
- "style-dictionary": "^3.7.2",
130
+ "storybook": "^9.0.12",
131
+ "style-dictionary": "^5.0.0",
132
+ "style-dictionary-utils": "^4.1.0",
133
133
  "styled-components": "^5.3.5",
134
134
  "tippy.js": "^6.3.7",
135
135
  "ts-node": "^10.9.1",
136
136
  "tslib": "^2.6.2",
137
- "typescript": "^4.8.3"
137
+ "tsx": "^4.20.3",
138
+ "typescript": "^4.8.4"
138
139
  },
139
140
  "scripts": {
140
141
  "lint": "eslint 'src' '.storybook' --ext .ts,.tsx,.js,.jsx,.json,.d.ts",
141
142
  "lint:fix": "eslint 'src' '.storybook' --ext .ts,.tsx,.js,.jsx,.json,.d.ts --fix",
142
- "build:tokens": "ts-node --project ./ts-node.tsconfig.json --files src/tokens/build.ts && eslint 'src/tokens/' --ext .json --fix",
143
+ "build:tokens": "tsx src/tokens/build.ts && eslint 'src/tokens/' --ext .json --fix",
143
144
  "tokens": "(git -C my-axiory-tokens pull || git clone https://github.com/purple-technology/my-axiory-tokens.git) && pnpm build:tokens",
144
145
  "build": "rollup -c && rm -r ./dist/types",
145
146
  "build-watch": "rollup -c -w",