sate-lib 2.9.0 → 2.10.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
|
@@ -32,6 +32,7 @@ A lightweight and modular React component library designed for modern web interf
|
|
|
32
32
|
- [Semantic Release](https://github.com/semantic-release/semantic-release)
|
|
33
33
|
- [Subset Font](https://www.npmjs.com/package/subset-font)
|
|
34
34
|
- [SVGO](https://svgo.dev/docs/introduction/)
|
|
35
|
+
- [React Doctor](https://www.react.doctor/)
|
|
35
36
|
|
|
36
37
|
## Installation
|
|
37
38
|
|
|
@@ -9,9 +9,9 @@ export interface MenuItemProps {
|
|
|
9
9
|
photo?: boolean;
|
|
10
10
|
name: string;
|
|
11
11
|
description?: string;
|
|
12
|
-
|
|
12
|
+
tags?: BadgeProps[];
|
|
13
13
|
prices: Prices[];
|
|
14
14
|
}
|
|
15
|
-
export declare function MenuItem({ extra, special, photo, name, description,
|
|
15
|
+
export declare function MenuItem({ extra, special, photo, name, description, tags, prices, }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
17
17
|
//# 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":"AACA,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAWxD,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,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../src/components/menu-item/menu-item.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAWxD,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,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,wBAAgB,QAAQ,CAAC,EACxB,KAAK,EACL,OAAO,EACP,KAAK,EACL,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,MAAM,GACN,EAAE,aAAa,2CAgDf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{cn as s}from"../../util.js";import{Badge as i}from"../badge/badge.js";import r from"../icons/assets/EyeFill.js";import l from"./menu-item.styles.module.js";function c(e){return new Intl.NumberFormat("en-GB",{currency:"GBP",style:"currency"}).format(e/100)}function n({extra:n,special:m,photo:
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{cn as s}from"../../util.js";import{Badge as i}from"../badge/badge.js";import r from"../icons/assets/EyeFill.js";import l from"./menu-item.styles.module.js";function c(e){return new Intl.NumberFormat("en-GB",{currency:"GBP",style:"currency"}).format(e/100)}function n({extra:n,special:m,photo:t,name:d,description:o,tags:p,prices:h}){return a("div",{className:s(l.root,m&&l.special,n&&l.extra,t&&l.photo),children:[a("div",{className:l.content,children:[t&&e("div",{className:l.icon,children:e(r,{size:12})}),a("div",{className:l.header,children:[a("div",{className:l.nameWrapper,children:[n&&e(i,{label:"Add",variant:"warning"}),e("div",{className:s("bodyDefaultEmphasis",l.name),children:d})]}),p&&e("div",{className:l.tags,children:p?.map((a,s)=>e(i,{...a},`tag-${a.label??a.icon??s}-${s}`))}),e("span",{className:l.dots})]}),e("div",{className:s("bodySmall",l.description),children:o})]}),e("div",{className:l.prices,children:h?.map(({label:i,value:r},m)=>a("div",{className:l.priceItem,children:[!n&&i&&e("span",{className:s("bodyDefault",l.priceLabel),children:i}),e("span",{className:s("bodyDefaultEmphasis",l.priceValue),children:n?`+${c(r)}`:c(r)})]},`price-${i??r}-${m}`))})]})}export{n as MenuItem};
|