@stokelp/styled-system 2.1.0 → 2.3.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
CHANGED
package/panda.buildinfo.json
CHANGED
package/recipes/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './table-empty-row';
|
|
|
15
15
|
export * from './table-container';
|
|
16
16
|
export * from './illustration';
|
|
17
17
|
export * from './button-filter';
|
|
18
|
+
export * from './phone-number-input';
|
|
18
19
|
export * from './drawer';
|
|
19
20
|
export * from './radio-button-group';
|
|
20
21
|
export * from './radio-group';
|
package/recipes/index.mjs
CHANGED
|
@@ -14,6 +14,7 @@ export * from './table-empty-row.mjs';
|
|
|
14
14
|
export * from './table-container.mjs';
|
|
15
15
|
export * from './illustration.mjs';
|
|
16
16
|
export * from './button-filter.mjs';
|
|
17
|
+
export * from './phone-number-input.mjs';
|
|
17
18
|
export * from './drawer.mjs';
|
|
18
19
|
export * from './radio-button-group.mjs';
|
|
19
20
|
export * from './radio-group.mjs';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface PhoneNumberInputVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "md"
|
|
8
|
+
*/
|
|
9
|
+
size: "md"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type PhoneNumberInputVariantMap = {
|
|
13
|
+
[key in keyof PhoneNumberInputVariant]: Array<PhoneNumberInputVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type PhoneNumberInputVariantProps = {
|
|
17
|
+
[key in keyof PhoneNumberInputVariant]?: ConditionalValue<PhoneNumberInputVariant[key]> | undefined
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface PhoneNumberInputRecipe {
|
|
21
|
+
__type: PhoneNumberInputVariantProps
|
|
22
|
+
(props?: PhoneNumberInputVariantProps): string
|
|
23
|
+
raw: (props?: PhoneNumberInputVariantProps) => PhoneNumberInputVariantProps
|
|
24
|
+
variantMap: PhoneNumberInputVariantMap
|
|
25
|
+
variantKeys: Array<keyof PhoneNumberInputVariant>
|
|
26
|
+
splitVariantProps<Props extends PhoneNumberInputVariantProps>(props: Props): [PhoneNumberInputVariantProps, Pretty<DistributiveOmit<Props, keyof PhoneNumberInputVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: PhoneNumberInputVariantProps) => PhoneNumberInputVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The styles for the PhoneNumberInput component
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
*/
|
|
35
|
+
export declare const phoneNumberInput: PhoneNumberInputRecipe
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const phoneNumberInputFn = /* @__PURE__ */ createRecipe('phone-number-input', {
|
|
5
|
+
"size": "md"
|
|
6
|
+
}, [])
|
|
7
|
+
|
|
8
|
+
const phoneNumberInputVariantMap = {
|
|
9
|
+
"size": [
|
|
10
|
+
"md"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const phoneNumberInputVariantKeys = Object.keys(phoneNumberInputVariantMap)
|
|
15
|
+
|
|
16
|
+
export const phoneNumberInput = /* @__PURE__ */ Object.assign(memo(phoneNumberInputFn.recipeFn), {
|
|
17
|
+
__recipe__: true,
|
|
18
|
+
__name__: 'phoneNumberInput',
|
|
19
|
+
__getCompoundVariantCss__: phoneNumberInputFn.__getCompoundVariantCss__,
|
|
20
|
+
raw: (props) => props,
|
|
21
|
+
variantKeys: phoneNumberInputVariantKeys,
|
|
22
|
+
variantMap: phoneNumberInputVariantMap,
|
|
23
|
+
merge(recipe) {
|
|
24
|
+
return mergeRecipes(this, recipe)
|
|
25
|
+
},
|
|
26
|
+
splitVariantProps(props) {
|
|
27
|
+
return splitProps(props, phoneNumberInputVariantKeys)
|
|
28
|
+
},
|
|
29
|
+
getVariantProps: phoneNumberInputFn.getVariantProps,
|
|
30
|
+
})
|
package/types/conditions.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface Conditions {
|
|
|
10
10
|
"_focusWithin": string
|
|
11
11
|
/** `&:is(:focus-visible, [data-focus-visible])` */
|
|
12
12
|
"_focusVisible": string
|
|
13
|
-
/** `&:is(:disabled, [disabled], [data-disabled])` */
|
|
13
|
+
/** `&:is(:disabled, [disabled], [data-disabled], .PhoneInput--disabled)` */
|
|
14
14
|
"_disabled": string
|
|
15
15
|
/** `&:is(:active, [data-active])` */
|
|
16
16
|
"_active": string
|