@purple/phoenix-components 5.30.1 → 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.1",
3
+ "version": "5.30.2",
4
4
  "description": "",
5
5
  "main": "dist/bundle.umd.js",
6
6
  "module": "dist/bundle.esm.js",
@@ -29,7 +29,7 @@
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",
@@ -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",
@@ -96,26 +96,15 @@
96
96
  "@types/react-tabs": "^5.0.5",
97
97
  "@types/styled-system": "^5.1.13",
98
98
  "@types/zxcvbn": "^4.4.2",
99
- "@typescript-eslint/eslint-plugin": "^8.34.1",
100
- "@typescript-eslint/parser": "^8.34.1",
101
99
  "babel-loader": "^8.2.5",
102
100
  "core-js": "^3.25.2",
103
101
  "csstype": "^3.1.2",
104
102
  "date-fns": "^2.30.0",
105
- "eslint": "^9.29.0",
106
- "eslint-config-prettier": "^8.3.0",
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
103
  "globals": "^16.2.0",
114
104
  "husky": "^7.0.1",
115
105
  "jest": "^27.2.4",
116
106
  "lint-staged": "^12.0.0",
117
107
  "postcss": "^8.4.21",
118
- "prettier": "2.3.2",
119
108
  "react": "^19.1.0",
120
109
  "react-docgen-typescript-loader": "^3.1.1",
121
110
  "react-dom": "^19.1.0",
@@ -138,9 +127,13 @@
138
127
  "typescript": "^5.7.2"
139
128
  },
140
129
  "scripts": {
141
- "lint": "eslint 'src' '.storybook' --ext .ts,.tsx,.js,.jsx,.json,.d.ts",
142
- "lint:fix": "eslint 'src' '.storybook' --ext .ts,.tsx,.js,.jsx,.json,.d.ts --fix",
143
- "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/",
144
137
  "tokens": "(git -C my-axiory-tokens pull || git clone https://github.com/purple-technology/my-axiory-tokens.git) && pnpm build:tokens",
145
138
  "build": "rollup -c && rm -r ./dist/types",
146
139
  "build-watch": "rollup -c -w",