@stokelp/styled-system 2.94.0 → 2.95.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
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface HighlightedInputVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type HighlightedInputVariantMap = {
|
|
10
|
+
[key in keyof HighlightedInputVariant]: Array<HighlightedInputVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type HighlightedInputSlot = "root" | "input" | "renderer" | "highlight"
|
|
14
|
+
|
|
15
|
+
export type HighlightedInputVariantProps = {
|
|
16
|
+
[key in keyof HighlightedInputVariant]?: ConditionalValue<HighlightedInputVariant[key]> | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface HighlightedInputRecipe {
|
|
20
|
+
__slot: HighlightedInputSlot
|
|
21
|
+
__type: HighlightedInputVariantProps
|
|
22
|
+
(props?: HighlightedInputVariantProps): Pretty<Record<HighlightedInputSlot, string>>
|
|
23
|
+
raw: (props?: HighlightedInputVariantProps) => HighlightedInputVariantProps
|
|
24
|
+
variantMap: HighlightedInputVariantMap
|
|
25
|
+
variantKeys: Array<keyof HighlightedInputVariant>
|
|
26
|
+
splitVariantProps<Props extends HighlightedInputVariantProps>(props: Props): [HighlightedInputVariantProps, Pretty<DistributiveOmit<Props, keyof HighlightedInputVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: HighlightedInputVariantProps) => HighlightedInputVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Styles for HighlightedInput component
|
|
32
|
+
*/
|
|
33
|
+
export declare const highlightedInput: HighlightedInputRecipe
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const highlightedInputDefaultVariants = {}
|
|
5
|
+
const highlightedInputCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const highlightedInputSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"highlightedInput__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"input",
|
|
14
|
+
"highlightedInput__input"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"renderer",
|
|
18
|
+
"highlightedInput__renderer"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"highlight",
|
|
22
|
+
"highlightedInput__highlight"
|
|
23
|
+
]
|
|
24
|
+
]
|
|
25
|
+
const highlightedInputSlotFns = /* @__PURE__ */ highlightedInputSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, highlightedInputDefaultVariants, getSlotCompoundVariant(highlightedInputCompoundVariants, slotName))])
|
|
26
|
+
|
|
27
|
+
const highlightedInputFn = memo((props = {}) => {
|
|
28
|
+
return Object.fromEntries(highlightedInputSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
const highlightedInputVariantKeys = []
|
|
32
|
+
const getVariantProps = (variants) => ({ ...highlightedInputDefaultVariants, ...compact(variants) })
|
|
33
|
+
|
|
34
|
+
export const highlightedInput = /* @__PURE__ */ Object.assign(highlightedInputFn, {
|
|
35
|
+
__recipe__: false,
|
|
36
|
+
__name__: 'highlightedInput',
|
|
37
|
+
raw: (props) => props,
|
|
38
|
+
classNameMap: {},
|
|
39
|
+
variantKeys: highlightedInputVariantKeys,
|
|
40
|
+
variantMap: {},
|
|
41
|
+
splitVariantProps(props) {
|
|
42
|
+
return splitProps(props, highlightedInputVariantKeys)
|
|
43
|
+
},
|
|
44
|
+
getVariantProps
|
|
45
|
+
})
|
package/recipes/index.d.ts
CHANGED
package/recipes/index.mjs
CHANGED