@stokelp/styled-system 1.4.6 → 1.5.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/package.json +1 -1
- package/panda.buildinfo.json +7 -2
- package/recipes/index.d.ts +3 -0
- package/recipes/index.mjs +3 -0
- package/recipes/input-addon.d.ts +28 -0
- package/recipes/input-addon.mjs +24 -0
- package/recipes/input-group.d.ts +28 -0
- package/recipes/input-group.mjs +24 -0
- package/recipes/input.d.ts +28 -0
- package/recipes/input.mjs +30 -0
package/package.json
CHANGED
package/panda.buildinfo.json
CHANGED
|
@@ -70,11 +70,16 @@
|
|
|
70
70
|
"drawer": [
|
|
71
71
|
"variant]___[value:right]___[recipe:drawer"
|
|
72
72
|
],
|
|
73
|
+
"inputGroup": [],
|
|
74
|
+
"inputAddon": [],
|
|
75
|
+
"input": [
|
|
76
|
+
"size]___[value:md]___[recipe:input"
|
|
77
|
+
],
|
|
73
78
|
"tabs": [
|
|
74
79
|
"variant]___[value:line]___[recipe:tabs"
|
|
75
80
|
],
|
|
76
|
-
"
|
|
77
|
-
"
|
|
81
|
+
"formHelperText": [],
|
|
82
|
+
"textarea": []
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
85
|
}
|
package/recipes/index.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ export * from './text';
|
|
|
6
6
|
export * from './textarea';
|
|
7
7
|
export * from './form-control';
|
|
8
8
|
export * from './form-helper-text';
|
|
9
|
+
export * from './input';
|
|
10
|
+
export * from './input-addon';
|
|
11
|
+
export * from './input-group';
|
|
9
12
|
export * from './drawer';
|
|
10
13
|
export * from './accordion';
|
|
11
14
|
export * from './form-label';
|
package/recipes/index.mjs
CHANGED
|
@@ -5,6 +5,9 @@ export * from './text.mjs';
|
|
|
5
5
|
export * from './textarea.mjs';
|
|
6
6
|
export * from './form-control.mjs';
|
|
7
7
|
export * from './form-helper-text.mjs';
|
|
8
|
+
export * from './input.mjs';
|
|
9
|
+
export * from './input-addon.mjs';
|
|
10
|
+
export * from './input-group.mjs';
|
|
8
11
|
export * from './drawer.mjs';
|
|
9
12
|
export * from './accordion.mjs';
|
|
10
13
|
export * from './form-label.mjs';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface InputAddonVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type InputAddonVariantMap = {
|
|
10
|
+
[key in keyof InputAddonVariant]: Array<InputAddonVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type InputAddonVariantProps = {
|
|
14
|
+
[key in keyof InputAddonVariant]?: ConditionalValue<InputAddonVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface InputAddonRecipe {
|
|
18
|
+
__type: InputAddonVariantProps
|
|
19
|
+
(props?: InputAddonVariantProps): string
|
|
20
|
+
raw: (props?: InputAddonVariantProps) => InputAddonVariantProps
|
|
21
|
+
variantMap: InputAddonVariantMap
|
|
22
|
+
variantKeys: Array<keyof InputAddonVariant>
|
|
23
|
+
splitVariantProps<Props extends InputAddonVariantProps>(props: Props): [InputAddonVariantProps, Pretty<DistributiveOmit<Props, keyof InputAddonVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: InputAddonVariantProps) => InputAddonVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** The styles for the InputAddon component */
|
|
28
|
+
export declare const inputAddon: InputAddonRecipe
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface InputGroupVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type InputGroupVariantMap = {
|
|
10
|
+
[key in keyof InputGroupVariant]: Array<InputGroupVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type InputGroupVariantProps = {
|
|
14
|
+
[key in keyof InputGroupVariant]?: ConditionalValue<InputGroupVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface InputGroupRecipe {
|
|
18
|
+
__type: InputGroupVariantProps
|
|
19
|
+
(props?: InputGroupVariantProps): string
|
|
20
|
+
raw: (props?: InputGroupVariantProps) => InputGroupVariantProps
|
|
21
|
+
variantMap: InputGroupVariantMap
|
|
22
|
+
variantKeys: Array<keyof InputGroupVariant>
|
|
23
|
+
splitVariantProps<Props extends InputGroupVariantProps>(props: Props): [InputGroupVariantProps, Pretty<DistributiveOmit<Props, keyof InputGroupVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: InputGroupVariantProps) => InputGroupVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** The styles for the InputGroup component */
|
|
28
|
+
export declare const inputGroup: InputGroupRecipe
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface InputVariant {
|
|
6
|
+
size: "md"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type InputVariantMap = {
|
|
10
|
+
[key in keyof InputVariant]: Array<InputVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type InputVariantProps = {
|
|
14
|
+
[key in keyof InputVariant]?: ConditionalValue<InputVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface InputRecipe {
|
|
18
|
+
__type: InputVariantProps
|
|
19
|
+
(props?: InputVariantProps): string
|
|
20
|
+
raw: (props?: InputVariantProps) => InputVariantProps
|
|
21
|
+
variantMap: InputVariantMap
|
|
22
|
+
variantKeys: Array<keyof InputVariant>
|
|
23
|
+
splitVariantProps<Props extends InputVariantProps>(props: Props): [InputVariantProps, Pretty<DistributiveOmit<Props, keyof InputVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: InputVariantProps) => InputVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** The styles for the Input component */
|
|
28
|
+
export declare const input: InputRecipe
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
})
|