@purple/phoenix-components 5.30.0 → 5.30.2

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
@@ -21,7 +21,7 @@ type CSSValue = (string & {}) | number;
21
21
  type CSSColor = string & {};
22
22
 
23
23
  declare const Spacing: readonly ["3xs", "2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl"];
24
- type Spacing = typeof Spacing[number];
24
+ type Spacing = (typeof Spacing)[number];
25
25
  declare const isSpacing: (size?: Spacing | CSSValue) => size is Spacing;
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
- type ColorTheme = typeof ColorTheme[number];
49
+ type ColorTheme = (typeof ColorTheme)[number];
50
50
  declare const isColorTheme: (color?: Color) => color is ColorTheme;
51
51
  declare const TextColor: readonly ["primary", "secondary", "tertiary", "quaternary"];
52
- type TextColor = typeof TextColor[number];
52
+ type TextColor = (typeof TextColor)[number];
53
53
  declare const isTextColor: (color?: Color) => color is TextColor;
54
54
  type Color = TextColor | ColorTheme | CSSColor;
55
55
 
56
56
  declare const Sizing: readonly ["xs", "sm", "md", "lg"];
57
- type Sizing = typeof Sizing[number];
57
+ type Sizing = (typeof Sizing)[number];
58
58
  declare const isSizing: (size?: Sizing | CSSValue) => size is Sizing;
59
59
  declare const SizingSmMd: readonly ["sm", "md"];
60
- type SizingSmMd = typeof SizingSmMd[number];
60
+ type SizingSmMd = (typeof SizingSmMd)[number];
61
61
  declare const SizingMdLg: readonly ["md", "lg"];
62
- type SizingMdLg = typeof SizingMdLg[number];
62
+ type SizingMdLg = (typeof SizingMdLg)[number];
63
63
  declare const SizingSmMdLg: readonly ["sm", "md", "lg"];
64
- type SizingSmMdLg = typeof SizingSmMdLg[number];
64
+ type SizingSmMdLg = (typeof SizingSmMdLg)[number];
65
65
 
66
66
  declare const TextAlignment: readonly ["left", "center", "right", "justify"];
67
- 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__default.FC<BoxProps>;
89
89
 
90
90
  declare const IconAlignment: readonly ["left", "right"];
91
- type IconAlignment = typeof IconAlignment[number];
91
+ type IconAlignment = (typeof IconAlignment)[number];
92
92
 
93
93
  declare const PhoenixIconsOutlinedSrc: {
94
94
  readonly actions: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purple/phoenix-components",
3
- "version": "5.30.0",
3
+ "version": "5.30.2",
4
4
  "description": "",
5
5
  "main": "dist/bundle.umd.js",
6
6
  "module": "dist/bundle.esm.js",
@@ -29,16 +29,16 @@
29
29
  "pc-check-tokens": "./bin/pc-check-tokens.js"
30
30
  },
31
31
  "lint-staged": {
32
- "*.{ts,tsx,js,jsx,json,d.ts}": "eslint --fix"
32
+ "*.{ts,tsx,js,jsx,json,d.ts}": "biome check --write"
33
33
  },
34
34
  "dependencies": {
35
35
  "@emotion/is-prop-valid": "1.4.0",
36
36
  "@react-hook/previous": "~1.0.1",
37
37
  "@tippyjs/react": "~4.2.6",
38
38
  "countries-and-timezones": "^3.3.0",
39
+ "es-toolkit": "^1.40.0",
39
40
  "formik": "~2.4.6",
40
41
  "is-mobile": "~3.1.1",
41
- "lodash": "~4.17.21",
42
42
  "nanoid": "~3.3.4",
43
43
  "nouislider": "~15.7.2",
44
44
  "react-day-picker": "~8.10.1",
@@ -68,9 +68,9 @@
68
68
  "@babel/preset-env": "^7.23.6",
69
69
  "@babel/preset-react": "^7.23.3",
70
70
  "@babel/preset-typescript": "^7.23.3",
71
+ "@biomejs/biome": "^2.2.7",
71
72
  "@commitlint/cli": "^17.0.0",
72
73
  "@commitlint/config-conventional": "^17.0.0",
73
- "@eslint/js": "^9.29.0",
74
74
  "@ironkinoko/rollup-plugin-styles": "^4.0.3",
75
75
  "@rollup/plugin-json": "^6.0.0",
76
76
  "@rollup/plugin-node-resolve": "^15.0.2",
@@ -90,33 +90,21 @@
90
90
  "@testing-library/react": "^14.0.0",
91
91
  "@types/countries-and-timezones": "^3.2.3",
92
92
  "@types/jest": "^27.0.2",
93
- "@types/lodash": "^4.14.178",
94
93
  "@types/node": "^20.4.7",
95
94
  "@types/react": "^19.1.8",
96
95
  "@types/react-dom": "^19.1.6",
97
96
  "@types/react-tabs": "^5.0.5",
98
97
  "@types/styled-system": "^5.1.13",
99
98
  "@types/zxcvbn": "^4.4.2",
100
- "@typescript-eslint/eslint-plugin": "^8.34.1",
101
- "@typescript-eslint/parser": "^8.34.1",
102
99
  "babel-loader": "^8.2.5",
103
100
  "core-js": "^3.25.2",
104
101
  "csstype": "^3.1.2",
105
102
  "date-fns": "^2.30.0",
106
- "eslint": "^9.29.0",
107
- "eslint-config-prettier": "^8.3.0",
108
- "eslint-plugin-json": "^4.0.1",
109
- "eslint-plugin-prettier": "^5.5.0",
110
- "eslint-plugin-react": "^7.37.2",
111
- "eslint-plugin-react-hooks": "^5.2.0",
112
- "eslint-plugin-simple-import-sort": "^12.0.0",
113
- "eslint-plugin-storybook": "^9.0.12",
114
103
  "globals": "^16.2.0",
115
104
  "husky": "^7.0.1",
116
105
  "jest": "^27.2.4",
117
106
  "lint-staged": "^12.0.0",
118
107
  "postcss": "^8.4.21",
119
- "prettier": "2.3.2",
120
108
  "react": "^19.1.0",
121
109
  "react-docgen-typescript-loader": "^3.1.1",
122
110
  "react-dom": "^19.1.0",
@@ -139,9 +127,13 @@
139
127
  "typescript": "^5.7.2"
140
128
  },
141
129
  "scripts": {
142
- "lint": "eslint 'src' '.storybook' --ext .ts,.tsx,.js,.jsx,.json,.d.ts",
143
- "lint:fix": "eslint 'src' '.storybook' --ext .ts,.tsx,.js,.jsx,.json,.d.ts --fix",
144
- "build:tokens": "tsx src/tokens/build.ts && eslint 'src/tokens/' --ext .json --fix",
130
+ "lint": "biome lint src .storybook",
131
+ "lint:fix": "biome lint --write src .storybook",
132
+ "format": "biome format src .storybook",
133
+ "format:fix": "biome format --write src .storybook",
134
+ "check": "biome check src .storybook",
135
+ "check:fix": "biome check --write src .storybook",
136
+ "build:tokens": "tsx src/tokens/build.ts && biome format --write src/tokens/",
145
137
  "tokens": "(git -C my-axiory-tokens pull || git clone https://github.com/purple-technology/my-axiory-tokens.git) && pnpm build:tokens",
146
138
  "build": "rollup -c && rm -r ./dist/types",
147
139
  "build-watch": "rollup -c -w",