@sanity/ui 3.0.0-static.3 → 3.0.0-static.5

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 (68) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +98 -64
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-cjs/buildCommand.js +1 -1
  4. package/dist/_chunks-cjs/buildCommand.js.map +1 -1
  5. package/dist/_chunks-es/_visual-editing.mjs +99 -65
  6. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  7. package/dist/_visual-editing.d.mts +4 -1
  8. package/dist/_visual-editing.d.ts +4 -1
  9. package/dist/cli.js +1 -1
  10. package/dist/css.d.mts +145 -893
  11. package/dist/css.d.ts +145 -893
  12. package/dist/css.js +182 -191
  13. package/dist/css.js.map +1 -1
  14. package/dist/css.mjs +182 -191
  15. package/dist/css.mjs.map +1 -1
  16. package/dist/index.d.mts +4 -1
  17. package/dist/index.d.ts +4 -1
  18. package/dist/index.js +12 -14
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +12 -14
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/sanity-palette.css +1 -9
  23. package/dist/sanity-theme.css +1 -1
  24. package/dist/system.css +114 -109
  25. package/dist/theme.d.mts +1 -43
  26. package/dist/theme.d.ts +1 -43
  27. package/dist/theme.js +291 -102
  28. package/dist/theme.js.map +1 -1
  29. package/dist/theme.mjs +272 -85
  30. package/dist/theme.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/src/cli/buildCommand.ts +2 -2
  33. package/src/css/_comp.ts +1 -0
  34. package/src/css/aspects/flex/flexJustify.style.ts +3 -3
  35. package/src/css/aspects/grid/types.ts +2 -2
  36. package/src/css/aspects/textOverflow/textOverflow.ts +2 -2
  37. package/src/css/compile/compilePalette.ts +8 -41
  38. package/src/css/compile/compileTheme_v3.ts +0 -18
  39. package/src/css/index.ts +2 -2
  40. package/src/css/primitives/_selectable/_contants.ts +1 -1
  41. package/src/css/primitives/box/box.ts +3 -0
  42. package/src/css/primitives/button/_constants.ts +1 -1
  43. package/src/css/primitives/button/button.style.ts +12 -13
  44. package/src/css/primitives/card/_constants.ts +2 -2
  45. package/src/css/primitives/card/card.ts +1 -1
  46. package/src/css/primitives/stack/index.ts +1 -0
  47. package/src/css/primitives/stack/stack.style.ts +9 -0
  48. package/src/css/primitives/stack/stack.ts +6 -0
  49. package/src/css/system.style.ts +2 -0
  50. package/src/theme/defaults/config.ts +2 -2
  51. package/src/theme/defaults/fonts.ts +4 -4
  52. package/src/theme/palette/constants.ts +1 -3
  53. package/src/theme/palette/types.ts +0 -12
  54. package/src/theme/v3/buildTheme_v3.ts +1 -2
  55. package/src/theme/v3/defaults.ts +12 -31
  56. package/src/theme/v3/types.ts +0 -3
  57. package/src/ui/StyleTags.tsx +1 -1
  58. package/src/ui/primitives/box/box.tsx +6 -0
  59. package/src/ui/primitives/button/button.tsx +12 -11
  60. package/src/ui/primitives/card/card.tsx +5 -2
  61. package/src/ui/primitives/heading/heading.tsx +1 -1
  62. package/src/ui/primitives/select/select.tsx +3 -3
  63. package/src/ui/primitives/stack/stack.tsx +10 -5
  64. package/src/ui/primitives/text/text.tsx +1 -1
  65. package/dist/_chunks-cjs/v3_v2.js +0 -251
  66. package/dist/_chunks-cjs/v3_v2.js.map +0 -1
  67. package/dist/_chunks-es/v3_v2.mjs +0 -252
  68. package/dist/_chunks-es/v3_v2.mjs.map +0 -1
@@ -5,7 +5,7 @@ function _interopDefaultCompat(e) {
5
5
  }
6
6
  var fs__default = /* @__PURE__ */ _interopDefaultCompat(fs), path__default = /* @__PURE__ */ _interopDefaultCompat(path);
7
7
  async function buildPalette(outDir) {
8
- const css$1 = css.compilePalette(theme.defaultPalette);
8
+ const css$1 = css.compilePalette();
9
9
  await fs__default.default.mkdir(outDir, {
10
10
  recursive: !0
11
11
  }), await fs__default.default.writeFile(path__default.default.resolve(outDir, "sanity-palette.css"), css$1, "utf-8"), console.log("- sanity-palette.css");
@@ -1 +1 @@
1
- {"version":3,"file":"buildCommand.js","sources":["../../src/cli/buildCommand.ts"],"sourcesContent":["import {compilePalette, compileSystem, compileTheme} from '@sanity/ui/css'\nimport {buildTheme_v3, defaultPalette, RootTheme} from '@sanity/ui/theme'\nimport fs from 'fs/promises'\nimport path from 'path'\n\nasync function buildPalette(outDir: string) {\n const css = compilePalette(defaultPalette)\n\n await fs.mkdir(outDir, {recursive: true})\n\n await fs.writeFile(path.resolve(outDir, 'sanity-palette.css'), css, 'utf-8')\n\n // eslint-disable-next-line no-console\n console.log('- sanity-palette.css')\n}\n\nasync function buildTheme(outDir: string) {\n const css = compileTheme({v3: buildTheme_v3()} as RootTheme)\n\n await fs.mkdir(outDir, {recursive: true})\n\n await fs.writeFile(path.resolve(outDir, 'sanity-theme.css'), css, 'utf-8')\n\n // eslint-disable-next-line no-console\n console.log('- sanity-theme.css')\n}\n\nasync function buildSystem(outDir: string) {\n const css = compileSystem()\n\n await fs.mkdir(outDir, {recursive: true})\n\n await fs.writeFile(path.resolve(outDir, 'system.css'), css, 'utf-8')\n\n // eslint-disable-next-line no-console\n console.log('- system.css')\n}\n\nexport async function buildCommand(options: {cwd?: string; outDir?: string}): Promise<void> {\n const cwd = options.cwd ?? process.cwd()\n const outDir = options.outDir ?? path.resolve(cwd, 'dist')\n\n await buildPalette(outDir)\n\n await buildTheme(outDir)\n\n await buildSystem(outDir)\n}\n"],"names":["buildPalette","outDir","css","compilePalette","defaultPalette","fs","mkdir","recursive","writeFile","path","resolve","console","log","buildTheme","compileTheme","v3","buildTheme_v3","buildSystem","compileSystem","buildCommand","options","cwd","process"],"mappings":";;;;;;AAKA,eAAeA,aAAaC,QAAgB;AACpCC,QAAAA,QAAMC,mBAAeC,oBAAc;AAEnCC,QAAAA,YAAAA,QAAGC,MAAML,QAAQ;AAAA,IAACM,WAAW;AAAA,EAAK,CAAA,GAExC,MAAMF,YAAAA,QAAGG,UAAUC,cAAKC,QAAAA,QAAQT,QAAQ,oBAAoB,GAAGC,OAAK,OAAO,GAG3ES,QAAQC,IAAI,sBAAsB;AACpC;AAEA,eAAeC,WAAWZ,QAAgB;AACxC,QAAMC,QAAMY,IAAAA,aAAa;AAAA,IAACC,IAAIC,MAAc,cAAA;AAAA,EAAA,CAAe;AAErDX,QAAAA,YAAAA,QAAGC,MAAML,QAAQ;AAAA,IAACM,WAAW;AAAA,EAAK,CAAA,GAExC,MAAMF,YAAAA,QAAGG,UAAUC,cAAKC,QAAAA,QAAQT,QAAQ,kBAAkB,GAAGC,OAAK,OAAO,GAGzES,QAAQC,IAAI,oBAAoB;AAClC;AAEA,eAAeK,YAAYhB,QAAgB;AACzC,QAAMC,QAAMgB,IAAAA,cAAc;AAEpBb,QAAAA,YAAAA,QAAGC,MAAML,QAAQ;AAAA,IAACM,WAAW;AAAA,EAAK,CAAA,GAExC,MAAMF,YAAAA,QAAGG,UAAUC,cAAKC,QAAAA,QAAQT,QAAQ,YAAY,GAAGC,OAAK,OAAO,GAGnES,QAAQC,IAAI,cAAc;AAC5B;AAEA,eAAsBO,aAAaC,SAAyD;AAC1F,QAAMC,MAAMD,QAAQC,OAAOC,QAAQD,IAAI,GACjCpB,SAASmB,QAAQnB,UAAUQ,cAAAA,QAAKC,QAAQW,KAAK,MAAM;AAEnDrB,QAAAA,aAAaC,MAAM,GAEzB,MAAMY,WAAWZ,MAAM,GAEvB,MAAMgB,YAAYhB,MAAM;AAC1B;;"}
1
+ {"version":3,"file":"buildCommand.js","sources":["../../src/cli/buildCommand.ts"],"sourcesContent":["import {compilePalette, compileSystem, compileTheme} from '@sanity/ui/css'\nimport {buildTheme_v3, RootTheme} from '@sanity/ui/theme'\nimport fs from 'fs/promises'\nimport path from 'path'\n\nasync function buildPalette(outDir: string) {\n const css = compilePalette()\n\n await fs.mkdir(outDir, {recursive: true})\n\n await fs.writeFile(path.resolve(outDir, 'sanity-palette.css'), css, 'utf-8')\n\n // eslint-disable-next-line no-console\n console.log('- sanity-palette.css')\n}\n\nasync function buildTheme(outDir: string) {\n const css = compileTheme({v3: buildTheme_v3()} as RootTheme)\n\n await fs.mkdir(outDir, {recursive: true})\n\n await fs.writeFile(path.resolve(outDir, 'sanity-theme.css'), css, 'utf-8')\n\n // eslint-disable-next-line no-console\n console.log('- sanity-theme.css')\n}\n\nasync function buildSystem(outDir: string) {\n const css = compileSystem()\n\n await fs.mkdir(outDir, {recursive: true})\n\n await fs.writeFile(path.resolve(outDir, 'system.css'), css, 'utf-8')\n\n // eslint-disable-next-line no-console\n console.log('- system.css')\n}\n\nexport async function buildCommand(options: {cwd?: string; outDir?: string}): Promise<void> {\n const cwd = options.cwd ?? process.cwd()\n const outDir = options.outDir ?? path.resolve(cwd, 'dist')\n\n await buildPalette(outDir)\n\n await buildTheme(outDir)\n\n await buildSystem(outDir)\n}\n"],"names":["buildPalette","outDir","css","compilePalette","fs","mkdir","recursive","writeFile","path","resolve","console","log","buildTheme","compileTheme","v3","buildTheme_v3","buildSystem","compileSystem","buildCommand","options","cwd","process"],"mappings":";;;;;;AAKA,eAAeA,aAAaC,QAAgB;AAC1C,QAAMC,QAAMC,IAAAA,eAAe;AAErBC,QAAAA,YAAAA,QAAGC,MAAMJ,QAAQ;AAAA,IAACK,WAAW;AAAA,EAAK,CAAA,GAExC,MAAMF,YAAAA,QAAGG,UAAUC,cAAKC,QAAAA,QAAQR,QAAQ,oBAAoB,GAAGC,OAAK,OAAO,GAG3EQ,QAAQC,IAAI,sBAAsB;AACpC;AAEA,eAAeC,WAAWX,QAAgB;AACxC,QAAMC,QAAMW,IAAAA,aAAa;AAAA,IAACC,IAAIC,MAAc,cAAA;AAAA,EAAA,CAAe;AAErDX,QAAAA,YAAAA,QAAGC,MAAMJ,QAAQ;AAAA,IAACK,WAAW;AAAA,EAAK,CAAA,GAExC,MAAMF,YAAAA,QAAGG,UAAUC,cAAKC,QAAAA,QAAQR,QAAQ,kBAAkB,GAAGC,OAAK,OAAO,GAGzEQ,QAAQC,IAAI,oBAAoB;AAClC;AAEA,eAAeK,YAAYf,QAAgB;AACzC,QAAMC,QAAMe,IAAAA,cAAc;AAEpBb,QAAAA,YAAAA,QAAGC,MAAMJ,QAAQ;AAAA,IAACK,WAAW;AAAA,EAAK,CAAA,GAExC,MAAMF,YAAAA,QAAGG,UAAUC,cAAKC,QAAAA,QAAQR,QAAQ,YAAY,GAAGC,OAAK,OAAO,GAGnEQ,QAAQC,IAAI,cAAc;AAC5B;AAEA,eAAsBO,aAAaC,SAAyD;AAC1F,QAAMC,MAAMD,QAAQC,OAAOC,QAAQD,IAAI,GACjCnB,SAASkB,QAAQlB,UAAUO,cAAAA,QAAKC,QAAQW,KAAK,MAAM;AAEnDpB,QAAAA,aAAaC,MAAM,GAEzB,MAAMW,WAAWX,MAAM,GAEvB,MAAMe,YAAYf,MAAM;AAC1B;;"}
@@ -3,7 +3,7 @@ import { c } from "react-compiler-runtime";
3
3
  import { getScopedTheme, getTheme_v2, createColorTheme as createColorTheme$1, hexToRgb as hexToRgb$1, hslToRgb as hslToRgb$1, multiply as multiply$1, parseColor as parseColor$1, rgbToHex as rgbToHex$1, rgbToHsl as rgbToHsl$1, rgba as rgba$1, screen as screen$1, buildTheme } from "@sanity/ui/theme";
4
4
  import { createContext, useContext, useState, useEffect, useDebugValue, useSyncExternalStore, forwardRef, Children, isValidElement, cloneElement, createElement, useRef, useImperativeHandle, lazy, Suspense, memo, useMemo, useCallback, useId, useLayoutEffect } from "react";
5
5
  import { ThemeProvider as ThemeProvider$1, useTheme as useTheme$1 } from "styled-components";
6
- import { composeClassNames, box, label, textOverflow, avatar, avatarArrow, avatarInitials, avatarImage, avatarCounter, avatarStack, text, badge, animatedSpinnerIcon, spinner, buttonLoadingBox, button, _selectable, card, checkbox, checkboxInput, code, container, heading, kbd, _arrow, _arrowStroke, _arrowShape, srOnly, radio, select, _inputElement, selectPresentation, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, _inputPresentation, textInput, tooltipCard, tooltip, menu, menuDivider } from "@sanity/ui/css";
6
+ import { composeClassNames, box, label, textOverflow, avatar, avatarArrow, avatarInitials, avatarImage, avatarCounter, avatarStack, text, badge, animatedSpinnerIcon, spinner, buttonLoadingBox, button, _selectable, card, checkbox, checkboxInput, code, container, heading, kbd, _arrow, _arrowStroke, _arrowShape, srOnly, radio, select, _inputElement, selectPresentation, stack, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, _inputPresentation, textInput, tooltipCard, tooltip, menu, menuDivider } from "@sanity/ui/css";
7
7
  import ReactIs, { isValidElementType } from "react-is";
8
8
  import { SpinnerIcon, CheckmarkIcon, RemoveIcon, ChevronDownIcon, CloseIcon, ChevronRightIcon } from "@sanity/icons";
9
9
  import { detectOverflow, flip, offset, shift, arrow, hide, useFloating, autoUpdate } from "@floating-ui/react-dom";
@@ -365,11 +365,14 @@ function _temp$6() {
365
365
  return !1;
366
366
  }
367
367
  const Box = forwardRef(function(props, ref) {
368
- const $ = c(112);
369
- let align, border, borderBottom, borderLeft, borderRight, borderTop, className, column, columnEnd, columnStart, columns, direction, flex, gap, gapX, gapY, height, inset, insetBottom, insetLeft, insetRight, insetTop, justify, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, muted, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pointerEvents, position, radius, restProps, row, rowEnd, rowStart, rows, t0, t1, t2, t3, t4, width, wrap;
368
+ const $ = c(118);
369
+ let align, autoCols, autoFlow, autoRows, border, borderBottom, borderLeft, borderRight, borderTop, className, column, columnEnd, columnStart, columns, direction, flex, gap, gapX, gapY, height, inset, insetBottom, insetLeft, insetRight, insetTop, justify, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, muted, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pointerEvents, position, radius, restProps, row, rowEnd, rowStart, rows, t0, t1, t2, t3, t4, width, wrap;
370
370
  $[0] !== props ? ({
371
371
  align,
372
372
  as: t0,
373
+ autoCols,
374
+ autoFlow,
375
+ autoRows,
373
376
  border,
374
377
  borderTop,
375
378
  borderRight,
@@ -421,11 +424,14 @@ const Box = forwardRef(function(props, ref) {
421
424
  width,
422
425
  wrap,
423
426
  ...restProps
424
- } = props, $[0] = props, $[1] = align, $[2] = border, $[3] = borderBottom, $[4] = borderLeft, $[5] = borderRight, $[6] = borderTop, $[7] = className, $[8] = column, $[9] = columnEnd, $[10] = columnStart, $[11] = columns, $[12] = direction, $[13] = flex, $[14] = gap, $[15] = gapX, $[16] = gapY, $[17] = height, $[18] = inset, $[19] = insetBottom, $[20] = insetLeft, $[21] = insetRight, $[22] = insetTop, $[23] = justify, $[24] = marginBottom, $[25] = marginLeft, $[26] = marginRight, $[27] = marginTop, $[28] = marginX, $[29] = marginY, $[30] = maxWidth, $[31] = muted, $[32] = overflow, $[33] = paddingBottom, $[34] = paddingLeft, $[35] = paddingRight, $[36] = paddingTop, $[37] = paddingX, $[38] = paddingY, $[39] = pointerEvents, $[40] = position, $[41] = radius, $[42] = restProps, $[43] = row, $[44] = rowEnd, $[45] = rowStart, $[46] = rows, $[47] = t0, $[48] = t1, $[49] = t2, $[50] = t3, $[51] = t4, $[52] = width, $[53] = wrap) : (align = $[1], border = $[2], borderBottom = $[3], borderLeft = $[4], borderRight = $[5], borderTop = $[6], className = $[7], column = $[8], columnEnd = $[9], columnStart = $[10], columns = $[11], direction = $[12], flex = $[13], gap = $[14], gapX = $[15], gapY = $[16], height = $[17], inset = $[18], insetBottom = $[19], insetLeft = $[20], insetRight = $[21], insetTop = $[22], justify = $[23], marginBottom = $[24], marginLeft = $[25], marginRight = $[26], marginTop = $[27], marginX = $[28], marginY = $[29], maxWidth = $[30], muted = $[31], overflow = $[32], paddingBottom = $[33], paddingLeft = $[34], paddingRight = $[35], paddingTop = $[36], paddingX = $[37], paddingY = $[38], pointerEvents = $[39], position = $[40], radius = $[41], restProps = $[42], row = $[43], rowEnd = $[44], rowStart = $[45], rows = $[46], t0 = $[47], t1 = $[48], t2 = $[49], t3 = $[50], t4 = $[51], width = $[52], wrap = $[53]);
427
+ } = props, $[0] = props, $[1] = align, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = border, $[6] = borderBottom, $[7] = borderLeft, $[8] = borderRight, $[9] = borderTop, $[10] = className, $[11] = column, $[12] = columnEnd, $[13] = columnStart, $[14] = columns, $[15] = direction, $[16] = flex, $[17] = gap, $[18] = gapX, $[19] = gapY, $[20] = height, $[21] = inset, $[22] = insetBottom, $[23] = insetLeft, $[24] = insetRight, $[25] = insetTop, $[26] = justify, $[27] = marginBottom, $[28] = marginLeft, $[29] = marginRight, $[30] = marginTop, $[31] = marginX, $[32] = marginY, $[33] = maxWidth, $[34] = muted, $[35] = overflow, $[36] = paddingBottom, $[37] = paddingLeft, $[38] = paddingRight, $[39] = paddingTop, $[40] = paddingX, $[41] = paddingY, $[42] = pointerEvents, $[43] = position, $[44] = radius, $[45] = restProps, $[46] = row, $[47] = rowEnd, $[48] = rowStart, $[49] = rows, $[50] = t0, $[51] = t1, $[52] = t2, $[53] = t3, $[54] = t4, $[55] = width, $[56] = wrap) : (align = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], border = $[5], borderBottom = $[6], borderLeft = $[7], borderRight = $[8], borderTop = $[9], className = $[10], column = $[11], columnEnd = $[12], columnStart = $[13], columns = $[14], direction = $[15], flex = $[16], gap = $[17], gapX = $[18], gapY = $[19], height = $[20], inset = $[21], insetBottom = $[22], insetLeft = $[23], insetRight = $[24], insetTop = $[25], justify = $[26], marginBottom = $[27], marginLeft = $[28], marginRight = $[29], marginTop = $[30], marginX = $[31], marginY = $[32], maxWidth = $[33], muted = $[34], overflow = $[35], paddingBottom = $[36], paddingLeft = $[37], paddingRight = $[38], paddingTop = $[39], paddingX = $[40], paddingY = $[41], pointerEvents = $[42], position = $[43], radius = $[44], restProps = $[45], row = $[46], rowEnd = $[47], rowStart = $[48], rows = $[49], t0 = $[50], t1 = $[51], t2 = $[52], t3 = $[53], t4 = $[54], width = $[55], wrap = $[56]);
425
428
  const As = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, sizing = t4 === void 0 ? "border" : t4;
426
429
  let t5;
427
- $[54] !== align || $[55] !== border || $[56] !== borderBottom || $[57] !== borderLeft || $[58] !== borderRight || $[59] !== borderTop || $[60] !== className || $[61] !== column || $[62] !== columnEnd || $[63] !== columnStart || $[64] !== columns || $[65] !== direction || $[66] !== display || $[67] !== flex || $[68] !== gap || $[69] !== gapX || $[70] !== gapY || $[71] !== height || $[72] !== inset || $[73] !== insetBottom || $[74] !== insetLeft || $[75] !== insetRight || $[76] !== insetTop || $[77] !== justify || $[78] !== margin || $[79] !== marginBottom || $[80] !== marginLeft || $[81] !== marginRight || $[82] !== marginTop || $[83] !== marginX || $[84] !== marginY || $[85] !== maxWidth || $[86] !== muted || $[87] !== overflow || $[88] !== padding || $[89] !== paddingBottom || $[90] !== paddingLeft || $[91] !== paddingRight || $[92] !== paddingTop || $[93] !== paddingX || $[94] !== paddingY || $[95] !== pointerEvents || $[96] !== position || $[97] !== radius || $[98] !== row || $[99] !== rowEnd || $[100] !== rowStart || $[101] !== rows || $[102] !== sizing || $[103] !== width || $[104] !== wrap ? (t5 = composeClassNames(className, box({
430
+ $[57] !== align || $[58] !== autoCols || $[59] !== autoFlow || $[60] !== autoRows || $[61] !== border || $[62] !== borderBottom || $[63] !== borderLeft || $[64] !== borderRight || $[65] !== borderTop || $[66] !== className || $[67] !== column || $[68] !== columnEnd || $[69] !== columnStart || $[70] !== columns || $[71] !== direction || $[72] !== display || $[73] !== flex || $[74] !== gap || $[75] !== gapX || $[76] !== gapY || $[77] !== height || $[78] !== inset || $[79] !== insetBottom || $[80] !== insetLeft || $[81] !== insetRight || $[82] !== insetTop || $[83] !== justify || $[84] !== margin || $[85] !== marginBottom || $[86] !== marginLeft || $[87] !== marginRight || $[88] !== marginTop || $[89] !== marginX || $[90] !== marginY || $[91] !== maxWidth || $[92] !== muted || $[93] !== overflow || $[94] !== padding || $[95] !== paddingBottom || $[96] !== paddingLeft || $[97] !== paddingRight || $[98] !== paddingTop || $[99] !== paddingX || $[100] !== paddingY || $[101] !== pointerEvents || $[102] !== position || $[103] !== radius || $[104] !== row || $[105] !== rowEnd || $[106] !== rowStart || $[107] !== rows || $[108] !== sizing || $[109] !== width || $[110] !== wrap ? (t5 = composeClassNames(className, box({
428
431
  align,
432
+ autoCols,
433
+ autoFlow,
434
+ autoRows,
429
435
  border,
430
436
  borderTop,
431
437
  borderRight,
@@ -475,9 +481,9 @@ const Box = forwardRef(function(props, ref) {
475
481
  sizing,
476
482
  width,
477
483
  wrap
478
- })), $[54] = align, $[55] = border, $[56] = borderBottom, $[57] = borderLeft, $[58] = borderRight, $[59] = borderTop, $[60] = className, $[61] = column, $[62] = columnEnd, $[63] = columnStart, $[64] = columns, $[65] = direction, $[66] = display, $[67] = flex, $[68] = gap, $[69] = gapX, $[70] = gapY, $[71] = height, $[72] = inset, $[73] = insetBottom, $[74] = insetLeft, $[75] = insetRight, $[76] = insetTop, $[77] = justify, $[78] = margin, $[79] = marginBottom, $[80] = marginLeft, $[81] = marginRight, $[82] = marginTop, $[83] = marginX, $[84] = marginY, $[85] = maxWidth, $[86] = muted, $[87] = overflow, $[88] = padding, $[89] = paddingBottom, $[90] = paddingLeft, $[91] = paddingRight, $[92] = paddingTop, $[93] = paddingX, $[94] = paddingY, $[95] = pointerEvents, $[96] = position, $[97] = radius, $[98] = row, $[99] = rowEnd, $[100] = rowStart, $[101] = rows, $[102] = sizing, $[103] = width, $[104] = wrap, $[105] = t5) : t5 = $[105];
484
+ })), $[57] = align, $[58] = autoCols, $[59] = autoFlow, $[60] = autoRows, $[61] = border, $[62] = borderBottom, $[63] = borderLeft, $[64] = borderRight, $[65] = borderTop, $[66] = className, $[67] = column, $[68] = columnEnd, $[69] = columnStart, $[70] = columns, $[71] = direction, $[72] = display, $[73] = flex, $[74] = gap, $[75] = gapX, $[76] = gapY, $[77] = height, $[78] = inset, $[79] = insetBottom, $[80] = insetLeft, $[81] = insetRight, $[82] = insetTop, $[83] = justify, $[84] = margin, $[85] = marginBottom, $[86] = marginLeft, $[87] = marginRight, $[88] = marginTop, $[89] = marginX, $[90] = marginY, $[91] = maxWidth, $[92] = muted, $[93] = overflow, $[94] = padding, $[95] = paddingBottom, $[96] = paddingLeft, $[97] = paddingRight, $[98] = paddingTop, $[99] = paddingX, $[100] = paddingY, $[101] = pointerEvents, $[102] = position, $[103] = radius, $[104] = row, $[105] = rowEnd, $[106] = rowStart, $[107] = rows, $[108] = sizing, $[109] = width, $[110] = wrap, $[111] = t5) : t5 = $[111];
479
485
  let t6;
480
- return $[106] !== As || $[107] !== props.children || $[108] !== ref || $[109] !== restProps || $[110] !== t5 ? (t6 = /* @__PURE__ */ jsx(As, { "data-ui": "Box", ...restProps, className: t5, ref, children: props.children }), $[106] = As, $[107] = props.children, $[108] = ref, $[109] = restProps, $[110] = t5, $[111] = t6) : t6 = $[111], t6;
486
+ return $[112] !== As || $[113] !== props.children || $[114] !== ref || $[115] !== restProps || $[116] !== t5 ? (t6 = /* @__PURE__ */ jsx(As, { "data-ui": "Box", ...restProps, className: t5, ref, children: props.children }), $[112] = As, $[113] = props.children, $[114] = ref, $[115] = restProps, $[116] = t5, $[117] = t6) : t6 = $[117], t6;
481
487
  });
482
488
  Box.displayName = "ForwardRef(Box)";
483
489
  const Label = forwardRef(function(props, ref) {
@@ -657,7 +663,7 @@ const Text = forwardRef(function(props, ref) {
657
663
  weight,
658
664
  ...restProps
659
665
  } = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = textOverflowProp, $[11] = weight) : (align = $[1], children = $[2], className = $[3], flex = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], textOverflowProp = $[10], weight = $[11]);
660
- const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 1 : t3;
666
+ const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 2 : t3;
661
667
  let t4;
662
668
  $[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = composeClassNames(className, text({
663
669
  accent,
@@ -757,7 +763,7 @@ const Button = forwardRef(function(props, ref) {
757
763
  paddingBottom,
758
764
  paddingLeft,
759
765
  paddingRight,
760
- radius = 3,
766
+ radius = 2,
761
767
  selected,
762
768
  space = props.gap ?? props.space ?? props.padding ?? 3,
763
769
  // eslint-disable-line @typescript-eslint/no-unused-vars
@@ -780,31 +786,56 @@ const Button = forwardRef(function(props, ref) {
780
786
  tone,
781
787
  width
782
788
  })), "data-disabled": loading || disabled ? "" : void 0, "data-selected": selected ? "" : void 0, disabled: !!(loading || disabled), href: disabled ? void 0 : href, ref, type, children: [
783
- !!loading && /* @__PURE__ */ jsx(Box, { align, as: "span", className: buttonLoadingBox(), display: "flex", flex: 1, justify, width: "fill", children: /* @__PURE__ */ jsx(Spinner, { size: fontSize }) }),
784
- (IconComponent || text2 || IconRightComponent) && /* @__PURE__ */ jsxs(Box, { as: "span", direction, display: "flex", flex: 1, gap, gapX, gapY, justify, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, width: "fill", wrap, children: [
785
- IconComponent && /* @__PURE__ */ jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
786
- isValidElement(IconComponent) && IconComponent,
787
- isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
788
- ] }),
789
- text2 && /* @__PURE__ */ jsx(
790
- Text,
791
- {
792
- align: textAlign,
793
- as: "span",
794
- flex: "none",
795
- muted,
796
- size: fontSize,
797
- textOverflow: textOverflow2,
798
- weight: textWeight,
799
- children: text2
800
- }
801
- ),
802
- IconRightComponent && /* @__PURE__ */ jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
803
- isValidElement(IconRightComponent) && IconRightComponent,
804
- isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
805
- ] })
806
- ] }),
807
- children && /* @__PURE__ */ jsx(Box, { as: "span", direction, display: "flex", flex: 1, gap, gapX, gapY, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, width: "fill", wrap, children })
789
+ !!loading && /* @__PURE__ */ jsx(Box, { align: "center", as: "span", className: buttonLoadingBox(), display: "flex", flex: 1, justify: "center", width: "fill", children: /* @__PURE__ */ jsx(Spinner, { size: fontSize }) }),
790
+ (IconComponent || text2 || IconRightComponent) && /* @__PURE__ */ jsxs(
791
+ Box,
792
+ {
793
+ as: "span",
794
+ direction,
795
+ display: "flex",
796
+ flex: 1,
797
+ gap,
798
+ gapX,
799
+ gapY,
800
+ justify,
801
+ padding,
802
+ paddingX,
803
+ paddingY,
804
+ paddingTop,
805
+ paddingBottom,
806
+ paddingLeft,
807
+ paddingRight,
808
+ children: [
809
+ IconComponent && /* @__PURE__ */ jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
810
+ isValidElement(IconComponent) && IconComponent,
811
+ isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
812
+ ] }),
813
+ text2 && /* @__PURE__ */ jsx(Text, { align: textAlign, as: "span", flex: "none", muted, size: fontSize, textOverflow: textOverflow2, weight: textWeight, children: text2 }),
814
+ IconRightComponent && /* @__PURE__ */ jsxs(Text, { as: "span", flex: "none", muted: !0, size: fontSize, children: [
815
+ isValidElement(IconRightComponent) && IconRightComponent,
816
+ isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
817
+ ] })
818
+ ]
819
+ }
820
+ ),
821
+ children && /* @__PURE__ */ jsx(
822
+ Box,
823
+ {
824
+ as: "span",
825
+ flex: 1,
826
+ gap,
827
+ gapX,
828
+ gapY,
829
+ padding,
830
+ paddingX,
831
+ paddingY,
832
+ paddingTop,
833
+ paddingBottom,
834
+ paddingLeft,
835
+ paddingRight,
836
+ children
837
+ }
838
+ )
808
839
  ] });
809
840
  });
810
841
  Button.displayName = "ForwardRef(Button)";
@@ -812,7 +843,7 @@ function useCard() {
812
843
  return useContext(CardContext);
813
844
  }
814
845
  const Card = forwardRef(function(props, ref) {
815
- const $ = c(48);
846
+ const $ = c(51);
816
847
  let asProp, className, pressed, restProps, schemeProp, selectable, selected, shadow, style, t0, t1, t2, t3;
817
848
  $[0] !== props ? ({
818
849
  __unstable_checkered: t0,
@@ -829,41 +860,41 @@ const Card = forwardRef(function(props, ref) {
829
860
  tone: t3,
830
861
  ...restProps
831
862
  } = props, $[0] = props, $[1] = asProp, $[2] = className, $[3] = pressed, $[4] = restProps, $[5] = schemeProp, $[6] = selectable, $[7] = selected, $[8] = shadow, $[9] = style, $[10] = t0, $[11] = t1, $[12] = t2, $[13] = t3) : (asProp = $[1], className = $[2], pressed = $[3], restProps = $[4], schemeProp = $[5], selectable = $[6], selected = $[7], shadow = $[8], style = $[9], t0 = $[10], t1 = $[11], t2 = $[12], t3 = $[13]);
832
- const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "inherit" : t3, as = isValidElementType(asProp) ? asProp : "div", parent = useCard(), t4 = parent?.tone ?? "default", t5 = parent?.scheme ?? "light";
863
+ const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = isValidElementType(asProp) ? asProp : "div", parent = useCard(), t4 = parent?.tone ?? "default", t5 = parent?.scheme ?? "light";
833
864
  let t6;
834
865
  $[14] !== t4 || $[15] !== t5 ? (t6 = {
835
866
  tone: t4,
836
867
  scheme: t5
837
868
  }, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16];
838
- const context = t6, tone = toneProp === "inherit" ? context.tone : toneProp, scheme = schemeProp === void 0 ? context.scheme : schemeProp, t7 = scheme === context.scheme ? void 0 : scheme, t8 = tone === context.tone ? void 0 : tone;
839
- let t9;
840
- if ($[17] !== className || $[18] !== radius || $[19] !== selectable || $[20] !== shadow || $[21] !== t7 || $[22] !== t8) {
841
- let t102;
842
- $[24] !== radius || $[25] !== selectable ? (t102 = selectable && _selectable({
869
+ const context = t6, tone = toneProp === "inherit" ? context.tone : toneProp, scheme = schemeProp === void 0 ? context.scheme : schemeProp, t7 = scheme === context.scheme ? void 0 : scheme;
870
+ let t8;
871
+ if ($[17] !== className || $[18] !== radius || $[19] !== selectable || $[20] !== shadow || $[21] !== t7 || $[22] !== tone) {
872
+ let t92;
873
+ $[24] !== radius || $[25] !== selectable ? (t92 = selectable && _selectable({
843
874
  radius
844
- }), $[24] = radius, $[25] = selectable, $[26] = t102) : t102 = $[26], t9 = composeClassNames(className, card({
875
+ }), $[24] = radius, $[25] = selectable, $[26] = t92) : t92 = $[26], t8 = composeClassNames(className, card({
845
876
  scheme: t7,
846
877
  shadow,
847
- tone: t8
848
- }), t102), $[17] = className, $[18] = radius, $[19] = selectable, $[20] = shadow, $[21] = t7, $[22] = t8, $[23] = t9;
878
+ tone
879
+ }), t92), $[17] = className, $[18] = radius, $[19] = selectable, $[20] = shadow, $[21] = t7, $[22] = tone, $[23] = t8;
849
880
  } else
850
- t9 = $[23];
851
- const t10 = checkered ? "" : void 0, t11 = focusRing ? "" : void 0, t12 = pressed ? "" : void 0, t13 = selected ? "" : void 0;
852
- let t14;
853
- $[27] !== as || $[28] !== radius || $[29] !== ref || $[30] !== restProps || $[31] !== style || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t9 ? (t14 = /* @__PURE__ */ jsx(Box, { "data-ui": "Card", ...restProps, as, className: t9, "data-checkered": t10, "data-focus-ring": t11, "data-pressed": t12, "data-selected": t13, radius, ref, style }), $[27] = as, $[28] = radius, $[29] = ref, $[30] = restProps, $[31] = style, $[32] = t10, $[33] = t11, $[34] = t12, $[35] = t13, $[36] = t9, $[37] = t14) : t14 = $[37];
854
- let node = t14;
881
+ t8 = $[23];
882
+ const t9 = checkered ? "" : void 0, t10 = focusRing ? "" : void 0, t11 = pressed ? "" : void 0, t12 = selected ? "" : void 0;
883
+ let t13;
884
+ $[27] !== as || $[28] !== context.scheme || $[29] !== context.tone || $[30] !== radius || $[31] !== ref || $[32] !== restProps || $[33] !== style || $[34] !== t10 || $[35] !== t11 || $[36] !== t12 || $[37] !== t8 || $[38] !== t9 || $[39] !== tone ? (t13 = /* @__PURE__ */ jsx(Box, { "data-ui": "Card", ...restProps, as, className: t8, "data-context-tone": context.tone, "data-context-scheme": context.scheme, "data-checkered": t9, "data-focus-ring": t10, "data-pressed": t11, "data-selected": t12, "data-tone": tone, radius, ref, style }), $[27] = as, $[28] = context.scheme, $[29] = context.tone, $[30] = radius, $[31] = ref, $[32] = restProps, $[33] = style, $[34] = t10, $[35] = t11, $[36] = t12, $[37] = t8, $[38] = t9, $[39] = tone, $[40] = t13) : t13 = $[40];
885
+ let node = t13;
855
886
  if (scheme === context.scheme && tone === context.tone)
856
887
  return node;
857
- const t15 = parent?.compat_provider, t16 = tone ?? context.tone;
858
- let t17;
859
- if ($[38] !== node || $[39] !== scheme || $[40] !== t15 || $[41] !== t16 ? (t17 = /* @__PURE__ */ jsx(CardProvider, { compat_provider: t15, rendered: !0, scheme, tone: t16, children: node }), $[38] = node, $[39] = scheme, $[40] = t15, $[41] = t16, $[42] = t17) : t17 = $[42], node = t17, parent?.compat_provider) {
860
- const t18 = tone ?? context.tone;
861
- let t19;
862
- return $[43] !== node || $[44] !== parent.compat_provider || $[45] !== scheme || $[46] !== t18 ? (t19 = createElement(parent.compat_provider, {
888
+ const t14 = parent?.compat_provider, t15 = tone ?? context.tone;
889
+ let t16;
890
+ if ($[41] !== node || $[42] !== scheme || $[43] !== t14 || $[44] !== t15 ? (t16 = /* @__PURE__ */ jsx(CardProvider, { compat_provider: t14, rendered: !0, scheme, tone: t15, children: node }), $[41] = node, $[42] = scheme, $[43] = t14, $[44] = t15, $[45] = t16) : t16 = $[45], node = t16, parent?.compat_provider) {
891
+ const t17 = tone ?? context.tone;
892
+ let t18;
893
+ return $[46] !== node || $[47] !== parent.compat_provider || $[48] !== scheme || $[49] !== t17 ? (t18 = createElement(parent.compat_provider, {
863
894
  children: node,
864
895
  scheme,
865
- tone: t18
866
- }), $[43] = node, $[44] = parent.compat_provider, $[45] = scheme, $[46] = t18, $[47] = t19) : t19 = $[47], t19;
896
+ tone: t17
897
+ }), $[46] = node, $[47] = parent.compat_provider, $[48] = scheme, $[49] = t17, $[50] = t18) : t18 = $[50], t18;
867
898
  }
868
899
  return node;
869
900
  });
@@ -995,7 +1026,7 @@ const Heading = forwardRef(function(props, ref) {
995
1026
  weight,
996
1027
  ...restProps
997
1028
  } = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = textOverflowProp, $[11] = weight) : (align = $[1], children = $[2], className = $[3], flex = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], textOverflowProp = $[10], weight = $[11]);
998
- const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 1 : t3;
1029
+ const accent = t0 === void 0 ? !1 : t0, As = t1 === void 0 ? "div" : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 2 : t3;
999
1030
  let t4;
1000
1031
  $[12] !== accent || $[13] !== align || $[14] !== className || $[15] !== flex || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t4 = composeClassNames(className, heading({
1001
1032
  accent,
@@ -1933,7 +1964,7 @@ const Select = forwardRef(function(props, forwardedRef) {
1933
1964
  space: t4,
1934
1965
  ...restProps
1935
1966
  } = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = gap, $[5] = readOnly, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4) : (children = $[1], customValidity = $[2], disabled = $[3], gap = $[4], readOnly = $[5], restProps = $[6], t0 = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11]);
1936
- const border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 2 : t2, radius = t3 === void 0 ? 2 : t3, space = t4 === void 0 ? 2 : t4, ref = useRef(null);
1967
+ const border = t0 === void 0 ? !0 : t0, fontSize = t1 === void 0 ? 2 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 1 : t3, space = t4 === void 0 ? 2 : t4, ref = useRef(null);
1937
1968
  let t5;
1938
1969
  $[12] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[12] = t5) : t5 = $[12], useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
1939
1970
  const t6 = gap ?? space;
@@ -1967,17 +1998,20 @@ const Select = forwardRef(function(props, forwardedRef) {
1967
1998
  });
1968
1999
  Select.displayName = "ForwardRef(Select)";
1969
2000
  const Stack = forwardRef(function(props, ref) {
1970
- const $ = c(10);
1971
- let as, gap, restProps, space;
2001
+ const $ = c(14);
2002
+ let as, className, gap, restProps, space;
1972
2003
  $[0] !== props ? ({
1973
2004
  as,
2005
+ className,
1974
2006
  gap,
1975
2007
  space,
1976
2008
  ...restProps
1977
- } = props, $[0] = props, $[1] = as, $[2] = gap, $[3] = restProps, $[4] = space) : (as = $[1], gap = $[2], restProps = $[3], space = $[4]);
1978
- const t0 = gap ?? space;
1979
- let t1;
1980
- return $[5] !== as || $[6] !== ref || $[7] !== restProps || $[8] !== t0 ? (t1 = /* @__PURE__ */ jsx(Box, { "data-ui": "Stack", ...restProps, as, direction: "column", display: "flex", gap: t0, ref }), $[5] = as, $[6] = ref, $[7] = restProps, $[8] = t0, $[9] = t1) : t1 = $[9], t1;
2009
+ } = props, $[0] = props, $[1] = as, $[2] = className, $[3] = gap, $[4] = restProps, $[5] = space) : (as = $[1], className = $[2], gap = $[3], restProps = $[4], space = $[5]);
2010
+ let t0;
2011
+ $[6] !== className ? (t0 = composeClassNames(className, stack()), $[6] = className, $[7] = t0) : t0 = $[7];
2012
+ const t1 = gap ?? space;
2013
+ let t2;
2014
+ return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t0 || $[12] !== t1 ? (t2 = /* @__PURE__ */ jsx(Box, { "data-ui": "Stack", ...restProps, as, autoRows: "min", className: t0, display: "grid", gap: t1, ref }), $[8] = as, $[9] = ref, $[10] = restProps, $[11] = t0, $[12] = t1, $[13] = t2) : t2 = $[13], t2;
1981
2015
  });
1982
2016
  Stack.displayName = "ForwardRef(Stack)";
1983
2017
  const Switch = forwardRef(function(props, forwardedRef) {