sate-lib 1.41.0 → 1.42.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.
@@ -1,6 +1,6 @@
1
1
  import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from "react";
2
2
  import { type IconName } from "../icon/icon";
3
- type Variant = "filled" | "outlined" | "text" | "toned" | "lightOnContent" | "darkOnContent";
3
+ export type Variant = "filled" | "outlined" | "text" | "toned" | "lightOnContent" | "darkOnContent";
4
4
  type Size = "xSmall" | "small" | "medium" | "large";
5
5
  type ButtonAsButton = ButtonHTMLAttributes<HTMLButtonElement> & {
6
6
  href?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAInD,KAAK,OAAO,GACT,QAAQ,GACR,UAAU,GACV,MAAM,GACN,OAAO,GACP,gBAAgB,GAChB,eAAe,CAAC;AACnB,KAAK,IAAI,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEpD,KAAK,cAAc,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AACF,KAAK,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,UAAU,WAAW;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CA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AAC,cAAc,GAAG,YAAY,CAAC,CAAC;AAEjE,wBAAgB,MAAM,CAAC,EACtB,IAAI,EACJ,OAAkB,EAClB,IAAc,EACd,IAAI,EACJ,YAAqB,EACrB,KAAK,EACL,OAAO,EACP,QAAQ,EACR,SAAc,EACd,GAAG,KAAK,EACR,EAAE,WAAW,2CA0Db"}
@@ -0,0 +1,5 @@
1
+ import { type DrawerInterface } from "./useDrawer";
2
+ export interface DrawerProps extends DrawerInterface {
3
+ }
4
+ export declare const DrawerGallery: ({ open, onOpen, title, className, children, }: DrawerProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ //# sourceMappingURL=drawer-gallery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-gallery.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer-gallery.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,aAAa,CAAC;AAG9D,MAAM,WAAW,WAAY,SAAQ,eAAe;CAAG;AAEvD,eAAO,MAAM,aAAa,GAAI,+CAM3B,WAAW,mDA2Cb,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Portal as a}from"@radix-ui/react-portal";import{Activity as o}from"react";import{Button as t}from"../button/button.js";import i from"./drawer.styles.module.js";import{useDrawer as l}from"./useDrawer.js";import{useMediaQuery as n}from"./useMediaQuery.js";let m=({open:m,onOpen:s,title:d,className:c,children:p})=>{let u=n("(min-width: 900px)"),{state:f,onClose:h,present:j}=l({onOpenChange:s,open:m}),v=[i.root,i.rootGallery,c].filter(Boolean).join(" ");return j?e(o,{mode:j?"visible":"hidden",children:r(a,{children:[e("div",{"aria-hidden":!0,className:i.overlay,"data-state":f,onClick:h}),r("div",{"aria-label":d,"aria-modal":"true",className:v,"data-state":f,role:"dialog",tabIndex:-1,children:[e(t,{className:i.close,icon:"X",iconPosition:"left",onClick:h,size:"small",variant:u?"toned":"lightOnContent"}),e("div",{className:i.panel,children:p})]})]})}):null};export{m as DrawerGallery};
@@ -0,0 +1,5 @@
1
+ import { type DrawerInterface } from "./useDrawer";
2
+ export interface DrawerProps extends DrawerInterface {
3
+ }
4
+ export declare const DrawerMenu: ({ open, onOpen, title, className, children, }: DrawerProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ //# sourceMappingURL=drawer-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer-menu.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer-menu.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,aAAa,CAAC;AAE9D,MAAM,WAAW,WAAY,SAAQ,eAAe;CAAG;AAEvD,eAAO,MAAM,UAAU,GAAI,+CAMxB,WAAW,mDA0Cb,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Portal as a}from"@radix-ui/react-portal";import{Activity as o}from"react";import{Button as t}from"../button/button.js";import i from"./drawer.styles.module.js";import{useDrawer as l}from"./useDrawer.js";let n=({open:n,onOpen:s,title:m,className:d,children:c})=>{let{state:u,onClose:p,present:f}=l({onOpenChange:s,open:n}),h=[i.root,i.rootMenu,d].filter(Boolean).join(" ");return f?e(o,{mode:f?"visible":"hidden",children:r(a,{children:[e("div",{"aria-hidden":!0,className:i.overlay,"data-state":u,onClick:p}),r("div",{"aria-label":m,"aria-modal":"true",className:h,"data-state":u,role:"dialog",tabIndex:-1,children:[e(t,{className:i.close,icon:"X",iconPosition:"left",onClick:p,size:"small",variant:"lightOnContent"}),e("div",{className:i.panel,children:c})]})]})}):null};export{n as DrawerMenu};
@@ -1,10 +1,6 @@
1
- export interface DrawerProps {
2
- open: boolean;
3
- onOpen: (val: boolean) => void;
4
- title?: string;
5
- className?: string;
6
- children?: React.ReactNode;
7
- desktopFullScreen?: boolean;
1
+ import { type DrawerInterface } from "./useDrawer";
2
+ export interface DrawerProps extends DrawerInterface {
3
+ nested?: boolean;
8
4
  }
9
- export declare const Drawer: ({ open, onOpen, title, className, children, desktopFullScreen, }: DrawerProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ export declare const Drawer: ({ open, onOpen, title, className, nested, children, }: DrawerProps) => import("react/jsx-runtime").JSX.Element | null;
10
6
  //# sourceMappingURL=drawer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,MAAM,GAAI,kEAOpB,WAAW,mDAuFb,CAAC"}
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,aAAa,CAAC;AAE9D,MAAM,WAAW,WAAY,SAAQ,eAAe;IACnD,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,MAAM,GAAI,uDAOpB,WAAW,mDAgDb,CAAC"}
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{Portal as r}from"@radix-ui/react-portal";import{useEffect as o,useLayoutEffect as a,useState as l}from"react";import{Button as i}from"../button/button.js";import{Typography as n}from"../typography/typography.js";import s from"./drawer.styles.module.js";let d=({open:d,onOpen:m,title:c,className:u,children:p,desktopFullScreen:f=!1})=>{let[y,h]=l(d),[v,w]=l(!1);o(()=>{if(d)h(!0);else{w(!1);let e=setTimeout(()=>h(!1),300);return()=>clearTimeout(e)}},[d]),a(()=>{if(!y)return;let e=requestAnimationFrame(()=>{w(!0)});return()=>{cancelAnimationFrame(e)}},[y]),o(()=>{if(!y)return;let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=e=>{"Escape"===e.key&&m(!1)};return window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[y,m]);let b=[s.root,u].filter(Boolean).join(" "),k=v?"open":"closed";return y?t(r,{children:[e("div",{"aria-hidden":!0,className:s.overlay,"data-state":k,onClick:()=>m(!1)}),t("div",{"aria-label":c,"aria-modal":"true",className:b,"data-desktop-fullscreen":f?"true":"false","data-state":k,role:"dialog",tabIndex:-1,children:[e(i,{className:s.close,icon:"X",iconPosition:"left",onClick:()=>m(!1),size:"small",variant:"lightOnContent"}),t("div",{className:s.panel,children:[c&&e("div",{className:s.header,children:e(n,{as:"h2",className:s.title,variant:"bodyLargeEmphasis",children:c})}),p]})]})]}):null};export{d as Drawer};
2
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Portal as r}from"@radix-ui/react-portal";import{Activity as i}from"react";import{Button as o}from"../button/button.js";import{Typography as t}from"../typography/typography.js";import l from"./drawer.styles.module.js";import{useDrawer as s}from"./useDrawer.js";let n=({open:n,onOpen:d,title:m,className:c,nested:p,children:h})=>{let{state:f,onClose:u,present:v}=s({onOpenChange:d,open:n}),y=[l.root,c].filter(Boolean).join(" ");return v?e(i,{mode:v?"visible":"hidden",children:a(r,{children:[e("div",{"aria-hidden":!0,className:`${l.overlay} ${p?l.nested:""}`,"data-state":f,onClick:u}),a("div",{"aria-label":m,"aria-modal":"true",className:y,"data-state":f,role:"dialog",tabIndex:-1,children:[e(o,{className:l.close,icon:"X",iconPosition:"left",onClick:u,size:"small",variant:"toned"}),a("div",{className:l.panel,children:[e("div",{className:l.header,children:e(t,{as:"h2",className:l.title,variant:"bodyLargeEmphasis",children:m})}),h]})]})]})}):null};export{n as Drawer};
@@ -1 +1 @@
1
- import"./drawer.styles_module.css";let e={overlay:"overlay-DaEAC4",root:"root-sf4EHo",panel:"panel-RaauhH",header:"header-i2W6Rn",close:"close-EWvEEO"};export{e as default};
1
+ import"./drawer.styles_module.css";let e={overlay:"overlay-DaEAC4",nested:"nested-pRD_ow",panel:"panel-RaauhH",root:"root-sf4EHo",header:"header-i2W6Rn",close:"close-EWvEEO",rootGallery:"rootGallery-I7BGft",rootMenu:"rootMenu-x4puZm"};export{e as default};
@@ -1 +1 @@
1
- .overlay-DaEAC4{z-index:100;pointer-events:none;opacity:0;will-change:opacity;background:#0006;transition:opacity .3s cubic-bezier(.32,.72,0,1);position:fixed;inset:0}.overlay-DaEAC4[data-state=open]{pointer-events:auto;opacity:1}.root-sf4EHo{--drawer-top-margin:6rem;z-index:101;max-height:calc(100vh - var(--drawer-top-margin));margin-top:var(--drawer-top-margin);background:var(--color-white,#fff);border-top-left-radius:var(--radius-radii-24,1.5rem);border-top-right-radius:var(--radius-radii-24,1.5rem);box-shadow:var(--box-shadow-5);will-change:transform;flex-direction:column;transition:transform .3s cubic-bezier(.22,.61,.36,1);display:flex;position:fixed;bottom:0;left:0;right:0;overflow-y:auto;transform:translateY(100%)}.root-sf4EHo[data-state=open]{transform:translateY(0)}@media (width>=900px){.root-sf4EHo{border-radius:var(--radius-radii-24,1.5rem);opacity:0;width:24.375rem;max-height:80vh;margin-top:0;transition:transform .3s cubic-bezier(.22,.61,.36,1),opacity .22s cubic-bezier(.32,.72,0,1);inset:50% auto auto 50%;transform:translate(-50%,-50%)scale(.95)}.root-sf4EHo[data-state=open]{opacity:1;transform:translate(-50%,-50%)scale(1)}.root-sf4EHo[data-desktop-fullscreen=true]{opacity:0;border-radius:0;width:100vw;height:100vh;max-height:none;margin-top:0;transition:opacity .3s cubic-bezier(.32,.72,0,1);inset:0;transform:none}.root-sf4EHo[data-desktop-fullscreen=true][data-state=open]{opacity:1}.root-sf4EHo[data-desktop-fullscreen=true] .panel-RaauhH{width:100%;max-width:64rem;padding-top:var(--spacing-size-80,5rem);margin:0 auto}}.header-i2W6Rn{justify-content:center;align-items:center;height:3.5rem;display:flex}.panel-RaauhH{overflow-y:auto}.close-EWvEEO{z-index:102;position:absolute;top:.75rem;left:.75rem}
1
+ .overlay-DaEAC4{z-index:100;pointer-events:none;opacity:0;will-change:opacity;background:#0006;transition:opacity .3s cubic-bezier(.32,.72,0,1);position:fixed;inset:0}.overlay-DaEAC4[data-state=open]{pointer-events:auto;opacity:1}.nested-pRD_ow{z-index:102}.panel-RaauhH{overflow-y:auto}.root-sf4EHo{--drawer-top-margin:6rem;z-index:102;max-height:calc(100vh - var(--drawer-top-margin));margin-top:var(--drawer-top-margin);touch-action:none;background:var(--color-white,#fff);border-top-left-radius:var(--radius-radii-24,1.5rem);border-top-right-radius:var(--radius-radii-24,1.5rem);box-shadow:var(--box-shadow-5);will-change:transform;flex-direction:column;transition:transform .3s cubic-bezier(.22,.61,.36,1);display:flex;position:fixed;bottom:0;left:0;right:0;overflow-y:auto;transform:translateY(100%)}.root-sf4EHo[data-state=open]{transform:translateY(0)}@media (width>=900px){.root-sf4EHo{border-radius:var(--radius-radii-24,1.5rem);opacity:0;width:24.375rem;max-height:80vh;margin-top:0;transition:transform .3s cubic-bezier(.22,.61,.36,1),opacity .22s cubic-bezier(.32,.72,0,1);inset:50% auto auto 50%;transform:translate(-50%,-50%)scale(.95)}.root-sf4EHo[data-state=open]{opacity:1;transform:translate(-50%,-50%)scale(1)}}.header-i2W6Rn{justify-content:center;align-items:center;height:3.5rem;display:flex}.close-EWvEEO{z-index:102;position:absolute;top:.75rem;left:.75rem}@media (width>=900px){.rootGallery-I7BGft{opacity:0;border-radius:0;width:100vw;height:100vh;max-height:none;margin-top:0;transition:opacity .3s cubic-bezier(.32,.72,0,1);inset:0;transform:none}.rootGallery-I7BGft[data-state=open]{opacity:1;transform:none}.rootGallery-I7BGft .panel-RaauhH{padding:var(--spacing-size-80,5rem)10vw;margin:0 auto}}.rootMenu-x4puZm{border-radius:0;max-height:100vh;margin-top:0;transform:translate(100%)}.rootMenu-x4puZm[data-state=open]{transform:translate(0)}
@@ -0,0 +1,5 @@
1
+ import { Drawer } from "./drawer";
2
+ import { DrawerGallery } from "./drawer-gallery";
3
+ import { DrawerMenu } from "./drawer-menu";
4
+ export { Drawer, DrawerGallery, DrawerMenu };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ import{Drawer as r}from"./drawer.js";import{DrawerGallery as e}from"./drawer-gallery.js";import{DrawerMenu as a}from"./drawer-menu.js";export{r as Drawer,e as DrawerGallery,a as DrawerMenu};
@@ -0,0 +1,19 @@
1
+ export interface DrawerInterface {
2
+ open: boolean;
3
+ onOpen: (val: boolean) => void;
4
+ title: string;
5
+ className?: string;
6
+ children?: React.ReactNode;
7
+ }
8
+ type UseDrawerOptions = {
9
+ open: boolean;
10
+ onOpenChange: (val: boolean) => void;
11
+ };
12
+ type State = "open" | "closed";
13
+ export declare function useDrawer({ open, onOpenChange }: UseDrawerOptions): {
14
+ onClose: () => void;
15
+ present: boolean;
16
+ state: State;
17
+ };
18
+ export {};
19
+ //# sourceMappingURL=useDrawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/useDrawer.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,KAAK,gBAAgB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;CACrC,CAAC;AAEF,KAAK,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;AAI/B,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,gBAAgB;;;;EAqEjE"}
@@ -0,0 +1 @@
1
+ import{useEffect as e,useLayoutEffect as t,useState as o}from"react";function n({open:n,onOpenChange:d}){let[r,y]=o(n),[i,l]=o(!1);return e(()=>{if(n)y(!0);else{l(!1);let e=setTimeout(()=>y(!1),300);return()=>clearTimeout(e)}},[n]),t(()=>{if(!r)return;let e=requestAnimationFrame(()=>{l(!0)});return()=>{cancelAnimationFrame(e)}},[r]),e(()=>{if(!r)return;document.documentElement.style.scrollBehavior="auto",document.body.style.overflow="hidden",document.body.style.overscrollBehavior="contain",document.body.style.position="relative",document.body.style.paddingLeft="0px",document.body.style.paddingTop="0px",document.body.style.paddingRight="0px",document.body.style.marginLeft="0",document.body.style.marginTop="0",document.body.style.marginRight="0px",document.body.style.pointerEvents="none";let e=e=>{"Escape"===e.key&&d(!1)};return window.addEventListener("keydown",e),()=>{document.documentElement.style.scrollBehavior="",document.body.style.overflow="",document.body.style.overscrollBehavior="",document.body.style.position="",document.body.style.paddingLeft="",document.body.style.paddingTop="",document.body.style.paddingRight="",document.body.style.marginLeft="",document.body.style.marginTop="",document.body.style.marginRight="",document.body.style.pointerEvents="",window.removeEventListener("keydown",e)}},[r,d]),{onClose:()=>d(!1),present:r,state:i?"open":"closed"}}export{n as useDrawer};
@@ -0,0 +1,9 @@
1
+ import { useEffect } from "react";
2
+ export declare const useIsomorphicLayoutEffect: typeof useEffect;
3
+ type UseMediaQueryOptions = {
4
+ defaultValue?: boolean;
5
+ initializeWithValue?: boolean;
6
+ };
7
+ export declare function useMediaQuery(query: string, { defaultValue, initializeWithValue, }?: UseMediaQueryOptions): boolean;
8
+ export {};
9
+ //# sourceMappingURL=useMediaQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/useMediaQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,OAAO,CAAC;AAEnD,eAAO,MAAM,yBAAyB,kBACsB,CAAC;AAI7D,KAAK,oBAAoB,GAAG;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAIF,wBAAgB,aAAa,CAC5B,KAAK,EAAE,MAAM,EACb,EACC,YAAoB,EACpB,mBAA0B,GAC1B,GAAE,oBAAyB,GAC1B,OAAO,CA2CT"}
@@ -0,0 +1 @@
1
+ import{useEffect as e,useLayoutEffect as t,useState as n}from"react";let i="undefined"!=typeof window?t:e,r="undefined"==typeof window;function d(e,{defaultValue:t=!1,initializeWithValue:o=!0}={}){let a=e=>r?t:window.matchMedia(e).matches,[c,s]=n(()=>o?a(e):t);function u(){s(a(e))}return i(()=>{let t=window.matchMedia(e);return u(),t.addListener?t.addListener(u):t.addEventListener("change",u),()=>{t.removeListener?t.removeListener(u):t.removeEventListener("change",u)}},[e]),c}export{i as useIsomorphicLayoutEffect,d as useMediaQuery};
@@ -1,39 +1,39 @@
1
1
  import type { SVGProps } from "react";
2
2
  export declare const Icons: {
3
- readonly ArrowsOutSimple: string;
4
- readonly ArrowUpRight: string;
5
- readonly CaretDown: string;
6
- readonly CaretLeft: string;
7
- readonly CaretRight: string;
8
- readonly CaretUp: string;
9
- readonly CheckboxChecked: string;
10
- readonly CheckCircle: string;
11
- readonly "CheckCircle-fill": string;
12
- readonly DotsNine: string;
13
- readonly Export: string;
14
- readonly "Eye-fill": string;
15
- readonly Gallery: string;
16
- readonly GlobeSimple: string;
17
- readonly GoogleFill: string;
18
- readonly Info: string;
19
- readonly Instagram: string;
20
- readonly "List-bullet": string;
21
- readonly MagnifyingGlass: string;
22
- readonly Notches: string;
23
- readonly "Pepper-fill": string;
24
- readonly Phone: string;
25
- readonly Placeholder: string;
26
- readonly SealCheck: string;
27
- readonly SealWarning: string;
28
- readonly SlidersHorizontal: string;
29
- readonly SquaresFour: string;
30
- readonly StarFill: string;
31
- readonly TikTok: string;
32
- readonly TrafficSign: string;
33
- readonly "WarningCircle-fill": string;
34
- readonly "WarningTriangle-fill": string;
35
- readonly X: string;
36
- readonly "XCircle-fill": string;
3
+ readonly ArrowsOutSimple: import("react").FC<SVGProps<SVGSVGElement>>;
4
+ readonly ArrowUpRight: import("react").FC<SVGProps<SVGSVGElement>>;
5
+ readonly CaretDown: import("react").FC<SVGProps<SVGSVGElement>>;
6
+ readonly CaretLeft: import("react").FC<SVGProps<SVGSVGElement>>;
7
+ readonly CaretRight: import("react").FC<SVGProps<SVGSVGElement>>;
8
+ readonly CaretUp: import("react").FC<SVGProps<SVGSVGElement>>;
9
+ readonly CheckboxChecked: import("react").FC<SVGProps<SVGSVGElement>>;
10
+ readonly CheckCircle: import("react").FC<SVGProps<SVGSVGElement>>;
11
+ readonly "CheckCircle-fill": import("react").FC<SVGProps<SVGSVGElement>>;
12
+ readonly DotsNine: import("react").FC<SVGProps<SVGSVGElement>>;
13
+ readonly Export: import("react").FC<SVGProps<SVGSVGElement>>;
14
+ readonly "Eye-fill": import("react").FC<SVGProps<SVGSVGElement>>;
15
+ readonly Gallery: import("react").FC<SVGProps<SVGSVGElement>>;
16
+ readonly GlobeSimple: import("react").FC<SVGProps<SVGSVGElement>>;
17
+ readonly GoogleFill: import("react").FC<SVGProps<SVGSVGElement>>;
18
+ readonly Info: import("react").FC<SVGProps<SVGSVGElement>>;
19
+ readonly Instagram: import("react").FC<SVGProps<SVGSVGElement>>;
20
+ readonly "List-bullet": import("react").FC<SVGProps<SVGSVGElement>>;
21
+ readonly MagnifyingGlass: import("react").FC<SVGProps<SVGSVGElement>>;
22
+ readonly Notches: import("react").FC<SVGProps<SVGSVGElement>>;
23
+ readonly "Pepper-fill": import("react").FC<SVGProps<SVGSVGElement>>;
24
+ readonly Phone: import("react").FC<SVGProps<SVGSVGElement>>;
25
+ readonly Placeholder: import("react").FC<SVGProps<SVGSVGElement>>;
26
+ readonly SealCheck: import("react").FC<SVGProps<SVGSVGElement>>;
27
+ readonly SealWarning: import("react").FC<SVGProps<SVGSVGElement>>;
28
+ readonly SlidersHorizontal: import("react").FC<SVGProps<SVGSVGElement>>;
29
+ readonly SquaresFour: import("react").FC<SVGProps<SVGSVGElement>>;
30
+ readonly StarFill: import("react").FC<SVGProps<SVGSVGElement>>;
31
+ readonly TikTok: import("react").FC<SVGProps<SVGSVGElement>>;
32
+ readonly TrafficSign: import("react").FC<SVGProps<SVGSVGElement>>;
33
+ readonly "WarningCircle-fill": import("react").FC<SVGProps<SVGSVGElement>>;
34
+ readonly "WarningTriangle-fill": import("react").FC<SVGProps<SVGSVGElement>>;
35
+ readonly X: import("react").FC<SVGProps<SVGSVGElement>>;
36
+ readonly "XCircle-fill": import("react").FC<SVGProps<SVGSVGElement>>;
37
37
  };
38
38
  export type IconName = keyof typeof Icons;
39
39
  export declare const iconNames: IconName[];
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { Avatar } from "./components/avatar/avatar";
2
2
  export { Badge } from "./components/badge/badge";
3
3
  export { Button } from "./components/button/button";
4
- export { Drawer } from "./components/drawer/drawer";
4
+ export { Drawer, DrawerGallery, DrawerMenu } from "./components/drawer/";
5
5
  export { FilterChipGroup } from "./components/filter-chip/filter-chip";
6
6
  export { Icon } from "./components/icon/icon";
7
7
  export { Logo } from "./components/logo/logo";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"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C9C,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC"}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- import{Avatar as o}from"./components/avatar/avatar.js";import{Badge as r}from"./components/badge/badge.js";import{Button as t}from"./components/button/button.js";import{Drawer as m}from"./components/drawer/drawer.js";import{FilterChipGroup as n}from"./components/filter-chip/filter-chip.js";import{Icon as e}from"./components/icon/icon.js";import{Logo as p}from"./components/logo/logo.js";import{MapMarker as s}from"./components/map-marker/map-marker.js";import{MenuItem as i}from"./components/menu-item/menu-item.js";import{Notification as a}from"./components/notification/notification.js";import{ProgressIndicator as c}from"./components/progress-indicator/progress-indicator.js";import{SearchInput as f}from"./components/search-input/search-input.js";import{SegmentedControl as g}from"./components/segmented-control/segmented-control.js";import{Tabs as j}from"./components/tabs/tabs.js";import{Typography as d}from"./components/typography/typography.js";export{o as Avatar,r as Badge,t as Button,m as Drawer,n as FilterChipGroup,e as Icon,p as Logo,s as MapMarker,i as MenuItem,a as Notification,c as ProgressIndicator,f as SearchInput,g as SegmentedControl,j as Tabs,d as Typography};
1
+ import{Avatar as o}from"./components/avatar/avatar.js";import{Badge as r}from"./components/badge/badge.js";import{Button as t}from"./components/button/button.js";import{Drawer as n,DrawerGallery as m,DrawerMenu as e}from"./components/drawer/index.js";import{FilterChipGroup as p}from"./components/filter-chip/filter-chip.js";import{Icon as s}from"./components/icon/icon.js";import{Logo as i}from"./components/logo/logo.js";import{MapMarker as a}from"./components/map-marker/map-marker.js";import{MenuItem as c}from"./components/menu-item/menu-item.js";import{Notification as f}from"./components/notification/notification.js";import{ProgressIndicator as g}from"./components/progress-indicator/progress-indicator.js";import{SearchInput as j}from"./components/search-input/search-input.js";import{SegmentedControl as d}from"./components/segmented-control/segmented-control.js";import{Tabs as u}from"./components/tabs/tabs.js";import{Typography as l}from"./components/typography/typography.js";export{o as Avatar,r as Badge,t as Button,n as Drawer,m as DrawerGallery,e as DrawerMenu,p as FilterChipGroup,s as Icon,i as Logo,a as MapMarker,c as MenuItem,f as Notification,g as ProgressIndicator,j as SearchInput,d as SegmentedControl,u as Tabs,l as Typography};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sate-lib",
3
- "version": "1.41.0",
3
+ "version": "1.42.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "keywords": [
@@ -26,8 +26,8 @@
26
26
  "types": "./lib/components/button/button.d.ts"
27
27
  },
28
28
  "./drawer": {
29
- "import": "./lib/components/drawer/drawer.js",
30
- "types": "./lib/components/drawer/drawer.d.ts"
29
+ "import": "./lib/components/drawer/index.js",
30
+ "types": "./lib/components/drawer/index.d.ts"
31
31
  },
32
32
  "./badge": {
33
33
  "import": "./lib/components/badge/badge.js",
@@ -103,26 +103,26 @@
103
103
  "prepare": "husky"
104
104
  },
105
105
  "devDependencies": {
106
- "@biomejs/biome": "2.2.5",
106
+ "@biomejs/biome": "2.2.6",
107
107
  "@commitlint/cli": "20.1.0",
108
108
  "@commitlint/config-conventional": "20.0.0",
109
- "@rsbuild/core": "1.5.16",
109
+ "@rsbuild/core": "1.5.17",
110
110
  "@rsbuild/plugin-react": "1.4.1",
111
111
  "@rsbuild/plugin-svgr": "1.2.2",
112
- "@rslib/core": "0.15.0",
112
+ "@rslib/core": "0.15.1",
113
113
  "@semantic-release/changelog": "6.0.3",
114
114
  "@semantic-release/git": "10.0.1",
115
- "@semantic-release/npm": "12.0.2",
116
- "@storybook/addon-a11y": "9.1.10",
115
+ "@semantic-release/npm": "13.0.0",
116
+ "@storybook/addon-a11y": "9.1.12",
117
117
  "@storybook/addon-designs": "10.0.2",
118
- "@storybook/addon-docs": "9.1.10",
119
- "@storybook/addon-links": "9.1.10",
120
- "@types/node": "24.7.2",
118
+ "@storybook/addon-docs": "9.1.12",
119
+ "@storybook/addon-links": "9.1.12",
120
+ "@types/node": "24.8.1",
121
121
  "@types/react": "19.2.2",
122
122
  "husky": "9.1.7",
123
123
  "react": "19.2.0",
124
- "semantic-release": "24.2.9",
125
- "storybook": "9.1.10",
124
+ "semantic-release": "25.0.0",
125
+ "storybook": "9.1.12",
126
126
  "storybook-addon-rslib": "^2.1.2",
127
127
  "storybook-react-rsbuild": "^2.1.2",
128
128
  "subset-font": "2.4.0",