@pandacss/types 1.8.0 → 1.8.2

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.
@@ -21,140 +21,9 @@ export type Assign<T, U> = {
21
21
  * Native css properties
22
22
  * -----------------------------------------------------------------------------*/
23
23
 
24
- type DashedIdent = `--${string}`
25
-
26
- type StringToMultiple<T extends string> = T | `${T}, ${T}`
27
-
28
- export type PositionAreaAxis =
29
- | 'left'
30
- | 'center'
31
- | 'right'
32
- | 'x-start'
33
- | 'x-end'
34
- | 'span-x-start'
35
- | 'span-x-end'
36
- | 'x-self-start'
37
- | 'x-self-end'
38
- | 'span-x-self-start'
39
- | 'span-x-self-end'
40
- | 'span-all'
41
- | 'top'
42
- | 'bottom'
43
- | 'span-top'
44
- | 'span-bottom'
45
- | 'y-start'
46
- | 'y-end'
47
- | 'span-y-start'
48
- | 'span-y-end'
49
- | 'y-self-start'
50
- | 'y-self-end'
51
- | 'span-y-self-start'
52
- | 'span-y-self-end'
53
- | 'block-start'
54
- | 'block-end'
55
- | 'span-block-start'
56
- | 'span-block-end'
57
- | 'inline-start'
58
- | 'inline-end'
59
- | 'span-inline-start'
60
- | 'span-inline-end'
61
- | 'self-block-start'
62
- | 'self-block-end'
63
- | 'span-self-block-start'
64
- | 'span-self-block-end'
65
- | 'self-inline-start'
66
- | 'self-inline-end'
67
- | 'span-self-inline-start'
68
- | 'span-self-inline-end'
69
- | 'start'
70
- | 'end'
71
- | 'span-start'
72
- | 'span-end'
73
- | 'self-start'
74
- | 'self-end'
75
- | 'span-self-start'
76
- | 'span-self-end'
77
-
78
- type PositionTry =
79
- | 'normal'
80
- | 'flip-block'
81
- | 'flip-inline'
82
- | 'top'
83
- | 'bottom'
84
- | 'left'
85
- | 'right'
86
- | 'block-start'
87
- | 'block-end'
88
- | 'inline-start'
89
- | 'inline-end'
90
- | DashedIdent
24
+ type CornerShapeValue = 'round' | 'square' | 'bevel' | 'scoop' | 'notch' | 'squircle' | `superellipse(${number})`
91
25
 
92
26
  export interface ModernCssProperties {
93
- /**
94
- * Defines a name for the anchor element that can be referenced by positioned elements.
95
- */
96
- anchorName?: Globals | 'none' | DashedIdent | StringToMultiple<DashedIdent>
97
-
98
- /**
99
- * Defines the scope of anchor names within the element.
100
- */
101
- anchorScope?: Globals | 'none' | 'all' | DashedIdent | StringToMultiple<DashedIdent>
102
-
103
- /**
104
- * Controls how form elements size themselves.
105
- */
106
- fieldSizing?: Globals | 'fixed' | 'content'
107
-
108
- /**
109
- * Controls whether interpolation of size values should allow keywords.
110
- */
111
- interpolateSize?: Globals | 'allow-keywords' | 'numeric-only'
112
-
113
- /**
114
- * Specifies the anchor element that this positioned element should be positioned relative to.
115
- */
116
- positionAnchor?: Globals | 'auto' | DashedIdent
117
-
118
- /**
119
- * Specifies the area within the anchor element where this positioned element should be placed.
120
- */
121
- positionArea?: Globals | 'auto' | PositionAreaAxis | `${PositionAreaAxis} ${PositionAreaAxis}` | String
122
-
123
- /**
124
- * Specifies the position try options for the element.
125
- */
126
- positionTry?: Globals | StringToMultiple<PositionTry> | String
127
-
128
- /**
129
- * Specifies fallback position try options when the primary position fails.
130
- */
131
- positionTryFallback?: Globals | 'none' | StringToMultiple<PositionTry> | String
132
-
133
- /**
134
- * Specifies the order in which position try options should be attempted.
135
- */
136
- positionTryOrder?: Globals | 'normal' | 'most-width' | 'most-height' | 'most-block-size' | 'most-inline-size'
137
-
138
- /**
139
- * Controls when the positioned element should be visible.
140
- */
141
- positionVisibility?: Globals | 'always' | 'anchors-visible' | 'no-overflow'
142
-
143
- /**
144
- * Controls whether text should wrap or not.
145
- */
146
- textWrapMode?: Globals | 'wrap' | 'nowrap'
147
-
148
- /**
149
- * Controls trimming of spacing in text.
150
- */
151
- textSpacingTrim?: Globals | 'normal' | 'space-all' | 'space-first' | 'trim-start'
152
-
153
- /**
154
- * Controls the style of text wrapping.
155
- */
156
- textWrapStyle?: Globals | 'auto' | 'balance' | 'pretty' | 'stable'
157
-
158
27
  /**
159
28
  * Controls whether the entire element should be draggable instead of its contents.
160
29
  */
@@ -179,6 +48,19 @@ export interface ModernCssProperties {
179
48
  * Controls the display of text content for security purposes (e.g., password fields).
180
49
  */
181
50
  WebkitTextSecurity?: Globals | 'none' | 'circle' | 'disc' | 'square'
51
+
52
+ /**
53
+ * Specifies the shape of a box's corners within the area defined by the border-radius property.
54
+ * @experimental
55
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/corner-shape
56
+ */
57
+ cornerShape?:
58
+ | Globals
59
+ | CornerShapeValue
60
+ | `${CornerShapeValue} ${CornerShapeValue}`
61
+ | `${CornerShapeValue} ${CornerShapeValue} ${CornerShapeValue}`
62
+ | `${CornerShapeValue} ${CornerShapeValue} ${CornerShapeValue} ${CornerShapeValue}`
63
+ | String
182
64
  }
183
65
 
184
66
  export type CssProperty = keyof PropertiesFallback
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -27,12 +27,12 @@
27
27
  "dist"
28
28
  ],
29
29
  "devDependencies": {
30
- "csstype": "3.1.3",
30
+ "csstype": "3.2.3",
31
31
  "microdiff": "1.5.0",
32
32
  "ncp": "2.0.0",
33
33
  "pkg-types": "2.3.0",
34
34
  "ts-morph": "27.0.2",
35
- "@pandacss/extractor": "1.8.0"
35
+ "@pandacss/extractor": "1.8.2"
36
36
  },
37
37
  "scripts": {
38
38
  "dev": "tsx scripts/watch.ts",