@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/recipes/form-control.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const formControlFn = /* @__PURE__ */ createRecipe('form-control', {}, [])
|
|
5
|
-
|
|
6
|
-
const formControlVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const formControlVariantKeys = Object.keys(formControlVariantMap)
|
|
9
|
-
|
|
10
|
-
export const formControl = /* @__PURE__ */ Object.assign(memo(formControlFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'formControl',
|
|
13
|
-
__getCompoundVariantCss__: formControlFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: formControlVariantKeys,
|
|
16
|
-
variantMap: formControlVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, formControlVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: formControlFn.getVariantProps,
|
|
24
|
-
})
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const formHelperTextFn = /* @__PURE__ */ createRecipe('form-helper-text', {}, [])
|
|
5
|
-
|
|
6
|
-
const formHelperTextVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const formHelperTextVariantKeys = Object.keys(formHelperTextVariantMap)
|
|
9
|
-
|
|
10
|
-
export const formHelperText = /* @__PURE__ */ Object.assign(memo(formHelperTextFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'formHelperText',
|
|
13
|
-
__getCompoundVariantCss__: formHelperTextFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: formHelperTextVariantKeys,
|
|
16
|
-
variantMap: formHelperTextVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, formHelperTextVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: formHelperTextFn.getVariantProps,
|
|
24
|
-
})
|
package/recipes/form-label.mjs
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const formLabelDefaultVariants = {
|
|
5
|
-
"variant": "absolute"
|
|
6
|
-
}
|
|
7
|
-
const formLabelCompoundVariants = []
|
|
8
|
-
|
|
9
|
-
const formLabelSlotNames = [
|
|
10
|
-
[
|
|
11
|
-
"root",
|
|
12
|
-
"form-label__root"
|
|
13
|
-
],
|
|
14
|
-
[
|
|
15
|
-
"addon",
|
|
16
|
-
"form-label__addon"
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"icon",
|
|
20
|
-
"form-label__icon"
|
|
21
|
-
]
|
|
22
|
-
]
|
|
23
|
-
const formLabelSlotFns = /* @__PURE__ */ formLabelSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, formLabelDefaultVariants, getSlotCompoundVariant(formLabelCompoundVariants, slotName))])
|
|
24
|
-
|
|
25
|
-
const formLabelFn = memo((props = {}) => {
|
|
26
|
-
return Object.fromEntries(formLabelSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
const formLabelVariantKeys = [
|
|
30
|
-
"variant"
|
|
31
|
-
]
|
|
32
|
-
const getVariantProps = (variants) => ({ ...formLabelDefaultVariants, ...compact(variants) })
|
|
33
|
-
|
|
34
|
-
export const formLabel = /* @__PURE__ */ Object.assign(formLabelFn, {
|
|
35
|
-
__recipe__: false,
|
|
36
|
-
__name__: 'formLabel',
|
|
37
|
-
raw: (props) => props,
|
|
38
|
-
classNameMap: {},
|
|
39
|
-
variantKeys: formLabelVariantKeys,
|
|
40
|
-
variantMap: {
|
|
41
|
-
"variant": [
|
|
42
|
-
"static",
|
|
43
|
-
"absolute"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
splitVariantProps(props) {
|
|
47
|
-
return splitProps(props, formLabelVariantKeys)
|
|
48
|
-
},
|
|
49
|
-
getVariantProps
|
|
50
|
-
})
|
package/recipes/heading.mjs
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const headingFn = /* @__PURE__ */ createRecipe('heading', {
|
|
5
|
-
"size": "h2"
|
|
6
|
-
}, [])
|
|
7
|
-
|
|
8
|
-
const headingVariantMap = {
|
|
9
|
-
"italic": [
|
|
10
|
-
"true"
|
|
11
|
-
],
|
|
12
|
-
"underline": [
|
|
13
|
-
"true"
|
|
14
|
-
],
|
|
15
|
-
"size": [
|
|
16
|
-
"h1",
|
|
17
|
-
"h2",
|
|
18
|
-
"h3",
|
|
19
|
-
"h4",
|
|
20
|
-
"h5",
|
|
21
|
-
"h6"
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const headingVariantKeys = Object.keys(headingVariantMap)
|
|
26
|
-
|
|
27
|
-
export const heading = /* @__PURE__ */ Object.assign(memo(headingFn.recipeFn), {
|
|
28
|
-
__recipe__: true,
|
|
29
|
-
__name__: 'heading',
|
|
30
|
-
__getCompoundVariantCss__: headingFn.__getCompoundVariantCss__,
|
|
31
|
-
raw: (props) => props,
|
|
32
|
-
variantKeys: headingVariantKeys,
|
|
33
|
-
variantMap: headingVariantMap,
|
|
34
|
-
merge(recipe) {
|
|
35
|
-
return mergeRecipes(this, recipe)
|
|
36
|
-
},
|
|
37
|
-
splitVariantProps(props) {
|
|
38
|
-
return splitProps(props, headingVariantKeys)
|
|
39
|
-
},
|
|
40
|
-
getVariantProps: headingFn.getVariantProps,
|
|
41
|
-
})
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const highlightedInputDefaultVariants = {}
|
|
5
|
-
const highlightedInputCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const highlightedInputSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"root",
|
|
10
|
-
"highlightedInput__root"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"input",
|
|
14
|
-
"highlightedInput__input"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"renderer",
|
|
18
|
-
"highlightedInput__renderer"
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
"highlight",
|
|
22
|
-
"highlightedInput__highlight"
|
|
23
|
-
]
|
|
24
|
-
]
|
|
25
|
-
const highlightedInputSlotFns = /* @__PURE__ */ highlightedInputSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, highlightedInputDefaultVariants, getSlotCompoundVariant(highlightedInputCompoundVariants, slotName))])
|
|
26
|
-
|
|
27
|
-
const highlightedInputFn = memo((props = {}) => {
|
|
28
|
-
return Object.fromEntries(highlightedInputSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
const highlightedInputVariantKeys = []
|
|
32
|
-
const getVariantProps = (variants) => ({ ...highlightedInputDefaultVariants, ...compact(variants) })
|
|
33
|
-
|
|
34
|
-
export const highlightedInput = /* @__PURE__ */ Object.assign(highlightedInputFn, {
|
|
35
|
-
__recipe__: false,
|
|
36
|
-
__name__: 'highlightedInput',
|
|
37
|
-
raw: (props) => props,
|
|
38
|
-
classNameMap: {},
|
|
39
|
-
variantKeys: highlightedInputVariantKeys,
|
|
40
|
-
variantMap: {},
|
|
41
|
-
splitVariantProps(props) {
|
|
42
|
-
return splitProps(props, highlightedInputVariantKeys)
|
|
43
|
-
},
|
|
44
|
-
getVariantProps
|
|
45
|
-
})
|
package/recipes/icon-button.mjs
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const iconButtonFn = /* @__PURE__ */ createRecipe('icon-button', {
|
|
5
|
-
"size": "md",
|
|
6
|
-
"variant": "primary",
|
|
7
|
-
"severity": "none"
|
|
8
|
-
}, [
|
|
9
|
-
{
|
|
10
|
-
"variant": "primary",
|
|
11
|
-
"size": "sm",
|
|
12
|
-
"css": {
|
|
13
|
-
"minWidth": "80px"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"variant": "primary",
|
|
18
|
-
"size": "md",
|
|
19
|
-
"css": {
|
|
20
|
-
"minWidth": "120px"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"variant": "primary",
|
|
25
|
-
"size": "lg",
|
|
26
|
-
"css": {
|
|
27
|
-
"minWidth": "120px"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"variant": "primary",
|
|
32
|
-
"severity": "danger",
|
|
33
|
-
"css": {
|
|
34
|
-
"bg": {
|
|
35
|
-
"_disabled": {
|
|
36
|
-
"_hover": "error.500",
|
|
37
|
-
"_active": "error.500",
|
|
38
|
-
"base": "error.500"
|
|
39
|
-
},
|
|
40
|
-
"_active": "error.800",
|
|
41
|
-
"_hover": "error.700",
|
|
42
|
-
"base": "error.500"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"variant": "secondary",
|
|
48
|
-
"severity": "danger",
|
|
49
|
-
"css": {
|
|
50
|
-
"bg": {
|
|
51
|
-
"_disabled": {
|
|
52
|
-
"_hover": "transparent",
|
|
53
|
-
"_active": "transparent",
|
|
54
|
-
"base": "transparent"
|
|
55
|
-
},
|
|
56
|
-
"_active": "error.700",
|
|
57
|
-
"_hover": "error.500",
|
|
58
|
-
"base": "transparent"
|
|
59
|
-
},
|
|
60
|
-
"borderColor": {
|
|
61
|
-
"base": "error.500",
|
|
62
|
-
"_active": "error.700"
|
|
63
|
-
},
|
|
64
|
-
"borderStyle": "solid",
|
|
65
|
-
"color": {
|
|
66
|
-
"_disabled": {
|
|
67
|
-
"_hover": "error.500",
|
|
68
|
-
"_active": "error.500",
|
|
69
|
-
"base": "error.500"
|
|
70
|
-
},
|
|
71
|
-
"base": "error.500",
|
|
72
|
-
"_hover": "white",
|
|
73
|
-
"_active": "white"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"variant": "tertiary",
|
|
79
|
-
"severity": "danger",
|
|
80
|
-
"css": {
|
|
81
|
-
"bg": {
|
|
82
|
-
"_disabled": {
|
|
83
|
-
"_hover": "transparent",
|
|
84
|
-
"_active": "transparent",
|
|
85
|
-
"base": "transparent"
|
|
86
|
-
},
|
|
87
|
-
"_active": "error.200",
|
|
88
|
-
"_hover": "error.100",
|
|
89
|
-
"base": "transparent"
|
|
90
|
-
},
|
|
91
|
-
"color": {
|
|
92
|
-
"_disabled": {
|
|
93
|
-
"_hover": "error.500",
|
|
94
|
-
"_active": "error.500",
|
|
95
|
-
"base": "error.500"
|
|
96
|
-
},
|
|
97
|
-
"base": "error.500",
|
|
98
|
-
"_hover": "error.700",
|
|
99
|
-
"_active": "error.700"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"variant": "primary",
|
|
105
|
-
"severity": "success",
|
|
106
|
-
"css": {
|
|
107
|
-
"bg": {
|
|
108
|
-
"_disabled": {
|
|
109
|
-
"_hover": "success.500",
|
|
110
|
-
"_active": "success.500",
|
|
111
|
-
"base": "success.500"
|
|
112
|
-
},
|
|
113
|
-
"_active": "success.800",
|
|
114
|
-
"_hover": "success.700",
|
|
115
|
-
"base": "success.500"
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"variant": "secondary",
|
|
121
|
-
"severity": "success",
|
|
122
|
-
"css": {
|
|
123
|
-
"bg": {
|
|
124
|
-
"_disabled": {
|
|
125
|
-
"_hover": "transparent",
|
|
126
|
-
"_active": "transparent",
|
|
127
|
-
"base": "transparent"
|
|
128
|
-
},
|
|
129
|
-
"_active": "success.700",
|
|
130
|
-
"_hover": "success.500",
|
|
131
|
-
"base": "transparent"
|
|
132
|
-
},
|
|
133
|
-
"borderColor": {
|
|
134
|
-
"base": "success.500",
|
|
135
|
-
"_active": "success.700"
|
|
136
|
-
},
|
|
137
|
-
"borderStyle": "solid",
|
|
138
|
-
"color": {
|
|
139
|
-
"_disabled": {
|
|
140
|
-
"_hover": "success.500",
|
|
141
|
-
"_active": "success.500",
|
|
142
|
-
"base": "success.500"
|
|
143
|
-
},
|
|
144
|
-
"base": "success.500",
|
|
145
|
-
"_hover": "white",
|
|
146
|
-
"_active": "white"
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"variant": "tertiary",
|
|
152
|
-
"severity": "success",
|
|
153
|
-
"css": {
|
|
154
|
-
"bg": {
|
|
155
|
-
"_disabled": {
|
|
156
|
-
"_hover": "transparent",
|
|
157
|
-
"_active": "transparent",
|
|
158
|
-
"base": "transparent"
|
|
159
|
-
},
|
|
160
|
-
"_active": "success.200",
|
|
161
|
-
"_hover": "success.100",
|
|
162
|
-
"base": "transparent"
|
|
163
|
-
},
|
|
164
|
-
"color": {
|
|
165
|
-
"_disabled": {
|
|
166
|
-
"_hover": "success.500",
|
|
167
|
-
"_active": "success.500",
|
|
168
|
-
"base": "success.500"
|
|
169
|
-
},
|
|
170
|
-
"base": "success.500",
|
|
171
|
-
"_hover": "success.700",
|
|
172
|
-
"_active": "success.700"
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"variant": "primary",
|
|
178
|
-
"size": "sm",
|
|
179
|
-
"css": {
|
|
180
|
-
"minWidth": "auto"
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
"variant": "primary",
|
|
185
|
-
"size": "md",
|
|
186
|
-
"css": {
|
|
187
|
-
"minWidth": "auto"
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"variant": "primary",
|
|
192
|
-
"size": "lg",
|
|
193
|
-
"css": {
|
|
194
|
-
"minWidth": "auto"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
])
|
|
198
|
-
|
|
199
|
-
const iconButtonVariantMap = {
|
|
200
|
-
"size": [
|
|
201
|
-
"lg",
|
|
202
|
-
"md",
|
|
203
|
-
"sm"
|
|
204
|
-
],
|
|
205
|
-
"variant": [
|
|
206
|
-
"primary",
|
|
207
|
-
"secondary",
|
|
208
|
-
"tertiary"
|
|
209
|
-
],
|
|
210
|
-
"severity": [
|
|
211
|
-
"none",
|
|
212
|
-
"danger",
|
|
213
|
-
"success"
|
|
214
|
-
]
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
const iconButtonVariantKeys = Object.keys(iconButtonVariantMap)
|
|
218
|
-
|
|
219
|
-
export const iconButton = /* @__PURE__ */ Object.assign(memo(iconButtonFn.recipeFn), {
|
|
220
|
-
__recipe__: true,
|
|
221
|
-
__name__: 'iconButton',
|
|
222
|
-
__getCompoundVariantCss__: iconButtonFn.__getCompoundVariantCss__,
|
|
223
|
-
raw: (props) => props,
|
|
224
|
-
variantKeys: iconButtonVariantKeys,
|
|
225
|
-
variantMap: iconButtonVariantMap,
|
|
226
|
-
merge(recipe) {
|
|
227
|
-
return mergeRecipes(this, recipe)
|
|
228
|
-
},
|
|
229
|
-
splitVariantProps(props) {
|
|
230
|
-
return splitProps(props, iconButtonVariantKeys)
|
|
231
|
-
},
|
|
232
|
-
getVariantProps: iconButtonFn.getVariantProps,
|
|
233
|
-
})
|
package/recipes/icon.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const iconFn = /* @__PURE__ */ createRecipe('icon', {
|
|
5
|
-
"size": "md"
|
|
6
|
-
}, [])
|
|
7
|
-
|
|
8
|
-
const iconVariantMap = {
|
|
9
|
-
"size": [
|
|
10
|
-
"xs",
|
|
11
|
-
"sm",
|
|
12
|
-
"md",
|
|
13
|
-
"lg",
|
|
14
|
-
"xl"
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const iconVariantKeys = Object.keys(iconVariantMap)
|
|
19
|
-
|
|
20
|
-
export const icon = /* @__PURE__ */ Object.assign(memo(iconFn.recipeFn), {
|
|
21
|
-
__recipe__: true,
|
|
22
|
-
__name__: 'icon',
|
|
23
|
-
__getCompoundVariantCss__: iconFn.__getCompoundVariantCss__,
|
|
24
|
-
raw: (props) => props,
|
|
25
|
-
variantKeys: iconVariantKeys,
|
|
26
|
-
variantMap: iconVariantMap,
|
|
27
|
-
merge(recipe) {
|
|
28
|
-
return mergeRecipes(this, recipe)
|
|
29
|
-
},
|
|
30
|
-
splitVariantProps(props) {
|
|
31
|
-
return splitProps(props, iconVariantKeys)
|
|
32
|
-
},
|
|
33
|
-
getVariantProps: iconFn.getVariantProps,
|
|
34
|
-
})
|
package/recipes/illustration.mjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const illustrationFn = /* @__PURE__ */ createRecipe('illustration', {
|
|
5
|
-
"pattern": "neutral"
|
|
6
|
-
}, [])
|
|
7
|
-
|
|
8
|
-
const illustrationVariantMap = {
|
|
9
|
-
"pattern": [
|
|
10
|
-
"neutral",
|
|
11
|
-
"fish",
|
|
12
|
-
"meat",
|
|
13
|
-
"fruit",
|
|
14
|
-
"vegetable",
|
|
15
|
-
"cereal",
|
|
16
|
-
"oil",
|
|
17
|
-
"aromatic"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const illustrationVariantKeys = Object.keys(illustrationVariantMap)
|
|
22
|
-
|
|
23
|
-
export const illustration = /* @__PURE__ */ Object.assign(memo(illustrationFn.recipeFn), {
|
|
24
|
-
__recipe__: true,
|
|
25
|
-
__name__: 'illustration',
|
|
26
|
-
__getCompoundVariantCss__: illustrationFn.__getCompoundVariantCss__,
|
|
27
|
-
raw: (props) => props,
|
|
28
|
-
variantKeys: illustrationVariantKeys,
|
|
29
|
-
variantMap: illustrationVariantMap,
|
|
30
|
-
merge(recipe) {
|
|
31
|
-
return mergeRecipes(this, recipe)
|
|
32
|
-
},
|
|
33
|
-
splitVariantProps(props) {
|
|
34
|
-
return splitProps(props, illustrationVariantKeys)
|
|
35
|
-
},
|
|
36
|
-
getVariantProps: illustrationFn.getVariantProps,
|
|
37
|
-
})
|
package/recipes/index.mjs
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export * from './button.mjs';
|
|
2
|
-
export * from './icon-button.mjs';
|
|
3
|
-
export * from './heading.mjs';
|
|
4
|
-
export * from './switch-recipe.mjs';
|
|
5
|
-
export * from './text.mjs';
|
|
6
|
-
export * from './textarea.mjs';
|
|
7
|
-
export * from './form-control.mjs';
|
|
8
|
-
export * from './form-helper-text.mjs';
|
|
9
|
-
export * from './input.mjs';
|
|
10
|
-
export * from './input-addon.mjs';
|
|
11
|
-
export * from './input-group.mjs';
|
|
12
|
-
export * from './table-group-title.mjs';
|
|
13
|
-
export * from './table-empty-row.mjs';
|
|
14
|
-
export * from './table-container.mjs';
|
|
15
|
-
export * from './illustration.mjs';
|
|
16
|
-
export * from './button-filter.mjs';
|
|
17
|
-
export * from './phone-number-input.mjs';
|
|
18
|
-
export * from './icon.mjs';
|
|
19
|
-
export * from './flag.mjs';
|
|
20
|
-
export * from './avatar-group.mjs';
|
|
21
|
-
export * from './tabs-chip.mjs';
|
|
22
|
-
export * from './checkbox-group.mjs';
|
|
23
|
-
export * from './chat-message.mjs';
|
|
24
|
-
export * from './chat-text-input.mjs';
|
|
25
|
-
export * from './chat-document-message.mjs';
|
|
26
|
-
export * from './chat-profile-avatar.mjs';
|
|
27
|
-
export * from './drawer.mjs';
|
|
28
|
-
export * from './radio-button-group.mjs';
|
|
29
|
-
export * from './radio-group.mjs';
|
|
30
|
-
export * from './accordion.mjs';
|
|
31
|
-
export * from './form-label.mjs';
|
|
32
|
-
export * from './checkbox.mjs';
|
|
33
|
-
export * from './datepicker.mjs';
|
|
34
|
-
export * from './tabs.mjs';
|
|
35
|
-
export * from './steps.mjs';
|
|
36
|
-
export * from './tag.mjs';
|
|
37
|
-
export * from './status-tag-select.mjs';
|
|
38
|
-
export * from './select.mjs';
|
|
39
|
-
export * from './select-language.mjs';
|
|
40
|
-
export * from './chip.mjs';
|
|
41
|
-
export * from './action-card.mjs';
|
|
42
|
-
export * from './tooltip.mjs';
|
|
43
|
-
export * from './alert.mjs';
|
|
44
|
-
export * from './table.mjs';
|
|
45
|
-
export * from './breadcrumb.mjs';
|
|
46
|
-
export * from './popover.mjs';
|
|
47
|
-
export * from './pagination.mjs';
|
|
48
|
-
export * from './product-card-catalog.mjs';
|
|
49
|
-
export * from './switch-card.mjs';
|
|
50
|
-
export * from './radio-card-group.mjs';
|
|
51
|
-
export * from './checkbox-card.mjs';
|
|
52
|
-
export * from './combobox.mjs';
|
|
53
|
-
export * from './collapsible.mjs';
|
|
54
|
-
export * from './app-navigation.mjs';
|
|
55
|
-
export * from './mobile-navigation.mjs';
|
|
56
|
-
export * from './dialog.mjs';
|
|
57
|
-
export * from './app-navigation-language-select.mjs';
|
|
58
|
-
export * from './avatar.mjs';
|
|
59
|
-
export * from './menu.mjs';
|
|
60
|
-
export * from './price-tag.mjs';
|
|
61
|
-
export * from './chat.mjs';
|
|
62
|
-
export * from './highlighted-input.mjs';
|
package/recipes/input-addon.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const inputAddonFn = /* @__PURE__ */ createRecipe('input-addon', {}, [])
|
|
5
|
-
|
|
6
|
-
const inputAddonVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const inputAddonVariantKeys = Object.keys(inputAddonVariantMap)
|
|
9
|
-
|
|
10
|
-
export const inputAddon = /* @__PURE__ */ Object.assign(memo(inputAddonFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'inputAddon',
|
|
13
|
-
__getCompoundVariantCss__: inputAddonFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: inputAddonVariantKeys,
|
|
16
|
-
variantMap: inputAddonVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, inputAddonVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: inputAddonFn.getVariantProps,
|
|
24
|
-
})
|
package/recipes/input-group.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const inputGroupFn = /* @__PURE__ */ createRecipe('input-group', {}, [])
|
|
5
|
-
|
|
6
|
-
const inputGroupVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const inputGroupVariantKeys = Object.keys(inputGroupVariantMap)
|
|
9
|
-
|
|
10
|
-
export const inputGroup = /* @__PURE__ */ Object.assign(memo(inputGroupFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'inputGroup',
|
|
13
|
-
__getCompoundVariantCss__: inputGroupFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: inputGroupVariantKeys,
|
|
16
|
-
variantMap: inputGroupVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, inputGroupVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: inputGroupFn.getVariantProps,
|
|
24
|
-
})
|
package/recipes/input.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const inputFn = /* @__PURE__ */ createRecipe('input', {
|
|
5
|
-
"size": "md"
|
|
6
|
-
}, [])
|
|
7
|
-
|
|
8
|
-
const inputVariantMap = {
|
|
9
|
-
"size": [
|
|
10
|
-
"md"
|
|
11
|
-
]
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const inputVariantKeys = Object.keys(inputVariantMap)
|
|
15
|
-
|
|
16
|
-
export const input = /* @__PURE__ */ Object.assign(memo(inputFn.recipeFn), {
|
|
17
|
-
__recipe__: true,
|
|
18
|
-
__name__: 'input',
|
|
19
|
-
__getCompoundVariantCss__: inputFn.__getCompoundVariantCss__,
|
|
20
|
-
raw: (props) => props,
|
|
21
|
-
variantKeys: inputVariantKeys,
|
|
22
|
-
variantMap: inputVariantMap,
|
|
23
|
-
merge(recipe) {
|
|
24
|
-
return mergeRecipes(this, recipe)
|
|
25
|
-
},
|
|
26
|
-
splitVariantProps(props) {
|
|
27
|
-
return splitProps(props, inputVariantKeys)
|
|
28
|
-
},
|
|
29
|
-
getVariantProps: inputFn.getVariantProps,
|
|
30
|
-
})
|