sate-lib 1.60.1 → 1.61.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":"AAQA,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,aAAa,CAAC;AAE9D,MAAM,WAAW,WAAY,SAAQ,eAAe;CAAG;AAEvD,eAAO,MAAM,aAAa,GAAI,+CAM3B,WAAW,4CAgDb,CAAC"}
1
+ {"version":3,"file":"drawer-gallery.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer-gallery.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,aAAa,CAAC;AAE9D,MAAM,WAAW,WAAY,SAAQ,eAAe;CAAG;AAEvD,eAAO,MAAM,aAAa,GAAI,+CAM3B,WAAW,4CA0Cb,CAAC"}
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- 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{Button as l}from"../button/button.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:"X",iconPosition:"left",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};
2
+ 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:"X",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 +1 @@
1
- {"version":3,"file":"drawer-menu.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer-menu.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,aAAa,CAAC;AAE9D,MAAM,WAAW,WAAY,SAAQ,eAAe;CAAG;AAEvD,eAAO,MAAM,UAAU,GAAI,+CAMxB,WAAW,4CAyCb,CAAC"}
1
+ {"version":3,"file":"drawer-menu.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer-menu.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,eAAe,EAAa,MAAM,aAAa,CAAC;AAE9D,MAAM,WAAW,WAAY,SAAQ,eAAe;CAAG;AAEvD,eAAO,MAAM,UAAU,GAAI,+CAMxB,WAAW,4CAwCb,CAAC"}
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{jsx as r,jsxs as e}from"react/jsx-runtime";import{Portal as o}from"@radix-ui/react-portal";import{Activity as a}from"react";import{RemoveScroll as t}from"react-remove-scroll";import{Button as i}from"../button/button.js";import l from"./drawer.styles.module.js";import{useDrawer as n}from"./useDrawer.js";let m=({open:m,onOpen:s,title:d,className:c,children:p})=>{let{state:u,onClose:f,present:h}=n({onOpenChange:s,open:m}),v=[l.root,l.rootMenu,c].filter(Boolean).join(" ");return r(a,{mode:h?"visible":"hidden",children:e(o,{children:[r("div",{"aria-hidden":!0,className:l.overlay,"data-state":u,onClick:f}),r(t,{forwardProps:!0,children:e("div",{"aria-label":d,"aria-modal":"true",className:v,"data-state":u,role:"dialog",children:[r(i,{className:l.menuClose,icon:"X",iconPosition:"left",onClick:f,size:"small",variant:"lightOnContent"}),r("div",{className:l.panel,children:p})]})})]})})};export{m as DrawerMenu};
2
+ import{jsx as r,jsxs as e}from"react/jsx-runtime";import{Portal as o}from"@radix-ui/react-portal";import{Activity as a}from"react";import{RemoveScroll as i}from"react-remove-scroll";import{ButtonIcon as t}from"../button-icon/button-icon.js";import l from"./drawer.styles.module.js";import{useDrawer as n}from"./useDrawer.js";let m=({open:m,onOpen:s,title:d,className:c,children:p})=>{let{state:u,onClose:f,present:h}=n({onOpenChange:s,open:m}),v=[l.root,l.rootMenu,c].filter(Boolean).join(" ");return r(a,{mode:h?"visible":"hidden",children:e(o,{children:[r("div",{"aria-hidden":!0,className:l.overlay,"data-state":u,onClick:f}),r(i,{forwardProps:!0,children:e("div",{"aria-label":d,"aria-modal":"true",className:v,"data-state":u,role:"dialog",children:[r(t,{className:l.menuClose,icon:"X",onClick:f,size:"small",variant:"lightOnContent"}),r("div",{className:l.panel,children:p})]})})]})})};export{m as DrawerMenu};
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAQA,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,4CA8Cb,CAAC"}
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAQA,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,4CAwCb,CAAC"}
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- 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{Button as t}from"../button/button.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:"X",iconPosition:"left",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
+ 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:"X",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};
@@ -4,6 +4,8 @@ interface Prices {
4
4
  value: string;
5
5
  }
6
6
  export interface MenuItemProps {
7
+ extra?: boolean;
8
+ special?: boolean;
7
9
  active?: boolean;
8
10
  photo?: boolean;
9
11
  name: string;
@@ -11,6 +13,6 @@ export interface MenuItemProps {
11
13
  badges?: BadgeProps[];
12
14
  prices: Prices[];
13
15
  }
14
- export declare function MenuItem({ active, photo, name, description, badges, prices, }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function MenuItem({ extra, special, active, photo, name, description, badges, prices, }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
15
17
  export {};
16
18
  //# sourceMappingURL=menu-item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../src/components/menu-item/menu-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAcxD,UAAU,MAAM;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,wBAAgB,QAAQ,CAAC,EACxB,MAAM,EACN,KAAK,EACL,IAAI,EACJ,WAAW,EACX,MAAM,EACN,MAAM,GACN,EAAE,aAAa,2CAkCf"}
1
+ {"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../src/components/menu-item/menu-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAcxD,UAAU,MAAM;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,wBAAgB,QAAQ,CAAC,EACxB,KAAK,EACL,OAAO,EACP,MAAM,EACN,KAAK,EACL,IAAI,EACJ,WAAW,EACX,MAAM,EACN,MAAM,GACN,EAAE,aAAa,2CAsDf"}
@@ -1 +1 @@
1
- import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Badge as i}from"../badge/badge.js";import{Icon as s}from"../icon/icon.js";import r from"./menu-item.styles.module.js";function c({active:c,photo:l,name:m,description:n,badges:t,prices:o}){return a("div",{className:[r.root,c&&r.active].filter(Boolean).join(" "),children:[a("div",{className:r.content,children:[l&&e(s,{className:r.icon,name:"Eye-fill",size:12}),a("div",{className:r.header,children:[e("div",{className:`bodyDefaultEmphasis ${r.name}`,children:m}),e("div",{className:r.badges,children:t?.map((a,s)=>e(i,{...a},`badge-${a.label??a.icon??s}-${s}`))}),e("span",{className:r.dots})]}),e("div",{className:`bodySmall ${r.description}`,children:n})]}),e("div",{className:r.prices,children:o?.map(({label:i,value:s},c)=>{let l;return a("div",{className:r.priceItem,children:[i&&e("span",{className:`bodyDefault ${r.priceLabel}`,children:i}),e("span",{className:`bodyDefaultEmphasis ${r.priceValue}`,children:(l="string"==typeof s?parseFloat(s):s,new Intl.NumberFormat("en-GB",{currency:"GBP",minimumFractionDigits:2,style:"currency"}).format(l))})]},`price-${i??s}-${c}`)})})]})}export{c as MenuItem};
1
+ import{jsx as e,jsxs as a}from"react/jsx-runtime";import{Badge as i}from"../badge/badge.js";import{Icon as r}from"../icon/icon.js";import s from"./menu-item.styles.module.js";function l({extra:l,special:c,active:n,photo:m,name:d,description:t,badges:o,prices:p}){return a("div",{className:[s.root,n&&s.active,c&&s.special,l&&s.extra].filter(Boolean).join(" "),children:[a("div",{className:s.content,children:[m&&e("div",{className:s.icon,children:e(r,{name:"Eye-fill",size:12})}),a("div",{className:s.header,children:[a("div",{className:s.nameWrapper,children:[l&&e(i,{label:"+Add",variant:"warning"}),e("div",{className:`bodyDefaultEmphasis ${s.name}`,children:d})]}),o&&e("div",{className:s.badges,children:o?.map((a,r)=>e(i,{...a},`badge-${a.label??a.icon??r}-${r}`))}),e("span",{className:s.dots})]}),e("div",{className:`bodySmall ${s.description}`,children:t})]}),e("div",{className:s.prices,children:p?.map(({label:i,value:r},c)=>{let n;return a("div",{className:s.priceItem,children:[!l&&i&&e("span",{className:`bodyDefault ${s.priceLabel}`,children:i}),a("span",{className:`bodyDefaultEmphasis ${s.priceValue}`,children:[l&&"+",(n="string"==typeof r?parseFloat(r):r,new Intl.NumberFormat("en-GB",{currency:"GBP",minimumFractionDigits:2,style:"currency"}).format(n))]})]},`price-${i??r}-${c}`)})})]})}export{l as MenuItem};
@@ -1 +1 @@
1
- import"./menu-item.styles_module.css";let e={root:"root-NJVW0G",active:"active-bKWozD",content:"content-Uf0iNQ",header:"header-u15xam",icon:"icon-kXyR0s",badges:"badges-dFGqqm",dots:"dots-HNeJes",description:"description-o3HdRB",prices:"prices-Tw4RPd",priceItem:"priceItem-DnKDL_",priceLabel:"priceLabel-vAqSq7",priceValue:"priceValue-zmDzqI"};export{e as default};
1
+ import"./menu-item.styles_module.css";let e={icon:"icon-kXyR0s",root:"root-NJVW0G",active:"active-bKWozD",content:"content-Uf0iNQ",header:"header-u15xam",nameWrapper:"nameWrapper-VFCc75",badges:"badges-dFGqqm",dots:"dots-HNeJes",description:"description-o3HdRB",prices:"prices-Tw4RPd",priceItem:"priceItem-DnKDL_",priceLabel:"priceLabel-vAqSq7",priceValue:"priceValue-zmDzqI",special:"special-kgUByS"};export{e as default};
@@ -1 +1 @@
1
- .root-NJVW0G{border-radius:.5rem;align-items:flex-start;gap:.5rem;padding:4px 12px 4px 8px;transition:background-color .2s;display:flex}.active-bKWozD{background-color:color-mix(in srgb,var(--color-background-screen-active)4%,#0000000a)}.content-Uf0iNQ{flex:1;padding-left:1.25rem;position:relative}.header-u15xam{align-items:center;gap:.5rem;display:flex}.icon-kXyR0s{position:absolute;top:.25rem;left:0}.badges-dFGqqm{gap:.125rem;display:flex}.dots-HNeJes{background-color:currentColor;flex-grow:1;align-self:flex-end;height:1px;margin-bottom:.38rem;mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 21 1%27%3E%3Cpath stroke=%27%23fff%27 stroke-dasharray=%270.2 4%27 stroke-linecap=%27round%27 d=%27M.5.5h20%27/%3E%3C/svg%3E") 50%/auto 100% repeat-x}.description-o3HdRB{color:var(--color-content-secondary,#646464)}.prices-Tw4RPd{flex-direction:column;display:flex}.priceItem-DnKDL_{justify-content:space-between;display:flex}.priceLabel-vAqSq7{color:var(--color-content-tertiary,gray);padding-right:.5rem}.priceValue-zmDzqI{color:var(--color-content-primary,#202020)}
1
+ .icon-kXyR0s{display:flex;position:absolute;top:.25rem;left:0;&:before{content:"";border-radius:50%;width:1.75rem;height:1.75rem;transition:background-color .2s ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}}.root-NJVW0G{gap:var(--spacing-size-8,.5rem);padding:var(--spacing-size-4,.25rem)var(--spacing-size-12,.75rem)var(--spacing-size-4,.25rem)var(--spacing-size-8,.5rem);cursor:pointer;border-radius:.5rem;align-items:flex-start;transition:background-color .2s ease-in-out;display:flex;&:hover{& .icon-kXyR0s:before{background-color:color-mix(in srgb,var(--color-background-screen-active)4%,#0000000a)}}}.active-bKWozD{background-color:color-mix(in srgb,var(--color-background-screen-active)4%,#0000000a)}.content-Uf0iNQ{flex:1;padding-left:1.25rem;position:relative}.header-u15xam{gap:var(--spacing-size-8,.5rem);align-items:center;display:flex}.nameWrapper-VFCc75{gap:var(--spacing-size-4,.25rem);align-items:center;display:flex}.badges-dFGqqm{gap:.125rem;display:flex}.dots-HNeJes{background-color:currentColor;flex-grow:1;align-self:flex-end;height:1px;margin-bottom:.38rem;mask:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 21 1%27%3E%3Cpath stroke=%27%23fff%27 stroke-dasharray=%270.2 4%27 stroke-linecap=%27round%27 d=%27M.5.5h20%27/%3E%3C/svg%3E") 50%/auto 100% repeat-x}.description-o3HdRB{color:var(--color-content-secondary,#646464)}.prices-Tw4RPd{flex-direction:column;display:flex}.priceItem-DnKDL_{justify-content:space-between;display:flex}.priceLabel-vAqSq7{color:var(--color-content-tertiary,gray);padding-right:.5rem}.priceValue-zmDzqI{color:var(--color-content-primary,#202020)}.special-kgUByS{padding:var(--spacing-size-12,12px)var(--spacing-size-16,16px);margin:var(--spacing-size-16,16px)var(--spacing-size-12,12px);border:1px solid color-mix(in srgb,var(--color-border-overlay)11%,#0000001c);border-radius:var(--radius-radii-24,1.5rem);flex-direction:column;align-items:center;& .content-Uf0iNQ{gap:var(--spacing-size-8,.5rem);flex-direction:column;padding-left:0;display:flex}& .header-u15xam{gap:var(--spacing-size-4,.25rem);flex-direction:column}& .dots-HNeJes{display:none}& .description-o3HdRB{text-align:center}& .icon-kXyR0s{width:1.75rem;height:1.75rem;color:var(--color-content-primary,#202020);background:var(--color-background-screen,#fdfdf9);border-radius:var(--radius-radii-full,62.5rem);padding:.5rem;top:-13px;left:50%;transform:translate(-50%,-50%)}}.special-kgUByS.active-bKWozD .icon-kXyR0s{background:#ebebeb}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sate-lib",
3
- "version": "1.60.1",
3
+ "version": "1.61.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "keywords": [