@stokelp/styled-system 2.94.0 → 2.96.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokelp/styled-system",
3
- "version": "2.94.0",
3
+ "version": "2.96.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -163,6 +163,7 @@
163
163
  "checkboxCard": [
164
164
  "size]___[value:md]___[recipe:checkboxCard"
165
165
  ],
166
+ "highlightedInput": [],
166
167
  "input": [
167
168
  "size]___[value:md]___[recipe:input"
168
169
  ],
@@ -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
+ })
@@ -57,4 +57,5 @@ export * from './app-navigation-language-select';
57
57
  export * from './avatar';
58
58
  export * from './menu';
59
59
  export * from './price-tag';
60
- export * from './chat';
60
+ export * from './chat';
61
+ export * from './highlighted-input';
package/recipes/index.mjs CHANGED
@@ -56,4 +56,5 @@ export * from './app-navigation-language-select.mjs';
56
56
  export * from './avatar.mjs';
57
57
  export * from './menu.mjs';
58
58
  export * from './price-tag.mjs';
59
- export * from './chat.mjs';
59
+ export * from './chat.mjs';
60
+ export * from './highlighted-input.mjs';