@pyck/styled-system 0.0.1
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/dist/css/conditions.mjs +36 -0
- package/dist/css/css.d.ts +22 -0
- package/dist/css/css.mjs +45 -0
- package/dist/css/cva.d.ts +6 -0
- package/dist/css/cva.mjs +87 -0
- package/dist/css/cx.d.ts +5 -0
- package/dist/css/cx.mjs +15 -0
- package/dist/css/index.d.ts +5 -0
- package/dist/css/index.mjs +4 -0
- package/dist/css/sva.d.ts +4 -0
- package/dist/css/sva.mjs +46 -0
- package/dist/helpers.mjs +328 -0
- package/dist/jsx/aspect-ratio.d.ts +10 -0
- package/dist/jsx/aspect-ratio.mjs +14 -0
- package/dist/jsx/bleed.d.ts +10 -0
- package/dist/jsx/bleed.mjs +14 -0
- package/dist/jsx/box.d.ts +10 -0
- package/dist/jsx/box.mjs +14 -0
- package/dist/jsx/center.d.ts +10 -0
- package/dist/jsx/center.mjs +14 -0
- package/dist/jsx/circle.d.ts +10 -0
- package/dist/jsx/circle.mjs +14 -0
- package/dist/jsx/container.d.ts +10 -0
- package/dist/jsx/container.mjs +14 -0
- package/dist/jsx/cq.d.ts +10 -0
- package/dist/jsx/cq.mjs +14 -0
- package/dist/jsx/create-style-context.d.ts +54 -0
- package/dist/jsx/create-style-context.mjs +118 -0
- package/dist/jsx/divider.d.ts +10 -0
- package/dist/jsx/divider.mjs +14 -0
- package/dist/jsx/factory-helper.mjs +22 -0
- package/dist/jsx/factory.d.ts +3 -0
- package/dist/jsx/factory.mjs +89 -0
- package/dist/jsx/flex.d.ts +10 -0
- package/dist/jsx/flex.mjs +14 -0
- package/dist/jsx/float.d.ts +10 -0
- package/dist/jsx/float.mjs +14 -0
- package/dist/jsx/grid-item.d.ts +10 -0
- package/dist/jsx/grid-item.mjs +14 -0
- package/dist/jsx/grid.d.ts +10 -0
- package/dist/jsx/grid.mjs +14 -0
- package/dist/jsx/hstack.d.ts +10 -0
- package/dist/jsx/hstack.mjs +14 -0
- package/dist/jsx/index.d.ts +25 -0
- package/dist/jsx/index.mjs +23 -0
- package/dist/jsx/is-valid-prop.d.ts +11 -0
- package/dist/jsx/is-valid-prop.mjs +17 -0
- package/dist/jsx/link-overlay.d.ts +10 -0
- package/dist/jsx/link-overlay.mjs +14 -0
- package/dist/jsx/spacer.d.ts +10 -0
- package/dist/jsx/spacer.mjs +14 -0
- package/dist/jsx/square.d.ts +10 -0
- package/dist/jsx/square.mjs +14 -0
- package/dist/jsx/stack.d.ts +10 -0
- package/dist/jsx/stack.mjs +14 -0
- package/dist/jsx/visually-hidden.d.ts +10 -0
- package/dist/jsx/visually-hidden.mjs +14 -0
- package/dist/jsx/vstack.d.ts +10 -0
- package/dist/jsx/vstack.mjs +14 -0
- package/dist/jsx/wrap.d.ts +10 -0
- package/dist/jsx/wrap.mjs +14 -0
- package/dist/patterns/aspect-ratio.d.ts +20 -0
- package/dist/patterns/aspect-ratio.mjs +38 -0
- package/dist/patterns/bleed.d.ts +21 -0
- package/dist/patterns/bleed.mjs +24 -0
- package/dist/patterns/box.d.ts +20 -0
- package/dist/patterns/box.mjs +15 -0
- package/dist/patterns/center.d.ts +20 -0
- package/dist/patterns/center.mjs +21 -0
- package/dist/patterns/circle.d.ts +20 -0
- package/dist/patterns/circle.mjs +25 -0
- package/dist/patterns/container.d.ts +20 -0
- package/dist/patterns/container.mjs +22 -0
- package/dist/patterns/cq.d.ts +21 -0
- package/dist/patterns/cq.mjs +21 -0
- package/dist/patterns/divider.d.ts +22 -0
- package/dist/patterns/divider.mjs +25 -0
- package/dist/patterns/flex.d.ts +26 -0
- package/dist/patterns/flex.mjs +26 -0
- package/dist/patterns/float.d.ts +23 -0
- package/dist/patterns/float.mjs +52 -0
- package/dist/patterns/grid-item.d.ts +25 -0
- package/dist/patterns/grid-item.mjs +25 -0
- package/dist/patterns/grid.d.ts +24 -0
- package/dist/patterns/grid.mjs +25 -0
- package/dist/patterns/hstack.d.ts +21 -0
- package/dist/patterns/hstack.mjs +24 -0
- package/dist/patterns/index.d.ts +21 -0
- package/dist/patterns/index.mjs +20 -0
- package/dist/patterns/link-overlay.d.ts +20 -0
- package/dist/patterns/link-overlay.mjs +24 -0
- package/dist/patterns/spacer.d.ts +20 -0
- package/dist/patterns/spacer.mjs +21 -0
- package/dist/patterns/square.d.ts +20 -0
- package/dist/patterns/square.mjs +24 -0
- package/dist/patterns/stack.d.ts +23 -0
- package/dist/patterns/stack.mjs +24 -0
- package/dist/patterns/visually-hidden.d.ts +20 -0
- package/dist/patterns/visually-hidden.mjs +18 -0
- package/dist/patterns/vstack.d.ts +21 -0
- package/dist/patterns/vstack.mjs +24 -0
- package/dist/patterns/wrap.d.ts +24 -0
- package/dist/patterns/wrap.mjs +25 -0
- package/dist/recipes/absolute-center.d.ts +34 -0
- package/dist/recipes/absolute-center.mjs +32 -0
- package/dist/recipes/action-bar.d.ts +31 -0
- package/dist/recipes/action-bar.mjs +49 -0
- package/dist/recipes/avatar.d.ts +43 -0
- package/dist/recipes/avatar.mjs +75 -0
- package/dist/recipes/badge.d.ts +38 -0
- package/dist/recipes/badge.mjs +40 -0
- package/dist/recipes/breadcrumb.d.ts +38 -0
- package/dist/recipes/breadcrumb.mjs +70 -0
- package/dist/recipes/button.d.ts +38 -0
- package/dist/recipes/button.mjs +44 -0
- package/dist/recipes/card.d.ts +34 -0
- package/dist/recipes/card.mjs +63 -0
- package/dist/recipes/carousel.d.ts +35 -0
- package/dist/recipes/carousel.mjs +93 -0
- package/dist/recipes/checkbox.d.ts +38 -0
- package/dist/recipes/checkbox.mjs +67 -0
- package/dist/recipes/checkmark.d.ts +38 -0
- package/dist/recipes/checkmark.mjs +39 -0
- package/dist/recipes/clipboard.d.ts +31 -0
- package/dist/recipes/clipboard.mjs +53 -0
- package/dist/recipes/collapsible.d.ts +34 -0
- package/dist/recipes/collapsible.mjs +54 -0
- package/dist/recipes/combobox.d.ts +38 -0
- package/dist/recipes/combobox.mjs +112 -0
- package/dist/recipes/create-recipe.mjs +82 -0
- package/dist/recipes/data-list.d.ts +31 -0
- package/dist/recipes/data-list.mjs +53 -0
- package/dist/recipes/date-picker.d.ts +31 -0
- package/dist/recipes/date-picker.mjs +133 -0
- package/dist/recipes/dialog.d.ts +46 -0
- package/dist/recipes/dialog.mjs +106 -0
- package/dist/recipes/drawer.d.ts +38 -0
- package/dist/recipes/drawer.mjs +90 -0
- package/dist/recipes/drilldown-menu.d.ts +31 -0
- package/dist/recipes/drilldown-menu.mjs +53 -0
- package/dist/recipes/field.d.ts +31 -0
- package/dist/recipes/field.mjs +61 -0
- package/dist/recipes/fieldset.d.ts +31 -0
- package/dist/recipes/fieldset.mjs +73 -0
- package/dist/recipes/floating-panel.d.ts +31 -0
- package/dist/recipes/floating-panel.mjs +73 -0
- package/dist/recipes/form.d.ts +31 -0
- package/dist/recipes/form.mjs +24 -0
- package/dist/recipes/group.d.ts +36 -0
- package/dist/recipes/group.mjs +72 -0
- package/dist/recipes/heading.d.ts +31 -0
- package/dist/recipes/heading.mjs +38 -0
- package/dist/recipes/icon.d.ts +34 -0
- package/dist/recipes/icon.mjs +36 -0
- package/dist/recipes/index.d.ts +58 -0
- package/dist/recipes/index.mjs +57 -0
- package/dist/recipes/input-addon.d.ts +38 -0
- package/dist/recipes/input-addon.mjs +39 -0
- package/dist/recipes/input-group.d.ts +34 -0
- package/dist/recipes/input-group.mjs +49 -0
- package/dist/recipes/input.d.ts +38 -0
- package/dist/recipes/input.mjs +42 -0
- package/dist/recipes/kbd.d.ts +38 -0
- package/dist/recipes/kbd.mjs +42 -0
- package/dist/recipes/link.d.ts +34 -0
- package/dist/recipes/link.mjs +30 -0
- package/dist/recipes/mark.d.ts +34 -0
- package/dist/recipes/mark.mjs +32 -0
- package/dist/recipes/menu.d.ts +34 -0
- package/dist/recipes/menu.mjs +97 -0
- package/dist/recipes/number-input.d.ts +38 -0
- package/dist/recipes/number-input.mjs +78 -0
- package/dist/recipes/pagination.d.ts +31 -0
- package/dist/recipes/pagination.mjs +57 -0
- package/dist/recipes/popover.d.ts +31 -0
- package/dist/recipes/popover.mjs +81 -0
- package/dist/recipes/progress-circle.d.ts +34 -0
- package/dist/recipes/progress-circle.mjs +75 -0
- package/dist/recipes/progress.d.ts +44 -0
- package/dist/recipes/progress.mjs +98 -0
- package/dist/recipes/radio-card-group.d.ts +38 -0
- package/dist/recipes/radio-card-group.mjs +69 -0
- package/dist/recipes/radio-group.d.ts +38 -0
- package/dist/recipes/radio-group.mjs +68 -0
- package/dist/recipes/scroll-area.d.ts +38 -0
- package/dist/recipes/scroll-area.mjs +70 -0
- package/dist/recipes/segment-group.d.ts +35 -0
- package/dist/recipes/segment-group.mjs +69 -0
- package/dist/recipes/select.d.ts +38 -0
- package/dist/recipes/select.mjs +111 -0
- package/dist/recipes/skeleton.d.ts +39 -0
- package/dist/recipes/skeleton.mjs +40 -0
- package/dist/recipes/slider.d.ts +42 -0
- package/dist/recipes/slider.mjs +94 -0
- package/dist/recipes/spinner.d.ts +34 -0
- package/dist/recipes/spinner.mjs +36 -0
- package/dist/recipes/stat.d.ts +31 -0
- package/dist/recipes/stat.mjs +41 -0
- package/dist/recipes/steps.d.ts +42 -0
- package/dist/recipes/steps.mjs +97 -0
- package/dist/recipes/switch-recipe.d.ts +38 -0
- package/dist/recipes/switch-recipe.mjs +65 -0
- package/dist/recipes/table.d.ts +40 -0
- package/dist/recipes/table.mjs +83 -0
- package/dist/recipes/tabs.d.ts +39 -0
- package/dist/recipes/tabs.mjs +72 -0
- package/dist/recipes/tags-input.d.ts +38 -0
- package/dist/recipes/tags-input.mjs +86 -0
- package/dist/recipes/text.d.ts +31 -0
- package/dist/recipes/text.mjs +38 -0
- package/dist/recipes/textarea.d.ts +38 -0
- package/dist/recipes/textarea.mjs +41 -0
- package/dist/recipes/toast.d.ts +31 -0
- package/dist/recipes/toast.mjs +53 -0
- package/dist/recipes/toggle-group.d.ts +31 -0
- package/dist/recipes/toggle-group.mjs +44 -0
- package/dist/recipes/tooltip.d.ts +34 -0
- package/dist/recipes/tooltip.mjs +57 -0
- package/dist/recipes/tree-view.d.ts +34 -0
- package/dist/recipes/tree-view.mjs +97 -0
- package/dist/tokens/index.d.ts +9 -0
- package/dist/tokens/index.mjs +3060 -0
- package/dist/tokens/tokens.d.ts +63 -0
- package/dist/types/composition.d.ts +227 -0
- package/dist/types/conditions.d.ts +314 -0
- package/dist/types/csstype.d.ts +22570 -0
- package/dist/types/global.d.ts +20 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/jsx.d.ts +69 -0
- package/dist/types/parts.d.ts +8 -0
- package/dist/types/pattern.d.ts +78 -0
- package/dist/types/prop-type.d.ts +253 -0
- package/dist/types/recipe.d.ts +181 -0
- package/dist/types/selectors.d.ts +59 -0
- package/dist/types/static-css.d.ts +56 -0
- package/dist/types/style-props.d.ts +8091 -0
- package/dist/types/system-types.d.ts +151 -0
- package/package.json +76 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const fieldDefaultVariants = {}
|
|
5
|
+
const fieldCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const fieldSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"field__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"errorText",
|
|
14
|
+
"field__errorText"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"helperText",
|
|
18
|
+
"field__helperText"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"input",
|
|
22
|
+
"field__input"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"label",
|
|
26
|
+
"field__label"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"select",
|
|
30
|
+
"field__select"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"textarea",
|
|
34
|
+
"field__textarea"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"requiredIndicator",
|
|
38
|
+
"field__requiredIndicator"
|
|
39
|
+
]
|
|
40
|
+
]
|
|
41
|
+
const fieldSlotFns = /* @__PURE__ */ fieldSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, fieldDefaultVariants, getSlotCompoundVariant(fieldCompoundVariants, slotName))])
|
|
42
|
+
|
|
43
|
+
const fieldFn = memo((props = {}) => {
|
|
44
|
+
return Object.fromEntries(fieldSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
const fieldVariantKeys = []
|
|
48
|
+
const getVariantProps = (variants) => ({ ...fieldDefaultVariants, ...compact(variants) })
|
|
49
|
+
|
|
50
|
+
export const field = /* @__PURE__ */ Object.assign(fieldFn, {
|
|
51
|
+
__recipe__: false,
|
|
52
|
+
__name__: 'field',
|
|
53
|
+
raw: (props) => props,
|
|
54
|
+
classNameMap: {},
|
|
55
|
+
variantKeys: fieldVariantKeys,
|
|
56
|
+
variantMap: {},
|
|
57
|
+
splitVariantProps(props) {
|
|
58
|
+
return splitProps(props, fieldVariantKeys)
|
|
59
|
+
},
|
|
60
|
+
getVariantProps
|
|
61
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface FieldsetVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type FieldsetVariantMap = {
|
|
10
|
+
[key in keyof FieldsetVariant]: Array<FieldsetVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type FieldsetSlot = "root" | "errorText" | "helperText" | "legend" | "header" | "body" | "footer" | "legend" | "description" | "helperText" | "errorText"
|
|
14
|
+
|
|
15
|
+
export type FieldsetVariantProps = {
|
|
16
|
+
[key in keyof FieldsetVariant]?: ConditionalValue<FieldsetVariant[key]> | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface FieldsetRecipe {
|
|
20
|
+
__slot: FieldsetSlot
|
|
21
|
+
__type: FieldsetVariantProps
|
|
22
|
+
(props?: FieldsetVariantProps): Pretty<Record<FieldsetSlot, string>>
|
|
23
|
+
raw: (props?: FieldsetVariantProps) => FieldsetVariantProps
|
|
24
|
+
variantMap: FieldsetVariantMap
|
|
25
|
+
variantKeys: Array<keyof FieldsetVariant>
|
|
26
|
+
splitVariantProps<Props extends FieldsetVariantProps>(props: Props): [FieldsetVariantProps, Pretty<DistributiveOmit<Props, keyof FieldsetVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: FieldsetVariantProps) => FieldsetVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare const fieldset: FieldsetRecipe
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const fieldsetDefaultVariants = {}
|
|
5
|
+
const fieldsetCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const fieldsetSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"fieldset__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"errorText",
|
|
14
|
+
"fieldset__errorText"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"helperText",
|
|
18
|
+
"fieldset__helperText"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"legend",
|
|
22
|
+
"fieldset__legend"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"header",
|
|
26
|
+
"fieldset__header"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"body",
|
|
30
|
+
"fieldset__body"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"footer",
|
|
34
|
+
"fieldset__footer"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"legend",
|
|
38
|
+
"fieldset__legend"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"description",
|
|
42
|
+
"fieldset__description"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"helperText",
|
|
46
|
+
"fieldset__helperText"
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"errorText",
|
|
50
|
+
"fieldset__errorText"
|
|
51
|
+
]
|
|
52
|
+
]
|
|
53
|
+
const fieldsetSlotFns = /* @__PURE__ */ fieldsetSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, fieldsetDefaultVariants, getSlotCompoundVariant(fieldsetCompoundVariants, slotName))])
|
|
54
|
+
|
|
55
|
+
const fieldsetFn = memo((props = {}) => {
|
|
56
|
+
return Object.fromEntries(fieldsetSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
const fieldsetVariantKeys = []
|
|
60
|
+
const getVariantProps = (variants) => ({ ...fieldsetDefaultVariants, ...compact(variants) })
|
|
61
|
+
|
|
62
|
+
export const fieldset = /* @__PURE__ */ Object.assign(fieldsetFn, {
|
|
63
|
+
__recipe__: false,
|
|
64
|
+
__name__: 'fieldset',
|
|
65
|
+
raw: (props) => props,
|
|
66
|
+
classNameMap: {},
|
|
67
|
+
variantKeys: fieldsetVariantKeys,
|
|
68
|
+
variantMap: {},
|
|
69
|
+
splitVariantProps(props) {
|
|
70
|
+
return splitProps(props, fieldsetVariantKeys)
|
|
71
|
+
},
|
|
72
|
+
getVariantProps
|
|
73
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface FloatingPanelVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type FloatingPanelVariantMap = {
|
|
10
|
+
[key in keyof FloatingPanelVariant]: Array<FloatingPanelVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type FloatingPanelSlot = "trigger" | "positioner" | "content" | "header" | "body" | "title" | "resizeTrigger" | "dragTrigger" | "stageTrigger" | "closeTrigger" | "control"
|
|
14
|
+
|
|
15
|
+
export type FloatingPanelVariantProps = {
|
|
16
|
+
[key in keyof FloatingPanelVariant]?: ConditionalValue<FloatingPanelVariant[key]> | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface FloatingPanelRecipe {
|
|
20
|
+
__slot: FloatingPanelSlot
|
|
21
|
+
__type: FloatingPanelVariantProps
|
|
22
|
+
(props?: FloatingPanelVariantProps): Pretty<Record<FloatingPanelSlot, string>>
|
|
23
|
+
raw: (props?: FloatingPanelVariantProps) => FloatingPanelVariantProps
|
|
24
|
+
variantMap: FloatingPanelVariantMap
|
|
25
|
+
variantKeys: Array<keyof FloatingPanelVariant>
|
|
26
|
+
splitVariantProps<Props extends FloatingPanelVariantProps>(props: Props): [FloatingPanelVariantProps, Pretty<DistributiveOmit<Props, keyof FloatingPanelVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: FloatingPanelVariantProps) => FloatingPanelVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare const floatingPanel: FloatingPanelRecipe
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const floatingPanelDefaultVariants = {}
|
|
5
|
+
const floatingPanelCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const floatingPanelSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"trigger",
|
|
10
|
+
"floating-panel__trigger"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"positioner",
|
|
14
|
+
"floating-panel__positioner"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"content",
|
|
18
|
+
"floating-panel__content"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"header",
|
|
22
|
+
"floating-panel__header"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"body",
|
|
26
|
+
"floating-panel__body"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"title",
|
|
30
|
+
"floating-panel__title"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"resizeTrigger",
|
|
34
|
+
"floating-panel__resizeTrigger"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"dragTrigger",
|
|
38
|
+
"floating-panel__dragTrigger"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"stageTrigger",
|
|
42
|
+
"floating-panel__stageTrigger"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"closeTrigger",
|
|
46
|
+
"floating-panel__closeTrigger"
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"control",
|
|
50
|
+
"floating-panel__control"
|
|
51
|
+
]
|
|
52
|
+
]
|
|
53
|
+
const floatingPanelSlotFns = /* @__PURE__ */ floatingPanelSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, floatingPanelDefaultVariants, getSlotCompoundVariant(floatingPanelCompoundVariants, slotName))])
|
|
54
|
+
|
|
55
|
+
const floatingPanelFn = memo((props = {}) => {
|
|
56
|
+
return Object.fromEntries(floatingPanelSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
const floatingPanelVariantKeys = []
|
|
60
|
+
const getVariantProps = (variants) => ({ ...floatingPanelDefaultVariants, ...compact(variants) })
|
|
61
|
+
|
|
62
|
+
export const floatingPanel = /* @__PURE__ */ Object.assign(floatingPanelFn, {
|
|
63
|
+
__recipe__: false,
|
|
64
|
+
__name__: 'floatingPanel',
|
|
65
|
+
raw: (props) => props,
|
|
66
|
+
classNameMap: {},
|
|
67
|
+
variantKeys: floatingPanelVariantKeys,
|
|
68
|
+
variantMap: {},
|
|
69
|
+
splitVariantProps(props) {
|
|
70
|
+
return splitProps(props, floatingPanelVariantKeys)
|
|
71
|
+
},
|
|
72
|
+
getVariantProps
|
|
73
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface FormVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type FormVariantMap = {
|
|
10
|
+
[key in keyof FormVariant]: Array<FormVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export type FormVariantProps = {
|
|
16
|
+
[key in keyof FormVariant]?: ConditionalValue<FormVariant[key]> | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface FormRecipe {
|
|
20
|
+
|
|
21
|
+
__type: FormVariantProps
|
|
22
|
+
(props?: FormVariantProps): string
|
|
23
|
+
raw: (props?: FormVariantProps) => FormVariantProps
|
|
24
|
+
variantMap: FormVariantMap
|
|
25
|
+
variantKeys: Array<keyof FormVariant>
|
|
26
|
+
splitVariantProps<Props extends FormVariantProps>(props: Props): [FormVariantProps, Pretty<DistributiveOmit<Props, keyof FormVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: FormVariantProps) => FormVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare const form: FormRecipe
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const formFn = /* @__PURE__ */ createRecipe('form', {}, [])
|
|
5
|
+
|
|
6
|
+
const formVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const formVariantKeys = Object.keys(formVariantMap)
|
|
9
|
+
|
|
10
|
+
export const form = /* @__PURE__ */ Object.assign(memo(formFn.recipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'form',
|
|
13
|
+
__getCompoundVariantCss__: formFn.__getCompoundVariantCss__,
|
|
14
|
+
raw: (props) => props,
|
|
15
|
+
variantKeys: formVariantKeys,
|
|
16
|
+
variantMap: formVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
20
|
+
splitVariantProps(props) {
|
|
21
|
+
return splitProps(props, formVariantKeys)
|
|
22
|
+
},
|
|
23
|
+
getVariantProps: formFn.getVariantProps,
|
|
24
|
+
})
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface GroupVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "horizontal"
|
|
8
|
+
*/
|
|
9
|
+
orientation: "horizontal" | "vertical"
|
|
10
|
+
attached: boolean
|
|
11
|
+
grow: boolean
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type GroupVariantMap = {
|
|
15
|
+
[key in keyof GroupVariant]: Array<GroupVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
export type GroupVariantProps = {
|
|
21
|
+
[key in keyof GroupVariant]?: GroupVariant[key] | undefined
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface GroupRecipe {
|
|
25
|
+
|
|
26
|
+
__type: GroupVariantProps
|
|
27
|
+
(props?: GroupVariantProps): string
|
|
28
|
+
raw: (props?: GroupVariantProps) => GroupVariantProps
|
|
29
|
+
variantMap: GroupVariantMap
|
|
30
|
+
variantKeys: Array<keyof GroupVariant>
|
|
31
|
+
splitVariantProps<Props extends GroupVariantProps>(props: Props): [GroupVariantProps, Pretty<DistributiveOmit<Props, keyof GroupVariantProps>>]
|
|
32
|
+
getVariantProps: (props?: GroupVariantProps) => GroupVariantProps
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
export declare const group: GroupRecipe
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const groupFn = /* @__PURE__ */ createRecipe('group', {
|
|
5
|
+
"orientation": "horizontal"
|
|
6
|
+
}, [
|
|
7
|
+
{
|
|
8
|
+
"orientation": "horizontal",
|
|
9
|
+
"attached": true,
|
|
10
|
+
"css": {
|
|
11
|
+
"& > *:first-child": {
|
|
12
|
+
"borderEndRadius": "0",
|
|
13
|
+
"marginEnd": "-1px"
|
|
14
|
+
},
|
|
15
|
+
"& > *:last-child": {
|
|
16
|
+
"borderStartRadius": "0"
|
|
17
|
+
},
|
|
18
|
+
"& > *:not(:first-child):not(:last-child)": {
|
|
19
|
+
"borderRadius": "0",
|
|
20
|
+
"marginEnd": "-1px"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"orientation": "vertical",
|
|
26
|
+
"attached": true,
|
|
27
|
+
"css": {
|
|
28
|
+
"& > *:first-child": {
|
|
29
|
+
"borderBottomRadius": "0",
|
|
30
|
+
"marginBottom": "-1px"
|
|
31
|
+
},
|
|
32
|
+
"& > *:last-child": {
|
|
33
|
+
"borderTopRadius": "0"
|
|
34
|
+
},
|
|
35
|
+
"& > *:not(:first-child):not(:last-child)": {
|
|
36
|
+
"borderRadius": "0",
|
|
37
|
+
"marginBottom": "-1px"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
])
|
|
42
|
+
|
|
43
|
+
const groupVariantMap = {
|
|
44
|
+
"orientation": [
|
|
45
|
+
"horizontal",
|
|
46
|
+
"vertical"
|
|
47
|
+
],
|
|
48
|
+
"attached": [
|
|
49
|
+
"true"
|
|
50
|
+
],
|
|
51
|
+
"grow": [
|
|
52
|
+
"true"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const groupVariantKeys = Object.keys(groupVariantMap)
|
|
57
|
+
|
|
58
|
+
export const group = /* @__PURE__ */ Object.assign(memo(groupFn.recipeFn), {
|
|
59
|
+
__recipe__: true,
|
|
60
|
+
__name__: 'group',
|
|
61
|
+
__getCompoundVariantCss__: groupFn.__getCompoundVariantCss__,
|
|
62
|
+
raw: (props) => props,
|
|
63
|
+
variantKeys: groupVariantKeys,
|
|
64
|
+
variantMap: groupVariantMap,
|
|
65
|
+
merge(recipe) {
|
|
66
|
+
return mergeRecipes(this, recipe)
|
|
67
|
+
},
|
|
68
|
+
splitVariantProps(props) {
|
|
69
|
+
return splitProps(props, groupVariantKeys)
|
|
70
|
+
},
|
|
71
|
+
getVariantProps: groupFn.getVariantProps,
|
|
72
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface HeadingVariant {
|
|
6
|
+
size: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type HeadingVariantMap = {
|
|
10
|
+
[key in keyof HeadingVariant]: Array<HeadingVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export type HeadingVariantProps = {
|
|
16
|
+
[key in keyof HeadingVariant]?: ConditionalValue<HeadingVariant[key]> | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface HeadingRecipe {
|
|
20
|
+
|
|
21
|
+
__type: HeadingVariantProps
|
|
22
|
+
(props?: HeadingVariantProps): string
|
|
23
|
+
raw: (props?: HeadingVariantProps) => HeadingVariantProps
|
|
24
|
+
variantMap: HeadingVariantMap
|
|
25
|
+
variantKeys: Array<keyof HeadingVariant>
|
|
26
|
+
splitVariantProps<Props extends HeadingVariantProps>(props: Props): [HeadingVariantProps, Pretty<DistributiveOmit<Props, keyof HeadingVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: HeadingVariantProps) => HeadingVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare const heading: HeadingRecipe
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const headingFn = /* @__PURE__ */ createRecipe('heading', {}, [])
|
|
5
|
+
|
|
6
|
+
const headingVariantMap = {
|
|
7
|
+
"size": [
|
|
8
|
+
"xs",
|
|
9
|
+
"sm",
|
|
10
|
+
"md",
|
|
11
|
+
"lg",
|
|
12
|
+
"xl",
|
|
13
|
+
"2xl",
|
|
14
|
+
"3xl",
|
|
15
|
+
"4xl",
|
|
16
|
+
"5xl",
|
|
17
|
+
"6xl",
|
|
18
|
+
"7xl"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const headingVariantKeys = Object.keys(headingVariantMap)
|
|
23
|
+
|
|
24
|
+
export const heading = /* @__PURE__ */ Object.assign(memo(headingFn.recipeFn), {
|
|
25
|
+
__recipe__: true,
|
|
26
|
+
__name__: 'heading',
|
|
27
|
+
__getCompoundVariantCss__: headingFn.__getCompoundVariantCss__,
|
|
28
|
+
raw: (props) => props,
|
|
29
|
+
variantKeys: headingVariantKeys,
|
|
30
|
+
variantMap: headingVariantMap,
|
|
31
|
+
merge(recipe) {
|
|
32
|
+
return mergeRecipes(this, recipe)
|
|
33
|
+
},
|
|
34
|
+
splitVariantProps(props) {
|
|
35
|
+
return splitProps(props, headingVariantKeys)
|
|
36
|
+
},
|
|
37
|
+
getVariantProps: headingFn.getVariantProps,
|
|
38
|
+
})
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface IconVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type IconVariantMap = {
|
|
13
|
+
[key in keyof IconVariant]: Array<IconVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export type IconVariantProps = {
|
|
19
|
+
[key in keyof IconVariant]?: ConditionalValue<IconVariant[key]> | undefined
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface IconRecipe {
|
|
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
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export declare const icon: IconRecipe
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
"2xs",
|
|
11
|
+
"xs",
|
|
12
|
+
"sm",
|
|
13
|
+
"md",
|
|
14
|
+
"lg",
|
|
15
|
+
"xl",
|
|
16
|
+
"2xl"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const iconVariantKeys = Object.keys(iconVariantMap)
|
|
21
|
+
|
|
22
|
+
export const icon = /* @__PURE__ */ Object.assign(memo(iconFn.recipeFn), {
|
|
23
|
+
__recipe__: true,
|
|
24
|
+
__name__: 'icon',
|
|
25
|
+
__getCompoundVariantCss__: iconFn.__getCompoundVariantCss__,
|
|
26
|
+
raw: (props) => props,
|
|
27
|
+
variantKeys: iconVariantKeys,
|
|
28
|
+
variantMap: iconVariantMap,
|
|
29
|
+
merge(recipe) {
|
|
30
|
+
return mergeRecipes(this, recipe)
|
|
31
|
+
},
|
|
32
|
+
splitVariantProps(props) {
|
|
33
|
+
return splitProps(props, iconVariantKeys)
|
|
34
|
+
},
|
|
35
|
+
getVariantProps: iconFn.getVariantProps,
|
|
36
|
+
})
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
export * from './absolute-center';
|
|
3
|
+
export * from './badge';
|
|
4
|
+
export * from './button';
|
|
5
|
+
export * from './checkmark';
|
|
6
|
+
export * from './form';
|
|
7
|
+
export * from './group';
|
|
8
|
+
export * from './heading';
|
|
9
|
+
export * from './icon';
|
|
10
|
+
export * from './input';
|
|
11
|
+
export * from './input-addon';
|
|
12
|
+
export * from './mark';
|
|
13
|
+
export * from './kbd';
|
|
14
|
+
export * from './link';
|
|
15
|
+
export * from './skeleton';
|
|
16
|
+
export * from './spinner';
|
|
17
|
+
export * from './text';
|
|
18
|
+
export * from './textarea';
|
|
19
|
+
export * from './action-bar';
|
|
20
|
+
export * from './avatar';
|
|
21
|
+
export * from './breadcrumb';
|
|
22
|
+
export * from './card';
|
|
23
|
+
export * from './carousel';
|
|
24
|
+
export * from './checkbox';
|
|
25
|
+
export * from './clipboard';
|
|
26
|
+
export * from './collapsible';
|
|
27
|
+
export * from './combobox';
|
|
28
|
+
export * from './data-list';
|
|
29
|
+
export * from './date-picker';
|
|
30
|
+
export * from './dialog';
|
|
31
|
+
export * from './drawer';
|
|
32
|
+
export * from './drilldown-menu';
|
|
33
|
+
export * from './field';
|
|
34
|
+
export * from './fieldset';
|
|
35
|
+
export * from './floating-panel';
|
|
36
|
+
export * from './input-group';
|
|
37
|
+
export * from './menu';
|
|
38
|
+
export * from './number-input';
|
|
39
|
+
export * from './pagination';
|
|
40
|
+
export * from './popover';
|
|
41
|
+
export * from './progress';
|
|
42
|
+
export * from './progress-circle';
|
|
43
|
+
export * from './radio-card-group';
|
|
44
|
+
export * from './radio-group';
|
|
45
|
+
export * from './scroll-area';
|
|
46
|
+
export * from './segment-group';
|
|
47
|
+
export * from './select';
|
|
48
|
+
export * from './slider';
|
|
49
|
+
export * from './stat';
|
|
50
|
+
export * from './steps';
|
|
51
|
+
export * from './switch-recipe';
|
|
52
|
+
export * from './table';
|
|
53
|
+
export * from './tabs';
|
|
54
|
+
export * from './tags-input';
|
|
55
|
+
export * from './toast';
|
|
56
|
+
export * from './toggle-group';
|
|
57
|
+
export * from './tooltip';
|
|
58
|
+
export * from './tree-view';
|