@semcore/core 1.11.7 → 1.11.10

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 (65) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +69 -0
  3. package/lib/cjs/Component.js.map +1 -1
  4. package/lib/cjs/enhancement/Children.js +1 -1
  5. package/lib/cjs/enhancement/Children.js.map +1 -1
  6. package/lib/cjs/enhancement/Root.js +2 -2
  7. package/lib/cjs/enhancement/Root.js.map +1 -1
  8. package/lib/cjs/enhancement/bindHandler.js.map +1 -1
  9. package/lib/cjs/enhancement/dataName.js.map +1 -1
  10. package/lib/cjs/enhancement/enhance.js.map +1 -1
  11. package/lib/cjs/enhancement/functionDefaultProps.js.map +1 -1
  12. package/lib/cjs/enhancement/hoistProps.js +3 -3
  13. package/lib/cjs/enhancement/hoistProps.js.map +1 -1
  14. package/lib/cjs/enhancement/inheritedName.js.map +1 -1
  15. package/lib/cjs/enhancement/staticChildren.js.map +1 -1
  16. package/lib/cjs/enhancement/style.js +1 -1
  17. package/lib/cjs/enhancement/style.js.map +1 -1
  18. package/lib/cjs/enhancement/uncontrolledProps.js +2 -2
  19. package/lib/cjs/enhancement/uncontrolledProps.js.map +1 -1
  20. package/lib/cjs/index.js +4 -4
  21. package/lib/cjs/index.js.map +1 -1
  22. package/lib/cjs/register.js.map +1 -1
  23. package/lib/cjs/styled/index.js.map +1 -1
  24. package/lib/cjs/styled/sstyled.js +4 -2
  25. package/lib/cjs/styled/sstyled.js.map +1 -1
  26. package/lib/es6/Component.js.map +1 -1
  27. package/lib/es6/enhancement/Children.js +1 -1
  28. package/lib/es6/enhancement/Children.js.map +1 -1
  29. package/lib/es6/enhancement/Root.js +2 -2
  30. package/lib/es6/enhancement/Root.js.map +1 -1
  31. package/lib/es6/enhancement/bindHandler.js.map +1 -1
  32. package/lib/es6/enhancement/dataName.js.map +1 -1
  33. package/lib/es6/enhancement/enhance.js.map +1 -1
  34. package/lib/es6/enhancement/functionDefaultProps.js.map +1 -1
  35. package/lib/es6/enhancement/hoistProps.js +3 -3
  36. package/lib/es6/enhancement/hoistProps.js.map +1 -1
  37. package/lib/es6/enhancement/inheritedName.js.map +1 -1
  38. package/lib/es6/enhancement/staticChildren.js.map +1 -1
  39. package/lib/es6/enhancement/style.js +1 -1
  40. package/lib/es6/enhancement/style.js.map +1 -1
  41. package/lib/es6/enhancement/uncontrolledProps.js +2 -2
  42. package/lib/es6/enhancement/uncontrolledProps.js.map +1 -1
  43. package/lib/es6/index.js +4 -4
  44. package/lib/es6/index.js.map +1 -1
  45. package/lib/es6/register.js.map +1 -1
  46. package/lib/es6/styled/index.js.map +1 -1
  47. package/lib/es6/styled/sstyled.js +4 -2
  48. package/lib/es6/styled/sstyled.js.map +1 -1
  49. package/package.json +3 -3
  50. package/src/Component.tsx +0 -108
  51. package/src/enhancement/Children.tsx +0 -103
  52. package/src/enhancement/Root.tsx +0 -78
  53. package/src/enhancement/bindHandler.tsx +0 -45
  54. package/src/enhancement/dataName.tsx +0 -12
  55. package/src/enhancement/enhance.tsx +0 -12
  56. package/src/enhancement/functionDefaultProps.tsx +0 -29
  57. package/src/enhancement/hoistProps.tsx +0 -88
  58. package/src/enhancement/inheritedName.tsx +0 -18
  59. package/src/enhancement/staticChildren.tsx +0 -128
  60. package/src/enhancement/style.tsx +0 -47
  61. package/src/enhancement/uncontrolledProps.tsx +0 -134
  62. package/src/index.tsx +0 -381
  63. package/src/register.tsx +0 -18
  64. package/src/styled/index.tsx +0 -9
  65. package/src/styled/sstyled.tsx +0 -150
package/src/index.tsx DELETED
@@ -1,381 +0,0 @@
1
- import React, { ForwardRefExoticComponent, RefAttributes, useRef } from 'react';
2
- import hoistNonReactStatics from 'hoist-non-react-statics';
3
- // @ts-ignore
4
- import { useForkRef } from '@semcore/utils/lib/ref';
5
- // @ts-ignore
6
- import useEnhancedEffect from '@semcore/utils/lib/use/useEnhancedEffect';
7
- // @ts-ignore
8
- import _assignProps from '@semcore/utils/lib/assignProps';
9
-
10
- import { Component, PropsWithRenderFnChildren } from './Component';
11
- import register from './register';
12
-
13
- import childrenEnhancement, { CHILDREN_COMPONENT } from './enhancement/Children';
14
- import rootEnhancement from './enhancement/Root';
15
- import uncontrolledPropsEnhancement from './enhancement/uncontrolledProps';
16
- import functionDefaultPropsEnhancement from './enhancement/functionDefaultProps';
17
- import staticChildrenEnhancement, { STATIC_COMPONENT } from './enhancement/staticChildren';
18
- import inheritedNameEnhancement, { INHERITED_NAME } from './enhancement/inheritedName';
19
- import hoistPropsEnhancement from './enhancement/hoistProps';
20
- import dataNameEnhancement from './enhancement/dataName';
21
- import enhanceEnhancement from './enhancement/enhance';
22
- import styleEnhancement from './enhancement/style';
23
- import bindHandlerEnhancement from './enhancement/bindHandler';
24
-
25
- const CORE_COMPONENT = Symbol('CORE_COMPONENT');
26
- const CORE_INSTANCE = Symbol('CORE_INSTANCE');
27
- const CORE_AS_PROPS = Symbol('CORE_AS_PROPS');
28
- const CORE_INIT = Symbol('CORE_INIT');
29
- const CONTEXT_COMPONENT = Symbol('CONTEXT_COMPONENT');
30
- const CREATE_COMPONENT = Symbol('CREATE_COMPONENT');
31
- const PARENT_COMPONENTS = Symbol('PARENT_COMPONENTS');
32
-
33
- function isEmptyObject(obj) {
34
- return (
35
- Object.getOwnPropertyNames(obj).length === 0 &&
36
- Object.getOwnPropertySymbols && // For IE 11
37
- Object.getOwnPropertySymbols(obj).length === 0 &&
38
- Object.getPrototypeOf(obj) === Object.prototype
39
- );
40
- }
41
-
42
- function createGetField(enhancements, Component, isFunction) {
43
- return function getField(key) {
44
- return enhancements
45
- .filter((enhancement) => {
46
- if (!enhancement.condition) {
47
- return true;
48
- }
49
- return enhancement.condition(Component, isFunction);
50
- })
51
- .reduce((acc, item) => {
52
- if (item[key]) {
53
- acc.push(item[key]);
54
- }
55
- return acc;
56
- }, []);
57
- };
58
- }
59
-
60
- function createForwardWrapper(Component, wrapperProps, statics, isFunction) {
61
- // @ts-ignore
62
- const WrapperComponent = React.forwardRef(function ({ forwardRef = null, ...other }, ref) {
63
- // WRAPPER PROPS
64
- const { ref: enhancementRef = null, ...props } = wrapperProps.reduce(
65
- (acc, enhancement) => enhancement(acc, WrapperComponent, isFunction),
66
- other,
67
- );
68
- // @ts-ignore
69
- return <Component {...props} forwardRef={useForkRef(enhancementRef, ref, forwardRef)} />;
70
- });
71
-
72
- hoistNonReactStatics(WrapperComponent, Component);
73
-
74
- WrapperComponent.displayName = Component.displayName;
75
- // TODO: defaultProps is only empty
76
- WrapperComponent.defaultProps = Component.defaultProps;
77
- // STATIC
78
- statics.forEach((enhancement) =>
79
- Object.assign(WrapperComponent, enhancement(WrapperComponent, isFunction)),
80
- );
81
-
82
- return WrapperComponent;
83
- }
84
-
85
- function wrapClass(OriginComponent, enhancements, Context) {
86
- const getField = createGetField(enhancements, OriginComponent, false);
87
-
88
- const inits = getField('init');
89
- const props = getField('asProps');
90
- const renders = getField('render');
91
- const statics = getField('static');
92
- const wrapperProps = getField('wrapperProps');
93
- const contexts = getField('context');
94
-
95
- class Component extends OriginComponent {
96
- [CORE_AS_PROPS] = null;
97
- [CORE_INSTANCE] = WrapperComponent;
98
- [CORE_INIT] = false;
99
-
100
- constructor(props, context) {
101
- super(props, context);
102
- // INITS
103
- inits.forEach((enhancement) => enhancement.call(this, props, WrapperComponent, false));
104
- this[CORE_INIT] = true;
105
- }
106
-
107
- get asProps() {
108
- // TODO if not production
109
- if (!this[CORE_INIT]) {
110
- throw new Error('Can not call asProps in constructor');
111
- }
112
- if (!this[CORE_AS_PROPS]) {
113
- // PROPS
114
- this[CORE_AS_PROPS] = props.reduce(
115
- (acc, enhancement) => enhancement.call(this, acc, WrapperComponent, false),
116
- this.props,
117
- );
118
- }
119
- return this[CORE_AS_PROPS];
120
- }
121
-
122
- setContext() {
123
- const contextProps = super.setContext ? super.setContext() : {};
124
- // CONTEXT
125
- return contexts.reduce(
126
- (acc, enhancement) => enhancement.call(this, acc, WrapperComponent, false),
127
- contextProps,
128
- );
129
- }
130
-
131
- render() {
132
- this[CORE_AS_PROPS] = null;
133
- // TODO if not production
134
- if (!super.render) {
135
- throw new Error('Component `render` method is not defined');
136
- }
137
- const asProps = this.asProps;
138
- const ctx = this.setContext();
139
- // RENDER
140
- const render = renders.reduce(
141
- (acc, enhancement) => enhancement.call(this, acc, asProps, WrapperComponent, false),
142
- super.render(),
143
- );
144
- if (!WrapperComponent[STATIC_COMPONENT] && !isEmptyObject(ctx)) {
145
- return <Context.Provider value={{ ...asProps, ...ctx }}>{render}</Context.Provider>;
146
- } else {
147
- return render;
148
- }
149
- }
150
- }
151
-
152
- const WrapperComponent = createForwardWrapper(Component, wrapperProps, statics, false);
153
- return WrapperComponent;
154
- }
155
-
156
- function wrapFunction(OriginComponent, enhancements, Context) {
157
- const getField = createGetField(enhancements, OriginComponent, true);
158
-
159
- const inits = getField('init');
160
- const props = getField('asProps');
161
- const renders = getField('render');
162
- const statics = getField('static');
163
- const wrapperProps = getField('wrapperProps');
164
- const contexts = getField('context');
165
-
166
- const Component = React.memo(function FunctionMemoComponent(other) {
167
- const selfRef = useRef({});
168
- const firstRender = useRef(true);
169
- useEnhancedEffect(() => {
170
- firstRender.current = false;
171
- }, []);
172
- if (firstRender.current) {
173
- // INITS
174
- inits.forEach((enhancement) =>
175
- enhancement.call(selfRef.current, other, WrapperComponent, true),
176
- );
177
- }
178
- // PROPS
179
- const asProps = props.reduce(
180
- (acc, enhancement) => enhancement.call(selfRef.current, acc, WrapperComponent, true),
181
- other,
182
- );
183
- // CONTEXT
184
- const ctx = contexts.reduce(
185
- (acc, enhancement) => enhancement.call(selfRef.current, acc, WrapperComponent, true),
186
- {},
187
- );
188
-
189
- // RENDER
190
- const render = renders.reduce(
191
- (acc, enhancement) => enhancement.call(selfRef.current, acc, asProps, WrapperComponent, true),
192
- <OriginComponent {...asProps} />,
193
- );
194
-
195
- if (!WrapperComponent[STATIC_COMPONENT] && !isEmptyObject(ctx)) {
196
- return <Context.Provider value={{ ...asProps, ...ctx }}>{render}</Context.Provider>;
197
- } else {
198
- return render;
199
- }
200
- });
201
- Object.assign(Component, OriginComponent);
202
- const WrapperComponent = createForwardWrapper(Component, wrapperProps, statics, true);
203
- return WrapperComponent;
204
- }
205
-
206
- function wrapCore(OriginComponent, enhancements, Context) {
207
- const Component = function ({ Root }) {
208
- return <Root render={OriginComponent} />;
209
- };
210
- hoistNonReactStatics(Component, OriginComponent);
211
- Component.displayName = OriginComponent.displayName;
212
- Component.defaultProps = OriginComponent.defaultProps;
213
- return wrapFunction(Component, enhancements, Context);
214
- }
215
-
216
- function createComposeComponent(OriginComponent, Context, enhancements): any {
217
- if (
218
- React.PureComponent.isPrototypeOf(OriginComponent) ||
219
- React.Component.isPrototypeOf(OriginComponent)
220
- ) {
221
- if (OriginComponent.prototype instanceof Component) {
222
- return wrapClass(OriginComponent, enhancements, Context);
223
- } else {
224
- throw new Error('Must inherit from our component');
225
- }
226
- } else if (typeof OriginComponent === 'function') {
227
- return wrapFunction(OriginComponent, enhancements, Context);
228
- } else if (OriginComponent[CORE_COMPONENT]) {
229
- return wrapCore(OriginComponent, enhancements, Context);
230
- } else {
231
- throw new Error('Must be a React component');
232
- }
233
- }
234
-
235
- export type PropsAndRef<T, Ctx, UCProps> = PropsWithRenderFnChildren<T, Ctx, UCProps> &
236
- RefAttributes<unknown>;
237
- export type ForwardRefComponent<T, Ctx, UCProps> = ForwardRefExoticComponent<
238
- PropsAndRef<T, Ctx, UCProps>
239
- >;
240
- type ComponentOrProps<T, Context, UCProps> = T extends [infer ParentProps, infer ChildProps]
241
- ? ComponentType<ParentProps, ChildProps, Context, UCProps>
242
- : ForwardRefComponent<T, Context, UCProps>;
243
-
244
- export type ComponentType<
245
- ComponentProps,
246
- ChildComponentProps = {},
247
- ContextType = {},
248
- UCProps = {},
249
- FNType = null,
250
- > = (FNType extends null
251
- ? ForwardRefComponent<ComponentProps, ContextType, UCProps>
252
- : FNType & { displayName: string }) & {
253
- [K in keyof ChildComponentProps]: ComponentOrProps<ChildComponentProps[K], ContextType, UCProps>;
254
- } & {
255
- [CORE_COMPONENT]: boolean;
256
- [CREATE_COMPONENT]: () => ComponentType<
257
- ComponentProps,
258
- ChildComponentProps,
259
- ContextType,
260
- UCProps
261
- >;
262
- };
263
-
264
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
265
- interface ClassWithUncontrolledProps<Props> {
266
- uncontrolledProps(): unknown;
267
- }
268
-
269
- function assignProps(p1, p2) {
270
- return _assignProps(p2, p1);
271
- }
272
-
273
- function createComponent<ComponentProps, ChildComponentProps = {}, ContextType = {}, FNType = null>(
274
- OriginComponent,
275
- childComponents = {},
276
- options: {
277
- context?: React.Context<ContextType>;
278
- parent?: ComponentType<unknown> | ComponentType<unknown>[];
279
- enhancements?: [any];
280
- } = {},
281
- ): ComponentType<
282
- ComponentProps extends Component<infer Props> ? Props : ComponentProps,
283
- ChildComponentProps,
284
- ContextType,
285
- ComponentProps extends ClassWithUncontrolledProps<any>
286
- ? ReturnType<ComponentProps['uncontrolledProps']>
287
- : { [key: string]: (arg: unknown) => void },
288
- FNType
289
- > {
290
- const {
291
- context = React.createContext<ContextType>({} as ContextType),
292
- parent = [],
293
- enhancements = [],
294
- } = options;
295
- let parents = Array.isArray(parent) ? parent : [parent];
296
- if (parents.length) {
297
- const wholeFamily = parents.reduce((acc, parent) => {
298
- if (parent[PARENT_COMPONENTS]) {
299
- acc = [...parent[PARENT_COMPONENTS], ...acc];
300
- }
301
- return acc;
302
- }, parents);
303
- OriginComponent[PARENT_COMPONENTS] = wholeFamily;
304
- parents = wholeFamily;
305
- }
306
- if (OriginComponent[CORE_COMPONENT]) {
307
- parents.push(OriginComponent);
308
- }
309
- const Component = createComposeComponent(OriginComponent, context, [
310
- // @ts-ignore
311
- ...enhancements.map((f) => f(context, parents, createComponent, childComponents)),
312
- bindHandlerEnhancement(),
313
- childrenEnhancement(context, parents),
314
- // root must be under the children
315
- rootEnhancement(),
316
- uncontrolledPropsEnhancement(),
317
- staticChildrenEnhancement(childComponents, createComponent, {
318
- context,
319
- parent,
320
- enhancements,
321
- }),
322
- // functionDefaultProps must be under the staticChild
323
- functionDefaultPropsEnhancement(),
324
- // inheritedName must be under the staticChild
325
- inheritedNameEnhancement(),
326
- // dataName must be under the staticChild
327
- dataNameEnhancement(),
328
- // enhanceEnhancement must be under the functionDefaultPropsEnhancement
329
- enhanceEnhancement(),
330
- styleEnhancement(childComponents, context),
331
- // must be the last one so any properties can be raised
332
- hoistPropsEnhancement(childComponents, context),
333
- ]);
334
- Component[CONTEXT_COMPONENT] = context;
335
- Component[CREATE_COMPONENT] = function (
336
- _OriginComponent = OriginComponent,
337
- _childComponents = childComponents,
338
- _options = options,
339
- ) {
340
- return createComponent(_OriginComponent, _childComponents, _options);
341
- };
342
- Component[CORE_COMPONENT] = true;
343
- return Component;
344
- }
345
-
346
- function createBaseComponent<ComponentProps>(OriginComponent): ComponentType<ComponentProps> {
347
- let Component = null;
348
- if (
349
- !React.PureComponent.isPrototypeOf(OriginComponent) &&
350
- !React.Component.isPrototypeOf(OriginComponent) &&
351
- typeof OriginComponent === 'function'
352
- ) {
353
- Component = React.forwardRef(OriginComponent);
354
- Component.displayName = OriginComponent.displayName;
355
- Component.defaultProps = {
356
- 'data-ui-name': OriginComponent.displayName,
357
- ...OriginComponent.defaultProps,
358
- };
359
- Component[CORE_COMPONENT] = true;
360
- } else {
361
- throw new Error('createBaseComponent accepts only functional component');
362
- }
363
- return Component;
364
- }
365
-
366
- export * from './Component';
367
- export * from './styled';
368
- export * from './register';
369
- export {
370
- createBaseComponent,
371
- register,
372
- CREATE_COMPONENT,
373
- CORE_INSTANCE,
374
- CONTEXT_COMPONENT,
375
- CHILDREN_COMPONENT,
376
- INHERITED_NAME,
377
- CORE_COMPONENT,
378
- STATIC_COMPONENT,
379
- assignProps,
380
- };
381
- export default createComponent;
package/src/register.tsx DELETED
@@ -1,18 +0,0 @@
1
- class Register {
2
- data = {};
3
-
4
- get<D>(name, defaultValue?: D): D {
5
- if (name in this.data) {
6
- return this.data[name];
7
- } else {
8
- return this.set(name, defaultValue);
9
- }
10
- }
11
-
12
- set<D>(name, value: D): D {
13
- return (this.data[name] = value);
14
- }
15
- }
16
-
17
- export { Register };
18
- export default new Register();
@@ -1,9 +0,0 @@
1
- export interface IStyledProps {
2
- /** @ignore */
3
- styles?: { [key: string]: string };
4
- }
5
- export { default as styled } from '@reshadow/core';
6
- export { use, css } from '@reshadow/core';
7
- export * from '@reshadow/core';
8
-
9
- export * from './sstyled';
@@ -1,150 +0,0 @@
1
- /* eslint-disable */
2
- import cn from 'classnames';
3
- import { ReactNode } from 'react';
4
- import { getStyles as reshadowGetStyles } from '@reshadow/core';
5
-
6
- const RESHADOW_ID = '__reshadow__';
7
-
8
- const isSSR = !(typeof window !== 'undefined' && window.document && window.document.createElement);
9
-
10
- const serverMap = reshadowGetStyles().map;
11
-
12
- const getStyles = () => ({
13
- map: serverMap,
14
- get css() {
15
- let serverStyles = '';
16
- for (const id in serverMap) {
17
- serverStyles += `<style type='text/css' id='${id}'>${serverMap[id]}</style>`;
18
- }
19
- return serverStyles;
20
- },
21
- });
22
-
23
- function insert(code, hash) {
24
- const id = 'reshadow-'.concat(hash);
25
-
26
- if (isSSR) {
27
- serverMap[id] = code;
28
- return;
29
- }
30
-
31
- let container = document.getElementById(RESHADOW_ID);
32
-
33
- if (!container) {
34
- container = document.createElement('object');
35
- container.id = RESHADOW_ID;
36
-
37
- if (document.head) {
38
- document.head.appendChild(container);
39
- } else {
40
- document.addEventListener('DOMContentLoaded', function () {
41
- document.head.appendChild(container);
42
- });
43
- }
44
- }
45
-
46
- let css = document.getElementById(id);
47
-
48
- if (!css) {
49
- css = document.createElement('style');
50
- css.id = id;
51
- // @ts-ignore
52
- css.type = 'text/css';
53
- container.appendChild(css);
54
- }
55
-
56
- css.innerHTML = code;
57
- }
58
-
59
- function merge(s1 = {}, s2 = {}) {
60
- return Object.entries(s2).reduce((acc, [key, value]) => {
61
- if (key.startsWith('@') || key.startsWith('--')) {
62
- acc[key] = value;
63
- } else {
64
- acc[key] = cn(acc[key], value);
65
- }
66
- return acc;
67
- }, Object.assign({}, s1));
68
- }
69
-
70
- function getClassAndVars(styles, name, props) {
71
- function getPropValue(key, props) {
72
- return props[`use:${key}`] ?? props[key];
73
- }
74
-
75
- return Object.entries(styles).reduce(
76
- (acc, [key, value]) => {
77
- if (key.startsWith('--')) {
78
- // @ts-ignore
79
- acc[1][value] = getPropValue(key.substring(2), props);
80
- } else if (name === key) {
81
- // @ts-ignore
82
- acc[0][value] = true;
83
- } else {
84
- const [mod, modValue] = key.split('=');
85
- const propValue = getPropValue(mod, props);
86
- if (modValue === undefined) {
87
- // @ts-ignore
88
- acc[0][value] = Boolean(propValue ?? false);
89
- } else {
90
- // @ts-ignore
91
- acc[0][value] = propValue == modValue;
92
- }
93
- }
94
- return acc;
95
- },
96
- [{}, {}],
97
- );
98
- }
99
-
100
- function reshadowToShadow(obj) {
101
- return Object.entries(obj).reduce((style, [name, value]) => {
102
- let n = name;
103
- if (name.startsWith('__')) {
104
- n = name.replace(/^__/, '');
105
- } else if (name.startsWith('_')) {
106
- n = name.replace(/^_/, '').replace('_', '=');
107
- }
108
- style[n] = value;
109
- return style;
110
- }, {});
111
- }
112
-
113
- function sstyled(
114
- styles = {},
115
- ): ((ReactNode) => ReactNode) & {
116
- cn(name: string, props: any): any;
117
- } {
118
- // @ts-ignore
119
- return {
120
- cn(name, props) {
121
- const [classes, style] = getClassAndVars(reshadowToShadow(styles), name, props);
122
- const extraProps = {};
123
-
124
- if (Object.keys(classes).length) {
125
- // @ts-ignore
126
- extraProps.className = cn(props.className, classes);
127
- }
128
-
129
- if (Object.keys(style).length) {
130
- // @ts-ignore
131
- extraProps.style = Object.assign(style, props.style);
132
- }
133
- return {
134
- ...props,
135
- ...extraProps,
136
- };
137
- },
138
- };
139
- }
140
-
141
- sstyled.css = function (css): { [key: string]: string } {
142
- throw new Error('Enable babel plugin');
143
- };
144
- sstyled.insert = insert;
145
- sstyled.merge = merge;
146
- sstyled.getStyles = getStyles;
147
- sstyled.SHADOW_STYLES = Symbol('SHADOW_STYLES');
148
-
149
- export { sstyled };
150
- /* eslint-enable */