@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/combobox.d.ts
CHANGED
|
@@ -1,35 +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
|
-
hideClearTrigger
|
|
7
|
-
|
|
8
|
-
* @default "md"
|
|
9
|
-
*/
|
|
10
|
-
size: "md"
|
|
4
|
+
export type ComboboxVariant = {
|
|
5
|
+
hideClearTrigger?: boolean
|
|
6
|
+
size?: "md"
|
|
11
7
|
}
|
|
12
8
|
|
|
13
|
-
type ComboboxVariantMap = {
|
|
14
|
-
[key in keyof ComboboxVariant]: Array<ComboboxVariant[key]>
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
type ComboboxSlot = "root" | "clearTrigger" | "content" | "control" | "input" | "item" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "label" | "list" | "positioner" | "trigger" | "empty"
|
|
18
|
-
|
|
19
9
|
export type ComboboxVariantProps = {
|
|
20
|
-
[
|
|
10
|
+
[K in keyof ComboboxVariant]?: ConditionalValue<ComboboxVariant[K]>
|
|
21
11
|
}
|
|
22
12
|
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
(props?: ComboboxVariantProps): Pretty<Record<ComboboxSlot, string>>
|
|
27
|
-
raw: (props?: ComboboxVariantProps) => ComboboxVariantProps
|
|
28
|
-
variantMap: ComboboxVariantMap
|
|
29
|
-
variantKeys: Array<keyof ComboboxVariant>
|
|
30
|
-
splitVariantProps<Props extends ComboboxVariantProps>(props: Props): [ComboboxVariantProps, Pretty<DistributiveOmit<Props, keyof ComboboxVariantProps>>]
|
|
31
|
-
getVariantProps: (props?: ComboboxVariantProps) => ComboboxVariantProps
|
|
32
|
-
}
|
|
13
|
+
export type ComboboxVariantMap = RecipeVariantMap<ComboboxVariant>
|
|
14
|
+
|
|
15
|
+
export type ComboboxSlot = "root" | "clearTrigger" | "content" | "control" | "input" | "item" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "label" | "list" | "positioner" | "trigger" | "empty"
|
|
33
16
|
|
|
17
|
+
export type ComboboxRecipe = ConfigSlotRecipeRuntimeFn<ComboboxSlot, ComboboxVariantProps, ComboboxVariantMap>
|
|
34
18
|
|
|
35
|
-
export declare const combobox: ComboboxRecipe
|
|
19
|
+
export declare const combobox: ComboboxRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSlotRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const comboboxConfig = {"name":"combobox","slots":["root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger","empty"],"defaultVariants":{"size":"md"},"variantMap":{"hideClearTrigger":["true"],"size":["md"]}}
|
|
4
|
+
|
|
5
|
+
export const combobox = /* @__PURE__ */ createSlotRecipe(comboboxConfig)
|
package/recipes/datepicker.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 DatepickerVariantMap = {
|
|
10
|
-
[key in keyof DatepickerVariant]: Array<DatepickerVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type DatepickerSlot = "clearTrigger" | "content" | "control" | "input" | "label" | "monthSelect" | "nextTrigger" | "positioner" | "presetTrigger" | "prevTrigger" | "rangeText" | "root" | "table" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "trigger" | "view" | "viewControl" | "viewTrigger" | "yearSelect" | "view" | "valueText"
|
|
4
|
+
export type DatepickerVariant = {}
|
|
14
5
|
|
|
15
6
|
export type DatepickerVariantProps = {
|
|
16
|
-
[
|
|
7
|
+
[K in keyof DatepickerVariant]?: ConditionalValue<DatepickerVariant[K]>
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
(props?: DatepickerVariantProps): Pretty<Record<DatepickerSlot, string>>
|
|
23
|
-
raw: (props?: DatepickerVariantProps) => DatepickerVariantProps
|
|
24
|
-
variantMap: DatepickerVariantMap
|
|
25
|
-
variantKeys: Array<keyof DatepickerVariant>
|
|
26
|
-
splitVariantProps<Props extends DatepickerVariantProps>(props: Props): [DatepickerVariantProps, Pretty<DistributiveOmit<Props, keyof DatepickerVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: DatepickerVariantProps) => DatepickerVariantProps
|
|
28
|
-
}
|
|
10
|
+
export type DatepickerVariantMap = RecipeVariantMap<DatepickerVariant>
|
|
11
|
+
|
|
12
|
+
export type DatepickerSlot = "clearTrigger" | "content" | "control" | "input" | "label" | "monthSelect" | "nextTrigger" | "positioner" | "presetTrigger" | "prevTrigger" | "rangeText" | "root" | "table" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "trigger" | "view" | "viewControl" | "viewTrigger" | "yearSelect" | "view" | "valueText"
|
|
29
13
|
|
|
14
|
+
export type DatepickerRecipe = ConfigSlotRecipeRuntimeFn<DatepickerSlot, DatepickerVariantProps, DatepickerVariantMap>
|
|
30
15
|
|
|
31
|
-
export declare const datepicker: DatepickerRecipe
|
|
16
|
+
export declare const datepicker: DatepickerRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSlotRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const datepickerConfig = {"name":"datepicker","slots":["clearTrigger","content","control","input","label","monthSelect","nextTrigger","positioner","presetTrigger","prevTrigger","rangeText","root","table","tableBody","tableCell","tableCellTrigger","tableHead","tableHeader","tableRow","trigger","view","viewControl","viewTrigger","yearSelect","view","valueText"]}
|
|
4
|
+
|
|
5
|
+
export const datepicker = /* @__PURE__ */ createSlotRecipe(datepickerConfig)
|
package/recipes/dialog.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 DialogVariantMap = {
|
|
10
|
-
[key in keyof DialogVariant]: Array<DialogVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type DialogSlot = "trigger" | "backdrop" | "positioner" | "content" | "title" | "description" | "closeTrigger" | "header" | "body" | "footer"
|
|
4
|
+
export type DialogVariant = {}
|
|
14
5
|
|
|
15
6
|
export type DialogVariantProps = {
|
|
16
|
-
[
|
|
7
|
+
[K in keyof DialogVariant]?: ConditionalValue<DialogVariant[K]>
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
(props?: DialogVariantProps): Pretty<Record<DialogSlot, string>>
|
|
23
|
-
raw: (props?: DialogVariantProps) => DialogVariantProps
|
|
24
|
-
variantMap: DialogVariantMap
|
|
25
|
-
variantKeys: Array<keyof DialogVariant>
|
|
26
|
-
splitVariantProps<Props extends DialogVariantProps>(props: Props): [DialogVariantProps, Pretty<DistributiveOmit<Props, keyof DialogVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: DialogVariantProps) => DialogVariantProps
|
|
28
|
-
}
|
|
10
|
+
export type DialogVariantMap = RecipeVariantMap<DialogVariant>
|
|
11
|
+
|
|
12
|
+
export type DialogSlot = "trigger" | "backdrop" | "positioner" | "content" | "title" | "description" | "closeTrigger" | "header" | "body" | "footer"
|
|
29
13
|
|
|
14
|
+
export type DialogRecipe = ConfigSlotRecipeRuntimeFn<DialogSlot, DialogVariantProps, DialogVariantMap>
|
|
30
15
|
|
|
31
|
-
export declare const dialog: DialogRecipe
|
|
16
|
+
export declare const dialog: DialogRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSlotRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const dialogConfig = {"name":"dialog","slots":["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer"]}
|
|
4
|
+
|
|
5
|
+
export const dialog = /* @__PURE__ */ createSlotRecipe(dialogConfig)
|
package/recipes/drawer.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 "right"
|
|
8
|
-
*/
|
|
9
|
-
variant: "left" | "right"
|
|
4
|
+
export type DrawerVariant = {
|
|
5
|
+
variant?: "left" | "right"
|
|
10
6
|
}
|
|
11
7
|
|
|
12
|
-
type DrawerVariantMap = {
|
|
13
|
-
[key in keyof DrawerVariant]: Array<DrawerVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type DrawerSlot = "trigger" | "backdrop" | "positioner" | "content" | "title" | "description" | "closeTrigger" | "header" | "body" | "footer"
|
|
17
|
-
|
|
18
8
|
export type DrawerVariantProps = {
|
|
19
|
-
[
|
|
9
|
+
[K in keyof DrawerVariant]?: ConditionalValue<DrawerVariant[K]>
|
|
20
10
|
}
|
|
21
11
|
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
(props?: DrawerVariantProps): Pretty<Record<DrawerSlot, string>>
|
|
26
|
-
raw: (props?: DrawerVariantProps) => DrawerVariantProps
|
|
27
|
-
variantMap: DrawerVariantMap
|
|
28
|
-
variantKeys: Array<keyof DrawerVariant>
|
|
29
|
-
splitVariantProps<Props extends DrawerVariantProps>(props: Props): [DrawerVariantProps, Pretty<DistributiveOmit<Props, keyof DrawerVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: DrawerVariantProps) => DrawerVariantProps
|
|
31
|
-
}
|
|
12
|
+
export type DrawerVariantMap = RecipeVariantMap<DrawerVariant>
|
|
13
|
+
|
|
14
|
+
export type DrawerSlot = "trigger" | "backdrop" | "positioner" | "content" | "title" | "description" | "closeTrigger" | "header" | "body" | "footer"
|
|
32
15
|
|
|
16
|
+
export type DrawerRecipe = ConfigSlotRecipeRuntimeFn<DrawerSlot, DrawerVariantProps, DrawerVariantMap>
|
|
33
17
|
|
|
34
|
-
export declare const drawer: DrawerRecipe
|
|
18
|
+
export declare const drawer: DrawerRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSlotRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const drawerConfig = {"name":"drawer","slots":["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer"],"defaultVariants":{"variant":"right"},"variantMap":{"variant":["left","right"]}}
|
|
4
|
+
|
|
5
|
+
export const drawer = /* @__PURE__ */ createSlotRecipe(drawerConfig)
|
package/recipes/flag.d.ts
CHANGED
|
@@ -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 "rounded"
|
|
8
|
-
*/
|
|
9
|
-
shape: "rectangle" | "rounded" | "circle" | "square"
|
|
4
|
+
export type FlagVariant = {
|
|
5
|
+
shape?: "rectangle" | "rounded" | "circle" | "square"
|
|
10
6
|
}
|
|
11
7
|
|
|
12
|
-
type FlagVariantMap = {
|
|
13
|
-
[key in keyof FlagVariant]: Array<FlagVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
8
|
export type FlagVariantProps = {
|
|
19
|
-
[
|
|
9
|
+
[K in keyof FlagVariant]?: ConditionalValue<FlagVariant[K]>
|
|
20
10
|
}
|
|
21
11
|
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
__type: FlagVariantProps
|
|
25
|
-
(props?: FlagVariantProps): string
|
|
26
|
-
raw: (props?: FlagVariantProps) => FlagVariantProps
|
|
27
|
-
variantMap: FlagVariantMap
|
|
28
|
-
variantKeys: Array<keyof FlagVariant>
|
|
29
|
-
splitVariantProps<Props extends FlagVariantProps>(props: Props): [FlagVariantProps, Pretty<DistributiveOmit<Props, keyof FlagVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: FlagVariantProps) => FlagVariantProps
|
|
31
|
-
}
|
|
12
|
+
export type FlagVariantMap = RecipeVariantMap<FlagVariant>
|
|
32
13
|
|
|
14
|
+
export type FlagRecipe = ConfigRecipeRuntimeFn<FlagVariantProps, FlagVariantMap>
|
|
33
15
|
|
|
34
|
-
export declare const flag: FlagRecipe
|
|
16
|
+
export declare const flag: FlagRecipe;
|
package/recipes/flag.js
ADDED
|
@@ -1,33 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface FormControlVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type FormControlVariantMap = {
|
|
10
|
-
[key in keyof FormControlVariant]: Array<FormControlVariant[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 FormControlVariant = {}
|
|
14
5
|
|
|
15
6
|
export type FormControlVariantProps = {
|
|
16
|
-
[
|
|
7
|
+
[K in keyof FormControlVariant]?: ConditionalValue<FormControlVariant[K]>
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
(props?: FormControlVariantProps): string
|
|
23
|
-
raw: (props?: FormControlVariantProps) => FormControlVariantProps
|
|
24
|
-
variantMap: FormControlVariantMap
|
|
25
|
-
variantKeys: Array<keyof FormControlVariant>
|
|
26
|
-
splitVariantProps<Props extends FormControlVariantProps>(props: Props): [FormControlVariantProps, Pretty<DistributiveOmit<Props, keyof FormControlVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: FormControlVariantProps) => FormControlVariantProps
|
|
28
|
-
}
|
|
10
|
+
export type FormControlVariantMap = RecipeVariantMap<FormControlVariant>
|
|
11
|
+
|
|
12
|
+
export type FormControlRecipe = ConfigRecipeRuntimeFn<FormControlVariantProps, FormControlVariantMap>
|
|
29
13
|
|
|
30
|
-
|
|
31
|
-
* The styles for the FormControl component
|
|
32
|
-
*/
|
|
33
|
-
export declare const formControl: FormControlRecipe
|
|
14
|
+
export declare const formControl: FormControlRecipe;
|
|
@@ -1,33 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface FormHelperTextVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type FormHelperTextVariantMap = {
|
|
10
|
-
[key in keyof FormHelperTextVariant]: Array<FormHelperTextVariant[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 FormHelperTextVariant = {}
|
|
14
5
|
|
|
15
6
|
export type FormHelperTextVariantProps = {
|
|
16
|
-
[
|
|
7
|
+
[K in keyof FormHelperTextVariant]?: ConditionalValue<FormHelperTextVariant[K]>
|
|
17
8
|
}
|
|
18
9
|
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
(props?: FormHelperTextVariantProps): string
|
|
23
|
-
raw: (props?: FormHelperTextVariantProps) => FormHelperTextVariantProps
|
|
24
|
-
variantMap: FormHelperTextVariantMap
|
|
25
|
-
variantKeys: Array<keyof FormHelperTextVariant>
|
|
26
|
-
splitVariantProps<Props extends FormHelperTextVariantProps>(props: Props): [FormHelperTextVariantProps, Pretty<DistributiveOmit<Props, keyof FormHelperTextVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: FormHelperTextVariantProps) => FormHelperTextVariantProps
|
|
28
|
-
}
|
|
10
|
+
export type FormHelperTextVariantMap = RecipeVariantMap<FormHelperTextVariant>
|
|
11
|
+
|
|
12
|
+
export type FormHelperTextRecipe = ConfigRecipeRuntimeFn<FormHelperTextVariantProps, FormHelperTextVariantMap>
|
|
29
13
|
|
|
30
|
-
|
|
31
|
-
* The styles for the FormHelperText component
|
|
32
|
-
*/
|
|
33
|
-
export declare const formHelperText: FormHelperTextRecipe
|
|
14
|
+
export declare const formHelperText: FormHelperTextRecipe;
|
package/recipes/form-label.d.ts
CHANGED
|
@@ -1,36 +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 "absolute"
|
|
8
|
-
*/
|
|
9
|
-
variant: "static" | "absolute"
|
|
4
|
+
export type FormLabelVariant = {
|
|
5
|
+
variant?: "static" | "absolute"
|
|
10
6
|
}
|
|
11
7
|
|
|
12
|
-
type
|
|
13
|
-
[
|
|
8
|
+
export type FormLabelVariantProps = {
|
|
9
|
+
[K in keyof FormLabelVariant]?: ConditionalValue<FormLabelVariant[K]>
|
|
14
10
|
}
|
|
15
11
|
|
|
16
|
-
type
|
|
12
|
+
export type FormLabelVariantMap = RecipeVariantMap<FormLabelVariant>
|
|
17
13
|
|
|
18
|
-
export type
|
|
19
|
-
[key in keyof FormLabelVariant]?: ConditionalValue<FormLabelVariant[key]> | undefined
|
|
20
|
-
}
|
|
14
|
+
export type FormLabelSlot = "root" | "addon" | "icon"
|
|
21
15
|
|
|
22
|
-
export
|
|
23
|
-
__slot: FormLabelSlot
|
|
24
|
-
__type: FormLabelVariantProps
|
|
25
|
-
(props?: FormLabelVariantProps): Pretty<Record<FormLabelSlot, string>>
|
|
26
|
-
raw: (props?: FormLabelVariantProps) => FormLabelVariantProps
|
|
27
|
-
variantMap: FormLabelVariantMap
|
|
28
|
-
variantKeys: Array<keyof FormLabelVariant>
|
|
29
|
-
splitVariantProps<Props extends FormLabelVariantProps>(props: Props): [FormLabelVariantProps, Pretty<DistributiveOmit<Props, keyof FormLabelVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: FormLabelVariantProps) => FormLabelVariantProps
|
|
31
|
-
}
|
|
16
|
+
export type FormLabelRecipe = ConfigSlotRecipeRuntimeFn<FormLabelSlot, FormLabelVariantProps, FormLabelVariantMap>
|
|
32
17
|
|
|
33
|
-
|
|
34
|
-
* The styles for the FormLabel component
|
|
35
|
-
*/
|
|
36
|
-
export declare const formLabel: FormLabelRecipe
|
|
18
|
+
export declare const formLabel: FormLabelRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSlotRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const formLabelConfig = {"name":"formLabel","className":"form-label","slots":["root","addon","icon"],"defaultVariants":{"variant":"absolute"},"variantMap":{"variant":["static","absolute"]}}
|
|
4
|
+
|
|
5
|
+
export const formLabel = /* @__PURE__ */ createSlotRecipe(formLabelConfig)
|
package/recipes/heading.d.ts
CHANGED
|
@@ -1,36 +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 { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
italic
|
|
7
|
-
underline
|
|
8
|
-
|
|
9
|
-
* @default "h2"
|
|
10
|
-
*/
|
|
11
|
-
size: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
|
|
4
|
+
export type HeadingVariant = {
|
|
5
|
+
italic?: boolean
|
|
6
|
+
underline?: boolean
|
|
7
|
+
size?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
|
|
12
8
|
}
|
|
13
9
|
|
|
14
|
-
type HeadingVariantMap = {
|
|
15
|
-
[key in keyof HeadingVariant]: Array<HeadingVariant[key]>
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
10
|
export type HeadingVariantProps = {
|
|
21
|
-
[
|
|
11
|
+
[K in keyof HeadingVariant]?: ConditionalValue<HeadingVariant[K]>
|
|
22
12
|
}
|
|
23
13
|
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
__type: HeadingVariantProps
|
|
27
|
-
(props?: HeadingVariantProps): string
|
|
28
|
-
raw: (props?: HeadingVariantProps) => HeadingVariantProps
|
|
29
|
-
variantMap: HeadingVariantMap
|
|
30
|
-
variantKeys: Array<keyof HeadingVariant>
|
|
31
|
-
splitVariantProps<Props extends HeadingVariantProps>(props: Props): [HeadingVariantProps, Pretty<DistributiveOmit<Props, keyof HeadingVariantProps>>]
|
|
32
|
-
getVariantProps: (props?: HeadingVariantProps) => HeadingVariantProps
|
|
33
|
-
}
|
|
14
|
+
export type HeadingVariantMap = RecipeVariantMap<HeadingVariant>
|
|
34
15
|
|
|
16
|
+
export type HeadingRecipe = ConfigRecipeRuntimeFn<HeadingVariantProps, HeadingVariantMap>
|
|
35
17
|
|
|
36
|
-
export declare const heading: HeadingRecipe
|
|
18
|
+
export declare const heading: HeadingRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const headingConfig = {"name":"heading","defaultVariants":{"size":"h2"},"variantMap":{"italic":["true"],"underline":["true"],"size":["h1","h2","h3","h4","h5","h6"]}}
|
|
4
|
+
|
|
5
|
+
export const heading = /* @__PURE__ */ createRecipe(headingConfig)
|
|
@@ -1,33 +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
|
-
}
|
|
4
|
+
export type HighlightedInputVariant = {}
|
|
8
5
|
|
|
9
|
-
type
|
|
10
|
-
[
|
|
6
|
+
export type HighlightedInputVariantProps = {
|
|
7
|
+
[K in keyof HighlightedInputVariant]?: ConditionalValue<HighlightedInputVariant[K]>
|
|
11
8
|
}
|
|
12
9
|
|
|
13
|
-
type
|
|
10
|
+
export type HighlightedInputVariantMap = RecipeVariantMap<HighlightedInputVariant>
|
|
14
11
|
|
|
15
|
-
export type
|
|
16
|
-
[key in keyof HighlightedInputVariant]?: ConditionalValue<HighlightedInputVariant[key]> | undefined
|
|
17
|
-
}
|
|
12
|
+
export type HighlightedInputSlot = "root" | "input" | "renderer" | "highlight"
|
|
18
13
|
|
|
19
|
-
export
|
|
20
|
-
__slot: HighlightedInputSlot
|
|
21
|
-
__type: HighlightedInputVariantProps
|
|
22
|
-
(props?: HighlightedInputVariantProps): Pretty<Record<HighlightedInputSlot, string>>
|
|
23
|
-
raw: (props?: HighlightedInputVariantProps) => HighlightedInputVariantProps
|
|
24
|
-
variantMap: HighlightedInputVariantMap
|
|
25
|
-
variantKeys: Array<keyof HighlightedInputVariant>
|
|
26
|
-
splitVariantProps<Props extends HighlightedInputVariantProps>(props: Props): [HighlightedInputVariantProps, Pretty<DistributiveOmit<Props, keyof HighlightedInputVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: HighlightedInputVariantProps) => HighlightedInputVariantProps
|
|
28
|
-
}
|
|
14
|
+
export type HighlightedInputRecipe = ConfigSlotRecipeRuntimeFn<HighlightedInputSlot, HighlightedInputVariantProps, HighlightedInputVariantMap>
|
|
29
15
|
|
|
30
|
-
|
|
31
|
-
* Styles for HighlightedInput component
|
|
32
|
-
*/
|
|
33
|
-
export declare const highlightedInput: HighlightedInputRecipe
|
|
16
|
+
export declare const highlightedInput: HighlightedInputRecipe;
|
package/recipes/icon-button.d.ts
CHANGED
|
@@ -1,44 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
1
|
+
import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
size: "lg" | "md" | "sm"
|
|
10
|
-
/**
|
|
11
|
-
* @default "primary"
|
|
12
|
-
*/
|
|
13
|
-
variant: "primary" | "secondary" | "tertiary"
|
|
14
|
-
/**
|
|
15
|
-
* @default "none"
|
|
16
|
-
*/
|
|
17
|
-
severity: "none" | "danger" | "success"
|
|
3
|
+
export type IconButtonVariant = {
|
|
4
|
+
size?: "lg" | "md" | "sm"
|
|
5
|
+
variant?: "primary" | "secondary" | "tertiary"
|
|
6
|
+
severity?: "none" | "danger" | "success"
|
|
18
7
|
}
|
|
19
8
|
|
|
20
|
-
type IconButtonVariantMap = {
|
|
21
|
-
[key in keyof IconButtonVariant]: Array<IconButtonVariant[key]>
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
9
|
export type IconButtonVariantProps = {
|
|
27
|
-
[
|
|
10
|
+
[K in keyof IconButtonVariant]?: IconButtonVariant[K] | undefined
|
|
28
11
|
}
|
|
29
12
|
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
(props?: IconButtonVariantProps): string
|
|
34
|
-
raw: (props?: IconButtonVariantProps) => IconButtonVariantProps
|
|
35
|
-
variantMap: IconButtonVariantMap
|
|
36
|
-
variantKeys: Array<keyof IconButtonVariant>
|
|
37
|
-
splitVariantProps<Props extends IconButtonVariantProps>(props: Props): [IconButtonVariantProps, Pretty<DistributiveOmit<Props, keyof IconButtonVariantProps>>]
|
|
38
|
-
getVariantProps: (props?: IconButtonVariantProps) => IconButtonVariantProps
|
|
39
|
-
}
|
|
13
|
+
export type IconButtonVariantMap = RecipeVariantMap<IconButtonVariant>
|
|
14
|
+
|
|
15
|
+
export type IconButtonRecipe = ConfigRecipeRuntimeFn<IconButtonVariantProps, IconButtonVariantMap>
|
|
40
16
|
|
|
41
|
-
|
|
42
|
-
* The styles for the IconButton component
|
|
43
|
-
*/
|
|
44
|
-
export declare const iconButton: IconButtonRecipe
|
|
17
|
+
export declare const iconButton: IconButtonRecipe;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createRecipe } from './runtime.js';
|
|
2
|
+
|
|
3
|
+
const iconButtonConfig = {"name":"iconButton","className":"icon-button","defaultVariants":{"severity":"none","size":"md","variant":"primary"},"compoundVariants":[{"size":"sm","variant":"primary","className":"icon-button--compound__size_sm__variant_primary"},{"size":"md","variant":"primary","className":"icon-button--compound__size_md__variant_primary"},{"size":"lg","variant":"primary","className":"icon-button--compound__size_lg__variant_primary"},{"severity":"danger","variant":"primary","className":"icon-button--compound__severity_danger__variant_primary"},{"severity":"danger","variant":"secondary","className":"icon-button--compound__severity_danger__variant_secondary"},{"severity":"danger","variant":"tertiary","className":"icon-button--compound__severity_danger__variant_tertiary"},{"severity":"success","variant":"primary","className":"icon-button--compound__severity_success__variant_primary"},{"severity":"success","variant":"secondary","className":"icon-button--compound__severity_success__variant_secondary"},{"severity":"success","variant":"tertiary","className":"icon-button--compound__severity_success__variant_tertiary"},{"size":"sm","variant":"primary","className":"icon-button--compound__size_sm__variant_primary"},{"size":"md","variant":"primary","className":"icon-button--compound__size_md__variant_primary"},{"size":"lg","variant":"primary","className":"icon-button--compound__size_lg__variant_primary"}],"variantMap":{"size":["lg","md","sm"],"variant":["primary","secondary","tertiary"],"severity":["none","danger","success"]}}
|
|
4
|
+
|
|
5
|
+
export const iconButton = /* @__PURE__ */ createRecipe(iconButtonConfig)
|
package/recipes/icon.d.ts
CHANGED
|
@@ -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 "md"
|
|
8
|
-
*/
|
|
9
|
-
size: "xs" | "sm" | "md" | "lg" | "xl"
|
|
4
|
+
export type IconVariant = {
|
|
5
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl"
|
|
10
6
|
}
|
|
11
7
|
|
|
12
|
-
type IconVariantMap = {
|
|
13
|
-
[key in keyof IconVariant]: Array<IconVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
8
|
export type IconVariantProps = {
|
|
19
|
-
[
|
|
9
|
+
[K in keyof IconVariant]?: ConditionalValue<IconVariant[K]>
|
|
20
10
|
}
|
|
21
11
|
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
__type: IconVariantProps
|
|
25
|
-
(props?: IconVariantProps): string
|
|
26
|
-
raw: (props?: IconVariantProps) => IconVariantProps
|
|
27
|
-
variantMap: IconVariantMap
|
|
28
|
-
variantKeys: Array<keyof IconVariant>
|
|
29
|
-
splitVariantProps<Props extends IconVariantProps>(props: Props): [IconVariantProps, Pretty<DistributiveOmit<Props, keyof IconVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: IconVariantProps) => IconVariantProps
|
|
31
|
-
}
|
|
12
|
+
export type IconVariantMap = RecipeVariantMap<IconVariant>
|
|
32
13
|
|
|
14
|
+
export type IconRecipe = ConfigRecipeRuntimeFn<IconVariantProps, IconVariantMap>
|
|
33
15
|
|
|
34
|
-
export declare const icon: IconRecipe
|
|
16
|
+
export declare const icon: IconRecipe;
|