sate-lib 1.67.0 → 1.68.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/README.md +2 -0
- package/lib/components/avatar/avatar.test.d.ts +2 -0
- package/lib/components/avatar/avatar.test.d.ts.map +1 -0
- package/lib/components/badge/badge.test.d.ts +2 -0
- package/lib/components/badge/badge.test.d.ts.map +1 -0
- package/lib/components/notification/notification.d.ts +1 -1
- package/lib/components/notification/notification.d.ts.map +1 -1
- package/lib/components/notification/notification.js +1 -1
- package/lib/components/notification/notification.test.d.ts +2 -0
- package/lib/components/notification/notification.test.d.ts.map +1 -0
- package/lib/components/typography/typography.test.d.ts +2 -0
- package/lib/components/typography/typography.test.d.ts.map +1 -0
- package/package.json +20 -13
- package/lib/components/shadow-box/shadow-box.d.ts +0 -5
- package/lib/components/shadow-box/shadow-box.d.ts.map +0 -1
- package/lib/components/shadow-box/shadow-box.js +0 -1
- package/lib/components/shadow-box/shadow-box.styles.module.js +0 -1
- package/lib/components/shadow-box/shadow-box.styles_module.css +0 -1
package/README.md
CHANGED
|
@@ -21,6 +21,8 @@ A lightweight and modular React component library designed for modern web interf
|
|
|
21
21
|
### Development & Configuration
|
|
22
22
|
|
|
23
23
|
- [RSLib](https://rslib.rs/)
|
|
24
|
+
- [RSTest](https://rstest.rs/api/)
|
|
25
|
+
- [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/)
|
|
24
26
|
- [Biome](https://biomejs.dev/)
|
|
25
27
|
- [Husky](https://typicode.github.io/husky/)
|
|
26
28
|
- [Commit Lint](https://commitlint.js.org/)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.test.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.test.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.test.tsx"],"names":[],"mappings":""}
|
|
@@ -2,6 +2,6 @@ interface NotificationProps {
|
|
|
2
2
|
number?: number;
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function Notification({ number, className }: NotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function Notification({ number, className, ...rest }: NotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/components/notification/notification.tsx"],"names":[],"mappings":"AAEA,UAAU,iBAAiB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/components/notification/notification.tsx"],"names":[],"mappings":"AAEA,UAAU,iBAAiB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,YAAY,CAAC,EAC5B,MAAU,EACV,SAAS,EACT,GAAG,IAAI,EACP,EAAE,iBAAiB,2CAiBnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import o from"./notification.styles.module.js";function t({number:t=0,className:e}){let
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import o from"./notification.styles.module.js";function t({number:t=0,className:e,...a}){let r=t>=1?"show":"hide";return i("span",{"aria-hidden":"hide"===r,className:["bodySmallEmphasis",o.root,e].filter(Boolean).join(" "),"data-state":r,...a,children:t})}export{t as Notification};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.test.d.ts","sourceRoot":"","sources":["../../../src/components/notification/notification.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.test.d.ts","sourceRoot":"","sources":["../../../src/components/typography/typography.test.tsx"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sate-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.68.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"keywords": [
|
|
@@ -108,6 +108,7 @@
|
|
|
108
108
|
"build:icons": "node --env-file=.env.local ./src/scripts/download-figma-icons.js && node ./src/scripts/optimize-svgs.js && node ./src/scripts/generate-icon-component.js && pnpm format",
|
|
109
109
|
"optimize:fonts": "node ./src/scripts/subset-fonts.js",
|
|
110
110
|
"storybook": "storybook dev",
|
|
111
|
+
"test": "rstest --coverage",
|
|
111
112
|
"lint": "biome check",
|
|
112
113
|
"format": "biome format --write",
|
|
113
114
|
"release": "HUSKY=0 semantic-release",
|
|
@@ -117,28 +118,34 @@
|
|
|
117
118
|
"@biomejs/biome": "2.3.8",
|
|
118
119
|
"@commitlint/cli": "20.2.0",
|
|
119
120
|
"@commitlint/config-conventional": "20.2.0",
|
|
121
|
+
"@rsbuild/core": "1.6.13",
|
|
122
|
+
"@rsbuild/plugin-react": "1.4.2",
|
|
123
|
+
"@rsbuild/plugin-svgr": "1.2.2",
|
|
124
|
+
"@rslib/core": "0.18.3",
|
|
125
|
+
"@rstest/core": "^0.7.0",
|
|
126
|
+
"@rstest/coverage-istanbul": "^0.1.0",
|
|
120
127
|
"@semantic-release/changelog": "6.0.3",
|
|
121
128
|
"@semantic-release/git": "10.0.1",
|
|
122
129
|
"@semantic-release/npm": "13.1.2",
|
|
130
|
+
"@storybook/addon-a11y": "10.1.4",
|
|
131
|
+
"@storybook/addon-designs": "11.0.3",
|
|
132
|
+
"@storybook/addon-docs": "10.1.4",
|
|
133
|
+
"@storybook/addon-links": "10.1.4",
|
|
134
|
+
"@testing-library/dom": "^10.4.1",
|
|
135
|
+
"@testing-library/react": "^16.3.0",
|
|
123
136
|
"@types/node": "24.10.1",
|
|
124
137
|
"@types/react": "19.2.7",
|
|
138
|
+
"@types/react-dom": "19.2.3",
|
|
125
139
|
"husky": "9.1.7",
|
|
140
|
+
"jsdom": "^27.2.0",
|
|
126
141
|
"react": "19.2.1",
|
|
127
142
|
"semantic-release": "25.0.2",
|
|
128
|
-
"subset-font": "2.4.0",
|
|
129
|
-
"svgo": "4.0.0",
|
|
130
|
-
"typescript": "5.9.3",
|
|
131
|
-
"@rslib/core": "0.18.3",
|
|
132
|
-
"@rsbuild/core": "1.6.13",
|
|
133
|
-
"@rsbuild/plugin-react": "1.4.2",
|
|
134
|
-
"@rsbuild/plugin-svgr": "1.2.2",
|
|
135
|
-
"@storybook/addon-a11y": "10.1.4",
|
|
136
|
-
"@storybook/addon-designs": "11.0.3",
|
|
137
|
-
"@storybook/addon-docs": "10.1.4",
|
|
138
|
-
"@storybook/addon-links": "10.1.4",
|
|
139
143
|
"storybook": "10.1.4",
|
|
140
144
|
"storybook-addon-rslib": "3.1.0",
|
|
141
|
-
"storybook-react-rsbuild": "3.1.0"
|
|
145
|
+
"storybook-react-rsbuild": "3.1.0",
|
|
146
|
+
"subset-font": "2.4.0",
|
|
147
|
+
"svgo": "4.0.0",
|
|
148
|
+
"typescript": "5.9.3"
|
|
142
149
|
},
|
|
143
150
|
"peerDependencies": {
|
|
144
151
|
"react": ">=19.2.1",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from "react";
|
|
2
|
-
export interface ShadowBoxGridProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
}
|
|
4
|
-
export declare function ShadowBoxGrid({ className, ...props }: ShadowBoxGridProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=shadow-box.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shadow-box.d.ts","sourceRoot":"","sources":["../../../src/components/shadow-box/shadow-box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,cAAc,CAAC;CAAG;AAE7E,wBAAgB,aAAa,CAAC,EAC7B,SAAc,EACd,GAAG,KAAK,EACR,EAAE,kBAAkB,2CAcpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as o,jsxs as r}from"react/jsx-runtime";import a from"./shadow-box.styles.module.js";function d({className:d="",...e}){return o("div",{className:`${a.grid} ${d}`.trim(),...e,children:Array.from({length:8},(d,e)=>o("div",{className:a.box,style:{boxShadow:`var(--box-shadow-${e+1})`},children:r("span",{children:["Shadow ",e+1]})},`shadow-${e+1}`))})}export{d as ShadowBoxGrid};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./shadow-box.styles_module.css";let o={grid:"grid-VLmFr4",box:"box-eVY5Mp"};export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.grid-VLmFr4{padding:var(--spacing-size-8,2rem);flex-flow:wrap;place-content:center;align-items:center;gap:2rem;display:flex}.box-eVY5Mp{width:18.75rem;height:12.5rem;padding:var(--spacing-size-8,2rem);color:var(--color-content-primary,#202020);border-radius:var(--radius-radii-large,.75rem);justify-content:center;align-items:center;transition:box-shadow .2s;display:flex}
|