@pallas-ui/style-context 0.1.0 → 0.1.1
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/index.js +26 -22
- package/dist/index.mjs +26 -22
- package/package.json +4 -4
- package/styled-system/css/conditions.mjs +1 -1
- package/styled-system/css/css.mjs +1 -1
- package/styled-system/css/sva.mjs +9 -4
- package/styled-system/helpers.mjs +12 -20
- package/styled-system/jsx/create-style-context.d.ts +54 -0
- package/styled-system/jsx/create-style-context.mjs +118 -0
- package/styled-system/jsx/factory.mjs +14 -5
- package/styled-system/jsx/index.d.ts +1 -0
- package/styled-system/jsx/index.mjs +1 -0
- package/styled-system/jsx/is-valid-prop.mjs +2 -2
- package/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/styled-system/patterns/bleed.d.ts +0 -1
- package/styled-system/patterns/box.d.ts +0 -1
- package/styled-system/patterns/center.d.ts +0 -1
- package/styled-system/patterns/circle.d.ts +0 -1
- package/styled-system/patterns/container.d.ts +0 -1
- package/styled-system/patterns/cq.d.ts +0 -1
- package/styled-system/patterns/divider.d.ts +0 -1
- package/styled-system/patterns/flex.d.ts +0 -1
- package/styled-system/patterns/float.d.ts +0 -1
- package/styled-system/patterns/grid-item.d.ts +0 -1
- package/styled-system/patterns/grid.d.ts +0 -1
- package/styled-system/patterns/grid.mjs +1 -1
- package/styled-system/patterns/hstack.d.ts +0 -1
- package/styled-system/patterns/hstack.mjs +1 -1
- package/styled-system/patterns/link-overlay.d.ts +0 -1
- package/styled-system/patterns/spacer.d.ts +0 -1
- package/styled-system/patterns/spacer.mjs +6 -2
- package/styled-system/patterns/square.d.ts +0 -1
- package/styled-system/patterns/stack.d.ts +0 -1
- package/styled-system/patterns/stack.mjs +1 -1
- package/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/styled-system/patterns/vstack.d.ts +0 -1
- package/styled-system/patterns/vstack.mjs +1 -1
- package/styled-system/patterns/wrap.d.ts +0 -1
- package/styled-system/patterns/wrap.mjs +1 -1
- package/styled-system/tokens/index.mjs +43 -7
- package/styled-system/tokens/tokens.d.ts +5 -5
- package/styled-system/types/composition.d.ts +86 -23
- package/styled-system/types/conditions.d.ts +49 -13
- package/styled-system/types/csstype.d.ts +6405 -5133
- package/styled-system/types/jsx.d.ts +27 -10
- package/styled-system/types/pattern.d.ts +4 -4
- package/styled-system/types/prop-type.d.ts +11 -1
- package/styled-system/types/style-props.d.ts +2851 -2230
- package/styled-system/types/system-types.d.ts +44 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue, Nested } from './conditions';
|
|
3
|
-
import type { AtRule, PropertiesFallback } from './csstype';
|
|
3
|
+
import type { AtRule, Globals, PropertiesFallback } from './csstype';
|
|
4
4
|
import type { SystemProperties, CssVarProperties } from './style-props';
|
|
5
5
|
|
|
6
6
|
type String = string & {}
|
|
@@ -22,9 +22,51 @@ export type Assign<T, U> = {
|
|
|
22
22
|
* Native css properties
|
|
23
23
|
* -----------------------------------------------------------------------------*/
|
|
24
24
|
|
|
25
|
+
type CornerShapeValue = 'round' | 'square' | 'bevel' | 'scoop' | 'notch' | 'squircle' | `superellipse(${number})`
|
|
26
|
+
|
|
27
|
+
export interface ModernCssProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Controls whether the entire element should be draggable instead of its contents.
|
|
30
|
+
*/
|
|
31
|
+
WebkitUserDrag?: Globals | 'auto' | 'element' | 'none'
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Specifies whether an element can be used to drag the entire app window (Electron).
|
|
35
|
+
*/
|
|
36
|
+
WebkitAppRegion?: Globals | 'drag' | 'no-drag'
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Sets the horizontal spacing between table borders.
|
|
40
|
+
*/
|
|
41
|
+
WebkitBorderHorizontalSpacing?: Globals | String | Number
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Sets the vertical spacing between table borders.
|
|
45
|
+
*/
|
|
46
|
+
WebkitBorderVerticalSpacing?: Globals | String | Number
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Controls the display of text content for security purposes (e.g., password fields).
|
|
50
|
+
*/
|
|
51
|
+
WebkitTextSecurity?: Globals | 'none' | 'circle' | 'disc' | 'square'
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Specifies the shape of a box's corners within the area defined by the border-radius property.
|
|
55
|
+
* @experimental
|
|
56
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/corner-shape
|
|
57
|
+
*/
|
|
58
|
+
cornerShape?:
|
|
59
|
+
| Globals
|
|
60
|
+
| CornerShapeValue
|
|
61
|
+
| `${CornerShapeValue} ${CornerShapeValue}`
|
|
62
|
+
| `${CornerShapeValue} ${CornerShapeValue} ${CornerShapeValue}`
|
|
63
|
+
| `${CornerShapeValue} ${CornerShapeValue} ${CornerShapeValue} ${CornerShapeValue}`
|
|
64
|
+
| String
|
|
65
|
+
}
|
|
66
|
+
|
|
25
67
|
export type CssProperty = keyof PropertiesFallback
|
|
26
68
|
|
|
27
|
-
export interface CssProperties extends PropertiesFallback<String | Number>, CssVarProperties {}
|
|
69
|
+
export interface CssProperties extends PropertiesFallback<String | Number>, CssVarProperties, ModernCssProperties {}
|
|
28
70
|
|
|
29
71
|
export interface CssKeyframes {
|
|
30
72
|
[name: string]: {
|