@stokelp/styled-system 2.48.2 → 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 +1 -0
- package/recipes/checkbox-group.d.ts +28 -0
- package/recipes/checkbox-group.mjs +24 -0
- package/recipes/index.d.ts +1 -0
- package/recipes/index.mjs +1 -0
package/package.json
CHANGED
package/panda.buildinfo.json
CHANGED
|
@@ -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/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';
|