@stokelp/styled-system 2.127.0 → 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 -61
- 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/recipes/steps.d.ts
CHANGED
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type StepsVariantMap = {
|
|
10
|
-
[key in keyof StepsVariant]: Array<StepsVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type StepsSlot = "root" | "list" | "item" | "trigger" | "indicator" | "separator" | "content" | "nextTrigger" | "prevTrigger" | "progress"
|
|
4
|
+
export type StepsVariant = {}
|
|
14
5
|
|
|
15
6
|
export type StepsVariantProps = {
|
|
16
|
-
[
|
|
7
|
+
[K in keyof StepsVariant]?: ConditionalValue<StepsVariant[K]>
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
(props?: StepsVariantProps): Pretty<Record<StepsSlot, string>>
|
|
23
|
-
raw: (props?: StepsVariantProps) => StepsVariantProps
|
|
24
|
-
variantMap: StepsVariantMap
|
|
25
|
-
variantKeys: Array<keyof StepsVariant>
|
|
26
|
-
splitVariantProps<Props extends StepsVariantProps>(props: Props): [StepsVariantProps, Pretty<DistributiveOmit<Props, keyof StepsVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: StepsVariantProps) => StepsVariantProps
|
|
28
|
-
}
|
|
10
|
+
export type StepsVariantMap = RecipeVariantMap<StepsVariant>
|
|
11
|
+
|
|
12
|
+
export type StepsSlot = "root" | "list" | "item" | "trigger" | "indicator" | "separator" | "content" | "nextTrigger" | "prevTrigger" | "progress"
|
|
29
13
|
|
|
14
|
+
export type StepsRecipe = ConfigSlotRecipeRuntimeFn<StepsSlot, StepsVariantProps, StepsVariantMap>
|
|
30
15
|
|
|
31
|
-
export declare const steps: StepsRecipe
|
|
16
|
+
export declare const steps: StepsRecipe;
|
package/recipes/steps.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSlotRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const stepsConfig = {"name":"steps","slots":["root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"]}
|
|
4
|
+
|
|
5
|
+
export const steps = /* @__PURE__ */ createSlotRecipe(stepsConfig)
|
package/recipes/switch-card.d.ts
CHANGED
|
@@ -1,34 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* @default "md"
|
|
8
|
-
*/
|
|
9
|
-
size: "md"
|
|
4
|
+
export type SwitchCardVariant = {
|
|
5
|
+
size?: "md"
|
|
10
6
|
}
|
|
11
7
|
|
|
12
|
-
type SwitchCardVariantMap = {
|
|
13
|
-
[key in keyof SwitchCardVariant]: Array<SwitchCardVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type SwitchCardSlot = "root" | "label" | "control" | "thumb" | "image" | "content" | "title" | "description"
|
|
17
|
-
|
|
18
8
|
export type SwitchCardVariantProps = {
|
|
19
|
-
[
|
|
9
|
+
[K in keyof SwitchCardVariant]?: ConditionalValue<SwitchCardVariant[K]>
|
|
20
10
|
}
|
|
21
11
|
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
(props?: SwitchCardVariantProps): Pretty<Record<SwitchCardSlot, string>>
|
|
26
|
-
raw: (props?: SwitchCardVariantProps) => SwitchCardVariantProps
|
|
27
|
-
variantMap: SwitchCardVariantMap
|
|
28
|
-
variantKeys: Array<keyof SwitchCardVariant>
|
|
29
|
-
splitVariantProps<Props extends SwitchCardVariantProps>(props: Props): [SwitchCardVariantProps, Pretty<DistributiveOmit<Props, keyof SwitchCardVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: SwitchCardVariantProps) => SwitchCardVariantProps
|
|
31
|
-
}
|
|
12
|
+
export type SwitchCardVariantMap = RecipeVariantMap<SwitchCardVariant>
|
|
13
|
+
|
|
14
|
+
export type SwitchCardSlot = "root" | "label" | "control" | "thumb" | "image" | "content" | "title" | "description"
|
|
32
15
|
|
|
16
|
+
export type SwitchCardRecipe = ConfigSlotRecipeRuntimeFn<SwitchCardSlot, SwitchCardVariantProps, SwitchCardVariantMap>
|
|
33
17
|
|
|
34
|
-
export declare const switchCard: SwitchCardRecipe
|
|
18
|
+
export declare const switchCard: SwitchCardRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSlotRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const switchCardConfig = {"name":"switchCard","className":"switch-card","slots":["root","label","control","thumb","image","content","title","description"],"defaultVariants":{"size":"md"},"variantMap":{"size":["md"]}}
|
|
4
|
+
|
|
5
|
+
export const switchCard = /* @__PURE__ */ createSlotRecipe(switchCardConfig)
|
|
@@ -1,34 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* @default "md"
|
|
8
|
-
*/
|
|
9
|
-
size: "md"
|
|
4
|
+
export type SwitchRecipeVariant = {
|
|
5
|
+
size?: "md"
|
|
10
6
|
}
|
|
11
7
|
|
|
12
|
-
type SwitchRecipeVariantMap = {
|
|
13
|
-
[key in keyof SwitchRecipeVariant]: Array<SwitchRecipeVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type SwitchRecipeSlot = "root" | "label" | "control" | "thumb"
|
|
17
|
-
|
|
18
8
|
export type SwitchRecipeVariantProps = {
|
|
19
|
-
[
|
|
9
|
+
[K in keyof SwitchRecipeVariant]?: ConditionalValue<SwitchRecipeVariant[K]>
|
|
20
10
|
}
|
|
21
11
|
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
(props?: SwitchRecipeVariantProps): Pretty<Record<SwitchRecipeSlot, string>>
|
|
26
|
-
raw: (props?: SwitchRecipeVariantProps) => SwitchRecipeVariantProps
|
|
27
|
-
variantMap: SwitchRecipeVariantMap
|
|
28
|
-
variantKeys: Array<keyof SwitchRecipeVariant>
|
|
29
|
-
splitVariantProps<Props extends SwitchRecipeVariantProps>(props: Props): [SwitchRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SwitchRecipeVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: SwitchRecipeVariantProps) => SwitchRecipeVariantProps
|
|
31
|
-
}
|
|
12
|
+
export type SwitchRecipeVariantMap = RecipeVariantMap<SwitchRecipeVariant>
|
|
13
|
+
|
|
14
|
+
export type SwitchRecipeSlot = "root" | "label" | "control" | "thumb"
|
|
32
15
|
|
|
16
|
+
export type SwitchRecipeRecipe = ConfigSlotRecipeRuntimeFn<SwitchRecipeSlot, SwitchRecipeVariantProps, SwitchRecipeVariantMap>
|
|
33
17
|
|
|
34
|
-
export declare const switchRecipe: SwitchRecipeRecipe
|
|
18
|
+
export declare const switchRecipe: SwitchRecipeRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSlotRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const switchRecipeConfig = {"name":"switchRecipe","className":"switch","slots":["root","label","control","thumb"],"defaultVariants":{"size":"md"},"variantMap":{"size":["md"]}}
|
|
4
|
+
|
|
5
|
+
export const switchRecipe = /* @__PURE__ */ createSlotRecipe(switchRecipeConfig)
|
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface TableContainerVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type TableContainerVariantMap = {
|
|
10
|
-
[key in keyof TableContainerVariant]: Array<TableContainerVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
13
3
|
|
|
4
|
+
export type TableContainerVariant = {}
|
|
14
5
|
|
|
15
6
|
export type TableContainerVariantProps = {
|
|
16
|
-
[
|
|
7
|
+
[K in keyof TableContainerVariant]?: ConditionalValue<TableContainerVariant[K]>
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
__type: TableContainerVariantProps
|
|
22
|
-
(props?: TableContainerVariantProps): string
|
|
23
|
-
raw: (props?: TableContainerVariantProps) => TableContainerVariantProps
|
|
24
|
-
variantMap: TableContainerVariantMap
|
|
25
|
-
variantKeys: Array<keyof TableContainerVariant>
|
|
26
|
-
splitVariantProps<Props extends TableContainerVariantProps>(props: Props): [TableContainerVariantProps, Pretty<DistributiveOmit<Props, keyof TableContainerVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: TableContainerVariantProps) => TableContainerVariantProps
|
|
28
|
-
}
|
|
10
|
+
export type TableContainerVariantMap = RecipeVariantMap<TableContainerVariant>
|
|
29
11
|
|
|
12
|
+
export type TableContainerRecipe = ConfigRecipeRuntimeFn<TableContainerVariantProps, TableContainerVariantMap>
|
|
30
13
|
|
|
31
|
-
export declare const tableContainer: TableContainerRecipe
|
|
14
|
+
export declare const tableContainer: TableContainerRecipe;
|
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface TableEmptyRowVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type TableEmptyRowVariantMap = {
|
|
10
|
-
[key in keyof TableEmptyRowVariant]: Array<TableEmptyRowVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
13
3
|
|
|
4
|
+
export type TableEmptyRowVariant = {}
|
|
14
5
|
|
|
15
6
|
export type TableEmptyRowVariantProps = {
|
|
16
|
-
[
|
|
7
|
+
[K in keyof TableEmptyRowVariant]?: ConditionalValue<TableEmptyRowVariant[K]>
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
__type: TableEmptyRowVariantProps
|
|
22
|
-
(props?: TableEmptyRowVariantProps): string
|
|
23
|
-
raw: (props?: TableEmptyRowVariantProps) => TableEmptyRowVariantProps
|
|
24
|
-
variantMap: TableEmptyRowVariantMap
|
|
25
|
-
variantKeys: Array<keyof TableEmptyRowVariant>
|
|
26
|
-
splitVariantProps<Props extends TableEmptyRowVariantProps>(props: Props): [TableEmptyRowVariantProps, Pretty<DistributiveOmit<Props, keyof TableEmptyRowVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: TableEmptyRowVariantProps) => TableEmptyRowVariantProps
|
|
28
|
-
}
|
|
10
|
+
export type TableEmptyRowVariantMap = RecipeVariantMap<TableEmptyRowVariant>
|
|
29
11
|
|
|
12
|
+
export type TableEmptyRowRecipe = ConfigRecipeRuntimeFn<TableEmptyRowVariantProps, TableEmptyRowVariantMap>
|
|
30
13
|
|
|
31
|
-
export declare const tableEmptyRow: TableEmptyRowRecipe
|
|
14
|
+
export declare const tableEmptyRow: TableEmptyRowRecipe;
|
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* @default "primary"
|
|
8
|
-
*/
|
|
9
|
-
variant: "primary" | "secondary" | "success"
|
|
4
|
+
export type TableGroupTitleVariant = {
|
|
5
|
+
variant?: "primary" | "secondary" | "success"
|
|
10
6
|
}
|
|
11
7
|
|
|
12
|
-
type TableGroupTitleVariantMap = {
|
|
13
|
-
[key in keyof TableGroupTitleVariant]: Array<TableGroupTitleVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
8
|
export type TableGroupTitleVariantProps = {
|
|
19
|
-
[
|
|
9
|
+
[K in keyof TableGroupTitleVariant]?: ConditionalValue<TableGroupTitleVariant[K]>
|
|
20
10
|
}
|
|
21
11
|
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
__type: TableGroupTitleVariantProps
|
|
25
|
-
(props?: TableGroupTitleVariantProps): string
|
|
26
|
-
raw: (props?: TableGroupTitleVariantProps) => TableGroupTitleVariantProps
|
|
27
|
-
variantMap: TableGroupTitleVariantMap
|
|
28
|
-
variantKeys: Array<keyof TableGroupTitleVariant>
|
|
29
|
-
splitVariantProps<Props extends TableGroupTitleVariantProps>(props: Props): [TableGroupTitleVariantProps, Pretty<DistributiveOmit<Props, keyof TableGroupTitleVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: TableGroupTitleVariantProps) => TableGroupTitleVariantProps
|
|
31
|
-
}
|
|
12
|
+
export type TableGroupTitleVariantMap = RecipeVariantMap<TableGroupTitleVariant>
|
|
32
13
|
|
|
14
|
+
export type TableGroupTitleRecipe = ConfigRecipeRuntimeFn<TableGroupTitleVariantProps, TableGroupTitleVariantMap>
|
|
33
15
|
|
|
34
|
-
export declare const tableGroupTitle: TableGroupTitleRecipe
|
|
16
|
+
export declare const tableGroupTitle: TableGroupTitleRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const tableGroupTitleConfig = {"name":"tableGroupTitle","className":"table-group-title","defaultVariants":{"variant":"primary"},"variantMap":{"variant":["primary","secondary","success"]}}
|
|
4
|
+
|
|
5
|
+
export const tableGroupTitle = /* @__PURE__ */ createRecipe(tableGroupTitleConfig)
|
package/recipes/table.d.ts
CHANGED
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type TableVariantMap = {
|
|
10
|
-
[key in keyof TableVariant]: Array<TableVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type TableSlot = "root" | "thead" | "tbody" | "tr" | "th" | "td" | "sortIndicatorRoot" | "sortIndicator"
|
|
4
|
+
export type TableVariant = {}
|
|
14
5
|
|
|
15
6
|
export type TableVariantProps = {
|
|
16
|
-
[
|
|
7
|
+
[K in keyof TableVariant]?: ConditionalValue<TableVariant[K]>
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
(props?: TableVariantProps): Pretty<Record<TableSlot, string>>
|
|
23
|
-
raw: (props?: TableVariantProps) => TableVariantProps
|
|
24
|
-
variantMap: TableVariantMap
|
|
25
|
-
variantKeys: Array<keyof TableVariant>
|
|
26
|
-
splitVariantProps<Props extends TableVariantProps>(props: Props): [TableVariantProps, Pretty<DistributiveOmit<Props, keyof TableVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: TableVariantProps) => TableVariantProps
|
|
28
|
-
}
|
|
10
|
+
export type TableVariantMap = RecipeVariantMap<TableVariant>
|
|
11
|
+
|
|
12
|
+
export type TableSlot = "root" | "thead" | "tbody" | "tr" | "th" | "td" | "sortIndicatorRoot" | "sortIndicator"
|
|
29
13
|
|
|
14
|
+
export type TableRecipe = ConfigSlotRecipeRuntimeFn<TableSlot, TableVariantProps, TableVariantMap>
|
|
30
15
|
|
|
31
|
-
export declare const table: TableRecipe
|
|
16
|
+
export declare const table: TableRecipe;
|
package/recipes/table.js
ADDED
package/recipes/tabs-chip.d.ts
CHANGED
|
@@ -1,36 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* @default "neutral"
|
|
8
|
-
*/
|
|
9
|
-
colorScheme: "neutral" | "info" | "success" | "warning" | "error" | "grey"
|
|
4
|
+
export type TabsChipVariant = {
|
|
5
|
+
colorScheme?: "neutral" | "info" | "success" | "warning" | "error" | "grey"
|
|
10
6
|
}
|
|
11
7
|
|
|
12
|
-
type TabsChipVariantMap = {
|
|
13
|
-
[key in keyof TabsChipVariant]: Array<TabsChipVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
8
|
export type TabsChipVariantProps = {
|
|
19
|
-
[
|
|
9
|
+
[K in keyof TabsChipVariant]?: ConditionalValue<TabsChipVariant[K]>
|
|
20
10
|
}
|
|
21
11
|
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
(props?: TabsChipVariantProps): string
|
|
26
|
-
raw: (props?: TabsChipVariantProps) => TabsChipVariantProps
|
|
27
|
-
variantMap: TabsChipVariantMap
|
|
28
|
-
variantKeys: Array<keyof TabsChipVariant>
|
|
29
|
-
splitVariantProps<Props extends TabsChipVariantProps>(props: Props): [TabsChipVariantProps, Pretty<DistributiveOmit<Props, keyof TabsChipVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: TabsChipVariantProps) => TabsChipVariantProps
|
|
31
|
-
}
|
|
12
|
+
export type TabsChipVariantMap = RecipeVariantMap<TabsChipVariant>
|
|
13
|
+
|
|
14
|
+
export type TabsChipRecipe = ConfigRecipeRuntimeFn<TabsChipVariantProps, TabsChipVariantMap>
|
|
32
15
|
|
|
33
|
-
|
|
34
|
-
* The styles for the TabsChip component
|
|
35
|
-
*/
|
|
36
|
-
export declare const tabsChip: TabsChipRecipe
|
|
16
|
+
export declare const tabsChip: TabsChipRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const tabsChipConfig = {"name":"tabsChip","className":"tabs-chip","defaultVariants":{"colorScheme":"neutral"},"variantMap":{"colorScheme":["neutral","info","success","warning","error","grey"]}}
|
|
4
|
+
|
|
5
|
+
export const tabsChip = /* @__PURE__ */ createRecipe(tabsChipConfig)
|
package/recipes/tabs.d.ts
CHANGED
|
@@ -1,38 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
lineVariant: "primary" | "white"
|
|
10
|
-
/**
|
|
11
|
-
* @default "line"
|
|
12
|
-
*/
|
|
13
|
-
variant: "line"
|
|
4
|
+
export type TabsVariant = {
|
|
5
|
+
lineVariant?: "primary" | "white"
|
|
6
|
+
variant?: "line"
|
|
14
7
|
}
|
|
15
8
|
|
|
16
|
-
type TabsVariantMap = {
|
|
17
|
-
[key in keyof TabsVariant]: Array<TabsVariant[key]>
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
type TabsSlot = "root" | "list" | "trigger" | "content" | "indicator"
|
|
21
|
-
|
|
22
9
|
export type TabsVariantProps = {
|
|
23
|
-
[
|
|
10
|
+
[K in keyof TabsVariant]?: ConditionalValue<TabsVariant[K]>
|
|
24
11
|
}
|
|
25
12
|
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
(props?: TabsVariantProps): Pretty<Record<TabsSlot, string>>
|
|
30
|
-
raw: (props?: TabsVariantProps) => TabsVariantProps
|
|
31
|
-
variantMap: TabsVariantMap
|
|
32
|
-
variantKeys: Array<keyof TabsVariant>
|
|
33
|
-
splitVariantProps<Props extends TabsVariantProps>(props: Props): [TabsVariantProps, Pretty<DistributiveOmit<Props, keyof TabsVariantProps>>]
|
|
34
|
-
getVariantProps: (props?: TabsVariantProps) => TabsVariantProps
|
|
35
|
-
}
|
|
13
|
+
export type TabsVariantMap = RecipeVariantMap<TabsVariant>
|
|
14
|
+
|
|
15
|
+
export type TabsSlot = "root" | "list" | "trigger" | "content" | "indicator"
|
|
36
16
|
|
|
17
|
+
export type TabsRecipe = ConfigSlotRecipeRuntimeFn<TabsSlot, TabsVariantProps, TabsVariantMap>
|
|
37
18
|
|
|
38
|
-
export declare const tabs: TabsRecipe
|
|
19
|
+
export declare const tabs: TabsRecipe;
|
package/recipes/tabs.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSlotRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const tabsConfig = {"name":"tabs","slots":["root","list","trigger","content","indicator"],"defaultVariants":{"lineVariant":"primary","variant":"line"},"variantMap":{"lineVariant":["primary","white"],"variant":["line"]}}
|
|
4
|
+
|
|
5
|
+
export const tabs = /* @__PURE__ */ createSlotRecipe(tabsConfig)
|
package/recipes/tag.d.ts
CHANGED
|
@@ -1,40 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
size: "lg" | "md" | "sm"
|
|
10
|
-
/**
|
|
11
|
-
* @default "neutral"
|
|
12
|
-
*/
|
|
13
|
-
severity: "success" | "warning" | "error" | "neutral" | "info" | "primary"
|
|
4
|
+
export type TagVariant = {
|
|
5
|
+
size?: "lg" | "md" | "sm"
|
|
6
|
+
severity?: "success" | "warning" | "error" | "neutral" | "info" | "primary"
|
|
14
7
|
}
|
|
15
8
|
|
|
16
|
-
type
|
|
17
|
-
[
|
|
9
|
+
export type TagVariantProps = {
|
|
10
|
+
[K in keyof TagVariant]?: ConditionalValue<TagVariant[K]>
|
|
18
11
|
}
|
|
19
12
|
|
|
20
|
-
type
|
|
13
|
+
export type TagVariantMap = RecipeVariantMap<TagVariant>
|
|
21
14
|
|
|
22
|
-
export type
|
|
23
|
-
[key in keyof TagVariant]?: ConditionalValue<TagVariant[key]> | undefined
|
|
24
|
-
}
|
|
15
|
+
export type TagSlot = "root" | "label" | "badge"
|
|
25
16
|
|
|
26
|
-
export
|
|
27
|
-
__slot: TagSlot
|
|
28
|
-
__type: TagVariantProps
|
|
29
|
-
(props?: TagVariantProps): Pretty<Record<TagSlot, string>>
|
|
30
|
-
raw: (props?: TagVariantProps) => TagVariantProps
|
|
31
|
-
variantMap: TagVariantMap
|
|
32
|
-
variantKeys: Array<keyof TagVariant>
|
|
33
|
-
splitVariantProps<Props extends TagVariantProps>(props: Props): [TagVariantProps, Pretty<DistributiveOmit<Props, keyof TagVariantProps>>]
|
|
34
|
-
getVariantProps: (props?: TagVariantProps) => TagVariantProps
|
|
35
|
-
}
|
|
17
|
+
export type TagRecipe = ConfigSlotRecipeRuntimeFn<TagSlot, TagVariantProps, TagVariantMap>
|
|
36
18
|
|
|
37
|
-
|
|
38
|
-
* The styles for the Tag component
|
|
39
|
-
*/
|
|
40
|
-
export declare const tag: TagRecipe
|
|
19
|
+
export declare const tag: TagRecipe;
|
package/recipes/tag.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSlotRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const tagConfig = {"name":"tag","slots":["root","label","badge"],"defaultVariants":{"severity":"neutral","size":"md"},"variantMap":{"size":["lg","md","sm"],"severity":["success","warning","error","neutral","info","primary"]}}
|
|
4
|
+
|
|
5
|
+
export const tag = /* @__PURE__ */ createSlotRecipe(tagConfig)
|
package/recipes/text.d.ts
CHANGED
|
@@ -1,37 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @default "md"
|
|
11
|
-
*/
|
|
12
|
-
size: "lg" | "md" | "sm"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
type TextVariantMap = {
|
|
16
|
-
[key in keyof TextVariant]: Array<TextVariant[key]>
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
3
|
+
|
|
4
|
+
export type TextVariant = {
|
|
5
|
+
bold?: boolean
|
|
6
|
+
italic?: boolean
|
|
7
|
+
underline?: boolean
|
|
8
|
+
size?: "lg" | "md" | "sm"
|
|
17
9
|
}
|
|
18
10
|
|
|
19
|
-
|
|
20
|
-
|
|
21
11
|
export type TextVariantProps = {
|
|
22
|
-
[
|
|
12
|
+
[K in keyof TextVariant]?: ConditionalValue<TextVariant[K]>
|
|
23
13
|
}
|
|
24
14
|
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
__type: TextVariantProps
|
|
28
|
-
(props?: TextVariantProps): string
|
|
29
|
-
raw: (props?: TextVariantProps) => TextVariantProps
|
|
30
|
-
variantMap: TextVariantMap
|
|
31
|
-
variantKeys: Array<keyof TextVariant>
|
|
32
|
-
splitVariantProps<Props extends TextVariantProps>(props: Props): [TextVariantProps, Pretty<DistributiveOmit<Props, keyof TextVariantProps>>]
|
|
33
|
-
getVariantProps: (props?: TextVariantProps) => TextVariantProps
|
|
34
|
-
}
|
|
15
|
+
export type TextVariantMap = RecipeVariantMap<TextVariant>
|
|
35
16
|
|
|
17
|
+
export type TextRecipe = ConfigRecipeRuntimeFn<TextVariantProps, TextVariantMap>
|
|
36
18
|
|
|
37
|
-
export declare const text: TextRecipe
|
|
19
|
+
export declare const text: TextRecipe;
|
package/recipes/text.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const textConfig = {"name":"text","defaultVariants":{"size":"md"},"variantMap":{"bold":["true"],"italic":["true"],"underline":["true"],"size":["lg","md","sm"]}}
|
|
4
|
+
|
|
5
|
+
export const text = /* @__PURE__ */ createRecipe(textConfig)
|
package/recipes/textarea.d.ts
CHANGED
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface TextareaVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type TextareaVariantMap = {
|
|
10
|
-
[key in keyof TextareaVariant]: Array<TextareaVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
import type { ConditionalValue } from '../types/system.js';
|
|
2
|
+
import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
13
3
|
|
|
4
|
+
export type TextareaVariant = {}
|
|
14
5
|
|
|
15
6
|
export type TextareaVariantProps = {
|
|
16
|
-
[
|
|
7
|
+
[K in keyof TextareaVariant]?: ConditionalValue<TextareaVariant[K]>
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
__type: TextareaVariantProps
|
|
22
|
-
(props?: TextareaVariantProps): string
|
|
23
|
-
raw: (props?: TextareaVariantProps) => TextareaVariantProps
|
|
24
|
-
variantMap: TextareaVariantMap
|
|
25
|
-
variantKeys: Array<keyof TextareaVariant>
|
|
26
|
-
splitVariantProps<Props extends TextareaVariantProps>(props: Props): [TextareaVariantProps, Pretty<DistributiveOmit<Props, keyof TextareaVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: TextareaVariantProps) => TextareaVariantProps
|
|
28
|
-
}
|
|
10
|
+
export type TextareaVariantMap = RecipeVariantMap<TextareaVariant>
|
|
29
11
|
|
|
12
|
+
export type TextareaRecipe = ConfigRecipeRuntimeFn<TextareaVariantProps, TextareaVariantMap>
|
|
30
13
|
|
|
31
|
-
export declare const textarea: TextareaRecipe
|
|
14
|
+
export declare const textarea: TextareaRecipe;
|