@stokelp/ui 2.126.1 → 2.127.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,2 +1,2 @@
1
- "use client";let e=require("@ark-ui/react"),t=require("@stokelp/styled-system/jsx"),n=require("@stokelp/styled-system/recipes"),r=require("react"),i=require("react/jsx-runtime"),a=require("@stokelp/styled-system/css");var o=(0,r.forwardRef)((r,o)=>{let[s,c]=n.tag.splitVariantProps(r),[l,u]=(0,t.splitCssProps)(c),{children:d,className:f,...p}=u,m=(0,n.tag)(s);return(0,i.jsxs)(e.ark.div,{ref:o,className:(0,a.cx)(m.root,(0,a.css)(l),f),...p,children:[d,(0,i.jsx)(t.Circle,{className:(0,a.cx)(m.badge),borderRadius:`full`})]})});exports.Tag=o;
1
+ "use client";let e=require("@ark-ui/react"),t=require("@stokelp/styled-system/jsx"),n=require("@stokelp/styled-system/recipes"),r=require("react"),i=require("react/jsx-runtime"),a=require("@stokelp/styled-system/css");var o=e=>{let t=r.Children.toArray(e);return t.length>0&&t.every(e=>typeof e==`string`||typeof e==`number`)},s=(0,r.forwardRef)((r,s)=>{let[c,l]=n.tag.splitVariantProps(r),[u,d]=(0,t.splitCssProps)(l),{children:f,className:p,...m}=d,h=(0,n.tag)(c);return(0,i.jsxs)(e.ark.div,{ref:s,className:(0,a.cx)(h.root,(0,a.css)(u),p),...m,children:[o(f)?(0,i.jsx)(`span`,{className:h.label,children:f}):f,(0,i.jsx)(t.Circle,{className:(0,a.cx)(h.badge),borderRadius:`full`})]})});exports.Tag=s;
2
2
  //# sourceMappingURL=Tag.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.cjs","names":[],"sources":["../../../src/components/tag/Tag.tsx"],"sourcesContent":["import { css, cx } from '@stokelp/styled-system/css'\nimport { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { Circle, splitCssProps } from '@stokelp/styled-system/jsx'\nimport { tag, type TagVariantProps } from '@stokelp/styled-system/recipes'\nimport { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { forwardRef, type ReactNode } from 'react'\n\nexport interface TagProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, TagVariantProps {\n children: ReactNode\n}\n\nexport const Tag = forwardRef<HTMLDivElement, TagProps>((props, ref) => {\n const [variantProps, tagProps] = tag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(tagProps)\n const { children, className, ...rootProps } = localProps\n const styles = tag(variantProps)\n\n return (\n <ark.div ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {children}\n <Circle className={cx(styles.badge)} borderRadius=\"full\" />\n </ark.div>\n )\n})\n"],"mappings":"0NAWA,IAAa,GAAA,EAAA,EAAA,aAA4C,EAAO,IAAQ,CACtE,GAAM,CAAC,EAAc,GAAY,EAAA,IAAI,kBAAkB,CAAK,EACtD,CAAC,EAAU,IAAA,EAAA,EAAA,eAA4B,CAAQ,EAC/C,CAAE,WAAU,YAAW,GAAG,GAAc,EACxC,GAAA,EAAA,EAAA,KAAa,CAAY,EAE/B,OACE,EAAA,EAAA,MAAC,EAAA,IAAI,IAAL,CAAc,MAAK,WAAA,EAAA,EAAA,IAAc,EAAO,MAAA,EAAA,EAAA,KAAU,CAAQ,EAAG,CAAS,EAAG,GAAI,WAA7E,CACG,GACD,EAAA,EAAA,KAAC,EAAA,OAAD,CAAQ,WAAA,EAAA,EAAA,IAAc,EAAO,KAAK,EAAG,aAAa,MAAQ,CAAA,CACnD,GAEb,CAAC"}
1
+ {"version":3,"file":"Tag.cjs","names":[],"sources":["../../../src/components/tag/Tag.tsx"],"sourcesContent":["import { css, cx } from '@stokelp/styled-system/css'\nimport { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { Circle, splitCssProps } from '@stokelp/styled-system/jsx'\nimport { tag, type TagVariantProps } from '@stokelp/styled-system/recipes'\nimport { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { Children, forwardRef, type ReactNode } from 'react'\n\nexport interface TagProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, TagVariantProps {\n children: ReactNode\n}\n\n// A text label goes in a span that ends with an ellipsis when the tag is narrower than its\n// label (a table cell, a translated label), instead of running past the border. A JSX label\n// is rendered as it is.\nconst isTextLabel = (children: ReactNode) => {\n const nodes = Children.toArray(children)\n return nodes.length > 0 && nodes.every(node => typeof node === 'string' || typeof node === 'number')\n}\n\nexport const Tag = forwardRef<HTMLDivElement, TagProps>((props, ref) => {\n const [variantProps, tagProps] = tag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(tagProps)\n const { children, className, ...rootProps } = localProps\n const styles = tag(variantProps)\n\n return (\n <ark.div ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {isTextLabel(children) ? <span className={styles.label}>{children}</span> : children}\n <Circle className={cx(styles.badge)} borderRadius=\"full\" />\n </ark.div>\n )\n})\n"],"mappings":"0NAcA,IAAM,EAAe,GAAwB,CAC3C,IAAM,EAAQ,EAAA,SAAS,QAAQ,CAAQ,EACvC,OAAO,EAAM,OAAS,GAAK,EAAM,MAAM,GAAQ,OAAO,GAAS,UAAY,OAAO,GAAS,QAAQ,CACrG,EAEa,GAAA,EAAA,EAAA,aAA4C,EAAO,IAAQ,CACtE,GAAM,CAAC,EAAc,GAAY,EAAA,IAAI,kBAAkB,CAAK,EACtD,CAAC,EAAU,IAAA,EAAA,EAAA,eAA4B,CAAQ,EAC/C,CAAE,WAAU,YAAW,GAAG,GAAc,EACxC,GAAA,EAAA,EAAA,KAAa,CAAY,EAE/B,OACE,EAAA,EAAA,MAAC,EAAA,IAAI,IAAL,CAAc,MAAK,WAAA,EAAA,EAAA,IAAc,EAAO,MAAA,EAAA,EAAA,KAAU,CAAQ,EAAG,CAAS,EAAG,GAAI,WAA7E,CACG,EAAY,CAAQ,GAAI,EAAA,EAAA,KAAC,OAAD,CAAM,UAAW,EAAO,MAAQ,UAAe,CAAA,EAAI,GAC5E,EAAA,EAAA,KAAC,EAAA,OAAD,CAAQ,WAAA,EAAA,EAAA,IAAc,EAAO,KAAK,EAAG,aAAa,MAAQ,CAAA,CACnD,GAEb,CAAC"}
@@ -2,23 +2,29 @@
2
2
  import { ark as e } from "@ark-ui/react";
3
3
  import { Circle as t, splitCssProps as n } from "@stokelp/styled-system/jsx";
4
4
  import { tag as r } from "@stokelp/styled-system/recipes";
5
- import { forwardRef as i } from "react";
6
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
- import { css as s, cx as c } from "@stokelp/styled-system/css";
5
+ import { Children as i, forwardRef as a } from "react";
6
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ import { css as c, cx as l } from "@stokelp/styled-system/css";
8
8
  //#region src/components/tag/Tag.tsx
9
- var l = i((i, l) => {
10
- let [u, d] = r.splitVariantProps(i), [f, p] = n(d), { children: m, className: h, ...g } = p, _ = r(u);
11
- return /* @__PURE__ */ o(e.div, {
12
- ref: l,
13
- className: c(_.root, s(f), h),
14
- ...g,
15
- children: [m, /* @__PURE__ */ a(t, {
16
- className: c(_.badge),
9
+ var u = (e) => {
10
+ let t = i.toArray(e);
11
+ return t.length > 0 && t.every((e) => typeof e == "string" || typeof e == "number");
12
+ }, d = a((i, a) => {
13
+ let [d, f] = r.splitVariantProps(i), [p, m] = n(f), { children: h, className: g, ..._ } = m, v = r(d);
14
+ return /* @__PURE__ */ s(e.div, {
15
+ ref: a,
16
+ className: l(v.root, c(p), g),
17
+ ..._,
18
+ children: [u(h) ? /* @__PURE__ */ o("span", {
19
+ className: v.label,
20
+ children: h
21
+ }) : h, /* @__PURE__ */ o(t, {
22
+ className: l(v.badge),
17
23
  borderRadius: "full"
18
24
  })]
19
25
  });
20
26
  });
21
27
  //#endregion
22
- export { l as Tag };
28
+ export { d as Tag };
23
29
 
24
30
  //# sourceMappingURL=Tag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.js","names":[],"sources":["../../../src/components/tag/Tag.tsx"],"sourcesContent":["import { css, cx } from '@stokelp/styled-system/css'\nimport { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { Circle, splitCssProps } from '@stokelp/styled-system/jsx'\nimport { tag, type TagVariantProps } from '@stokelp/styled-system/recipes'\nimport { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { forwardRef, type ReactNode } from 'react'\n\nexport interface TagProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, TagVariantProps {\n children: ReactNode\n}\n\nexport const Tag = forwardRef<HTMLDivElement, TagProps>((props, ref) => {\n const [variantProps, tagProps] = tag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(tagProps)\n const { children, className, ...rootProps } = localProps\n const styles = tag(variantProps)\n\n return (\n <ark.div ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {children}\n <Circle className={cx(styles.badge)} borderRadius=\"full\" />\n </ark.div>\n )\n})\n"],"mappings":";;;;;;;;AAWA,IAAa,IAAM,GAAsC,GAAO,MAAQ;CACtE,IAAM,CAAC,GAAc,KAAY,EAAI,kBAAkB,CAAK,GACtD,CAAC,GAAU,KAAc,EAAc,CAAQ,GAC/C,EAAE,aAAU,cAAW,GAAG,MAAc,GACxC,IAAS,EAAI,CAAY;CAE/B,OACE,kBAAC,EAAI,KAAL;EAAc;EAAK,WAAW,EAAG,EAAO,MAAM,EAAI,CAAQ,GAAG,CAAS;EAAG,GAAI;YAA7E,CACG,GACD,kBAAC,GAAD;GAAQ,WAAW,EAAG,EAAO,KAAK;GAAG,cAAa;EAAQ,CAAA,CACnD;;AAEb,CAAC"}
1
+ {"version":3,"file":"Tag.js","names":[],"sources":["../../../src/components/tag/Tag.tsx"],"sourcesContent":["import { css, cx } from '@stokelp/styled-system/css'\nimport { ark, type HTMLArkProps } from '@ark-ui/react'\nimport { Circle, splitCssProps } from '@stokelp/styled-system/jsx'\nimport { tag, type TagVariantProps } from '@stokelp/styled-system/recipes'\nimport { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { Children, forwardRef, type ReactNode } from 'react'\n\nexport interface TagProps extends Assign<JsxStyleProps, HTMLArkProps<'div'>>, TagVariantProps {\n children: ReactNode\n}\n\n// A text label goes in a span that ends with an ellipsis when the tag is narrower than its\n// label (a table cell, a translated label), instead of running past the border. A JSX label\n// is rendered as it is.\nconst isTextLabel = (children: ReactNode) => {\n const nodes = Children.toArray(children)\n return nodes.length > 0 && nodes.every(node => typeof node === 'string' || typeof node === 'number')\n}\n\nexport const Tag = forwardRef<HTMLDivElement, TagProps>((props, ref) => {\n const [variantProps, tagProps] = tag.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(tagProps)\n const { children, className, ...rootProps } = localProps\n const styles = tag(variantProps)\n\n return (\n <ark.div ref={ref} className={cx(styles.root, css(cssProps), className)} {...rootProps}>\n {isTextLabel(children) ? <span className={styles.label}>{children}</span> : children}\n <Circle className={cx(styles.badge)} borderRadius=\"full\" />\n </ark.div>\n )\n})\n"],"mappings":";;;;;;;;AAcA,IAAM,KAAe,MAAwB;CAC3C,IAAM,IAAQ,EAAS,QAAQ,CAAQ;CACvC,OAAO,EAAM,SAAS,KAAK,EAAM,OAAM,MAAQ,OAAO,KAAS,YAAY,OAAO,KAAS,QAAQ;AACrG,GAEa,IAAM,GAAsC,GAAO,MAAQ;CACtE,IAAM,CAAC,GAAc,KAAY,EAAI,kBAAkB,CAAK,GACtD,CAAC,GAAU,KAAc,EAAc,CAAQ,GAC/C,EAAE,aAAU,cAAW,GAAG,MAAc,GACxC,IAAS,EAAI,CAAY;CAE/B,OACE,kBAAC,EAAI,KAAL;EAAc;EAAK,WAAW,EAAG,EAAO,MAAM,EAAI,CAAQ,GAAG,CAAS;EAAG,GAAI;YAA7E,CACG,EAAY,CAAQ,IAAI,kBAAC,QAAD;GAAM,WAAW,EAAO;GAAQ;EAAe,CAAA,IAAI,GAC5E,kBAAC,GAAD;GAAQ,WAAW,EAAG,EAAO,KAAK;GAAG,cAAa;EAAQ,CAAA,CACnD;;AAEb,CAAC"}
@@ -1,2 +1,2 @@
1
- "use client";var e=(0,require("@pandacss/dev").defineSlotRecipe)({base:{root:{fontFamily:`satoshi`,borderStyle:`solid`,display:`inline-flex`,flexDirection:`row`,alignItems:`center`,borderRadius:`radius-28`}},slots:[`root`,`badge`],className:`tag`,defaultVariants:{size:`md`,severity:`neutral`},description:`The styles for the Tag component`,jsx:[`Tag`],variants:{size:{lg:{root:{borderWidth:2,textStyle:`body.lg`,fontWeight:`bold`,py:`space-8`,px:`space-16`,gap:`space-8`},badge:{width:`size-8`,height:`size-8`}},md:{root:{borderWidth:1,textStyle:`body.md`,fontWeight:`bold`,py:`space-6`,px:`space-12`,gap:`space-8`},badge:{width:`size-6`,height:`size-6`}},sm:{root:{borderWidth:1,textStyle:`body.sm`,fontWeight:`bold`,py:`space-4`,px:`space-8`,gap:`space-4`},badge:{width:`size-4`,height:`size-4`}}},severity:{success:{root:{bg:`success.100`,borderColor:`success.500`,color:`success.500`},badge:{bg:`success.500`}},warning:{root:{bg:`warning.100`,borderColor:`warning.500`,color:`warning.500`},badge:{bg:`warning.500`}},error:{root:{bg:`error.100`,borderColor:`error.500`,color:`error.500`},badge:{bg:`error.500`}},neutral:{root:{bg:`grey.50`,borderColor:`grey.400`,color:`grey.400`},badge:{bg:`grey.400`}},info:{root:{bg:`secondary.100`,borderColor:`secondary.500`,color:`secondary.500`},badge:{bg:`secondary.500`}},primary:{root:{bg:`primary.100`,borderColor:`primary.500`,color:`primary.500`},badge:{bg:`primary.500`}}}}});exports.tagRecipe=e;
1
+ "use client";var e=(0,require("@pandacss/dev").defineSlotRecipe)({base:{root:{fontFamily:`satoshi`,borderStyle:`solid`,display:`inline-flex`,flexDirection:`row`,alignItems:`center`,borderRadius:`radius-28`,maxWidth:`100%`},label:{minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},badge:{flexShrink:0}},slots:[`root`,`label`,`badge`],className:`tag`,defaultVariants:{size:`md`,severity:`neutral`},description:`The styles for the Tag component`,jsx:[`Tag`],variants:{size:{lg:{root:{borderWidth:2,textStyle:`body.lg`,fontWeight:`bold`,py:`space-8`,px:`space-16`,gap:`space-8`},badge:{width:`size-8`,height:`size-8`}},md:{root:{borderWidth:1,textStyle:`body.md`,fontWeight:`bold`,py:`space-6`,px:`space-12`,gap:`space-8`},badge:{width:`size-6`,height:`size-6`}},sm:{root:{borderWidth:1,textStyle:`body.sm`,fontWeight:`bold`,py:`space-4`,px:`space-8`,gap:`space-4`},badge:{width:`size-4`,height:`size-4`}}},severity:{success:{root:{bg:`success.100`,borderColor:`success.500`,color:`success.500`},badge:{bg:`success.500`}},warning:{root:{bg:`warning.100`,borderColor:`warning.500`,color:`warning.500`},badge:{bg:`warning.500`}},error:{root:{bg:`error.100`,borderColor:`error.500`,color:`error.500`},badge:{bg:`error.500`}},neutral:{root:{bg:`grey.50`,borderColor:`grey.400`,color:`grey.400`},badge:{bg:`grey.400`}},info:{root:{bg:`secondary.100`,borderColor:`secondary.500`,color:`secondary.500`},badge:{bg:`secondary.500`}},primary:{root:{bg:`primary.100`,borderColor:`primary.500`,color:`primary.500`},badge:{bg:`primary.500`}}}}});exports.tagRecipe=e;
2
2
  //# sourceMappingURL=tag.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag.cjs","names":[],"sources":["../../../src/theme/recipes/tag.ts"],"sourcesContent":["import { defineSlotRecipe } from '@pandacss/dev'\n\nexport const tagRecipe = defineSlotRecipe({\n base: {\n root: {\n fontFamily: 'satoshi',\n borderStyle: 'solid',\n display: 'inline-flex',\n flexDirection: 'row',\n alignItems: 'center',\n borderRadius: 'radius-28',\n },\n },\n slots: ['root', 'badge'],\n className: 'tag',\n defaultVariants: {\n size: 'md',\n severity: 'neutral',\n },\n description: 'The styles for the Tag component',\n jsx: ['Tag'],\n variants: {\n size: {\n lg: {\n root: {\n borderWidth: 2,\n textStyle: 'body.lg',\n fontWeight: 'bold',\n py: 'space-8',\n px: 'space-16',\n gap: 'space-8',\n },\n badge: {\n width: 'size-8',\n height: 'size-8',\n },\n },\n md: {\n root: {\n borderWidth: 1,\n textStyle: 'body.md',\n fontWeight: 'bold',\n py: 'space-6',\n px: 'space-12',\n gap: 'space-8',\n },\n badge: {\n width: 'size-6',\n height: 'size-6',\n },\n },\n sm: {\n root: {\n borderWidth: 1,\n textStyle: 'body.sm',\n fontWeight: 'bold',\n py: 'space-4',\n px: 'space-8',\n gap: 'space-4',\n },\n badge: {\n width: 'size-4',\n height: 'size-4',\n },\n },\n },\n severity: {\n success: {\n root: {\n bg: 'success.100',\n borderColor: 'success.500',\n color: 'success.500',\n },\n badge: {\n bg: 'success.500',\n },\n },\n warning: {\n root: {\n bg: 'warning.100',\n borderColor: 'warning.500',\n color: 'warning.500',\n },\n badge: {\n bg: 'warning.500',\n },\n },\n error: {\n root: {\n bg: 'error.100',\n borderColor: 'error.500',\n color: 'error.500',\n },\n badge: {\n bg: 'error.500',\n },\n },\n neutral: {\n root: {\n bg: 'grey.50',\n borderColor: 'grey.400',\n color: 'grey.400',\n },\n badge: {\n bg: 'grey.400',\n },\n },\n info: {\n root: {\n bg: 'secondary.100',\n borderColor: 'secondary.500',\n color: 'secondary.500',\n },\n badge: {\n bg: 'secondary.500',\n },\n },\n // For states that are neither an alert nor an absence: a legitimate in-progress\n // situation the user is meant to act on, in the product's own colour. Without it,\n // such states get dressed as a warning or overridden from outside — and an outside\n // override only reaches the root, leaving the badge and border grey.\n primary: {\n root: {\n bg: 'primary.100',\n borderColor: 'primary.500',\n color: 'primary.500',\n },\n badge: {\n bg: 'primary.500',\n },\n },\n },\n },\n})\n"],"mappings":"aAEA,IAAa,GAAA,yBAAA,EAAA,kBAA6B,CACxC,KAAM,CACJ,KAAM,CACJ,WAAY,UACZ,YAAa,QACb,QAAS,cACT,cAAe,MACf,WAAY,SACZ,aAAc,WAChB,CACF,EACA,MAAO,CAAC,OAAQ,OAAO,EACvB,UAAW,MACX,gBAAiB,CACf,KAAM,KACN,SAAU,SACZ,EACA,YAAa,mCACb,IAAK,CAAC,KAAK,EACX,SAAU,CACR,KAAM,CACJ,GAAI,CACF,KAAM,CACJ,YAAa,EACb,UAAW,UACX,WAAY,OACZ,GAAI,UACJ,GAAI,WACJ,IAAK,SACP,EACA,MAAO,CACL,MAAO,SACP,OAAQ,QACV,CACF,EACA,GAAI,CACF,KAAM,CACJ,YAAa,EACb,UAAW,UACX,WAAY,OACZ,GAAI,UACJ,GAAI,WACJ,IAAK,SACP,EACA,MAAO,CACL,MAAO,SACP,OAAQ,QACV,CACF,EACA,GAAI,CACF,KAAM,CACJ,YAAa,EACb,UAAW,UACX,WAAY,OACZ,GAAI,UACJ,GAAI,UACJ,IAAK,SACP,EACA,MAAO,CACL,MAAO,SACP,OAAQ,QACV,CACF,CACF,EACA,SAAU,CACR,QAAS,CACP,KAAM,CACJ,GAAI,cACJ,YAAa,cACb,MAAO,aACT,EACA,MAAO,CACL,GAAI,aACN,CACF,EACA,QAAS,CACP,KAAM,CACJ,GAAI,cACJ,YAAa,cACb,MAAO,aACT,EACA,MAAO,CACL,GAAI,aACN,CACF,EACA,MAAO,CACL,KAAM,CACJ,GAAI,YACJ,YAAa,YACb,MAAO,WACT,EACA,MAAO,CACL,GAAI,WACN,CACF,EACA,QAAS,CACP,KAAM,CACJ,GAAI,UACJ,YAAa,WACb,MAAO,UACT,EACA,MAAO,CACL,GAAI,UACN,CACF,EACA,KAAM,CACJ,KAAM,CACJ,GAAI,gBACJ,YAAa,gBACb,MAAO,eACT,EACA,MAAO,CACL,GAAI,eACN,CACF,EAKA,QAAS,CACP,KAAM,CACJ,GAAI,cACJ,YAAa,cACb,MAAO,aACT,EACA,MAAO,CACL,GAAI,aACN,CACF,CACF,CACF,CACF,CAAC"}
1
+ {"version":3,"file":"tag.cjs","names":[],"sources":["../../../src/theme/recipes/tag.ts"],"sourcesContent":["import { defineSlotRecipe } from '@pandacss/dev'\n\nexport const tagRecipe = defineSlotRecipe({\n base: {\n root: {\n fontFamily: 'satoshi',\n borderStyle: 'solid',\n display: 'inline-flex',\n flexDirection: 'row',\n alignItems: 'center',\n borderRadius: 'radius-28',\n // Never wider than its container: a long label truncates in its label slot.\n maxWidth: '100%',\n },\n label: {\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n badge: {\n flexShrink: 0,\n },\n },\n slots: ['root', 'label', 'badge'],\n className: 'tag',\n defaultVariants: {\n size: 'md',\n severity: 'neutral',\n },\n description: 'The styles for the Tag component',\n jsx: ['Tag'],\n variants: {\n size: {\n lg: {\n root: {\n borderWidth: 2,\n textStyle: 'body.lg',\n fontWeight: 'bold',\n py: 'space-8',\n px: 'space-16',\n gap: 'space-8',\n },\n badge: {\n width: 'size-8',\n height: 'size-8',\n },\n },\n md: {\n root: {\n borderWidth: 1,\n textStyle: 'body.md',\n fontWeight: 'bold',\n py: 'space-6',\n px: 'space-12',\n gap: 'space-8',\n },\n badge: {\n width: 'size-6',\n height: 'size-6',\n },\n },\n sm: {\n root: {\n borderWidth: 1,\n textStyle: 'body.sm',\n fontWeight: 'bold',\n py: 'space-4',\n px: 'space-8',\n gap: 'space-4',\n },\n badge: {\n width: 'size-4',\n height: 'size-4',\n },\n },\n },\n severity: {\n success: {\n root: {\n bg: 'success.100',\n borderColor: 'success.500',\n color: 'success.500',\n },\n badge: {\n bg: 'success.500',\n },\n },\n warning: {\n root: {\n bg: 'warning.100',\n borderColor: 'warning.500',\n color: 'warning.500',\n },\n badge: {\n bg: 'warning.500',\n },\n },\n error: {\n root: {\n bg: 'error.100',\n borderColor: 'error.500',\n color: 'error.500',\n },\n badge: {\n bg: 'error.500',\n },\n },\n neutral: {\n root: {\n bg: 'grey.50',\n borderColor: 'grey.400',\n color: 'grey.400',\n },\n badge: {\n bg: 'grey.400',\n },\n },\n info: {\n root: {\n bg: 'secondary.100',\n borderColor: 'secondary.500',\n color: 'secondary.500',\n },\n badge: {\n bg: 'secondary.500',\n },\n },\n // For states that are neither an alert nor an absence: a legitimate in-progress\n // situation the user is meant to act on, in the product's own colour. Without it,\n // such states get dressed as a warning or overridden from outside — and an outside\n // override only reaches the root, leaving the badge and border grey.\n primary: {\n root: {\n bg: 'primary.100',\n borderColor: 'primary.500',\n color: 'primary.500',\n },\n badge: {\n bg: 'primary.500',\n },\n },\n },\n },\n})\n"],"mappings":"aAEA,IAAa,GAAA,yBAAA,EAAA,kBAA6B,CACxC,KAAM,CACJ,KAAM,CACJ,WAAY,UACZ,YAAa,QACb,QAAS,cACT,cAAe,MACf,WAAY,SACZ,aAAc,YAEd,SAAU,MACZ,EACA,MAAO,CACL,SAAU,EACV,SAAU,SACV,aAAc,WACd,WAAY,QACd,EACA,MAAO,CACL,WAAY,CACd,CACF,EACA,MAAO,CAAC,OAAQ,QAAS,OAAO,EAChC,UAAW,MACX,gBAAiB,CACf,KAAM,KACN,SAAU,SACZ,EACA,YAAa,mCACb,IAAK,CAAC,KAAK,EACX,SAAU,CACR,KAAM,CACJ,GAAI,CACF,KAAM,CACJ,YAAa,EACb,UAAW,UACX,WAAY,OACZ,GAAI,UACJ,GAAI,WACJ,IAAK,SACP,EACA,MAAO,CACL,MAAO,SACP,OAAQ,QACV,CACF,EACA,GAAI,CACF,KAAM,CACJ,YAAa,EACb,UAAW,UACX,WAAY,OACZ,GAAI,UACJ,GAAI,WACJ,IAAK,SACP,EACA,MAAO,CACL,MAAO,SACP,OAAQ,QACV,CACF,EACA,GAAI,CACF,KAAM,CACJ,YAAa,EACb,UAAW,UACX,WAAY,OACZ,GAAI,UACJ,GAAI,UACJ,IAAK,SACP,EACA,MAAO,CACL,MAAO,SACP,OAAQ,QACV,CACF,CACF,EACA,SAAU,CACR,QAAS,CACP,KAAM,CACJ,GAAI,cACJ,YAAa,cACb,MAAO,aACT,EACA,MAAO,CACL,GAAI,aACN,CACF,EACA,QAAS,CACP,KAAM,CACJ,GAAI,cACJ,YAAa,cACb,MAAO,aACT,EACA,MAAO,CACL,GAAI,aACN,CACF,EACA,MAAO,CACL,KAAM,CACJ,GAAI,YACJ,YAAa,YACb,MAAO,WACT,EACA,MAAO,CACL,GAAI,WACN,CACF,EACA,QAAS,CACP,KAAM,CACJ,GAAI,UACJ,YAAa,WACb,MAAO,UACT,EACA,MAAO,CACL,GAAI,UACN,CACF,EACA,KAAM,CACJ,KAAM,CACJ,GAAI,gBACJ,YAAa,gBACb,MAAO,eACT,EACA,MAAO,CACL,GAAI,eACN,CACF,EAKA,QAAS,CACP,KAAM,CACJ,GAAI,cACJ,YAAa,cACb,MAAO,aACT,EACA,MAAO,CACL,GAAI,aACN,CACF,CACF,CACF,CACF,CAAC"}
@@ -2,15 +2,29 @@
2
2
  import { defineSlotRecipe as e } from "@pandacss/dev";
3
3
  //#region src/theme/recipes/tag.ts
4
4
  var t = e({
5
- base: { root: {
6
- fontFamily: "satoshi",
7
- borderStyle: "solid",
8
- display: "inline-flex",
9
- flexDirection: "row",
10
- alignItems: "center",
11
- borderRadius: "radius-28"
12
- } },
13
- slots: ["root", "badge"],
5
+ base: {
6
+ root: {
7
+ fontFamily: "satoshi",
8
+ borderStyle: "solid",
9
+ display: "inline-flex",
10
+ flexDirection: "row",
11
+ alignItems: "center",
12
+ borderRadius: "radius-28",
13
+ maxWidth: "100%"
14
+ },
15
+ label: {
16
+ minWidth: 0,
17
+ overflow: "hidden",
18
+ textOverflow: "ellipsis",
19
+ whiteSpace: "nowrap"
20
+ },
21
+ badge: { flexShrink: 0 }
22
+ },
23
+ slots: [
24
+ "root",
25
+ "label",
26
+ "badge"
27
+ ],
14
28
  className: "tag",
15
29
  defaultVariants: {
16
30
  size: "md",
@@ -1 +1 @@
1
- {"version":3,"file":"tag.js","names":[],"sources":["../../../src/theme/recipes/tag.ts"],"sourcesContent":["import { defineSlotRecipe } from '@pandacss/dev'\n\nexport const tagRecipe = defineSlotRecipe({\n base: {\n root: {\n fontFamily: 'satoshi',\n borderStyle: 'solid',\n display: 'inline-flex',\n flexDirection: 'row',\n alignItems: 'center',\n borderRadius: 'radius-28',\n },\n },\n slots: ['root', 'badge'],\n className: 'tag',\n defaultVariants: {\n size: 'md',\n severity: 'neutral',\n },\n description: 'The styles for the Tag component',\n jsx: ['Tag'],\n variants: {\n size: {\n lg: {\n root: {\n borderWidth: 2,\n textStyle: 'body.lg',\n fontWeight: 'bold',\n py: 'space-8',\n px: 'space-16',\n gap: 'space-8',\n },\n badge: {\n width: 'size-8',\n height: 'size-8',\n },\n },\n md: {\n root: {\n borderWidth: 1,\n textStyle: 'body.md',\n fontWeight: 'bold',\n py: 'space-6',\n px: 'space-12',\n gap: 'space-8',\n },\n badge: {\n width: 'size-6',\n height: 'size-6',\n },\n },\n sm: {\n root: {\n borderWidth: 1,\n textStyle: 'body.sm',\n fontWeight: 'bold',\n py: 'space-4',\n px: 'space-8',\n gap: 'space-4',\n },\n badge: {\n width: 'size-4',\n height: 'size-4',\n },\n },\n },\n severity: {\n success: {\n root: {\n bg: 'success.100',\n borderColor: 'success.500',\n color: 'success.500',\n },\n badge: {\n bg: 'success.500',\n },\n },\n warning: {\n root: {\n bg: 'warning.100',\n borderColor: 'warning.500',\n color: 'warning.500',\n },\n badge: {\n bg: 'warning.500',\n },\n },\n error: {\n root: {\n bg: 'error.100',\n borderColor: 'error.500',\n color: 'error.500',\n },\n badge: {\n bg: 'error.500',\n },\n },\n neutral: {\n root: {\n bg: 'grey.50',\n borderColor: 'grey.400',\n color: 'grey.400',\n },\n badge: {\n bg: 'grey.400',\n },\n },\n info: {\n root: {\n bg: 'secondary.100',\n borderColor: 'secondary.500',\n color: 'secondary.500',\n },\n badge: {\n bg: 'secondary.500',\n },\n },\n // For states that are neither an alert nor an absence: a legitimate in-progress\n // situation the user is meant to act on, in the product's own colour. Without it,\n // such states get dressed as a warning or overridden from outside — and an outside\n // override only reaches the root, leaving the badge and border grey.\n primary: {\n root: {\n bg: 'primary.100',\n borderColor: 'primary.500',\n color: 'primary.500',\n },\n badge: {\n bg: 'primary.500',\n },\n },\n },\n },\n})\n"],"mappings":";;;AAEA,IAAa,IAAY,EAAiB;CACxC,MAAM,EACJ,MAAM;EACJ,YAAY;EACZ,aAAa;EACb,SAAS;EACT,eAAe;EACf,YAAY;EACZ,cAAc;CAChB,EACF;CACA,OAAO,CAAC,QAAQ,OAAO;CACvB,WAAW;CACX,iBAAiB;EACf,MAAM;EACN,UAAU;CACZ;CACA,aAAa;CACb,KAAK,CAAC,KAAK;CACX,UAAU;EACR,MAAM;GACJ,IAAI;IACF,MAAM;KACJ,aAAa;KACb,WAAW;KACX,YAAY;KACZ,IAAI;KACJ,IAAI;KACJ,KAAK;IACP;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;GACF;GACA,IAAI;IACF,MAAM;KACJ,aAAa;KACb,WAAW;KACX,YAAY;KACZ,IAAI;KACJ,IAAI;KACJ,KAAK;IACP;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;GACF;GACA,IAAI;IACF,MAAM;KACJ,aAAa;KACb,WAAW;KACX,YAAY;KACZ,IAAI;KACJ,IAAI;KACJ,KAAK;IACP;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;GACF;EACF;EACA,UAAU;GACR,SAAS;IACP,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,cACN;GACF;GACA,SAAS;IACP,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,cACN;GACF;GACA,OAAO;IACL,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,YACN;GACF;GACA,SAAS;IACP,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,WACN;GACF;GACA,MAAM;IACJ,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,gBACN;GACF;GAKA,SAAS;IACP,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,cACN;GACF;EACF;CACF;AACF,CAAC"}
1
+ {"version":3,"file":"tag.js","names":[],"sources":["../../../src/theme/recipes/tag.ts"],"sourcesContent":["import { defineSlotRecipe } from '@pandacss/dev'\n\nexport const tagRecipe = defineSlotRecipe({\n base: {\n root: {\n fontFamily: 'satoshi',\n borderStyle: 'solid',\n display: 'inline-flex',\n flexDirection: 'row',\n alignItems: 'center',\n borderRadius: 'radius-28',\n // Never wider than its container: a long label truncates in its label slot.\n maxWidth: '100%',\n },\n label: {\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n badge: {\n flexShrink: 0,\n },\n },\n slots: ['root', 'label', 'badge'],\n className: 'tag',\n defaultVariants: {\n size: 'md',\n severity: 'neutral',\n },\n description: 'The styles for the Tag component',\n jsx: ['Tag'],\n variants: {\n size: {\n lg: {\n root: {\n borderWidth: 2,\n textStyle: 'body.lg',\n fontWeight: 'bold',\n py: 'space-8',\n px: 'space-16',\n gap: 'space-8',\n },\n badge: {\n width: 'size-8',\n height: 'size-8',\n },\n },\n md: {\n root: {\n borderWidth: 1,\n textStyle: 'body.md',\n fontWeight: 'bold',\n py: 'space-6',\n px: 'space-12',\n gap: 'space-8',\n },\n badge: {\n width: 'size-6',\n height: 'size-6',\n },\n },\n sm: {\n root: {\n borderWidth: 1,\n textStyle: 'body.sm',\n fontWeight: 'bold',\n py: 'space-4',\n px: 'space-8',\n gap: 'space-4',\n },\n badge: {\n width: 'size-4',\n height: 'size-4',\n },\n },\n },\n severity: {\n success: {\n root: {\n bg: 'success.100',\n borderColor: 'success.500',\n color: 'success.500',\n },\n badge: {\n bg: 'success.500',\n },\n },\n warning: {\n root: {\n bg: 'warning.100',\n borderColor: 'warning.500',\n color: 'warning.500',\n },\n badge: {\n bg: 'warning.500',\n },\n },\n error: {\n root: {\n bg: 'error.100',\n borderColor: 'error.500',\n color: 'error.500',\n },\n badge: {\n bg: 'error.500',\n },\n },\n neutral: {\n root: {\n bg: 'grey.50',\n borderColor: 'grey.400',\n color: 'grey.400',\n },\n badge: {\n bg: 'grey.400',\n },\n },\n info: {\n root: {\n bg: 'secondary.100',\n borderColor: 'secondary.500',\n color: 'secondary.500',\n },\n badge: {\n bg: 'secondary.500',\n },\n },\n // For states that are neither an alert nor an absence: a legitimate in-progress\n // situation the user is meant to act on, in the product's own colour. Without it,\n // such states get dressed as a warning or overridden from outside — and an outside\n // override only reaches the root, leaving the badge and border grey.\n primary: {\n root: {\n bg: 'primary.100',\n borderColor: 'primary.500',\n color: 'primary.500',\n },\n badge: {\n bg: 'primary.500',\n },\n },\n },\n },\n})\n"],"mappings":";;;AAEA,IAAa,IAAY,EAAiB;CACxC,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,aAAa;GACb,SAAS;GACT,eAAe;GACf,YAAY;GACZ,cAAc;GAEd,UAAU;EACZ;EACA,OAAO;GACL,UAAU;GACV,UAAU;GACV,cAAc;GACd,YAAY;EACd;EACA,OAAO,EACL,YAAY,EACd;CACF;CACA,OAAO;EAAC;EAAQ;EAAS;CAAO;CAChC,WAAW;CACX,iBAAiB;EACf,MAAM;EACN,UAAU;CACZ;CACA,aAAa;CACb,KAAK,CAAC,KAAK;CACX,UAAU;EACR,MAAM;GACJ,IAAI;IACF,MAAM;KACJ,aAAa;KACb,WAAW;KACX,YAAY;KACZ,IAAI;KACJ,IAAI;KACJ,KAAK;IACP;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;GACF;GACA,IAAI;IACF,MAAM;KACJ,aAAa;KACb,WAAW;KACX,YAAY;KACZ,IAAI;KACJ,IAAI;KACJ,KAAK;IACP;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;GACF;GACA,IAAI;IACF,MAAM;KACJ,aAAa;KACb,WAAW;KACX,YAAY;KACZ,IAAI;KACJ,IAAI;KACJ,KAAK;IACP;IACA,OAAO;KACL,OAAO;KACP,QAAQ;IACV;GACF;EACF;EACA,UAAU;GACR,SAAS;IACP,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,cACN;GACF;GACA,SAAS;IACP,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,cACN;GACF;GACA,OAAO;IACL,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,YACN;GACF;GACA,SAAS;IACP,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,WACN;GACF;GACA,MAAM;IACJ,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,gBACN;GACF;GAKA,SAAS;IACP,MAAM;KACJ,IAAI;KACJ,aAAa;KACb,OAAO;IACT;IACA,OAAO,EACL,IAAI,cACN;GACF;EACF;CACF;AACF,CAAC"}