@stokelp/styled-system 1.35.0 → 1.36.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/recipes/button-filter.d.ts +32 -0
- package/recipes/button-filter.mjs +24 -0
- package/recipes/index.d.ts +1 -0
- package/recipes/index.mjs +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface ButtonFilterVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type ButtonFilterVariantMap = {
|
|
10
|
+
[key in keyof ButtonFilterVariant]: Array<ButtonFilterVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ButtonFilterVariantProps = {
|
|
14
|
+
[key in keyof ButtonFilterVariant]?: ConditionalValue<ButtonFilterVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ButtonFilterRecipe {
|
|
18
|
+
__type: ButtonFilterVariantProps
|
|
19
|
+
(props?: ButtonFilterVariantProps): string
|
|
20
|
+
raw: (props?: ButtonFilterVariantProps) => ButtonFilterVariantProps
|
|
21
|
+
variantMap: ButtonFilterVariantMap
|
|
22
|
+
variantKeys: Array<keyof ButtonFilterVariant>
|
|
23
|
+
splitVariantProps<Props extends ButtonFilterVariantProps>(props: Props): [ButtonFilterVariantProps, Pretty<DistributiveOmit<Props, keyof ButtonFilterVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ButtonFilterVariantProps) => ButtonFilterVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The styles for the ButtonFilter component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
32
|
+
export declare const buttonFilter: ButtonFilterRecipe
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const buttonFilterFn = /* @__PURE__ */ createRecipe('button-filter', {}, [])
|
|
5
|
+
|
|
6
|
+
const buttonFilterVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const buttonFilterVariantKeys = Object.keys(buttonFilterVariantMap)
|
|
9
|
+
|
|
10
|
+
export const buttonFilter = /* @__PURE__ */ Object.assign(memo(buttonFilterFn.recipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'buttonFilter',
|
|
13
|
+
__getCompoundVariantCss__: buttonFilterFn.__getCompoundVariantCss__,
|
|
14
|
+
raw: (props) => props,
|
|
15
|
+
variantKeys: buttonFilterVariantKeys,
|
|
16
|
+
variantMap: buttonFilterVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
20
|
+
splitVariantProps(props) {
|
|
21
|
+
return splitProps(props, buttonFilterVariantKeys)
|
|
22
|
+
},
|
|
23
|
+
getVariantProps: buttonFilterFn.getVariantProps,
|
|
24
|
+
})
|
package/recipes/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './table-group-title';
|
|
|
14
14
|
export * from './table-empty-row';
|
|
15
15
|
export * from './table-container';
|
|
16
16
|
export * from './illustration';
|
|
17
|
+
export * from './button-filter';
|
|
17
18
|
export * from './drawer';
|
|
18
19
|
export * from './radio-button-group';
|
|
19
20
|
export * from './radio-group';
|
package/recipes/index.mjs
CHANGED
|
@@ -13,6 +13,7 @@ export * from './table-group-title.mjs';
|
|
|
13
13
|
export * from './table-empty-row.mjs';
|
|
14
14
|
export * from './table-container.mjs';
|
|
15
15
|
export * from './illustration.mjs';
|
|
16
|
+
export * from './button-filter.mjs';
|
|
16
17
|
export * from './drawer.mjs';
|
|
17
18
|
export * from './radio-button-group.mjs';
|
|
18
19
|
export * from './radio-group.mjs';
|