@sanity/ui 3.0.0-static.4 → 3.0.0-static.6

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 (51) hide show
  1. package/dist/_chunks-cjs/_visual-editing.js +81 -31
  2. package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
  3. package/dist/_chunks-es/_visual-editing.mjs +82 -32
  4. package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
  5. package/dist/_visual-editing.d.mts +14 -11
  6. package/dist/_visual-editing.d.ts +14 -11
  7. package/dist/cli.js +1 -1
  8. package/dist/css.d.mts +144 -852
  9. package/dist/css.d.ts +144 -852
  10. package/dist/css.js +155 -141
  11. package/dist/css.js.map +1 -1
  12. package/dist/css.mjs +154 -141
  13. package/dist/css.mjs.map +1 -1
  14. package/dist/index.d.mts +14 -11
  15. package/dist/index.d.ts +14 -11
  16. package/dist/index.js +2 -4
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +4 -6
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/sanity-theme.css +1 -1
  21. package/dist/system.css +54 -49
  22. package/dist/theme.js +271 -33
  23. package/dist/theme.js.map +1 -1
  24. package/dist/theme.mjs +252 -16
  25. package/dist/theme.mjs.map +1 -1
  26. package/package.json +2 -2
  27. package/src/css/aspects/flex/flexJustify.style.ts +3 -3
  28. package/src/css/aspects/grid/types.ts +2 -2
  29. package/src/css/index.ts +2 -2
  30. package/src/css/primitives/_input/__workshop__/index.ts +1 -1
  31. package/src/css/primitives/button/button.style.ts +6 -4
  32. package/src/css/primitives/stack/index.ts +1 -0
  33. package/src/css/primitives/stack/stack.style.ts +9 -0
  34. package/src/css/primitives/stack/stack.ts +6 -0
  35. package/src/css/system.style.ts +2 -0
  36. package/src/theme/v3/defaults.ts +1 -1
  37. package/src/ui/components/autocomplete/__workshop__/index.ts +1 -1
  38. package/src/ui/components/dialog/dialog.tsx +3 -4
  39. package/src/ui/constants.ts +6 -0
  40. package/src/ui/hooks/useMediaIndex/useMediaIndex.ts +0 -2
  41. package/src/ui/primitives/box/box.tsx +6 -0
  42. package/src/ui/primitives/button/button.tsx +11 -10
  43. package/src/ui/primitives/code/code.tsx +1 -1
  44. package/src/ui/primitives/popover/popover.tsx +5 -75
  45. package/src/ui/primitives/stack/stack.tsx +10 -5
  46. package/src/ui/primitives/textInput/textInput.tsx +1 -1
  47. package/src/ui/primitives/tooltip/tooltip.tsx +2 -3
  48. package/dist/_chunks-cjs/v3_v2.js +0 -251
  49. package/dist/_chunks-cjs/v3_v2.js.map +0 -1
  50. package/dist/_chunks-es/v3_v2.mjs +0 -252
  51. package/dist/_chunks-es/v3_v2.mjs.map +0 -1
@@ -431,16 +431,16 @@ export declare interface PopoverProps extends CardProps, LayerProps {
431
431
  ref: ForwardedRef<HTMLElement>
432
432
  }>
433
433
  /**
434
- * When `true`, prevent overflow within the current boundary:
435
- * - by flipping on its side axis
436
- * - by resizing
437
- /*
438
- * Note that:
439
- * - setting `preventOverflow` to `true` also prevents overflow on its side axis
440
- * - setting `matchReferenceWidth` to `true` also causes the popover to resize
441
- *
442
- * @defaultValue false
443
- */
434
+ * When `true`, prevent overflow within the current boundary:
435
+ * - by flipping on its side axis
436
+ * - by resizing
437
+ *
438
+ * Note that:
439
+ * - setting `preventOverflow` to `true` also prevents overflow on its side axis
440
+ * - setting `matchReferenceWidth` to `true` also causes the popover to resize
441
+ *
442
+ * @defaultValue false
443
+ */
444
444
  constrainSize?: boolean
445
445
  content?: ReactNode
446
446
  disabled?: boolean
@@ -573,7 +573,10 @@ export declare const Stack: ForwardRefExoticComponent<
573
573
  * @public
574
574
  */
575
575
  export declare interface StackProps
576
- extends Omit<BoxProps, 'direction' | 'display' | 'gapX' | 'gapY'> {
576
+ extends Omit<
577
+ BoxProps,
578
+ 'align' | 'columns' | 'direction' | 'display' | 'gapX' | 'gapY' | 'justify'
579
+ > {
577
580
  /** @deprecated Use `gap` instead. */
578
581
  space?: ResponsiveProp<Space>
579
582
  }
@@ -431,16 +431,16 @@ export declare interface PopoverProps extends CardProps, LayerProps {
431
431
  ref: ForwardedRef<HTMLElement>
432
432
  }>
433
433
  /**
434
- * When `true`, prevent overflow within the current boundary:
435
- * - by flipping on its side axis
436
- * - by resizing
437
- /*
438
- * Note that:
439
- * - setting `preventOverflow` to `true` also prevents overflow on its side axis
440
- * - setting `matchReferenceWidth` to `true` also causes the popover to resize
441
- *
442
- * @defaultValue false
443
- */
434
+ * When `true`, prevent overflow within the current boundary:
435
+ * - by flipping on its side axis
436
+ * - by resizing
437
+ *
438
+ * Note that:
439
+ * - setting `preventOverflow` to `true` also prevents overflow on its side axis
440
+ * - setting `matchReferenceWidth` to `true` also causes the popover to resize
441
+ *
442
+ * @defaultValue false
443
+ */
444
444
  constrainSize?: boolean
445
445
  content?: ReactNode
446
446
  disabled?: boolean
@@ -573,7 +573,10 @@ export declare const Stack: ForwardRefExoticComponent<
573
573
  * @public
574
574
  */
575
575
  export declare interface StackProps
576
- extends Omit<BoxProps, 'direction' | 'display' | 'gapX' | 'gapY'> {
576
+ extends Omit<
577
+ BoxProps,
578
+ 'align' | 'columns' | 'direction' | 'display' | 'gapX' | 'gapY' | 'justify'
579
+ > {
577
580
  /** @deprecated Use `gap` instead. */
578
581
  space?: ResponsiveProp<Space>
579
582
  }
package/dist/cli.js CHANGED
@@ -335,7 +335,7 @@ class CAC extends events.EventEmitter {
335
335
  }
336
336
  }
337
337
  const cac = (name = "") => new CAC(name);
338
- var version = "3.0.0-static.4";
338
+ var version = "3.0.0-static.6";
339
339
  const cli = cac("ui");
340
340
  cli.command("build").option("--cwd [cwd]", "Working directory").option("--outDir [outDir]", "Output directory").action(async (options) => {
341
341
  const {