@sanity/ui 3.0.0-static.16 → 3.0.0-static.18
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/README.md +2 -4
- package/bin/{ui.js → sanity-ui.cjs} +1 -1
- package/dist/_chunks-cjs/{_visual-editing.js → _visual-editing.cjs} +6 -6
- package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -0
- package/dist/_chunks-cjs/{buildCommand.js → buildCommand.cjs} +26 -10
- package/dist/_chunks-cjs/buildCommand.cjs.map +1 -0
- package/dist/_chunks-cjs/{refractor.js → refractor.cjs} +1 -1
- package/dist/_chunks-cjs/refractor.cjs.map +1 -0
- package/dist/_chunks-es/{_visual-editing.mjs → _visual-editing.js} +7 -7
- package/dist/_chunks-es/_visual-editing.js.map +1 -0
- package/dist/_chunks-es/{refractor.mjs → refractor.js} +1 -1
- package/dist/_chunks-es/refractor.js.map +1 -0
- package/dist/_visual-editing.cjs +30 -0
- package/dist/_visual-editing.cjs.map +1 -0
- package/dist/_visual-editing.js +29 -29
- package/dist/_visual-editing.js.map +1 -1
- package/dist/{cli.js → cli.cjs} +4 -4
- package/dist/cli.cjs.map +1 -0
- package/dist/{css.mjs → css.cjs} +491 -499
- package/dist/css.cjs.map +1 -0
- package/dist/{css.d.mts → css.d.cts} +26 -26
- package/dist/css.d.ts +26 -26
- package/dist/css.js +491 -497
- package/dist/css.js.map +1 -1
- package/dist/{index.mjs → index.cjs} +368 -367
- package/dist/{index.mjs.map → index.cjs.map} +1 -1
- package/dist/{index.d.mts → index.d.cts} +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +366 -367
- package/dist/index.js.map +1 -1
- package/dist/{theme.mjs → theme.cjs} +219 -196
- package/dist/theme.cjs.map +1 -0
- package/dist/{theme.d.mts → theme.d.cts} +2 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +218 -195
- package/dist/theme.js.map +1 -1
- package/dist/{sanity-palette.css → ui-palette.css} +1 -1
- package/dist/ui-palette.min.css +1 -0
- package/dist/{system.css → ui-system.css} +258 -140
- package/dist/ui-system.min.css +1 -0
- package/dist/{sanity-theme.css → ui-theme.css} +199 -199
- package/dist/ui-theme.min.css +1 -0
- package/dist/ui.css +29152 -0
- package/dist/ui.min.css +1 -0
- package/package.json +20 -20
- package/src/cli/buildCommand.ts +55 -20
- package/src/cli/index.ts +1 -1
- package/src/core/StyleTags.tsx +4 -4
- package/src/core/components/autocomplete/__workshop__/async.tsx +2 -2
- package/src/core/components/autocomplete/__workshop__/custom.tsx +2 -2
- package/src/core/components/autocomplete/__workshop__/focusAndBlur.tsx +3 -3
- package/src/core/hooks/useMediaIndex/useMediaIndex.test.tsx +2 -18
- package/src/core/hooks/useMediaIndex/useMediaIndex.ts +9 -9
- package/src/core/primitives/button/__workshop__/custom.tsx +18 -41
- package/src/core/primitives/button/button.tsx +3 -1
- package/src/core/primitives/card/__workshop__/asButton.tsx +0 -9
- package/src/core/primitives/card/__workshop__/interactive.tsx +0 -1
- package/src/core/primitives/card/__workshop__/props.tsx +0 -3
- package/src/core/primitives/card/__workshop__/selected.tsx +6 -37
- package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +1 -1
- package/src/core/primitives/heading/__workshop__/plain.tsx +1 -8
- package/src/core/primitives/label/__workshop__/plain.tsx +1 -9
- package/src/core/primitives/text/__workshop__/example.tsx +1 -9
- package/src/css/{compilePalette.ts → _compilePalette.ts} +2 -2
- package/src/css/{compileSystem.ts → _compileSystem.ts} +1 -1
- package/src/css/{compileTheme.ts → _compileTheme.ts} +3 -3
- package/src/css/{compileTheme_v3.ts → _compileTheme_v3.ts} +7 -1
- package/src/css/_system.style.ts +1 -0
- package/src/css/constants.ts +1 -0
- package/src/css/index.ts +3 -3
- package/src/css/primitives/button/button.style.ts +23 -9
- package/src/css/primitives/button/button.ts +1 -12
- package/src/css/primitives/button/types.ts +1 -6
- package/src/css/primitives/card/card.style.ts +12 -21
- package/src/css/primitives/kbd/kbd.style.ts +3 -6
- package/src/css/types.ts +32 -27
- package/src/theme/v3/color/buildColor_v3.ts +53 -25
- package/src/theme/v3/color/card.ts +0 -42
- package/src/theme/v3/color/renderColor.test.ts +1 -0
- package/src/theme/v3/color/renderColor.ts +9 -2
- package/src/theme/v3/color/token.ts +1 -0
- package/src/theme/v3/defaultTokens.ts +7 -2
- package/dist/_chunks-cjs/_visual-editing.js.map +0 -1
- package/dist/_chunks-cjs/buildCommand.js.map +0 -1
- package/dist/_chunks-cjs/refractor.js.map +0 -1
- package/dist/_chunks-es/_visual-editing.mjs.map +0 -1
- package/dist/_chunks-es/refractor.mjs.map +0 -1
- package/dist/_visual-editing.mjs +0 -30
- package/dist/_visual-editing.mjs.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/css.mjs.map +0 -1
- package/dist/sanity-palette.min.css +0 -1
- package/dist/sanity-theme.min.css +0 -1
- package/dist/system.min.css +0 -1
- package/dist/theme.mjs.map +0 -1
- package/src/css/primitives/button/_constants.ts +0 -17
- /package/dist/{_visual-editing.d.mts → _visual-editing.d.cts} +0 -0
- /package/dist/{cli.d.ts → cli.d.cts} +0 -0
|
@@ -5,6 +5,7 @@ import {BoxHeight} from '@sanity/ui/css'
|
|
|
5
5
|
import {BoxOverflow} from '@sanity/ui/css'
|
|
6
6
|
import {BoxSizing} from '@sanity/ui/css'
|
|
7
7
|
import type {BoxStyleProps} from '@sanity/ui/css'
|
|
8
|
+
import {Breakpoint} from '@sanity/ui/css'
|
|
8
9
|
import type {ButtonStyleProps} from '@sanity/ui/css'
|
|
9
10
|
import {CardContextValue as CardContextValue_2} from './types'
|
|
10
11
|
import {CardStyleProps as CardStyleProps_2} from '@sanity/ui/css'
|
|
@@ -1666,7 +1667,7 @@ export declare interface LayerProviderProps {
|
|
|
1666
1667
|
*/
|
|
1667
1668
|
export declare interface _MediaStore {
|
|
1668
1669
|
subscribe: (onStoreChange: () => void) => () => void
|
|
1669
|
-
getSnapshot: () =>
|
|
1670
|
+
getSnapshot: () => Breakpoint
|
|
1670
1671
|
}
|
|
1671
1672
|
|
|
1672
1673
|
/**
|
|
@@ -3264,7 +3265,7 @@ export declare function useMatchMedia(
|
|
|
3264
3265
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
3265
3266
|
* @beta
|
|
3266
3267
|
*/
|
|
3267
|
-
export declare function useMediaIndex():
|
|
3268
|
+
export declare function useMediaIndex(): Breakpoint
|
|
3268
3269
|
|
|
3269
3270
|
/** @public */
|
|
3270
3271
|
export declare function usePortal(): PortalContextValue
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {BoxHeight} from '@sanity/ui/css'
|
|
|
5
5
|
import {BoxOverflow} from '@sanity/ui/css'
|
|
6
6
|
import {BoxSizing} from '@sanity/ui/css'
|
|
7
7
|
import type {BoxStyleProps} from '@sanity/ui/css'
|
|
8
|
+
import {Breakpoint} from '@sanity/ui/css'
|
|
8
9
|
import type {ButtonStyleProps} from '@sanity/ui/css'
|
|
9
10
|
import {CardContextValue as CardContextValue_2} from './types'
|
|
10
11
|
import {CardStyleProps as CardStyleProps_2} from '@sanity/ui/css'
|
|
@@ -1666,7 +1667,7 @@ export declare interface LayerProviderProps {
|
|
|
1666
1667
|
*/
|
|
1667
1668
|
export declare interface _MediaStore {
|
|
1668
1669
|
subscribe: (onStoreChange: () => void) => () => void
|
|
1669
|
-
getSnapshot: () =>
|
|
1670
|
+
getSnapshot: () => Breakpoint
|
|
1670
1671
|
}
|
|
1671
1672
|
|
|
1672
1673
|
/**
|
|
@@ -3264,7 +3265,7 @@ export declare function useMatchMedia(
|
|
|
3264
3265
|
* This API might change. DO NOT USE IN PRODUCTION.
|
|
3265
3266
|
* @beta
|
|
3266
3267
|
*/
|
|
3267
|
-
export declare function useMediaIndex():
|
|
3268
|
+
export declare function useMediaIndex(): Breakpoint
|
|
3268
3269
|
|
|
3269
3270
|
/** @public */
|
|
3270
3271
|
export declare function usePortal(): PortalContextValue
|