@vitus-labs/elements 0.79.0 → 0.81.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 (34) hide show
  1. package/lib/analysis/vitus-labs-elements.browser.js.html +1 -1
  2. package/lib/analysis/vitus-labs-elements.js.html +1 -1
  3. package/lib/analysis/vitus-labs-elements.module.js.html +1 -1
  4. package/lib/analysis/vitus-labs-elements.native.js.html +1 -1
  5. package/lib/index.d.ts +550 -6
  6. package/lib/types/Element/types.d.ts +388 -1
  7. package/lib/types/Element/types.d.ts.map +1 -1
  8. package/lib/types/Element/utils.d.ts.map +1 -1
  9. package/lib/types/List/component.d.ts +19 -7
  10. package/lib/types/List/component.d.ts.map +1 -1
  11. package/lib/types/Overlay/component.d.ts +23 -0
  12. package/lib/types/Overlay/component.d.ts.map +1 -1
  13. package/lib/types/Overlay/useOverlay.d.ts +59 -0
  14. package/lib/types/Overlay/useOverlay.d.ts.map +1 -1
  15. package/lib/types/Portal/component.d.ts +10 -0
  16. package/lib/types/Portal/component.d.ts.map +1 -1
  17. package/lib/types/Text/component.d.ts +19 -4
  18. package/lib/types/Text/component.d.ts.map +1 -1
  19. package/lib/types/Util/component.d.ts +9 -0
  20. package/lib/types/Util/component.d.ts.map +1 -1
  21. package/lib/types/helpers/Iterator/types.d.ts +28 -0
  22. package/lib/types/helpers/Iterator/types.d.ts.map +1 -1
  23. package/lib/types/helpers/Wrapper/component.d.ts +2 -2
  24. package/lib/vitus-labs-elements.browser.js +46 -42
  25. package/lib/vitus-labs-elements.browser.js.map +1 -1
  26. package/lib/vitus-labs-elements.js +51 -47
  27. package/lib/vitus-labs-elements.js.map +1 -1
  28. package/lib/vitus-labs-elements.module.js +45 -41
  29. package/lib/vitus-labs-elements.module.js.map +1 -1
  30. package/lib/vitus-labs-elements.native.js +45 -41
  31. package/lib/vitus-labs-elements.native.js.map +1 -1
  32. package/package.json +9 -9
  33. package/lib/types/Overlay/useOverlay.backup.d.ts +0 -36
  34. package/lib/types/Overlay/useOverlay.backup.d.ts.map +0 -1
@@ -1,8 +1,17 @@
1
1
  import { ReactNode } from 'react';
2
2
  import type { VLComponent } from "../types";
3
3
  export type Props = {
4
+ /**
5
+ * Children to be rendered within **Util** component.
6
+ */
4
7
  children: ReactNode;
8
+ /**
9
+ * Class name(s) to be added to children component.
10
+ */
5
11
  className?: string | string[];
12
+ /**
13
+ * Style property to extend children component inline styles
14
+ */
6
15
  style?: Record<string, unknown>;
7
16
  };
8
17
  declare const Component: VLComponent<Props>;
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/Util/component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAe;AAE1C,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,WAAW,CAAC,KAAK,CACM,CAAA;AAQxC,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/Util/component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,SAAS,EAAE,MAAM,OAAO,CAAA;AAG1C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAe;AAE1C,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,WAAW,CAAC,KAAK,CAMjC,CAAA;AAQD,eAAe,SAAS,CAAA"}
@@ -20,13 +20,41 @@ export type ExtendedProps = {
20
20
  };
21
21
  export type PropsCallback = TObj | ((itemProps: Record<string, never> | Record<string, SimpleValue> | ObjectValue, extendedProps: ExtendedProps) => TObj);
22
22
  export type Props = Partial<{
23
+ /**
24
+ * Valid React `children`
25
+ */
23
26
  children: ReactNode;
27
+ /**
28
+ * Array of data passed to `component` prop
29
+ */
24
30
  data: Array<SimpleValue | ObjectValue | MaybeNull>;
31
+ /**
32
+ * A React component to be rendred within list
33
+ */
25
34
  component: ElementType;
35
+ /**
36
+ * Defines name of the prop to be passed to the iteration component
37
+ * when **data** prop is type of `string[]`, `number[]` or combination
38
+ * of both. Otherwise ignored.
39
+ */
26
40
  valueName: string;
41
+ /**
42
+ * A React component to be rendred within list. `wrapComponent`
43
+ * wraps `component`. Therefore it can be used to enhance the behavior
44
+ * of the list component
45
+ */
27
46
  wrapComponent: ElementType;
47
+ /**
48
+ * Extension of **item** `component` props to be passed
49
+ */
28
50
  itemProps: PropsCallback;
51
+ /**
52
+ * Extension of **item** `wrapComponent` props to be passed
53
+ */
29
54
  wrapProps?: PropsCallback;
55
+ /**
56
+ * Extension of **item** `wrapComponent` props to be passed
57
+ */
30
58
  itemKey?: keyof ObjectValue | ((item: SimpleValue | Omit<ObjectValue, 'component'>, index: number) => SimpleValue);
31
59
  }>;
32
60
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Iterator/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAE3C,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,IAAI,CAAA;AACxC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EA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AC,MAAM,EAAE,KAAK,CAAC,GACrB,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAC3B,WAAW,EACf,aAAa,EAAE,aAAa,KACzB,IAAI,CAAC,CAAA;AAEd,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;IAEnB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC,CAAA;IAElD;;OAEG;IACH,SAAS,EAAE,WAAW,CAAA;IAEtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;;;OAIG;IACH,aAAa,EAAE,WAAW,CAAA;IAE1B;;OAEG;IACH,SAAS,EAAE,aAAa,CAAA;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAA;IAEzB;;OAEG;IACH,OAAO,CAAC,EACJ,MAAM,WAAW,GACjB,CAAC,CACC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,EAClD,KAAK,EAAE,MAAM,KACV,WAAW,CAAC,CAAA;CACtB,CAAC,CAAA"}
@@ -13,6 +13,6 @@ type Props = {
13
13
  extendCss: ExtendCss;
14
14
  dangerouslySetInnerHTML: any;
15
15
  };
16
- declare const component: React.ForwardRefExoticComponent<Partial<Props> & React.RefAttributes<unknown>>;
17
- export default component;
16
+ declare const Component: React.ForwardRefExoticComponent<Partial<Props> & React.RefAttributes<unknown>>;
17
+ export default Component;
18
18
  //# sourceMappingURL=component.d.ts.map
@@ -74,7 +74,7 @@ var Styled$2 = config.styled(config.component) `
74
74
  })};
75
75
  `;
76
76
 
77
- const component$4 = forwardRef(({ children, tag, block, extendCss, direction, alignX, alignY, equalCols, isInline, ...props }, ref) => {
77
+ const Component$9 = forwardRef(({ children, tag, block, extendCss, direction, alignX, alignY, equalCols, isInline, ...props }, ref) => {
78
78
  const debugProps = process.env.NODE_ENV !== 'production'
79
79
  ? {
80
80
  'data-vl-element': 'Element',
@@ -179,7 +179,7 @@ var Styled$1 = config.styled(config.component) `
179
179
  })};
180
180
  `;
181
181
 
182
- const Component$6 = ({ contentType, tag, parentDirection, direction, alignX, alignY, equalCols, gap, extendCss, ...props }) => {
182
+ const Component$8 = ({ contentType, tag, parentDirection, direction, alignX, alignY, equalCols, gap, extendCss, ...props }) => {
183
183
  const debugProps = process.env.NODE_ENV !== 'production'
184
184
  ? {
185
185
  'data-vl-element': contentType,
@@ -196,7 +196,7 @@ const Component$6 = ({ contentType, tag, parentDirection, direction, alignX, ali
196
196
  extraStyles: extendCss,
197
197
  }, ...debugProps, ...props }));
198
198
  };
199
- var component$3 = memo(Component$6);
199
+ var component$1 = memo(Component$8);
200
200
 
201
201
  const INLINE_ELEMENTS = {
202
202
  span: true,
@@ -264,7 +264,7 @@ const defaultDirection = 'inline';
264
264
  const defaultContentDirection = 'rows';
265
265
  const defaultAlignX = 'left';
266
266
  const defaultAlignY = 'center';
267
- const Component$5 = forwardRef(({ innerRef, tag, label, content, children, beforeContent, afterContent, block, equalCols, gap, direction, alignX = defaultAlignX, alignY = defaultAlignY, css, contentCss, beforeContentCss, afterContentCss, contentDirection = defaultContentDirection, contentAlignX = defaultAlignX, contentAlignY = defaultAlignY, beforeContentDirection = defaultDirection, beforeContentAlignX = defaultAlignX, beforeContentAlignY = defaultAlignY, afterContentDirection = defaultDirection, afterContentAlignX = defaultAlignX, afterContentAlignY = defaultAlignY, ...props }, ref) => {
267
+ const Component$7 = forwardRef(({ innerRef, tag, label, content, children, beforeContent, afterContent, block, equalCols, gap, direction, alignX = defaultAlignX, alignY = defaultAlignY, css, contentCss, beforeContentCss, afterContentCss, contentDirection = defaultContentDirection, contentAlignX = defaultAlignX, contentAlignY = defaultAlignY, beforeContentDirection = defaultDirection, beforeContentAlignX = defaultAlignX, beforeContentAlignY = defaultAlignY, afterContentDirection = defaultDirection, afterContentAlignX = defaultAlignX, afterContentAlignY = defaultAlignY, ...props }, ref) => {
268
268
  // --------------------------------------------------------
269
269
  // check if should render only single element
270
270
  // --------------------------------------------------------
@@ -325,20 +325,21 @@ const Component$5 = forwardRef(({ innerRef, tag, label, content, children, befor
325
325
  // return simple/empty element like input or image etc.
326
326
  // --------------------------------------------------------
327
327
  if (shouldBeEmpty) {
328
- return React.createElement(component$4, { ...props, ...WRAPPER_PROPS });
328
+ return React.createElement(Component$9, { ...props, ...WRAPPER_PROPS });
329
329
  }
330
330
  const contentRenderOutput = render(CHILDREN);
331
- return (React.createElement(component$4, { ...props, ...WRAPPER_PROPS, isInline: isInline },
332
- beforeContent && (React.createElement(component$3, { tag: SUB_TAG, contentType: "before", parentDirection: wrapperDirection, extendCss: beforeContentCss, direction: beforeContentDirection, alignX: beforeContentAlignX, alignY: beforeContentAlignY, equalCols: equalCols, gap: gap }, render(beforeContent))),
333
- isSimpleElement ? (contentRenderOutput) : (React.createElement(component$3, { tag: SUB_TAG, contentType: "content", parentDirection: wrapperDirection, extendCss: contentCss, direction: contentDirection, alignX: contentAlignX, alignY: contentAlignY, equalCols: equalCols }, contentRenderOutput)),
334
- afterContent && (React.createElement(component$3, { tag: SUB_TAG, contentType: "after", parentDirection: wrapperDirection, extendCss: afterContentCss, direction: afterContentDirection, alignX: afterContentAlignX, alignY: afterContentAlignY, equalCols: equalCols, gap: gap }, render(afterContent)))));
331
+ return (React.createElement(Component$9, { ...props, ...WRAPPER_PROPS, isInline: isInline },
332
+ beforeContent && (React.createElement(component$1, { tag: SUB_TAG, contentType: "before", parentDirection: wrapperDirection, extendCss: beforeContentCss, direction: beforeContentDirection, alignX: beforeContentAlignX, alignY: beforeContentAlignY, equalCols: equalCols, gap: gap }, render(beforeContent))),
333
+ isSimpleElement ? (contentRenderOutput) : (React.createElement(component$1, { tag: SUB_TAG, contentType: "content", parentDirection: wrapperDirection, extendCss: contentCss, direction: contentDirection, alignX: contentAlignX, alignY: contentAlignY, equalCols: equalCols }, contentRenderOutput)),
334
+ afterContent && (React.createElement(component$1, { tag: SUB_TAG, contentType: "after", parentDirection: wrapperDirection, extendCss: afterContentCss, direction: afterContentDirection, alignX: afterContentAlignX, alignY: afterContentAlignY, equalCols: equalCols, gap: gap }, render(afterContent)))));
335
335
  });
336
336
  const name$5 = `${PKG_NAME}/Element`;
337
- Component$5.displayName = name$5;
338
- Component$5.pkgName = PKG_NAME;
339
- Component$5.VITUS_LABS__COMPONENT = name$5;
337
+ Component$7.displayName = name$5;
338
+ Component$7.pkgName = PKG_NAME;
339
+ Component$7.VITUS_LABS__COMPONENT = name$5;
340
340
 
341
341
  // @ts-nocheck
342
+ /* eslint-disable no-param-reassign */
342
343
  const isNumber = (a, b) => Number.isInteger(a) && Number.isInteger(b);
343
344
  const types = {
344
345
  height: 'offsetHeight',
@@ -401,7 +402,7 @@ const attachItemProps = ({ i, length, }) => {
401
402
  position,
402
403
  };
403
404
  };
404
- const Component$4 = (props) => {
405
+ const Component$6 = (props) => {
405
406
  const { itemKey, valueName, children, component, data, wrapComponent: Wrapper, wrapProps, itemProps, } = props;
406
407
  const injectItemProps = useMemo(() => (typeof itemProps === 'function' ? itemProps : () => itemProps), [itemProps]);
407
408
  const injectWrapItemProps = useMemo(() => (typeof wrapProps === 'function' ? wrapProps : () => wrapProps), [wrapProps]);
@@ -547,19 +548,19 @@ const Component$4 = (props) => {
547
548
  };
548
549
  return renderItems();
549
550
  };
550
- Component$4.isIterator = true;
551
- Component$4.RESERVED_PROPS = RESERVED_PROPS;
551
+ Component$6.isIterator = true;
552
+ Component$6.RESERVED_PROPS = RESERVED_PROPS;
552
553
 
553
- const component$2 = forwardRef(({ rootElement = false, ...props }, ref) => {
554
- const renderedList = React.createElement(Component$4, { ...pick(props, Component$4.RESERVED_PROPS) });
554
+ const Component$5 = forwardRef(({ rootElement = false, ...props }, ref) => {
555
+ const renderedList = React.createElement(Component$6, { ...pick(props, Component$6.RESERVED_PROPS) });
555
556
  if (!rootElement)
556
557
  return renderedList;
557
- return (React.createElement(Component$5, { ref: ref, ...omit(props, Component$4.RESERVED_PROPS) }, renderedList));
558
+ return (React.createElement(Component$7, { ref: ref, ...omit(props, Component$6.RESERVED_PROPS) }, renderedList));
558
559
  });
559
560
  const name$4 = `${PKG_NAME}/List`;
560
- component$2.displayName = name$4;
561
- component$2.pkgName = PKG_NAME;
562
- component$2.VITUS_LABS__COMPONENT = name$4;
561
+ Component$5.displayName = name$4;
562
+ Component$5.pkgName = PKG_NAME;
563
+ Component$5.VITUS_LABS__COMPONENT = name$4;
563
564
 
564
565
  // @ts-nocheck
565
566
  const RESERVED_KEYS = [
@@ -568,7 +569,7 @@ const RESERVED_KEYS = [
568
569
  'itemProps',
569
570
  'activeItemRequired',
570
571
  ];
571
- const component$1 = (WrappedComponent) => {
572
+ const component = (WrappedComponent) => {
572
573
  const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
573
574
  const Enhanced = (props) => {
574
575
  const { type = 'single', activeItemRequired, activeItems, itemProps = {}, ...rest } = props;
@@ -691,7 +692,7 @@ const component$1 = (WrappedComponent) => {
691
692
  return Enhanced;
692
693
  };
693
694
 
694
- const Component$3 = ({ DOMLocation, tag = 'div', children, }) => {
695
+ const Component$4 = ({ DOMLocation, tag = 'div', children, }) => {
695
696
  const [element, setElement] = useState();
696
697
  useEffect(() => {
697
698
  if (!tag)
@@ -709,14 +710,14 @@ const Component$3 = ({ DOMLocation, tag = 'div', children, }) => {
709
710
  return createPortal(children, element);
710
711
  };
711
712
  const name$3 = `${PKG_NAME}/Portal`;
712
- Component$3.displayName = name$3;
713
- Component$3.pkgName = PKG_NAME;
714
- Component$3.VITUS_LABS__COMPONENT = name$3;
713
+ Component$4.displayName = name$3;
714
+ Component$4.pkgName = PKG_NAME;
715
+ Component$4.VITUS_LABS__COMPONENT = name$3;
715
716
 
716
717
  const context = createContext({});
717
718
  const { Provider } = context;
718
719
  const useOverlayContext = () => useContext(context);
719
- const Component$2 = ({ children, blocked, setBlocked, setUnblocked, }) => {
720
+ const Component$3 = ({ children, blocked, setBlocked, setUnblocked, }) => {
720
721
  const ctx = useMemo(() => ({
721
722
  blocked,
722
723
  setBlocked,
@@ -1153,11 +1154,11 @@ offsetX = 0, offsetY = 0, throttleDelay = 200, parentContainer, closeOnEsc = tru
1153
1154
  blocked,
1154
1155
  setBlocked,
1155
1156
  setUnblocked,
1156
- Provider: Component$2,
1157
+ Provider: Component$3,
1157
1158
  };
1158
1159
  };
1159
1160
 
1160
- const Component$1 = ({ children, trigger, DOMLocation, triggerRefName = 'ref', contentRefName = 'ref', ...props }) => {
1161
+ const Component$2 = ({ children, trigger, DOMLocation, triggerRefName = 'ref', contentRefName = 'ref', ...props }) => {
1161
1162
  const { active, triggerRef, contentRef, showContent, hideContent, align, alignX, alignY, Provider, ...ctx } = useOverlay(props);
1162
1163
  const { openOn, closeOn } = props;
1163
1164
  const passHandlers = useMemo(() => openOn === 'manual' ||
@@ -1169,7 +1170,7 @@ const Component$1 = ({ children, trigger, DOMLocation, triggerRefName = 'ref', c
1169
1170
  active,
1170
1171
  ...(passHandlers ? { showContent, hideContent } : {}),
1171
1172
  }),
1172
- active && (React.createElement(Component$3, { DOMLocation: DOMLocation },
1173
+ active && (React.createElement(Component$4, { DOMLocation: DOMLocation },
1173
1174
  React.createElement(Provider, { ...ctx }, render(children, {
1174
1175
  [contentRefName]: contentRef,
1175
1176
  active,
@@ -1180,16 +1181,16 @@ const Component$1 = ({ children, trigger, DOMLocation, triggerRefName = 'ref', c
1180
1181
  }))))));
1181
1182
  };
1182
1183
  const name$2 = `${PKG_NAME}/Overlay`;
1183
- Component$1.displayName = name$2;
1184
- Component$1.pkgName = PKG_NAME;
1185
- Component$1.VITUS_LABS__COMPONENT = name$2;
1184
+ Component$2.displayName = name$2;
1185
+ Component$2.pkgName = PKG_NAME;
1186
+ Component$2.VITUS_LABS__COMPONENT = name$2;
1186
1187
 
1187
1188
  const styles = ({ css, theme: t }) => css `
1188
1189
  ${t.extraStyles && extendCss(t.extraStyles)};
1189
1190
  `;
1190
1191
  var Styled = config.styled(config.textComponent) `
1191
1192
  color: inherit;
1192
- font-weight: normal;
1193
+ font-weight: inherit;
1193
1194
  line-height: 1;
1194
1195
 
1195
1196
  ${makeItResponsive({
@@ -1200,8 +1201,8 @@ var Styled = config.styled(config.textComponent) `
1200
1201
  })};
1201
1202
  `;
1202
1203
 
1203
- const component = forwardRef(({ paragraph, label, children, tag, extendCss, ...props }, ref) => {
1204
- const renderContent = (as = undefined) => (React.createElement(Styled, { ref: ref, as: as, "$text": { extraStyles: extendCss }, ...props }, children || label));
1204
+ const Component$1 = forwardRef(({ paragraph, label, children, tag, css, ...props }, ref) => {
1205
+ const renderContent = (as = undefined) => (React.createElement(Styled, { ref: ref, as: as, "$text": { extraStyles: css }, ...props }, children || label));
1205
1206
  let finalTag;
1206
1207
  {
1207
1208
  if (paragraph)
@@ -1213,16 +1214,19 @@ const component = forwardRef(({ paragraph, label, children, tag, extendCss, ...p
1213
1214
  return renderContent(finalTag);
1214
1215
  });
1215
1216
  const name$1 = `${PKG_NAME}/Text`;
1216
- component.displayName = name$1;
1217
- component.pkgName = PKG_NAME;
1218
- component.VITUS_LABS__COMPONENT = name$1;
1219
- component.isText = true;
1217
+ Component$1.displayName = name$1;
1218
+ Component$1.pkgName = PKG_NAME;
1219
+ Component$1.VITUS_LABS__COMPONENT = name$1;
1220
+ Component$1.isText = true;
1220
1221
 
1221
- const Component = ({ children, className = '', style }) => render(children, { className, style });
1222
+ const Component = ({ children, className = '', style }) => {
1223
+ const mergedClasses = useMemo(() => Array.isArray(className) ? className.join(' ') : className, [className]);
1224
+ return render(children, { className: mergedClasses, style });
1225
+ };
1222
1226
  const name = `${PKG_NAME}/Util`;
1223
1227
  Component.displayName = name;
1224
1228
  Component.pkgName = PKG_NAME;
1225
1229
  Component.VITUS_LABS__COMPONENT = name;
1226
1230
 
1227
- export { Component$5 as Element, component$2 as List, Component$1 as Overlay, Component$2 as OverlayProvider, Component$3 as Portal, component as Text, Component as Util, useOverlay, component$1 as withActiveState, withEqualBeforeAfter as withEqualSizeBeforeAfter };
1231
+ export { Component$7 as Element, Component$5 as List, Component$2 as Overlay, Component$3 as OverlayProvider, Component$4 as Portal, Component$1 as Text, Component as Util, useOverlay, component as withActiveState, withEqualBeforeAfter as withEqualSizeBeforeAfter };
1228
1232
  //# sourceMappingURL=vitus-labs-elements.browser.js.map