@salutejs/plasma-new-hope 0.320.1-canary.1893.14259826529.0 → 0.321.0-canary.1872.14258030126.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.
Files changed (90) hide show
  1. package/cjs/components/Steps/Steps.css +9 -9
  2. package/cjs/components/Steps/Steps.js +9 -3
  3. package/cjs/components/Steps/Steps.js.map +1 -1
  4. package/cjs/components/Steps/Steps.tokens.js +3 -1
  5. package/cjs/components/Steps/Steps.tokens.js.map +1 -1
  6. package/cjs/components/Steps/ui/StepItem/StepItem.css +9 -9
  7. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js +1 -1
  8. package/cjs/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  9. package/cjs/components/Steps/ui/StepItem/{StepItem.styles_c6jhr1.css → StepItem.styles_vom1a1.css} +3 -3
  10. package/cjs/components/Steps/variations/_itemView/base.js +9 -0
  11. package/cjs/components/Steps/variations/_itemView/base.js.map +1 -0
  12. package/cjs/components/Steps/variations/_itemView/base_x642ct.css +1 -0
  13. package/cjs/engines/linaria.js.map +1 -1
  14. package/cjs/engines/utils.js.map +1 -1
  15. package/cjs/index.css +9 -9
  16. package/emotion/cjs/components/Steps/Steps.js +9 -3
  17. package/emotion/cjs/components/Steps/Steps.template-doc.mdx +67 -5
  18. package/emotion/cjs/components/Steps/Steps.tokens.js +3 -1
  19. package/emotion/cjs/components/Steps/ui/StepItem/StepItem.styles.js +10 -10
  20. package/emotion/cjs/components/Steps/variations/_itemView/base.js +8 -0
  21. package/emotion/cjs/components/Steps/variations/_itemView/tokens.json +1 -0
  22. package/emotion/cjs/engines/emotion.js +1 -1
  23. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +34 -7
  24. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +21 -5
  25. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.config.js +34 -7
  26. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +21 -5
  27. package/emotion/es/components/Steps/Steps.js +9 -3
  28. package/emotion/es/components/Steps/Steps.template-doc.mdx +67 -5
  29. package/emotion/es/components/Steps/Steps.tokens.js +3 -1
  30. package/emotion/es/components/Steps/ui/StepItem/StepItem.styles.js +10 -10
  31. package/emotion/es/components/Steps/variations/_itemView/base.js +2 -0
  32. package/emotion/es/components/Steps/variations/_itemView/tokens.json +1 -0
  33. package/emotion/es/engines/emotion.js +1 -1
  34. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.config.js +34 -7
  35. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +21 -5
  36. package/emotion/es/examples/plasma_web/components/Steps/Steps.config.js +34 -7
  37. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +21 -5
  38. package/es/components/Steps/Steps.css +9 -9
  39. package/es/components/Steps/Steps.js +9 -3
  40. package/es/components/Steps/Steps.js.map +1 -1
  41. package/es/components/Steps/Steps.tokens.js +3 -1
  42. package/es/components/Steps/Steps.tokens.js.map +1 -1
  43. package/es/components/Steps/ui/StepItem/StepItem.css +9 -9
  44. package/es/components/Steps/ui/StepItem/StepItem.styles.js +1 -1
  45. package/es/components/Steps/ui/StepItem/StepItem.styles.js.map +1 -1
  46. package/es/components/Steps/ui/StepItem/{StepItem.styles_c6jhr1.css → StepItem.styles_vom1a1.css} +3 -3
  47. package/es/components/Steps/variations/_itemView/base.js +5 -0
  48. package/es/components/Steps/variations/_itemView/base.js.map +1 -0
  49. package/es/components/Steps/variations/_itemView/base_x642ct.css +1 -0
  50. package/es/engines/linaria.js.map +1 -1
  51. package/es/engines/utils.js.map +1 -1
  52. package/es/index.css +9 -9
  53. package/package.json +4 -4
  54. package/styled-components/cjs/components/Steps/Steps.js +9 -3
  55. package/styled-components/cjs/components/Steps/Steps.template-doc.mdx +67 -5
  56. package/styled-components/cjs/components/Steps/Steps.tokens.js +3 -1
  57. package/styled-components/cjs/components/Steps/ui/StepItem/StepItem.styles.js +3 -3
  58. package/styled-components/cjs/components/Steps/variations/_itemView/base.js +8 -0
  59. package/styled-components/cjs/components/Steps/variations/_itemView/tokens.json +1 -0
  60. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.config.js +30 -3
  61. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +21 -5
  62. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.config.js +30 -3
  63. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +21 -5
  64. package/styled-components/es/components/Steps/Steps.js +9 -3
  65. package/styled-components/es/components/Steps/Steps.template-doc.mdx +67 -5
  66. package/styled-components/es/components/Steps/Steps.tokens.js +3 -1
  67. package/styled-components/es/components/Steps/ui/StepItem/StepItem.styles.js +3 -3
  68. package/styled-components/es/components/Steps/variations/_itemView/base.js +2 -0
  69. package/styled-components/es/components/Steps/variations/_itemView/tokens.json +1 -0
  70. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.config.js +30 -3
  71. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +21 -5
  72. package/styled-components/es/examples/plasma_web/components/Steps/Steps.config.js +30 -3
  73. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +21 -5
  74. package/types/components/Steps/Steps.d.ts +2 -0
  75. package/types/components/Steps/Steps.d.ts.map +1 -1
  76. package/types/components/Steps/Steps.tokens.d.ts +2 -0
  77. package/types/components/Steps/Steps.tokens.d.ts.map +1 -1
  78. package/types/components/Steps/Steps.types.d.ts +5 -1
  79. package/types/components/Steps/Steps.types.d.ts.map +1 -1
  80. package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
  81. package/types/components/Steps/variations/_itemView/base.d.ts +2 -0
  82. package/types/components/Steps/variations/_itemView/base.d.ts.map +1 -0
  83. package/types/engines/emotion.d.ts +1 -1
  84. package/types/engines/emotion.d.ts.map +1 -1
  85. package/types/engines/linaria.d.ts +1 -1
  86. package/types/engines/linaria.d.ts.map +1 -1
  87. package/types/engines/types.d.ts +1 -1
  88. package/types/engines/types.d.ts.map +1 -1
  89. package/types/engines/utils.d.ts +2 -2
  90. package/types/engines/utils.d.ts.map +1 -1
@@ -1,14 +1,17 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import type { ComponentProps } from 'react';
3
3
  import type { StoryObj, Meta } from '@storybook/react';
4
- import { disableProps } from '@salutejs/plasma-sb-utils';
4
+ import { getConfigVariations } from '@salutejs/plasma-sb-utils';
5
5
 
6
6
  import { IconMic } from '../../../../components/_Icon';
7
7
  import { argTypesFromConfig, WithTheme } from '../../../_helpers';
8
8
  import { StepItemProps } from '../../../../components/Steps/ui';
9
9
 
10
+ import { config } from './Steps.config';
10
11
  import { Steps, mergedConfig } from './Steps';
11
12
 
13
+ const { views, sizes } = getConfigVariations(config);
14
+
12
15
  const meta: Meta<typeof Steps> = {
13
16
  title: 'web/Navigation/Steps',
14
17
  decorators: [WithTheme],
@@ -133,9 +136,11 @@ const DefaultStory = (args) => {
133
136
 
134
137
  export const Default: Story = {
135
138
  args: {
139
+ view: 'default',
140
+ itemView: 'default',
141
+ size: 'm',
136
142
  maxWidth: '100%',
137
143
  quantity: 6,
138
- size: 'm',
139
144
  title: 'Title',
140
145
  content: 'Content',
141
146
  contentAlign: 'left',
@@ -153,10 +158,22 @@ export const Default: Story = {
153
158
  type: 'text',
154
159
  },
155
160
  },
161
+ view: {
162
+ options: views,
163
+ control: {
164
+ type: 'select',
165
+ },
166
+ },
167
+ itemView: {
168
+ options: ['default', 'negative', 'warning', 'positive'],
169
+ control: {
170
+ type: 'select',
171
+ },
172
+ },
156
173
  size: {
157
- options: ['xs', 's', 'm', 'l'],
174
+ options: sizes,
158
175
  control: {
159
- type: 'inline-radio',
176
+ type: 'select',
160
177
  },
161
178
  },
162
179
  orientation: {
@@ -189,7 +206,6 @@ export const Default: Story = {
189
206
  type: 'boolean',
190
207
  },
191
208
  },
192
- ...disableProps(['view']),
193
209
  },
194
210
  render: (args) => <DefaultStory {...args} />,
195
211
  };
@@ -11,10 +11,12 @@ export declare const stepsConfig: {
11
11
  variations: {
12
12
  size: import("@linaria/core").LinariaClassName;
13
13
  view: import("@linaria/core").LinariaClassName;
14
+ itemView: import("@linaria/core").LinariaClassName;
14
15
  };
15
16
  defaults: {
16
17
  view: string;
17
18
  size: string;
19
+ itemView: string;
18
20
  };
19
21
  };
20
22
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/Steps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAmC,cAAc,EAAW,MAAM,OAAO,CAAC;AAGxF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAO7D,aAAK,UAAU,GAAG,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,CAAC;AAEpF,eAAO,MAAM,SAAS,SAAU,sBAAsB,cAAc,EAAE,UAAU,CAAC,mJAmG3E,CAAC;AAEP,eAAO,MAAM,WAAW;;;mBArGQ,sBAAsB,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;CAkHhF,CAAC"}
1
+ {"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/Steps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAmC,cAAc,EAAW,MAAM,OAAO,CAAC;AAGxF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAC;AAQ7D,aAAK,UAAU,GAAG,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,CAAC;AAEpF,eAAO,MAAM,SAAS,SAAU,sBAAsB,cAAc,EAAE,UAAU,CAAC,mJAqG3E,CAAC;AAEP,eAAO,MAAM,WAAW;;;mBAvGQ,sBAAsB,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;;;CAsHhF,CAAC"}
@@ -63,6 +63,7 @@ export declare const tokens: {
63
63
  activeIndicatorColorHover: string;
64
64
  activeIndicatorBackground: string;
65
65
  completedTitleColor: string;
66
+ completedTitleColorHover: string;
66
67
  completedIndicatorColor: string;
67
68
  completedIndicatorColorHover: string;
68
69
  completedIndicatorBackground: string;
@@ -73,5 +74,6 @@ export declare const tokens: {
73
74
  inactiveIndicatorBackgroundHover: string;
74
75
  disabledOpacity: string;
75
76
  dividerThickness: string;
77
+ dividerColor: string;
76
78
  };
77
79
  //# sourceMappingURL=Steps.tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Steps.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/Steps.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAanB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ElB,CAAC"}
1
+ {"version":3,"file":"Steps.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/Steps.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAanB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ElB,CAAC"}
@@ -16,6 +16,10 @@ export interface StepsProps {
16
16
  * Отображение шага
17
17
  */
18
18
  view?: string;
19
+ /**
20
+ * Отображение элемента шага
21
+ */
22
+ itemView?: string;
19
23
  /**
20
24
  * Ориентация компонента
21
25
  * @default 'horizontal'
@@ -44,7 +48,7 @@ export interface StepsProps {
44
48
  */
45
49
  hasContent?: StepsContent;
46
50
  /**
47
- * Отображает лоадер вместо индикатора активного шага.
51
+ * Отображает loader вместо индикатора активного шага.
48
52
  */
49
53
  hasLoader?: boolean;
50
54
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Steps.types.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/Steps.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAEjD,oBAAY,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AACrD,oBAAY,iBAAiB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAClD,oBAAY,gBAAgB,GAAG,YAAY,GAAG,UAAU,CAAC;AAEzD,MAAM,WAAW,UAAU;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/E"}
1
+ {"version":3,"file":"Steps.types.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/Steps.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAEjD,oBAAY,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AACrD,oBAAY,iBAAiB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAClD,oBAAY,gBAAgB,GAAG,YAAY,GAAG,UAAU,CAAC;AAEzD,MAAM,WAAW,UAAU;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"StepItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/ui/StepItem/StepItem.styles.ts"],"names":[],"mappings":";AAUA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;qDAIzB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAYzB,CAAC;AAEF,eAAO,MAAM,eAAe,qKAc3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAmDlC,CAAC;AAEF,eAAO,MAAM,eAAe,iLAqE3B,CAAC;AAEF,eAAO,MAAM,MAAM;;EAYlB,CAAC;AAEF,eAAO,MAAM,eAAe;;EAkC3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAalC,CAAC;AAEF,eAAO,MAAM,cAAc,qKAyN1B,CAAC"}
1
+ {"version":3,"file":"StepItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/ui/StepItem/StepItem.styles.ts"],"names":[],"mappings":";AAUA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;qDAIzB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAYzB,CAAC;AAEF,eAAO,MAAM,eAAe,qKAc3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAmDlC,CAAC;AAEF,eAAO,MAAM,eAAe,iLAqE3B,CAAC;AAEF,eAAO,MAAM,MAAM;;EAYlB,CAAC;AAEF,eAAO,MAAM,eAAe;;EAmC3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAalC,CAAC;AAEF,eAAO,MAAM,cAAc,qKAyN1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const base: import("@linaria/core").LinariaClassName;
2
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/variations/_itemView/base.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { css } from '@emotion/react';
3
- import type { ComponentConfig, HTMLAnyAttributes } from './types';
3
+ import { ComponentConfig, HTMLAnyAttributes } from './types';
4
4
  export { css };
5
5
  export declare const _component: (componentConfig: ComponentConfig) => React.ForwardRefExoticComponent<Omit<HTMLAnyAttributes, "ref"> & React.RefAttributes<HTMLElement>>;
6
6
  //# sourceMappingURL=emotion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emotion.d.ts","sourceRoot":"","sources":["../../src/engines/emotion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAoB,MAAM,gBAAgB,CAAC;AAIvD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAElE,OAAO,EAAE,GAAG,EAAE,CAAC;AAef,eAAO,MAAM,UAAU,oBAAqB,eAAe,uGAsB1D,CAAC"}
1
+ {"version":3,"file":"emotion.d.ts","sourceRoot":"","sources":["../../src/engines/emotion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAoB,MAAM,gBAAgB,CAAC;AAIvD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAwB,MAAM,SAAS,CAAC;AAEnF,OAAO,EAAE,GAAG,EAAE,CAAC;AAef,eAAO,MAAM,UAAU,oBAAqB,eAAe,uGAsB1D,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import 'focus-visible';
3
- import type { ComponentConfig, HTMLAnyAttributes } from './types';
3
+ import { ComponentConfig, HTMLAnyAttributes } from './types';
4
4
  export declare const _component: (componentConfig: ComponentConfig) => React.ForwardRefExoticComponent<Omit<HTMLAnyAttributes, "ref"> & React.RefAttributes<HTMLElement>>;
5
5
  //# sourceMappingURL=linaria.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"linaria.d.ts","sourceRoot":"","sources":["../../src/engines/linaria.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,OAAO,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGlE,eAAO,MAAM,UAAU,oBAAqB,eAAe,uGA6C1D,CAAC"}
1
+ {"version":3,"file":"linaria.d.ts","sourceRoot":"","sources":["../../src/engines/linaria.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG7D,eAAO,MAAM,UAAU,oBAAqB,eAAe,uGA6C1D,CAAC"}
@@ -36,7 +36,7 @@ export declare type Filter<T extends {} = {}, U extends string = string> = {
36
36
  [k in keyof T]: k extends U ? unknown : T[k];
37
37
  };
38
38
  export interface Intersection {
39
- style: string;
39
+ style: PolymorphicClassName;
40
40
  }
41
41
  export interface ComponentConfig<Tag extends HTMLTagList = React.ElementType, VariantList extends Variants = Variants, VariantsProps extends PropsType<VariantList> = {}, LayoutProps extends React.HTMLAttributes<HTMLElement> | undefined = React.HTMLAttributes<HTMLElement>> {
42
42
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/engines/types.ts"],"names":[],"mappings":";AACA,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,oBAAY,oBAAoB,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAE7D,oBAAY,aAAa,GAAG;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,CAAC;CAClD,CAAC;AAEF,oBAAY,GAAG,GAAG,CACd,OAAO,EAAE,oBAAoB,EAC7B,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,aAAa,CAAC,KAC/C,oBAAoB,CAAC;AAE1B,oBAAY,6BAA6B,CAAC,CAAC,GAAG,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AACvG,oBAAY,4CAA4C,CAAC,CAAC,GAAG,WAAW,IAAI,IAAI,CAC5E,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EACvB,UAAU,GAA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AAQ,EACvC,aAAa,SAAS,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,EACjD,WAAW,SAAS,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAErG,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,iBAAiB,KAAK,CAAC,KAAK,EAAE,WAAW,GAAG,aAAa,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IAC7G,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE,WAAW,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1C,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;CAClC"}
@@ -1,5 +1,5 @@
1
- import type { ComponentConfig, HTMLAnyAttributes, Intersection } from './types';
1
+ import { ComponentConfig, HTMLAnyAttributes, Intersection, PolymorphicClassName } from './types';
2
2
  export declare const getStaticVariants: (config: ComponentConfig) => (string | import("./types").SerializedStyles)[];
3
3
  export declare const getDynamicVariants: (config: ComponentConfig) => (props: HTMLAnyAttributes) => any[];
4
- export declare const getIntersectionStyles: (props: Record<string, any>, intersections?: Intersection[] | undefined) => string[];
4
+ export declare const getIntersectionStyles: (props: Record<string, any>, intersections?: Intersection[] | undefined) => PolymorphicClassName[];
5
5
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/engines/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEhF,eAAO,MAAM,iBAAiB,WAAY,eAAe,oDAcxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,WAAY,eAAe,aACvC,iBAAiB,UAgBnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,UAAW,OAAO,MAAM,EAAE,GAAG,CAAC,yDAgB/D,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/engines/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEjG,eAAO,MAAM,iBAAiB,WAAY,eAAe,oDAcxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,WAAY,eAAe,aACvC,iBAAiB,UAgBnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,UAAW,OAAO,MAAM,EAAE,GAAG,CAAC,uEAgB/D,CAAC"}