sate-lib 1.44.0 → 1.46.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 +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"}
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,mDAyCb,CAAC"}
@@ -1,2 +1,2 @@
1
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};
2
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Portal as a}from"@radix-ui/react-portal";import{Button as o}from"../button/button.js";import t from"./drawer.styles.module.js";import{useDrawer as i}from"./useDrawer.js";import{useMediaQuery as l}from"./useMediaQuery.js";let n=({open:n,onOpen:s,title:m,className:d,children:c})=>{let p=l("(min-width: 900px)"),{state:u,onClose:f,present:h}=i({onOpenChange:s,open:n}),j=[t.root,t.rootGallery,d].filter(Boolean).join(" ");return h?r(a,{children:[e("div",{"aria-hidden":!0,className:t.overlay,"data-state":u,onClick:f}),r("div",{"aria-label":m,"aria-modal":"true",className:j,"data-state":u,role:"dialog",tabIndex:-1,children:[e(o,{className:t.close,icon:"X",iconPosition:"left",onClick:f,size:"small",variant:p?"toned":"lightOnContent"}),e("div",{className:t.panel,children:c})]})]}):null};export{n as DrawerGallery};
@@ -1 +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"}
1
+ {"version":3,"file":"drawer-menu.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer-menu.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,aAAa,CAAC;AAE9D,MAAM,WAAW,WAAY,SAAQ,eAAe;CAAG;AAEvD,eAAO,MAAM,UAAU,GAAI,+CAMxB,WAAW,mDAwCb,CAAC"}
@@ -1,2 +1,2 @@
1
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};
2
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Portal as r}from"@radix-ui/react-portal";import{Button as o}from"../button/button.js";import t from"./drawer.styles.module.js";import{useDrawer as i}from"./useDrawer.js";let l=({open:l,onOpen:n,title:s,className:m,children:d})=>{let{state:c,onClose:u,present:p}=i({onOpenChange:n,open:l}),f=[t.root,t.rootMenu,m].filter(Boolean).join(" ");return p?a(r,{children:[e("div",{"aria-hidden":!0,className:t.overlay,"data-state":c,onClick:u}),a("div",{"aria-label":s,"aria-modal":"true",className:f,"data-state":c,role:"dialog",tabIndex:-1,children:[e(o,{className:t.close,icon:"X",iconPosition:"left",onClick:u,size:"small",variant:"lightOnContent"}),e("div",{className:t.panel,children:d})]})]}):null};export{l as DrawerMenu};
@@ -1 +1 @@
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
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAMA,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,mDA8Cb,CAAC"}
@@ -1,2 +1,2 @@
1
1
  "use client";
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};
2
+ import{jsx as a,jsxs as e}from"react/jsx-runtime";import{Portal as r}from"@radix-ui/react-portal";import{Button as t}from"../button/button.js";import{Typography as o}from"../typography/typography.js";import i from"./drawer.styles.module.js";import{useDrawer as l}from"./useDrawer.js";let s=({open:s,onOpen:n,title:d,className:m,nested:c,children:p})=>{let{state:h,onClose:u,present:f}=l({onOpenChange:n,open:s}),v=[i.root,m].filter(Boolean).join(" ");return f?e(r,{children:[a("div",{"aria-hidden":!0,className:`${i.overlay} ${c?i.nested:""}`,"data-state":h,onClick:u}),e("div",{"aria-label":d,"aria-modal":"true",className:v,"data-state":h,role:"dialog",tabIndex:-1,children:[a(t,{className:i.close,icon:"X",iconPosition:"left",onClick:u,size:"small",variant:"toned"}),e("div",{className:i.panel,children:[a("div",{className:i.header,children:a(o,{as:"h2",className:i.title,variant:"bodyLargeEmphasis",children:d})}),p]})]})]}):null};export{s as Drawer};
@@ -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.ts"],"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};
package/lib/index.d.ts CHANGED
@@ -1,9 +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";
5
- export { DrawerGallery } from "./components/drawer/drawer-gallery";
6
- export { DrawerMenu } from "./components/drawer/drawer-menu";
4
+ export { Drawer, DrawerGallery, DrawerMenu } from "./components/drawer/index";
7
5
  export { FilterChipGroup } from "./components/filter-chip/filter-chip";
8
6
  export { Icon } from "./components/icon/icon";
9
7
  export { Logo } from "./components/logo/logo";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAA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AO,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{DrawerGallery as n}from"./components/drawer/drawer-gallery.js";import{DrawerMenu as e}from"./components/drawer/drawer-menu.js";import{FilterChipGroup as p}from"./components/filter-chip/filter-chip.js";import{Icon as s}from"./components/icon/icon.js";import{Logo as a}from"./components/logo/logo.js";import{MapMarker as i}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 j}from"./components/progress-indicator/progress-indicator.js";import{SearchInput as g}from"./components/search-input/search-input.js";import{SegmentedControl as d}from"./components/segmented-control/segmented-control.js";import{Tabs as l}from"./components/tabs/tabs.js";import{Typography as u}from"./components/typography/typography.js";export{o as Avatar,r as Badge,t as Button,m as Drawer,n as DrawerGallery,e as DrawerMenu,p as FilterChipGroup,s as Icon,a as Logo,i as MapMarker,c as MenuItem,f as Notification,j as ProgressIndicator,g as SearchInput,d as SegmentedControl,l as Tabs,u 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.44.0",
3
+ "version": "1.46.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
  "./drawerGallery": {
33
33
  "import": "./lib/components/drawer/drawerGallery.js",