@serendie/ui 0.1.13 → 0.1.14
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/components/AccordionGroup.d.ts +1 -1
- package/dist/components/DropdownMenu.js +67 -55
- package/dist/components/IconButton.d.ts +35 -5
- package/dist/components/Search.js +44 -29
- package/dist/components/Select.d.ts +3 -1
- package/dist/components/Select.js +29 -19
- package/dist/components/TextArea.js +5 -4
- package/dist/preset.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui/styled-system/css/conditions.js +13 -13
- package/dist/ui/styled-system/helpers.js +104 -101
- package/dist/ui/styled-system/jsx/is-valid-prop.js +1 -1
- package/package.json +2 -2
- package/styled-system/css/conditions.js +4 -2
- package/styled-system/helpers.js +15 -5
- package/styled-system/jsx/is-valid-prop.js +2 -2
- package/styled-system/themes/index.js +1 -1
- package/styled-system/tokens/tokens.d.ts +1 -1
- package/styled-system/types/composition.d.ts +26 -0
- package/styled-system/types/conditions.d.ts +35 -3
- package/styled-system/types/global.d.ts +1 -0
- package/styled-system/types/jsx.d.ts +1 -1
- package/styled-system/types/prop-type.d.ts +3 -8
- package/styled-system/types/selectors.d.ts +1 -1
- package/styled-system/types/static-css.d.ts +9 -4
- package/styled-system/types/style-props.d.ts +229 -205
- package/styled-system/types/system-types.d.ts +108 -3
- /package/styled-system/themes/{asagi.json → theme-asagi.json} +0 -0
- /package/styled-system/themes/{kurikawa.json → theme-kurikawa.json} +0 -0
- /package/styled-system/themes/{sumire.json → theme-sumire.json} +0 -0
- /package/styled-system/themes/{tsutsuji.json → theme-tsutsuji.json} +0 -0
|
@@ -32,6 +32,12 @@ export interface Conditions {
|
|
|
32
32
|
"_expanded": string
|
|
33
33
|
/** `&[data-highlighted]` */
|
|
34
34
|
"_highlighted": string
|
|
35
|
+
/** `&[data-complete]` */
|
|
36
|
+
"_complete": string
|
|
37
|
+
/** `&[data-incomplete]` */
|
|
38
|
+
"_incomplete": string
|
|
39
|
+
/** `&[data-dragging]` */
|
|
40
|
+
"_dragging": string
|
|
35
41
|
/** `&::before` */
|
|
36
42
|
"_before": string
|
|
37
43
|
/** `&::after` */
|
|
@@ -112,9 +118,9 @@ export interface Conditions {
|
|
|
112
118
|
"_invalid": string
|
|
113
119
|
/** `&:autofill` */
|
|
114
120
|
"_autofill": string
|
|
115
|
-
/** `&:in-range` */
|
|
121
|
+
/** `&:is(:in-range, [data-in-range])` */
|
|
116
122
|
"_inRange": string
|
|
117
|
-
/** `&:out-of-range` */
|
|
123
|
+
/** `&:is(:out-of-range, [data-outside-range])` */
|
|
118
124
|
"_outOfRange": string
|
|
119
125
|
/** `&::placeholder, &[data-placeholder]` */
|
|
120
126
|
"_placeholder": string
|
|
@@ -124,6 +130,14 @@ export interface Conditions {
|
|
|
124
130
|
"_pressed": string
|
|
125
131
|
/** `&:is([aria-selected=true], [data-selected])` */
|
|
126
132
|
"_selected": string
|
|
133
|
+
/** `&:is([aria-grabbed=true], [data-grabbed])` */
|
|
134
|
+
"_grabbed": string
|
|
135
|
+
/** `&[data-state=under-value]` */
|
|
136
|
+
"_underValue": string
|
|
137
|
+
/** `&[data-state=over-value]` */
|
|
138
|
+
"_overValue": string
|
|
139
|
+
/** `&[data-state=at-value]` */
|
|
140
|
+
"_atValue": string
|
|
127
141
|
/** `&:default` */
|
|
128
142
|
"_default": string
|
|
129
143
|
/** `&:optional` */
|
|
@@ -132,14 +146,30 @@ export interface Conditions {
|
|
|
132
146
|
"_open": string
|
|
133
147
|
/** `&:is([closed], [data-closed], [data-state="closed"])` */
|
|
134
148
|
"_closed": string
|
|
135
|
-
/**
|
|
149
|
+
/** `&is(:fullscreen, [data-fullscreen])` */
|
|
136
150
|
"_fullscreen": string
|
|
137
151
|
/** `&:is([data-loading], [aria-busy=true])` */
|
|
138
152
|
"_loading": string
|
|
153
|
+
/** `&:is([hidden], [data-hidden])` */
|
|
154
|
+
"_hidden": string
|
|
155
|
+
/** `&:is([aria-current=true], [data-current])` */
|
|
156
|
+
"_current": string
|
|
139
157
|
/** `&[aria-current=page]` */
|
|
140
158
|
"_currentPage": string
|
|
141
159
|
/** `&[aria-current=step]` */
|
|
142
160
|
"_currentStep": string
|
|
161
|
+
/** `&[data-today]` */
|
|
162
|
+
"_today": string
|
|
163
|
+
/** `&[data-unavailable]` */
|
|
164
|
+
"_unavailable": string
|
|
165
|
+
/** `&[data-range-start]` */
|
|
166
|
+
"_rangeStart": string
|
|
167
|
+
/** `&[data-range-end]` */
|
|
168
|
+
"_rangeEnd": string
|
|
169
|
+
/** `&[data-now]` */
|
|
170
|
+
"_now": string
|
|
171
|
+
/** `&[data-topmost]` */
|
|
172
|
+
"_topmost": string
|
|
143
173
|
/** `@media (prefers-reduced-motion: reduce)` */
|
|
144
174
|
"_motionReduce": string
|
|
145
175
|
/** `@media (prefers-reduced-motion: no-preference)` */
|
|
@@ -178,6 +208,8 @@ export interface Conditions {
|
|
|
178
208
|
"_horizontal": string
|
|
179
209
|
/** `&[data-orientation=vertical]` */
|
|
180
210
|
"_vertical": string
|
|
211
|
+
/** `& :where(svg)` */
|
|
212
|
+
"_icon": string
|
|
181
213
|
/** `@starting-style` */
|
|
182
214
|
"_starting": string
|
|
183
215
|
/** `@media screen and (min-width: 48rem)` */
|
|
@@ -13,6 +13,7 @@ declare module '@pandacss/dev' {
|
|
|
13
13
|
export function defineStyles(definition: SystemStyleObject): SystemStyleObject
|
|
14
14
|
export function defineGlobalStyles(definition: GlobalStyleObject): Panda.GlobalStyleObject
|
|
15
15
|
export function defineTextStyles(definition: CompositionStyles['textStyles']): Panda.TextStyles
|
|
16
|
+
export function defineAnimationStyles(definition: CompositionStyles['animationStyles']): Panda.AnimationStyles
|
|
16
17
|
export function defineLayerStyles(definition: CompositionStyles['layerStyles']): Panda.LayerStyles
|
|
17
18
|
export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): Panda.PatternConfig
|
|
18
19
|
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import type { ComponentPropsWithoutRef, ElementType, ElementRef, Ref } from 'react'
|
|
2
|
+
import type { ComponentPropsWithoutRef, ElementType, ElementRef, JSX, Ref } from 'react'
|
|
3
3
|
import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './recipe';
|
|
4
4
|
import type { Assign, DistributiveOmit, DistributiveUnion, JsxHTMLProps, JsxStyleProps, Pretty } from './system-types';
|
|
5
5
|
|
|
@@ -19,12 +19,8 @@ export interface UtilityValues {
|
|
|
19
19
|
float: "start" | "end" | CssProperties["float"];
|
|
20
20
|
hideFrom: Tokens["breakpoints"];
|
|
21
21
|
hideBelow: Tokens["breakpoints"];
|
|
22
|
-
flexBasis: Tokens["
|
|
22
|
+
flexBasis: Tokens["sizes"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full";
|
|
23
23
|
flex: "1" | "auto" | "initial" | "none";
|
|
24
|
-
gridTemplateColumns: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
25
|
-
gridTemplateRows: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
26
|
-
gridColumn: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "full";
|
|
27
|
-
gridRow: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "full";
|
|
28
24
|
gridAutoColumns: "min" | "max" | "fr";
|
|
29
25
|
gridAutoRows: "min" | "max" | "fr";
|
|
30
26
|
gap: Tokens["spacing"];
|
|
@@ -154,7 +150,6 @@ export interface UtilityValues {
|
|
|
154
150
|
caretColor: Tokens["colors"];
|
|
155
151
|
scrollbar: "visible" | "hidden";
|
|
156
152
|
scrollbarColor: Tokens["colors"];
|
|
157
|
-
scrollbarGutter: Tokens["spacing"];
|
|
158
153
|
scrollbarWidth: Tokens["sizes"];
|
|
159
154
|
scrollMargin: Tokens["spacing"];
|
|
160
155
|
scrollMarginLeft: Tokens["spacing"];
|
|
@@ -197,12 +192,12 @@ export interface UtilityValues {
|
|
|
197
192
|
|
|
198
193
|
|
|
199
194
|
|
|
200
|
-
type WithColorOpacityModifier<T> = T extends string ? `${T}/${string}` :
|
|
195
|
+
type WithColorOpacityModifier<T> = [T] extends [string] ? `${T}/${string}` & { __colorOpacityModifier?: true } : never
|
|
201
196
|
|
|
202
197
|
type ImportantMark = "!" | "!important"
|
|
203
198
|
type WhitespaceImportant = ` ${ImportantMark}`
|
|
204
199
|
type Important = ImportantMark | WhitespaceImportant
|
|
205
|
-
type WithImportant<T> = T extends string ? `${T}${Important}` & { __important?: true } :
|
|
200
|
+
type WithImportant<T> = [T] extends [string] ? `${T}${Important}` & { __important?: true } : never
|
|
206
201
|
|
|
207
202
|
/**
|
|
208
203
|
* Only relevant when using `strictTokens` or `strictPropertyValues` in your config.
|
|
@@ -53,7 +53,7 @@ type DataAttributes =
|
|
|
53
53
|
type AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`
|
|
54
54
|
type ParentSelector = `${DataAttributes | AriaAttributes} &`
|
|
55
55
|
|
|
56
|
-
type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page'
|
|
56
|
+
type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page' | 'scope' | 'starting-style'
|
|
57
57
|
|
|
58
58
|
export type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`
|
|
59
59
|
export type Selectors = AttributeSelector | ParentSelector
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
interface
|
|
2
|
+
interface ConditionOptions {
|
|
3
3
|
/**
|
|
4
|
-
* The
|
|
4
|
+
* The conditions to generate for the rule.
|
|
5
5
|
* @example ['hover', 'focus']
|
|
6
6
|
*/
|
|
7
7
|
conditions?: string[]
|
|
8
|
+
/**
|
|
9
|
+
* Whether to generate responsive styles for the rule.
|
|
10
|
+
*/
|
|
8
11
|
responsive?: boolean
|
|
9
12
|
}
|
|
10
13
|
|
|
11
|
-
export interface CssRule extends
|
|
14
|
+
export interface CssRule extends ConditionOptions {
|
|
12
15
|
/**
|
|
13
16
|
* The css properties to generate utilities for.
|
|
14
17
|
* @example ['margin', 'padding']
|
|
@@ -22,7 +25,9 @@ interface RecipeRuleVariants {
|
|
|
22
25
|
[variant: string]: boolean | string[]
|
|
23
26
|
}
|
|
24
27
|
|
|
25
|
-
export type
|
|
28
|
+
export type RecipeRuleObject = RecipeRuleVariants & ConditionOptions
|
|
29
|
+
export type RecipeRule = '*' | RecipeRuleObject
|
|
30
|
+
|
|
26
31
|
export type PatternRule = '*' | CssRule
|
|
27
32
|
|
|
28
33
|
export interface StaticCssOptions {
|