@stokelp/styled-system 2.93.0 → 2.94.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.mjs +1 -1
- package/css/css.mjs +1 -1
- package/css/sva.mjs +9 -4
- package/helpers.mjs +12 -20
- package/jsx/create-style-context.d.ts +54 -0
- package/jsx/create-style-context.mjs +98 -0
- package/jsx/factory.mjs +14 -5
- package/jsx/index.d.ts +1 -0
- package/jsx/index.mjs +1 -0
- package/jsx/is-valid-prop.mjs +1 -1
- package/package.json +1 -1
- package/panda.buildinfo.json +11 -10
- package/patterns/aspect-ratio.d.ts +0 -1
- package/patterns/bleed.d.ts +0 -1
- package/patterns/box.d.ts +0 -1
- package/patterns/center.d.ts +0 -1
- package/patterns/circle.d.ts +0 -1
- package/patterns/container.d.ts +0 -1
- package/patterns/cq.d.ts +0 -1
- package/patterns/divider.d.ts +0 -1
- package/patterns/flex.d.ts +0 -1
- package/patterns/float.d.ts +0 -1
- package/patterns/grid-item.d.ts +0 -1
- package/patterns/grid.d.ts +0 -1
- package/patterns/grid.mjs +1 -1
- package/patterns/hstack.d.ts +0 -1
- package/patterns/hstack.mjs +1 -1
- package/patterns/link-overlay.d.ts +0 -1
- package/patterns/spacer.d.ts +0 -1
- package/patterns/square.d.ts +0 -1
- package/patterns/stack.d.ts +0 -1
- package/patterns/stack.mjs +1 -1
- package/patterns/visually-hidden.d.ts +0 -1
- package/patterns/vstack.d.ts +0 -1
- package/patterns/vstack.mjs +1 -1
- package/patterns/wrap.d.ts +0 -1
- package/patterns/wrap.mjs +1 -1
- package/recipes/accordion.d.ts +4 -1
- package/recipes/accordion.mjs +1 -0
- package/recipes/action-card.d.ts +4 -3
- package/recipes/action-card.mjs +1 -0
- package/recipes/alert.d.ts +4 -3
- package/recipes/alert.mjs +1 -0
- package/recipes/app-navigation-language-select.d.ts +4 -1
- package/recipes/app-navigation-language-select.mjs +1 -0
- package/recipes/app-navigation.d.ts +4 -3
- package/recipes/app-navigation.mjs +1 -0
- package/recipes/avatar-group.d.ts +3 -0
- package/recipes/avatar.d.ts +4 -1
- package/recipes/avatar.mjs +1 -0
- package/recipes/breadcrumb.d.ts +4 -1
- package/recipes/breadcrumb.mjs +1 -0
- package/recipes/button-filter.d.ts +3 -2
- package/recipes/button.d.ts +3 -2
- package/recipes/chat-document-message.d.ts +3 -2
- package/recipes/chat-message.d.ts +3 -2
- package/recipes/chat-profile-avatar.d.ts +3 -2
- package/recipes/chat-text-input.d.ts +3 -2
- package/recipes/chat.d.ts +4 -3
- package/recipes/chat.mjs +1 -0
- package/recipes/checkbox-card.d.ts +4 -1
- package/recipes/checkbox-card.mjs +1 -0
- package/recipes/checkbox-group.d.ts +3 -0
- package/recipes/checkbox.d.ts +4 -1
- package/recipes/checkbox.mjs +1 -0
- package/recipes/chip.d.ts +4 -3
- package/recipes/chip.mjs +1 -0
- package/recipes/collapsible.d.ts +4 -1
- package/recipes/collapsible.mjs +1 -0
- package/recipes/combobox.d.ts +4 -1
- package/recipes/combobox.mjs +1 -0
- package/recipes/datepicker.d.ts +4 -1
- package/recipes/datepicker.mjs +1 -0
- package/recipes/dialog.d.ts +4 -1
- package/recipes/dialog.mjs +1 -0
- package/recipes/drawer.d.ts +4 -1
- package/recipes/drawer.mjs +1 -0
- package/recipes/flag.d.ts +3 -0
- package/recipes/form-control.d.ts +3 -2
- package/recipes/form-helper-text.d.ts +3 -2
- package/recipes/form-label.d.ts +4 -3
- package/recipes/form-label.mjs +1 -0
- package/recipes/heading.d.ts +3 -0
- package/recipes/icon-button.d.ts +3 -2
- package/recipes/icon.d.ts +3 -0
- package/recipes/illustration.d.ts +3 -2
- package/recipes/input-addon.d.ts +3 -2
- package/recipes/input-group.d.ts +3 -2
- package/recipes/input.d.ts +3 -2
- package/recipes/menu.d.ts +4 -1
- package/recipes/menu.mjs +1 -0
- package/recipes/pagination.d.ts +4 -3
- package/recipes/pagination.mjs +1 -0
- package/recipes/phone-number-input.d.ts +3 -2
- package/recipes/popover.d.ts +4 -1
- package/recipes/popover.mjs +1 -0
- package/recipes/price-tag.d.ts +4 -1
- package/recipes/price-tag.mjs +1 -0
- package/recipes/product-card-catalog.d.ts +4 -3
- package/recipes/product-card-catalog.mjs +1 -0
- package/recipes/radio-button-group.d.ts +4 -1
- package/recipes/radio-button-group.mjs +1 -0
- package/recipes/radio-card-group.d.ts +4 -1
- package/recipes/radio-card-group.mjs +1 -0
- package/recipes/radio-group.d.ts +4 -1
- package/recipes/radio-group.mjs +1 -0
- package/recipes/select-language.d.ts +4 -1
- package/recipes/select-language.mjs +1 -0
- package/recipes/select.d.ts +4 -1
- package/recipes/select.mjs +1 -0
- package/recipes/status-tag-select.d.ts +4 -1
- package/recipes/status-tag-select.mjs +1 -0
- package/recipes/switch-card.d.ts +4 -1
- package/recipes/switch-card.mjs +1 -0
- package/recipes/switch-recipe.d.ts +4 -1
- package/recipes/switch-recipe.mjs +1 -0
- package/recipes/table-container.d.ts +3 -0
- package/recipes/table-empty-row.d.ts +3 -0
- package/recipes/table-group-title.d.ts +3 -0
- package/recipes/table.d.ts +4 -1
- package/recipes/table.mjs +1 -0
- package/recipes/tabs-chip.d.ts +3 -2
- package/recipes/tabs.d.ts +4 -1
- package/recipes/tabs.mjs +1 -0
- package/recipes/tag.d.ts +4 -3
- package/recipes/tag.mjs +1 -0
- package/recipes/text.d.ts +3 -0
- package/recipes/textarea.d.ts +3 -0
- package/recipes/tooltip.d.ts +4 -1
- package/recipes/tooltip.mjs +1 -0
- package/tokens/tokens.d.ts +1 -1
- package/types/composition.d.ts +83 -23
- package/types/conditions.d.ts +11 -7
- package/types/jsx.d.ts +25 -10
- package/types/prop-type.d.ts +10 -2
- package/types/style-props.d.ts +15 -4
- package/types/system-types.d.ts +76 -0
package/recipes/radio-group.d.ts
CHANGED
|
@@ -13,13 +13,16 @@ type RadioGroupVariantMap = {
|
|
|
13
13
|
[key in keyof RadioGroupVariant]: Array<RadioGroupVariant[key]>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
type RadioGroupSlot = "root" | "label" | "item" | "itemText" | "itemControl" | "indicator"
|
|
17
|
+
|
|
16
18
|
export type RadioGroupVariantProps = {
|
|
17
19
|
[key in keyof RadioGroupVariant]?: ConditionalValue<RadioGroupVariant[key]> | undefined
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface RadioGroupRecipe {
|
|
23
|
+
__slot: RadioGroupSlot
|
|
21
24
|
__type: RadioGroupVariantProps
|
|
22
|
-
(props?: RadioGroupVariantProps): Pretty<Record<
|
|
25
|
+
(props?: RadioGroupVariantProps): Pretty<Record<RadioGroupSlot, string>>
|
|
23
26
|
raw: (props?: RadioGroupVariantProps) => RadioGroupVariantProps
|
|
24
27
|
variantMap: RadioGroupVariantMap
|
|
25
28
|
variantKeys: Array<keyof RadioGroupVariant>
|
package/recipes/radio-group.mjs
CHANGED
|
@@ -13,13 +13,16 @@ type SelectLanguageVariantMap = {
|
|
|
13
13
|
[key in keyof SelectLanguageVariant]: Array<SelectLanguageVariant[key]>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
type SelectLanguageSlot = "label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText"
|
|
17
|
+
|
|
16
18
|
export type SelectLanguageVariantProps = {
|
|
17
19
|
[key in keyof SelectLanguageVariant]?: ConditionalValue<SelectLanguageVariant[key]> | undefined
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface SelectLanguageRecipe {
|
|
23
|
+
__slot: SelectLanguageSlot
|
|
21
24
|
__type: SelectLanguageVariantProps
|
|
22
|
-
(props?: SelectLanguageVariantProps): Pretty<Record<
|
|
25
|
+
(props?: SelectLanguageVariantProps): Pretty<Record<SelectLanguageSlot, string>>
|
|
23
26
|
raw: (props?: SelectLanguageVariantProps) => SelectLanguageVariantProps
|
|
24
27
|
variantMap: SelectLanguageVariantMap
|
|
25
28
|
variantKeys: Array<keyof SelectLanguageVariant>
|
package/recipes/select.d.ts
CHANGED
|
@@ -14,13 +14,16 @@ type SelectVariantMap = {
|
|
|
14
14
|
[key in keyof SelectVariant]: Array<SelectVariant[key]>
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
type SelectSlot = "label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText"
|
|
18
|
+
|
|
17
19
|
export type SelectVariantProps = {
|
|
18
20
|
[key in keyof SelectVariant]?: ConditionalValue<SelectVariant[key]> | undefined
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
export interface SelectRecipe {
|
|
24
|
+
__slot: SelectSlot
|
|
22
25
|
__type: SelectVariantProps
|
|
23
|
-
(props?: SelectVariantProps): Pretty<Record<
|
|
26
|
+
(props?: SelectVariantProps): Pretty<Record<SelectSlot, string>>
|
|
24
27
|
raw: (props?: SelectVariantProps) => SelectVariantProps
|
|
25
28
|
variantMap: SelectVariantMap
|
|
26
29
|
variantKeys: Array<keyof SelectVariant>
|
package/recipes/select.mjs
CHANGED
|
@@ -17,13 +17,16 @@ type StatusTagSelectVariantMap = {
|
|
|
17
17
|
[key in keyof StatusTagSelectVariant]: Array<StatusTagSelectVariant[key]>
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
type StatusTagSelectSlot = "label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText"
|
|
21
|
+
|
|
20
22
|
export type StatusTagSelectVariantProps = {
|
|
21
23
|
[key in keyof StatusTagSelectVariant]?: ConditionalValue<StatusTagSelectVariant[key]> | undefined
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
export interface StatusTagSelectRecipe {
|
|
27
|
+
__slot: StatusTagSelectSlot
|
|
25
28
|
__type: StatusTagSelectVariantProps
|
|
26
|
-
(props?: StatusTagSelectVariantProps): Pretty<Record<
|
|
29
|
+
(props?: StatusTagSelectVariantProps): Pretty<Record<StatusTagSelectSlot, string>>
|
|
27
30
|
raw: (props?: StatusTagSelectVariantProps) => StatusTagSelectVariantProps
|
|
28
31
|
variantMap: StatusTagSelectVariantMap
|
|
29
32
|
variantKeys: Array<keyof StatusTagSelectVariant>
|
package/recipes/switch-card.d.ts
CHANGED
|
@@ -13,13 +13,16 @@ type SwitchCardVariantMap = {
|
|
|
13
13
|
[key in keyof SwitchCardVariant]: Array<SwitchCardVariant[key]>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
type SwitchCardSlot = "root" | "label" | "control" | "thumb" | "image" | "content" | "title" | "description"
|
|
17
|
+
|
|
16
18
|
export type SwitchCardVariantProps = {
|
|
17
19
|
[key in keyof SwitchCardVariant]?: ConditionalValue<SwitchCardVariant[key]> | undefined
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface SwitchCardRecipe {
|
|
23
|
+
__slot: SwitchCardSlot
|
|
21
24
|
__type: SwitchCardVariantProps
|
|
22
|
-
(props?: SwitchCardVariantProps): Pretty<Record<
|
|
25
|
+
(props?: SwitchCardVariantProps): Pretty<Record<SwitchCardSlot, string>>
|
|
23
26
|
raw: (props?: SwitchCardVariantProps) => SwitchCardVariantProps
|
|
24
27
|
variantMap: SwitchCardVariantMap
|
|
25
28
|
variantKeys: Array<keyof SwitchCardVariant>
|
package/recipes/switch-card.mjs
CHANGED
|
@@ -13,13 +13,16 @@ type SwitchRecipeVariantMap = {
|
|
|
13
13
|
[key in keyof SwitchRecipeVariant]: Array<SwitchRecipeVariant[key]>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
type SwitchRecipeSlot = "root" | "label" | "control" | "thumb"
|
|
17
|
+
|
|
16
18
|
export type SwitchRecipeVariantProps = {
|
|
17
19
|
[key in keyof SwitchRecipeVariant]?: ConditionalValue<SwitchRecipeVariant[key]> | undefined
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface SwitchRecipeRecipe {
|
|
23
|
+
__slot: SwitchRecipeSlot
|
|
21
24
|
__type: SwitchRecipeVariantProps
|
|
22
|
-
(props?: SwitchRecipeVariantProps): Pretty<Record<
|
|
25
|
+
(props?: SwitchRecipeVariantProps): Pretty<Record<SwitchRecipeSlot, string>>
|
|
23
26
|
raw: (props?: SwitchRecipeVariantProps) => SwitchRecipeVariantProps
|
|
24
27
|
variantMap: SwitchRecipeVariantMap
|
|
25
28
|
variantKeys: Array<keyof SwitchRecipeVariant>
|
|
@@ -10,11 +10,14 @@ type TableContainerVariantMap = {
|
|
|
10
10
|
[key in keyof TableContainerVariant]: Array<TableContainerVariant[key]>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
|
|
14
|
+
|
|
13
15
|
export type TableContainerVariantProps = {
|
|
14
16
|
[key in keyof TableContainerVariant]?: ConditionalValue<TableContainerVariant[key]> | undefined
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export interface TableContainerRecipe {
|
|
20
|
+
|
|
18
21
|
__type: TableContainerVariantProps
|
|
19
22
|
(props?: TableContainerVariantProps): string
|
|
20
23
|
raw: (props?: TableContainerVariantProps) => TableContainerVariantProps
|
|
@@ -10,11 +10,14 @@ type TableEmptyRowVariantMap = {
|
|
|
10
10
|
[key in keyof TableEmptyRowVariant]: Array<TableEmptyRowVariant[key]>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
|
|
14
|
+
|
|
13
15
|
export type TableEmptyRowVariantProps = {
|
|
14
16
|
[key in keyof TableEmptyRowVariant]?: ConditionalValue<TableEmptyRowVariant[key]> | undefined
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export interface TableEmptyRowRecipe {
|
|
20
|
+
|
|
18
21
|
__type: TableEmptyRowVariantProps
|
|
19
22
|
(props?: TableEmptyRowVariantProps): string
|
|
20
23
|
raw: (props?: TableEmptyRowVariantProps) => TableEmptyRowVariantProps
|
|
@@ -13,11 +13,14 @@ type TableGroupTitleVariantMap = {
|
|
|
13
13
|
[key in keyof TableGroupTitleVariant]: Array<TableGroupTitleVariant[key]>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
|
|
17
|
+
|
|
16
18
|
export type TableGroupTitleVariantProps = {
|
|
17
19
|
[key in keyof TableGroupTitleVariant]?: ConditionalValue<TableGroupTitleVariant[key]> | undefined
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface TableGroupTitleRecipe {
|
|
23
|
+
|
|
21
24
|
__type: TableGroupTitleVariantProps
|
|
22
25
|
(props?: TableGroupTitleVariantProps): string
|
|
23
26
|
raw: (props?: TableGroupTitleVariantProps) => TableGroupTitleVariantProps
|
package/recipes/table.d.ts
CHANGED
|
@@ -10,13 +10,16 @@ type TableVariantMap = {
|
|
|
10
10
|
[key in keyof TableVariant]: Array<TableVariant[key]>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
type TableSlot = "root" | "thead" | "tbody" | "tr" | "th" | "td" | "sortIndicatorRoot" | "sortIndicator"
|
|
14
|
+
|
|
13
15
|
export type TableVariantProps = {
|
|
14
16
|
[key in keyof TableVariant]?: ConditionalValue<TableVariant[key]> | undefined
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export interface TableRecipe {
|
|
20
|
+
__slot: TableSlot
|
|
18
21
|
__type: TableVariantProps
|
|
19
|
-
(props?: TableVariantProps): Pretty<Record<
|
|
22
|
+
(props?: TableVariantProps): Pretty<Record<TableSlot, string>>
|
|
20
23
|
raw: (props?: TableVariantProps) => TableVariantProps
|
|
21
24
|
variantMap: TableVariantMap
|
|
22
25
|
variantKeys: Array<keyof TableVariant>
|
package/recipes/table.mjs
CHANGED
package/recipes/tabs-chip.d.ts
CHANGED
|
@@ -13,11 +13,14 @@ type TabsChipVariantMap = {
|
|
|
13
13
|
[key in keyof TabsChipVariant]: Array<TabsChipVariant[key]>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
|
|
17
|
+
|
|
16
18
|
export type TabsChipVariantProps = {
|
|
17
19
|
[key in keyof TabsChipVariant]?: ConditionalValue<TabsChipVariant[key]> | undefined
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface TabsChipRecipe {
|
|
23
|
+
|
|
21
24
|
__type: TabsChipVariantProps
|
|
22
25
|
(props?: TabsChipVariantProps): string
|
|
23
26
|
raw: (props?: TabsChipVariantProps) => TabsChipVariantProps
|
|
@@ -29,7 +32,5 @@ export interface TabsChipRecipe {
|
|
|
29
32
|
|
|
30
33
|
/**
|
|
31
34
|
* The styles for the TabsChip component
|
|
32
|
-
|
|
33
|
-
|
|
34
35
|
*/
|
|
35
36
|
export declare const tabsChip: TabsChipRecipe
|
package/recipes/tabs.d.ts
CHANGED
|
@@ -17,13 +17,16 @@ type TabsVariantMap = {
|
|
|
17
17
|
[key in keyof TabsVariant]: Array<TabsVariant[key]>
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
type TabsSlot = "root" | "list" | "trigger" | "content" | "indicator"
|
|
21
|
+
|
|
20
22
|
export type TabsVariantProps = {
|
|
21
23
|
[key in keyof TabsVariant]?: ConditionalValue<TabsVariant[key]> | undefined
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
export interface TabsRecipe {
|
|
27
|
+
__slot: TabsSlot
|
|
25
28
|
__type: TabsVariantProps
|
|
26
|
-
(props?: TabsVariantProps): Pretty<Record<
|
|
29
|
+
(props?: TabsVariantProps): Pretty<Record<TabsSlot, string>>
|
|
27
30
|
raw: (props?: TabsVariantProps) => TabsVariantProps
|
|
28
31
|
variantMap: TabsVariantMap
|
|
29
32
|
variantKeys: Array<keyof TabsVariant>
|
package/recipes/tabs.mjs
CHANGED
package/recipes/tag.d.ts
CHANGED
|
@@ -17,13 +17,16 @@ type TagVariantMap = {
|
|
|
17
17
|
[key in keyof TagVariant]: Array<TagVariant[key]>
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
type TagSlot = "root" | "badge"
|
|
21
|
+
|
|
20
22
|
export type TagVariantProps = {
|
|
21
23
|
[key in keyof TagVariant]?: ConditionalValue<TagVariant[key]> | undefined
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
export interface TagRecipe {
|
|
27
|
+
__slot: TagSlot
|
|
25
28
|
__type: TagVariantProps
|
|
26
|
-
(props?: TagVariantProps): Pretty<Record<
|
|
29
|
+
(props?: TagVariantProps): Pretty<Record<TagSlot, string>>
|
|
27
30
|
raw: (props?: TagVariantProps) => TagVariantProps
|
|
28
31
|
variantMap: TagVariantMap
|
|
29
32
|
variantKeys: Array<keyof TagVariant>
|
|
@@ -33,7 +36,5 @@ export interface TagRecipe {
|
|
|
33
36
|
|
|
34
37
|
/**
|
|
35
38
|
* The styles for the Tag component
|
|
36
|
-
|
|
37
|
-
|
|
38
39
|
*/
|
|
39
40
|
export declare const tag: TagRecipe
|
package/recipes/tag.mjs
CHANGED
package/recipes/text.d.ts
CHANGED
|
@@ -16,11 +16,14 @@ type TextVariantMap = {
|
|
|
16
16
|
[key in keyof TextVariant]: Array<TextVariant[key]>
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
|
|
20
|
+
|
|
19
21
|
export type TextVariantProps = {
|
|
20
22
|
[key in keyof TextVariant]?: ConditionalValue<TextVariant[key]> | undefined
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
export interface TextRecipe {
|
|
26
|
+
|
|
24
27
|
__type: TextVariantProps
|
|
25
28
|
(props?: TextVariantProps): string
|
|
26
29
|
raw: (props?: TextVariantProps) => TextVariantProps
|
package/recipes/textarea.d.ts
CHANGED
|
@@ -10,11 +10,14 @@ type TextareaVariantMap = {
|
|
|
10
10
|
[key in keyof TextareaVariant]: Array<TextareaVariant[key]>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
|
|
14
|
+
|
|
13
15
|
export type TextareaVariantProps = {
|
|
14
16
|
[key in keyof TextareaVariant]?: ConditionalValue<TextareaVariant[key]> | undefined
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export interface TextareaRecipe {
|
|
20
|
+
|
|
18
21
|
__type: TextareaVariantProps
|
|
19
22
|
(props?: TextareaVariantProps): string
|
|
20
23
|
raw: (props?: TextareaVariantProps) => TextareaVariantProps
|
package/recipes/tooltip.d.ts
CHANGED
|
@@ -10,13 +10,16 @@ type TooltipVariantMap = {
|
|
|
10
10
|
[key in keyof TooltipVariant]: Array<TooltipVariant[key]>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
type TooltipSlot = "trigger" | "arrow" | "arrowTip" | "positioner" | "content"
|
|
14
|
+
|
|
13
15
|
export type TooltipVariantProps = {
|
|
14
16
|
[key in keyof TooltipVariant]?: ConditionalValue<TooltipVariant[key]> | undefined
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export interface TooltipRecipe {
|
|
20
|
+
__slot: TooltipSlot
|
|
18
21
|
__type: TooltipVariantProps
|
|
19
|
-
(props?: TooltipVariantProps): Pretty<Record<
|
|
22
|
+
(props?: TooltipVariantProps): Pretty<Record<TooltipSlot, string>>
|
|
20
23
|
raw: (props?: TooltipVariantProps) => TooltipVariantProps
|
|
21
24
|
variantMap: TooltipVariantMap
|
|
22
25
|
variantKeys: Array<keyof TooltipVariant>
|
package/recipes/tooltip.mjs
CHANGED
package/tokens/tokens.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
export type Token = "animations.backdrop-in" | "animations.backdrop-out" | "animations.bounce" | "animations.dialog-in" | "animations.dialog-out" | "animations.drawer-in-left" | "animations.drawer-in-right" | "animations.drawer-out-left" | "animations.drawer-out-right" | "animations.fade-in" | "animations.ping" | "animations.pulse" | "animations.skeleton-pulse" | "animations.spin" | "animations.collapse-in" | "animations.collapse-out" | "aspectRatios.golden" | "aspectRatios.landscape" | "aspectRatios.portrait" | "aspectRatios.square" | "aspectRatios.ultrawide" | "aspectRatios.wide" | "blurs.2xl" | "blurs.3xl" | "blurs.base" | "blurs.lg" | "blurs.md" | "blurs.sm" | "blurs.xl" | "borders.border.none" | "colors.black" | "colors.current" | "colors.transparent" | "colors.white" | "colors.purple.100" | "colors.purple.200" | "colors.purple.300" | "colors.purple.400" | "colors.purple.500" | "colors.purple.600" | "colors.purple.700" | "colors.purple.800" | "colors.purple.900" | "colors.blue.100" | "colors.blue.200" | "colors.blue.300" | "colors.blue.400" | "colors.blue.500" | "colors.blue.600" | "colors.blue.700" | "colors.blue.800" | "colors.blue.900" | "colors.grey.10" | "colors.grey.50" | "colors.grey.100" | "colors.grey.200" | "colors.grey.300" | "colors.grey.400" | "colors.grey.500" | "colors.grey.600" | "colors.grey.700" | "colors.grey.800" | "colors.grey.900" | "colors.red.100" | "colors.red.200" | "colors.red.300" | "colors.red.400" | "colors.red.500" | "colors.red.600" | "colors.red.700" | "colors.red.800" | "colors.red.900" | "colors.green.100" | "colors.green.200" | "colors.green.300" | "colors.green.400" | "colors.green.500" | "colors.green.600" | "colors.green.700" | "colors.green.800" | "colors.green.900" | "colors.yellow.100" | "colors.yellow.200" | "colors.yellow.300" | "colors.yellow.400" | "colors.yellow.500" | "colors.yellow.600" | "colors.yellow.700" | "colors.yellow.800" | "colors.yellow.900" | "durations.fast" | "durations.faster" | "durations.fastest" | "durations.normal" | "durations.slow" | "durations.slower" | "durations.slowest" | "easings.default" | "easings.ease-bounce-1" | "easings.ease-bounce-2" | "easings.ease-bounce-3" | "easings.ease-bounce-4" | "easings.ease-bounce-5" | "easings.ease-spring-1" | "easings.ease-spring-2" | "easings.ease-spring-3" | "easings.ease-spring-4" | "easings.ease-spring-5" | "easings.emphasized-in" | "easings.emphasized-out" | "easings.in" | "easings.in-out" | "easings.linear" | "easings.out" | "easings.pulse" | "fontSizes.body.lg" | "fontSizes.body.md" | "fontSizes.body.sm" | "fontSizes.heading.desktop.2xl" | "fontSizes.heading.desktop.lg" | "fontSizes.heading.desktop.md" | "fontSizes.heading.desktop.sm" | "fontSizes.heading.desktop.xs" | "fontSizes.heading.mobile.2xl" | "fontSizes.heading.mobile.lg" | "fontSizes.heading.mobile.md" | "fontSizes.heading.mobile.sm" | "fontSizes.heading.mobile.xs" | "fontWeights.black" | "fontWeights.bold" | "fontWeights.extrabold" | "fontWeights.extralight" | "fontWeights.light" | "fontWeights.medium" | "fontWeights.normal" | "fontWeights.semibold" | "fontWeights.thin" | "fonts.satoshi" | "fonts.cabinet" | "fonts.mono" | "fonts.sans" | "fonts.serif" | "letterSpacings.normal" | "letterSpacings.tight" | "letterSpacings.tighter" | "letterSpacings.wide" | "letterSpacings.wider" | "letterSpacings.widest" | "radii.radius-0" | "radii.radius-2" | "radii.radius-4" | "radii.radius-6" | "radii.radius-8" | "radii.radius-10" | "radii.radius-12" | "radii.radius-16" | "radii.radius-20" | "radii.radius-24" | "radii.radius-28" | "radii.radius-32" | "radii.radius-36" | "radii.radius-40" | "radii.radius-44" | "radii.radius-48" | "radii.radius-52" | "radii.radius-56" | "radii.radius-60" | "radii.radius-64" | "radii.full" | "shadows.2xl" | "shadows.inner" | "shadows.lg" | "shadows.md" | "shadows.sm" | "shadows.xl" | "shadows.xs" | "sizes.size-0" | "sizes.size-12" | "sizes.size-14" | "sizes.size-16" | "sizes.size-18" | "sizes.size-2" | "sizes.size-20" | "sizes.size-24" | "sizes.size-28" | "sizes.size-32" | "sizes.size-36" | "sizes.size-4" | "sizes.size-40" | "sizes.size-6" | "sizes.size-44" | "sizes.size-8" | "sizes.full" | "sizes.max" | "sizes.size-48" | "sizes.fit" | "sizes.size-52" | "sizes.min" | "sizes.size-56" | "sizes.size-60" | "sizes.size-64" | "sizes.size-68" | "sizes.size-72" | "sizes.size-76" | "sizes.size-80" | "sizes.breakpoint-xl" | "sizes.breakpoint-lg" | "sizes.breakpoint-md" | "sizes.breakpoint-sm" | "spacing.space-0" | "spacing.space-12" | "spacing.space-10" | "spacing.space-14" | "spacing.space-16" | "spacing.space-18" | "spacing.space-2" | "spacing.space-20" | "spacing.space-24" | "spacing.space-28" | "spacing.space-32" | "spacing.space-36" | "spacing.space-4" | "spacing.space-40" | "spacing.space-6" | "spacing.space-44" | "spacing.space-8" | "spacing.space-48" | "spacing.space-52" | "spacing.space-56" | "spacing.space-60" | "spacing.space-64" | "spacing.space-68" | "spacing.space-72" | "spacing.space-76" | "spacing.space-80" | "zIndex.banner" | "zIndex.base" | "zIndex.docked" | "zIndex.dropdown" | "zIndex.hide" | "zIndex.modal" | "zIndex.overlay" | "zIndex.popover" | "zIndex.skipLink" | "zIndex.sticky" | "zIndex.toast" | "zIndex.tooltip" | "breakpoints.xl" | "breakpoints.lg" | "breakpoints.md" | "breakpoints.sm" | "colors.decorative.red.light" | "colors.decorative.red.mid" | "colors.decorative.red.dark" | "colors.decorative.blue.light" | "colors.decorative.blue.mid" | "colors.decorative.blue.dark" | "colors.decorative.yellow.light" | "colors.decorative.yellow.mid" | "colors.decorative.yellow.dark" | "colors.decorative.purple.light" | "colors.decorative.purple.mid" | "colors.decorative.purple.dark" | "colors.decorative.green.light" | "colors.decorative.green.mid" | "colors.decorative.green.dark" | "colors.decorative.brown.light" | "colors.decorative.brown.mid" | "colors.decorative.brown.dark" | "colors.typology.fish.light" | "colors.typology.fish.mid" | "colors.typology.fish.dark" | "colors.typology.meat.light" | "colors.typology.meat.mid" | "colors.typology.meat.dark" | "colors.typology.fruit.light" | "colors.typology.fruit.mid" | "colors.typology.fruit.dark" | "colors.typology.vegetable.light" | "colors.typology.vegetable.mid" | "colors.typology.vegetable.dark" | "colors.typology.cereal.light" | "colors.typology.cereal.mid" | "colors.typology.cereal.dark" | "colors.typology.oil.light" | "colors.typology.oil.mid" | "colors.typology.oil.dark" | "colors.typology.aromatic.light" | "colors.typology.aromatic.mid" | "colors.typology.aromatic.dark" | "colors.primary.100" | "colors.primary.200" | "colors.primary.300" | "colors.primary.400" | "colors.primary.500" | "colors.primary.600" | "colors.primary.700" | "colors.primary.800" | "colors.primary.900" | "colors.secondary.100" | "colors.secondary.200" | "colors.secondary.300" | "colors.secondary.400" | "colors.secondary.500" | "colors.secondary.600" | "colors.secondary.700" | "colors.secondary.800" | "colors.secondary.900" | "colors.error.100" | "colors.error.200" | "colors.error.300" | "colors.error.400" | "colors.error.500" | "colors.error.600" | "colors.error.700" | "colors.error.800" | "colors.error.900" | "colors.success.100" | "colors.success.200" | "colors.success.300" | "colors.success.400" | "colors.success.500" | "colors.success.600" | "colors.success.700" | "colors.success.800" | "colors.success.900" | "colors.warning.100" | "colors.warning.200" | "colors.warning.300" | "colors.warning.400" | "colors.warning.500" | "colors.warning.600" | "colors.warning.700" | "colors.warning.800" | "colors.warning.900" | "colors.text" | "colors.text.disabled" | "colors.text.heading" | "spacing.-space-0" | "spacing.-space-12" | "spacing.-space-10" | "spacing.-space-14" | "spacing.-space-16" | "spacing.-space-18" | "spacing.-space-2" | "spacing.-space-20" | "spacing.-space-24" | "spacing.-space-28" | "spacing.-space-32" | "spacing.-space-36" | "spacing.-space-4" | "spacing.-space-40" | "spacing.-space-6" | "spacing.-space-44" | "spacing.-space-8" | "spacing.-space-48" | "spacing.-space-52" | "spacing.-space-56" | "spacing.-space-60" | "spacing.-space-64" | "spacing.-space-68" | "spacing.-space-72" | "spacing.-space-76" | "spacing.-space-80" | "colors.colorPalette" | "colors.colorPalette.100" | "colors.colorPalette.200" | "colors.colorPalette.300" | "colors.colorPalette.400" | "colors.colorPalette.500" | "colors.colorPalette.600" | "colors.colorPalette.700" | "colors.colorPalette.800" | "colors.colorPalette.900" | "colors.colorPalette.10" | "colors.colorPalette.50" | "colors.colorPalette.red.light" | "colors.colorPalette.light" | "colors.colorPalette.red.mid" | "colors.colorPalette.mid" | "colors.colorPalette.red.dark" | "colors.colorPalette.dark" | "colors.colorPalette.blue.light" | "colors.colorPalette.blue.mid" | "colors.colorPalette.blue.dark" | "colors.colorPalette.yellow.light" | "colors.colorPalette.yellow.mid" | "colors.colorPalette.yellow.dark" | "colors.colorPalette.purple.light" | "colors.colorPalette.purple.mid" | "colors.colorPalette.purple.dark" | "colors.colorPalette.green.light" | "colors.colorPalette.green.mid" | "colors.colorPalette.green.dark" | "colors.colorPalette.brown.light" | "colors.colorPalette.brown.mid" | "colors.colorPalette.brown.dark" | "colors.colorPalette.fish.light" | "colors.colorPalette.fish.mid" | "colors.colorPalette.fish.dark" | "colors.colorPalette.meat.light" | "colors.colorPalette.meat.mid" | "colors.colorPalette.meat.dark" | "colors.colorPalette.fruit.light" | "colors.colorPalette.fruit.mid" | "colors.colorPalette.fruit.dark" | "colors.colorPalette.vegetable.light" | "colors.colorPalette.vegetable.mid" | "colors.colorPalette.vegetable.dark" | "colors.colorPalette.cereal.light" | "colors.colorPalette.cereal.mid" | "colors.colorPalette.cereal.dark" | "colors.colorPalette.oil.light" | "colors.colorPalette.oil.mid" | "colors.colorPalette.oil.dark" | "colors.colorPalette.aromatic.light" | "colors.colorPalette.aromatic.mid" | "colors.colorPalette.aromatic.dark" | "colors.colorPalette.disabled" | "colors.colorPalette.heading"
|
|
2
|
+
export type Token = `animations.${AnimationToken}` | `aspectRatios.${AspectRatioToken}` | `blurs.${BlurToken}` | `borders.${BorderToken}` | `colors.${ColorToken}` | `durations.${DurationToken}` | `easings.${EasingToken}` | `fontSizes.${FontSizeToken}` | `fontWeights.${FontWeightToken}` | `fonts.${FontToken}` | `letterSpacings.${LetterSpacingToken}` | `radii.${RadiusToken}` | `shadows.${ShadowToken}` | `sizes.${SizeToken}` | `spacing.${SpacingToken}` | `zIndex.${ZIndexToken}` | `breakpoints.${BreakpointToken}`
|
|
3
3
|
|
|
4
4
|
export type 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"
|
|
5
5
|
|
package/types/composition.d.ts
CHANGED
|
@@ -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
|
|