Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit bfaf494

Browse files
authored
Merge pull request #121 from fictoan/skeleton
v1.6.0
2 parents a2e03fc + 00c4d60 commit bfaf494

File tree

80 files changed

+22400
-18416
lines changed

Some content is hidden

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

80 files changed

+22400
-18416
lines changed

.storybook/main.ts

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

.storybook/preview.ts

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

CHANGELOG.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# CHANGELOG
22

3+
## 1.6.0
4+
#### ⚠️ BREAKING CHANGES ⚠️
5+
- Colours now support opacity values
6+
- | Old | New |
7+
|-------------------|----------------------------|
8+
| `--slate-dark-40` | `--slate-dark40` |
9+
| `--red-light-20` | `--red-light20` |
10+
|| `--red-light20-opacity90` |
11+
|| `--amber-dark20-opacity20` |
12+
|| `--pistacho-opacity40` |
13+
Basically you just have to remove the hyphen after the `light` and `dark` string for the new format, and it works on all props: `bgColour`, `textColour`, `var()` etc
14+
- This colour generation is now more robust, as its generated with TS, instead of SCSS.
15+
- Removed CJS support, ESM only, because it’s 2024
16+
- Remove Storybook, because we have configurators for each component that does the same job, but better
17+
#### GENERIC CHANGES
18+
- Add `Skeleton` component for loading states
19+
320
## 1.5.0
421
- Rename `SelectWithSearch` to `ListBox` and add fuzzy search, multi-select, and custom entries capabilities
522

@@ -108,17 +125,6 @@
108125
- Rename `FormWrapper` to `Form`
109126
- Rename `CheckBox` to `Checkbox`
110127
- Add consistent `showWhen`, `closeWhen` and `secondsToShowFor` props for transitory components
111-
112-
[//]: # "TODO: Make Fictoan more accessible"
113-
[//]: # "TODO: ⚠️ Remove style tag in CodeBlock"
114-
[//]: # "TODO: ⚠️ Fix TS issue in Select and SWS"
115-
[//]: # "TODO: Fix Dismiss Button in NotifcationItem"
116-
[//]: # "TODO: Add mask design to PinInputField"
117-
[//]: # "TODO: Fix Sidebar scrolling issue"
118-
[//]: # "TODO: Revamp BreadCrumbs?"
119-
120-
~~[//]: # (TODO: ⚠️ Fix Meter height issue)~~
121-
122128
---
123129

124130
### 0.46.8
@@ -664,3 +670,14 @@
664670

665671
### v0.21.0
666672
- Code cleanup
673+
674+
675+
- TODO: Make Fictoan more accessible
676+
- TODO: ⚠️ Remove style tag in CodeBlock
677+
- TODO: Fix Dismiss Button in NotificationItem
678+
- TODO: Add mask design to PinInputField
679+
- TODO: Fix Sidebar scrolling issue
680+
- TODO: Revamp BreadCrumbs?
681+
682+
~~TODO: ⚠️ Fix TS issue in Select and SWS~~
683+
~~TODO: ⚠️ Fix Meter height issue)~~

package.json

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,52 @@
11
{
22
"name": "fictoan-react",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"private": false,
55
"description": "",
66
"type": "module",
77
"sideEffects": [
8-
"**/*.css"
8+
"./src/styles/*.css",
9+
"./src/components/**/typography.css"
910
],
1011
"files": [
1112
"dist"
1213
],
13-
"main": "./dist/index.cjs",
14+
"main": "./dist/index.js",
1415
"module": "./dist/index.js",
1516
"types": "./dist/index.d.ts",
1617
"exports": {
1718
".": {
18-
"import": "./dist/index.js",
19-
"require": "./dist/index.cjs"
19+
"import": "./dist/index.js"
2020
},
2121
"./components": {
22-
"import": "./dist/components/index.js",
23-
"require": "./dist/components/index.cjs"
22+
"import": "./dist/components/index.js"
2423
},
2524
"./dist/": "./dist/"
2625
},
2726
"scripts": {
2827
"preinstall": "npx only-allow pnpm",
29-
"storybook": "storybook dev -p 6006",
3028
"watch": "vite build --watch",
3129
"build": "tsc && vite build",
3230
"build:umd": "tsc && vite build -c vite.config.umd.js",
33-
"build:storybook": "storybook build",
3431
"tree-shake": "agadoo",
35-
"test": "echo \"Error: no test specified\" && exit 1"
32+
"test": "echo \"Error: no test specified\" && exit 1",
33+
"generate-colours": "ts-node scripts/generateColourClasses.ts"
3634
},
3735
"keywords": [],
38-
"author": "",
36+
"author": "Sujan Sundareswaran <[email protected] (https://sujansundareswaran.com)",
37+
"contributors": [
38+
"Naresh <[email protected]> (https://ghostwriternr.me/)",
39+
"Dhruv Misra (https://dhruvmisra.com/)",
40+
"Aditya Gannavarapu <[email protected]> (https://aditya-67.github.io/)",
41+
"Dhiraj Bhakta K <[email protected]>",
42+
"Rohit Singhal"
43+
],
3944
"license": "MIT",
4045
"devDependencies": {
4146
"@babel/preset-env": "^7.23.6",
4247
"@babel/preset-react": "^7.23.3",
4348
"@rollup/plugin-terser": "^0.4.4",
44-
"@storybook/addon-essentials": "^7.6.6",
45-
"@storybook/addon-interactions": "^7.6.6",
46-
"@storybook/addon-links": "^7.6.6",
47-
"@storybook/addon-onboarding": "^1.0.10",
48-
"@storybook/blocks": "^7.6.6",
49-
"@storybook/react": "^7.6.6",
50-
"@storybook/react-vite": "^7.6.6",
51-
"@storybook/test": "^7.6.6",
49+
"@types/node": "^22.9.0",
5250
"@types/prismjs": "^1.26.4",
5351
"@types/react": "^18.2.45",
5452
"@vitejs/plugin-react": "^4.2.1",
@@ -62,10 +60,11 @@
6260
"react": "^18.2.0",
6361
"react-dom": "^18.2.0",
6462
"rollup-plugin-visualizer": "^5.11.0",
65-
"sass": "^1.69.5",
66-
"storybook": "^7.6.6",
63+
"ts-node": "^10.9.2",
64+
"tsx": "^4.19.2",
65+
"types": "link:types",
6766
"typescript": "^5.3.3",
68-
"vite": "^5.0.10",
67+
"vite": "5.4.6",
6968
"vite-plugin-dts": "^3.6.4",
7069
"vite-plugin-lib-inject-css": "^1.3.0",
7170
"vite-plugin-svgr": "^4.2.0"

0 commit comments

Comments
 (0)