@stokelp/styled-system 2.126.1 → 3.0.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/css/conditions.d.ts +7 -0
- package/css/conditions.js +32 -0
- package/css/css.d.ts +6 -6
- package/css/css.js +63 -0
- package/css/cva.d.ts +3 -4
- package/css/cva.js +51 -0
- package/css/cx.d.ts +5 -4
- package/css/{cx.mjs → cx.js} +5 -4
- package/css/first-that-works.d.ts +22 -0
- package/css/first-that-works.js +1 -0
- package/css/index.d.ts +8 -5
- package/css/index.js +8 -0
- package/css/keyframes.d.ts +5 -0
- package/css/keyframes.js +8 -0
- package/css/position-try.d.ts +5 -0
- package/css/position-try.js +11 -0
- package/css/sva.d.ts +2 -3
- package/css/sva.js +49 -0
- package/css/view-transition.d.ts +7 -0
- package/css/view-transition.js +18 -0
- package/dist/panda/buildinfo.json +20580 -0
- package/dist/panda/lib.json +15 -0
- package/dist/panda/preset.mjs +9505 -0
- package/helpers.d.ts +67 -0
- package/helpers.js +624 -0
- package/jsx/aspect-ratio.d.ts +5 -8
- package/jsx/aspect-ratio.js +11 -0
- package/jsx/bleed.d.ts +6 -9
- package/jsx/bleed.js +11 -0
- package/jsx/box.d.ts +6 -9
- package/jsx/box.js +11 -0
- package/jsx/center.d.ts +6 -9
- package/jsx/center.js +11 -0
- package/jsx/circle.d.ts +6 -9
- package/jsx/circle.js +11 -0
- package/jsx/container.d.ts +6 -9
- package/jsx/container.js +11 -0
- package/jsx/cq.d.ts +6 -9
- package/jsx/cq.js +11 -0
- package/jsx/create-recipe-context.d.ts +31 -0
- package/jsx/create-recipe-context.js +38 -0
- package/jsx/create-slot-recipe-context.d.ts +49 -0
- package/jsx/create-slot-recipe-context.js +124 -0
- package/jsx/divider.d.ts +6 -9
- package/jsx/divider.js +11 -0
- package/jsx/factory.d.ts +3 -3
- package/jsx/factory.js +91 -0
- package/jsx/flex.d.ts +6 -9
- package/jsx/flex.js +11 -0
- package/jsx/float.d.ts +6 -9
- package/jsx/float.js +11 -0
- package/jsx/grid-item.d.ts +6 -9
- package/jsx/grid-item.js +11 -0
- package/jsx/grid.d.ts +6 -9
- package/jsx/grid.js +11 -0
- package/jsx/helper.d.ts +34 -0
- package/jsx/helper.js +92 -0
- package/jsx/hstack.d.ts +6 -9
- package/jsx/hstack.js +11 -0
- package/jsx/index.d.ts +25 -25
- package/jsx/index.js +24 -0
- package/jsx/is-valid-prop.d.ts +5 -10
- package/jsx/is-valid-prop.js +12 -0
- package/jsx/link-overlay.d.ts +6 -9
- package/jsx/link-overlay.js +11 -0
- package/jsx/spacer.d.ts +6 -9
- package/jsx/spacer.js +11 -0
- package/jsx/square.d.ts +6 -9
- package/jsx/square.js +11 -0
- package/jsx/stack.d.ts +6 -9
- package/jsx/stack.js +11 -0
- package/jsx/visually-hidden.d.ts +6 -9
- package/jsx/visually-hidden.js +11 -0
- package/jsx/vstack.d.ts +6 -9
- package/jsx/vstack.js +11 -0
- package/jsx/wrap.d.ts +6 -9
- package/jsx/wrap.js +11 -0
- package/package.json +32 -18
- package/patterns/aspect-ratio.d.ts +8 -9
- package/patterns/aspect-ratio.js +37 -0
- package/patterns/bleed.d.ts +9 -10
- package/patterns/bleed.js +30 -0
- package/patterns/box.d.ts +8 -11
- package/patterns/box.js +16 -0
- package/patterns/center.d.ts +8 -9
- package/patterns/center.js +22 -0
- package/patterns/circle.d.ts +8 -9
- package/patterns/circle.js +26 -0
- package/patterns/container.d.ts +8 -11
- package/patterns/container.js +26 -0
- package/patterns/cq.d.ts +10 -10
- package/patterns/cq.js +24 -0
- package/patterns/divider.d.ts +11 -11
- package/patterns/divider.js +31 -0
- package/patterns/flex.d.ts +14 -15
- package/patterns/flex.js +27 -0
- package/patterns/float.d.ts +12 -12
- package/patterns/float.js +78 -0
- package/patterns/grid-item.d.ts +13 -14
- package/patterns/grid-item.js +26 -0
- package/patterns/grid.d.ts +13 -13
- package/patterns/grid.js +30 -0
- package/patterns/hstack.d.ts +9 -10
- package/patterns/hstack.js +27 -0
- package/patterns/index.d.ts +20 -21
- package/patterns/index.js +20 -0
- package/patterns/link-overlay.d.ts +8 -11
- package/patterns/link-overlay.js +25 -0
- package/patterns/runtime.js +25 -0
- package/patterns/spacer.d.ts +9 -9
- package/patterns/spacer.js +25 -0
- package/patterns/square.d.ts +8 -9
- package/patterns/square.js +25 -0
- package/patterns/stack.d.ts +11 -12
- package/patterns/stack.js +30 -0
- package/patterns/visually-hidden.d.ts +8 -11
- package/patterns/visually-hidden.js +19 -0
- package/patterns/vstack.d.ts +9 -10
- package/patterns/vstack.js +27 -0
- package/patterns/wrap.d.ts +12 -13
- package/patterns/wrap.js +26 -0
- package/recipes/accordion.d.ts +10 -26
- package/recipes/accordion.js +5 -0
- package/recipes/action-card.d.ts +9 -26
- package/recipes/action-card.js +5 -0
- package/recipes/alert.d.ts +10 -28
- package/recipes/alert.js +5 -0
- package/recipes/app-navigation-language-select.d.ts +12 -34
- package/recipes/app-navigation-language-select.js +5 -0
- package/recipes/app-navigation.d.ts +10 -28
- package/recipes/app-navigation.js +5 -0
- package/recipes/avatar-group.d.ts +8 -26
- package/recipes/avatar-group.js +5 -0
- package/recipes/avatar.d.ts +11 -30
- package/recipes/avatar.js +5 -0
- package/recipes/breadcrumb.d.ts +9 -24
- package/recipes/breadcrumb.js +5 -0
- package/recipes/button-filter.d.ts +8 -27
- package/recipes/button-filter.js +5 -0
- package/recipes/button.d.ts +10 -37
- package/recipes/button.js +5 -0
- package/recipes/chat-document-message.d.ts +8 -27
- package/recipes/chat-document-message.js +5 -0
- package/recipes/chat-message.d.ts +10 -33
- package/recipes/chat-message.js +5 -0
- package/recipes/chat-profile-avatar.d.ts +9 -29
- package/recipes/chat-profile-avatar.js +5 -0
- package/recipes/chat-text-input.d.ts +8 -27
- package/recipes/chat-text-input.js +5 -0
- package/recipes/chat.d.ts +9 -26
- package/recipes/chat.js +5 -0
- package/recipes/checkbox-card.d.ts +10 -26
- package/recipes/checkbox-card.js +5 -0
- package/recipes/checkbox-group.d.ts +7 -24
- package/recipes/checkbox-group.js +5 -0
- package/recipes/checkbox.d.ts +10 -26
- package/recipes/checkbox.js +5 -0
- package/recipes/chip.d.ts +11 -32
- package/recipes/chip.js +5 -0
- package/recipes/collapsible.d.ts +9 -24
- package/recipes/collapsible.js +5 -0
- package/recipes/combobox.d.ts +11 -27
- package/recipes/combobox.js +5 -0
- package/recipes/datepicker.d.ts +9 -24
- package/recipes/datepicker.js +5 -0
- package/recipes/dialog.d.ts +9 -24
- package/recipes/dialog.js +5 -0
- package/recipes/drawer.d.ts +10 -26
- package/recipes/drawer.js +5 -0
- package/recipes/flag.d.ts +8 -26
- package/recipes/flag.js +5 -0
- package/recipes/form-control.d.ts +8 -27
- package/recipes/form-control.js +5 -0
- package/recipes/form-helper-text.d.ts +8 -27
- package/recipes/form-helper-text.js +5 -0
- package/recipes/form-label.d.ts +10 -28
- package/recipes/form-label.js +5 -0
- package/recipes/heading.d.ts +10 -28
- package/recipes/heading.js +5 -0
- package/recipes/highlighted-input.d.ts +9 -26
- package/recipes/highlighted-input.js +5 -0
- package/recipes/icon-button.d.ts +10 -37
- package/recipes/icon-button.js +5 -0
- package/recipes/icon.d.ts +8 -26
- package/recipes/icon.js +5 -0
- package/recipes/illustration.d.ts +9 -29
- package/recipes/illustration.js +5 -0
- package/recipes/index.d.ts +62 -63
- package/recipes/index.js +62 -0
- package/recipes/input-addon.d.ts +8 -27
- package/recipes/input-addon.js +5 -0
- package/recipes/input-group.d.ts +8 -27
- package/recipes/input-group.js +5 -0
- package/recipes/input.d.ts +9 -29
- package/recipes/input.js +5 -0
- package/recipes/menu.d.ts +10 -26
- package/recipes/menu.js +5 -0
- package/recipes/mobile-navigation.d.ts +10 -28
- package/recipes/mobile-navigation.js +5 -0
- package/recipes/pagination.d.ts +9 -26
- package/recipes/pagination.js +5 -0
- package/recipes/phone-number-input.d.ts +9 -29
- package/recipes/phone-number-input.js +5 -0
- package/recipes/popover.d.ts +9 -24
- package/recipes/popover.js +5 -0
- package/recipes/price-tag.d.ts +10 -26
- package/recipes/price-tag.js +5 -0
- package/recipes/product-card-catalog.d.ts +9 -26
- package/recipes/product-card-catalog.js +5 -0
- package/recipes/radio-button-group.d.ts +10 -26
- package/recipes/radio-button-group.js +5 -0
- package/recipes/radio-card-group.d.ts +10 -26
- package/recipes/radio-card-group.js +5 -0
- package/recipes/radio-group.d.ts +10 -26
- package/recipes/radio-group.js +5 -0
- package/recipes/runtime.js +133 -0
- package/recipes/select-language.d.ts +10 -26
- package/recipes/select-language.js +5 -0
- package/recipes/select.d.ts +11 -27
- package/recipes/select.js +5 -0
- package/recipes/status-tag-select.d.ts +11 -30
- package/recipes/status-tag-select.js +5 -0
- package/recipes/steps.d.ts +9 -24
- package/recipes/steps.js +5 -0
- package/recipes/switch-card.d.ts +10 -26
- package/recipes/switch-card.js +5 -0
- package/recipes/switch-recipe.d.ts +10 -26
- package/recipes/switch-recipe.js +5 -0
- package/recipes/table-container.d.ts +7 -24
- package/recipes/table-container.js +5 -0
- package/recipes/table-empty-row.d.ts +7 -24
- package/recipes/table-empty-row.js +5 -0
- package/recipes/table-group-title.d.ts +8 -26
- package/recipes/table-group-title.js +5 -0
- package/recipes/table.d.ts +9 -24
- package/recipes/table.js +5 -0
- package/recipes/tabs-chip.d.ts +9 -29
- package/recipes/tabs-chip.js +5 -0
- package/recipes/tabs.d.ts +11 -30
- package/recipes/tabs.js +5 -0
- package/recipes/tag.d.ts +11 -32
- package/recipes/tag.js +5 -0
- package/recipes/text.d.ts +12 -30
- package/recipes/text.js +5 -0
- package/recipes/textarea.d.ts +7 -24
- package/recipes/textarea.js +5 -0
- package/recipes/tooltip.d.ts +9 -24
- package/recipes/tooltip.js +5 -0
- package/tokens/index.d.ts +4 -5
- package/tokens/index.js +18 -0
- package/types/index.d.ts +6 -8
- package/types/jsx.d.ts +37 -28
- package/types/pattern.d.ts +18 -70
- package/types/recipe.d.ts +58 -150
- package/types/register.d.ts +40 -0
- package/types/system.d.ts +1816 -0
- package/types/tokens.d.ts +72 -0
- package/css/conditions.mjs +0 -36
- package/css/css.mjs +0 -45
- package/css/cva.mjs +0 -87
- package/css/index.mjs +0 -4
- package/css/sva.mjs +0 -46
- package/helpers.mjs +0 -328
- package/jsx/aspect-ratio.mjs +0 -14
- package/jsx/bleed.mjs +0 -14
- package/jsx/box.mjs +0 -14
- package/jsx/center.mjs +0 -14
- package/jsx/circle.mjs +0 -14
- package/jsx/container.mjs +0 -14
- package/jsx/cq.mjs +0 -14
- package/jsx/create-style-context.d.ts +0 -54
- package/jsx/create-style-context.mjs +0 -118
- package/jsx/divider.mjs +0 -14
- package/jsx/factory-helper.mjs +0 -22
- package/jsx/factory.mjs +0 -89
- package/jsx/flex.mjs +0 -14
- package/jsx/float.mjs +0 -14
- package/jsx/grid-item.mjs +0 -14
- package/jsx/grid.mjs +0 -14
- package/jsx/hstack.mjs +0 -14
- package/jsx/index.mjs +0 -23
- package/jsx/is-valid-prop.mjs +0 -17
- package/jsx/link-overlay.mjs +0 -14
- package/jsx/spacer.mjs +0 -14
- package/jsx/square.mjs +0 -14
- package/jsx/stack.mjs +0 -14
- package/jsx/visually-hidden.mjs +0 -14
- package/jsx/vstack.mjs +0 -14
- package/jsx/wrap.mjs +0 -14
- package/panda.buildinfo.json +0 -471
- package/patterns/aspect-ratio.mjs +0 -38
- package/patterns/bleed.mjs +0 -24
- package/patterns/box.mjs +0 -15
- package/patterns/center.mjs +0 -21
- package/patterns/circle.mjs +0 -25
- package/patterns/container.mjs +0 -21
- package/patterns/cq.mjs +0 -21
- package/patterns/divider.mjs +0 -25
- package/patterns/flex.mjs +0 -26
- package/patterns/float.mjs +0 -52
- package/patterns/grid-item.mjs +0 -25
- package/patterns/grid.mjs +0 -27
- package/patterns/hstack.mjs +0 -24
- package/patterns/index.mjs +0 -20
- package/patterns/link-overlay.mjs +0 -24
- package/patterns/spacer.mjs +0 -25
- package/patterns/square.mjs +0 -24
- package/patterns/stack.mjs +0 -24
- package/patterns/visually-hidden.mjs +0 -18
- package/patterns/vstack.mjs +0 -24
- package/patterns/wrap.mjs +0 -25
- package/recipes/accordion.mjs +0 -57
- package/recipes/action-card.mjs +0 -45
- package/recipes/alert.mjs +0 -57
- package/recipes/app-navigation-language-select.mjs +0 -109
- package/recipes/app-navigation.mjs +0 -84
- package/recipes/avatar-group.mjs +0 -32
- package/recipes/avatar.mjs +0 -57
- package/recipes/breadcrumb.mjs +0 -45
- package/recipes/button-filter.mjs +0 -24
- package/recipes/button.mjs +0 -212
- package/recipes/chat-document-message.mjs +0 -24
- package/recipes/chat-message.mjs +0 -36
- package/recipes/chat-profile-avatar.mjs +0 -31
- package/recipes/chat-text-input.mjs +0 -24
- package/recipes/chat.mjs +0 -45
- package/recipes/checkbox-card.mjs +0 -73
- package/recipes/checkbox-group.mjs +0 -24
- package/recipes/checkbox.mjs +0 -57
- package/recipes/chip.mjs +0 -76
- package/recipes/collapsible.mjs +0 -45
- package/recipes/combobox.mjs +0 -101
- package/recipes/create-recipe.mjs +0 -82
- package/recipes/datepicker.mjs +0 -133
- package/recipes/dialog.mjs +0 -69
- package/recipes/drawer.mjs +0 -78
- package/recipes/flag.mjs +0 -33
- package/recipes/form-control.mjs +0 -24
- package/recipes/form-helper-text.mjs +0 -24
- package/recipes/form-label.mjs +0 -50
- package/recipes/heading.mjs +0 -41
- package/recipes/highlighted-input.mjs +0 -45
- package/recipes/icon-button.mjs +0 -233
- package/recipes/icon.mjs +0 -34
- package/recipes/illustration.mjs +0 -37
- package/recipes/index.mjs +0 -62
- package/recipes/input-addon.mjs +0 -24
- package/recipes/input-group.mjs +0 -24
- package/recipes/input.mjs +0 -30
- package/recipes/menu.mjs +0 -93
- package/recipes/mobile-navigation.mjs +0 -56
- package/recipes/pagination.mjs +0 -41
- package/recipes/phone-number-input.mjs +0 -30
- package/recipes/popover.mjs +0 -69
- package/recipes/price-tag.mjs +0 -51
- package/recipes/product-card-catalog.mjs +0 -73
- package/recipes/radio-button-group.mjs +0 -62
- package/recipes/radio-card-group.mjs +0 -77
- package/recipes/radio-group.mjs +0 -61
- package/recipes/select-language.mjs +0 -98
- package/recipes/select.mjs +0 -101
- package/recipes/status-tag-select.mjs +0 -108
- package/recipes/steps.mjs +0 -69
- package/recipes/switch-card.mjs +0 -69
- package/recipes/switch-recipe.mjs +0 -53
- package/recipes/table-container.mjs +0 -24
- package/recipes/table-empty-row.mjs +0 -24
- package/recipes/table-group-title.mjs +0 -32
- package/recipes/table.mjs +0 -61
- package/recipes/tabs-chip.mjs +0 -35
- package/recipes/tabs.mjs +0 -63
- package/recipes/tag.mjs +0 -57
- package/recipes/text.mjs +0 -41
- package/recipes/textarea.mjs +0 -24
- package/recipes/tooltip.mjs +0 -49
- package/tokens/index.mjs +0 -1728
- package/tokens/tokens.d.ts +0 -63
- package/types/composition.d.ts +0 -227
- package/types/conditions.d.ts +0 -300
- package/types/csstype.d.ts +0 -22570
- package/types/global.d.ts +0 -20
- package/types/parts.d.ts +0 -8
- package/types/prop-type.d.ts +0 -251
- package/types/selectors.d.ts +0 -59
- package/types/static-css.d.ts +0 -56
- package/types/style-props.d.ts +0 -8089
- package/types/system-types.d.ts +0 -151
package/types/global.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import type * as Panda from '@pandacss/dev'
|
|
4
|
-
import type { RecipeVariantRecord, RecipeConfig, SlotRecipeVariantRecord, SlotRecipeConfig } from './recipe';
|
|
5
|
-
import type { Parts } from './parts';
|
|
6
|
-
import type { PatternConfig, PatternProperties } from './pattern';
|
|
7
|
-
import type { GlobalStyleObject, SystemStyleObject } from './system-types';
|
|
8
|
-
import type { CompositionStyles } from './composition';
|
|
9
|
-
|
|
10
|
-
declare module '@pandacss/dev' {
|
|
11
|
-
export function defineRecipe<V extends RecipeVariantRecord>(config: RecipeConfig<V>): Panda.RecipeConfig
|
|
12
|
-
export function defineSlotRecipe<S extends string, V extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, V>): Panda.SlotRecipeConfig
|
|
13
|
-
export function defineStyles(definition: SystemStyleObject): SystemStyleObject
|
|
14
|
-
export function defineGlobalStyles(definition: GlobalStyleObject): Panda.GlobalStyleObject
|
|
15
|
-
export function defineTextStyles(definition: CompositionStyles['textStyles']): Panda.TextStyles
|
|
16
|
-
export function defineAnimationStyles(definition: CompositionStyles['animationStyles']): Panda.AnimationStyles
|
|
17
|
-
export function defineLayerStyles(definition: CompositionStyles['layerStyles']): Panda.LayerStyles
|
|
18
|
-
export function definePattern<T extends PatternProperties>(config: PatternConfig<T>): Panda.PatternConfig
|
|
19
|
-
export function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>
|
|
20
|
-
}
|
package/types/parts.d.ts
DELETED
package/types/prop-type.d.ts
DELETED
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from './conditions';
|
|
3
|
-
import type { CssProperties } from './system-types';
|
|
4
|
-
import type { Tokens } from '../tokens/index';
|
|
5
|
-
|
|
6
|
-
export interface UtilityValues {
|
|
7
|
-
aspectRatio: Tokens["aspectRatios"];
|
|
8
|
-
zIndex: Tokens["zIndex"];
|
|
9
|
-
top: Tokens["spacing"];
|
|
10
|
-
left: Tokens["spacing"];
|
|
11
|
-
inset: "auto" | Tokens["spacing"];
|
|
12
|
-
insetInline: Tokens["spacing"];
|
|
13
|
-
insetBlock: Tokens["spacing"];
|
|
14
|
-
insetBlockEnd: Tokens["spacing"];
|
|
15
|
-
insetBlockStart: Tokens["spacing"];
|
|
16
|
-
insetInlineEnd: Tokens["spacing"];
|
|
17
|
-
insetInlineStart: Tokens["spacing"];
|
|
18
|
-
right: Tokens["spacing"];
|
|
19
|
-
bottom: Tokens["spacing"];
|
|
20
|
-
float: "start" | "end" | CssProperties["float"];
|
|
21
|
-
hideFrom: Tokens["breakpoints"];
|
|
22
|
-
hideBelow: Tokens["breakpoints"];
|
|
23
|
-
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";
|
|
24
|
-
flex: "1" | "auto" | "initial" | "none";
|
|
25
|
-
gridAutoColumns: "min" | "max" | "fr";
|
|
26
|
-
gridAutoRows: "min" | "max" | "fr";
|
|
27
|
-
gap: Tokens["spacing"];
|
|
28
|
-
gridGap: Tokens["spacing"];
|
|
29
|
-
gridRowGap: Tokens["spacing"];
|
|
30
|
-
gridColumnGap: Tokens["spacing"];
|
|
31
|
-
rowGap: Tokens["spacing"];
|
|
32
|
-
columnGap: Tokens["spacing"];
|
|
33
|
-
padding: Tokens["spacing"];
|
|
34
|
-
paddingLeft: Tokens["spacing"];
|
|
35
|
-
paddingRight: Tokens["spacing"];
|
|
36
|
-
paddingTop: Tokens["spacing"];
|
|
37
|
-
paddingBottom: Tokens["spacing"];
|
|
38
|
-
paddingBlock: Tokens["spacing"];
|
|
39
|
-
paddingBlockEnd: Tokens["spacing"];
|
|
40
|
-
paddingBlockStart: Tokens["spacing"];
|
|
41
|
-
paddingInline: Tokens["spacing"];
|
|
42
|
-
paddingInlineEnd: Tokens["spacing"];
|
|
43
|
-
paddingInlineStart: Tokens["spacing"];
|
|
44
|
-
marginLeft: "auto" | Tokens["spacing"];
|
|
45
|
-
marginRight: "auto" | Tokens["spacing"];
|
|
46
|
-
marginTop: "auto" | Tokens["spacing"];
|
|
47
|
-
marginBottom: "auto" | Tokens["spacing"];
|
|
48
|
-
margin: "auto" | Tokens["spacing"];
|
|
49
|
-
marginBlock: "auto" | Tokens["spacing"];
|
|
50
|
-
marginBlockEnd: "auto" | Tokens["spacing"];
|
|
51
|
-
marginBlockStart: "auto" | Tokens["spacing"];
|
|
52
|
-
marginInline: "auto" | Tokens["spacing"];
|
|
53
|
-
marginInlineEnd: "auto" | Tokens["spacing"];
|
|
54
|
-
marginInlineStart: "auto" | Tokens["spacing"];
|
|
55
|
-
spaceX: "auto" | Tokens["spacing"] | CssProperties["marginInlineStart"];
|
|
56
|
-
spaceY: "auto" | Tokens["spacing"] | CssProperties["marginBlockStart"];
|
|
57
|
-
outlineColor: Tokens["colors"];
|
|
58
|
-
outline: Tokens["borders"];
|
|
59
|
-
outlineOffset: Tokens["spacing"];
|
|
60
|
-
focusRing: "outside" | "inside" | "mixed" | "none";
|
|
61
|
-
focusVisibleRing: "outside" | "inside" | "mixed" | "none";
|
|
62
|
-
focusRingColor: Tokens["colors"];
|
|
63
|
-
focusRingOffset: Tokens["spacing"];
|
|
64
|
-
focusRingWidth: CssProperties["outlineWidth"];
|
|
65
|
-
focusRingStyle: CssProperties["outlineStyle"];
|
|
66
|
-
divideColor: Tokens["colors"];
|
|
67
|
-
divideStyle: CssProperties["borderStyle"];
|
|
68
|
-
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";
|
|
69
|
-
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";
|
|
70
|
-
minWidth: "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";
|
|
71
|
-
minInlineSize: "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";
|
|
72
|
-
maxWidth: "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";
|
|
73
|
-
maxInlineSize: "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";
|
|
74
|
-
height: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "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";
|
|
75
|
-
blockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "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";
|
|
76
|
-
minHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "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";
|
|
77
|
-
minBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "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";
|
|
78
|
-
maxHeight: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "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";
|
|
79
|
-
maxBlockSize: "auto" | Tokens["sizes"] | "svh" | "lvh" | "dvh" | "screen" | "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";
|
|
80
|
-
boxSize: Tokens["sizes"];
|
|
81
|
-
color: Tokens["colors"];
|
|
82
|
-
fontFamily: Tokens["fonts"];
|
|
83
|
-
fontSize: Tokens["fontSizes"];
|
|
84
|
-
fontWeight: Tokens["fontWeights"];
|
|
85
|
-
fontSmoothing: "antialiased" | "subpixel-antialiased";
|
|
86
|
-
letterSpacing: Tokens["letterSpacings"];
|
|
87
|
-
textDecorationColor: Tokens["colors"];
|
|
88
|
-
textEmphasisColor: Tokens["colors"];
|
|
89
|
-
textIndent: Tokens["spacing"];
|
|
90
|
-
textShadow: Tokens["shadows"];
|
|
91
|
-
textShadowColor: Tokens["colors"];
|
|
92
|
-
WebkitTextFillColor: Tokens["colors"];
|
|
93
|
-
textWrap: "wrap" | "balance" | "nowrap";
|
|
94
|
-
truncate: boolean;
|
|
95
|
-
background: Tokens["colors"];
|
|
96
|
-
backgroundColor: Tokens["colors"];
|
|
97
|
-
backgroundGradient: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
98
|
-
backgroundLinear: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
99
|
-
backgroundRadial: Tokens["gradients"];
|
|
100
|
-
textGradient: Tokens["gradients"] | "to-t" | "to-tr" | "to-r" | "to-br" | "to-b" | "to-bl" | "to-l" | "to-tl";
|
|
101
|
-
gradientFrom: Tokens["colors"];
|
|
102
|
-
gradientTo: Tokens["colors"];
|
|
103
|
-
gradientVia: Tokens["colors"];
|
|
104
|
-
borderRadius: Tokens["radii"];
|
|
105
|
-
borderTopLeftRadius: Tokens["radii"];
|
|
106
|
-
borderTopRightRadius: Tokens["radii"];
|
|
107
|
-
borderBottomRightRadius: Tokens["radii"];
|
|
108
|
-
borderBottomLeftRadius: Tokens["radii"];
|
|
109
|
-
borderTopRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
110
|
-
borderRightRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
111
|
-
borderBottomRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
112
|
-
borderLeftRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
113
|
-
borderStartStartRadius: Tokens["radii"];
|
|
114
|
-
borderStartEndRadius: Tokens["radii"];
|
|
115
|
-
borderStartRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
116
|
-
borderEndStartRadius: Tokens["radii"];
|
|
117
|
-
borderEndEndRadius: Tokens["radii"];
|
|
118
|
-
borderEndRadius: Tokens["radii"] | CssProperties["borderRadius"];
|
|
119
|
-
border: Tokens["borders"];
|
|
120
|
-
borderColor: Tokens["colors"];
|
|
121
|
-
borderInline: Tokens["borders"];
|
|
122
|
-
borderInlineColor: Tokens["colors"];
|
|
123
|
-
borderBlock: Tokens["borders"];
|
|
124
|
-
borderBlockColor: Tokens["colors"];
|
|
125
|
-
borderLeft: Tokens["borders"];
|
|
126
|
-
borderLeftColor: Tokens["colors"];
|
|
127
|
-
borderInlineStart: Tokens["borders"];
|
|
128
|
-
borderInlineStartColor: Tokens["colors"];
|
|
129
|
-
borderRight: Tokens["borders"];
|
|
130
|
-
borderRightColor: Tokens["colors"];
|
|
131
|
-
borderInlineEnd: Tokens["borders"];
|
|
132
|
-
borderInlineEndColor: Tokens["colors"];
|
|
133
|
-
borderTop: Tokens["borders"];
|
|
134
|
-
borderTopColor: Tokens["colors"];
|
|
135
|
-
borderBottom: Tokens["borders"];
|
|
136
|
-
borderBottomColor: Tokens["colors"];
|
|
137
|
-
borderBlockEnd: Tokens["borders"];
|
|
138
|
-
borderBlockEndColor: Tokens["colors"];
|
|
139
|
-
borderBlockStart: Tokens["borders"];
|
|
140
|
-
borderBlockStartColor: Tokens["colors"];
|
|
141
|
-
boxShadow: Tokens["shadows"];
|
|
142
|
-
boxShadowColor: Tokens["colors"];
|
|
143
|
-
filter: "auto";
|
|
144
|
-
blur: Tokens["blurs"];
|
|
145
|
-
backdropFilter: "auto";
|
|
146
|
-
backdropBlur: Tokens["blurs"];
|
|
147
|
-
borderSpacing: Tokens["spacing"] | "auto";
|
|
148
|
-
borderSpacingX: Tokens["spacing"];
|
|
149
|
-
borderSpacingY: Tokens["spacing"];
|
|
150
|
-
transitionTimingFunction: Tokens["easings"];
|
|
151
|
-
transitionDelay: Tokens["durations"];
|
|
152
|
-
transitionDuration: Tokens["durations"];
|
|
153
|
-
transitionProperty: "common" | "colors" | "size" | "position" | "background";
|
|
154
|
-
transition: "all" | "common" | "size" | "position" | "background" | "colors" | "opacity" | "shadow" | "transform";
|
|
155
|
-
animation: Tokens["animations"];
|
|
156
|
-
animationName: "blob" | "bounce" | "fade-in" | "fade-out" | "slide-from-top" | "slide-from-bottom" | "slide-from-left" | "slide-from-right" | "slide-to-top" | "slide-to-bottom" | "slide-to-left" | "slide-to-right" | "fadeIn" | "fadeInFromRight" | "fadeInFromLeft" | "fadeInFromBottom" | "fadeInSkew" | "fadeOut" | "fadeOutFromRight" | "fadeOutSkew" | "ping" | "pulse" | "skeleton-pulse" | "slide-in" | "slide-in-left" | "slide-in-modal" | "slide-in-top-modal" | "slide-in-right" | "slide-out" | "slide-out-left" | "slide-out-modal" | "slide-out-top-modal" | "slide-out-right" | "slideInFromBottom" | "slideOutToBottom" | "collapse-in" | "collapse-out" | "spin";
|
|
157
|
-
animationTimingFunction: Tokens["easings"];
|
|
158
|
-
animationDuration: Tokens["durations"];
|
|
159
|
-
animationDelay: Tokens["durations"];
|
|
160
|
-
rotate: "auto" | "auto-3d" | CssProperties["rotate"];
|
|
161
|
-
rotateX: CssProperties["rotate"];
|
|
162
|
-
rotateY: CssProperties["rotate"];
|
|
163
|
-
rotateZ: CssProperties["rotate"];
|
|
164
|
-
scale: "auto" | CssProperties["scale"];
|
|
165
|
-
translate: "auto" | "auto-3d" | CssProperties["translate"];
|
|
166
|
-
translateX: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
|
|
167
|
-
translateY: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
|
|
168
|
-
translateZ: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "full" | "-1/2" | "-1/3" | "-2/3" | "-1/4" | "-2/4" | "-3/4" | "-full";
|
|
169
|
-
accentColor: Tokens["colors"];
|
|
170
|
-
caretColor: Tokens["colors"];
|
|
171
|
-
scrollbar: "visible" | "hidden";
|
|
172
|
-
scrollbarColor: Tokens["colors"];
|
|
173
|
-
scrollbarWidth: Tokens["sizes"];
|
|
174
|
-
scrollMargin: Tokens["spacing"];
|
|
175
|
-
scrollMarginLeft: Tokens["spacing"];
|
|
176
|
-
scrollMarginRight: Tokens["spacing"];
|
|
177
|
-
scrollMarginTop: Tokens["spacing"];
|
|
178
|
-
scrollMarginBottom: Tokens["spacing"];
|
|
179
|
-
scrollMarginBlock: Tokens["spacing"];
|
|
180
|
-
scrollMarginBlockEnd: Tokens["spacing"];
|
|
181
|
-
scrollMarginBlockStart: Tokens["spacing"];
|
|
182
|
-
scrollMarginInline: Tokens["spacing"];
|
|
183
|
-
scrollMarginInlineEnd: Tokens["spacing"];
|
|
184
|
-
scrollMarginInlineStart: Tokens["spacing"];
|
|
185
|
-
scrollPadding: Tokens["spacing"];
|
|
186
|
-
scrollPaddingBlock: Tokens["spacing"];
|
|
187
|
-
scrollPaddingBlockStart: Tokens["spacing"];
|
|
188
|
-
scrollPaddingBlockEnd: Tokens["spacing"];
|
|
189
|
-
scrollPaddingInline: Tokens["spacing"];
|
|
190
|
-
scrollPaddingInlineEnd: Tokens["spacing"];
|
|
191
|
-
scrollPaddingInlineStart: Tokens["spacing"];
|
|
192
|
-
scrollPaddingLeft: Tokens["spacing"];
|
|
193
|
-
scrollPaddingRight: Tokens["spacing"];
|
|
194
|
-
scrollPaddingTop: Tokens["spacing"];
|
|
195
|
-
scrollPaddingBottom: Tokens["spacing"];
|
|
196
|
-
scrollSnapType: "none" | "x" | "y" | "both";
|
|
197
|
-
scrollSnapStrictness: "mandatory" | "proximity";
|
|
198
|
-
scrollSnapMargin: Tokens["spacing"];
|
|
199
|
-
scrollSnapMarginTop: Tokens["spacing"];
|
|
200
|
-
scrollSnapMarginBottom: Tokens["spacing"];
|
|
201
|
-
scrollSnapMarginLeft: Tokens["spacing"];
|
|
202
|
-
scrollSnapMarginRight: Tokens["spacing"];
|
|
203
|
-
fill: Tokens["colors"];
|
|
204
|
-
stroke: Tokens["colors"];
|
|
205
|
-
srOnly: boolean;
|
|
206
|
-
debug: boolean;
|
|
207
|
-
containerName: CssProperties["containerName"];
|
|
208
|
-
colorPalette: "black" | "current" | "transparent" | "white" | "purple" | "blue" | "grey" | "red" | "green" | "yellow" | "decorative" | "decorative.red" | "decorative.blue" | "decorative.yellow" | "decorative.purple" | "decorative.green" | "decorative.brown" | "typology" | "typology.fish" | "typology.meat" | "typology.fruit" | "typology.vegetable" | "typology.cereal" | "typology.oil" | "typology.aromatic" | "primary" | "secondary" | "error" | "success" | "warning" | "text";
|
|
209
|
-
textStyle: "body.lg" | "body.md" | "body.sm" | "heading.h1" | "heading.h2" | "heading.h3" | "heading.h4" | "heading.h5" | "heading.h6";
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
type WithColorOpacityModifier<T> = [T] extends [string] ? `${T}/${string}` & { __colorOpacityModifier?: true } : never
|
|
215
|
-
|
|
216
|
-
type ImportantMark = "!" | "!important"
|
|
217
|
-
type WhitespaceImportant = ` ${ImportantMark}`
|
|
218
|
-
type Important = ImportantMark | WhitespaceImportant
|
|
219
|
-
type WithImportant<T> = [T] extends [string] ? `${T}${Important}` & { __important?: true } : never
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Only relevant when using `strictTokens` or `strictPropertyValues` in your config.
|
|
223
|
-
* - Allows you to use an escape hatch (e.g. `[123px]`) to use any string as a value.
|
|
224
|
-
* - Allows you to use a color opacity modifier (e.g. `red/300`) with known color values.
|
|
225
|
-
* - Allows you to use an important mark (e.g. `!` or `!important`) in the value.
|
|
226
|
-
*
|
|
227
|
-
* This is useful when you want to use a value that is not defined in the config or want to opt-out of the defaults.
|
|
228
|
-
*
|
|
229
|
-
* @example
|
|
230
|
-
* css({
|
|
231
|
-
* fontSize: '[123px]', // ⚠️ will not throw even if you haven't defined 123px as a token
|
|
232
|
-
* })
|
|
233
|
-
*
|
|
234
|
-
* @see https://panda-css.com/docs/concepts/writing-styles#stricttokens
|
|
235
|
-
* @see https://panda-css.com/docs/concepts/writing-styles#strictpropertyvalues
|
|
236
|
-
*/
|
|
237
|
-
export type WithEscapeHatch<T> = T | `[${string}]` | WithColorOpacityModifier<T> | WithImportant<T>
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Will restrict the value of properties that have predefined values to those values only.
|
|
241
|
-
*
|
|
242
|
-
* @example
|
|
243
|
-
* css({
|
|
244
|
-
* display: 'abc', // ❌ will throw
|
|
245
|
-
* })
|
|
246
|
-
*
|
|
247
|
-
* @see https://panda-css.com/docs/concepts/writing-styles#strictpropertyvalues
|
|
248
|
-
*/
|
|
249
|
-
export type OnlyKnown<Key, Value> = Value extends boolean
|
|
250
|
-
? Value
|
|
251
|
-
: Value extends `${infer _}` ? Value : never
|
package/types/selectors.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { Pseudos } from './csstype';
|
|
3
|
-
|
|
4
|
-
type AriaAttributes =
|
|
5
|
-
| '[aria-disabled]'
|
|
6
|
-
| '[aria-hidden]'
|
|
7
|
-
| '[aria-invalid]'
|
|
8
|
-
| '[aria-readonly]'
|
|
9
|
-
| '[aria-required]'
|
|
10
|
-
| '[aria-selected]'
|
|
11
|
-
| '[aria-checked]'
|
|
12
|
-
| '[aria-expanded]'
|
|
13
|
-
| '[aria-pressed]'
|
|
14
|
-
| `[aria-current=${'page' | 'step' | 'location' | 'date' | 'time'}]`
|
|
15
|
-
| '[aria-invalid]'
|
|
16
|
-
| `[aria-sort=${'ascending' | 'descending'}]`
|
|
17
|
-
|
|
18
|
-
type DataAttributes =
|
|
19
|
-
| '[data-selected]'
|
|
20
|
-
| '[data-highlighted]'
|
|
21
|
-
| '[data-hover]'
|
|
22
|
-
| '[data-active]'
|
|
23
|
-
| '[data-checked]'
|
|
24
|
-
| '[data-disabled]'
|
|
25
|
-
| '[data-readonly]'
|
|
26
|
-
| '[data-focus]'
|
|
27
|
-
| '[data-focus-visible]'
|
|
28
|
-
| '[data-focus-visible-added]'
|
|
29
|
-
| '[data-invalid]'
|
|
30
|
-
| '[data-pressed]'
|
|
31
|
-
| '[data-expanded]'
|
|
32
|
-
| '[data-grabbed]'
|
|
33
|
-
| '[data-dragged]'
|
|
34
|
-
| '[data-orientation=horizontal]'
|
|
35
|
-
| '[data-orientation=vertical]'
|
|
36
|
-
| '[data-in-range]'
|
|
37
|
-
| '[data-out-of-range]'
|
|
38
|
-
| '[data-placeholder-shown]'
|
|
39
|
-
| `[data-part=${string}]`
|
|
40
|
-
| `[data-attr=${string}]`
|
|
41
|
-
| `[data-placement=${string}]`
|
|
42
|
-
| `[data-theme=${string}]`
|
|
43
|
-
| `[data-size=${string}]`
|
|
44
|
-
| `[data-state=${string}]`
|
|
45
|
-
| '[data-empty]'
|
|
46
|
-
| '[data-loading]'
|
|
47
|
-
| '[data-loaded]'
|
|
48
|
-
| '[data-enter]'
|
|
49
|
-
| '[data-entering]'
|
|
50
|
-
| '[data-exited]'
|
|
51
|
-
| '[data-exiting]'
|
|
52
|
-
|
|
53
|
-
type AttributeSelector = `&${Pseudos | DataAttributes | AriaAttributes}`
|
|
54
|
-
type ParentSelector = `${DataAttributes | AriaAttributes} &`
|
|
55
|
-
|
|
56
|
-
type AtRuleType = 'media' | 'layer' | 'container' | 'supports' | 'page' | 'scope' | 'starting-style'
|
|
57
|
-
|
|
58
|
-
export type AnySelector = `${string}&` | `&${string}` | `@${AtRuleType}${string}`
|
|
59
|
-
export type Selectors = AttributeSelector | ParentSelector
|
package/types/static-css.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
interface ConditionOptions {
|
|
3
|
-
/**
|
|
4
|
-
* The conditions to generate for the rule.
|
|
5
|
-
* @example ['hover', 'focus']
|
|
6
|
-
*/
|
|
7
|
-
conditions?: string[]
|
|
8
|
-
/**
|
|
9
|
-
* Whether to generate responsive styles for the rule.
|
|
10
|
-
*/
|
|
11
|
-
responsive?: boolean
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface CssRule extends ConditionOptions {
|
|
15
|
-
/**
|
|
16
|
-
* The css properties to generate utilities for.
|
|
17
|
-
* @example ['margin', 'padding']
|
|
18
|
-
*/
|
|
19
|
-
properties: {
|
|
20
|
-
[property: string]: Array<string | number>
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface RecipeRuleVariants {
|
|
25
|
-
[variant: string]: boolean | string[]
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type RecipeRuleObject = RecipeRuleVariants & ConditionOptions
|
|
29
|
-
export type RecipeRule = '*' | RecipeRuleObject
|
|
30
|
-
|
|
31
|
-
export type PatternRule = '*' | CssRule
|
|
32
|
-
|
|
33
|
-
export interface StaticCssOptions {
|
|
34
|
-
/**
|
|
35
|
-
* The css utility classes to generate.
|
|
36
|
-
*/
|
|
37
|
-
css?: CssRule[]
|
|
38
|
-
/**
|
|
39
|
-
* The css recipes to generate.
|
|
40
|
-
*/
|
|
41
|
-
recipes?:
|
|
42
|
-
| '*'
|
|
43
|
-
| {
|
|
44
|
-
[recipe: string]: RecipeRule[]
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* The css patterns to generate.
|
|
48
|
-
*/
|
|
49
|
-
patterns?: {
|
|
50
|
-
[pattern: string]: PatternRule[]
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* The CSS themes to generate
|
|
54
|
-
*/
|
|
55
|
-
themes?: string[]
|
|
56
|
-
}
|