@stokelp/ui 2.126.0 → 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"}
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});/* empty css */const e=require("./components/accordion/Accordion.cjs"),t=require("./components/button/Button.cjs"),n=require("./components/checkbox/Checkbox.cjs"),r=require("./components/icon-button/IconButton.cjs"),i=require("./components/drawer/Drawer.cjs"),a=require("./components/form/FormControl.cjs"),o=require("./components/tooltip/Tooltip.cjs"),s=require("./components/form/FormLabel.cjs"),ee=require("./components/form/FormHelperText.cjs"),c=require("./components/heading/Heading.cjs"),l=require("./components/switch/Switch.cjs"),u=require("./components/text/Text.cjs"),d=require("./components/textarea/Textarea.cjs"),f=require("./components/tabs/Tabs.cjs"),p=require("./components/steps/Steps.cjs"),m=require("./components/supplier-rating-badge/labels.cjs"),h=require("./components/ui-labels/UiLabelsProvider.cjs"),te=require("./components/select/Select.cjs"),ne=require("./components/select-language/SelectLanguage.cjs"),re=require("./components/input/Input.cjs"),g=require("./components/input/HighlightedInput.cjs"),ie=require("./components/input/InputAddon.cjs"),ae=require("./components/input/InputGroup.cjs"),_=require("./components/input/PhoneNumberInput.cjs"),v=require("./components/box/Box.cjs"),y=require("./components/date-picker/DatePicker.cjs"),b=require("./components/tag/Tag.cjs"),x=require("./components/radio-button-group/RadioButtonGroup.cjs"),S=require("./components/radio-group/RadioGroup.cjs"),C=require("./components/chip/Chip.cjs"),w=require("./components/action-card/ActionCard.cjs"),T=require("./components/alert/Alert.cjs"),E=require("./components/table/Table.cjs"),D=require("./components/breadcrumb/Breadcrumb.cjs"),O=require("./components/popover/Popover.cjs"),k=require("./components/pagination/Pagination.cjs"),A=require("./components/illustration/Illustration.cjs"),j=require("./components/button-filter/ButtonFilter.cjs"),M=require("./components/status-tag-select/StatusTagSelect.cjs"),N=require("./components/switch-card/namespace.cjs"),P=require("./components/radio-card-group/namespace.cjs"),F=require("./components/checkbox-card/namespace.cjs"),I=require("./components/combobox/Combobox.cjs"),L=require("./components/icon/Icon.cjs"),R=require("./components/collapsible/styled.cjs"),z=require("./components/dialog/styled.cjs"),oe=require("./components/avatar/styled.cjs"),B=require("./components/menu/Menu.cjs"),V=require("./components/flag/styled.cjs"),H=require("./components/origin-select/OriginSelect.cjs"),U=require("./components/chat/ChatMessage.cjs"),W=require("./components/chat/ChatDocumentMessage.cjs"),G=require("./components/chat/ChatProfileAvatar.cjs"),K=require("./components/chat/Chat.cjs"),q=require("./components/chat/ChatScoreBreakdown.cjs"),se=require("./components/chat/ChatTextInput.cjs"),J=require("./components/supplier-rating-badge/SupplierRatingBreakdown.cjs"),ce=require("./components/supplier-rating-badge/SupplierRatingBadge.cjs"),le=require("./components/app/price-tag/PriceTag.cjs"),ue=require("./components/app/product-card-catalog/styled.cjs"),de=require("./components/app/navigation/AppNavigation.cjs"),Y=require("./components/app/navigation/language-select/AppNavigationLanguageSelect.cjs"),fe=require("./components/app/mobile-navigation/MobileNavigation.cjs"),X=require("./components/app/mobile-card/MobileCardShell.cjs"),pe=require("./components/app/mobile-card/MobileCardHeader.cjs"),me=require("./components/app/mobile-card/MobileCardNotificationBadge.cjs"),he=require("./components/app/mobile-card/MobileCardEntityRow.cjs"),Z=require("./components/app/mobile-card/MobileCardSkeleton.cjs"),ge=require("./preset.cjs");let Q=require("@ark-ui/react"),$=require("react-phone-number-input");exports.Accordion=e.Accordion,exports.AccordionItem=e.AccordionItem,exports.AccordionItemContent=e.AccordionItemContent,exports.AccordionItemIndicator=e.AccordionItemIndicator,exports.AccordionItemTrigger=e.AccordionItemTrigger,exports.ActionCard=w.ActionCard,exports.ActionCardDescription=w.ActionCardDescription,exports.ActionCardTitle=w.ActionCardTitle,exports.Alert=T.Alert,Object.defineProperty(exports,"AppNavigation",{enumerable:!0,get:function(){return de.AppNavigation_exports}}),exports.AppNavigationLanguageSelect=Y.AppNavigationLanguageSelect,Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return oe.styled_exports}}),exports.Box=v.Box,exports.Breadcrumb=D.Breadcrumb,exports.BreadcrumbItem=D.BreadcrumbItem,exports.BreadcrumbLink=D.BreadcrumbLink,exports.Button=t.Button,exports.ButtonFilter=j.ButtonFilter,Object.defineProperty(exports,"Chat",{enumerable:!0,get:function(){return K.Chat_exports}}),exports.ChatDocumentMessage=W.ChatDocumentMessage,exports.ChatMessage=U.ChatMessage,exports.ChatProfileAvatar=G.ChatProfileAvatar,exports.ChatScoreBreakdown=q.ChatScoreBreakdown,exports.ChatTextInput=se.ChatTextInput,exports.Checkbox=n.Checkbox,Object.defineProperty(exports,"CheckboxCard",{enumerable:!0,get:function(){return F.namespace_exports}}),exports.CheckboxGroup=n.CheckboxGroup,exports.Chip=C.Chip,exports.ChipAvatar=C.ChipAvatar,exports.ChipClearTrigger=C.ChipClearTrigger,exports.ChipLabel=C.ChipLabel,Object.defineProperty(exports,"Collapsible",{enumerable:!0,get:function(){return R.styled_exports}}),exports.Combobox=I.Combobox,exports.DEFAULT_APP_NAVIGATION_LANGUAGES=Y.DEFAULT_APP_NAVIGATION_LANGUAGES,exports.DEFAULT_SUPPLIER_RATING_LABELS=m.DEFAULT_SUPPLIER_RATING_LABELS,exports.DEFAULT_UI_LABELS=h.DEFAULT_UI_LABELS,exports.DatePicker=y.DatePicker,Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return z.styled_exports}}),exports.Drawer=i.Drawer,exports.DrawerBody=i.DrawerBody,exports.DrawerCloseTrigger=i.DrawerCloseTrigger,exports.DrawerContent=i.DrawerContent,exports.DrawerContext=i.DrawerContext,exports.DrawerFooter=i.DrawerFooter,exports.DrawerHeader=i.DrawerHeader,exports.DrawerTitle=i.DrawerTitle,exports.DrawerTrigger=i.DrawerTrigger,exports.Flag=V.Flag,exports.FlagCountryCodes=V.FlagCountryCodes,exports.FormControl=a.FormControl,exports.FormHelperText=ee.FormHelperText,exports.FormLabel=s.FormLabel,exports.Heading=c.Heading,exports.Highlight=g.Highlight,exports.HighlightedInput=g.HighlightedInput,exports.Icon=L.Icon,exports.IconButton=r.IconButton,exports.Illustration=A.Illustration,exports.Input=re.Input,exports.InputAddon=ie.InputAddon,exports.InputGroup=ae.InputGroup,exports.InputSlot=g.InputSlot,Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return B.Menu_exports}}),exports.MobileCardEntityRow=he.MobileCardEntityRow,exports.MobileCardHeader=pe.MobileCardHeader,exports.MobileCardNotificationBadge=me.MobileCardNotificationBadge,exports.MobileCardShell=X.MobileCardShell,exports.MobileCardSkeleton=Z.MobileCardSkeleton,exports.MobileCardSkeletonList=Z.MobileCardSkeletonList,Object.defineProperty(exports,"MobileNavigation",{enumerable:!0,get:function(){return fe.MobileNavigation_exports}}),exports.OriginSelect=H.OriginSelect,exports.Pagination=k.Pagination,exports.PhoneNumberInput=_.PhoneNumberInput,exports.Popover=O.Popover,exports.PopoverAnchor=O.PopoverAnchor,exports.PopoverCloseTrigger=O.PopoverCloseTrigger,exports.PopoverContent=O.PopoverContent,exports.PopoverContext=O.PopoverContext,exports.PopoverTrigger=O.PopoverTrigger,exports.PriceTag=le.PriceTag,Object.defineProperty(exports,"ProductCardCatalog",{enumerable:!0,get:function(){return ue.styled_exports}}),exports.RadioButtonGroup=x.RadioButtonGroup,exports.RadioButtonGroupItem=x.RadioButtonGroupItem,exports.RadioButtonGroupLabel=x.RadioButtonGroupLabel,Object.defineProperty(exports,"RadioCardGroup",{enumerable:!0,get:function(){return P.namespace_exports}}),exports.RadioGroup=S.RadioGroup,exports.RadioGroupItem=S.RadioGroupItem,exports.RadioGroupLabel=S.RadioGroupLabel,exports.Renderer=g.Renderer,exports.Root=g.Root,exports.SUPPLIER_RATING_MAX=J.SUPPLIER_RATING_MAX,exports.Select=te.Select,exports.SelectLanguage=ne.SelectLanguage,exports.SkeletonBlock=Z.SkeletonBlock,exports.StatusTagSelect=M.StatusTagSelect,exports.Steps=p.Steps,exports.StepsContent=p.StepsContent,exports.StepsIndicator=p.StepsIndicator,exports.StepsItem=p.StepsItem,exports.StepsList=p.StepsList,exports.StepsSeparator=p.StepsSeparator,exports.StepsTrigger=p.StepsTrigger,exports.SupplierRatingBadge=ce.SupplierRatingBadge,exports.SupplierRatingBreakdown=J.SupplierRatingBreakdown,exports.Switch=l.Switch,Object.defineProperty(exports,"SwitchCard",{enumerable:!0,get:function(){return N.namespace_exports}}),exports.Table=E.Table,exports.TableContainer=E.TableContainer,exports.TableEmptyRow=E.TableEmptyRow,exports.TableGroupTitle=E.TableGroupTitle,exports.Tabs=f.Tabs,exports.TabsChip=f.TabsChip,exports.TabsContent=f.TabsContent,exports.TabsList=f.TabsList,exports.TabsTrigger=f.TabsTrigger,exports.Tag=b.Tag,exports.Tbody=E.Tbody,exports.Td=E.Td,exports.Text=u.Text,exports.Textarea=d.Textarea,exports.Th=E.Th,exports.Thead=E.Thead,exports.Tooltip=o.Tooltip,exports.Tr=E.Tr,exports.UiLabelsProvider=h.UiLabelsProvider,Object.defineProperty(exports,"createListCollection",{enumerable:!0,get:function(){return Q.createListCollection}}),Object.defineProperty(exports,"createToaster",{enumerable:!0,get:function(){return Q.createToaster}}),exports.formatOverall=J.formatOverall,Object.defineProperty(exports,"formatPhoneNumber",{enumerable:!0,get:function(){return $.formatPhoneNumber}}),Object.defineProperty(exports,"formatPhoneNumberIntl",{enumerable:!0,get:function(){return $.formatPhoneNumberIntl}}),exports.formatResponseDelay=J.formatResponseDelay,Object.defineProperty(exports,"getCountries",{enumerable:!0,get:function(){return $.getCountries}}),Object.defineProperty(exports,"getCountryCallingCode",{enumerable:!0,get:function(){return $.getCountryCallingCode}}),exports.getHeadlineColor=J.getHeadlineColor,Object.defineProperty(exports,"isPossiblePhoneNumber",{enumerable:!0,get:function(){return $.isPossiblePhoneNumber}}),Object.defineProperty(exports,"isSupportedCountry",{enumerable:!0,get:function(){return $.isSupportedCountry}}),Object.defineProperty(exports,"isValidPhoneNumber",{enumerable:!0,get:function(){return $.isValidPhoneNumber}}),exports.mergeSupplierRatingLabels=m.mergeSupplierRatingLabels,Object.defineProperty(exports,"parseColor",{enumerable:!0,get:function(){return Q.parseColor}}),Object.defineProperty(exports,"parseDate",{enumerable:!0,get:function(){return Q.parseDate}}),Object.defineProperty(exports,"parsePhoneNumber",{enumerable:!0,get:function(){return $.parsePhoneNumber}}),exports.preset=ge.preset,Object.defineProperty(exports,"useAccordion",{enumerable:!0,get:function(){return Q.useAccordion}}),exports.useUiLabels=h.useUiLabels;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});/* empty css */const e=require("./components/accordion/Accordion.cjs"),t=require("./components/button/Button.cjs"),n=require("./components/checkbox/Checkbox.cjs"),r=require("./components/icon-button/IconButton.cjs"),i=require("./components/drawer/Drawer.cjs"),a=require("./components/form/FormControl.cjs"),o=require("./components/tooltip/Tooltip.cjs"),s=require("./components/form/FormLabel.cjs"),ee=require("./components/form/FormHelperText.cjs"),c=require("./components/heading/Heading.cjs"),l=require("./components/switch/Switch.cjs"),u=require("./components/text/Text.cjs"),d=require("./components/textarea/Textarea.cjs"),f=require("./components/tabs/Tabs.cjs"),p=require("./components/steps/Steps.cjs"),m=require("./components/supplier-rating-badge/labels.cjs"),h=require("./components/ui-labels/UiLabelsProvider.cjs"),te=require("./components/select/Select.cjs"),ne=require("./components/select-language/SelectLanguage.cjs"),re=require("./components/input/Input.cjs"),g=require("./components/input/HighlightedInput.cjs"),ie=require("./components/input/InputAddon.cjs"),ae=require("./components/input/InputGroup.cjs"),_=require("./components/input/PhoneNumberInput.cjs"),v=require("./components/box/Box.cjs"),y=require("./components/date-picker/DatePicker.cjs"),b=require("./components/tag/Tag.cjs"),x=require("./components/radio-button-group/RadioButtonGroup.cjs"),S=require("./components/radio-group/RadioGroup.cjs"),C=require("./components/chip/Chip.cjs"),w=require("./components/action-card/ActionCard.cjs"),T=require("./components/alert/Alert.cjs"),E=require("./components/table/Table.cjs"),D=require("./components/breadcrumb/Breadcrumb.cjs"),O=require("./components/popover/Popover.cjs"),k=require("./components/pagination/Pagination.cjs"),A=require("./components/illustration/Illustration.cjs"),j=require("./components/button-filter/ButtonFilter.cjs"),M=require("./components/status-tag-select/StatusTagSelect.cjs"),N=require("./components/switch-card/namespace.cjs"),P=require("./components/radio-card-group/namespace.cjs"),F=require("./components/checkbox-card/namespace.cjs"),I=require("./components/combobox/Combobox.cjs"),L=require("./components/icon/Icon.cjs"),R=require("./components/collapsible/styled.cjs"),z=require("./components/dialog/styled.cjs"),oe=require("./components/avatar/styled.cjs"),B=require("./components/menu/Menu.cjs"),V=require("./components/flag/styled.cjs"),H=require("./components/origin-select/OriginSelect.cjs"),U=require("./components/chat/ChatMessage.cjs"),W=require("./components/chat/ChatDocumentMessage.cjs"),G=require("./components/chat/ChatProfileAvatar.cjs"),K=require("./components/chat/Chat.cjs"),q=require("./components/chat/ChatScoreBreakdown.cjs"),se=require("./components/chat/ChatTextInput.cjs"),J=require("./components/supplier-rating-badge/SupplierRatingBreakdown.cjs"),ce=require("./components/supplier-rating-badge/SupplierRatingBadge.cjs"),le=require("./components/app/price-tag/PriceTag.cjs"),ue=require("./components/app/product-card-catalog/styled.cjs"),de=require("./components/app/navigation/AppNavigation.cjs"),Y=require("./components/app/navigation/language-select/AppNavigationLanguageSelect.cjs"),fe=require("./components/app/mobile-navigation/MobileNavigation.cjs"),X=require("./components/app/mobile-card/MobileCardShell.cjs"),pe=require("./components/app/mobile-card/MobileCardHeader.cjs"),me=require("./components/app/mobile-card/MobileCardNotificationBadge.cjs"),he=require("./components/app/mobile-card/MobileCardEntityRow.cjs"),Z=require("./components/app/mobile-card/MobileCardSkeleton.cjs"),ge=require("./preset.cjs");let Q=require("@ark-ui/react"),$=require("react-phone-number-input");exports.Accordion=e.Accordion,exports.AccordionItem=e.AccordionItem,exports.AccordionItemContent=e.AccordionItemContent,exports.AccordionItemIndicator=e.AccordionItemIndicator,exports.AccordionItemTrigger=e.AccordionItemTrigger,exports.ActionCard=w.ActionCard,exports.ActionCardDescription=w.ActionCardDescription,exports.ActionCardTitle=w.ActionCardTitle,exports.Alert=T.Alert,Object.defineProperty(exports,"AppNavigation",{enumerable:!0,get:function(){return de.AppNavigation_exports}}),exports.AppNavigationLanguageSelect=Y.AppNavigationLanguageSelect,Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return oe.styled_exports}}),exports.Box=v.Box,exports.Breadcrumb=D.Breadcrumb,exports.BreadcrumbItem=D.BreadcrumbItem,exports.BreadcrumbLink=D.BreadcrumbLink,exports.Button=t.Button,exports.ButtonFilter=j.ButtonFilter,Object.defineProperty(exports,"Chat",{enumerable:!0,get:function(){return K.Chat_exports}}),exports.ChatDocumentMessage=W.ChatDocumentMessage,exports.ChatMessage=U.ChatMessage,exports.ChatProfileAvatar=G.ChatProfileAvatar,exports.ChatScoreBreakdown=q.ChatScoreBreakdown,exports.ChatTextInput=se.ChatTextInput,exports.Checkbox=n.Checkbox,Object.defineProperty(exports,"CheckboxCard",{enumerable:!0,get:function(){return F.namespace_exports}}),exports.CheckboxGroup=n.CheckboxGroup,exports.Chip=C.Chip,exports.ChipAvatar=C.ChipAvatar,exports.ChipClearTrigger=C.ChipClearTrigger,exports.ChipLabel=C.ChipLabel,Object.defineProperty(exports,"Collapsible",{enumerable:!0,get:function(){return R.styled_exports}}),exports.Combobox=I.Combobox,exports.DEFAULT_APP_NAVIGATION_LANGUAGES=Y.DEFAULT_APP_NAVIGATION_LANGUAGES,exports.DEFAULT_SUPPLIER_RATING_LABELS=m.DEFAULT_SUPPLIER_RATING_LABELS,exports.DEFAULT_UI_LABELS=h.DEFAULT_UI_LABELS,exports.DatePicker=y.DatePicker,Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return z.styled_exports}}),exports.Drawer=i.Drawer,exports.DrawerBody=i.DrawerBody,exports.DrawerCloseTrigger=i.DrawerCloseTrigger,exports.DrawerContent=i.DrawerContent,exports.DrawerContext=i.DrawerContext,exports.DrawerFooter=i.DrawerFooter,exports.DrawerHeader=i.DrawerHeader,exports.DrawerTitle=i.DrawerTitle,exports.DrawerTrigger=i.DrawerTrigger,exports.Flag=V.Flag,exports.FlagCountryCodes=V.FlagCountryCodes,exports.FormControl=a.FormControl,exports.FormHelperText=ee.FormHelperText,exports.FormLabel=s.FormLabel,exports.Heading=c.Heading,exports.Highlight=g.Highlight,exports.HighlightedInput=g.HighlightedInput,exports.Icon=L.Icon,exports.IconButton=r.IconButton,exports.Illustration=A.Illustration,exports.Input=re.Input,exports.InputAddon=ie.InputAddon,exports.InputGroup=ae.InputGroup,exports.InputSlot=g.InputSlot,Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return B.Menu_exports}}),exports.MobileCardEntityRow=he.MobileCardEntityRow,exports.MobileCardHeader=pe.MobileCardHeader,exports.MobileCardNotificationBadge=me.MobileCardNotificationBadge,exports.MobileCardShell=X.MobileCardShell,exports.MobileCardSkeleton=Z.MobileCardSkeleton,exports.MobileCardSkeletonList=Z.MobileCardSkeletonList,Object.defineProperty(exports,"MobileNavigation",{enumerable:!0,get:function(){return fe.MobileNavigation_exports}}),exports.OriginSelect=H.OriginSelect,exports.Pagination=k.Pagination,exports.PhoneNumberInput=_.PhoneNumberInput,exports.Popover=O.Popover,exports.PopoverAnchor=O.PopoverAnchor,exports.PopoverCloseTrigger=O.PopoverCloseTrigger,exports.PopoverContent=O.PopoverContent,exports.PopoverContext=O.PopoverContext,exports.PopoverTrigger=O.PopoverTrigger,exports.PriceTag=le.PriceTag,Object.defineProperty(exports,"ProductCardCatalog",{enumerable:!0,get:function(){return ue.styled_exports}}),exports.RadioButtonGroup=x.RadioButtonGroup,exports.RadioButtonGroupItem=x.RadioButtonGroupItem,exports.RadioButtonGroupLabel=x.RadioButtonGroupLabel,Object.defineProperty(exports,"RadioCardGroup",{enumerable:!0,get:function(){return P.namespace_exports}}),exports.RadioGroup=S.RadioGroup,exports.RadioGroupItem=S.RadioGroupItem,exports.RadioGroupLabel=S.RadioGroupLabel,exports.Renderer=g.Renderer,exports.Root=g.Root,exports.SUPPLIER_RATING_MAX=J.SUPPLIER_RATING_MAX,exports.Select=te.Select,exports.SelectLanguage=ne.SelectLanguage,exports.SkeletonBlock=Z.SkeletonBlock,exports.StatusTagSelect=M.StatusTagSelect,exports.Steps=p.Steps,exports.StepsContent=p.StepsContent,exports.StepsIndicator=p.StepsIndicator,exports.StepsItem=p.StepsItem,exports.StepsList=p.StepsList,exports.StepsSeparator=p.StepsSeparator,exports.StepsTrigger=p.StepsTrigger,exports.SupplierRatingBadge=ce.SupplierRatingBadge,exports.SupplierRatingBreakdown=J.SupplierRatingBreakdown,exports.Switch=l.Switch,Object.defineProperty(exports,"SwitchCard",{enumerable:!0,get:function(){return N.namespace_exports}}),exports.Table=E.Table,exports.TableContainer=E.TableContainer,exports.TableEmptyRow=E.TableEmptyRow,exports.TableGroupTitle=E.TableGroupTitle,exports.Tabs=f.Tabs,exports.TabsChip=f.TabsChip,exports.TabsContent=f.TabsContent,exports.TabsList=f.TabsList,exports.TabsTrigger=f.TabsTrigger,exports.Tag=b.Tag,exports.Tbody=E.Tbody,exports.Td=E.Td,exports.Text=u.Text,exports.Textarea=d.Textarea,exports.Th=E.Th,exports.Thead=E.Thead,exports.Tooltip=o.Tooltip,exports.Tr=E.Tr,exports.UiLabelsProvider=h.UiLabelsProvider,Object.defineProperty(exports,"createListCollection",{enumerable:!0,get:function(){return Q.createListCollection}}),Object.defineProperty(exports,"createToaster",{enumerable:!0,get:function(){return Q.createToaster}}),exports.formatOverall=J.formatOverall,Object.defineProperty(exports,"formatPhoneNumber",{enumerable:!0,get:function(){return $.formatPhoneNumber}}),Object.defineProperty(exports,"formatPhoneNumberIntl",{enumerable:!0,get:function(){return $.formatPhoneNumberIntl}}),exports.formatResponseDelay=J.formatResponseDelay,Object.defineProperty(exports,"getCountries",{enumerable:!0,get:function(){return $.getCountries}}),Object.defineProperty(exports,"getCountryCallingCode",{enumerable:!0,get:function(){return $.getCountryCallingCode}}),exports.getHeadlineColor=J.getHeadlineColor,Object.defineProperty(exports,"isPossiblePhoneNumber",{enumerable:!0,get:function(){return $.isPossiblePhoneNumber}}),Object.defineProperty(exports,"isSupportedCountry",{enumerable:!0,get:function(){return $.isSupportedCountry}}),Object.defineProperty(exports,"isValidPhoneNumber",{enumerable:!0,get:function(){return $.isValidPhoneNumber}}),exports.mergeSupplierRatingLabels=m.mergeSupplierRatingLabels,Object.defineProperty(exports,"parseColor",{enumerable:!0,get:function(){return Q.parseColor}}),Object.defineProperty(exports,"parseDate",{enumerable:!0,get:function(){return Q.parseDate}}),Object.defineProperty(exports,"parsePhoneNumber",{enumerable:!0,get:function(){return $.parsePhoneNumber}}),exports.preset=ge.preset,Object.defineProperty(exports,"useAccordion",{enumerable:!0,get:function(){return Q.useAccordion}}),exports.useUiLabels=h.useUiLabels;
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  /* empty css */
3
2
  import { Accordion as e, AccordionItem as t, AccordionItemContent as n, AccordionItemIndicator as r, AccordionItemTrigger as i, useAccordion as a } from "./components/accordion/Accordion.js";
4
3
  import { Button as o } from "./components/button/Button.js";
@@ -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"}