@stokelp/styled-system 2.48.1 → 2.49.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 +4 -2
- package/recipes/button.mjs +4 -3
- package/recipes/checkbox-group.d.ts +28 -0
- package/recipes/checkbox-group.mjs +24 -0
- package/recipes/icon-button.mjs +4 -3
- package/recipes/index.d.ts +1 -0
- package/recipes/index.mjs +1 -0
package/package.json
CHANGED
package/panda.buildinfo.json
CHANGED
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
"background]___[value:error.700]___[cond:_active",
|
|
19
19
|
"background]___[value:error.500]___[cond:_hover",
|
|
20
20
|
"background]___[value:transparent",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"borderColor]___[value:error.500",
|
|
22
|
+
"borderColor]___[value:error.700]___[cond:_active",
|
|
23
|
+
"borderStyle]___[value:solid",
|
|
23
24
|
"color]___[value:error.500]___[cond:_disabled<___>_hover",
|
|
24
25
|
"color]___[value:error.500]___[cond:_disabled<___>_active",
|
|
25
26
|
"color]___[value:error.500]___[cond:_disabled",
|
|
@@ -219,6 +220,7 @@
|
|
|
219
220
|
"colorScheme]___[value:aromatic]___[recipe:chip"
|
|
220
221
|
],
|
|
221
222
|
"breadcrumb": [],
|
|
223
|
+
"checkboxGroup": [],
|
|
222
224
|
"button": [
|
|
223
225
|
"size]___[value:lg]___[recipe:button",
|
|
224
226
|
"variant]___[value:tertiary]___[recipe:button",
|
package/recipes/button.mjs
CHANGED
|
@@ -57,10 +57,11 @@ const buttonFn = /* @__PURE__ */ createRecipe('button', {
|
|
|
57
57
|
"_hover": "error.500",
|
|
58
58
|
"base": "transparent"
|
|
59
59
|
},
|
|
60
|
-
"
|
|
61
|
-
"base": "
|
|
62
|
-
"_active": "
|
|
60
|
+
"borderColor": {
|
|
61
|
+
"base": "error.500",
|
|
62
|
+
"_active": "error.700"
|
|
63
63
|
},
|
|
64
|
+
"borderStyle": "solid",
|
|
64
65
|
"color": {
|
|
65
66
|
"_disabled": {
|
|
66
67
|
"_hover": "error.500",
|
|
@@ -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 CheckboxGroupVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type CheckboxGroupVariantMap = {
|
|
10
|
+
[key in keyof CheckboxGroupVariant]: Array<CheckboxGroupVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type CheckboxGroupVariantProps = {
|
|
14
|
+
[key in keyof CheckboxGroupVariant]?: ConditionalValue<CheckboxGroupVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface CheckboxGroupRecipe {
|
|
18
|
+
__type: CheckboxGroupVariantProps
|
|
19
|
+
(props?: CheckboxGroupVariantProps): string
|
|
20
|
+
raw: (props?: CheckboxGroupVariantProps) => CheckboxGroupVariantProps
|
|
21
|
+
variantMap: CheckboxGroupVariantMap
|
|
22
|
+
variantKeys: Array<keyof CheckboxGroupVariant>
|
|
23
|
+
splitVariantProps<Props extends CheckboxGroupVariantProps>(props: Props): [CheckboxGroupVariantProps, Pretty<DistributiveOmit<Props, keyof CheckboxGroupVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: CheckboxGroupVariantProps) => CheckboxGroupVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const checkboxGroup: CheckboxGroupRecipe
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const checkboxGroupFn = /* @__PURE__ */ createRecipe('checkbox-group', {}, [])
|
|
5
|
+
|
|
6
|
+
const checkboxGroupVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const checkboxGroupVariantKeys = Object.keys(checkboxGroupVariantMap)
|
|
9
|
+
|
|
10
|
+
export const checkboxGroup = /* @__PURE__ */ Object.assign(memo(checkboxGroupFn.recipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'checkboxGroup',
|
|
13
|
+
__getCompoundVariantCss__: checkboxGroupFn.__getCompoundVariantCss__,
|
|
14
|
+
raw: (props) => props,
|
|
15
|
+
variantKeys: checkboxGroupVariantKeys,
|
|
16
|
+
variantMap: checkboxGroupVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
20
|
+
splitVariantProps(props) {
|
|
21
|
+
return splitProps(props, checkboxGroupVariantKeys)
|
|
22
|
+
},
|
|
23
|
+
getVariantProps: checkboxGroupFn.getVariantProps,
|
|
24
|
+
})
|
package/recipes/icon-button.mjs
CHANGED
|
@@ -57,10 +57,11 @@ const iconButtonFn = /* @__PURE__ */ createRecipe('icon-button', {
|
|
|
57
57
|
"_hover": "error.500",
|
|
58
58
|
"base": "transparent"
|
|
59
59
|
},
|
|
60
|
-
"
|
|
61
|
-
"base": "
|
|
62
|
-
"_active": "
|
|
60
|
+
"borderColor": {
|
|
61
|
+
"base": "error.500",
|
|
62
|
+
"_active": "error.700"
|
|
63
63
|
},
|
|
64
|
+
"borderStyle": "solid",
|
|
64
65
|
"color": {
|
|
65
66
|
"_disabled": {
|
|
66
67
|
"_hover": "error.500",
|
package/recipes/index.d.ts
CHANGED
package/recipes/index.mjs
CHANGED
|
@@ -19,6 +19,7 @@ export * from './icon.mjs';
|
|
|
19
19
|
export * from './flag.mjs';
|
|
20
20
|
export * from './avatar-group.mjs';
|
|
21
21
|
export * from './tabs-chip.mjs';
|
|
22
|
+
export * from './checkbox-group.mjs';
|
|
22
23
|
export * from './drawer.mjs';
|
|
23
24
|
export * from './radio-button-group.mjs';
|
|
24
25
|
export * from './radio-group.mjs';
|