@likec4/styles 1.39.5 → 1.41.0
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/dev.ts +1 -1
- package/dist/css/css.mjs +1 -1
- package/dist/jsx/factory.mjs +9 -3
- package/dist/jsx/is-valid-prop.mjs +1 -1
- package/dist/preset.d.mts +22 -67
- package/dist/preset.mjs +95 -70
- package/dist/tokens/index.mjs +8 -0
- package/dist/tokens/tokens.d.ts +3 -3
- package/dist/types/composition.d.ts +83 -23
- package/dist/types/conditions.d.ts +1 -1
- package/dist/types/jsx.d.ts +19 -5
- package/dist/types/prop-type.d.ts +9 -4
- package/dist/types/style-props.d.ts +8 -2
- package/package.json +8 -5
|
@@ -15,6 +15,8 @@ interface Recursive<T> {
|
|
|
15
15
|
* -----------------------------------------------------------------------------*/
|
|
16
16
|
|
|
17
17
|
type TextStyleProperty =
|
|
18
|
+
| 'color'
|
|
19
|
+
| 'direction'
|
|
18
20
|
| 'font'
|
|
19
21
|
| 'fontFamily'
|
|
20
22
|
| 'fontFeatureSettings'
|
|
@@ -35,6 +37,7 @@ type TextStyleProperty =
|
|
|
35
37
|
| 'fontVariantPosition'
|
|
36
38
|
| 'fontVariationSettings'
|
|
37
39
|
| 'fontWeight'
|
|
40
|
+
| 'hangingPunctuation'
|
|
38
41
|
| 'hypens'
|
|
39
42
|
| 'hyphenateCharacter'
|
|
40
43
|
| 'hyphenateLimitChars'
|
|
@@ -43,11 +46,17 @@ type TextStyleProperty =
|
|
|
43
46
|
| 'lineHeight'
|
|
44
47
|
| 'quotes'
|
|
45
48
|
| 'overflowWrap'
|
|
49
|
+
| 'tabSize'
|
|
50
|
+
| 'textAlign'
|
|
51
|
+
| 'textAlignLast'
|
|
46
52
|
| 'textCombineUpright'
|
|
47
53
|
| 'textDecoration'
|
|
48
54
|
| 'textDecorationColor'
|
|
49
55
|
| 'textDecorationLine'
|
|
56
|
+
| 'textDecorationSkip'
|
|
57
|
+
| 'textDecorationSkipBox'
|
|
50
58
|
| 'textDecorationSkipInk'
|
|
59
|
+
| 'textDecorationSkipInset'
|
|
51
60
|
| 'textDecorationStyle'
|
|
52
61
|
| 'textDecorationThickness'
|
|
53
62
|
| 'textEmphasis'
|
|
@@ -60,16 +69,21 @@ type TextStyleProperty =
|
|
|
60
69
|
| 'textOverflow'
|
|
61
70
|
| 'textRendering'
|
|
62
71
|
| 'textShadow'
|
|
72
|
+
| 'textStroke'
|
|
73
|
+
| 'textStrokeColor'
|
|
74
|
+
| 'textStrokeWidth'
|
|
63
75
|
| 'textTransform'
|
|
64
76
|
| 'textUnderlineOffset'
|
|
65
77
|
| 'textUnderlinePosition'
|
|
66
78
|
| 'textWrap'
|
|
67
79
|
| 'textWrapMode'
|
|
68
80
|
| 'textWrapStyle'
|
|
81
|
+
| 'unicodeBidi'
|
|
69
82
|
| 'verticalAlign'
|
|
70
83
|
| 'whiteSpace'
|
|
71
84
|
| 'wordBreak'
|
|
72
85
|
| 'wordSpacing'
|
|
86
|
+
| 'writingMode'
|
|
73
87
|
|
|
74
88
|
export type TextStyle = CompositionStyleObject<TextStyleProperty>
|
|
75
89
|
|
|
@@ -79,17 +93,11 @@ export type TextStyles = Recursive<Token<TextStyle>>
|
|
|
79
93
|
* Layer styles
|
|
80
94
|
* -----------------------------------------------------------------------------*/
|
|
81
95
|
|
|
82
|
-
type
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
| 'Inline'
|
|
88
|
-
| 'Block'
|
|
89
|
-
| 'InlineStart'
|
|
90
|
-
| 'InlineEnd'
|
|
91
|
-
| 'BlockStart'
|
|
92
|
-
| 'BlockEnd'
|
|
96
|
+
type LogicalPlacement = 'Inline' | 'Block' | 'InlineStart' | 'InlineEnd' | 'BlockStart' | 'BlockEnd'
|
|
97
|
+
|
|
98
|
+
type PhysicalPlacement = 'Top' | 'Right' | 'Bottom' | 'Left'
|
|
99
|
+
|
|
100
|
+
type Placement = PhysicalPlacement | LogicalPlacement
|
|
93
101
|
|
|
94
102
|
type Radius =
|
|
95
103
|
| `Top${'Right' | 'Left'}`
|
|
@@ -98,20 +106,80 @@ type Radius =
|
|
|
98
106
|
| `End${'Start' | 'End'}`
|
|
99
107
|
|
|
100
108
|
type LayerStyleProperty =
|
|
109
|
+
| 'aspectRatio'
|
|
101
110
|
| 'background'
|
|
102
111
|
| 'backgroundColor'
|
|
103
112
|
| 'backgroundImage'
|
|
104
|
-
| 'borderRadius'
|
|
105
113
|
| 'border'
|
|
106
|
-
| 'borderWidth'
|
|
107
114
|
| 'borderColor'
|
|
115
|
+
| 'borderImage'
|
|
116
|
+
| 'borderImageOutset'
|
|
117
|
+
| 'borderImageRepeat'
|
|
118
|
+
| 'borderImageSlice'
|
|
119
|
+
| 'borderImageSource'
|
|
120
|
+
| 'borderImageWidth'
|
|
121
|
+
| 'borderRadius'
|
|
108
122
|
| 'borderStyle'
|
|
123
|
+
| 'borderWidth'
|
|
124
|
+
| `border${Placement}`
|
|
125
|
+
| `border${Placement}Color`
|
|
126
|
+
| `border${Placement}Style`
|
|
127
|
+
| `border${Placement}Width`
|
|
128
|
+
| 'borderRadius'
|
|
129
|
+
| `border${Radius}Radius`
|
|
109
130
|
| 'boxShadow'
|
|
131
|
+
| 'boxShadowColor'
|
|
132
|
+
| 'clipPath'
|
|
133
|
+
| 'color'
|
|
134
|
+
| 'contain'
|
|
135
|
+
| 'content'
|
|
136
|
+
| 'contentVisibility'
|
|
137
|
+
| 'cursor'
|
|
138
|
+
| 'display'
|
|
110
139
|
| 'filter'
|
|
111
140
|
| 'backdropFilter'
|
|
112
|
-
| '
|
|
113
|
-
| '
|
|
141
|
+
| 'height'
|
|
142
|
+
| 'width'
|
|
143
|
+
| 'minHeight'
|
|
144
|
+
| 'minWidth'
|
|
145
|
+
| 'maxHeight'
|
|
146
|
+
| 'maxWidth'
|
|
147
|
+
| `margin${Placement}`
|
|
148
|
+
| 'inset'
|
|
149
|
+
| `inset${LogicalPlacement}`
|
|
150
|
+
| Lowercase<PhysicalPlacement>
|
|
151
|
+
| 'isolation'
|
|
152
|
+
| 'mask'
|
|
153
|
+
| 'maskClip'
|
|
154
|
+
| 'maskComposite'
|
|
155
|
+
| 'maskImage'
|
|
156
|
+
| 'maskMode'
|
|
157
|
+
| 'maskOrigin'
|
|
158
|
+
| 'maskPosition'
|
|
159
|
+
| 'maskRepeat'
|
|
160
|
+
| 'maskSize'
|
|
161
|
+
| 'mixBlendMode'
|
|
162
|
+
| 'objectFit'
|
|
163
|
+
| 'objectPosition'
|
|
114
164
|
| 'opacity'
|
|
165
|
+
| 'outline'
|
|
166
|
+
| 'outlineColor'
|
|
167
|
+
| 'outlineOffset'
|
|
168
|
+
| 'outlineStyle'
|
|
169
|
+
| 'outlineWidth'
|
|
170
|
+
| 'overflow'
|
|
171
|
+
| 'overflowX'
|
|
172
|
+
| 'overflowY'
|
|
173
|
+
| 'padding'
|
|
174
|
+
| `padding${Placement}`
|
|
175
|
+
| 'pointerEvents'
|
|
176
|
+
| 'position'
|
|
177
|
+
| 'resize'
|
|
178
|
+
| 'transform'
|
|
179
|
+
| 'transition'
|
|
180
|
+
| 'visibility'
|
|
181
|
+
| 'willChange'
|
|
182
|
+
| 'zIndex'
|
|
115
183
|
| 'backgroundBlendMode'
|
|
116
184
|
| 'backgroundAttachment'
|
|
117
185
|
| 'backgroundClip'
|
|
@@ -119,14 +187,6 @@ type LayerStyleProperty =
|
|
|
119
187
|
| 'backgroundPosition'
|
|
120
188
|
| 'backgroundRepeat'
|
|
121
189
|
| 'backgroundSize'
|
|
122
|
-
| `border${Placement}`
|
|
123
|
-
| `border${Placement}Width`
|
|
124
|
-
| 'borderRadius'
|
|
125
|
-
| `border${Radius}Radius`
|
|
126
|
-
| `border${Placement}Color`
|
|
127
|
-
| `border${Placement}Style`
|
|
128
|
-
| 'padding'
|
|
129
|
-
| `padding${Placement}`
|
|
130
190
|
|
|
131
191
|
export type LayerStyle = CompositionStyleObject<LayerStyleProperty>
|
|
132
192
|
|
|
@@ -258,7 +258,7 @@ export interface Conditions {
|
|
|
258
258
|
"_edgeActive": string
|
|
259
259
|
/** `:where(.react-flow__node, .react-flow__edge):has([data-likec4-hovered="true"]) &` */
|
|
260
260
|
"_whenHovered": string
|
|
261
|
-
/** `:where(.react-flow__node
|
|
261
|
+
/** `:where(.react-flow__node, .react-flow__edge):is(.selected) &` */
|
|
262
262
|
"_whenSelected": string
|
|
263
263
|
/** `:where(.react-flow__node, .react-flow__edge):has([data-likec4-dimmed]) &` */
|
|
264
264
|
"_whenDimmed": string
|
package/dist/types/jsx.d.ts
CHANGED
|
@@ -7,13 +7,27 @@ interface Dict {
|
|
|
7
7
|
[k: string]: unknown
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
export interface UnstyledProps {
|
|
11
|
+
/**
|
|
12
|
+
* Whether to remove recipe styles
|
|
13
|
+
*/
|
|
14
|
+
unstyled?: boolean | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface AsProps {
|
|
18
|
+
/**
|
|
19
|
+
* The element to render as
|
|
20
|
+
*/
|
|
21
|
+
as?: ElementType | undefined
|
|
22
|
+
}
|
|
23
|
+
|
|
10
24
|
export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {
|
|
11
25
|
ref?: Ref<ElementRef<T>>
|
|
12
26
|
}
|
|
13
27
|
|
|
14
28
|
export interface StyledComponent<T extends ElementType, P extends Dict = {}> {
|
|
15
|
-
(props: JsxHTMLProps<ComponentProps<T
|
|
16
|
-
displayName?: string
|
|
29
|
+
(props: JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, Assign<JsxStyleProps, P>>): JSX.Element
|
|
30
|
+
displayName?: string | undefined
|
|
17
31
|
}
|
|
18
32
|
|
|
19
33
|
interface RecipeFn {
|
|
@@ -22,12 +36,12 @@ interface RecipeFn {
|
|
|
22
36
|
|
|
23
37
|
interface JsxFactoryOptions<TProps extends Dict> {
|
|
24
38
|
dataAttr?: boolean
|
|
25
|
-
defaultProps?: TProps
|
|
39
|
+
defaultProps?: Partial<TProps>
|
|
26
40
|
shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
|
|
27
41
|
forwardProps?: string[]
|
|
28
42
|
}
|
|
29
43
|
|
|
30
|
-
export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T
|
|
44
|
+
export type JsxRecipeProps<T extends ElementType, P extends Dict> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, P>;
|
|
31
45
|
|
|
32
46
|
export type JsxElement<T extends ElementType, P extends Dict> = T extends StyledComponent<infer A, infer B>
|
|
33
47
|
? StyledComponent<A, Pretty<DistributiveUnion<P, B>>>
|
|
@@ -48,6 +62,6 @@ export type JsxElements = {
|
|
|
48
62
|
|
|
49
63
|
export type Styled = JsxFactory & JsxElements
|
|
50
64
|
|
|
51
|
-
export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T
|
|
65
|
+
export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T> & UnstyledProps & AsProps, JsxStyleProps>
|
|
52
66
|
|
|
53
67
|
export type StyledVariantProps<T extends StyledComponent<any, any>> = T extends StyledComponent<any, infer Props> ? Props : never
|
|
@@ -55,6 +55,10 @@ export interface UtilityValues {
|
|
|
55
55
|
outlineColor: Tokens["colors"];
|
|
56
56
|
outline: Tokens["borders"];
|
|
57
57
|
outlineOffset: Tokens["spacing"];
|
|
58
|
+
focusRing: "outside" | "inside" | "mixed" | "none";
|
|
59
|
+
focusVisibleRing: "outside" | "inside" | "mixed" | "none";
|
|
60
|
+
focusRingColor: Tokens["colors"];
|
|
61
|
+
focusRingOffset: Tokens["spacing"];
|
|
58
62
|
divideColor: Tokens["colors"];
|
|
59
63
|
width: "auto" | 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" | "screen";
|
|
60
64
|
inlineSize: "auto" | 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" | "screen";
|
|
@@ -136,8 +140,9 @@ export interface UtilityValues {
|
|
|
136
140
|
transitionTimingFunction: Tokens["easings"];
|
|
137
141
|
transitionDelay: Tokens["durations"];
|
|
138
142
|
transitionDuration: Tokens["durations"];
|
|
139
|
-
|
|
140
|
-
|
|
143
|
+
transitionProperty: "common" | "colors" | "size" | "position" | "background";
|
|
144
|
+
transition: "all" | "common" | "size" | "position" | "background" | "colors" | "opacity" | "shadow" | "transform" | "fastest" | "faster" | "fast" | "normal" | "slow" | "slower" | "slowest" | "none";
|
|
145
|
+
animationName: "indicatorOpacity" | "xyedgeAnimated";
|
|
141
146
|
animationTimingFunction: Tokens["easings"];
|
|
142
147
|
animationDuration: Tokens["durations"];
|
|
143
148
|
animationDelay: Tokens["durations"];
|
|
@@ -185,10 +190,10 @@ export interface UtilityValues {
|
|
|
185
190
|
stroke: Tokens["colors"];
|
|
186
191
|
srOnly: boolean;
|
|
187
192
|
debug: boolean;
|
|
188
|
-
colorPalette: "mantine" | "mantine.colors.primary" | "mantine.colors" | "mantine.colors.gray" | "mantine.colors.dark" | "mantine.colors.orange" | "mantine.colors.teal" | "mantine.colors.red" | "mantine.colors.green" | "mantine.colors.yellow" | "transparent" | "amber" | "amber.light" | "amber.light.a" | "amber.light.p3" | "amber.light.p3.a" | "amber.dark" | "amber.dark.a" | "amber.dark.p3" | "amber.dark.p3.a" | "amber.a" | "amber.p3" | "amber.p3.a" | "blue" | "blue.light" | "blue.light.a" | "blue.light.p3" | "blue.light.p3.a" | "blue.dark" | "blue.dark.a" | "blue.dark.p3" | "blue.dark.p3.a" | "blue.a" | "blue.p3" | "blue.p3.a" | "crimson" | "crimson.light" | "crimson.light.a" | "crimson.light.p3" | "crimson.light.p3.a" | "crimson.dark" | "crimson.dark.a" | "crimson.dark.p3" | "crimson.dark.p3.a" | "crimson.a" | "crimson.p3" | "crimson.p3.a" | "grass" | "grass.light" | "grass.light.a" | "grass.light.p3" | "grass.light.p3.a" | "grass.dark" | "grass.dark.a" | "grass.dark.p3" | "grass.dark.p3.a" | "grass.a" | "grass.p3" | "grass.p3.a" | "indigo" | "indigo.light" | "indigo.light.a" | "indigo.light.p3" | "indigo.light.p3.a" | "indigo.dark" | "indigo.dark.a" | "indigo.dark.p3" | "indigo.dark.p3.a" | "indigo.a" | "indigo.p3" | "indigo.p3.a" | "lime" | "lime.light" | "lime.light.a" | "lime.light.p3" | "lime.light.p3.a" | "lime.dark" | "lime.dark.a" | "lime.dark.p3" | "lime.dark.p3.a" | "lime.a" | "lime.p3" | "lime.p3.a" | "orange" | "orange.light" | "orange.light.a" | "orange.light.p3" | "orange.light.p3.a" | "orange.dark" | "orange.dark.a" | "orange.dark.p3" | "orange.dark.p3.a" | "orange.a" | "orange.p3" | "orange.p3.a" | "pink" | "pink.light" | "pink.light.a" | "pink.light.p3" | "pink.light.p3.a" | "pink.dark" | "pink.dark.a" | "pink.dark.p3" | "pink.dark.p3.a" | "pink.a" | "pink.p3" | "pink.p3.a" | "purple" | "purple.light" | "purple.light.a" | "purple.light.p3" | "purple.light.p3.a" | "purple.dark" | "purple.dark.a" | "purple.dark.p3" | "purple.dark.p3.a" | "purple.a" | "purple.p3" | "purple.p3.a" | "red" | "red.light" | "red.light.a" | "red.light.p3" | "red.light.p3.a" | "red.dark" | "red.dark.a" | "red.dark.p3" | "red.dark.p3.a" | "red.a" | "red.p3" | "red.p3.a" | "ruby" | "ruby.light" | "ruby.light.a" | "ruby.light.p3" | "ruby.light.p3.a" | "ruby.dark" | "ruby.dark.a" | "ruby.dark.p3" | "ruby.dark.p3.a" | "ruby.a" | "ruby.p3" | "ruby.p3.a" | "teal" | "teal.light" | "teal.light.a" | "teal.light.p3" | "teal.light.p3.a" | "teal.dark" | "teal.dark.a" | "teal.dark.p3" | "teal.dark.p3.a" | "teal.a" | "teal.p3" | "teal.p3.a" | "tomato" | "tomato.light" | "tomato.light.a" | "tomato.light.p3" | "tomato.light.p3.a" | "tomato.dark" | "tomato.dark.a" | "tomato.dark.p3" | "tomato.dark.p3.a" | "tomato.a" | "tomato.p3" | "tomato.p3.a" | "violet" | "violet.light" | "violet.light.a" | "violet.light.p3" | "violet.light.p3.a" | "violet.dark" | "violet.dark.a" | "violet.dark.p3" | "violet.dark.p3.a" | "violet.a" | "violet.p3" | "violet.p3.a" | "yellow" | "yellow.light" | "yellow.light.a" | "yellow.light.p3" | "yellow.light.p3.a" | "yellow.dark" | "yellow.dark.a" | "yellow.dark.p3" | "yellow.dark.p3.a" | "yellow.a" | "yellow.p3" | "yellow.p3.a" | "likec4" | "likec4.background" | "likec4.tag.bg" | "likec4.tag" | "likec4.panel.bg" | "likec4.panel" | "likec4.panel.action-icon.text" | "likec4.panel.action-icon" | "likec4.panel.action-icon.bg" | "likec4.dropdown.bg" | "likec4.dropdown";
|
|
193
|
+
colorPalette: "mantine" | "mantine.colors.primary" | "mantine.colors" | "mantine.colors.gray" | "mantine.colors.dark" | "mantine.colors.orange" | "mantine.colors.teal" | "mantine.colors.red" | "mantine.colors.green" | "mantine.colors.yellow" | "transparent" | "none" | "amber" | "amber.light" | "amber.light.a" | "amber.light.p3" | "amber.light.p3.a" | "amber.dark" | "amber.dark.a" | "amber.dark.p3" | "amber.dark.p3.a" | "amber.a" | "amber.p3" | "amber.p3.a" | "blue" | "blue.light" | "blue.light.a" | "blue.light.p3" | "blue.light.p3.a" | "blue.dark" | "blue.dark.a" | "blue.dark.p3" | "blue.dark.p3.a" | "blue.a" | "blue.p3" | "blue.p3.a" | "crimson" | "crimson.light" | "crimson.light.a" | "crimson.light.p3" | "crimson.light.p3.a" | "crimson.dark" | "crimson.dark.a" | "crimson.dark.p3" | "crimson.dark.p3.a" | "crimson.a" | "crimson.p3" | "crimson.p3.a" | "grass" | "grass.light" | "grass.light.a" | "grass.light.p3" | "grass.light.p3.a" | "grass.dark" | "grass.dark.a" | "grass.dark.p3" | "grass.dark.p3.a" | "grass.a" | "grass.p3" | "grass.p3.a" | "indigo" | "indigo.light" | "indigo.light.a" | "indigo.light.p3" | "indigo.light.p3.a" | "indigo.dark" | "indigo.dark.a" | "indigo.dark.p3" | "indigo.dark.p3.a" | "indigo.a" | "indigo.p3" | "indigo.p3.a" | "lime" | "lime.light" | "lime.light.a" | "lime.light.p3" | "lime.light.p3.a" | "lime.dark" | "lime.dark.a" | "lime.dark.p3" | "lime.dark.p3.a" | "lime.a" | "lime.p3" | "lime.p3.a" | "orange" | "orange.light" | "orange.light.a" | "orange.light.p3" | "orange.light.p3.a" | "orange.dark" | "orange.dark.a" | "orange.dark.p3" | "orange.dark.p3.a" | "orange.a" | "orange.p3" | "orange.p3.a" | "pink" | "pink.light" | "pink.light.a" | "pink.light.p3" | "pink.light.p3.a" | "pink.dark" | "pink.dark.a" | "pink.dark.p3" | "pink.dark.p3.a" | "pink.a" | "pink.p3" | "pink.p3.a" | "purple" | "purple.light" | "purple.light.a" | "purple.light.p3" | "purple.light.p3.a" | "purple.dark" | "purple.dark.a" | "purple.dark.p3" | "purple.dark.p3.a" | "purple.a" | "purple.p3" | "purple.p3.a" | "red" | "red.light" | "red.light.a" | "red.light.p3" | "red.light.p3.a" | "red.dark" | "red.dark.a" | "red.dark.p3" | "red.dark.p3.a" | "red.a" | "red.p3" | "red.p3.a" | "ruby" | "ruby.light" | "ruby.light.a" | "ruby.light.p3" | "ruby.light.p3.a" | "ruby.dark" | "ruby.dark.a" | "ruby.dark.p3" | "ruby.dark.p3.a" | "ruby.a" | "ruby.p3" | "ruby.p3.a" | "teal" | "teal.light" | "teal.light.a" | "teal.light.p3" | "teal.light.p3.a" | "teal.dark" | "teal.dark.a" | "teal.dark.p3" | "teal.dark.p3.a" | "teal.a" | "teal.p3" | "teal.p3.a" | "tomato" | "tomato.light" | "tomato.light.a" | "tomato.light.p3" | "tomato.light.p3.a" | "tomato.dark" | "tomato.dark.a" | "tomato.dark.p3" | "tomato.dark.p3.a" | "tomato.a" | "tomato.p3" | "tomato.p3.a" | "violet" | "violet.light" | "violet.light.a" | "violet.light.p3" | "violet.light.p3.a" | "violet.dark" | "violet.dark.a" | "violet.dark.p3" | "violet.dark.p3.a" | "violet.a" | "violet.p3" | "violet.p3.a" | "yellow" | "yellow.light" | "yellow.light.a" | "yellow.light.p3" | "yellow.light.p3.a" | "yellow.dark" | "yellow.dark.a" | "yellow.dark.p3" | "yellow.dark.p3.a" | "yellow.a" | "yellow.p3" | "yellow.p3.a" | "likec4" | "likec4.background" | "likec4.tag.bg" | "likec4.tag" | "likec4.panel.bg" | "likec4.panel" | "likec4.panel.action-icon.text" | "likec4.panel.action-icon" | "likec4.panel.action-icon.bg" | "likec4.dropdown.bg" | "likec4.dropdown";
|
|
189
194
|
textStyle: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "likec4.node.primary" | "likec4.node.secondary";
|
|
190
195
|
layerStyle: "likec4.tag" | "likec4.panel" | "likec4.dropdown";
|
|
191
|
-
animationStyle: "indicator" | "
|
|
196
|
+
animationStyle: "indicator" | "xyedgeAnimated";
|
|
192
197
|
}
|
|
193
198
|
|
|
194
199
|
|
|
@@ -5907,7 +5907,7 @@ transitionDuration?: ConditionalValue<UtilityValues["transitionDuration"] | CssV
|
|
|
5907
5907
|
*
|
|
5908
5908
|
* @see https://developer.mozilla.org/docs/Web/CSS/transition-property
|
|
5909
5909
|
*/
|
|
5910
|
-
transitionProperty?: ConditionalValue<
|
|
5910
|
+
transitionProperty?: ConditionalValue<UtilityValues["transitionProperty"] | CssVars | CssProperties["transitionProperty"]>
|
|
5911
5911
|
/**
|
|
5912
5912
|
* The **`transition-timing-function`** CSS property sets how intermediate values are calculated for CSS properties being affected by a transition effect.
|
|
5913
5913
|
*
|
|
@@ -7362,6 +7362,12 @@ scrollPaddingX?: ConditionalValue<WithEscapeHatch<UtilityValues["scrollPaddingIn
|
|
|
7362
7362
|
hideBelow?: ConditionalValue<UtilityValues["hideBelow"] | CssVars | CssProperties["hideBelow"]>
|
|
7363
7363
|
spaceX?: ConditionalValue<WithEscapeHatch<UtilityValues["spaceX"] | CssVars>>
|
|
7364
7364
|
spaceY?: ConditionalValue<WithEscapeHatch<UtilityValues["spaceY"] | CssVars>>
|
|
7365
|
+
focusRing?: ConditionalValue<UtilityValues["focusRing"] | CssVars | CssProperties["focusRing"]>
|
|
7366
|
+
focusVisibleRing?: ConditionalValue<UtilityValues["focusVisibleRing"] | CssVars | CssProperties["focusVisibleRing"]>
|
|
7367
|
+
focusRingColor?: ConditionalValue<WithEscapeHatch<UtilityValues["focusRingColor"] | CssVars>>
|
|
7368
|
+
focusRingOffset?: ConditionalValue<WithEscapeHatch<UtilityValues["focusRingOffset"] | CssVars>>
|
|
7369
|
+
focusRingWidth?: ConditionalValue<string | number | CssProperties["focusRingWidth"]>
|
|
7370
|
+
focusRingStyle?: ConditionalValue<string | number | CssProperties["focusRingStyle"]>
|
|
7365
7371
|
divideX?: ConditionalValue<string | number | CssProperties["divideX"]>
|
|
7366
7372
|
divideY?: ConditionalValue<string | number | CssProperties["divideY"]>
|
|
7367
7373
|
divideColor?: ConditionalValue<WithEscapeHatch<UtilityValues["divideColor"] | CssVars>>
|
|
@@ -7499,6 +7505,6 @@ scrollSnapMarginRight?: ConditionalValue<WithEscapeHatch<UtilityValues["scrollSn
|
|
|
7499
7505
|
animationStyle?: ConditionalValue<UtilityValues["animationStyle"] | CssVars | CssProperties["animationStyle"]>
|
|
7500
7506
|
}
|
|
7501
7507
|
|
|
7502
|
-
type StrictTokenProps = "top" | "left" | "inset" | "insetInline" | "insetX" | "insetBlock" | "insetY" | "insetBlockEnd" | "insetBlockStart" | "insetInlineEnd" | "insetEnd" | "end" | "insetInlineStart" | "insetStart" | "start" | "right" | "bottom" | "gap" | "gridGap" | "gridRowGap" | "gridColumnGap" | "rowGap" | "columnGap" | "padding" | "p" | "paddingLeft" | "pl" | "paddingRight" | "pr" | "paddingTop" | "pt" | "paddingBottom" | "pb" | "paddingBlock" | "py" | "paddingY" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInline" | "paddingX" | "px" | "paddingInlineEnd" | "pe" | "paddingEnd" | "paddingInlineStart" | "ps" | "paddingStart" | "marginLeft" | "ml" | "marginRight" | "mr" | "marginTop" | "mt" | "marginBottom" | "mb" | "margin" | "m" | "marginBlock" | "my" | "marginY" | "marginBlockEnd" | "marginBlockStart" | "marginInline" | "mx" | "marginX" | "marginInlineEnd" | "me" | "marginEnd" | "marginInlineStart" | "ms" | "marginStart" | "spaceX" | "spaceY" | "outlineColor" | "ringColor" | "outlineOffset" | "ringOffset" | "divideColor" | "color" | "fontFamily" | "textDecorationColor" | "textEmphasisColor" | "textIndent" | "textShadowColor" | "background" | "bg" | "backgroundColor" | "bgColor" | "gradientFrom" | "gradientTo" | "gradientVia" | "borderColor" | "borderInlineColor" | "borderXColor" | "borderBlockColor" | "borderYColor" | "borderLeftColor" | "borderInlineStartColor" | "borderStartColor" | "borderRightColor" | "borderInlineEndColor" | "borderEndColor" | "borderTopColor" | "borderBottomColor" | "borderBlockEndColor" | "borderBlockStartColor" | "boxShadowColor" | "shadowColor" | "borderSpacing" | "borderSpacingX" | "borderSpacingY" | "transitionTimingFunction" | "animationTimingFunction" | "translateX" | "x" | "translateY" | "y" | "translateZ" | "z" | "accentColor" | "caretColor" | "scrollbarColor" | "scrollMargin" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollMarginBottom" | "scrollMarginBlock" | "scrollMarginY" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginInline" | "scrollMarginX" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingY" | "scrollPaddingBlockStart" | "scrollPaddingBlockEnd" | "scrollPaddingInline" | "scrollPaddingX" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollPaddingBottom" | "scrollSnapMargin" | "scrollSnapMarginTop" | "scrollSnapMarginBottom" | "scrollSnapMarginLeft" | "scrollSnapMarginRight" | "fill" | "stroke"
|
|
7508
|
+
type StrictTokenProps = "top" | "left" | "inset" | "insetInline" | "insetX" | "insetBlock" | "insetY" | "insetBlockEnd" | "insetBlockStart" | "insetInlineEnd" | "insetEnd" | "end" | "insetInlineStart" | "insetStart" | "start" | "right" | "bottom" | "gap" | "gridGap" | "gridRowGap" | "gridColumnGap" | "rowGap" | "columnGap" | "padding" | "p" | "paddingLeft" | "pl" | "paddingRight" | "pr" | "paddingTop" | "pt" | "paddingBottom" | "pb" | "paddingBlock" | "py" | "paddingY" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInline" | "paddingX" | "px" | "paddingInlineEnd" | "pe" | "paddingEnd" | "paddingInlineStart" | "ps" | "paddingStart" | "marginLeft" | "ml" | "marginRight" | "mr" | "marginTop" | "mt" | "marginBottom" | "mb" | "margin" | "m" | "marginBlock" | "my" | "marginY" | "marginBlockEnd" | "marginBlockStart" | "marginInline" | "mx" | "marginX" | "marginInlineEnd" | "me" | "marginEnd" | "marginInlineStart" | "ms" | "marginStart" | "spaceX" | "spaceY" | "outlineColor" | "ringColor" | "outlineOffset" | "ringOffset" | "focusRingColor" | "focusRingOffset" | "divideColor" | "color" | "fontFamily" | "textDecorationColor" | "textEmphasisColor" | "textIndent" | "textShadowColor" | "background" | "bg" | "backgroundColor" | "bgColor" | "gradientFrom" | "gradientTo" | "gradientVia" | "borderColor" | "borderInlineColor" | "borderXColor" | "borderBlockColor" | "borderYColor" | "borderLeftColor" | "borderInlineStartColor" | "borderStartColor" | "borderRightColor" | "borderInlineEndColor" | "borderEndColor" | "borderTopColor" | "borderBottomColor" | "borderBlockEndColor" | "borderBlockStartColor" | "boxShadowColor" | "shadowColor" | "borderSpacing" | "borderSpacingX" | "borderSpacingY" | "transitionTimingFunction" | "animationTimingFunction" | "translateX" | "x" | "translateY" | "y" | "translateZ" | "z" | "accentColor" | "caretColor" | "scrollbarColor" | "scrollMargin" | "scrollMarginLeft" | "scrollMarginRight" | "scrollMarginTop" | "scrollMarginBottom" | "scrollMarginBlock" | "scrollMarginY" | "scrollMarginBlockEnd" | "scrollMarginBlockStart" | "scrollMarginInline" | "scrollMarginX" | "scrollMarginInlineEnd" | "scrollMarginInlineStart" | "scrollPadding" | "scrollPaddingBlock" | "scrollPaddingY" | "scrollPaddingBlockStart" | "scrollPaddingBlockEnd" | "scrollPaddingInline" | "scrollPaddingX" | "scrollPaddingInlineEnd" | "scrollPaddingInlineStart" | "scrollPaddingLeft" | "scrollPaddingRight" | "scrollPaddingTop" | "scrollPaddingBottom" | "scrollSnapMargin" | "scrollSnapMarginTop" | "scrollSnapMarginBottom" | "scrollSnapMarginLeft" | "scrollSnapMarginRight" | "fill" | "stroke"
|
|
7503
7509
|
|
|
7504
7510
|
type Restrict<Key, Value, Fallback> = Key extends StrictTokenProps ? Value : Value | Fallback
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@likec4/styles",
|
|
3
3
|
"description": "Shared PandaCSS preset and generated styles, used in LikeC4",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.41.0",
|
|
6
6
|
"bugs": "https://github.com/likec4/likec4/issues",
|
|
7
7
|
"homepage": "https://likec4.dev",
|
|
8
8
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -57,14 +57,17 @@
|
|
|
57
57
|
},
|
|
58
58
|
"./dev": "./dev.ts"
|
|
59
59
|
},
|
|
60
|
-
"
|
|
61
|
-
"@pandacss/dev": "^1.
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"@pandacss/dev": "^1.3.0",
|
|
62
|
+
"@pandacss/types": "^1.3.0"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"@types/node": "~20.19.11",
|
|
65
66
|
"@pandabox/panda-plugins": "^0.0.8",
|
|
66
67
|
"@pandabox/utils": "^0.0.5",
|
|
67
68
|
"@pandabox/unplugin": "^0.2.2",
|
|
69
|
+
"@pandacss/dev": "^1.3.0",
|
|
70
|
+
"@pandacss/types": "^1.3.0",
|
|
68
71
|
"@types/picomatch": "^4.0.2",
|
|
69
72
|
"@types/react": "19.1.12",
|
|
70
73
|
"@types/react-dom": "19.1.9",
|
|
@@ -72,8 +75,8 @@
|
|
|
72
75
|
"nano-spawn": "^1.0.3",
|
|
73
76
|
"unbuild": "3.5.0",
|
|
74
77
|
"typescript": "5.9.2",
|
|
75
|
-
"@likec4/style-preset": "1.
|
|
76
|
-
"@likec4/tsconfig": "1.
|
|
78
|
+
"@likec4/style-preset": "1.41.0",
|
|
79
|
+
"@likec4/tsconfig": "1.41.0"
|
|
77
80
|
},
|
|
78
81
|
"scripts": {
|
|
79
82
|
"typecheck": "tsc --build --verbose",
|