@stokelp/ui 2.117.1 → 2.118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/combobox/Combobox.cjs +1 -1
- package/dist/components/combobox/Combobox.cjs.map +1 -1
- package/dist/components/combobox/Combobox.js +16 -17
- package/dist/components/combobox/Combobox.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/steps/Steps.cjs +2 -0
- package/dist/components/steps/Steps.cjs.map +1 -0
- package/dist/components/steps/Steps.d.ts +26 -0
- package/dist/components/steps/Steps.js +11 -0
- package/dist/components/steps/Steps.js.map +1 -0
- package/dist/components/steps/index.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +56 -55
- package/dist/theme/recipes/combobox.cjs +1 -1
- package/dist/theme/recipes/combobox.cjs.map +1 -1
- package/dist/theme/recipes/combobox.js +2 -1
- package/dist/theme/recipes/combobox.js.map +1 -1
- package/dist/theme/recipes/index.cjs +1 -1
- package/dist/theme/recipes/index.cjs.map +1 -1
- package/dist/theme/recipes/index.d.ts +1 -0
- package/dist/theme/recipes/index.js +101 -99
- package/dist/theme/recipes/index.js.map +1 -1
- package/dist/theme/recipes/steps.cjs +2 -0
- package/dist/theme/recipes/steps.cjs.map +1 -0
- package/dist/theme/recipes/steps.d.ts +2 -0
- package/dist/theme/recipes/steps.js +100 -0
- package/dist/theme/recipes/steps.js.map +1 -0
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/theme/recipes/index.ts"],"sourcesContent":["import { buttonRecipe } from './button'\nimport { headingRecipe } from './heading'\nimport { switchRecipe } from './switch'\nimport { textRecipe } from './text'\nimport { textareaRecipe } from './textarea'\nimport { formControlRecipe } from './form/control'\nimport { formHelperTextRecipe } from './form/helper-text'\nimport { drawerRecipe } from './drawer'\nimport { accordionRecipe } from './accordion'\nimport { formLabelRecipe } from './form/label'\nimport { checkboxRecipe } from './checkbox'\nimport { tabsRecipe } from './tabs'\nimport { selectRecipe } from './select'\nimport { inputRecipe } from './input'\nimport { highlightedInputRecipe } from './highlightedInput'\nimport { inputAddonRecipe } from './input-addon'\nimport { inputGroupRecipe } from './input-group'\nimport { datepickerRecipe } from './datepicker'\nimport { tagRecipe } from './tag'\nimport { radioButtonGroupRecipe } from './radio-button-group'\nimport { radioGroupRecipe } from './radio-group'\nimport { chipRecipe } from './chip'\nimport { actionCardRecipe } from './action-card'\nimport { iconButtonRecipe } from './icon-button'\nimport { tooltipRecipe } from './tooltip'\nimport { alertRecipe } from './alert'\nimport { tableRecipe } from './table'\nimport { tableGroupTitleRecipe } from './table-group-title'\nimport { tableEmptyRowRecipe } from './table-empty-row'\nimport { tableContainerRecipe } from './table-container'\nimport { breadcrumbRecipe } from './breadcrumb'\nimport { popoverRecipe } from './popover'\nimport { paginationRecipe } from './pagination'\nimport { statusTagSelectRecipe } from './status-tag-select'\nimport { productCardCatalogRecipe } from './app/product-card-catalog'\nimport { illustrationRecipe } from './illustration'\nimport { buttonFilterRecipe } from './button-filter'\nimport { switchCardRecipe } from './switch-card'\nimport { radioCardGroupRecipe } from './radio-card-group'\nimport { checkboxCardRecipe } from './checkbox-card'\nimport { comboboxRecipe } from './combobox'\nimport { phoneNumberInputRecipe } from './phone-number-input'\nimport { iconRecipe } from './icon'\nimport { collapsibleRecipe } from './collapsible'\nimport { appNavigationRecipe } from './app/navigation'\nimport { mobileNavigationRecipe } from './app/mobile-navigation'\nimport { appNavigationLanguageSelectRecipe } from './app/navigation-language-select'\nimport { dialogRecipe } from './dialog'\nimport { selectLanguageRecipe } from './select-language'\nimport { avatarRecipe } from './avatar'\nimport { menuRecipe } from './menu'\nimport { avatarGroupRecipe } from './avatar-group'\nimport { flagRecipe } from './flag'\nimport { priceTagRecipe } from './app/price-tag'\nimport { tabsChipRecipe } from './tabs-chip'\nimport { checkboxGroupRecipe } from '~/theme/recipes/checkbox-group'\nimport { chatMessageRecipe } from '~/theme/recipes/chat/chat-message.ts'\nimport { chatDocumentMessageRecipe } from '~/theme/recipes/chat/chat-document-message.ts'\nimport { chatRecipe } from '~/theme/recipes/chat/chat.ts'\nimport { chatProfileAvatarRecipe } from '~/theme/recipes/chat/chat-profile-avatar.ts'\nimport { chatTextInputRecipe } from '~/theme/recipes/chat/chat-input-text.ts'\n\nexport const recipes = {\n button: buttonRecipe,\n iconButton: iconButtonRecipe,\n heading: headingRecipe,\n switchRecipe,\n text: textRecipe,\n textarea: textareaRecipe,\n formControl: formControlRecipe,\n formHelperText: formHelperTextRecipe,\n input: inputRecipe,\n inputAddon: inputAddonRecipe,\n inputGroup: inputGroupRecipe,\n tableGroupTitle: tableGroupTitleRecipe,\n tableEmptyRow: tableEmptyRowRecipe,\n tableContainer: tableContainerRecipe,\n illustration: illustrationRecipe,\n buttonFilter: buttonFilterRecipe,\n phoneNumberInput: phoneNumberInputRecipe,\n icon: iconRecipe,\n flag: flagRecipe,\n avatarGroup: avatarGroupRecipe,\n tabsChip: tabsChipRecipe,\n checkboxGroup: checkboxGroupRecipe,\n chatMessage: chatMessageRecipe,\n chatTextInput: chatTextInputRecipe,\n chatDocumentMessage: chatDocumentMessageRecipe,\n chatProfileAvatar: chatProfileAvatarRecipe,\n}\n\nexport const slotRecipes = {\n drawer: drawerRecipe,\n radioButtonGroup: radioButtonGroupRecipe,\n radioGroup: radioGroupRecipe,\n accordion: accordionRecipe,\n formLabel: formLabelRecipe,\n checkbox: checkboxRecipe,\n datepicker: datepickerRecipe,\n tabs: tabsRecipe,\n tag: tagRecipe,\n statusTagSelect: statusTagSelectRecipe,\n select: selectRecipe,\n selectLanguage: selectLanguageRecipe,\n chip: chipRecipe,\n actionCard: actionCardRecipe,\n tooltip: tooltipRecipe,\n alert: alertRecipe,\n table: tableRecipe,\n breadcrumb: breadcrumbRecipe,\n popover: popoverRecipe,\n pagination: paginationRecipe,\n productCardCatalog: productCardCatalogRecipe,\n switchCard: switchCardRecipe,\n radioCardGroup: radioCardGroupRecipe,\n checkboxCard: checkboxCardRecipe,\n combobox: comboboxRecipe,\n collapsible: collapsibleRecipe,\n appNavigation: appNavigationRecipe,\n mobileNavigation: mobileNavigationRecipe,\n dialog: dialogRecipe,\n appNavigationLanguageSelect: appNavigationLanguageSelectRecipe,\n avatar: avatarRecipe,\n menu: menuRecipe,\n priceTag: priceTagRecipe,\n chat: chatRecipe,\n highlightedInput: highlightedInputRecipe,\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/theme/recipes/index.ts"],"sourcesContent":["import { buttonRecipe } from './button'\nimport { headingRecipe } from './heading'\nimport { switchRecipe } from './switch'\nimport { textRecipe } from './text'\nimport { textareaRecipe } from './textarea'\nimport { formControlRecipe } from './form/control'\nimport { formHelperTextRecipe } from './form/helper-text'\nimport { drawerRecipe } from './drawer'\nimport { accordionRecipe } from './accordion'\nimport { formLabelRecipe } from './form/label'\nimport { checkboxRecipe } from './checkbox'\nimport { tabsRecipe } from './tabs'\nimport { stepsRecipe } from './steps'\nimport { selectRecipe } from './select'\nimport { inputRecipe } from './input'\nimport { highlightedInputRecipe } from './highlightedInput'\nimport { inputAddonRecipe } from './input-addon'\nimport { inputGroupRecipe } from './input-group'\nimport { datepickerRecipe } from './datepicker'\nimport { tagRecipe } from './tag'\nimport { radioButtonGroupRecipe } from './radio-button-group'\nimport { radioGroupRecipe } from './radio-group'\nimport { chipRecipe } from './chip'\nimport { actionCardRecipe } from './action-card'\nimport { iconButtonRecipe } from './icon-button'\nimport { tooltipRecipe } from './tooltip'\nimport { alertRecipe } from './alert'\nimport { tableRecipe } from './table'\nimport { tableGroupTitleRecipe } from './table-group-title'\nimport { tableEmptyRowRecipe } from './table-empty-row'\nimport { tableContainerRecipe } from './table-container'\nimport { breadcrumbRecipe } from './breadcrumb'\nimport { popoverRecipe } from './popover'\nimport { paginationRecipe } from './pagination'\nimport { statusTagSelectRecipe } from './status-tag-select'\nimport { productCardCatalogRecipe } from './app/product-card-catalog'\nimport { illustrationRecipe } from './illustration'\nimport { buttonFilterRecipe } from './button-filter'\nimport { switchCardRecipe } from './switch-card'\nimport { radioCardGroupRecipe } from './radio-card-group'\nimport { checkboxCardRecipe } from './checkbox-card'\nimport { comboboxRecipe } from './combobox'\nimport { phoneNumberInputRecipe } from './phone-number-input'\nimport { iconRecipe } from './icon'\nimport { collapsibleRecipe } from './collapsible'\nimport { appNavigationRecipe } from './app/navigation'\nimport { mobileNavigationRecipe } from './app/mobile-navigation'\nimport { appNavigationLanguageSelectRecipe } from './app/navigation-language-select'\nimport { dialogRecipe } from './dialog'\nimport { selectLanguageRecipe } from './select-language'\nimport { avatarRecipe } from './avatar'\nimport { menuRecipe } from './menu'\nimport { avatarGroupRecipe } from './avatar-group'\nimport { flagRecipe } from './flag'\nimport { priceTagRecipe } from './app/price-tag'\nimport { tabsChipRecipe } from './tabs-chip'\nimport { checkboxGroupRecipe } from '~/theme/recipes/checkbox-group'\nimport { chatMessageRecipe } from '~/theme/recipes/chat/chat-message.ts'\nimport { chatDocumentMessageRecipe } from '~/theme/recipes/chat/chat-document-message.ts'\nimport { chatRecipe } from '~/theme/recipes/chat/chat.ts'\nimport { chatProfileAvatarRecipe } from '~/theme/recipes/chat/chat-profile-avatar.ts'\nimport { chatTextInputRecipe } from '~/theme/recipes/chat/chat-input-text.ts'\n\nexport const recipes = {\n button: buttonRecipe,\n iconButton: iconButtonRecipe,\n heading: headingRecipe,\n switchRecipe,\n text: textRecipe,\n textarea: textareaRecipe,\n formControl: formControlRecipe,\n formHelperText: formHelperTextRecipe,\n input: inputRecipe,\n inputAddon: inputAddonRecipe,\n inputGroup: inputGroupRecipe,\n tableGroupTitle: tableGroupTitleRecipe,\n tableEmptyRow: tableEmptyRowRecipe,\n tableContainer: tableContainerRecipe,\n illustration: illustrationRecipe,\n buttonFilter: buttonFilterRecipe,\n phoneNumberInput: phoneNumberInputRecipe,\n icon: iconRecipe,\n flag: flagRecipe,\n avatarGroup: avatarGroupRecipe,\n tabsChip: tabsChipRecipe,\n checkboxGroup: checkboxGroupRecipe,\n chatMessage: chatMessageRecipe,\n chatTextInput: chatTextInputRecipe,\n chatDocumentMessage: chatDocumentMessageRecipe,\n chatProfileAvatar: chatProfileAvatarRecipe,\n}\n\nexport const slotRecipes = {\n drawer: drawerRecipe,\n radioButtonGroup: radioButtonGroupRecipe,\n radioGroup: radioGroupRecipe,\n accordion: accordionRecipe,\n formLabel: formLabelRecipe,\n checkbox: checkboxRecipe,\n datepicker: datepickerRecipe,\n tabs: tabsRecipe,\n steps: stepsRecipe,\n tag: tagRecipe,\n statusTagSelect: statusTagSelectRecipe,\n select: selectRecipe,\n selectLanguage: selectLanguageRecipe,\n chip: chipRecipe,\n actionCard: actionCardRecipe,\n tooltip: tooltipRecipe,\n alert: alertRecipe,\n table: tableRecipe,\n breadcrumb: breadcrumbRecipe,\n popover: popoverRecipe,\n pagination: paginationRecipe,\n productCardCatalog: productCardCatalogRecipe,\n switchCard: switchCardRecipe,\n radioCardGroup: radioCardGroupRecipe,\n checkboxCard: checkboxCardRecipe,\n combobox: comboboxRecipe,\n collapsible: collapsibleRecipe,\n appNavigation: appNavigationRecipe,\n mobileNavigation: mobileNavigationRecipe,\n dialog: dialogRecipe,\n appNavigationLanguageSelect: appNavigationLanguageSelectRecipe,\n avatar: avatarRecipe,\n menu: menuRecipe,\n priceTag: priceTagRecipe,\n chat: chatRecipe,\n highlightedInput: highlightedInputRecipe,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DA,IAAa,KAAU;CACrB,QAAQ;CACR,YAAY;CACZ,SAAS;CACT;CACA,MAAM;CACN,UAAU;CACV,aAAa;CACb,gBAAgB;CAChB,OAAO;CACP,YAAY;CACZ,YAAY;CACZ,iBAAiB;CACjB,eAAe;CACf,gBAAgB;CAChB,cAAc;CACd,cAAc;CACd,kBAAkB;CAClB,MAAM;CACN,MAAM;CACN,aAAa;CACb,UAAU;CACV,eAAe;CACf,aAAa;CACb,eAAe;CACf,qBAAqB;CACrB,mBAAmB;AACrB,GAEa,KAAc;CACzB,QAAQ;CACR,kBAAkB;CAClB,YAAY;CACZ,WAAW;CACX,WAAW;CACX,UAAU;CACV,YAAY;CACZ,MAAM;CACN,OAAO;CACP,KAAK;CACL,iBAAiB;CACjB,QAAQ;CACR,gBAAgB;CAChB,MAAM;CACN,YAAY;CACZ,SAAS;CACT,OAAO;CACP,OAAO;CACP,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,oBAAoB;CACpB,YAAY;CACZ,gBAAgB;CAChB,cAAc;CACd,UAAU;CACV,aAAa;CACb,eAAe;CACf,kBAAkB;CAClB,QAAQ;CACR,6BAA6B;CAC7B,QAAQ;CACR,MAAM;CACN,UAAU;CACV,MAAM;CACN,kBAAkB;AACpB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";let e=require("@ark-ui/react");var t=(0,require("@pandacss/dev").defineSlotRecipe)({className:`steps`,slots:[...e.stepsAnatomy.keys()],base:{root:{display:`flex`,flexDirection:`column`,width:`100%`,fontFamily:`satoshi`},list:{display:`flex`,alignItems:`flex-start`,justifyContent:`center`,gap:`space-8`,width:`100%`},item:{display:`flex`,alignItems:`flex-start`,flex:`1 1 0`,gap:`space-8`,cursor:`default`,'&:last-of-type [data-part="separator"]':{display:`none`}},trigger:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:`space-8`,flexShrink:`0`,cursor:`default`,color:`grey.500`,textStyle:`body.sm`,textAlign:`center`,maxWidth:`128px`,transitionProperty:`color`,transitionDuration:`normal`,transitionTimingFunction:`default`,"&[data-complete]":{color:`grey.700`},"&[data-current]":{color:`primary.700`,fontWeight:`bold`}},indicator:{display:`grid`,placeItems:`center`,width:`36px`,height:`36px`,borderRadius:`full`,fontSize:`14px`,fontWeight:`bold`,flexShrink:`0`,color:`grey.500`,backgroundColor:`white`,borderWidth:`1.5px`,borderStyle:`solid`,borderColor:`grey.200`,transitionProperty:`background, color, box-shadow, border-color`,transitionDuration:`normal`,transitionTimingFunction:`default`,"& svg":{width:`18px`,height:`18px`},"&[data-complete]":{backgroundColor:`success.100`,borderColor:`success.500`,color:`success.500`},"&[data-current]":{backgroundColor:`primary.500`,borderColor:`primary.500`,color:`white`,boxShadow:`0 0 0 4px {colors.primary.100}`}},separator:{height:`2px`,flex:`1 1 auto`,minWidth:`16px`,marginTop:`17px`,borderRadius:`full`,backgroundColor:`grey.200`,transitionProperty:`background-color`,transitionDuration:`normal`,"&[data-complete]":{backgroundColor:`success.500`}},content:{outline:`none`}}});exports.stepsRecipe=t;
|
|
2
|
+
//# sourceMappingURL=steps.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.cjs","names":[],"sources":["../../../src/theme/recipes/steps.ts"],"sourcesContent":["import { stepsAnatomy } from '@ark-ui/react'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\n// Ark sets data-complete / data-current / data-incomplete on the trigger, indicator and\n// separator parts (NOT on the item), so each slot is styled via its own state attributes.\nexport const stepsRecipe = defineSlotRecipe({\n className: 'steps',\n slots: [...stepsAnatomy.keys()],\n base: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n fontFamily: 'satoshi',\n },\n list: {\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'center',\n gap: 'space-8',\n width: '100%',\n },\n item: {\n display: 'flex',\n alignItems: 'flex-start',\n flex: '1 1 0',\n gap: 'space-8',\n cursor: 'default',\n // last step has no trailing connector\n '&:last-of-type [data-part=\"separator\"]': { display: 'none' },\n },\n trigger: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: 'space-8',\n flexShrink: '0',\n cursor: 'default',\n color: 'grey.500',\n textStyle: 'body.sm',\n textAlign: 'center',\n maxWidth: '128px',\n transitionProperty: 'color',\n transitionDuration: 'normal',\n transitionTimingFunction: 'default',\n '&[data-complete]': { color: 'grey.700' },\n '&[data-current]': { color: 'primary.700', fontWeight: 'bold' },\n },\n indicator: {\n display: 'grid',\n placeItems: 'center',\n width: '36px',\n height: '36px',\n borderRadius: 'full',\n fontSize: '14px',\n fontWeight: 'bold',\n flexShrink: '0',\n color: 'grey.500',\n backgroundColor: 'white',\n borderWidth: '1.5px',\n borderStyle: 'solid',\n borderColor: 'grey.200',\n transitionProperty: 'background, color, box-shadow, border-color',\n transitionDuration: 'normal',\n transitionTimingFunction: 'default',\n '& svg': { width: '18px', height: '18px' },\n // completed (validated) step — green to read as \"done\"\n '&[data-complete]': {\n backgroundColor: 'success.100',\n borderColor: 'success.500',\n color: 'success.500',\n },\n // current step — filled brand purple with a soft glow ring\n '&[data-current]': {\n backgroundColor: 'primary.500',\n borderColor: 'primary.500',\n color: 'white',\n boxShadow: '0 0 0 4px {colors.primary.100}',\n },\n },\n separator: {\n height: '2px',\n flex: '1 1 auto',\n minWidth: '16px',\n marginTop: '17px',\n borderRadius: 'full',\n backgroundColor: 'grey.200',\n transitionProperty: 'background-color',\n transitionDuration: 'normal',\n '&[data-complete]': { backgroundColor: 'success.500' },\n },\n content: {\n outline: 'none',\n },\n },\n})\n"],"mappings":"4CAKA,IAAa,GAAA,yBAAA,EAAA,kBAA+B,CAC1C,UAAW,QACX,MAAO,CAAC,GAAG,EAAA,aAAa,KAAK,CAAC,EAC9B,KAAM,CACJ,KAAM,CACJ,QAAS,OACT,cAAe,SACf,MAAO,OACP,WAAY,SACd,EACA,KAAM,CACJ,QAAS,OACT,WAAY,aACZ,eAAgB,SAChB,IAAK,UACL,MAAO,MACT,EACA,KAAM,CACJ,QAAS,OACT,WAAY,aACZ,KAAM,QACN,IAAK,UACL,OAAQ,UAER,yCAA0C,CAAE,QAAS,MAAO,CAC9D,EACA,QAAS,CACP,QAAS,OACT,cAAe,SACf,WAAY,SACZ,IAAK,UACL,WAAY,IACZ,OAAQ,UACR,MAAO,WACP,UAAW,UACX,UAAW,SACX,SAAU,QACV,mBAAoB,QACpB,mBAAoB,SACpB,yBAA0B,UAC1B,mBAAoB,CAAE,MAAO,UAAW,EACxC,kBAAmB,CAAE,MAAO,cAAe,WAAY,MAAO,CAChE,EACA,UAAW,CACT,QAAS,OACT,WAAY,SACZ,MAAO,OACP,OAAQ,OACR,aAAc,OACd,SAAU,OACV,WAAY,OACZ,WAAY,IACZ,MAAO,WACP,gBAAiB,QACjB,YAAa,QACb,YAAa,QACb,YAAa,WACb,mBAAoB,8CACpB,mBAAoB,SACpB,yBAA0B,UAC1B,QAAS,CAAE,MAAO,OAAQ,OAAQ,MAAO,EAEzC,mBAAoB,CAClB,gBAAiB,cACjB,YAAa,cACb,MAAO,aACT,EAEA,kBAAmB,CACjB,gBAAiB,cACjB,YAAa,cACb,MAAO,QACP,UAAW,gCACb,CACF,EACA,UAAW,CACT,OAAQ,MACR,KAAM,WACN,SAAU,OACV,UAAW,OACX,aAAc,OACd,gBAAiB,WACjB,mBAAoB,mBACpB,mBAAoB,SACpB,mBAAoB,CAAE,gBAAiB,aAAc,CACvD,EACA,QAAS,CACP,QAAS,MACX,CACF,CACF,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { stepsAnatomy as e } from "@ark-ui/react";
|
|
3
|
+
import { defineSlotRecipe as t } from "@pandacss/dev";
|
|
4
|
+
//#region src/theme/recipes/steps.ts
|
|
5
|
+
var n = t({
|
|
6
|
+
className: "steps",
|
|
7
|
+
slots: [...e.keys()],
|
|
8
|
+
base: {
|
|
9
|
+
root: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexDirection: "column",
|
|
12
|
+
width: "100%",
|
|
13
|
+
fontFamily: "satoshi"
|
|
14
|
+
},
|
|
15
|
+
list: {
|
|
16
|
+
display: "flex",
|
|
17
|
+
alignItems: "flex-start",
|
|
18
|
+
justifyContent: "center",
|
|
19
|
+
gap: "space-8",
|
|
20
|
+
width: "100%"
|
|
21
|
+
},
|
|
22
|
+
item: {
|
|
23
|
+
display: "flex",
|
|
24
|
+
alignItems: "flex-start",
|
|
25
|
+
flex: "1 1 0",
|
|
26
|
+
gap: "space-8",
|
|
27
|
+
cursor: "default",
|
|
28
|
+
"&:last-of-type [data-part=\"separator\"]": { display: "none" }
|
|
29
|
+
},
|
|
30
|
+
trigger: {
|
|
31
|
+
display: "flex",
|
|
32
|
+
flexDirection: "column",
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
gap: "space-8",
|
|
35
|
+
flexShrink: "0",
|
|
36
|
+
cursor: "default",
|
|
37
|
+
color: "grey.500",
|
|
38
|
+
textStyle: "body.sm",
|
|
39
|
+
textAlign: "center",
|
|
40
|
+
maxWidth: "128px",
|
|
41
|
+
transitionProperty: "color",
|
|
42
|
+
transitionDuration: "normal",
|
|
43
|
+
transitionTimingFunction: "default",
|
|
44
|
+
"&[data-complete]": { color: "grey.700" },
|
|
45
|
+
"&[data-current]": {
|
|
46
|
+
color: "primary.700",
|
|
47
|
+
fontWeight: "bold"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
indicator: {
|
|
51
|
+
display: "grid",
|
|
52
|
+
placeItems: "center",
|
|
53
|
+
width: "36px",
|
|
54
|
+
height: "36px",
|
|
55
|
+
borderRadius: "full",
|
|
56
|
+
fontSize: "14px",
|
|
57
|
+
fontWeight: "bold",
|
|
58
|
+
flexShrink: "0",
|
|
59
|
+
color: "grey.500",
|
|
60
|
+
backgroundColor: "white",
|
|
61
|
+
borderWidth: "1.5px",
|
|
62
|
+
borderStyle: "solid",
|
|
63
|
+
borderColor: "grey.200",
|
|
64
|
+
transitionProperty: "background, color, box-shadow, border-color",
|
|
65
|
+
transitionDuration: "normal",
|
|
66
|
+
transitionTimingFunction: "default",
|
|
67
|
+
"& svg": {
|
|
68
|
+
width: "18px",
|
|
69
|
+
height: "18px"
|
|
70
|
+
},
|
|
71
|
+
"&[data-complete]": {
|
|
72
|
+
backgroundColor: "success.100",
|
|
73
|
+
borderColor: "success.500",
|
|
74
|
+
color: "success.500"
|
|
75
|
+
},
|
|
76
|
+
"&[data-current]": {
|
|
77
|
+
backgroundColor: "primary.500",
|
|
78
|
+
borderColor: "primary.500",
|
|
79
|
+
color: "white",
|
|
80
|
+
boxShadow: "0 0 0 4px {colors.primary.100}"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
separator: {
|
|
84
|
+
height: "2px",
|
|
85
|
+
flex: "1 1 auto",
|
|
86
|
+
minWidth: "16px",
|
|
87
|
+
marginTop: "17px",
|
|
88
|
+
borderRadius: "full",
|
|
89
|
+
backgroundColor: "grey.200",
|
|
90
|
+
transitionProperty: "background-color",
|
|
91
|
+
transitionDuration: "normal",
|
|
92
|
+
"&[data-complete]": { backgroundColor: "success.500" }
|
|
93
|
+
},
|
|
94
|
+
content: { outline: "none" }
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
//#endregion
|
|
98
|
+
export { n as stepsRecipe };
|
|
99
|
+
|
|
100
|
+
//# sourceMappingURL=steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.js","names":[],"sources":["../../../src/theme/recipes/steps.ts"],"sourcesContent":["import { stepsAnatomy } from '@ark-ui/react'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\n// Ark sets data-complete / data-current / data-incomplete on the trigger, indicator and\n// separator parts (NOT on the item), so each slot is styled via its own state attributes.\nexport const stepsRecipe = defineSlotRecipe({\n className: 'steps',\n slots: [...stepsAnatomy.keys()],\n base: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n fontFamily: 'satoshi',\n },\n list: {\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'center',\n gap: 'space-8',\n width: '100%',\n },\n item: {\n display: 'flex',\n alignItems: 'flex-start',\n flex: '1 1 0',\n gap: 'space-8',\n cursor: 'default',\n // last step has no trailing connector\n '&:last-of-type [data-part=\"separator\"]': { display: 'none' },\n },\n trigger: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: 'space-8',\n flexShrink: '0',\n cursor: 'default',\n color: 'grey.500',\n textStyle: 'body.sm',\n textAlign: 'center',\n maxWidth: '128px',\n transitionProperty: 'color',\n transitionDuration: 'normal',\n transitionTimingFunction: 'default',\n '&[data-complete]': { color: 'grey.700' },\n '&[data-current]': { color: 'primary.700', fontWeight: 'bold' },\n },\n indicator: {\n display: 'grid',\n placeItems: 'center',\n width: '36px',\n height: '36px',\n borderRadius: 'full',\n fontSize: '14px',\n fontWeight: 'bold',\n flexShrink: '0',\n color: 'grey.500',\n backgroundColor: 'white',\n borderWidth: '1.5px',\n borderStyle: 'solid',\n borderColor: 'grey.200',\n transitionProperty: 'background, color, box-shadow, border-color',\n transitionDuration: 'normal',\n transitionTimingFunction: 'default',\n '& svg': { width: '18px', height: '18px' },\n // completed (validated) step — green to read as \"done\"\n '&[data-complete]': {\n backgroundColor: 'success.100',\n borderColor: 'success.500',\n color: 'success.500',\n },\n // current step — filled brand purple with a soft glow ring\n '&[data-current]': {\n backgroundColor: 'primary.500',\n borderColor: 'primary.500',\n color: 'white',\n boxShadow: '0 0 0 4px {colors.primary.100}',\n },\n },\n separator: {\n height: '2px',\n flex: '1 1 auto',\n minWidth: '16px',\n marginTop: '17px',\n borderRadius: 'full',\n backgroundColor: 'grey.200',\n transitionProperty: 'background-color',\n transitionDuration: 'normal',\n '&[data-complete]': { backgroundColor: 'success.500' },\n },\n content: {\n outline: 'none',\n },\n },\n})\n"],"mappings":";;;;AAKA,IAAa,IAAc,EAAiB;CAC1C,WAAW;CACX,OAAO,CAAC,GAAG,EAAa,KAAK,CAAC;CAC9B,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,eAAe;GACf,OAAO;GACP,YAAY;EACd;EACA,MAAM;GACJ,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,KAAK;GACL,OAAO;EACT;EACA,MAAM;GACJ,SAAS;GACT,YAAY;GACZ,MAAM;GACN,KAAK;GACL,QAAQ;GAER,4CAA0C,EAAE,SAAS,OAAO;EAC9D;EACA,SAAS;GACP,SAAS;GACT,eAAe;GACf,YAAY;GACZ,KAAK;GACL,YAAY;GACZ,QAAQ;GACR,OAAO;GACP,WAAW;GACX,WAAW;GACX,UAAU;GACV,oBAAoB;GACpB,oBAAoB;GACpB,0BAA0B;GAC1B,oBAAoB,EAAE,OAAO,WAAW;GACxC,mBAAmB;IAAE,OAAO;IAAe,YAAY;GAAO;EAChE;EACA,WAAW;GACT,SAAS;GACT,YAAY;GACZ,OAAO;GACP,QAAQ;GACR,cAAc;GACd,UAAU;GACV,YAAY;GACZ,YAAY;GACZ,OAAO;GACP,iBAAiB;GACjB,aAAa;GACb,aAAa;GACb,aAAa;GACb,oBAAoB;GACpB,oBAAoB;GACpB,0BAA0B;GAC1B,SAAS;IAAE,OAAO;IAAQ,QAAQ;GAAO;GAEzC,oBAAoB;IAClB,iBAAiB;IACjB,aAAa;IACb,OAAO;GACT;GAEA,mBAAmB;IACjB,iBAAiB;IACjB,aAAa;IACb,OAAO;IACP,WAAW;GACb;EACF;EACA,WAAW;GACT,QAAQ;GACR,MAAM;GACN,UAAU;GACV,WAAW;GACX,cAAc;GACd,iBAAiB;GACjB,oBAAoB;GACpB,oBAAoB;GACpB,oBAAoB,EAAE,iBAAiB,cAAc;EACvD;EACA,SAAS,EACP,SAAS,OACX;CACF;AACF,CAAC"}
|