@stokelp/styled-system 2.19.0 → 2.20.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokelp/styled-system",
3
- "version": "2.19.0",
3
+ "version": "2.20.1",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -189,7 +189,9 @@
189
189
  ],
190
190
  "pagination": [],
191
191
  "popover": [],
192
- "radioButtonGroup": [],
192
+ "radioButtonGroup": [
193
+ "size]___[value:md]___[recipe:radioButtonGroup"
194
+ ],
193
195
  "radioCardGroup": [
194
196
  "size]___[value:md]___[recipe:radioCardGroup"
195
197
  ],
@@ -3,7 +3,10 @@ import type { ConditionalValue } from '../types/index';
3
3
  import type { DistributiveOmit, Pretty } from '../types/system-types';
4
4
 
5
5
  interface RadioButtonGroupVariant {
6
-
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "sm" | "md"
7
10
  }
8
11
 
9
12
  type RadioButtonGroupVariantMap = {
@@ -1,7 +1,9 @@
1
1
  import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
- const radioButtonGroupDefaultVariants = {}
4
+ const radioButtonGroupDefaultVariants = {
5
+ "size": "md"
6
+ }
5
7
  const radioButtonGroupCompoundVariants = []
6
8
 
7
9
  const radioButtonGroupSlotNames = [
@@ -36,7 +38,9 @@ const radioButtonGroupFn = memo((props = {}) => {
36
38
  return Object.fromEntries(radioButtonGroupSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
37
39
  })
38
40
 
39
- const radioButtonGroupVariantKeys = []
41
+ const radioButtonGroupVariantKeys = [
42
+ "size"
43
+ ]
40
44
  const getVariantProps = (variants) => ({ ...radioButtonGroupDefaultVariants, ...compact(variants) })
41
45
 
42
46
  export const radioButtonGroup = /* @__PURE__ */ Object.assign(radioButtonGroupFn, {
@@ -44,7 +48,12 @@ export const radioButtonGroup = /* @__PURE__ */ Object.assign(radioButtonGroupFn
44
48
  __name__: 'radioButtonGroup',
45
49
  raw: (props) => props,
46
50
  variantKeys: radioButtonGroupVariantKeys,
47
- variantMap: {},
51
+ variantMap: {
52
+ "size": [
53
+ "sm",
54
+ "md"
55
+ ]
56
+ },
48
57
  splitVariantProps(props) {
49
58
  return splitProps(props, radioButtonGroupVariantKeys)
50
59
  },