@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.
- package/dist/_chunks-cjs/_visual-editing.js +81 -31
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +82 -32
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +14 -11
- package/dist/_visual-editing.d.ts +14 -11
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +144 -852
- package/dist/css.d.ts +144 -852
- package/dist/css.js +155 -141
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +154 -141
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +14 -11
- package/dist/index.d.ts +14 -11
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +54 -49
- package/dist/theme.js +271 -33
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +252 -16
- package/dist/theme.mjs.map +1 -1
- package/package.json +2 -2
- package/src/css/aspects/flex/flexJustify.style.ts +3 -3
- package/src/css/aspects/grid/types.ts +2 -2
- package/src/css/index.ts +2 -2
- package/src/css/primitives/_input/__workshop__/index.ts +1 -1
- package/src/css/primitives/button/button.style.ts +6 -4
- package/src/css/primitives/stack/index.ts +1 -0
- package/src/css/primitives/stack/stack.style.ts +9 -0
- package/src/css/primitives/stack/stack.ts +6 -0
- package/src/css/system.style.ts +2 -0
- package/src/theme/v3/defaults.ts +1 -1
- package/src/ui/components/autocomplete/__workshop__/index.ts +1 -1
- package/src/ui/components/dialog/dialog.tsx +3 -4
- package/src/ui/constants.ts +6 -0
- package/src/ui/hooks/useMediaIndex/useMediaIndex.ts +0 -2
- package/src/ui/primitives/box/box.tsx +6 -0
- package/src/ui/primitives/button/button.tsx +11 -10
- package/src/ui/primitives/code/code.tsx +1 -1
- package/src/ui/primitives/popover/popover.tsx +5 -75
- package/src/ui/primitives/stack/stack.tsx +10 -5
- package/src/ui/primitives/textInput/textInput.tsx +1 -1
- package/src/ui/primitives/tooltip/tooltip.tsx +2 -3
- package/dist/_chunks-cjs/v3_v2.js +0 -251
- package/dist/_chunks-cjs/v3_v2.js.map +0 -1
- package/dist/_chunks-es/v3_v2.mjs +0 -252
- 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
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
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<
|
|
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
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
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<
|
|
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.
|
|
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 {
|