@stokelp/ui 2.116.0 → 2.117.1
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/dist/components/combobox/Combobox.cjs +1 -1
- package/dist/components/combobox/Combobox.cjs.map +1 -1
- package/dist/components/combobox/Combobox.d.ts +7 -1
- package/dist/components/combobox/Combobox.js +118 -79
- package/dist/components/combobox/Combobox.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/origin-select/OriginSelect.cjs +2 -0
- package/dist/components/origin-select/OriginSelect.cjs.map +1 -0
- package/dist/components/origin-select/OriginSelect.d.ts +18 -0
- package/dist/components/origin-select/OriginSelect.js +29 -0
- package/dist/components/origin-select/OriginSelect.js.map +1 -0
- package/dist/components/origin-select/index.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +23 -22
- package/dist/theme/recipes/combobox.cjs +1 -1
- package/dist/theme/recipes/combobox.cjs.map +1 -1
- package/dist/theme/recipes/combobox.js +37 -2
- package/dist/theme/recipes/combobox.js.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OriginSelect.cjs","names":[],"sources":["../../../src/components/origin-select/OriginSelect.tsx"],"sourcesContent":["import { Combobox, type ComboboxItem, type ComboboxProps } from '~/components/combobox'\nimport { ChipLabel } from '~/components/chip'\nimport { Flag, FlagCountryCodes, type FlagCountryCode } from '~/components/flag'\nimport { Text } from '~/components/text'\n\nexport type OriginSelectItem = ComboboxItem & {\n /**\n * ISO-3166 alpha-2 country code (case-insensitive). When it maps to a known\n * flag it is rendered next to the label, both in the list and in the selected\n * chips. Origins without a country code (e.g. FAO fishing areas) render label\n * only.\n */\n countryCode?: string\n}\n\n/**\n * A searchable (optionally multiple) origin picker built on top of `Combobox`.\n * Options are countries: each row shows the flag + name, and in `multiple` mode\n * the selection is displayed as removable flag chips. Search, keyboard nav and\n * chip removal come from `Combobox` for free.\n */\nexport type OriginSelectProps = Omit<ComboboxProps<OriginSelectItem>, 'renderItem' | 'renderValue'>\n\nconst toFlagCode = (countryCode?: string): FlagCountryCode | undefined => {\n if (!countryCode) return undefined\n const code = countryCode.toLowerCase()\n return (FlagCountryCodes as string[]).includes(code) ? (code as FlagCountryCode) : undefined\n}\n\nexport const OriginSelect = (props: OriginSelectProps) => (\n <Combobox<OriginSelectItem>\n {...props}\n renderItem={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <Text truncate>{item.label}</Text>\n </>\n )\n }}\n renderValue={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <ChipLabel>{item.label}</ChipLabel>\n </>\n )\n }}\n />\n)\n"],"mappings":"wLAuBA,IAAM,EAAc,GAAsD,CACxE,GAAI,CAAC,EAAa,OAClB,IAAM,EAAO,EAAY,YAAY,EACrC,OAAQ,EAAA,iBAA8B,SAAS,CAAI,EAAK,EAA2B,IAAA,EACrF,EAEa,EAAgB,IAC3B,EAAA,EAAA,KAAC,EAAA,SAAD,CACE,GAAI,EACJ,WAAa,GAA2B,CACtC,IAAM,EAAO,EAAW,EAAK,WAAW,EACxC,OACE,EAAA,EAAA,MAAA,EAAA,SAAA,CAAA,SAAA,CACG,IAAQ,EAAA,EAAA,KAAC,EAAA,KAAD,CAAM,YAAa,CAAO,CAAA,GACnC,EAAA,EAAA,KAAC,EAAA,KAAD,CAAM,SAAA,YAAU,EAAK,KAAY,CAAA,CACjC,CAAA,CAAA,CAEN,EACA,YAAc,GAA2B,CACvC,IAAM,EAAO,EAAW,EAAK,WAAW,EACxC,OACE,EAAA,EAAA,MAAA,EAAA,SAAA,CAAA,SAAA,CACG,IAAQ,EAAA,EAAA,KAAC,EAAA,KAAD,CAAM,YAAa,CAAO,CAAA,GACnC,EAAA,EAAA,KAAC,EAAA,UAAD,CAAA,SAAY,EAAK,KAAiB,CAAA,CAClC,CAAA,CAAA,CAEN,CACD,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComboboxItem, ComboboxProps } from '../combobox';
|
|
2
|
+
export type OriginSelectItem = ComboboxItem & {
|
|
3
|
+
/**
|
|
4
|
+
* ISO-3166 alpha-2 country code (case-insensitive). When it maps to a known
|
|
5
|
+
* flag it is rendered next to the label, both in the list and in the selected
|
|
6
|
+
* chips. Origins without a country code (e.g. FAO fishing areas) render label
|
|
7
|
+
* only.
|
|
8
|
+
*/
|
|
9
|
+
countryCode?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A searchable (optionally multiple) origin picker built on top of `Combobox`.
|
|
13
|
+
* Options are countries: each row shows the flag + name, and in `multiple` mode
|
|
14
|
+
* the selection is displayed as removable flag chips. Search, keyboard nav and
|
|
15
|
+
* chip removal come from `Combobox` for free.
|
|
16
|
+
*/
|
|
17
|
+
export type OriginSelectProps = Omit<ComboboxProps<OriginSelectItem>, 'renderItem' | 'renderValue'>;
|
|
18
|
+
export declare const OriginSelect: (props: OriginSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Text as e } from "../text/Text.js";
|
|
3
|
+
import { ChipLabel as t } from "../chip/Chip.js";
|
|
4
|
+
import { Combobox as n } from "../combobox/Combobox.js";
|
|
5
|
+
import { Flag as r, FlagCountryCodes as i } from "../flag/styled.js";
|
|
6
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/origin-select/OriginSelect.tsx
|
|
8
|
+
var c = (e) => {
|
|
9
|
+
if (!e) return;
|
|
10
|
+
let t = e.toLowerCase();
|
|
11
|
+
return i.includes(t) ? t : void 0;
|
|
12
|
+
}, l = (i) => /* @__PURE__ */ o(n, {
|
|
13
|
+
...i,
|
|
14
|
+
renderItem: (t) => {
|
|
15
|
+
let n = c(t.countryCode);
|
|
16
|
+
return /* @__PURE__ */ s(a, { children: [n && /* @__PURE__ */ o(r, { countryCode: n }), /* @__PURE__ */ o(e, {
|
|
17
|
+
truncate: !0,
|
|
18
|
+
children: t.label
|
|
19
|
+
})] });
|
|
20
|
+
},
|
|
21
|
+
renderValue: (e) => {
|
|
22
|
+
let n = c(e.countryCode);
|
|
23
|
+
return /* @__PURE__ */ s(a, { children: [n && /* @__PURE__ */ o(r, { countryCode: n }), /* @__PURE__ */ o(t, { children: e.label })] });
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { l as OriginSelect };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=OriginSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OriginSelect.js","names":[],"sources":["../../../src/components/origin-select/OriginSelect.tsx"],"sourcesContent":["import { Combobox, type ComboboxItem, type ComboboxProps } from '~/components/combobox'\nimport { ChipLabel } from '~/components/chip'\nimport { Flag, FlagCountryCodes, type FlagCountryCode } from '~/components/flag'\nimport { Text } from '~/components/text'\n\nexport type OriginSelectItem = ComboboxItem & {\n /**\n * ISO-3166 alpha-2 country code (case-insensitive). When it maps to a known\n * flag it is rendered next to the label, both in the list and in the selected\n * chips. Origins without a country code (e.g. FAO fishing areas) render label\n * only.\n */\n countryCode?: string\n}\n\n/**\n * A searchable (optionally multiple) origin picker built on top of `Combobox`.\n * Options are countries: each row shows the flag + name, and in `multiple` mode\n * the selection is displayed as removable flag chips. Search, keyboard nav and\n * chip removal come from `Combobox` for free.\n */\nexport type OriginSelectProps = Omit<ComboboxProps<OriginSelectItem>, 'renderItem' | 'renderValue'>\n\nconst toFlagCode = (countryCode?: string): FlagCountryCode | undefined => {\n if (!countryCode) return undefined\n const code = countryCode.toLowerCase()\n return (FlagCountryCodes as string[]).includes(code) ? (code as FlagCountryCode) : undefined\n}\n\nexport const OriginSelect = (props: OriginSelectProps) => (\n <Combobox<OriginSelectItem>\n {...props}\n renderItem={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <Text truncate>{item.label}</Text>\n </>\n )\n }}\n renderValue={(item: OriginSelectItem) => {\n const code = toFlagCode(item.countryCode)\n return (\n <>\n {code && <Flag countryCode={code} />}\n <ChipLabel>{item.label}</ChipLabel>\n </>\n )\n }}\n />\n)\n"],"mappings":";;;;;;;AAuBA,IAAM,KAAc,MAAsD;CACxE,IAAI,CAAC,GAAa;CAClB,IAAM,IAAO,EAAY,YAAY;CACrC,OAAQ,EAA8B,SAAS,CAAI,IAAK,IAA2B,KAAA;AACrF,GAEa,KAAgB,MAC3B,kBAAC,GAAD;CACE,GAAI;CACJ,aAAa,MAA2B;EACtC,IAAM,IAAO,EAAW,EAAK,WAAW;EACxC,OACE,kBAAA,GAAA,EAAA,UAAA,CACG,KAAQ,kBAAC,GAAD,EAAM,aAAa,EAAO,CAAA,GACnC,kBAAC,GAAD;GAAM,UAAA;aAAU,EAAK;EAAY,CAAA,CACjC,EAAA,CAAA;CAEN;CACA,cAAc,MAA2B;EACvC,IAAM,IAAO,EAAW,EAAK,WAAW;EACxC,OACE,kBAAA,GAAA,EAAA,UAAA,CACG,KAAQ,kBAAC,GAAD,EAAM,aAAa,EAAO,CAAA,GACnC,kBAAC,GAAD,EAAA,UAAY,EAAK,MAAiB,CAAA,CAClC,EAAA,CAAA;CAEN;AACD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OriginSelect';
|
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"),ee=require("./components/form/FormControl.cjs"),a=require("./components/tooltip/Tooltip.cjs"),o=require("./components/form/FormLabel.cjs"),s=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/select/Select.cjs"),te=require("./components/select-language/SelectLanguage.cjs"),ne=require("./components/input/Input.cjs"),m=require("./components/input/HighlightedInput.cjs"),re=require("./components/input/InputAddon.cjs"),h=require("./components/input/InputGroup.cjs"),g=require("./components/input/PhoneNumberInput.cjs"),_=require("./components/box/Box.cjs"),v=require("./components/date-picker/DatePicker.cjs"),y=require("./components/tag/Tag.cjs"),b=require("./components/radio-button-group/RadioButtonGroup.cjs"),x=require("./components/radio-group/RadioGroup.cjs"),S=require("./components/chip/Chip.cjs"),C=require("./components/action-card/ActionCard.cjs"),w=require("./components/alert/Alert.cjs"),T=require("./components/table/Table.cjs"),E=require("./components/breadcrumb/Breadcrumb.cjs"),D=require("./components/popover/Popover.cjs"),O=require("./components/pagination/Pagination.cjs"),k=require("./components/illustration/Illustration.cjs"),A=require("./components/button-filter/ButtonFilter.cjs"),j=require("./components/status-tag-select/StatusTagSelect.cjs"),M=require("./components/switch-card/namespace.cjs"),N=require("./components/radio-card-group/namespace.cjs"),P=require("./components/checkbox-card/namespace.cjs"),F=require("./components/combobox/Combobox.cjs"),I=require("./components/icon/Icon.cjs"),L=require("./components/collapsible/styled.cjs"),ie=require("./components/dialog/styled.cjs"),R=require("./components/avatar/styled.cjs"),z=require("./components/menu/Menu.cjs"),B=require("./components/flag/styled.cjs"),V=require("./components/chat/ChatMessage.cjs"),H=require("./components/chat/ChatDocumentMessage.cjs"),U=require("./components/chat/ChatProfileAvatar.cjs"),W=require("./components/chat/Chat.cjs"),G=require("./components/chat/ChatScoreBreakdown.cjs"),K=require("./components/chat/ChatTextInput.cjs"),q=require("./components/supplier-rating-badge/SupplierRatingBreakdown.cjs"),J=require("./components/supplier-rating-badge/SupplierRatingBadge.cjs"),Y=require("./components/app/price-tag/PriceTag.cjs"),ae=require("./components/app/product-card-catalog/styled.cjs"),oe=require("./components/app/navigation/AppNavigation.cjs"),se=require("./components/app/navigation/language-select/AppNavigationLanguageSelect.cjs"),ce=require("./components/app/mobile-navigation/MobileNavigation.cjs"),le=require("./components/app/mobile-card/MobileCardShell.cjs"),X=require("./components/app/mobile-card/MobileCardHeader.cjs"),ue=require("./components/app/mobile-card/MobileCardNotificationBadge.cjs"),de=require("./components/app/mobile-card/MobileCardEntityRow.cjs"),Z=require("./components/app/mobile-card/MobileCardSkeleton.cjs"),fe=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=C.ActionCard,exports.ActionCardDescription=C.ActionCardDescription,exports.ActionCardTitle=C.ActionCardTitle,exports.Alert=w.Alert,Object.defineProperty(exports,"AppNavigation",{enumerable:!0,get:function(){return oe.AppNavigation_exports}}),exports.AppNavigationLanguageSelect=se.AppNavigationLanguageSelect,Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return R.styled_exports}}),exports.Box=_.Box,exports.Breadcrumb=E.Breadcrumb,exports.BreadcrumbItem=E.BreadcrumbItem,exports.BreadcrumbLink=E.BreadcrumbLink,exports.Button=t.Button,exports.ButtonFilter=A.ButtonFilter,Object.defineProperty(exports,"Chat",{enumerable:!0,get:function(){return W.Chat_exports}}),exports.ChatDocumentMessage=H.ChatDocumentMessage,exports.ChatMessage=V.ChatMessage,exports.ChatProfileAvatar=U.ChatProfileAvatar,exports.ChatScoreBreakdown=G.ChatScoreBreakdown,exports.ChatTextInput=K.ChatTextInput,exports.Checkbox=n.Checkbox,Object.defineProperty(exports,"CheckboxCard",{enumerable:!0,get:function(){return P.namespace_exports}}),exports.CheckboxGroup=n.CheckboxGroup,exports.Chip=S.Chip,exports.ChipAvatar=S.ChipAvatar,exports.ChipClearTrigger=S.ChipClearTrigger,exports.ChipLabel=S.ChipLabel,Object.defineProperty(exports,"Collapsible",{enumerable:!0,get:function(){return L.styled_exports}}),exports.Combobox=F.Combobox,exports.DEFAULT_SUPPLIER_RATING_LABELS=q.DEFAULT_SUPPLIER_RATING_LABELS,exports.DatePicker=v.DatePicker,Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return ie.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=B.Flag,exports.FlagCountryCodes=B.FlagCountryCodes,exports.FormControl=ee.FormControl,exports.FormHelperText=s.FormHelperText,exports.FormLabel=o.FormLabel,exports.Heading=c.Heading,exports.Highlight=m.Highlight,exports.HighlightedInput=m.HighlightedInput,exports.Icon=I.Icon,exports.IconButton=r.IconButton,exports.Illustration=k.Illustration,exports.Input=ne.Input,exports.InputAddon=re.InputAddon,exports.InputGroup=h.InputGroup,exports.InputSlot=m.InputSlot,Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return z.Menu_exports}}),exports.MobileCardEntityRow=de.MobileCardEntityRow,exports.MobileCardHeader=X.MobileCardHeader,exports.MobileCardNotificationBadge=ue.MobileCardNotificationBadge,exports.MobileCardShell=le.MobileCardShell,exports.MobileCardSkeleton=Z.MobileCardSkeleton,exports.MobileCardSkeletonList=Z.MobileCardSkeletonList,Object.defineProperty(exports,"MobileNavigation",{enumerable:!0,get:function(){return ce.MobileNavigation_exports}}),exports.Pagination=O.Pagination,exports.PhoneNumberInput=g.PhoneNumberInput,exports.Popover=D.Popover,exports.PopoverAnchor=D.PopoverAnchor,exports.PopoverCloseTrigger=D.PopoverCloseTrigger,exports.PopoverContent=D.PopoverContent,exports.PopoverContext=D.PopoverContext,exports.PopoverTrigger=D.PopoverTrigger,exports.PriceTag=Y.PriceTag,Object.defineProperty(exports,"ProductCardCatalog",{enumerable:!0,get:function(){return ae.styled_exports}}),exports.RadioButtonGroup=b.RadioButtonGroup,exports.RadioButtonGroupItem=b.RadioButtonGroupItem,exports.RadioButtonGroupLabel=b.RadioButtonGroupLabel,Object.defineProperty(exports,"RadioCardGroup",{enumerable:!0,get:function(){return N.namespace_exports}}),exports.RadioGroup=x.RadioGroup,exports.RadioGroupItem=x.RadioGroupItem,exports.RadioGroupLabel=x.RadioGroupLabel,exports.Renderer=m.Renderer,exports.Root=m.Root,exports.SUPPLIER_RATING_MAX=q.SUPPLIER_RATING_MAX,exports.Select=p.Select,exports.SelectLanguage=te.SelectLanguage,exports.SkeletonBlock=Z.SkeletonBlock,exports.StatusTagSelect=j.StatusTagSelect,exports.SupplierRatingBadge=J.SupplierRatingBadge,exports.SupplierRatingBreakdown=q.SupplierRatingBreakdown,exports.Switch=l.Switch,Object.defineProperty(exports,"SwitchCard",{enumerable:!0,get:function(){return M.namespace_exports}}),exports.Table=T.Table,exports.TableContainer=T.TableContainer,exports.TableEmptyRow=T.TableEmptyRow,exports.TableGroupTitle=T.TableGroupTitle,exports.Tabs=f.Tabs,exports.TabsChip=f.TabsChip,exports.TabsContent=f.TabsContent,exports.TabsList=f.TabsList,exports.TabsTrigger=f.TabsTrigger,exports.Tag=y.Tag,exports.Tbody=T.Tbody,exports.Td=T.Td,exports.Text=u.Text,exports.Textarea=d.Textarea,exports.Th=T.Th,exports.Thead=T.Thead,exports.Tooltip=a.Tooltip,exports.Tr=T.Tr,Object.defineProperty(exports,"createListCollection",{enumerable:!0,get:function(){return Q.createListCollection}}),Object.defineProperty(exports,"createToaster",{enumerable:!0,get:function(){return Q.createToaster}}),exports.formatOverall=q.formatOverall,Object.defineProperty(exports,"formatPhoneNumber",{enumerable:!0,get:function(){return $.formatPhoneNumber}}),Object.defineProperty(exports,"formatPhoneNumberIntl",{enumerable:!0,get:function(){return $.formatPhoneNumberIntl}}),exports.formatResponseDelay=q.formatResponseDelay,Object.defineProperty(exports,"getCountries",{enumerable:!0,get:function(){return $.getCountries}}),Object.defineProperty(exports,"getCountryCallingCode",{enumerable:!0,get:function(){return $.getCountryCallingCode}}),exports.getHeadlineColor=q.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}}),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=fe.preset,Object.defineProperty(exports,"useAccordion",{enumerable:!0,get:function(){return Q.useAccordion}});
|
|
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"),ee=require("./components/form/FormControl.cjs"),a=require("./components/tooltip/Tooltip.cjs"),o=require("./components/form/FormLabel.cjs"),s=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/select/Select.cjs"),te=require("./components/select-language/SelectLanguage.cjs"),ne=require("./components/input/Input.cjs"),m=require("./components/input/HighlightedInput.cjs"),re=require("./components/input/InputAddon.cjs"),h=require("./components/input/InputGroup.cjs"),g=require("./components/input/PhoneNumberInput.cjs"),_=require("./components/box/Box.cjs"),v=require("./components/date-picker/DatePicker.cjs"),y=require("./components/tag/Tag.cjs"),b=require("./components/radio-button-group/RadioButtonGroup.cjs"),x=require("./components/radio-group/RadioGroup.cjs"),S=require("./components/chip/Chip.cjs"),C=require("./components/action-card/ActionCard.cjs"),w=require("./components/alert/Alert.cjs"),T=require("./components/table/Table.cjs"),E=require("./components/breadcrumb/Breadcrumb.cjs"),D=require("./components/popover/Popover.cjs"),O=require("./components/pagination/Pagination.cjs"),k=require("./components/illustration/Illustration.cjs"),A=require("./components/button-filter/ButtonFilter.cjs"),j=require("./components/status-tag-select/StatusTagSelect.cjs"),M=require("./components/switch-card/namespace.cjs"),N=require("./components/radio-card-group/namespace.cjs"),P=require("./components/checkbox-card/namespace.cjs"),F=require("./components/combobox/Combobox.cjs"),I=require("./components/icon/Icon.cjs"),L=require("./components/collapsible/styled.cjs"),ie=require("./components/dialog/styled.cjs"),R=require("./components/avatar/styled.cjs"),z=require("./components/menu/Menu.cjs"),B=require("./components/flag/styled.cjs"),V=require("./components/origin-select/OriginSelect.cjs"),H=require("./components/chat/ChatMessage.cjs"),U=require("./components/chat/ChatDocumentMessage.cjs"),W=require("./components/chat/ChatProfileAvatar.cjs"),G=require("./components/chat/Chat.cjs"),K=require("./components/chat/ChatScoreBreakdown.cjs"),q=require("./components/chat/ChatTextInput.cjs"),J=require("./components/supplier-rating-badge/SupplierRatingBreakdown.cjs"),Y=require("./components/supplier-rating-badge/SupplierRatingBadge.cjs"),ae=require("./components/app/price-tag/PriceTag.cjs"),oe=require("./components/app/product-card-catalog/styled.cjs"),se=require("./components/app/navigation/AppNavigation.cjs"),ce=require("./components/app/navigation/language-select/AppNavigationLanguageSelect.cjs"),le=require("./components/app/mobile-navigation/MobileNavigation.cjs"),X=require("./components/app/mobile-card/MobileCardShell.cjs"),ue=require("./components/app/mobile-card/MobileCardHeader.cjs"),de=require("./components/app/mobile-card/MobileCardNotificationBadge.cjs"),fe=require("./components/app/mobile-card/MobileCardEntityRow.cjs"),Z=require("./components/app/mobile-card/MobileCardSkeleton.cjs"),pe=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=C.ActionCard,exports.ActionCardDescription=C.ActionCardDescription,exports.ActionCardTitle=C.ActionCardTitle,exports.Alert=w.Alert,Object.defineProperty(exports,"AppNavigation",{enumerable:!0,get:function(){return se.AppNavigation_exports}}),exports.AppNavigationLanguageSelect=ce.AppNavigationLanguageSelect,Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return R.styled_exports}}),exports.Box=_.Box,exports.Breadcrumb=E.Breadcrumb,exports.BreadcrumbItem=E.BreadcrumbItem,exports.BreadcrumbLink=E.BreadcrumbLink,exports.Button=t.Button,exports.ButtonFilter=A.ButtonFilter,Object.defineProperty(exports,"Chat",{enumerable:!0,get:function(){return G.Chat_exports}}),exports.ChatDocumentMessage=U.ChatDocumentMessage,exports.ChatMessage=H.ChatMessage,exports.ChatProfileAvatar=W.ChatProfileAvatar,exports.ChatScoreBreakdown=K.ChatScoreBreakdown,exports.ChatTextInput=q.ChatTextInput,exports.Checkbox=n.Checkbox,Object.defineProperty(exports,"CheckboxCard",{enumerable:!0,get:function(){return P.namespace_exports}}),exports.CheckboxGroup=n.CheckboxGroup,exports.Chip=S.Chip,exports.ChipAvatar=S.ChipAvatar,exports.ChipClearTrigger=S.ChipClearTrigger,exports.ChipLabel=S.ChipLabel,Object.defineProperty(exports,"Collapsible",{enumerable:!0,get:function(){return L.styled_exports}}),exports.Combobox=F.Combobox,exports.DEFAULT_SUPPLIER_RATING_LABELS=J.DEFAULT_SUPPLIER_RATING_LABELS,exports.DatePicker=v.DatePicker,Object.defineProperty(exports,"Dialog",{enumerable:!0,get:function(){return ie.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=B.Flag,exports.FlagCountryCodes=B.FlagCountryCodes,exports.FormControl=ee.FormControl,exports.FormHelperText=s.FormHelperText,exports.FormLabel=o.FormLabel,exports.Heading=c.Heading,exports.Highlight=m.Highlight,exports.HighlightedInput=m.HighlightedInput,exports.Icon=I.Icon,exports.IconButton=r.IconButton,exports.Illustration=k.Illustration,exports.Input=ne.Input,exports.InputAddon=re.InputAddon,exports.InputGroup=h.InputGroup,exports.InputSlot=m.InputSlot,Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return z.Menu_exports}}),exports.MobileCardEntityRow=fe.MobileCardEntityRow,exports.MobileCardHeader=ue.MobileCardHeader,exports.MobileCardNotificationBadge=de.MobileCardNotificationBadge,exports.MobileCardShell=X.MobileCardShell,exports.MobileCardSkeleton=Z.MobileCardSkeleton,exports.MobileCardSkeletonList=Z.MobileCardSkeletonList,Object.defineProperty(exports,"MobileNavigation",{enumerable:!0,get:function(){return le.MobileNavigation_exports}}),exports.OriginSelect=V.OriginSelect,exports.Pagination=O.Pagination,exports.PhoneNumberInput=g.PhoneNumberInput,exports.Popover=D.Popover,exports.PopoverAnchor=D.PopoverAnchor,exports.PopoverCloseTrigger=D.PopoverCloseTrigger,exports.PopoverContent=D.PopoverContent,exports.PopoverContext=D.PopoverContext,exports.PopoverTrigger=D.PopoverTrigger,exports.PriceTag=ae.PriceTag,Object.defineProperty(exports,"ProductCardCatalog",{enumerable:!0,get:function(){return oe.styled_exports}}),exports.RadioButtonGroup=b.RadioButtonGroup,exports.RadioButtonGroupItem=b.RadioButtonGroupItem,exports.RadioButtonGroupLabel=b.RadioButtonGroupLabel,Object.defineProperty(exports,"RadioCardGroup",{enumerable:!0,get:function(){return N.namespace_exports}}),exports.RadioGroup=x.RadioGroup,exports.RadioGroupItem=x.RadioGroupItem,exports.RadioGroupLabel=x.RadioGroupLabel,exports.Renderer=m.Renderer,exports.Root=m.Root,exports.SUPPLIER_RATING_MAX=J.SUPPLIER_RATING_MAX,exports.Select=p.Select,exports.SelectLanguage=te.SelectLanguage,exports.SkeletonBlock=Z.SkeletonBlock,exports.StatusTagSelect=j.StatusTagSelect,exports.SupplierRatingBadge=Y.SupplierRatingBadge,exports.SupplierRatingBreakdown=J.SupplierRatingBreakdown,exports.Switch=l.Switch,Object.defineProperty(exports,"SwitchCard",{enumerable:!0,get:function(){return M.namespace_exports}}),exports.Table=T.Table,exports.TableContainer=T.TableContainer,exports.TableEmptyRow=T.TableEmptyRow,exports.TableGroupTitle=T.TableGroupTitle,exports.Tabs=f.Tabs,exports.TabsChip=f.TabsChip,exports.TabsContent=f.TabsContent,exports.TabsList=f.TabsList,exports.TabsTrigger=f.TabsTrigger,exports.Tag=y.Tag,exports.Tbody=T.Tbody,exports.Td=T.Td,exports.Text=u.Text,exports.Textarea=d.Textarea,exports.Th=T.Th,exports.Thead=T.Thead,exports.Tooltip=a.Tooltip,exports.Tr=T.Tr,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}}),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=pe.preset,Object.defineProperty(exports,"useAccordion",{enumerable:!0,get:function(){return Q.useAccordion}});
|
package/dist/index.js
CHANGED
|
@@ -46,25 +46,26 @@ import { styled_exports as Pe } from "./components/dialog/styled.js";
|
|
|
46
46
|
import { styled_exports as Fe } from "./components/avatar/styled.js";
|
|
47
47
|
import { Menu_exports as Ie } from "./components/menu/Menu.js";
|
|
48
48
|
import { Flag as Le, FlagCountryCodes as Re } from "./components/flag/styled.js";
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
|
|
49
|
+
import { OriginSelect as ze } from "./components/origin-select/OriginSelect.js";
|
|
50
|
+
import { ChatMessage as Be } from "./components/chat/ChatMessage.js";
|
|
51
|
+
import { ChatDocumentMessage as Ve } from "./components/chat/ChatDocumentMessage.js";
|
|
52
|
+
import { ChatProfileAvatar as He } from "./components/chat/ChatProfileAvatar.js";
|
|
53
|
+
import { Chat_exports as Ue } from "./components/chat/Chat.js";
|
|
54
|
+
import { ChatScoreBreakdown as We } from "./components/chat/ChatScoreBreakdown.js";
|
|
55
|
+
import { ChatTextInput as Ge } from "./components/chat/ChatTextInput.js";
|
|
56
|
+
import { DEFAULT_SUPPLIER_RATING_LABELS as Ke, SUPPLIER_RATING_MAX as qe, SupplierRatingBreakdown as Je, formatOverall as Ye, formatResponseDelay as Xe, getHeadlineColor as Ze } from "./components/supplier-rating-badge/SupplierRatingBreakdown.js";
|
|
57
|
+
import { SupplierRatingBadge as Qe } from "./components/supplier-rating-badge/SupplierRatingBadge.js";
|
|
58
|
+
import { PriceTag as $e } from "./components/app/price-tag/PriceTag.js";
|
|
59
|
+
import { styled_exports as et } from "./components/app/product-card-catalog/styled.js";
|
|
60
|
+
import { AppNavigation_exports as tt } from "./components/app/navigation/AppNavigation.js";
|
|
61
|
+
import { AppNavigationLanguageSelect as nt } from "./components/app/navigation/language-select/AppNavigationLanguageSelect.js";
|
|
62
|
+
import { MobileNavigation_exports as rt } from "./components/app/mobile-navigation/MobileNavigation.js";
|
|
63
|
+
import { MobileCardShell as it } from "./components/app/mobile-card/MobileCardShell.js";
|
|
64
|
+
import { MobileCardHeader as at } from "./components/app/mobile-card/MobileCardHeader.js";
|
|
65
|
+
import { MobileCardNotificationBadge as ot } from "./components/app/mobile-card/MobileCardNotificationBadge.js";
|
|
66
|
+
import { MobileCardEntityRow as st } from "./components/app/mobile-card/MobileCardEntityRow.js";
|
|
67
|
+
import { MobileCardSkeleton as ct, MobileCardSkeletonList as lt, SkeletonBlock as ut } from "./components/app/mobile-card/MobileCardSkeleton.js";
|
|
68
|
+
import { preset as dt } from "./preset.js";
|
|
69
|
+
import { createListCollection as ft, createToaster as pt, parseColor as mt, parseDate as ht } from "@ark-ui/react";
|
|
70
|
+
import { formatPhoneNumber as gt, formatPhoneNumberIntl as _t, getCountries as vt, getCountryCallingCode as yt, isPossiblePhoneNumber as bt, isSupportedCountry as xt, isValidPhoneNumber as St, parsePhoneNumber as Ct } from "react-phone-number-input";
|
|
71
|
+
export { e as Accordion, t as AccordionItem, n as AccordionItemContent, r as AccordionItemIndicator, i as AccordionItemTrigger, ne as ActionCard, re as ActionCardDescription, ie as ActionCardTitle, ae as Alert, tt as AppNavigation, nt as AppNavigationLanguageSelect, Fe as Avatar, U as Box, he as Breadcrumb, ge as BreadcrumbItem, _e as BreadcrumbLink, o as Button, Ee as ButtonFilter, Ue as Chat, Ve as ChatDocumentMessage, Be as ChatMessage, He as ChatProfileAvatar, We as ChatScoreBreakdown, Ge as ChatTextInput, s as Checkbox, Ae as CheckboxCard, c as CheckboxGroup, Q as Chip, $ as ChipAvatar, ee as ChipClearTrigger, te as ChipLabel, Ne as Collapsible, je as Combobox, Ke as DEFAULT_SUPPLIER_RATING_LABELS, W as DatePicker, Pe as Dialog, u as Drawer, d as DrawerBody, f as DrawerCloseTrigger, p as DrawerContent, m as DrawerContext, h as DrawerFooter, g as DrawerHeader, _ as DrawerTitle, v as DrawerTrigger, Le as Flag, Re as FlagCountryCodes, y as FormControl, S as FormHelperText, x as FormLabel, C as Heading, F as Highlight, I as HighlightedInput, Me as Icon, l as IconButton, Te as Illustration, P as Input, B as InputAddon, V as InputGroup, L as InputSlot, Ie as Menu, st as MobileCardEntityRow, at as MobileCardHeader, ot as MobileCardNotificationBadge, it as MobileCardShell, ct as MobileCardSkeleton, lt as MobileCardSkeletonList, rt as MobileNavigation, ze as OriginSelect, we as Pagination, H as PhoneNumberInput, ve as Popover, ye as PopoverAnchor, be as PopoverCloseTrigger, xe as PopoverContent, Se as PopoverContext, Ce as PopoverTrigger, $e as PriceTag, et as ProductCardCatalog, K as RadioButtonGroup, q as RadioButtonGroupItem, J as RadioButtonGroupLabel, ke as RadioCardGroup, Y as RadioGroup, X as RadioGroupItem, Z as RadioGroupLabel, R as Renderer, z as Root, qe as SUPPLIER_RATING_MAX, M as Select, N as SelectLanguage, ut as SkeletonBlock, De as StatusTagSelect, Qe as SupplierRatingBadge, Je as SupplierRatingBreakdown, w as Switch, Oe as SwitchCard, oe as Table, se as TableContainer, ce as TableEmptyRow, le as TableGroupTitle, D as Tabs, O as TabsChip, k as TabsContent, A as TabsList, j as TabsTrigger, G as Tag, ue as Tbody, de as Td, T as Text, E as Textarea, fe as Th, pe as Thead, b as Tooltip, me as Tr, ft as createListCollection, pt as createToaster, Ye as formatOverall, gt as formatPhoneNumber, _t as formatPhoneNumberIntl, Xe as formatResponseDelay, vt as getCountries, yt as getCountryCallingCode, Ze as getHeadlineColor, bt as isPossiblePhoneNumber, xt as isSupportedCountry, St as isValidPhoneNumber, mt as parseColor, ht as parseDate, Ct as parsePhoneNumber, dt as preset, a as useAccordion };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";let e=require("@ark-ui/react");var t=(0,require("@pandacss/dev").defineSlotRecipe)({base:{control:{fontFamily:`satoshi`,position:`relative`,'&:has(> [data-part="trigger"][hidden])':{'& > [data-part="clear-trigger"]':{right:`space-16!`}},_disabled:{cursor:`not-allowed`}},content:{fontFamily:`satoshi`,background:`background`,borderWidth:1,borderColor:`primary.500`,borderStyle:`solid`,borderTopStyle:`none`,borderBottomLeftRadius:`radius-8`,borderBottomRightRadius:`radius-8`,display:`flex`,flexDirection:`column`,outline:0,zIndex:`modal`,maxHeight:`180px`,overflow:`auto`},clearTrigger:{position:`absolute`,cursor:`pointer`,right:`space-48`,top:`10px`,color:`secondary.900`,_disabled:{color:`grey.300`,pointerEvents:`none`}},trigger:{position:`absolute`,cursor:`pointer`,right:`space-16`,top:`9px`,color:{base:`secondary.900`,_disabled:`grey.300`},_disabled:{_focus:{border:`none`},pointerEvents:`none`,userSelect:`none`,cursor:`not-allowed`}},item:{_disabled:{cursor:`not-allowed`},alignItems:`center`,background:{_disabled:{_hover:`grey.100!`,_selected:`grey.50!`,_checked:`grey.50!`,base:`grey.100!`},_selected:`primary.500`,_checked:`primary.500`,_highlighted:`primary.200`,_hover:`primary.200`,base:`background`},color:{_disabled:{_hover:`grey.300!`,_selected:`grey.300!`,_checked:`grey.300!`,base:`grey.300!`},_selected:`white`,_checked:`white`},cursor:`pointer`,display:`flex`,gap:`space-4`,transitionDuration:`fast`,transitionProperty:`background, color`,transitionTimingFunction:`default`,"& p":{color:`inherit!`}},itemGroupLabel:{textStyle:`body.sm`},root:{display:`flex`,flexDirection:`column`,gap:`space-4`,width:`full`,_disabled:{cursor:`not-allowed`}},input:{_disabled:{pointerEvents:`none`},_placeholderShown:{color:{base:`grey.400`,_disabled:`grey.300`}},_open:{border:`1px solid {colors.primary.500}`,_open:{borderBottomLeftRadius:`radius-0!`,borderBottomRightRadius:`radius-0!`}},alignItems:`center`,borderBottomColor:{_open:`grey.100`},paddingRight:{base:`space-60!`,'&[value]:not([value=""])':`90px!`},position:`relative
|
|
1
|
+
"use client";let e=require("@ark-ui/react");var t=(0,require("@pandacss/dev").defineSlotRecipe)({base:{control:{fontFamily:`satoshi`,position:`relative`,'&:has(> [data-part="trigger"][hidden])':{'& > [data-part="clear-trigger"]':{right:`space-16!`}},_disabled:{cursor:`not-allowed`},'&[data-multiple="true"]':{display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`space-4`,minHeight:`40px`,paddingBlock:`space-4`,paddingLeft:`space-8`,paddingRight:`space-48`,border:`1px solid {colors.grey.100}`,borderRadius:`radius-8`,cursor:`text`,transitionProperty:`border-color`,transitionDuration:`normal`,_focusWithin:{borderColor:`primary.500`}},'&[data-multiple="true"][data-open]':{borderColor:`primary.500`,borderBottomColor:`grey.100`,borderBottomLeftRadius:`radius-0`,borderBottomRightRadius:`radius-0`}},content:{fontFamily:`satoshi`,background:`background`,borderWidth:1,borderColor:`primary.500`,borderStyle:`solid`,borderTopStyle:`none`,borderBottomLeftRadius:`radius-8`,borderBottomRightRadius:`radius-8`,display:`flex`,flexDirection:`column`,outline:0,zIndex:`modal`,maxHeight:`180px`,overflow:`auto`},clearTrigger:{position:`absolute`,cursor:`pointer`,right:`space-48`,top:`10px`,color:`secondary.900`,_disabled:{color:`grey.300`,pointerEvents:`none`}},trigger:{position:`absolute`,cursor:`pointer`,right:`space-16`,top:`9px`,color:{base:`secondary.900`,_disabled:`grey.300`},_disabled:{_focus:{border:`none`},pointerEvents:`none`,userSelect:`none`,cursor:`not-allowed`}},item:{_disabled:{cursor:`not-allowed`},alignItems:`center`,background:{_disabled:{_hover:`grey.100!`,_selected:`grey.50!`,_checked:`grey.50!`,base:`grey.100!`},_selected:`primary.500`,_checked:`primary.500`,_highlighted:`primary.200`,_hover:`primary.200`,base:`background`},color:{_disabled:{_hover:`grey.300!`,_selected:`grey.300!`,_checked:`grey.300!`,base:`grey.300!`},_selected:`white`,_checked:`white`},cursor:`pointer`,display:`flex`,gap:`space-4`,transitionDuration:`fast`,transitionProperty:`background, color`,transitionTimingFunction:`default`,"& p":{color:`inherit!`}},itemGroupLabel:{textStyle:`body.sm`},root:{display:`flex`,flexDirection:`column`,gap:`space-4`,width:`full`,_disabled:{cursor:`not-allowed`}},input:{_disabled:{pointerEvents:`none`},_placeholderShown:{color:{base:`grey.400`,_disabled:`grey.300`}},_open:{border:`1px solid {colors.primary.500}`,_open:{borderBottomLeftRadius:`radius-0!`,borderBottomRightRadius:`radius-0!`}},alignItems:`center`,borderBottomColor:{_open:`grey.100`},paddingRight:{base:`space-60!`,'&[value]:not([value=""])':`90px!`},position:`relative`,'&[data-multiple="true"]':{border:`none!`,background:`transparent`,minHeight:`auto!`,height:`auto`,width:`auto!`,minWidth:`90px`,flex:`1 1 90px`,paddingBlock:`space-2!`,paddingLeft:`space-0!`,paddingRight:`space-0!`,_open:{border:`none!`}}}},className:`combobox`,defaultVariants:{size:`md`},jsx:[`Combobox`],slots:e.comboboxAnatomy.keys(),variants:{hideClearTrigger:{true:{input:{paddingRight:{base:`space-60!`,'&[value]:not([value=""])':`space-60!`}},clearTrigger:{display:`none`}}},size:{md:{item:{px:`space-16`,py:`space-8`,textStyle:`body.md`},input:{gap:`space-8`,minH:`40px`,minW:`size-16`,py:`space-8`,px:`space-16`,textStyle:`body.md`}}}}});exports.comboboxRecipe=t;
|
|
2
2
|
//# sourceMappingURL=combobox.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.cjs","names":[],"sources":["../../../src/theme/recipes/combobox.ts"],"sourcesContent":["import { comboboxAnatomy } from '@ark-ui/react'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\nexport const comboboxRecipe = defineSlotRecipe({\n base: {\n control: {\n fontFamily: 'satoshi',\n position: 'relative',\n '&:has(> [data-part=\"trigger\"][hidden])': {\n '& > [data-part=\"clear-trigger\"]': {\n right: 'space-16!',\n },\n },\n _disabled: {\n cursor: 'not-allowed',\n },\n },\n content: {\n fontFamily: 'satoshi',\n background: 'background',\n borderWidth: 1,\n borderColor: 'primary.500',\n borderStyle: 'solid',\n borderTopStyle: 'none',\n borderBottomLeftRadius: 'radius-8',\n borderBottomRightRadius: 'radius-8',\n display: 'flex',\n flexDirection: 'column',\n outline: 0,\n zIndex: 'modal',\n maxHeight: '180px',\n overflow: 'auto',\n },\n clearTrigger: {\n position: 'absolute',\n cursor: 'pointer',\n right: 'space-48',\n top: '10px',\n color: 'secondary.900',\n _disabled: {\n color: 'grey.300',\n pointerEvents: 'none',\n },\n },\n trigger: {\n position: 'absolute',\n cursor: 'pointer',\n right: 'space-16',\n top: '9px',\n color: {\n base: 'secondary.900',\n _disabled: 'grey.300',\n },\n _disabled: {\n _focus: {\n border: 'none',\n },\n pointerEvents: 'none',\n userSelect: 'none',\n cursor: 'not-allowed',\n },\n },\n item: {\n _disabled: {\n cursor: 'not-allowed',\n },\n alignItems: 'center',\n background: {\n _disabled: {\n _hover: 'grey.100!',\n _selected: 'grey.50!',\n _checked: 'grey.50!',\n base: 'grey.100!',\n },\n _selected: 'primary.500',\n _checked: 'primary.500',\n _highlighted: 'primary.200',\n _hover: 'primary.200',\n base: 'background',\n },\n color: {\n _disabled: {\n _hover: 'grey.300!',\n _selected: 'grey.300!',\n _checked: 'grey.300!',\n base: 'grey.300!',\n },\n _selected: 'white',\n _checked: 'white',\n },\n cursor: 'pointer',\n display: 'flex',\n gap: 'space-4',\n transitionDuration: 'fast',\n transitionProperty: 'background, color',\n transitionTimingFunction: 'default',\n '& p': {\n color: 'inherit!',\n },\n },\n itemGroupLabel: {\n textStyle: 'body.sm',\n },\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: 'space-4',\n width: 'full',\n _disabled: {\n cursor: 'not-allowed',\n },\n },\n input: {\n _disabled: {\n pointerEvents: 'none',\n },\n _placeholderShown: {\n color: {\n base: 'grey.400',\n _disabled: 'grey.300',\n },\n },\n _open: {\n border: '1px solid {colors.primary.500}',\n _open: {\n borderBottomLeftRadius: 'radius-0!',\n borderBottomRightRadius: 'radius-0!',\n },\n },\n alignItems: 'center',\n borderBottomColor: {\n _open: 'grey.100',\n },\n paddingRight: {\n base: 'space-60!',\n '&[value]:not([value=\"\"])': '90px!',\n },\n position: 'relative',\n },\n },\n className: 'combobox',\n defaultVariants: {\n size: 'md',\n },\n jsx: ['Combobox'],\n slots: comboboxAnatomy.keys(),\n variants: {\n hideClearTrigger: {\n true: {\n input: {\n paddingRight: {\n base: 'space-60!',\n '&[value]:not([value=\"\"])': 'space-60!',\n },\n },\n clearTrigger: {\n display: 'none',\n },\n },\n },\n size: {\n md: {\n item: { px: 'space-16', py: 'space-8', textStyle: 'body.md' },\n input: {\n gap: 'space-8',\n minH: '40px',\n minW: 'size-16',\n py: 'space-8',\n px: 'space-16',\n textStyle: 'body.md',\n },\n },\n },\n },\n})\n"],"mappings":"4CAGA,IAAa,GAAA,yBAAA,EAAA,kBAAkC,CAC7C,KAAM,CACJ,QAAS,CACP,WAAY,UACZ,SAAU,WACV,yCAA0C,CACxC,kCAAmC,CACjC,MAAO,WACT,CACF,EACA,UAAW,CACT,OAAQ,aACV,CACF,EACA,QAAS,CACP,WAAY,UACZ,WAAY,aACZ,YAAa,EACb,YAAa,cACb,YAAa,QACb,eAAgB,OAChB,uBAAwB,WACxB,wBAAyB,WACzB,QAAS,OACT,cAAe,SACf,QAAS,EACT,OAAQ,QACR,UAAW,QACX,SAAU,MACZ,EACA,aAAc,CACZ,SAAU,WACV,OAAQ,UACR,MAAO,WACP,IAAK,OACL,MAAO,gBACP,UAAW,CACT,MAAO,WACP,cAAe,MACjB,CACF,EACA,QAAS,CACP,SAAU,WACV,OAAQ,UACR,MAAO,WACP,IAAK,MACL,MAAO,CACL,KAAM,gBACN,UAAW,UACb,EACA,UAAW,CACT,OAAQ,CACN,OAAQ,MACV,EACA,cAAe,OACf,WAAY,OACZ,OAAQ,aACV,CACF,EACA,KAAM,CACJ,UAAW,CACT,OAAQ,aACV,EACA,WAAY,SACZ,WAAY,CACV,UAAW,CACT,OAAQ,YACR,UAAW,WACX,SAAU,WACV,KAAM,WACR,EACA,UAAW,cACX,SAAU,cACV,aAAc,cACd,OAAQ,cACR,KAAM,YACR,EACA,MAAO,CACL,UAAW,CACT,OAAQ,YACR,UAAW,YACX,SAAU,YACV,KAAM,WACR,EACA,UAAW,QACX,SAAU,OACZ,EACA,OAAQ,UACR,QAAS,OACT,IAAK,UACL,mBAAoB,OACpB,mBAAoB,oBACpB,yBAA0B,UAC1B,MAAO,CACL,MAAO,UACT,CACF,EACA,eAAgB,CACd,UAAW,SACb,EACA,KAAM,CACJ,QAAS,OACT,cAAe,SACf,IAAK,UACL,MAAO,OACP,UAAW,CACT,OAAQ,aACV,CACF,EACA,MAAO,CACL,UAAW,CACT,cAAe,MACjB,EACA,kBAAmB,CACjB,MAAO,CACL,KAAM,WACN,UAAW,UACb,CACF,EACA,MAAO,CACL,OAAQ,iCACR,MAAO,CACL,uBAAwB,YACxB,wBAAyB,WAC3B,CACF,EACA,WAAY,SACZ,kBAAmB,CACjB,MAAO,UACT,EACA,aAAc,CACZ,KAAM,YACN,2BAA4B,OAC9B,EACA,SAAU,
|
|
1
|
+
{"version":3,"file":"combobox.cjs","names":[],"sources":["../../../src/theme/recipes/combobox.ts"],"sourcesContent":["import { comboboxAnatomy } from '@ark-ui/react'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\nexport const comboboxRecipe = defineSlotRecipe({\n base: {\n control: {\n fontFamily: 'satoshi',\n position: 'relative',\n '&:has(> [data-part=\"trigger\"][hidden])': {\n '& > [data-part=\"clear-trigger\"]': {\n right: 'space-16!',\n },\n },\n _disabled: {\n cursor: 'not-allowed',\n },\n // Tags-input layout (multiple mode): the control becomes the bordered box\n // holding the selected chips + a borderless input. Styled via a self\n // attribute (`&[data-multiple]`) — panda drops ancestor-combinator nested\n // selectors from slot recipes, but keeps `&`-first ones. Ships via the\n // recipe (inline css() does not reach consumer apps).\n '&[data-multiple=\"true\"]': {\n display: 'flex',\n alignItems: 'center',\n flexWrap: 'wrap',\n gap: 'space-4',\n minHeight: '40px',\n paddingBlock: 'space-4',\n paddingLeft: 'space-8',\n paddingRight: 'space-48',\n border: '1px solid {colors.grey.100}',\n borderRadius: 'radius-8',\n cursor: 'text',\n transitionProperty: 'border-color',\n transitionDuration: 'normal',\n _focusWithin: { borderColor: 'primary.500' },\n },\n // Flatten the bottom edge while the dropdown is open so it merges cleanly.\n '&[data-multiple=\"true\"][data-open]': {\n borderColor: 'primary.500',\n borderBottomColor: 'grey.100',\n borderBottomLeftRadius: 'radius-0',\n borderBottomRightRadius: 'radius-0',\n },\n },\n content: {\n fontFamily: 'satoshi',\n background: 'background',\n borderWidth: 1,\n borderColor: 'primary.500',\n borderStyle: 'solid',\n borderTopStyle: 'none',\n borderBottomLeftRadius: 'radius-8',\n borderBottomRightRadius: 'radius-8',\n display: 'flex',\n flexDirection: 'column',\n outline: 0,\n zIndex: 'modal',\n maxHeight: '180px',\n overflow: 'auto',\n },\n clearTrigger: {\n position: 'absolute',\n cursor: 'pointer',\n right: 'space-48',\n top: '10px',\n color: 'secondary.900',\n _disabled: {\n color: 'grey.300',\n pointerEvents: 'none',\n },\n },\n trigger: {\n position: 'absolute',\n cursor: 'pointer',\n right: 'space-16',\n top: '9px',\n color: {\n base: 'secondary.900',\n _disabled: 'grey.300',\n },\n _disabled: {\n _focus: {\n border: 'none',\n },\n pointerEvents: 'none',\n userSelect: 'none',\n cursor: 'not-allowed',\n },\n },\n item: {\n _disabled: {\n cursor: 'not-allowed',\n },\n alignItems: 'center',\n background: {\n _disabled: {\n _hover: 'grey.100!',\n _selected: 'grey.50!',\n _checked: 'grey.50!',\n base: 'grey.100!',\n },\n _selected: 'primary.500',\n _checked: 'primary.500',\n _highlighted: 'primary.200',\n _hover: 'primary.200',\n base: 'background',\n },\n color: {\n _disabled: {\n _hover: 'grey.300!',\n _selected: 'grey.300!',\n _checked: 'grey.300!',\n base: 'grey.300!',\n },\n _selected: 'white',\n _checked: 'white',\n },\n cursor: 'pointer',\n display: 'flex',\n gap: 'space-4',\n transitionDuration: 'fast',\n transitionProperty: 'background, color',\n transitionTimingFunction: 'default',\n '& p': {\n color: 'inherit!',\n },\n },\n itemGroupLabel: {\n textStyle: 'body.sm',\n },\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: 'space-4',\n width: 'full',\n _disabled: {\n cursor: 'not-allowed',\n },\n },\n input: {\n _disabled: {\n pointerEvents: 'none',\n },\n _placeholderShown: {\n color: {\n base: 'grey.400',\n _disabled: 'grey.300',\n },\n },\n _open: {\n border: '1px solid {colors.primary.500}',\n _open: {\n borderBottomLeftRadius: 'radius-0!',\n borderBottomRightRadius: 'radius-0!',\n },\n },\n alignItems: 'center',\n borderBottomColor: {\n _open: 'grey.100',\n },\n paddingRight: {\n base: 'space-60!',\n '&[value]:not([value=\"\"])': '90px!',\n },\n position: 'relative',\n // In tags-input (multiple) mode the input sits inline inside the control\n // box, so it must be borderless, auto-width and flush (! beats the base\n // important paddingRight and the _open border). Self-attribute selector so\n // panda keeps it (see the control slot note above).\n '&[data-multiple=\"true\"]': {\n border: 'none!',\n background: 'transparent',\n minHeight: 'auto!',\n height: 'auto',\n width: 'auto!',\n minWidth: '90px',\n flex: '1 1 90px',\n paddingBlock: 'space-2!',\n paddingLeft: 'space-0!',\n paddingRight: 'space-0!',\n _open: { border: 'none!' },\n },\n },\n },\n className: 'combobox',\n defaultVariants: {\n size: 'md',\n },\n jsx: ['Combobox'],\n slots: comboboxAnatomy.keys(),\n variants: {\n hideClearTrigger: {\n true: {\n input: {\n paddingRight: {\n base: 'space-60!',\n '&[value]:not([value=\"\"])': 'space-60!',\n },\n },\n clearTrigger: {\n display: 'none',\n },\n },\n },\n size: {\n md: {\n item: { px: 'space-16', py: 'space-8', textStyle: 'body.md' },\n input: {\n gap: 'space-8',\n minH: '40px',\n minW: 'size-16',\n py: 'space-8',\n px: 'space-16',\n textStyle: 'body.md',\n },\n },\n },\n },\n})\n"],"mappings":"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"}
|
|
@@ -8,7 +8,29 @@ var n = t({
|
|
|
8
8
|
fontFamily: "satoshi",
|
|
9
9
|
position: "relative",
|
|
10
10
|
"&:has(> [data-part=\"trigger\"][hidden])": { "& > [data-part=\"clear-trigger\"]": { right: "space-16!" } },
|
|
11
|
-
_disabled: { cursor: "not-allowed" }
|
|
11
|
+
_disabled: { cursor: "not-allowed" },
|
|
12
|
+
"&[data-multiple=\"true\"]": {
|
|
13
|
+
display: "flex",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
flexWrap: "wrap",
|
|
16
|
+
gap: "space-4",
|
|
17
|
+
minHeight: "40px",
|
|
18
|
+
paddingBlock: "space-4",
|
|
19
|
+
paddingLeft: "space-8",
|
|
20
|
+
paddingRight: "space-48",
|
|
21
|
+
border: "1px solid {colors.grey.100}",
|
|
22
|
+
borderRadius: "radius-8",
|
|
23
|
+
cursor: "text",
|
|
24
|
+
transitionProperty: "border-color",
|
|
25
|
+
transitionDuration: "normal",
|
|
26
|
+
_focusWithin: { borderColor: "primary.500" }
|
|
27
|
+
},
|
|
28
|
+
"&[data-multiple=\"true\"][data-open]": {
|
|
29
|
+
borderColor: "primary.500",
|
|
30
|
+
borderBottomColor: "grey.100",
|
|
31
|
+
borderBottomLeftRadius: "radius-0",
|
|
32
|
+
borderBottomRightRadius: "radius-0"
|
|
33
|
+
}
|
|
12
34
|
},
|
|
13
35
|
content: {
|
|
14
36
|
fontFamily: "satoshi",
|
|
@@ -114,7 +136,20 @@ var n = t({
|
|
|
114
136
|
base: "space-60!",
|
|
115
137
|
"&[value]:not([value=\"\"])": "90px!"
|
|
116
138
|
},
|
|
117
|
-
position: "relative"
|
|
139
|
+
position: "relative",
|
|
140
|
+
"&[data-multiple=\"true\"]": {
|
|
141
|
+
border: "none!",
|
|
142
|
+
background: "transparent",
|
|
143
|
+
minHeight: "auto!",
|
|
144
|
+
height: "auto",
|
|
145
|
+
width: "auto!",
|
|
146
|
+
minWidth: "90px",
|
|
147
|
+
flex: "1 1 90px",
|
|
148
|
+
paddingBlock: "space-2!",
|
|
149
|
+
paddingLeft: "space-0!",
|
|
150
|
+
paddingRight: "space-0!",
|
|
151
|
+
_open: { border: "none!" }
|
|
152
|
+
}
|
|
118
153
|
}
|
|
119
154
|
},
|
|
120
155
|
className: "combobox",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.js","names":[],"sources":["../../../src/theme/recipes/combobox.ts"],"sourcesContent":["import { comboboxAnatomy } from '@ark-ui/react'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\nexport const comboboxRecipe = defineSlotRecipe({\n base: {\n control: {\n fontFamily: 'satoshi',\n position: 'relative',\n '&:has(> [data-part=\"trigger\"][hidden])': {\n '& > [data-part=\"clear-trigger\"]': {\n right: 'space-16!',\n },\n },\n _disabled: {\n cursor: 'not-allowed',\n },\n },\n content: {\n fontFamily: 'satoshi',\n background: 'background',\n borderWidth: 1,\n borderColor: 'primary.500',\n borderStyle: 'solid',\n borderTopStyle: 'none',\n borderBottomLeftRadius: 'radius-8',\n borderBottomRightRadius: 'radius-8',\n display: 'flex',\n flexDirection: 'column',\n outline: 0,\n zIndex: 'modal',\n maxHeight: '180px',\n overflow: 'auto',\n },\n clearTrigger: {\n position: 'absolute',\n cursor: 'pointer',\n right: 'space-48',\n top: '10px',\n color: 'secondary.900',\n _disabled: {\n color: 'grey.300',\n pointerEvents: 'none',\n },\n },\n trigger: {\n position: 'absolute',\n cursor: 'pointer',\n right: 'space-16',\n top: '9px',\n color: {\n base: 'secondary.900',\n _disabled: 'grey.300',\n },\n _disabled: {\n _focus: {\n border: 'none',\n },\n pointerEvents: 'none',\n userSelect: 'none',\n cursor: 'not-allowed',\n },\n },\n item: {\n _disabled: {\n cursor: 'not-allowed',\n },\n alignItems: 'center',\n background: {\n _disabled: {\n _hover: 'grey.100!',\n _selected: 'grey.50!',\n _checked: 'grey.50!',\n base: 'grey.100!',\n },\n _selected: 'primary.500',\n _checked: 'primary.500',\n _highlighted: 'primary.200',\n _hover: 'primary.200',\n base: 'background',\n },\n color: {\n _disabled: {\n _hover: 'grey.300!',\n _selected: 'grey.300!',\n _checked: 'grey.300!',\n base: 'grey.300!',\n },\n _selected: 'white',\n _checked: 'white',\n },\n cursor: 'pointer',\n display: 'flex',\n gap: 'space-4',\n transitionDuration: 'fast',\n transitionProperty: 'background, color',\n transitionTimingFunction: 'default',\n '& p': {\n color: 'inherit!',\n },\n },\n itemGroupLabel: {\n textStyle: 'body.sm',\n },\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: 'space-4',\n width: 'full',\n _disabled: {\n cursor: 'not-allowed',\n },\n },\n input: {\n _disabled: {\n pointerEvents: 'none',\n },\n _placeholderShown: {\n color: {\n base: 'grey.400',\n _disabled: 'grey.300',\n },\n },\n _open: {\n border: '1px solid {colors.primary.500}',\n _open: {\n borderBottomLeftRadius: 'radius-0!',\n borderBottomRightRadius: 'radius-0!',\n },\n },\n alignItems: 'center',\n borderBottomColor: {\n _open: 'grey.100',\n },\n paddingRight: {\n base: 'space-60!',\n '&[value]:not([value=\"\"])': '90px!',\n },\n position: 'relative',\n },\n },\n className: 'combobox',\n defaultVariants: {\n size: 'md',\n },\n jsx: ['Combobox'],\n slots: comboboxAnatomy.keys(),\n variants: {\n hideClearTrigger: {\n true: {\n input: {\n paddingRight: {\n base: 'space-60!',\n '&[value]:not([value=\"\"])': 'space-60!',\n },\n },\n clearTrigger: {\n display: 'none',\n },\n },\n },\n size: {\n md: {\n item: { px: 'space-16', py: 'space-8', textStyle: 'body.md' },\n input: {\n gap: 'space-8',\n minH: '40px',\n minW: 'size-16',\n py: 'space-8',\n px: 'space-16',\n textStyle: 'body.md',\n },\n },\n },\n },\n})\n"],"mappings":";;;;AAGA,IAAa,IAAiB,EAAiB;CAC7C,MAAM;EACJ,SAAS;GACP,YAAY;GACZ,UAAU;GACV,4CAA0C,EACxC,qCAAmC,EACjC,OAAO,YACT,EACF;GACA,WAAW,EACT,QAAQ,cACV;EACF;EACA,SAAS;GACP,YAAY;GACZ,YAAY;GACZ,aAAa;GACb,aAAa;GACb,aAAa;GACb,gBAAgB;GAChB,wBAAwB;GACxB,yBAAyB;GACzB,SAAS;GACT,eAAe;GACf,SAAS;GACT,QAAQ;GACR,WAAW;GACX,UAAU;EACZ;EACA,cAAc;GACZ,UAAU;GACV,QAAQ;GACR,OAAO;GACP,KAAK;GACL,OAAO;GACP,WAAW;IACT,OAAO;IACP,eAAe;GACjB;EACF;EACA,SAAS;GACP,UAAU;GACV,QAAQ;GACR,OAAO;GACP,KAAK;GACL,OAAO;IACL,MAAM;IACN,WAAW;GACb;GACA,WAAW;IACT,QAAQ,EACN,QAAQ,OACV;IACA,eAAe;IACf,YAAY;IACZ,QAAQ;GACV;EACF;EACA,MAAM;GACJ,WAAW,EACT,QAAQ,cACV;GACA,YAAY;GACZ,YAAY;IACV,WAAW;KACT,QAAQ;KACR,WAAW;KACX,UAAU;KACV,MAAM;IACR;IACA,WAAW;IACX,UAAU;IACV,cAAc;IACd,QAAQ;IACR,MAAM;GACR;GACA,OAAO;IACL,WAAW;KACT,QAAQ;KACR,WAAW;KACX,UAAU;KACV,MAAM;IACR;IACA,WAAW;IACX,UAAU;GACZ;GACA,QAAQ;GACR,SAAS;GACT,KAAK;GACL,oBAAoB;GACpB,oBAAoB;GACpB,0BAA0B;GAC1B,OAAO,EACL,OAAO,WACT;EACF;EACA,gBAAgB,EACd,WAAW,UACb;EACA,MAAM;GACJ,SAAS;GACT,eAAe;GACf,KAAK;GACL,OAAO;GACP,WAAW,EACT,QAAQ,cACV;EACF;EACA,OAAO;GACL,WAAW,EACT,eAAe,OACjB;GACA,mBAAmB,EACjB,OAAO;IACL,MAAM;IACN,WAAW;GACb,EACF;GACA,OAAO;IACL,QAAQ;IACR,OAAO;KACL,wBAAwB;KACxB,yBAAyB;IAC3B;GACF;GACA,YAAY;GACZ,mBAAmB,EACjB,OAAO,WACT;GACA,cAAc;IACZ,MAAM;IACN,8BAA4B;GAC9B;GACA,UAAU;
|
|
1
|
+
{"version":3,"file":"combobox.js","names":[],"sources":["../../../src/theme/recipes/combobox.ts"],"sourcesContent":["import { comboboxAnatomy } from '@ark-ui/react'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\nexport const comboboxRecipe = defineSlotRecipe({\n base: {\n control: {\n fontFamily: 'satoshi',\n position: 'relative',\n '&:has(> [data-part=\"trigger\"][hidden])': {\n '& > [data-part=\"clear-trigger\"]': {\n right: 'space-16!',\n },\n },\n _disabled: {\n cursor: 'not-allowed',\n },\n // Tags-input layout (multiple mode): the control becomes the bordered box\n // holding the selected chips + a borderless input. Styled via a self\n // attribute (`&[data-multiple]`) — panda drops ancestor-combinator nested\n // selectors from slot recipes, but keeps `&`-first ones. Ships via the\n // recipe (inline css() does not reach consumer apps).\n '&[data-multiple=\"true\"]': {\n display: 'flex',\n alignItems: 'center',\n flexWrap: 'wrap',\n gap: 'space-4',\n minHeight: '40px',\n paddingBlock: 'space-4',\n paddingLeft: 'space-8',\n paddingRight: 'space-48',\n border: '1px solid {colors.grey.100}',\n borderRadius: 'radius-8',\n cursor: 'text',\n transitionProperty: 'border-color',\n transitionDuration: 'normal',\n _focusWithin: { borderColor: 'primary.500' },\n },\n // Flatten the bottom edge while the dropdown is open so it merges cleanly.\n '&[data-multiple=\"true\"][data-open]': {\n borderColor: 'primary.500',\n borderBottomColor: 'grey.100',\n borderBottomLeftRadius: 'radius-0',\n borderBottomRightRadius: 'radius-0',\n },\n },\n content: {\n fontFamily: 'satoshi',\n background: 'background',\n borderWidth: 1,\n borderColor: 'primary.500',\n borderStyle: 'solid',\n borderTopStyle: 'none',\n borderBottomLeftRadius: 'radius-8',\n borderBottomRightRadius: 'radius-8',\n display: 'flex',\n flexDirection: 'column',\n outline: 0,\n zIndex: 'modal',\n maxHeight: '180px',\n overflow: 'auto',\n },\n clearTrigger: {\n position: 'absolute',\n cursor: 'pointer',\n right: 'space-48',\n top: '10px',\n color: 'secondary.900',\n _disabled: {\n color: 'grey.300',\n pointerEvents: 'none',\n },\n },\n trigger: {\n position: 'absolute',\n cursor: 'pointer',\n right: 'space-16',\n top: '9px',\n color: {\n base: 'secondary.900',\n _disabled: 'grey.300',\n },\n _disabled: {\n _focus: {\n border: 'none',\n },\n pointerEvents: 'none',\n userSelect: 'none',\n cursor: 'not-allowed',\n },\n },\n item: {\n _disabled: {\n cursor: 'not-allowed',\n },\n alignItems: 'center',\n background: {\n _disabled: {\n _hover: 'grey.100!',\n _selected: 'grey.50!',\n _checked: 'grey.50!',\n base: 'grey.100!',\n },\n _selected: 'primary.500',\n _checked: 'primary.500',\n _highlighted: 'primary.200',\n _hover: 'primary.200',\n base: 'background',\n },\n color: {\n _disabled: {\n _hover: 'grey.300!',\n _selected: 'grey.300!',\n _checked: 'grey.300!',\n base: 'grey.300!',\n },\n _selected: 'white',\n _checked: 'white',\n },\n cursor: 'pointer',\n display: 'flex',\n gap: 'space-4',\n transitionDuration: 'fast',\n transitionProperty: 'background, color',\n transitionTimingFunction: 'default',\n '& p': {\n color: 'inherit!',\n },\n },\n itemGroupLabel: {\n textStyle: 'body.sm',\n },\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: 'space-4',\n width: 'full',\n _disabled: {\n cursor: 'not-allowed',\n },\n },\n input: {\n _disabled: {\n pointerEvents: 'none',\n },\n _placeholderShown: {\n color: {\n base: 'grey.400',\n _disabled: 'grey.300',\n },\n },\n _open: {\n border: '1px solid {colors.primary.500}',\n _open: {\n borderBottomLeftRadius: 'radius-0!',\n borderBottomRightRadius: 'radius-0!',\n },\n },\n alignItems: 'center',\n borderBottomColor: {\n _open: 'grey.100',\n },\n paddingRight: {\n base: 'space-60!',\n '&[value]:not([value=\"\"])': '90px!',\n },\n position: 'relative',\n // In tags-input (multiple) mode the input sits inline inside the control\n // box, so it must be borderless, auto-width and flush (! beats the base\n // important paddingRight and the _open border). Self-attribute selector so\n // panda keeps it (see the control slot note above).\n '&[data-multiple=\"true\"]': {\n border: 'none!',\n background: 'transparent',\n minHeight: 'auto!',\n height: 'auto',\n width: 'auto!',\n minWidth: '90px',\n flex: '1 1 90px',\n paddingBlock: 'space-2!',\n paddingLeft: 'space-0!',\n paddingRight: 'space-0!',\n _open: { border: 'none!' },\n },\n },\n },\n className: 'combobox',\n defaultVariants: {\n size: 'md',\n },\n jsx: ['Combobox'],\n slots: comboboxAnatomy.keys(),\n variants: {\n hideClearTrigger: {\n true: {\n input: {\n paddingRight: {\n base: 'space-60!',\n '&[value]:not([value=\"\"])': 'space-60!',\n },\n },\n clearTrigger: {\n display: 'none',\n },\n },\n },\n size: {\n md: {\n item: { px: 'space-16', py: 'space-8', textStyle: 'body.md' },\n input: {\n gap: 'space-8',\n minH: '40px',\n minW: 'size-16',\n py: 'space-8',\n px: 'space-16',\n textStyle: 'body.md',\n },\n },\n },\n },\n})\n"],"mappings":"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"}
|