@mekari/pixel3-styled-system 0.0.1-alpha.0 → 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/CHANGELOG.md +8 -0
- package/helpers.mjs +5 -5
- package/jsx/factory.mjs +2 -2
- package/jsx/index.d.ts +0 -3
- package/package.json +1 -1
- package/recipes/divider-recipe.d.ts +27 -0
- package/recipes/divider-recipe.mjs +29 -0
- package/recipes/form-control-slot-recipe.d.ts +27 -0
- package/recipes/form-control-slot-recipe.mjs +46 -0
- package/recipes/index.d.ts +4 -1
- package/recipes/index.mjs +4 -1
- package/recipes/input-tag-recipe.d.ts +27 -0
- package/recipes/input-tag-recipe.mjs +38 -0
- package/recipes/input-tag-slot-recipe.d.ts +27 -0
- package/recipes/input-tag-slot-recipe.mjs +70 -0
- package/tokens/index.css +1 -0
- package/tokens/index.mjs +4 -0
- package/tokens/tokens.d.ts +2 -2
- package/types/conditions.d.ts +1 -1
- package/types/csstype.d.ts +1270 -721
- package/types/prop-type.d.ts +15 -5
- package/types/recipe.d.ts +9 -0
- package/types/static-css.d.ts +39 -0
package/CHANGELOG.md
CHANGED
package/helpers.mjs
CHANGED
|
@@ -15,7 +15,7 @@ function filterBaseConditions(c) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
// src/css-important.ts
|
|
18
|
-
var importantRegex = /!(important)
|
|
18
|
+
var importantRegex = /!(important)?/;
|
|
19
19
|
function isImportant(value) {
|
|
20
20
|
return typeof value === "string" ? importantRegex.test(value) : false;
|
|
21
21
|
}
|
|
@@ -89,6 +89,8 @@ function walkObject(target, predicate, options = {}) {
|
|
|
89
89
|
return inner(target);
|
|
90
90
|
}
|
|
91
91
|
function mapObject(obj, fn) {
|
|
92
|
+
if (Array.isArray(obj))
|
|
93
|
+
return obj.map((value) => fn(value));
|
|
92
94
|
if (!isObject(obj))
|
|
93
95
|
return fn(obj);
|
|
94
96
|
return walkObject(obj, (value) => fn(value));
|
|
@@ -112,7 +114,7 @@ function normalizeShorthand(styles, context) {
|
|
|
112
114
|
}
|
|
113
115
|
});
|
|
114
116
|
}
|
|
115
|
-
function normalizeStyleObject(styles, context) {
|
|
117
|
+
function normalizeStyleObject(styles, context, shorthand = true) {
|
|
116
118
|
const { utility, conditions } = context;
|
|
117
119
|
const { hasShorthand, resolveShorthand } = utility;
|
|
118
120
|
return walkObject(
|
|
@@ -122,9 +124,7 @@ function normalizeStyleObject(styles, context) {
|
|
|
122
124
|
},
|
|
123
125
|
{
|
|
124
126
|
stop: (value) => Array.isArray(value),
|
|
125
|
-
getKey: (prop) =>
|
|
126
|
-
return hasShorthand ? resolveShorthand(prop) : prop;
|
|
127
|
-
}
|
|
127
|
+
getKey: shorthand ? (prop) => hasShorthand ? resolveShorthand(prop) : prop : void 0
|
|
128
128
|
}
|
|
129
129
|
);
|
|
130
130
|
}
|
package/jsx/factory.mjs
CHANGED
|
@@ -35,14 +35,14 @@ function styledFn(Dynamic, configOrCva = {}, options = {}) {
|
|
|
35
35
|
const [_htmlProps, _forwardedProps, variantProps, styleProps, _elementProps] = splittedProps.value
|
|
36
36
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
37
37
|
const compoundVariantStyles = __cvaFn__.__getCompoundVariantCss__?.(variantProps);
|
|
38
|
-
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.value.className)
|
|
38
|
+
return cx(__cvaFn__(variantProps, false), css(compoundVariantStyles, propStyles, cssStyles), combinedProps.value.className, combinedProps.value.class)
|
|
39
39
|
})
|
|
40
40
|
|
|
41
41
|
const cvaClass = computed(() => {
|
|
42
42
|
const [_htmlProps, _forwardedProps, variantProps, styleProps, _elementProps] = splittedProps.value
|
|
43
43
|
const { css: cssStyles, ...propStyles } = styleProps
|
|
44
44
|
const cvaStyles = __cvaFn__.raw(variantProps)
|
|
45
|
-
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.value.className)
|
|
45
|
+
return cx(css(cvaStyles, propStyles, cssStyles), combinedProps.value.className, combinedProps.value.class)
|
|
46
46
|
})
|
|
47
47
|
|
|
48
48
|
const classes = configOrCva.__recipe__ ? recipeClass : cvaClass
|
package/jsx/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
export * from './factory';
|
|
3
|
-
|
|
4
3
|
export * from './is-valid-prop';
|
|
5
|
-
|
|
6
4
|
export * from './box';
|
|
7
5
|
export * from './flex';
|
|
8
6
|
export * from './stack';
|
|
@@ -23,5 +21,4 @@ export * from './divider';
|
|
|
23
21
|
export * from './float';
|
|
24
22
|
export * from './bleed';
|
|
25
23
|
export * from './visually-hidden';
|
|
26
|
-
|
|
27
24
|
export type { HTMLStyledProps, StyledComponent } from '../types/jsx';
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface DividerRecipeVariant {
|
|
6
|
+
orientation: "horizontal" | "vertical"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type DividerRecipeVariantMap = {
|
|
10
|
+
[key in keyof DividerRecipeVariant]: Array<DividerRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type DividerRecipeVariantProps = {
|
|
14
|
+
[key in keyof DividerRecipeVariant]?: ConditionalValue<DividerRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DividerRecipeRecipe {
|
|
18
|
+
__type: DividerRecipeVariantProps
|
|
19
|
+
(props?: DividerRecipeVariantProps): string
|
|
20
|
+
raw: (props?: DividerRecipeVariantProps) => DividerRecipeVariantProps
|
|
21
|
+
variantMap: DividerRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof DividerRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends DividerRecipeVariantProps>(props: Props): [DividerRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof DividerRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const dividerRecipe: DividerRecipeRecipe
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const dividerRecipeFn = /* @__PURE__ */ createRecipe('divider', {
|
|
5
|
+
"orientation": "horizontal"
|
|
6
|
+
}, [])
|
|
7
|
+
|
|
8
|
+
const dividerRecipeVariantMap = {
|
|
9
|
+
"orientation": [
|
|
10
|
+
"horizontal",
|
|
11
|
+
"vertical"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const dividerRecipeVariantKeys = Object.keys(dividerRecipeVariantMap)
|
|
16
|
+
|
|
17
|
+
export const dividerRecipe = /* @__PURE__ */ Object.assign(dividerRecipeFn, {
|
|
18
|
+
__recipe__: true,
|
|
19
|
+
__name__: 'dividerRecipe',
|
|
20
|
+
raw: (props) => props,
|
|
21
|
+
variantKeys: dividerRecipeVariantKeys,
|
|
22
|
+
variantMap: dividerRecipeVariantMap,
|
|
23
|
+
merge(recipe) {
|
|
24
|
+
return mergeRecipes(this, recipe)
|
|
25
|
+
},
|
|
26
|
+
splitVariantProps(props) {
|
|
27
|
+
return splitProps(props, dividerRecipeVariantKeys)
|
|
28
|
+
},
|
|
29
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface FormControlSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type FormControlSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof FormControlSlotRecipeVariant]: Array<FormControlSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type FormControlSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof FormControlSlotRecipeVariant]?: ConditionalValue<FormControlSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface FormControlSlotRecipeRecipe {
|
|
18
|
+
__type: FormControlSlotRecipeVariantProps
|
|
19
|
+
(props?: FormControlSlotRecipeVariantProps): Pretty<Record<"root" | "label" | "required" | "helpText" | "errorMessage", string>>
|
|
20
|
+
raw: (props?: FormControlSlotRecipeVariantProps) => FormControlSlotRecipeVariantProps
|
|
21
|
+
variantMap: FormControlSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof FormControlSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends FormControlSlotRecipeVariantProps>(props: Props): [FormControlSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof FormControlSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const formControlSlotRecipe: FormControlSlotRecipeRecipe
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const formControlSlotRecipeDefaultVariants = {}
|
|
5
|
+
const formControlSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const formControlSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"form-control__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"label",
|
|
14
|
+
"form-control__label"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"required",
|
|
18
|
+
"form-control__required"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"helpText",
|
|
22
|
+
"form-control__helpText"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"errorMessage",
|
|
26
|
+
"form-control__errorMessage"
|
|
27
|
+
]
|
|
28
|
+
]
|
|
29
|
+
const formControlSlotRecipeSlotFns = /* @__PURE__ */ formControlSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, formControlSlotRecipeDefaultVariants, getSlotCompoundVariant(formControlSlotRecipeCompoundVariants, slotName))])
|
|
30
|
+
|
|
31
|
+
const formControlSlotRecipeFn = (props = {}) => {
|
|
32
|
+
return Object.fromEntries(formControlSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const formControlSlotRecipeVariantKeys = []
|
|
36
|
+
|
|
37
|
+
export const formControlSlotRecipe = /* @__PURE__ */ Object.assign(formControlSlotRecipeFn, {
|
|
38
|
+
__recipe__: false,
|
|
39
|
+
__name__: 'formControlSlotRecipe',
|
|
40
|
+
raw: (props) => props,
|
|
41
|
+
variantKeys: formControlSlotRecipeVariantKeys,
|
|
42
|
+
variantMap: {},
|
|
43
|
+
splitVariantProps(props) {
|
|
44
|
+
return splitProps(props, formControlSlotRecipeVariantKeys)
|
|
45
|
+
},
|
|
46
|
+
})
|
package/recipes/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './tab-recipe';
|
|
|
15
15
|
export * from './selected-border-recipe';
|
|
16
16
|
export * from './table-recipe';
|
|
17
17
|
export * from './table-container-recipe';
|
|
18
|
+
export * from './divider-recipe';
|
|
18
19
|
export * from './accordion';
|
|
19
20
|
export * from './checkbox-slot-recipe';
|
|
20
21
|
export * from './radio-slot-recipe';
|
|
@@ -27,4 +28,6 @@ export * from './input-group-slot-recipe';
|
|
|
27
28
|
export * from './input-addon-slot-recipe';
|
|
28
29
|
export * from './avatar-slot-recipe';
|
|
29
30
|
export * from './avatar-group-slot-recipe';
|
|
30
|
-
export * from './select-slot-recipe';
|
|
31
|
+
export * from './select-slot-recipe';
|
|
32
|
+
export * from './form-control-slot-recipe';
|
|
33
|
+
export * from './input-tag-slot-recipe';
|
package/recipes/index.mjs
CHANGED
|
@@ -14,6 +14,7 @@ export * from './tab-recipe.mjs';
|
|
|
14
14
|
export * from './selected-border-recipe.mjs';
|
|
15
15
|
export * from './table-recipe.mjs';
|
|
16
16
|
export * from './table-container-recipe.mjs';
|
|
17
|
+
export * from './divider-recipe.mjs';
|
|
17
18
|
export * from './accordion.mjs';
|
|
18
19
|
export * from './checkbox-slot-recipe.mjs';
|
|
19
20
|
export * from './radio-slot-recipe.mjs';
|
|
@@ -26,4 +27,6 @@ export * from './input-group-slot-recipe.mjs';
|
|
|
26
27
|
export * from './input-addon-slot-recipe.mjs';
|
|
27
28
|
export * from './avatar-slot-recipe.mjs';
|
|
28
29
|
export * from './avatar-group-slot-recipe.mjs';
|
|
29
|
-
export * from './select-slot-recipe.mjs';
|
|
30
|
+
export * from './select-slot-recipe.mjs';
|
|
31
|
+
export * from './form-control-slot-recipe.mjs';
|
|
32
|
+
export * from './input-tag-slot-recipe.mjs';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface InputTagRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type InputTagRecipeVariantMap = {
|
|
10
|
+
[key in keyof InputTagRecipeVariant]: Array<InputTagRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type InputTagRecipeVariantProps = {
|
|
14
|
+
[key in keyof InputTagRecipeVariant]?: ConditionalValue<InputTagRecipeVariant[key]>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface InputTagRecipeRecipe {
|
|
18
|
+
__type: InputTagRecipeVariantProps
|
|
19
|
+
(props?: InputTagRecipeVariantProps): Pretty<Record<"root" | "trigger" | "content", string>>
|
|
20
|
+
raw: (props?: InputTagRecipeVariantProps) => InputTagRecipeVariantProps
|
|
21
|
+
variantMap: InputTagRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof InputTagRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends InputTagRecipeVariantProps>(props: Props): [InputTagRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputTagRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const inputTagRecipe: InputTagRecipeRecipe
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const inputTagRecipeDefaultVariants = {}
|
|
5
|
+
const inputTagRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const inputTagRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"input-tag__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"trigger",
|
|
14
|
+
"input-tag__trigger"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"content",
|
|
18
|
+
"input-tag__content"
|
|
19
|
+
]
|
|
20
|
+
]
|
|
21
|
+
const inputTagRecipeSlotFns = /* @__PURE__ */ inputTagRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputTagRecipeDefaultVariants, getSlotCompoundVariant(inputTagRecipeCompoundVariants, slotName))])
|
|
22
|
+
|
|
23
|
+
const inputTagRecipeFn = (props = {}) => {
|
|
24
|
+
return Object.fromEntries(inputTagRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const inputTagRecipeVariantKeys = []
|
|
28
|
+
|
|
29
|
+
export const inputTagRecipe = /* @__PURE__ */ Object.assign(inputTagRecipeFn, {
|
|
30
|
+
__recipe__: false,
|
|
31
|
+
__name__: 'inputTagRecipe',
|
|
32
|
+
raw: (props) => props,
|
|
33
|
+
variantKeys: inputTagRecipeVariantKeys,
|
|
34
|
+
variantMap: {},
|
|
35
|
+
splitVariantProps(props) {
|
|
36
|
+
return splitProps(props, inputTagRecipeVariantKeys)
|
|
37
|
+
},
|
|
38
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface InputTagSlotRecipeVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type InputTagSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof InputTagSlotRecipeVariant]: Array<InputTagSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type InputTagSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof InputTagSlotRecipeVariant]?: ConditionalValue<InputTagSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface InputTagSlotRecipeRecipe {
|
|
18
|
+
__type: InputTagSlotRecipeVariantProps
|
|
19
|
+
(props?: InputTagSlotRecipeVariantProps): Pretty<Record<"root" | "trigger" | "input" | "content" | "resetButton" | "dropdownButton" | "addButton" | "loading" | "empty" | "suggestionWrapper" | "suggestionLoading", string>>
|
|
20
|
+
raw: (props?: InputTagSlotRecipeVariantProps) => InputTagSlotRecipeVariantProps
|
|
21
|
+
variantMap: InputTagSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof InputTagSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends InputTagSlotRecipeVariantProps>(props: Props): [InputTagSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputTagSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const inputTagSlotRecipe: InputTagSlotRecipeRecipe
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const inputTagSlotRecipeDefaultVariants = {}
|
|
5
|
+
const inputTagSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const inputTagSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"input-tag__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"trigger",
|
|
14
|
+
"input-tag__trigger"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"input",
|
|
18
|
+
"input-tag__input"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"content",
|
|
22
|
+
"input-tag__content"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"resetButton",
|
|
26
|
+
"input-tag__resetButton"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"dropdownButton",
|
|
30
|
+
"input-tag__dropdownButton"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"addButton",
|
|
34
|
+
"input-tag__addButton"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"loading",
|
|
38
|
+
"input-tag__loading"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"empty",
|
|
42
|
+
"input-tag__empty"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"suggestionWrapper",
|
|
46
|
+
"input-tag__suggestionWrapper"
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"suggestionLoading",
|
|
50
|
+
"input-tag__suggestionLoading"
|
|
51
|
+
]
|
|
52
|
+
]
|
|
53
|
+
const inputTagSlotRecipeSlotFns = /* @__PURE__ */ inputTagSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputTagSlotRecipeDefaultVariants, getSlotCompoundVariant(inputTagSlotRecipeCompoundVariants, slotName))])
|
|
54
|
+
|
|
55
|
+
const inputTagSlotRecipeFn = (props = {}) => {
|
|
56
|
+
return Object.fromEntries(inputTagSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const inputTagSlotRecipeVariantKeys = []
|
|
60
|
+
|
|
61
|
+
export const inputTagSlotRecipe = /* @__PURE__ */ Object.assign(inputTagSlotRecipeFn, {
|
|
62
|
+
__recipe__: false,
|
|
63
|
+
__name__: 'inputTagSlotRecipe',
|
|
64
|
+
raw: (props) => props,
|
|
65
|
+
variantKeys: inputTagSlotRecipeVariantKeys,
|
|
66
|
+
variantMap: {},
|
|
67
|
+
splitVariantProps(props) {
|
|
68
|
+
return splitProps(props, inputTagSlotRecipeVariantKeys)
|
|
69
|
+
},
|
|
70
|
+
})
|
package/tokens/index.css
CHANGED
package/tokens/index.mjs
CHANGED
package/tokens/tokens.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
export type Token = "borders.none" | "borders.sm" | "borders.md" | "borders.lg" | "colors.currentcolor" | "colors.dark" | "colors.white" | "colors.background" | "colors.overlay" | "colors.brand.capital" | "colors.brand.esign" | "colors.brand.expense" | "colors.brand.flex" | "colors.brand.jurnal" | "colors.brand.klikpajak" | "colors.brand.mekari" | "colors.brand.qontak" | "colors.brand.talenta" | "colors.brand.university" | "colors.gray.25" | "colors.gray.50" | "colors.gray.100" | "colors.gray.400" | "colors.gray.600" | "colors.blue.50" | "colors.blue.100" | "colors.blue.400" | "colors.blue.500" | "colors.blue.700" | "colors.red.50" | "colors.red.400" | "colors.red.500" | "colors.red.700" | "colors.green.50" | "colors.green.400" | "colors.green.500" | "colors.green.700" | "colors.orange.50" | "colors.orange.400" | "colors.orange.500" | "colors.orange.700" | "colors.sky.100" | "colors.sky.400" | "colors.teal.100" | "colors.teal.400" | "colors.violet.100" | "colors.violet.400" | "colors.amber.100" | "colors.amber.400" | "colors.rose.100" | "colors.rose.400" | "colors.stone.100" | "colors.stone.400" | "colors.lime.100" | "colors.lime.400" | "colors.pink.100" | "colors.pink.400" | "colors.apricot.100" | "colors.apricot.400" | "colors.aqua.100" | "colors.aqua.400" | "colors.leaf.100" | "colors.leaf.400" | "colors.fuchsia.100" | "colors.fuchsia.400" | "colors.ice.50" | "colors.ice.100" | "colors.ash.100" | "durations.slow" | "durations.normal" | "durations.fast" | "fonts.body" | "fonts.mono" | "fontSizes.xs" | "fontSizes.sm" | "fontSizes.md" | "fontSizes.lg" | "fontSizes.xl" | "fontSizes.2xl" | "fontWeights.regular" | "fontWeights.semiBold" | "fontWeights.bold" | "lineHeights.xs" | "lineHeights.sm" | "lineHeights.md" | "lineHeights.lg" | "lineHeights.xl" | "lineHeights.2xl" | "lineHeights.3xl" | "letterSpacings.tighter" | "letterSpacings.tight" | "letterSpacings.normal" | "letterSpacings.wide" | "letterSpacings.wider" | "letterSpacings.widest" | "opacity.0" | "opacity.40" | "opacity.60" | "opacity.100" | "radii.none" | "radii.xs" | "radii.sm" | "radii.md" | "radii.lg" | "radii.xl" | "radii.full" | "shadows.xs" | "shadows.sm" | "shadows.md" | "shadows.lg" | "shadows.focus" | "shadows.xl" | "shadows.2xl" | "shadows.outline" | "shadows.outline-tab" | "shadows.outer" | "shadows.inner" | "shadows.none" | "sizes.0" | "sizes.1" | "sizes.2" | "sizes.3" | "sizes.4" | "sizes.5" | "sizes.6" | "sizes.7" | "sizes.8" | "sizes.9" | "sizes.10" | "sizes.11" | "sizes.12" | "sizes.16" | "sizes.20" | "sizes.22" | "sizes.65" | "sizes.0.25" | "sizes.0.5" | "sizes.2.5" | "sizes.7.5" | "sizes.9.5" | "sizes.full" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "spacing.0" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.5" | "spacing.6" | "spacing.8" | "spacing.12" | "spacing.16" | "spacing.20" | "spacing.24" | "spacing.32" | "spacing.40" | "spacing.64" | "spacing.0.5" | "spacing.1.5" | "zIndex.hide" | "zIndex.base" | "zIndex.docked" | "zIndex.sticky" | "zIndex.overlay" | "zIndex.modal" | "zIndex.popover" | "zIndex.tooltip" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "spacing.-0" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-5" | "spacing.-6" | "spacing.-8" | "spacing.-12" | "spacing.-16" | "spacing.-20" | "spacing.-24" | "spacing.-32" | "spacing.-40" | "spacing.-64" | "spacing.-0.5" | "spacing.-1.5" | "colors.colorPalette" | "colors.colorPalette.capital" | "colors.colorPalette.esign" | "colors.colorPalette.expense" | "colors.colorPalette.flex" | "colors.colorPalette.jurnal" | "colors.colorPalette.klikpajak" | "colors.colorPalette.mekari" | "colors.colorPalette.qontak" | "colors.colorPalette.talenta" | "colors.colorPalette.university" | "colors.colorPalette.25" | "colors.colorPalette.50" | "colors.colorPalette.100" | "colors.colorPalette.400" | "colors.colorPalette.600" | "colors.colorPalette.500" | "colors.colorPalette.700"
|
|
2
|
+
export type Token = "borders.none" | "borders.sm" | "borders.md" | "borders.lg" | "colors.currentcolor" | "colors.dark" | "colors.white" | "colors.background" | "colors.overlay" | "colors.brand.capital" | "colors.brand.esign" | "colors.brand.expense" | "colors.brand.flex" | "colors.brand.jurnal" | "colors.brand.klikpajak" | "colors.brand.mekari" | "colors.brand.qontak" | "colors.brand.talenta" | "colors.brand.university" | "colors.gray.25" | "colors.gray.50" | "colors.gray.100" | "colors.gray.400" | "colors.gray.600" | "colors.blue.50" | "colors.blue.100" | "colors.blue.400" | "colors.blue.500" | "colors.blue.700" | "colors.red.50" | "colors.red.400" | "colors.red.500" | "colors.red.700" | "colors.green.50" | "colors.green.400" | "colors.green.500" | "colors.green.700" | "colors.orange.50" | "colors.orange.400" | "colors.orange.500" | "colors.orange.700" | "colors.sky.100" | "colors.sky.400" | "colors.teal.100" | "colors.teal.400" | "colors.violet.100" | "colors.violet.400" | "colors.amber.100" | "colors.amber.400" | "colors.rose.100" | "colors.rose.400" | "colors.stone.100" | "colors.stone.400" | "colors.lime.100" | "colors.lime.400" | "colors.pink.100" | "colors.pink.400" | "colors.apricot.100" | "colors.apricot.400" | "colors.aqua.100" | "colors.aqua.400" | "colors.leaf.100" | "colors.leaf.400" | "colors.fuchsia.100" | "colors.fuchsia.400" | "colors.ice.50" | "colors.ice.100" | "colors.ash.100" | "durations.slow" | "durations.normal" | "durations.fast" | "fonts.body" | "fonts.mono" | "fontSizes.xs" | "fontSizes.sm" | "fontSizes.md" | "fontSizes.lg" | "fontSizes.xl" | "fontSizes.2xl" | "fontWeights.regular" | "fontWeights.semiBold" | "fontWeights.bold" | "lineHeights.xs" | "lineHeights.sm" | "lineHeights.md" | "lineHeights.lg" | "lineHeights.xl" | "lineHeights.2xl" | "lineHeights.3xl" | "letterSpacings.tighter" | "letterSpacings.tight" | "letterSpacings.normal" | "letterSpacings.wide" | "letterSpacings.wider" | "letterSpacings.widest" | "opacity.0" | "opacity.40" | "opacity.60" | "opacity.100" | "radii.none" | "radii.xs" | "radii.sm" | "radii.md" | "radii.lg" | "radii.xl" | "radii.full" | "shadows.xs" | "shadows.sm" | "shadows.md" | "shadows.lg" | "shadows.focus" | "shadows.xl" | "shadows.2xl" | "shadows.outline" | "shadows.outline-tab" | "shadows.outer" | "shadows.inner" | "shadows.none" | "sizes.0" | "sizes.1" | "sizes.2" | "sizes.3" | "sizes.4" | "sizes.5" | "sizes.6" | "sizes.7" | "sizes.8" | "sizes.9" | "sizes.10" | "sizes.11" | "sizes.12" | "sizes.16" | "sizes.20" | "sizes.22" | "sizes.56" | "sizes.65" | "sizes.0.25" | "sizes.0.5" | "sizes.2.5" | "sizes.7.5" | "sizes.9.5" | "sizes.full" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "spacing.0" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.5" | "spacing.6" | "spacing.8" | "spacing.12" | "spacing.16" | "spacing.20" | "spacing.24" | "spacing.32" | "spacing.40" | "spacing.64" | "spacing.0.5" | "spacing.1.5" | "zIndex.hide" | "zIndex.base" | "zIndex.docked" | "zIndex.sticky" | "zIndex.overlay" | "zIndex.modal" | "zIndex.popover" | "zIndex.tooltip" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "spacing.-0" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-5" | "spacing.-6" | "spacing.-8" | "spacing.-12" | "spacing.-16" | "spacing.-20" | "spacing.-24" | "spacing.-32" | "spacing.-40" | "spacing.-64" | "spacing.-0.5" | "spacing.-1.5" | "colors.colorPalette" | "colors.colorPalette.capital" | "colors.colorPalette.esign" | "colors.colorPalette.expense" | "colors.colorPalette.flex" | "colors.colorPalette.jurnal" | "colors.colorPalette.klikpajak" | "colors.colorPalette.mekari" | "colors.colorPalette.qontak" | "colors.colorPalette.talenta" | "colors.colorPalette.university" | "colors.colorPalette.25" | "colors.colorPalette.50" | "colors.colorPalette.100" | "colors.colorPalette.400" | "colors.colorPalette.600" | "colors.colorPalette.500" | "colors.colorPalette.700"
|
|
3
3
|
|
|
4
4
|
export type ColorPalette = "currentcolor" | "dark" | "white" | "background" | "overlay" | "brand" | "gray" | "blue" | "red" | "green" | "orange" | "sky" | "teal" | "violet" | "amber" | "rose" | "stone" | "lime" | "pink" | "apricot" | "aqua" | "leaf" | "fuchsia" | "ice" | "ash"
|
|
5
5
|
|
|
@@ -25,7 +25,7 @@ export type RadiusToken = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full"
|
|
|
25
25
|
|
|
26
26
|
export type ShadowToken = "xs" | "sm" | "md" | "lg" | "focus" | "xl" | "2xl" | "outline" | "outline-tab" | "outer" | "inner" | "none"
|
|
27
27
|
|
|
28
|
-
export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "16" | "20" | "22" | "65" | "0.25" | "0.5" | "2.5" | "7.5" | "9.5" | "full" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl"
|
|
28
|
+
export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "16" | "20" | "22" | "56" | "65" | "0.25" | "0.5" | "2.5" | "7.5" | "9.5" | "full" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl"
|
|
29
29
|
|
|
30
30
|
export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "20" | "24" | "32" | "40" | "64" | "0.5" | "1.5" | "-0" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-8" | "-12" | "-16" | "-20" | "-24" | "-32" | "-40" | "-64" | "-0.5" | "-1.5"
|
|
31
31
|
|
package/types/conditions.d.ts
CHANGED
|
@@ -182,7 +182,7 @@ export interface Conditions {
|
|
|
182
182
|
"_hidden": string
|
|
183
183
|
/** `&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])` */
|
|
184
184
|
"_collapsed": string
|
|
185
|
-
/** `&[data-
|
|
185
|
+
/** `&[data-has-icon=true]` */
|
|
186
186
|
"_hasIcon": string
|
|
187
187
|
/** `&[data-highlight=true], [data-highlight]` */
|
|
188
188
|
"_highlight": string
|