Skip to content

Commit e7ca7a6

Browse files
Merge pull request #419 from purple-technology/reverts
chore: adding new icon and reverting upgrade
2 parents ad79d22 + 1e47683 commit e7ca7a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+6721
-4559
lines changed

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
dist
2+
node_modules
3+
storybook-static
4+
coverage
5+
examples
6+
!.storybook
7+
bin
8+
storybook-build-v4

.eslintrc.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"plugin:react/recommended",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:prettier/recommended",
7+
"plugin:storybook/recommended"
8+
],
9+
"parserOptions": {
10+
"ecmaVersion": 2018,
11+
"sourceType": "module"
12+
},
13+
"plugins": [
14+
"@typescript-eslint",
15+
"prettier",
16+
"simple-import-sort",
17+
"react-hooks"
18+
],
19+
"rules": {
20+
"@typescript-eslint/ban-ts-comment": [
21+
"error",
22+
{
23+
"ts-expect-error": "allow-with-description",
24+
"ts-ignore": "allow-with-description",
25+
"ts-nocheck": true,
26+
"ts-check": false
27+
}
28+
],
29+
"@typescript-eslint/ban-types": ["off"],
30+
"@typescript-eslint/explicit-function-return-type": "warn",
31+
"@typescript-eslint/no-explicit-any": ["warn"],
32+
"@typescript-eslint/no-unused-vars": "error",
33+
"@typescript-eslint/no-use-before-define": ["warn"],
34+
"@typescript-eslint/prefer-optional-chain": "error",
35+
"prettier/prettier": "error",
36+
"react-hooks/exhaustive-deps": "warn",
37+
"react-hooks/rules-of-hooks": "error",
38+
"react/prop-types": ["off"],
39+
"simple-import-sort/exports": "error",
40+
"simple-import-sort/imports": "error",
41+
"react/display-name": "off"
42+
},
43+
"settings": {
44+
"react": {
45+
"version": "detect"
46+
}
47+
}
48+
}

.npmrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
use-node-version=22.12.0
2-
node-version=22.12.0
1+
use-node-version=18.12.1
2+
node-version=18.12.1
33
engine-strict=false

.storybook/main.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
3+
addons: [
4+
// Recommended configuration out of the box.
5+
'@storybook/addon-essentials',
6+
// Link stories together to build demos and prototypes with your UI components
7+
'@storybook/addon-links',
8+
// Allowing to test different screen sizes and devices.
9+
'@storybook/addon-viewport',
10+
// Package to help make UI components more accessible.
11+
'@storybook/addon-a11y',
12+
// A storybook addons that lets your users toggle between ltr and rtl.
13+
'@pxblue/storybook-rtl-addon/register',
14+
// Plugin for design tokens
15+
'storybook-design-token'
16+
],
17+
core: {},
18+
features: {
19+
babelModeV7: true
20+
},
21+
framework: {
22+
name: '@storybook/react-webpack5',
23+
options: {
24+
fastRefresh: true
25+
}
26+
},
27+
docs: {
28+
autodocs: true
29+
}
30+
}

.storybook/main.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

.storybook/manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addons } from '@storybook/manager-api'
1+
import { addons } from '@storybook/addons'
22

33
import purpleTheme from './purpleTheme'
44

.storybook/preview.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import React from 'react'
2+
import { ThemeProvider } from 'styled-components'
3+
4+
import { GlobalStyles } from '../src/globalStyles'
5+
import theme from '../src/theme'
6+
7+
export const parameters = {
8+
actions: { argTypesRegex: '^on[A-Z].*' },
9+
options: {
10+
storySort: {
11+
method: 'alphabetical',
12+
order: [
13+
'Foundation',
14+
['Design Tokens', 'Colors', 'Spacing'],
15+
'Components',
16+
'Demo'
17+
]
18+
}
19+
},
20+
designToken: {
21+
disable: true
22+
}
23+
}
24+
25+
export const decorators = [
26+
(Story) => (
27+
<React.StrictMode>
28+
<ThemeProvider theme={theme}>
29+
<GlobalStyles />
30+
<Story />
31+
</ThemeProvider>
32+
</React.StrictMode>
33+
)
34+
]

.storybook/preview.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

.storybook/purpleTheme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { create } from 'storybook/theming'
1+
import { create } from '@storybook/theming'
22

33
import logo from '../public/phoenix-components.png'
44

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [5.25.0](https://github.com/purple-technology/phoenix-components/compare/v5.24.5...v5.25.0) (2025-07-07)
6+
7+
8+
### Features
9+
10+
* add style-dictionary-utils and upgrade typescript-eslint packages ([1e6ede3](https://github.com/purple-technology/phoenix-components/commit/1e6ede30e6486ea3135c38a8d412b5d4d20e3264))
11+
* major dependencies upgrade ([80d5ab4](https://github.com/purple-technology/phoenix-components/commit/80d5ab48814da91ee5caa28e6c9275e3c96e7206))
12+
* upgrade style dictionary package ([4ef34be](https://github.com/purple-technology/phoenix-components/commit/4ef34beae56cf95052b2a918d26a236b3b2b0c60))
13+
14+
15+
### Bug Fixes
16+
17+
* build tokens script ([bd53292](https://github.com/purple-technology/phoenix-components/commit/bd53292cfdae3d91629d2fe14dd1beab509bad69))
18+
* eslint errors ([d284906](https://github.com/purple-technology/phoenix-components/commit/d284906a1c564efb50055d1e42f4355cdde4ed1a))
19+
* pnpm build ([09f28d8](https://github.com/purple-technology/phoenix-components/commit/09f28d83148070a2c8b6e90122de0310eb9cd4cd))
20+
521
### [5.24.5](https://github.com/purple-technology/phoenix-components/compare/v5.24.4...v5.24.5) (2025-07-02)
622

723
### [5.24.4](https://github.com/purple-technology/phoenix-components/compare/v5.24.3...v5.24.4) (2025-06-23)

0 commit comments

Comments
 (0)