sate-lib 1.66.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 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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=avatar.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.test.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=badge.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.test.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.test.tsx"],"names":[],"mappings":""}
@@ -1,2 +1 @@
1
- "use client";
2
1
  import{jsx as r,jsxs as e}from"react/jsx-runtime";import{Portal as a}from"@radix-ui/react-portal";import{Activity as o}from"react";import{RemoveScroll as i}from"react-remove-scroll";import{ButtonIcon as l}from"../button-icon/button-icon.js";import{Typography as t}from"../typography/typography.js";import s from"./drawer.styles.module.js";import{useDrawer as d}from"./useDrawer.js";let m=({open:m,onOpen:n,title:c,className:p,children:h})=>{let{state:f,onClose:v,present:y}=d({onOpenChange:n,open:m}),u=[s.root,s.rootGallery,p].filter(Boolean).join(" ");return r(o,{mode:y?"visible":"hidden",children:e(a,{children:[r("div",{"aria-hidden":!0,className:s.overlay,"data-state":f,onClick:v}),r(i,{forwardProps:!0,children:e("div",{"aria-label":c,"aria-modal":"true",className:u,"data-state":f,role:"dialog",children:[e("div",{className:s.header,children:[r("div",{className:s.close,children:r(l,{icon:"X2",onClick:v,size:"small",variant:"toned"})}),r(t,{as:"h2",className:s.title,variant:"bodyLargeEmphasis",children:c})]}),r("div",{className:s.panel,children:h})]})})]})})};export{m as DrawerGallery};
@@ -1,2 +1 @@
1
- "use client";
2
1
  import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Portal as t}from"@radix-ui/react-portal";import{Activity as o,useEffect as a}from"react";import{RemoveScroll as i}from"react-remove-scroll";import{ButtonIcon as n}from"../button-icon/button-icon.js";import l from"./drawer.styles.module.js";import{useDrawer as d}from"./useDrawer.js";let m=({open:m,onOpen:s,title:c,className:h,children:p})=>{let{state:u,onClose:f,present:v}=d({onOpenChange:s,open:m});a(()=>{if("undefined"==typeof window)return;let e=window.matchMedia("(width <= 1024px)"),r=e=>{e.matches||f()};return e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[f]);let w=[l.root,l.rootMenu,h].filter(Boolean).join(" ");return e(o,{mode:v?"visible":"hidden",children:r(t,{children:[e("div",{"aria-hidden":!0,className:l.overlay,"data-state":u,onClick:f}),e(i,{forwardProps:!0,children:r("div",{"aria-label":c,"aria-modal":"true",className:w,"data-state":u,role:"dialog",children:[e(n,{className:l.menuClose,icon:"X2",onClick:f,size:"small",variant:"lightOnContent"}),e("div",{className:l.panel,children:p})]})})]})})};export{m as DrawerMenu};
@@ -1,2 +1 @@
1
- "use client";
2
1
  import{jsx as r,jsxs as e}from"react/jsx-runtime";import{Portal as a}from"@radix-ui/react-portal";import{Activity as o}from"react";import{RemoveScroll as i}from"react-remove-scroll";import{ButtonIcon as t}from"../button-icon/button-icon.js";import{Typography as l}from"../typography/typography.js";import s from"./drawer.styles.module.js";import{useDrawer as d}from"./useDrawer.js";let m=({open:m,onOpen:n,title:c,className:p,nested:h,children:f})=>{let{state:v,onClose:u,present:y}=d({onOpenChange:n,open:m}),j=[s.root,p].filter(Boolean).join(" ");return r(o,{mode:y?"visible":"hidden",children:e(a,{children:[r("div",{"aria-hidden":!0,className:`${s.overlay} ${h?s.nested:""}`,"data-state":v,onClick:u}),r(i,{forwardProps:!0,children:e("div",{"aria-label":c,"aria-modal":"true",className:j,"data-state":v,role:"dialog",children:[e("div",{className:s.header,children:[r("div",{className:s.close,children:r(t,{icon:"X2",onClick:u,size:"small",variant:"toned"})}),r(l,{as:"h2",className:s.title,variant:"bodyLargeEmphasis",children:c})]}),r("div",{className:s.panel,children:f})]})})]})})};export{m as Drawer};
@@ -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,EAAE,MAAU,EAAE,SAAS,EAAE,EAAE,iBAAiB,2CAYxE"}
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 a=t>=1?"show":"hide";return i("span",{"aria-hidden":"hide"===a,className:["bodySmallEmphasis",o.root,e].filter(Boolean).join(" "),"data-state":a,children:t})}export{t as Notification};
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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=notification.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.test.d.ts","sourceRoot":"","sources":["../../../src/components/notification/notification.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=typography.test.d.ts.map
@@ -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.66.0",
3
+ "version": "1.68.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "keywords": [
@@ -108,45 +108,52 @@
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",
114
115
  "prepare": "husky"
115
116
  },
116
117
  "devDependencies": {
117
- "@biomejs/biome": "2.3.5",
118
- "@commitlint/cli": "20.1.0",
119
- "@commitlint/config-conventional": "20.0.0",
118
+ "@biomejs/biome": "2.3.8",
119
+ "@commitlint/cli": "20.2.0",
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
- "@semantic-release/npm": "13.1.1",
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
- "@types/react": "19.2.3",
137
+ "@types/react": "19.2.7",
138
+ "@types/react-dom": "19.2.3",
125
139
  "husky": "9.1.7",
126
- "react": "19.2.0",
140
+ "jsdom": "^27.2.0",
141
+ "react": "19.2.1",
127
142
  "semantic-release": "25.0.2",
143
+ "storybook": "10.1.4",
144
+ "storybook-addon-rslib": "3.1.0",
145
+ "storybook-react-rsbuild": "3.1.0",
128
146
  "subset-font": "2.4.0",
129
147
  "svgo": "4.0.0",
130
- "typescript": "5.9.3",
131
- "@rslib/core": "0.17.2",
132
- "@rsbuild/core": "1.6.6",
133
- "@rsbuild/plugin-react": "1.4.2",
134
- "@rsbuild/plugin-svgr": "1.2.2",
135
- "@storybook/addon-a11y": "9.1.16",
136
- "@storybook/addon-designs": "10.0.0",
137
- "@storybook/addon-docs": "9.1.16",
138
- "@storybook/addon-links": "9.1.16",
139
- "storybook": "9.1.16",
140
- "storybook-addon-rslib": "2.1.5",
141
- "storybook-react-rsbuild": "2.1.5"
148
+ "typescript": "5.9.3"
142
149
  },
143
150
  "peerDependencies": {
144
- "react": ">=16.9.0",
145
- "react-dom": ">=16.9.0"
151
+ "react": ">=19.2.1",
152
+ "react-dom": ">=19.2.1"
146
153
  },
147
154
  "dependencies": {
148
155
  "@radix-ui/react-portal": "^1.1.10",
149
156
  "@radix-ui/react-radio-group": "1.3.8",
150
- "react-remove-scroll": "^2.7.1"
157
+ "react-remove-scroll": "2.7.2"
151
158
  }
152
159
  }
@@ -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}