@stokelp/ui 2.119.2 → 2.121.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.
Files changed (33) hide show
  1. package/dist/components/dialog/styled.cjs +1 -1
  2. package/dist/components/dialog/styled.cjs.map +1 -1
  3. package/dist/components/dialog/styled.d.ts +1 -1
  4. package/dist/components/dialog/styled.js +39 -40
  5. package/dist/components/dialog/styled.js.map +1 -1
  6. package/dist/components/drawer/Drawer.cjs +1 -1
  7. package/dist/components/drawer/Drawer.cjs.map +1 -1
  8. package/dist/components/drawer/Drawer.d.ts +1 -1
  9. package/dist/components/drawer/Drawer.js +28 -29
  10. package/dist/components/drawer/Drawer.js.map +1 -1
  11. package/dist/components/menu/Menu.d.ts +1 -1
  12. package/dist/components/popover/Popover.d.ts +1 -1
  13. package/dist/components/select/Select.cjs +1 -1
  14. package/dist/components/select/Select.cjs.map +1 -1
  15. package/dist/components/select/Select.d.ts +7 -0
  16. package/dist/components/select/Select.js +67 -52
  17. package/dist/components/select/Select.js.map +1 -1
  18. package/dist/components/tooltip/Tooltip.d.ts +1 -1
  19. package/dist/theme/recipes/dialog.cjs +1 -1
  20. package/dist/theme/recipes/dialog.cjs.map +1 -1
  21. package/dist/theme/recipes/dialog.js +1 -0
  22. package/dist/theme/recipes/dialog.js.map +1 -1
  23. package/dist/theme/recipes/tag.cjs +1 -1
  24. package/dist/theme/recipes/tag.cjs.map +1 -1
  25. package/dist/theme/recipes/tag.js +8 -0
  26. package/dist/theme/recipes/tag.js.map +1 -1
  27. package/dist/ui.css +1 -1
  28. package/package.json +2 -2
  29. package/dist/utils/overlay-lock-cleanup.cjs +0 -2
  30. package/dist/utils/overlay-lock-cleanup.cjs.map +0 -1
  31. package/dist/utils/overlay-lock-cleanup.d.ts +0 -2
  32. package/dist/utils/overlay-lock-cleanup.js +0 -38
  33. package/dist/utils/overlay-lock-cleanup.js.map +0 -1
@@ -12,6 +12,13 @@ export interface SelectItem {
12
12
  * Ignored by the virtualized list (fixed row heights).
13
13
  */
14
14
  separatorAfter?: boolean;
15
+ /**
16
+ * Heading for the group this item belongs to. Consecutive items sharing a label are
17
+ * wrapped in one labelled group, so the heading is announced by screen readers instead
18
+ * of being faked with a decorative row inside `renderItem`. Items without a label stay
19
+ * ungrouped. Ignored by the virtualized list (fixed row heights).
20
+ */
21
+ groupLabel?: string;
15
22
  }
16
23
  export type SelectProps<Item extends SelectItem> = Omit<SelectRootProps<Item>, 'collection'> & {
17
24
  items: Item[] | readonly Item[];
@@ -11,7 +11,7 @@ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
11
11
  import { css as g } from "@stokelp/styled-system/css";
12
12
  import { FixedSizeList as _ } from "react-window";
13
13
  //#region src/components/select/Select.tsx
14
- var { withProvider: v, withContext: y } = e(u), b = v(l(a.Root), "root", { defaultProps: { loopFocus: !0 } }), x = y(l(a.ClearTrigger), "clearTrigger"), S = y(l(a.Content), "content"), C = y(l(a.Control), "control"), w = y(l(a.Indicator), "indicator"), T = y(l(a.Item), "item"), E = y(l(a.ItemText), "itemText"), D = y(l(a.Positioner), "positioner"), O = y(l(a.Trigger), "trigger"), k = y(l(a.ValueText), "valueText"), A = () => /* @__PURE__ */ h("svg", {
14
+ var { withProvider: v, withContext: y } = e(u), b = v(l(a.Root), "root", { defaultProps: { loopFocus: !0 } }), x = y(l(a.ClearTrigger), "clearTrigger"), S = y(l(a.Content), "content"), C = y(l(a.Control), "control"), w = y(l(a.Indicator), "indicator"), T = y(l(a.Item), "item"), E = y(l(a.ItemGroup), "itemGroup"), D = y(l(a.ItemGroupLabel), "itemGroupLabel"), O = y(l(a.ItemText), "itemText"), k = y(l(a.Positioner), "positioner"), A = y(l(a.Trigger), "trigger"), j = y(l(a.ValueText), "valueText"), M = () => /* @__PURE__ */ h("svg", {
15
15
  width: "16",
16
16
  height: "17",
17
17
  viewBox: "0 0 16 17",
@@ -32,7 +32,7 @@ var { withProvider: v, withContext: y } = e(u), b = v(l(a.Root), "root", { defau
32
32
  rx: "3.5",
33
33
  className: g({ stroke: "grey.100" })
34
34
  })]
35
- }), j = () => /* @__PURE__ */ h("svg", {
35
+ }), N = () => /* @__PURE__ */ h("svg", {
36
36
  width: "16",
37
37
  height: "17",
38
38
  viewBox: "0 0 16 17",
@@ -51,66 +51,104 @@ var { withProvider: v, withContext: y } = e(u), b = v(l(a.Root), "root", { defau
51
51
  fill: "white"
52
52
  })]
53
53
  });
54
- function M({ placeholder: e, allSelectedLabel: t }) {
54
+ function P({ placeholder: e, allSelectedLabel: t }) {
55
55
  let n = s(), r = n.collection.items, i = n.selectedItems;
56
- return n.multiple && i.filter((e) => !e.disabled).length >= r.filter((e) => !e.disabled).length && t ? /* @__PURE__ */ m(k, {
56
+ return n.multiple && i.filter((e) => !e.disabled).length >= r.filter((e) => !e.disabled).length && t ? /* @__PURE__ */ m(j, {
57
57
  className: "custom",
58
58
  truncate: !0,
59
59
  children: t
60
- }) : /* @__PURE__ */ m(k, {
60
+ }) : /* @__PURE__ */ m(j, {
61
61
  truncate: !0,
62
62
  placeholder: e
63
63
  });
64
64
  }
65
- function N({ renderTrigger: e, placeholder: t, allSelectedLabel: n }) {
65
+ function F({ renderTrigger: e, placeholder: t, allSelectedLabel: n }) {
66
66
  let r = s(), i = r.value && r.value.length > 0 ? r.collection.findMany(r.value) : [];
67
- if (i.length === 0) return /* @__PURE__ */ m(k, {
67
+ if (i.length === 0) return /* @__PURE__ */ m(j, {
68
68
  className: "custom",
69
69
  truncate: !0,
70
70
  placeholder: t
71
71
  });
72
72
  let a = r.selectedItems;
73
- return r.multiple && a.filter((e) => !e.disabled).length >= r.collection.items.filter((e) => !e.disabled).length && n ? /* @__PURE__ */ m(k, {
73
+ return r.multiple && a.filter((e) => !e.disabled).length >= r.collection.items.filter((e) => !e.disabled).length && n ? /* @__PURE__ */ m(j, {
74
74
  className: "custom",
75
75
  truncate: !0,
76
76
  children: n
77
- }) : /* @__PURE__ */ m(k, {
77
+ }) : /* @__PURE__ */ m(j, {
78
78
  className: "custom",
79
79
  placeholder: t,
80
80
  children: i.map((t) => /* @__PURE__ */ m("span", { children: e(t) }, t.value))
81
81
  });
82
82
  }
83
- function P({ item: e, isMultiple: t, renderItem: n }) {
83
+ function I({ item: e, isMultiple: t, renderItem: n }) {
84
84
  let r = c();
85
- return /* @__PURE__ */ h(p, { children: [t ? r.selected ? /* @__PURE__ */ m(j, {}) : /* @__PURE__ */ m(A, {}) : null, n ? n(e) : /* @__PURE__ */ m(E, {
85
+ return /* @__PURE__ */ h(p, { children: [t ? r.selected ? /* @__PURE__ */ m(N, {}) : /* @__PURE__ */ m(M, {}) : null, n ? n(e) : /* @__PURE__ */ m(O, {
86
86
  truncate: !0,
87
87
  children: e.label
88
88
  })] });
89
89
  }
90
- function F({ items: e, placeholder: s, emptyLabel: c, usePortal: l = !0, positioning: u, renderItem: v, renderTrigger: y, virtualized: E, rowHeight: k = 34, ...A }) {
91
- let j = o({ items: e }), F = f(null);
90
+ function L(e) {
91
+ let t = [];
92
+ for (let n of e) {
93
+ let e = t[t.length - 1];
94
+ if (e && e.label === n.groupLabel) {
95
+ e.items.push(n);
96
+ continue;
97
+ }
98
+ t.push({
99
+ label: n.groupLabel,
100
+ items: [n]
101
+ });
102
+ }
103
+ return t;
104
+ }
105
+ function R({ items: e, placeholder: s, emptyLabel: c, usePortal: l = !0, positioning: u, renderItem: v, renderTrigger: y, virtualized: O, rowHeight: j = 34, ...M }) {
106
+ let N = o({ items: e }), R = f(null), z = (e) => /* @__PURE__ */ h(d, { children: [/* @__PURE__ */ m(r, {
107
+ when: !!e.tooltip,
108
+ wrapper: (n) => /* @__PURE__ */ m(t, {
109
+ label: e.tooltip,
110
+ children: n
111
+ }),
112
+ children: /* @__PURE__ */ m(T, {
113
+ item: e,
114
+ children: /* @__PURE__ */ m(I, {
115
+ renderItem: v,
116
+ item: e,
117
+ isMultiple: M.multiple
118
+ })
119
+ }, e.value)
120
+ }, e.value), e.separatorAfter && /* @__PURE__ */ m("div", {
121
+ role: "separator",
122
+ className: g({
123
+ height: "1px",
124
+ flexShrink: 0,
125
+ backgroundColor: "grey.100",
126
+ marginY: "space-4",
127
+ marginX: "space-8"
128
+ })
129
+ })] }, e.value);
92
130
  return /* @__PURE__ */ h(b, {
93
131
  lazyMount: !0,
94
132
  unmountOnExit: !0,
95
- collection: j,
133
+ collection: N,
96
134
  positioning: {
97
135
  sameWidth: !0,
98
136
  gutter: 0,
99
137
  ...u
100
138
  },
101
139
  "data-recipe": "select",
102
- ...A,
140
+ ...M,
103
141
  ref: (e) => {
104
- e && (F.current = e.closest("[role=\"dialog\"]"));
142
+ e && (R.current = e.closest("[role=\"dialog\"]"));
105
143
  },
106
144
  children: [
107
- /* @__PURE__ */ h(C, { children: [/* @__PURE__ */ h(O, { children: [y ? /* @__PURE__ */ m(N, {
145
+ /* @__PURE__ */ h(C, { children: [/* @__PURE__ */ h(A, { children: [y ? /* @__PURE__ */ m(F, {
108
146
  renderTrigger: y,
109
147
  placeholder: s,
110
- allSelectedLabel: A.allSelectedLabel
111
- }) : /* @__PURE__ */ m(M, {
148
+ allSelectedLabel: M.allSelectedLabel
149
+ }) : /* @__PURE__ */ m(P, {
112
150
  placeholder: s,
113
- allSelectedLabel: A.allSelectedLabel
151
+ allSelectedLabel: M.allSelectedLabel
114
152
  }), /* @__PURE__ */ m(w, {
115
153
  asChild: !0,
116
154
  children: /* @__PURE__ */ m("svg", {
@@ -127,7 +165,7 @@ function F({ items: e, placeholder: s, emptyLabel: c, usePortal: l = !0, positio
127
165
  })
128
166
  })
129
167
  })] }), /* @__PURE__ */ m(x, {
130
- disabled: A.readOnly,
168
+ disabled: M.readOnly,
131
169
  asChild: !0,
132
170
  children: /* @__PURE__ */ m("button", { children: /* @__PURE__ */ m("svg", {
133
171
  width: "20",
@@ -146,17 +184,17 @@ function F({ items: e, placeholder: s, emptyLabel: c, usePortal: l = !0, positio
146
184
  /* @__PURE__ */ m(r, {
147
185
  when: l,
148
186
  wrapper: (e) => /* @__PURE__ */ m(i, {
149
- container: F,
187
+ container: R,
150
188
  children: e
151
189
  }),
152
- children: /* @__PURE__ */ m(D, { children: /* @__PURE__ */ m(S, { children: e.length === 0 ? /* @__PURE__ */ m(n, {
190
+ children: /* @__PURE__ */ m(k, { children: /* @__PURE__ */ m(S, { children: e.length === 0 ? /* @__PURE__ */ m(n, {
153
191
  px: "space-8",
154
192
  textAlign: "center",
155
193
  children: c ?? "Aucun résultat"
156
- }) : E ? /* @__PURE__ */ m(p, { children: /* @__PURE__ */ m(_, {
157
- height: Math.min(k * e.length, 180),
194
+ }) : O ? /* @__PURE__ */ m(p, { children: /* @__PURE__ */ m(_, {
195
+ height: Math.min(j * e.length, 180),
158
196
  itemCount: e.length,
159
- itemSize: k,
197
+ itemSize: j,
160
198
  width: "100%",
161
199
  children: ({ index: n, style: i }) => /* @__PURE__ */ m(r, {
162
200
  when: !!e[n].tooltip,
@@ -167,42 +205,19 @@ function F({ items: e, placeholder: s, emptyLabel: c, usePortal: l = !0, positio
167
205
  children: /* @__PURE__ */ m(T, {
168
206
  item: e[n],
169
207
  style: i,
170
- children: /* @__PURE__ */ m(P, {
208
+ children: /* @__PURE__ */ m(I, {
171
209
  renderItem: v,
172
210
  item: e[n]
173
211
  })
174
212
  }, e[n].value)
175
213
  }, e[n].value)
176
- }) }) : e.map((e) => /* @__PURE__ */ h(d, { children: [/* @__PURE__ */ m(r, {
177
- when: !!e.tooltip,
178
- wrapper: (n) => /* @__PURE__ */ m(t, {
179
- label: e.tooltip,
180
- children: n
181
- }),
182
- children: /* @__PURE__ */ m(T, {
183
- item: e,
184
- children: /* @__PURE__ */ m(P, {
185
- renderItem: v,
186
- item: e,
187
- isMultiple: A.multiple
188
- })
189
- }, e.value)
190
- }, e.value), e.separatorAfter && /* @__PURE__ */ m("div", {
191
- role: "separator",
192
- className: g({
193
- height: "1px",
194
- flexShrink: 0,
195
- backgroundColor: "grey.100",
196
- marginY: "space-4",
197
- marginX: "space-8"
198
- })
199
- })] }, e.value)) }) })
214
+ }) }) : L(e).map((e, t) => e.label === void 0 ? /* @__PURE__ */ m(d, { children: e.items.map(z) }, `group-${t}`) : /* @__PURE__ */ h(E, { children: [/* @__PURE__ */ m(D, { children: e.label }), e.items.map(z)] }, `group-${t}`)) }) })
200
215
  }),
201
216
  /* @__PURE__ */ m(a.HiddenSelect, {})
202
217
  ]
203
218
  });
204
219
  }
205
220
  //#endregion
206
- export { F as Select };
221
+ export { R as Select };
207
222
 
208
223
  //# sourceMappingURL=Select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":[],"sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import {\n createListCollection,\n Portal,\n Select as ArkSelect,\n type SelectRootProps,\n useSelectItemContext,\n useSelectContext,\n} from '@ark-ui/react'\nimport { FC, Fragment, ReactNode, useRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nimport { select } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { Text } from '~/components/text/Text'\nimport { Tooltip } from '~/components/tooltip/Tooltip'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { FixedSizeList } from 'react-window'\nimport { css } from '@stokelp/styled-system/css'\n\nconst { withProvider, withContext } = createStyleContext(select)\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst Root = withProvider(styled(ArkSelect.Root<any>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst ClearTrigger = withContext(styled(ArkSelect.ClearTrigger), 'clearTrigger')\nconst Content = withContext(styled(ArkSelect.Content), 'content')\nconst Control = withContext(styled(ArkSelect.Control), 'control')\nconst Indicator = withContext(styled(ArkSelect.Indicator), 'indicator')\nconst Item = withContext(styled(ArkSelect.Item), 'item')\nconst ItemText = withContext(styled(ArkSelect.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkSelect.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkSelect.Trigger), 'trigger')\nconst ValueText = withContext(styled(ArkSelect.ValueText), 'valueText')\n\nexport interface SelectItem {\n value: string | number\n label: string\n tooltip?: ReactNode\n disabled?: boolean\n /**\n * Renders a thin divider line after this item, separating option groups.\n * Ignored by the virtualized list (fixed row heights).\n */\n separatorAfter?: boolean\n}\n\nexport type SelectProps<Item extends SelectItem> = Omit<SelectRootProps<Item>, 'collection'> & {\n items: Item[] | readonly Item[]\n renderItem?: (item: Item) => ReactNode\n renderTrigger?: (item: Item) => ReactNode\n emptyLabel?: string\n placeholder?: string\n allSelectedLabel?: string\n usePortal?: boolean\n virtualized?: boolean\n rowHeight?: number\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof select>\n\nconst MultipleUncheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" fill=\"white\" />\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" className={css({ stroke: 'grey.100' })} />\n </svg>\n)\n\nconst MultipleCheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect y=\"0.5\" width=\"16\" height=\"16\" rx=\"4\" className={css({ fill: 'primary.500' })} />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.958 4.81298C12.1303 4.92787 12.1769 5.16069 12.062 5.33301L7.56202 12.083C7.4997 12.1765 7.39875 12.2371 7.28695 12.2482C7.17515 12.2592 7.06428 12.2196 6.98483 12.1402L3.98483 9.14017C3.83839 8.99372 3.83839 8.75628 3.98483 8.60984C4.13128 8.46339 4.36872 8.46339 4.51517 8.60984L7.19172 11.2864L11.438 4.91699C11.5529 4.74467 11.7857 4.6981 11.958 4.81298Z\"\n fill=\"white\"\n />\n </svg>\n)\n\ninterface InnerItemProps<Item extends SelectItem> {\n item: Item\n isMultiple?: boolean\n renderItem?: (item: Item) => ReactNode\n}\n\ninterface InnerTriggerProps<Item extends SelectItem> {\n renderTrigger: (item: Item) => ReactNode\n placeholder?: string\n allSelectedLabel?: string\n}\n\ninterface DefaultInnerTriggerProps {\n placeholder?: string\n allSelectedLabel?: string\n}\n\nfunction DefaultInnerTrigger({ placeholder, allSelectedLabel }: DefaultInnerTriggerProps) {\n const context = useSelectContext()\n const items = context.collection.items\n const selectedItems = context.selectedItems\n\n if (\n context.multiple &&\n selectedItems.filter(item => !item.disabled).length >= items.filter(item => !item.disabled).length &&\n allSelectedLabel\n ) {\n return (\n <ValueText className=\"custom\" truncate>\n {allSelectedLabel}\n </ValueText>\n )\n }\n\n return <ValueText truncate placeholder={placeholder} />\n}\n\nfunction CustomInnerTrigger<Item extends SelectItem>({\n renderTrigger,\n placeholder,\n allSelectedLabel,\n}: InnerTriggerProps<Item>) {\n const context = useSelectContext()\n const items = context.value && context.value.length > 0 ? context.collection.findMany(context.value) : []\n\n if (items.length === 0) {\n return <ValueText className=\"custom\" truncate placeholder={placeholder} />\n }\n\n const selectedItems = context.selectedItems\n\n if (\n context.multiple &&\n selectedItems.filter(item => !item.disabled).length >=\n context.collection.items.filter(item => !item.disabled).length &&\n allSelectedLabel\n ) {\n return (\n <ValueText className=\"custom\" truncate>\n {allSelectedLabel}\n </ValueText>\n )\n }\n\n return (\n <ValueText className=\"custom\" placeholder={placeholder}>\n {items.map(item => (\n <span key={item.value}>{renderTrigger(item)}</span>\n ))}\n </ValueText>\n )\n}\n\nfunction CustomInnerItem<Item extends SelectItem>({ item, isMultiple, renderItem }: InnerItemProps<Item>) {\n const context = useSelectItemContext()\n\n return (\n <>\n {isMultiple ? context.selected ? <MultipleCheckedIndicator /> : <MultipleUncheckedIndicator /> : null}\n {renderItem ? renderItem(item) : <ItemText truncate>{item.label}</ItemText>}\n </>\n )\n}\n\nexport function Select<Item extends SelectItem>({\n items,\n placeholder,\n emptyLabel,\n usePortal = true,\n positioning,\n renderItem,\n renderTrigger,\n virtualized,\n rowHeight = 34,\n ...props\n}: SelectProps<Item>) {\n const collection = createListCollection({\n items,\n })\n const $dialogContent = useRef<HTMLDivElement | null>(null)\n\n return (\n <Root\n lazyMount\n unmountOnExit\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"select\"\n {...props}\n ref={(node: HTMLDivElement | null) => {\n if (node) {\n $dialogContent.current = node.closest('[role=\"dialog\"]') as HTMLDivElement | null\n }\n }}\n >\n <Control>\n <Trigger>\n {renderTrigger ? (\n <CustomInnerTrigger\n renderTrigger={renderTrigger}\n placeholder={placeholder}\n allSelectedLabel={props.allSelectedLabel}\n />\n ) : (\n <DefaultInnerTrigger placeholder={placeholder} allSelectedLabel={props.allSelectedLabel} />\n )}\n <Indicator asChild>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Indicator>\n </Trigger>\n <ClearTrigger disabled={props.readOnly} asChild>\n <button>\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z\"\n fill=\"currentColor\"\n />\n </svg>\n </button>\n </ClearTrigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal container={$dialogContent}>{children}</Portal>}>\n <Positioner>\n <Content>\n {items.length === 0 ? (\n <Text px=\"space-8\" textAlign=\"center\">\n {emptyLabel ?? 'Aucun résultat'}\n </Text>\n ) : virtualized ? (\n <>\n <FixedSizeList\n height={Math.min(rowHeight * items.length, 180)}\n itemCount={items.length}\n itemSize={rowHeight}\n width=\"100%\"\n >\n {({ index, style }) => (\n <ConditionalWrapper\n key={items[index].value}\n when={!!items[index].tooltip}\n wrapper={children => <Tooltip label={items[index].tooltip}>{children}</Tooltip>}\n >\n <Item key={items[index].value} item={items[index]} style={style}>\n <CustomInnerItem renderItem={renderItem} item={items[index]} />\n </Item>\n </ConditionalWrapper>\n )}\n </FixedSizeList>\n </>\n ) : (\n items.map((item: Item) => (\n <Fragment key={item.value}>\n <ConditionalWrapper\n key={item.value}\n when={!!item.tooltip}\n wrapper={children => <Tooltip label={item.tooltip}>{children}</Tooltip>}\n >\n <Item key={item.value} item={item}>\n <CustomInnerItem renderItem={renderItem} item={item} isMultiple={props.multiple} />\n </Item>\n </ConditionalWrapper>\n {item.separatorAfter && (\n <div\n role=\"separator\"\n className={css({\n height: '1px',\n flexShrink: 0,\n backgroundColor: 'grey.100',\n marginY: 'space-4',\n marginX: 'space-8',\n })}\n />\n )}\n </Fragment>\n ))\n )}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n <ArkSelect.HiddenSelect />\n </Root>\n )\n}\n"],"mappings":";;;;;;;;;;;;;AAqBA,IAAM,EAAE,iBAAc,mBAAgB,EAAmB,CAAM,GAGzD,IAAO,EAAa,EAAO,EAAU,IAAS,GAAG,QAAQ,EAC7D,cAAc,EACZ,WAAW,GACb,EACF,CAAC,GAEK,IAAe,EAAY,EAAO,EAAU,YAAY,GAAG,cAAc,GACzE,IAAU,EAAY,EAAO,EAAU,OAAO,GAAG,SAAS,GAC1D,IAAU,EAAY,EAAO,EAAU,OAAO,GAAG,SAAS,GAC1D,IAAY,EAAY,EAAO,EAAU,SAAS,GAAG,WAAW,GAChE,IAAO,EAAY,EAAO,EAAU,IAAI,GAAG,MAAM,GACjD,IAAW,EAAY,EAAO,EAAU,QAAQ,GAAG,UAAU,GAC7D,IAAa,EAAY,EAAO,EAAU,UAAU,GAAG,YAAY,GACnE,IAAU,EAAY,EAAO,EAAU,OAAO,GAAG,SAAS,GAC1D,IAAY,EAAY,EAAO,EAAU,SAAS,GAAG,WAAW,GA2BhE,UACJ,kBAAC,OAAD;CAAK,OAAM;CAAK,QAAO;CAAK,SAAQ;CAAY,MAAK;CAAO,OAAM;WAAlE,CACE,kBAAC,QAAD;EAAM,GAAE;EAAM,GAAE;EAAI,OAAM;EAAK,QAAO;EAAK,IAAG;EAAM,MAAK;CAAS,CAAA,GAClE,kBAAC,QAAD;EAAM,GAAE;EAAM,GAAE;EAAI,OAAM;EAAK,QAAO;EAAK,IAAG;EAAM,WAAW,EAAI,EAAE,QAAQ,WAAW,CAAC;CAAI,CAAA,CAC1F;IAGD,UACJ,kBAAC,OAAD;C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ACE,MAAK;KACL,WAAW,EAAI;MACb,QAAQ;MACR,YAAY;MACZ,iBAAiB;MACjB,SAAS;MACT,SAAS;KACX,CAAC;IACF,CAAA,CAEK,EAAA,GAtBK,EAAK,KAsBV,CACX,EAEI,CAAA,EACC,CAAA;GACM,CAAA;GACpB,kBAAC,EAAU,cAAX,CAAyB,CAAA;EACrB;;AAEV"}
1
+ {"version":3,"file":"Select.js","names":[],"sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import {\n createListCollection,\n Portal,\n Select as ArkSelect,\n type SelectRootProps,\n useSelectItemContext,\n useSelectContext,\n} from '@ark-ui/react'\nimport { FC, Fragment, ReactNode, useRef } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nimport { select } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { Text } from '~/components/text/Text'\nimport { Tooltip } from '~/components/tooltip/Tooltip'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { FixedSizeList } from 'react-window'\nimport { css } from '@stokelp/styled-system/css'\n\nconst { withProvider, withContext } = createStyleContext(select)\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst Root = withProvider(styled(ArkSelect.Root<any>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst ClearTrigger = withContext(styled(ArkSelect.ClearTrigger), 'clearTrigger')\nconst Content = withContext(styled(ArkSelect.Content), 'content')\nconst Control = withContext(styled(ArkSelect.Control), 'control')\nconst Indicator = withContext(styled(ArkSelect.Indicator), 'indicator')\nconst Item = withContext(styled(ArkSelect.Item), 'item')\nconst ItemGroup = withContext(styled(ArkSelect.ItemGroup), 'itemGroup')\nconst ItemGroupLabel = withContext(styled(ArkSelect.ItemGroupLabel), 'itemGroupLabel')\nconst ItemText = withContext(styled(ArkSelect.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkSelect.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkSelect.Trigger), 'trigger')\nconst ValueText = withContext(styled(ArkSelect.ValueText), 'valueText')\n\nexport interface SelectItem {\n value: string | number\n label: string\n tooltip?: ReactNode\n disabled?: boolean\n /**\n * Renders a thin divider line after this item, separating option groups.\n * Ignored by the virtualized list (fixed row heights).\n */\n separatorAfter?: boolean\n /**\n * Heading for the group this item belongs to. Consecutive items sharing a label are\n * wrapped in one labelled group, so the heading is announced by screen readers instead\n * of being faked with a decorative row inside `renderItem`. Items without a label stay\n * ungrouped. Ignored by the virtualized list (fixed row heights).\n */\n groupLabel?: string\n}\n\nexport type SelectProps<Item extends SelectItem> = Omit<SelectRootProps<Item>, 'collection'> & {\n items: Item[] | readonly Item[]\n renderItem?: (item: Item) => ReactNode\n renderTrigger?: (item: Item) => ReactNode\n emptyLabel?: string\n placeholder?: string\n allSelectedLabel?: string\n usePortal?: boolean\n virtualized?: boolean\n rowHeight?: number\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof select>\n\nconst MultipleUncheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" fill=\"white\" />\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" className={css({ stroke: 'grey.100' })} />\n </svg>\n)\n\nconst MultipleCheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect y=\"0.5\" width=\"16\" height=\"16\" rx=\"4\" className={css({ fill: 'primary.500' })} />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.958 4.81298C12.1303 4.92787 12.1769 5.16069 12.062 5.33301L7.56202 12.083C7.4997 12.1765 7.39875 12.2371 7.28695 12.2482C7.17515 12.2592 7.06428 12.2196 6.98483 12.1402L3.98483 9.14017C3.83839 8.99372 3.83839 8.75628 3.98483 8.60984C4.13128 8.46339 4.36872 8.46339 4.51517 8.60984L7.19172 11.2864L11.438 4.91699C11.5529 4.74467 11.7857 4.6981 11.958 4.81298Z\"\n fill=\"white\"\n />\n </svg>\n)\n\ninterface InnerItemProps<Item extends SelectItem> {\n item: Item\n isMultiple?: boolean\n renderItem?: (item: Item) => ReactNode\n}\n\ninterface InnerTriggerProps<Item extends SelectItem> {\n renderTrigger: (item: Item) => ReactNode\n placeholder?: string\n allSelectedLabel?: string\n}\n\ninterface DefaultInnerTriggerProps {\n placeholder?: string\n allSelectedLabel?: string\n}\n\nfunction DefaultInnerTrigger({ placeholder, allSelectedLabel }: DefaultInnerTriggerProps) {\n const context = useSelectContext()\n const items = context.collection.items\n const selectedItems = context.selectedItems\n\n if (\n context.multiple &&\n selectedItems.filter(item => !item.disabled).length >= items.filter(item => !item.disabled).length &&\n allSelectedLabel\n ) {\n return (\n <ValueText className=\"custom\" truncate>\n {allSelectedLabel}\n </ValueText>\n )\n }\n\n return <ValueText truncate placeholder={placeholder} />\n}\n\nfunction CustomInnerTrigger<Item extends SelectItem>({\n renderTrigger,\n placeholder,\n allSelectedLabel,\n}: InnerTriggerProps<Item>) {\n const context = useSelectContext()\n const items = context.value && context.value.length > 0 ? context.collection.findMany(context.value) : []\n\n if (items.length === 0) {\n return <ValueText className=\"custom\" truncate placeholder={placeholder} />\n }\n\n const selectedItems = context.selectedItems\n\n if (\n context.multiple &&\n selectedItems.filter(item => !item.disabled).length >=\n context.collection.items.filter(item => !item.disabled).length &&\n allSelectedLabel\n ) {\n return (\n <ValueText className=\"custom\" truncate>\n {allSelectedLabel}\n </ValueText>\n )\n }\n\n return (\n <ValueText className=\"custom\" placeholder={placeholder}>\n {items.map(item => (\n <span key={item.value}>{renderTrigger(item)}</span>\n ))}\n </ValueText>\n )\n}\n\nfunction CustomInnerItem<Item extends SelectItem>({ item, isMultiple, renderItem }: InnerItemProps<Item>) {\n const context = useSelectItemContext()\n\n return (\n <>\n {isMultiple ? context.selected ? <MultipleCheckedIndicator /> : <MultipleUncheckedIndicator /> : null}\n {renderItem ? renderItem(item) : <ItemText truncate>{item.label}</ItemText>}\n </>\n )\n}\n\n/**\n * Splits the flat item list into consecutive runs sharing a `groupLabel`. Runs are built\n * from adjacency rather than by collecting every item with the same label, so the caller\n * keeps full control of the order: sorting is the caller's business, grouping is ours.\n */\nfunction toGroupRuns<Item extends SelectItem>(items: readonly Item[]) {\n const runs: Array<{ label?: string; items: Item[] }> = []\n\n for (const item of items) {\n const current = runs[runs.length - 1]\n if (current && current.label === item.groupLabel) {\n current.items.push(item)\n continue\n }\n runs.push({ label: item.groupLabel, items: [item] })\n }\n\n return runs\n}\n\nexport function Select<Item extends SelectItem>({\n items,\n placeholder,\n emptyLabel,\n usePortal = true,\n positioning,\n renderItem,\n renderTrigger,\n virtualized,\n rowHeight = 34,\n ...props\n}: SelectProps<Item>) {\n const collection = createListCollection({\n items,\n })\n const $dialogContent = useRef<HTMLDivElement | null>(null)\n\n const renderOption = (item: Item) => (\n <Fragment key={item.value}>\n <ConditionalWrapper\n key={item.value}\n when={!!item.tooltip}\n wrapper={children => <Tooltip label={item.tooltip}>{children}</Tooltip>}\n >\n <Item key={item.value} item={item}>\n <CustomInnerItem renderItem={renderItem} item={item} isMultiple={props.multiple} />\n </Item>\n </ConditionalWrapper>\n {item.separatorAfter && (\n <div\n role=\"separator\"\n className={css({\n height: '1px',\n flexShrink: 0,\n backgroundColor: 'grey.100',\n marginY: 'space-4',\n marginX: 'space-8',\n })}\n />\n )}\n </Fragment>\n )\n\n return (\n <Root\n lazyMount\n unmountOnExit\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"select\"\n {...props}\n ref={(node: HTMLDivElement | null) => {\n if (node) {\n $dialogContent.current = node.closest('[role=\"dialog\"]') as HTMLDivElement | null\n }\n }}\n >\n <Control>\n <Trigger>\n {renderTrigger ? (\n <CustomInnerTrigger\n renderTrigger={renderTrigger}\n placeholder={placeholder}\n allSelectedLabel={props.allSelectedLabel}\n />\n ) : (\n <DefaultInnerTrigger placeholder={placeholder} allSelectedLabel={props.allSelectedLabel} />\n )}\n <Indicator asChild>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Indicator>\n </Trigger>\n <ClearTrigger disabled={props.readOnly} asChild>\n <button>\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z\"\n fill=\"currentColor\"\n />\n </svg>\n </button>\n </ClearTrigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal container={$dialogContent}>{children}</Portal>}>\n <Positioner>\n <Content>\n {items.length === 0 ? (\n <Text px=\"space-8\" textAlign=\"center\">\n {emptyLabel ?? 'Aucun résultat'}\n </Text>\n ) : virtualized ? (\n <>\n <FixedSizeList\n height={Math.min(rowHeight * items.length, 180)}\n itemCount={items.length}\n itemSize={rowHeight}\n width=\"100%\"\n >\n {({ index, style }) => (\n <ConditionalWrapper\n key={items[index].value}\n when={!!items[index].tooltip}\n wrapper={children => <Tooltip label={items[index].tooltip}>{children}</Tooltip>}\n >\n <Item key={items[index].value} item={items[index]} style={style}>\n <CustomInnerItem renderItem={renderItem} item={items[index]} />\n </Item>\n </ConditionalWrapper>\n )}\n </FixedSizeList>\n </>\n ) : (\n toGroupRuns<Item>(items).map((run, runIndex) =>\n run.label === undefined ? (\n <Fragment key={`group-${runIndex}`}>{run.items.map(renderOption)}</Fragment>\n ) : (\n <ItemGroup key={`group-${runIndex}`}>\n <ItemGroupLabel>{run.label}</ItemGroupLabel>\n {run.items.map(renderOption)}\n </ItemGroup>\n ),\n )\n )}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n <ArkSelect.HiddenSelect />\n </Root>\n )\n}\n"],"mappings":";;;;;;;;;;;;;AAqBA,IAAM,EAAE,iBAAc,mBAAgB,EAAmB,CAAM,GAGzD,IAAO,EAAa,EAAO,EAAU,IAAS,GAAG,QAAQ,EAC7D,cAAc,EACZ,WAAW,GACb,EACF,CAAC,GAEK,IAAe,EAAY,EAAO,EAAU,YAAY,GAAG,cAAc,GACzE,IAAU,EAAY,EAAO,EAAU,OAAO,GAAG,SAAS,GAC1D,IAAU,EAAY,EAAO,EAAU,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,EAAE,KAAK,GAAK,MACjC,EAAI,UAAU,KAAA,IACZ,kBAAC,GAAD,EAAA,UAAqC,EAAI,MAAM,IAAI,CAAY,EAAY,GAA5D,SAAS,GAAmD,IAE3E,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,EAAA,UAAiB,EAAI,MAAsB,CAAA,GAC1C,EAAI,MAAM,IAAI,CAAY,CAClB,EAAA,GAHK,SAAS,GAGd,CAEf,EAEK,CAAA,EACC,CAAA;GACM,CAAA;GACpB,kBAAC,EAAU,cAAX,CAAyB,CAAA;EACrB;;AAEV"}
@@ -3,7 +3,7 @@ import { ComponentProps, FC, ReactNode } from 'react';
3
3
  import { ComponentVariants } from '../../utils/slots';
4
4
  import { StyledComponent } from '@stokelp/styled-system/types';
5
5
  import { TooltipRecipe } from '@stokelp/styled-system/recipes';
6
- declare const TooltipRoot: ComponentVariants<StyledComponent<(props: ArkTooltip.RootProps) => import("react/jsx-runtime").JSX.Element, {}>, TooltipRecipe>;
6
+ declare const TooltipRoot: ComponentVariants<StyledComponent<(props: ArkTooltip.RootProps) => import("react").JSX.Element, {}>, TooltipRecipe>;
7
7
  interface TooltipRootProps extends ComponentProps<typeof TooltipRoot> {
8
8
  }
9
9
  export interface TooltipProps extends TooltipRootProps {
@@ -1,2 +1,2 @@
1
- "use client";let e=require("@ark-ui/react");var t=(0,require("@pandacss/dev").defineSlotRecipe)({base:{backdrop:{backdropFilter:`blur(4px)`,background:`primary.300/20`,position:`fixed`,zIndex:`modal`,inset:0,_open:{animation:`backdrop-in`},_closed:{animation:`backdrop-out`}},content:{"--footer-height":`70px`,position:`relative`,'& [data-recipe-slot="header"] + [data-recipe-slot="footer"]':{pt:`space-40`},'&:has([data-recipe-slot="header"] + [data-recipe-slot="footer"]) [data-recipe-slot="header"]':{pb:`calc(var(--footer-height) + {sizes.size-24})`,borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`},_closed:{animation:`dialog-out`},_open:{animation:`dialog-in`},alignSelf:{base:`flex-end`,md:`center`},fontFamily:`satoshi`,display:`flex`,flexDirection:`column`,maxHeight:`100%`,minW:{base:`100%`,md:`800px`},maxW:`922px`,"& > form":{display:`contents`},"& > :first-child, & > form > :first-child":{borderTopLeftRadius:`radius-16`,borderTopRightRadius:`radius-16`},'&:has([data-recipe-slot="header"] + [data-recipe-slot="footer"])':{'& [data-recipe-slot="footer"]':{borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`}},'&:has([data-recipe-slot="header"] + [data-recipe-slot="body"])':{'& [data-recipe-slot="body"]':{borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`}},'&:has([data-recipe-slot="body"] + [data-recipe-slot="footer"])':{'& [data-recipe-slot="footer"]':{borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`}},'&:has([data-recipe-slot="header"] + [data-recipe-slot="body"] + [data-recipe-slot="footer"])':{'& [data-recipe-slot="body"], [data-recipe-slot="footer"]':{borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`}}},header:{'& [data-part="close-trigger"]':{alignSelf:`flex-start`,ml:`auto`},background:`background`,alignItems:`center`,display:`flex`,flexDirection:`row`,gap:`space-16`,px:`space-24`,py:`space-16`},body:{background:`background`,display:`flex`,flex:1,flexDirection:`column`,overflowY:`auto`,px:`space-24`,pt:`space-24`,pb:`calc(var(--footer-height) + {sizes.size-24})`},footer:{background:`background`,position:`absolute`,bottom:0,left:0,right:0,bg:`white/50`,backdropFilter:`auto`,backdropBlur:`4px`,display:`flex`,flexDirection:{base:`column-reverse`,md:`row`},gap:`space-16`,justifyContent:{base:`stretch`,md:`flex-end`},px:`space-24`,pt:`space-16`,pb:`space-16`,borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`},positioner:{alignItems:`center`,display:`flex`,inset:0,justifyContent:`center`,overflow:`auto`,p:{base:`space-8`,md:`space-16`},position:`fixed`,zIndex:`modal`},title:{textStyle:`heading.h4`,color:`primary.900`,fontFamily:`cabinet`}},className:`dialog`,slots:[...e.dialogAnatomy.keys(),`header`,`body`,`footer`]});exports.dialogRecipe=t;
1
+ "use client";let e=require("@ark-ui/react");var t=(0,require("@pandacss/dev").defineSlotRecipe)({base:{backdrop:{backdropFilter:`blur(4px)`,background:`primary.300/20`,position:`fixed`,zIndex:`modal`,inset:0,_open:{animation:`backdrop-in`},_closed:{animation:`backdrop-out`}},content:{"--footer-height":`70px`,position:`relative`,'& [data-recipe-slot="header"] + [data-recipe-slot="footer"]':{pt:`space-40`},'&:has([data-recipe-slot="header"] + [data-recipe-slot="footer"]) [data-recipe-slot="header"]':{pb:`calc(var(--footer-height) + {sizes.size-24})`,borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`},_closed:{animation:`dialog-out`},_open:{animation:`dialog-in`},alignSelf:{base:`flex-end`,md:`center`},fontFamily:`satoshi`,display:`flex`,flexDirection:`column`,maxHeight:`100%`,overflow:`clip`,minW:{base:`100%`,md:`800px`},maxW:`922px`,"& > form":{display:`contents`},"& > :first-child, & > form > :first-child":{borderTopLeftRadius:`radius-16`,borderTopRightRadius:`radius-16`},'&:has([data-recipe-slot="header"] + [data-recipe-slot="footer"])':{'& [data-recipe-slot="footer"]':{borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`}},'&:has([data-recipe-slot="header"] + [data-recipe-slot="body"])':{'& [data-recipe-slot="body"]':{borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`}},'&:has([data-recipe-slot="body"] + [data-recipe-slot="footer"])':{'& [data-recipe-slot="footer"]':{borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`}},'&:has([data-recipe-slot="header"] + [data-recipe-slot="body"] + [data-recipe-slot="footer"])':{'& [data-recipe-slot="body"], [data-recipe-slot="footer"]':{borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`}}},header:{'& [data-part="close-trigger"]':{alignSelf:`flex-start`,ml:`auto`},background:`background`,alignItems:`center`,display:`flex`,flexDirection:`row`,gap:`space-16`,px:`space-24`,py:`space-16`},body:{background:`background`,display:`flex`,flex:1,flexDirection:`column`,overflowY:`auto`,px:`space-24`,pt:`space-24`,pb:`calc(var(--footer-height) + {sizes.size-24})`},footer:{background:`background`,position:`absolute`,bottom:0,left:0,right:0,bg:`white/50`,backdropFilter:`auto`,backdropBlur:`4px`,display:`flex`,flexDirection:{base:`column-reverse`,md:`row`},gap:`space-16`,justifyContent:{base:`stretch`,md:`flex-end`},px:`space-24`,pt:`space-16`,pb:`space-16`,borderBottomLeftRadius:`radius-16`,borderBottomRightRadius:`radius-16`},positioner:{alignItems:`center`,display:`flex`,inset:0,justifyContent:`center`,overflow:`auto`,p:{base:`space-8`,md:`space-16`},position:`fixed`,zIndex:`modal`},title:{textStyle:`heading.h4`,color:`primary.900`,fontFamily:`cabinet`}},className:`dialog`,slots:[...e.dialogAnatomy.keys(),`header`,`body`,`footer`]});exports.dialogRecipe=t;
2
2
  //# sourceMappingURL=dialog.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.cjs","names":[],"sources":["../../../src/theme/recipes/dialog.ts"],"sourcesContent":["import { dialogAnatomy } from '@ark-ui/react'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\nexport const dialogRecipe = defineSlotRecipe({\n base: {\n backdrop: {\n backdropFilter: 'blur(4px)',\n background: 'primary.300/20',\n position: 'fixed',\n zIndex: 'modal',\n inset: 0,\n _open: {\n animation: 'backdrop-in',\n },\n _closed: {\n animation: 'backdrop-out',\n },\n },\n content: {\n '--footer-height': '70px',\n position: 'relative',\n '& [data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"]': {\n pt: 'space-40',\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"]) [data-recipe-slot=\"header\"]': {\n pb: 'calc(var(--footer-height) + {sizes.size-24})',\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n _closed: {\n animation: 'dialog-out',\n },\n _open: {\n animation: 'dialog-in',\n },\n alignSelf: {\n base: 'flex-end',\n md: 'center',\n },\n fontFamily: 'satoshi',\n display: 'flex',\n flexDirection: 'column',\n maxHeight: '100%',\n minW: {\n base: '100%',\n md: '800px',\n },\n maxW: '922px',\n '& > form': {\n display: 'contents',\n },\n '& > :first-child, & > form > :first-child': {\n borderTopLeftRadius: 'radius-16',\n borderTopRightRadius: 'radius-16',\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"body\"])': {\n '& [data-recipe-slot=\"body\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"body\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"body\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"body\"], [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n },\n header: {\n '& [data-part=\"close-trigger\"]': {\n alignSelf: 'flex-start',\n ml: 'auto',\n },\n background: 'background',\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'row',\n gap: 'space-16',\n px: 'space-24',\n py: 'space-16',\n },\n body: {\n background: 'background',\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n overflowY: 'auto',\n px: 'space-24',\n pt: 'space-24',\n pb: 'calc(var(--footer-height) + {sizes.size-24})',\n },\n footer: {\n background: 'background',\n position: 'absolute',\n bottom: 0,\n left: 0,\n right: 0,\n bg: 'white/50',\n backdropFilter: 'auto',\n backdropBlur: '4px',\n display: 'flex',\n flexDirection: {\n base: 'column-reverse',\n md: 'row',\n },\n gap: 'space-16',\n justifyContent: {\n base: 'stretch',\n md: 'flex-end',\n },\n px: 'space-24',\n pt: 'space-16',\n pb: 'space-16',\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n positioner: {\n alignItems: 'center',\n display: 'flex',\n inset: 0,\n justifyContent: 'center',\n overflow: 'auto',\n p: {\n base: 'space-8',\n md: 'space-16',\n },\n position: 'fixed',\n zIndex: 'modal',\n },\n title: {\n textStyle: 'heading.h4',\n color: 'primary.900',\n fontFamily: 'cabinet',\n },\n },\n className: 'dialog',\n slots: [...dialogAnatomy.keys(), 'header', 'body', 'footer'],\n})\n"],"mappings":"4CAGA,IAAa,GAAA,yBAAA,EAAA,kBAAgC,CAC3C,KAAM,CACJ,SAAU,CACR,eAAgB,YAChB,WAAY,iBACZ,SAAU,QACV,OAAQ,QACR,MAAO,EACP,MAAO,CACL,UAAW,aACb,EACA,QAAS,CACP,UAAW,cACb,CACF,EACA,QAAS,CACP,kBAAmB,OACnB,SAAU,WACV,8DAA+D,CAC7D,GAAI,UACN,EACA,+FAAgG,CAC9F,GAAI,+CACJ,uBAAwB,YACxB,wBAAyB,WAC3B,EACA,QAAS,CACP,UAAW,YACb,EACA,MAAO,CACL,UAAW,WACb,EACA,UAAW,CACT,KAAM,WACN,GAAI,QACN,EACA,WAAY,UACZ,QAAS,OACT,cAAe,SACf,UAAW,OACX,KAAM,CACJ,KAAM,OACN,GAAI,OACN,EACA,KAAM,QACN,WAAY,CACV,QAAS,UACX,EACA,4CAA6C,CAC3C,oBAAqB,YACrB,qBAAsB,WACxB,EACA,mEAAoE,CAClE,gCAAiC,CAC/B,uBAAwB,YACxB,wBAAyB,WAC3B,CACF,EACA,iEAAkE,CAChE,8BAA+B,CAC7B,uBAAwB,YACxB,wBAAyB,WAC3B,CACF,EACA,iEAAkE,CAChE,gCAAiC,CAC/B,uBAAwB,YACxB,wBAAyB,WAC3B,CACF,EACA,+FAAgG,CAC9F,2DAA4D,CAC1D,uBAAwB,YACxB,wBAAyB,WAC3B,CACF,CACF,EACA,OAAQ,CACN,gCAAiC,CAC/B,UAAW,aACX,GAAI,MACN,EACA,WAAY,aACZ,WAAY,SACZ,QAAS,OACT,cAAe,MACf,IAAK,WACL,GAAI,WACJ,GAAI,UACN,EACA,KAAM,CACJ,WAAY,aACZ,QAAS,OACT,KAAM,EACN,cAAe,SACf,UAAW,OACX,GAAI,WACJ,GAAI,WACJ,GAAI,8CACN,EACA,OAAQ,CACN,WAAY,aACZ,SAAU,WACV,OAAQ,EACR,KAAM,EACN,MAAO,EACP,GAAI,WACJ,eAAgB,OAChB,aAAc,MACd,QAAS,OACT,cAAe,CACb,KAAM,iBACN,GAAI,KACN,EACA,IAAK,WACL,eAAgB,CACd,KAAM,UACN,GAAI,UACN,EACA,GAAI,WACJ,GAAI,WACJ,GAAI,WACJ,uBAAwB,YACxB,wBAAyB,WAC3B,EACA,WAAY,CACV,WAAY,SACZ,QAAS,OACT,MAAO,EACP,eAAgB,SAChB,SAAU,OACV,EAAG,CACD,KAAM,UACN,GAAI,UACN,EACA,SAAU,QACV,OAAQ,OACV,EACA,MAAO,CACL,UAAW,aACX,MAAO,cACP,WAAY,SACd,CACF,EACA,UAAW,SACX,MAAO,CAAC,GAAG,EAAA,cAAc,KAAK,EAAG,SAAU,OAAQ,QAAQ,CAC7D,CAAC"}
1
+ {"version":3,"file":"dialog.cjs","names":[],"sources":["../../../src/theme/recipes/dialog.ts"],"sourcesContent":["import { dialogAnatomy } from '@ark-ui/react'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\nexport const dialogRecipe = defineSlotRecipe({\n base: {\n backdrop: {\n backdropFilter: 'blur(4px)',\n background: 'primary.300/20',\n position: 'fixed',\n zIndex: 'modal',\n inset: 0,\n _open: {\n animation: 'backdrop-in',\n },\n _closed: {\n animation: 'backdrop-out',\n },\n },\n content: {\n '--footer-height': '70px',\n position: 'relative',\n '& [data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"]': {\n pt: 'space-40',\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"]) [data-recipe-slot=\"header\"]': {\n pb: 'calc(var(--footer-height) + {sizes.size-24})',\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n _closed: {\n animation: 'dialog-out',\n },\n _open: {\n animation: 'dialog-in',\n },\n alignSelf: {\n base: 'flex-end',\n md: 'center',\n },\n fontFamily: 'satoshi',\n display: 'flex',\n flexDirection: 'column',\n maxHeight: '100%',\n // `clip`, not the default `visible`: a body that overflows the card (a long table, a\n // tall form) otherwise leaks its overflow past content and makes both content and the\n // fixed positioner scrollable. Focusing any control inside — a checkbox's hidden\n // input, say — then lets the browser satisfy its scroll-into-view against those bogus\n // scroll ranges by scrolling the dialog itself out of the viewport, while it stays\n // open with the backdrop up and the body inert, so the page reads as frozen. `clip`\n // creates no scroll container at all, leaving body the only thing that scrolls.\n // Popovers/selects/tooltips inside a dialog are portaled, so nothing needs to paint\n // outside the card.\n overflow: 'clip',\n minW: {\n base: '100%',\n md: '800px',\n },\n maxW: '922px',\n '& > form': {\n display: 'contents',\n },\n '& > :first-child, & > form > :first-child': {\n borderTopLeftRadius: 'radius-16',\n borderTopRightRadius: 'radius-16',\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"body\"])': {\n '& [data-recipe-slot=\"body\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"body\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"body\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"body\"], [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n },\n header: {\n '& [data-part=\"close-trigger\"]': {\n alignSelf: 'flex-start',\n ml: 'auto',\n },\n background: 'background',\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'row',\n gap: 'space-16',\n px: 'space-24',\n py: 'space-16',\n },\n body: {\n background: 'background',\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n overflowY: 'auto',\n px: 'space-24',\n pt: 'space-24',\n pb: 'calc(var(--footer-height) + {sizes.size-24})',\n },\n footer: {\n background: 'background',\n position: 'absolute',\n bottom: 0,\n left: 0,\n right: 0,\n bg: 'white/50',\n backdropFilter: 'auto',\n backdropBlur: '4px',\n display: 'flex',\n flexDirection: {\n base: 'column-reverse',\n md: 'row',\n },\n gap: 'space-16',\n justifyContent: {\n base: 'stretch',\n md: 'flex-end',\n },\n px: 'space-24',\n pt: 'space-16',\n pb: 'space-16',\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n positioner: {\n alignItems: 'center',\n display: 'flex',\n inset: 0,\n justifyContent: 'center',\n overflow: 'auto',\n p: {\n base: 'space-8',\n md: 'space-16',\n },\n position: 'fixed',\n zIndex: 'modal',\n },\n title: {\n textStyle: 'heading.h4',\n color: 'primary.900',\n fontFamily: 'cabinet',\n },\n },\n className: 'dialog',\n slots: [...dialogAnatomy.keys(), 'header', 'body', 'footer'],\n})\n"],"mappings":"4CAGA,IAAa,GAAA,yBAAA,EAAA,kBAAgC,CAC3C,KAAM,CACJ,SAAU,CACR,eAAgB,YAChB,WAAY,iBACZ,SAAU,QACV,OAAQ,QACR,MAAO,EACP,MAAO,CACL,UAAW,aACb,EACA,QAAS,CACP,UAAW,cACb,CACF,EACA,QAAS,CACP,kBAAmB,OACnB,SAAU,WACV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SAAU,OACV,EAAG,CACD,KAAM,UACN,GAAI,UACN,EACA,SAAU,QACV,OAAQ,OACV,EACA,MAAO,CACL,UAAW,aACX,MAAO,cACP,WAAY,SACd,CACF,EACA,UAAW,SACX,MAAO,CAAC,GAAG,EAAA,cAAc,KAAK,EAAG,SAAU,OAAQ,QAAQ,CAC7D,CAAC"}
@@ -32,6 +32,7 @@ var n = t({
32
32
  display: "flex",
33
33
  flexDirection: "column",
34
34
  maxHeight: "100%",
35
+ overflow: "clip",
35
36
  minW: {
36
37
  base: "100%",
37
38
  md: "800px"
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.js","names":[],"sources":["../../../src/theme/recipes/dialog.ts"],"sourcesContent":["import { dialogAnatomy } from '@ark-ui/react'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\nexport const dialogRecipe = defineSlotRecipe({\n base: {\n backdrop: {\n backdropFilter: 'blur(4px)',\n background: 'primary.300/20',\n position: 'fixed',\n zIndex: 'modal',\n inset: 0,\n _open: {\n animation: 'backdrop-in',\n },\n _closed: {\n animation: 'backdrop-out',\n },\n },\n content: {\n '--footer-height': '70px',\n position: 'relative',\n '& [data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"]': {\n pt: 'space-40',\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"]) [data-recipe-slot=\"header\"]': {\n pb: 'calc(var(--footer-height) + {sizes.size-24})',\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n _closed: {\n animation: 'dialog-out',\n },\n _open: {\n animation: 'dialog-in',\n },\n alignSelf: {\n base: 'flex-end',\n md: 'center',\n },\n fontFamily: 'satoshi',\n display: 'flex',\n flexDirection: 'column',\n maxHeight: '100%',\n minW: {\n base: '100%',\n md: '800px',\n },\n maxW: '922px',\n '& > form': {\n display: 'contents',\n },\n '& > :first-child, & > form > :first-child': {\n borderTopLeftRadius: 'radius-16',\n borderTopRightRadius: 'radius-16',\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"body\"])': {\n '& [data-recipe-slot=\"body\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"body\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"body\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"body\"], [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n },\n header: {\n '& [data-part=\"close-trigger\"]': {\n alignSelf: 'flex-start',\n ml: 'auto',\n },\n background: 'background',\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'row',\n gap: 'space-16',\n px: 'space-24',\n py: 'space-16',\n },\n body: {\n background: 'background',\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n overflowY: 'auto',\n px: 'space-24',\n pt: 'space-24',\n pb: 'calc(var(--footer-height) + {sizes.size-24})',\n },\n footer: {\n background: 'background',\n position: 'absolute',\n bottom: 0,\n left: 0,\n right: 0,\n bg: 'white/50',\n backdropFilter: 'auto',\n backdropBlur: '4px',\n display: 'flex',\n flexDirection: {\n base: 'column-reverse',\n md: 'row',\n },\n gap: 'space-16',\n justifyContent: {\n base: 'stretch',\n md: 'flex-end',\n },\n px: 'space-24',\n pt: 'space-16',\n pb: 'space-16',\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n positioner: {\n alignItems: 'center',\n display: 'flex',\n inset: 0,\n justifyContent: 'center',\n overflow: 'auto',\n p: {\n base: 'space-8',\n md: 'space-16',\n },\n position: 'fixed',\n zIndex: 'modal',\n },\n title: {\n textStyle: 'heading.h4',\n color: 'primary.900',\n fontFamily: 'cabinet',\n },\n },\n className: 'dialog',\n slots: [...dialogAnatomy.keys(), 'header', 'body', 'footer'],\n})\n"],"mappings":";;;;AAGA,IAAa,IAAe,EAAiB;CAC3C,MAAM;EACJ,UAAU;GACR,gBAAgB;GAChB,YAAY;GACZ,UAAU;GACV,QAAQ;GACR,OAAO;GACP,OAAO,EACL,WAAW,cACb;GACA,SAAS,EACP,WAAW,eACb;EACF;EACA,SAAS;GACP,mBAAmB;GACnB,UAAU;GACV,mEAA+D,EAC7D,IAAI,WACN;GACA,sGAAgG;IAC9F,IAAI;IACJ,wBAAwB;IACxB,yBAAyB;GAC3B;GACA,SAAS,EACP,WAAW,aACb;GACA,OAAO,EACL,WAAW,YACb;GACA,WAAW;IACT,MAAM;IACN,IAAI;GACN;GACA,YAAY;GACZ,SAAS;GACT,eAAe;GACf,WAAW;GACX,MAAM;IACJ,MAAM;IACN,IAAI;GACN;GACA,MAAM;GACN,YAAY,EACV,SAAS,WACX;GACA,6CAA6C;IAC3C,qBAAqB;IACrB,sBAAsB;GACxB;GACA,wEAAoE,EAClE,mCAAiC;IAC/B,wBAAwB;IACxB,yBAAyB;GAC3B,EACF;GACA,sEAAkE,EAChE,iCAA+B;IAC7B,wBAAwB;IACxB,yBAAyB;GAC3B,EACF;GACA,sEAAkE,EAChE,mCAAiC;IAC/B,wBAAwB;IACxB,yBAAyB;GAC3B,EACF;GACA,sGAAgG,EAC9F,gEAA4D;IAC1D,wBAAwB;IACxB,yBAAyB;GAC3B,EACF;EACF;EACA,QAAQ;GACN,mCAAiC;IAC/B,WAAW;IACX,IAAI;GACN;GACA,YAAY;GACZ,YAAY;GACZ,SAAS;GACT,eAAe;GACf,KAAK;GACL,IAAI;GACJ,IAAI;EACN;EACA,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,MAAM;GACN,eAAe;GACf,WAAW;GACX,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;EACA,QAAQ;GACN,YAAY;GACZ,UAAU;GACV,QAAQ;GACR,MAAM;GACN,OAAO;GACP,IAAI;GACJ,gBAAgB;GAChB,cAAc;GACd,SAAS;GACT,eAAe;IACb,MAAM;IACN,IAAI;GACN;GACA,KAAK;GACL,gBAAgB;IACd,MAAM;IACN,IAAI;GACN;GACA,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,wBAAwB;GACxB,yBAAyB;EAC3B;EACA,YAAY;GACV,YAAY;GACZ,SAAS;GACT,OAAO;GACP,gBAAgB;GAChB,UAAU;GACV,GAAG;IACD,MAAM;IACN,IAAI;GACN;GACA,UAAU;GACV,QAAQ;EACV;EACA,OAAO;GACL,WAAW;GACX,OAAO;GACP,YAAY;EACd;CACF;CACA,WAAW;CACX,OAAO;EAAC,GAAG,EAAc,KAAK;EAAG;EAAU;EAAQ;CAAQ;AAC7D,CAAC"}
1
+ {"version":3,"file":"dialog.js","names":[],"sources":["../../../src/theme/recipes/dialog.ts"],"sourcesContent":["import { dialogAnatomy } from '@ark-ui/react'\nimport { defineSlotRecipe } from '@pandacss/dev'\n\nexport const dialogRecipe = defineSlotRecipe({\n base: {\n backdrop: {\n backdropFilter: 'blur(4px)',\n background: 'primary.300/20',\n position: 'fixed',\n zIndex: 'modal',\n inset: 0,\n _open: {\n animation: 'backdrop-in',\n },\n _closed: {\n animation: 'backdrop-out',\n },\n },\n content: {\n '--footer-height': '70px',\n position: 'relative',\n '& [data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"]': {\n pt: 'space-40',\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"]) [data-recipe-slot=\"header\"]': {\n pb: 'calc(var(--footer-height) + {sizes.size-24})',\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n _closed: {\n animation: 'dialog-out',\n },\n _open: {\n animation: 'dialog-in',\n },\n alignSelf: {\n base: 'flex-end',\n md: 'center',\n },\n fontFamily: 'satoshi',\n display: 'flex',\n flexDirection: 'column',\n maxHeight: '100%',\n // `clip`, not the default `visible`: a body that overflows the card (a long table, a\n // tall form) otherwise leaks its overflow past content and makes both content and the\n // fixed positioner scrollable. Focusing any control inside — a checkbox's hidden\n // input, say — then lets the browser satisfy its scroll-into-view against those bogus\n // scroll ranges by scrolling the dialog itself out of the viewport, while it stays\n // open with the backdrop up and the body inert, so the page reads as frozen. `clip`\n // creates no scroll container at all, leaving body the only thing that scrolls.\n // Popovers/selects/tooltips inside a dialog are portaled, so nothing needs to paint\n // outside the card.\n overflow: 'clip',\n minW: {\n base: '100%',\n md: '800px',\n },\n maxW: '922px',\n '& > form': {\n display: 'contents',\n },\n '& > :first-child, & > form > :first-child': {\n borderTopLeftRadius: 'radius-16',\n borderTopRightRadius: 'radius-16',\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"body\"])': {\n '& [data-recipe-slot=\"body\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"body\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n '&:has([data-recipe-slot=\"header\"] + [data-recipe-slot=\"body\"] + [data-recipe-slot=\"footer\"])': {\n '& [data-recipe-slot=\"body\"], [data-recipe-slot=\"footer\"]': {\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n },\n },\n header: {\n '& [data-part=\"close-trigger\"]': {\n alignSelf: 'flex-start',\n ml: 'auto',\n },\n background: 'background',\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'row',\n gap: 'space-16',\n px: 'space-24',\n py: 'space-16',\n },\n body: {\n background: 'background',\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n overflowY: 'auto',\n px: 'space-24',\n pt: 'space-24',\n pb: 'calc(var(--footer-height) + {sizes.size-24})',\n },\n footer: {\n background: 'background',\n position: 'absolute',\n bottom: 0,\n left: 0,\n right: 0,\n bg: 'white/50',\n backdropFilter: 'auto',\n backdropBlur: '4px',\n display: 'flex',\n flexDirection: {\n base: 'column-reverse',\n md: 'row',\n },\n gap: 'space-16',\n justifyContent: {\n base: 'stretch',\n md: 'flex-end',\n },\n px: 'space-24',\n pt: 'space-16',\n pb: 'space-16',\n borderBottomLeftRadius: 'radius-16',\n borderBottomRightRadius: 'radius-16',\n },\n positioner: {\n alignItems: 'center',\n display: 'flex',\n inset: 0,\n justifyContent: 'center',\n overflow: 'auto',\n p: {\n base: 'space-8',\n md: 'space-16',\n },\n position: 'fixed',\n zIndex: 'modal',\n },\n title: {\n textStyle: 'heading.h4',\n color: 'primary.900',\n fontFamily: 'cabinet',\n },\n },\n className: 'dialog',\n slots: [...dialogAnatomy.keys(), 'header', 'body', 'footer'],\n})\n"],"mappings":";;;;AAGA,IAAa,IAAe,EAAiB;CAC3C,MAAM;EACJ,UAAU;GACR,gBAAgB;GAChB,YAAY;GACZ,UAAU;GACV,QAAQ;GACR,OAAO;GACP,OAAO,EACL,WAAW,cACb;GACA,SAAS,EACP,WAAW,eACb;EACF;EACA,SAAS;GACP,mBAAmB;GACnB,UAAU;GACV,mEAA+D,EAC7D,IAAI,WACN;GACA,sGAAgG;IAC9F,IAAI;IACJ,wBAAwB;IACxB,yBAAyB;GAC3B;GACA,SAAS,EACP,WAAW,aACb;GACA,OAAO,EACL,WAAW,YACb;GACA,WAAW;IACT,MAAM;IACN,IAAI;GACN;GACA,YAAY;GACZ,SAAS;GACT,eAAe;GACf,WAAW;GAUX,UAAU;GACV,MAAM;IACJ,MAAM;IACN,IAAI;GACN;GACA,MAAM;GACN,YAAY,EACV,SAAS,WACX;GACA,6CAA6C;IAC3C,qBAAqB;IACrB,sBAAsB;GACxB;GACA,wEAAoE,EAClE,mCAAiC;IAC/B,wBAAwB;IACxB,yBAAyB;GAC3B,EACF;GACA,sEAAkE,EAChE,iCAA+B;IAC7B,wBAAwB;IACxB,yBAAyB;GAC3B,EACF;GACA,sEAAkE,EAChE,mCAAiC;IAC/B,wBAAwB;IACxB,yBAAyB;GAC3B,EACF;GACA,sGAAgG,EAC9F,gEAA4D;IAC1D,wBAAwB;IACxB,yBAAyB;GAC3B,EACF;EACF;EACA,QAAQ;GACN,mCAAiC;IAC/B,WAAW;IACX,IAAI;GACN;GACA,YAAY;GACZ,YAAY;GACZ,SAAS;GACT,eAAe;GACf,KAAK;GACL,IAAI;GACJ,IAAI;EACN;EACA,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,MAAM;GACN,eAAe;GACf,WAAW;GACX,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;EACA,QAAQ;GACN,YAAY;GACZ,UAAU;GACV,QAAQ;GACR,MAAM;GACN,OAAO;GACP,IAAI;GACJ,gBAAgB;GAChB,cAAc;GACd,SAAS;GACT,eAAe;IACb,MAAM;IACN,IAAI;GACN;GACA,KAAK;GACL,gBAAgB;IACd,MAAM;IACN,IAAI;GACN;GACA,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,wBAAwB;GACxB,yBAAyB;EAC3B;EACA,YAAY;GACV,YAAY;GACZ,SAAS;GACT,OAAO;GACP,gBAAgB;GAChB,UAAU;GACV,GAAG;IACD,MAAM;IACN,IAAI;GACN;GACA,UAAU;GACV,QAAQ;EACV;EACA,OAAO;GACL,WAAW;GACX,OAAO;GACP,YAAY;EACd;CACF;CACA,WAAW;CACX,OAAO;EAAC,GAAG,EAAc,KAAK;EAAG;EAAU;EAAQ;CAAQ;AAC7D,CAAC"}
@@ -1,2 +1,2 @@
1
- "use client";var e=(0,require("@pandacss/dev").defineSlotRecipe)({base:{root:{fontFamily:`satoshi`,borderStyle:`solid`,display:`inline-flex`,flexDirection:`row`,alignItems:`center`,borderRadius:`radius-28`}},slots:[`root`,`badge`],className:`tag`,defaultVariants:{size:`md`,severity:`neutral`},description:`The styles for the Tag component`,jsx:[`Tag`],variants:{size:{lg:{root:{borderWidth:2,textStyle:`body.lg`,fontWeight:`bold`,py:`space-8`,px:`space-16`,gap:`space-8`},badge:{width:`size-8`,height:`size-8`}},md:{root:{borderWidth:1,textStyle:`body.md`,fontWeight:`bold`,py:`space-6`,px:`space-12`,gap:`space-8`},badge:{width:`size-6`,height:`size-6`}},sm:{root:{borderWidth:1,textStyle:`body.sm`,fontWeight:`bold`,py:`space-4`,px:`space-8`,gap:`space-4`},badge:{width:`size-4`,height:`size-4`}}},severity:{success:{root:{bg:`success.100`,borderColor:`success.500`,color:`success.500`},badge:{bg:`success.500`}},warning:{root:{bg:`warning.100`,borderColor:`warning.500`,color:`warning.500`},badge:{bg:`warning.500`}},error:{root:{bg:`error.100`,borderColor:`error.500`,color:`error.500`},badge:{bg:`error.500`}},neutral:{root:{bg:`grey.50`,borderColor:`grey.400`,color:`grey.400`},badge:{bg:`grey.400`}},info:{root:{bg:`secondary.100`,borderColor:`secondary.500`,color:`secondary.500`},badge:{bg:`secondary.500`}}}}});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`}},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;
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 },\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,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 },\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"}
@@ -103,6 +103,14 @@ var t = e({
103
103
  color: "secondary.500"
104
104
  },
105
105
  badge: { bg: "secondary.500" }
106
+ },
107
+ primary: {
108
+ root: {
109
+ bg: "primary.100",
110
+ borderColor: "primary.500",
111
+ color: "primary.500"
112
+ },
113
+ badge: { bg: "primary.500" }
106
114
  }
107
115
  }
108
116
  }
@@ -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 },\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;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 },\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,I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