@vitus-labs/elements 1.2.1 → 1.2.3-alpha.3

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 (87) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +279 -66
  3. package/lib/analysis/index.js.html +18 -18
  4. package/lib/analysis/vitus-labs-elements.native.js.html +18 -18
  5. package/lib/index.d.ts +832 -850
  6. package/lib/index.d.ts.map +1 -0
  7. package/lib/index.js +1290 -1160
  8. package/lib/index.js.map +1 -1
  9. package/lib/vitus-labs-elements.native.js +1176 -1060
  10. package/lib/vitus-labs-elements.native.js.map +1 -1
  11. package/package.json +24 -24
  12. package/lib/types/Element/component.d.ts +0 -4
  13. package/lib/types/Element/component.d.ts.map +0 -1
  14. package/lib/types/Element/constants.d.ts +0 -51
  15. package/lib/types/Element/constants.d.ts.map +0 -1
  16. package/lib/types/Element/index.d.ts +0 -7
  17. package/lib/types/Element/index.d.ts.map +0 -1
  18. package/lib/types/Element/types.d.ts +0 -423
  19. package/lib/types/Element/types.d.ts.map +0 -1
  20. package/lib/types/Element/utils.d.ts +0 -5
  21. package/lib/types/Element/utils.d.ts.map +0 -1
  22. package/lib/types/Element/withEqualSizeBeforeAfter.d.ts +0 -8
  23. package/lib/types/Element/withEqualSizeBeforeAfter.d.ts.map +0 -1
  24. package/lib/types/List/component.d.ts +0 -23
  25. package/lib/types/List/component.d.ts.map +0 -1
  26. package/lib/types/List/index.d.ts +0 -7
  27. package/lib/types/List/index.d.ts.map +0 -1
  28. package/lib/types/List/withActiveState.d.ts +0 -11
  29. package/lib/types/List/withActiveState.d.ts.map +0 -1
  30. package/lib/types/Overlay/component.d.ts +0 -52
  31. package/lib/types/Overlay/component.d.ts.map +0 -1
  32. package/lib/types/Overlay/context.d.ts +0 -12
  33. package/lib/types/Overlay/context.d.ts.map +0 -1
  34. package/lib/types/Overlay/index.d.ts +0 -7
  35. package/lib/types/Overlay/index.d.ts.map +0 -1
  36. package/lib/types/Overlay/useOverlay.d.ts +0 -109
  37. package/lib/types/Overlay/useOverlay.d.ts.map +0 -1
  38. package/lib/types/Portal/component.d.ts +0 -20
  39. package/lib/types/Portal/component.d.ts.map +0 -1
  40. package/lib/types/Portal/index.d.ts +0 -5
  41. package/lib/types/Portal/index.d.ts.map +0 -1
  42. package/lib/types/Text/component.d.ts +0 -30
  43. package/lib/types/Text/component.d.ts.map +0 -1
  44. package/lib/types/Text/index.d.ts +0 -5
  45. package/lib/types/Text/index.d.ts.map +0 -1
  46. package/lib/types/Text/styled.d.ts +0 -3
  47. package/lib/types/Text/styled.d.ts.map +0 -1
  48. package/lib/types/Util/component.d.ts +0 -19
  49. package/lib/types/Util/component.d.ts.map +0 -1
  50. package/lib/types/Util/index.d.ts +0 -5
  51. package/lib/types/Util/index.d.ts.map +0 -1
  52. package/lib/types/constants.d.ts +0 -2
  53. package/lib/types/constants.d.ts.map +0 -1
  54. package/lib/types/helpers/Content/component.d.ts +0 -5
  55. package/lib/types/helpers/Content/component.d.ts.map +0 -1
  56. package/lib/types/helpers/Content/index.d.ts +0 -3
  57. package/lib/types/helpers/Content/index.d.ts.map +0 -1
  58. package/lib/types/helpers/Content/styled.d.ts +0 -3
  59. package/lib/types/helpers/Content/styled.d.ts.map +0 -1
  60. package/lib/types/helpers/Content/types.d.ts +0 -31
  61. package/lib/types/helpers/Content/types.d.ts.map +0 -1
  62. package/lib/types/helpers/Iterator/component.d.ts +0 -10
  63. package/lib/types/helpers/Iterator/component.d.ts.map +0 -1
  64. package/lib/types/helpers/Iterator/index.d.ts +0 -5
  65. package/lib/types/helpers/Iterator/index.d.ts.map +0 -1
  66. package/lib/types/helpers/Iterator/types.d.ts +0 -60
  67. package/lib/types/helpers/Iterator/types.d.ts.map +0 -1
  68. package/lib/types/helpers/Wrapper/component.d.ts +0 -5
  69. package/lib/types/helpers/Wrapper/component.d.ts.map +0 -1
  70. package/lib/types/helpers/Wrapper/constants.d.ts +0 -6
  71. package/lib/types/helpers/Wrapper/constants.d.ts.map +0 -1
  72. package/lib/types/helpers/Wrapper/index.d.ts +0 -3
  73. package/lib/types/helpers/Wrapper/index.d.ts.map +0 -1
  74. package/lib/types/helpers/Wrapper/styled.d.ts +0 -3
  75. package/lib/types/helpers/Wrapper/styled.d.ts.map +0 -1
  76. package/lib/types/helpers/Wrapper/types.d.ts +0 -42
  77. package/lib/types/helpers/Wrapper/types.d.ts.map +0 -1
  78. package/lib/types/helpers/Wrapper/utils.d.ts +0 -4
  79. package/lib/types/helpers/Wrapper/utils.d.ts.map +0 -1
  80. package/lib/types/helpers/index.d.ts +0 -4
  81. package/lib/types/helpers/index.d.ts.map +0 -1
  82. package/lib/types/index.d.ts +0 -18
  83. package/lib/types/index.d.ts.map +0 -1
  84. package/lib/types/types.d.ts +0 -51
  85. package/lib/types/types.d.ts.map +0 -1
  86. package/lib/types/utils.d.ts +0 -2
  87. package/lib/types/utils.d.ts.map +0 -1
@@ -1,109 +0,0 @@
1
- type Align = 'bottom' | 'top' | 'left' | 'right';
2
- type AlignX = 'left' | 'center' | 'right';
3
- type AlignY = 'bottom' | 'top' | 'center';
4
- export type UseOverlayProps = Partial<{
5
- /**
6
- * Defines default state whether **Overlay** component should be active.
7
- * @defaultValue `false`
8
- */
9
- isOpen: boolean;
10
- /**
11
- * Defines `event` when **Overlay** is supposed to be open.
12
- *
13
- * When `manual` is set, callbacks needs to be applied to make it working.
14
- * @defaultValue `click`
15
- */
16
- openOn: 'click' | 'hover' | 'manual';
17
- /**
18
- * Defines `event` when **Overlay** is supposed to be closed.
19
- * @defaultValue `click`
20
- */
21
- closeOn: 'click' | 'clickOnTrigger' | 'clickOutsideContent' | 'hover' | 'manual';
22
- /**
23
- * Defines what type of **Overlay** will be created. Type `modal`
24
- * has different positioning calculations than others.
25
- * @defaultValue `dropdown`
26
- */
27
- type: 'dropdown' | 'tooltip' | 'popover' | 'modal' | 'custom';
28
- /**
29
- * Defines how `content` is treated regarding CSS positioning.
30
- * @defaultValue `fixed`
31
- */
32
- position: 'absolute' | 'fixed' | 'relative' | 'static';
33
- /**
34
- * Defines from which side is `content` aligned to `trigger` (top, left, bottom, right).
35
- * For more specific alignment configuration can be used `alignX` and/or `alignY` prop.
36
- * @defaultValue `bottom`
37
- */
38
- align: Align;
39
- /**
40
- * Defines how `content` is aligned to `trigger` on axis X
41
- * @defaultValue `left`
42
- */
43
- alignX: AlignX;
44
- /**
45
- * Defines how `content` is aligned to `trigger` on axis Y
46
- * @defaultValue `bottom`
47
- */
48
- alignY: AlignY;
49
- /**
50
- * Defines `margin` from trigger on axis X.
51
- * @defaultValue `0`
52
- */
53
- offsetX: number;
54
- /**
55
- * Defines `margin` from trigger on axis Y.
56
- * @defaultValue `0`
57
- */
58
- offsetY: number;
59
- /**
60
- * Performance helper. Value defined in milliseconds for `throttling`
61
- * recalculations
62
- * @defaultValue `200`
63
- */
64
- throttleDelay: number;
65
- /**
66
- * A valid HTML element. Prop can be used for ability to handle properly
67
- * scrolling inside custom scrollable HTML element.
68
- */
69
- parentContainer: HTMLElement | null;
70
- /**
71
- * Defines whether active **Overlay** is supposed to be closed on pressing
72
- * `ESC` key.
73
- * @defaultValue `true`
74
- */
75
- closeOnEsc: boolean;
76
- /**
77
- * When set to `true`, **Overlay** is automatically closed and is blocked for
78
- * being opened.
79
- */
80
- disabled: boolean;
81
- /**
82
- * A callback hook to be called when **Overlay** is being opened. Does not
83
- * accept any arguments.
84
- */
85
- onOpen: () => void;
86
- /**
87
- * A callback hook to be called when **Overlay** is being closed. Does not
88
- * accept any arguments.
89
- */
90
- onClose: () => void;
91
- }>;
92
- declare const useOverlay: ({ isOpen, openOn, closeOn, type, position, align, alignX, alignY, offsetX, offsetY, throttleDelay, parentContainer, closeOnEsc, disabled, onOpen, onClose, }?: Partial<UseOverlayProps>) => {
93
- triggerRef: import("react").RefObject<HTMLElement | null>;
94
- contentRef: (node: HTMLElement) => void;
95
- active: boolean;
96
- align: Align;
97
- alignX: "left" | "right" | "center";
98
- alignY: "bottom" | "top" | "center";
99
- showContent: () => void;
100
- hideContent: () => void;
101
- blocked: boolean;
102
- setBlocked: () => void;
103
- setUnblocked: () => void;
104
- Provider: import("react").FC<import("./context").Context & {
105
- children: import("react").ReactNode;
106
- }>;
107
- };
108
- export default useOverlay;
109
- //# sourceMappingURL=useOverlay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOverlay.d.ts","sourceRoot":"","sources":["../../../src/Overlay/useOverlay.tsx"],"names":[],"mappings":"AAcA,KAAK,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAA;AAChD,KAAK,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AACzC,KAAK,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAA;AAEzC,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAA;IACf;;;;;OAKG;IACH,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;IACpC;;;OAGG;IACH,OAAO,EACH,OAAO,GACP,gBAAgB,GAChB,qBAAqB,GACrB,OAAO,GACP,QAAQ,CAAA;IAEZ;;;;OAIG;IACH,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAA;IAC7D;;;OAGG;IACH,QAAQ,EAAE,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAA;IACtD;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAA;IACZ;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,eAAe,EAAE,WAAW,GAAG,IAAI,CAAA;IACnC;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAA;IACnB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB;;;OAGG;IACH,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAC,CAAA;AAEF,QAAA,MAAM,UAAU,GAAI,+JAiBjB,OAAO,CAAC,eAAe,CAAM;;uBA2egB,WAAW;;;;;;;;;;;;;CAqB1D,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,20 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import type { VLComponent } from "../types";
3
- export interface Props {
4
- /**
5
- * Defines a HTML DOM where children to be appended. Component uses JavaScript
6
- * [`Node.appendChild`](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)
7
- */
8
- DOMLocation?: HTMLElement;
9
- /**
10
- * Children to be rendered within **Portal** component.
11
- */
12
- children: ReactNode;
13
- /**
14
- * Valid HTML Tag
15
- */
16
- tag?: string;
17
- }
18
- declare const Component: VLComponent<Props>;
19
- export default Component;
20
- //# sourceMappingURL=component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/Portal/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAG3D,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAe;AAE1C,MAAM,WAAW,KAAK;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,QAAA,MAAM,SAAS,EAAE,WAAW,CAAC,KAAK,CAwBjC,CAAA;AAWD,eAAe,SAAS,CAAA"}
@@ -1,5 +0,0 @@
1
- import component from './component';
2
- import type { Props } from './component';
3
- export type { Props };
4
- export default component;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Portal/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,YAAY,EAAE,KAAK,EAAE,CAAA;AACrB,eAAe,SAAS,CAAA"}
@@ -1,30 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import type { HTMLTextTags } from '@vitus-labs/core';
3
- import type { VLForwardedComponent, ExtendCss } from "../types";
4
- export type Props = Partial<{
5
- /**
6
- * Label can be used instead of children for inline syntax. But **children** prop takes a precedence
7
- */
8
- label: ReactNode;
9
- /**
10
- * Children to be rendered within **Text** component.
11
- */
12
- children: ReactNode;
13
- /**
14
- * Defines whether should behave as a block text element. Automatically adds **p** HTML tag
15
- */
16
- paragraph: boolean;
17
- /**
18
- * Defines what kind of HTML tag should be rendered
19
- */
20
- tag: HTMLTextTags;
21
- /**
22
- * If an additional styling needs to be added, it can be do so via injecting styles using this property.
23
- */
24
- css: ExtendCss;
25
- }>;
26
- declare const Component: VLForwardedComponent<Props> & {
27
- isText?: true;
28
- };
29
- export default Component;
30
- //# sourceMappingURL=component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/Text/component.tsx"],"names":[],"mappings":"AAAA,OAAc,EAGZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,iBAAe;AAG9D,MAAM,MAAM,KAAK,GAAG,OAAO,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,GAAG,EAAE,YAAY,CAAA;IACjB;;OAEG;IACH,GAAG,EAAE,SAAS,CAAA;CACf,CAAC,CAAA;AAIF,QAAA,MAAM,SAAS,EAAE,oBAAoB,CAAC,KAAK,CAAC,GAAG;IAC7C,MAAM,CAAC,EAAE,IAAI,CAAA;CAkBb,CAAA;AAYF,eAAe,SAAS,CAAA"}
@@ -1,5 +0,0 @@
1
- import component from './component';
2
- import type { Props } from './component';
3
- export type { Props };
4
- export default component;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Text/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,YAAY,EAAE,KAAK,EAAE,CAAA;AACrB,eAAe,SAAS,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const _default: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<{} | import("styled-components/dist/types").BaseObject | (import("react").ClassAttributes<HTMLObjectElement> & import("react").ObjectHTMLAttributes<HTMLObjectElement>) | import("react").RefAttributes<import("react").Component<{}, any, any>> | (import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement>) | (import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement>) | (import("react").ClassAttributes<HTMLAreaElement> & import("react").AreaHTMLAttributes<HTMLAreaElement>) | (import("react").ClassAttributes<HTMLAudioElement> & import("react").AudioHTMLAttributes<HTMLAudioElement>) | (import("react").ClassAttributes<HTMLQuoteElement> & import("react").BlockquoteHTMLAttributes<HTMLQuoteElement>) | (import("react").ClassAttributes<HTMLBodyElement> & import("react").HTMLAttributes<HTMLBodyElement>) | (import("react").ClassAttributes<HTMLBRElement> & import("react").HTMLAttributes<HTMLBRElement>) | (import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement>) | (import("react").ClassAttributes<HTMLCanvasElement> & import("react").CanvasHTMLAttributes<HTMLCanvasElement>) | (import("react").ClassAttributes<HTMLTableColElement> & import("react").ColHTMLAttributes<HTMLTableColElement>) | (import("react").ClassAttributes<HTMLTableColElement> & import("react").ColgroupHTMLAttributes<HTMLTableColElement>) | (import("react").ClassAttributes<HTMLDataElement> & import("react").DataHTMLAttributes<HTMLDataElement>) | (import("react").ClassAttributes<HTMLDataListElement> & import("react").HTMLAttributes<HTMLDataListElement>) | (import("react").ClassAttributes<HTMLModElement> & import("react").DelHTMLAttributes<HTMLModElement>) | (import("react").ClassAttributes<HTMLDetailsElement> & import("react").DetailsHTMLAttributes<HTMLDetailsElement>) | (import("react").ClassAttributes<HTMLDialogElement> & import("react").DialogHTMLAttributes<HTMLDialogElement>) | (import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>) | (import("react").ClassAttributes<HTMLDListElement> & import("react").HTMLAttributes<HTMLDListElement>) | (import("react").ClassAttributes<HTMLEmbedElement> & import("react").EmbedHTMLAttributes<HTMLEmbedElement>) | (import("react").ClassAttributes<HTMLFieldSetElement> & import("react").FieldsetHTMLAttributes<HTMLFieldSetElement>) | (import("react").ClassAttributes<HTMLFormElement> & import("react").FormHTMLAttributes<HTMLFormElement>) | (import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement>) | (import("react").ClassAttributes<HTMLHRElement> & import("react").HTMLAttributes<HTMLHRElement>) | (import("react").ClassAttributes<HTMLHtmlElement> & import("react").HtmlHTMLAttributes<HTMLHtmlElement>) | (import("react").ClassAttributes<HTMLIFrameElement> & import("react").IframeHTMLAttributes<HTMLIFrameElement>) | (import("react").ClassAttributes<HTMLImageElement> & import("react").ImgHTMLAttributes<HTMLImageElement>) | (import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement>) | (import("react").ClassAttributes<HTMLModElement> & import("react").InsHTMLAttributes<HTMLModElement>) | (import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement>) | (import("react").ClassAttributes<HTMLLegendElement> & import("react").HTMLAttributes<HTMLLegendElement>) | (import("react").ClassAttributes<HTMLLIElement> & import("react").LiHTMLAttributes<HTMLLIElement>) | (import("react").ClassAttributes<HTMLMapElement> & import("react").MapHTMLAttributes<HTMLMapElement>) | (import("react").ClassAttributes<HTMLMeterElement> & import("react").MeterHTMLAttributes<HTMLMeterElement>) | (import("react").ClassAttributes<HTMLOListElement> & import("react").OlHTMLAttributes<HTMLOListElement>) | (import("react").ClassAttributes<HTMLOptGroupElement> & import("react").OptgroupHTMLAttributes<HTMLOptGroupElement>) | (import("react").ClassAttributes<HTMLOptionElement> & import("react").OptionHTMLAttributes<HTMLOptionElement>) | (import("react").ClassAttributes<HTMLOutputElement> & import("react").OutputHTMLAttributes<HTMLOutputElement>) | (import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement>) | (import("react").ClassAttributes<HTMLPreElement> & import("react").HTMLAttributes<HTMLPreElement>) | (import("react").ClassAttributes<HTMLProgressElement> & import("react").ProgressHTMLAttributes<HTMLProgressElement>) | (import("react").ClassAttributes<HTMLQuoteElement> & import("react").QuoteHTMLAttributes<HTMLQuoteElement>) | (import("react").ClassAttributes<HTMLSelectElement> & import("react").SelectHTMLAttributes<HTMLSelectElement>) | (import("react").ClassAttributes<HTMLSourceElement> & import("react").SourceHTMLAttributes<HTMLSourceElement>) | (import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement>) | import("react").SVGProps<SVGSVGElement> | (import("react").ClassAttributes<HTMLTableElement> & import("react").TableHTMLAttributes<HTMLTableElement>) | (import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement>) | (import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement>) | (import("react").ClassAttributes<HTMLTextAreaElement> & import("react").TextareaHTMLAttributes<HTMLTextAreaElement>) | (import("react").ClassAttributes<HTMLTableHeaderCellElement> & import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>) | (import("react").ClassAttributes<HTMLTimeElement> & import("react").TimeHTMLAttributes<HTMLTimeElement>) | (import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement>) | (import("react").ClassAttributes<HTMLTrackElement> & import("react").TrackHTMLAttributes<HTMLTrackElement>) | (import("react").ClassAttributes<HTMLUListElement> & import("react").HTMLAttributes<HTMLUListElement>) | (import("react").ClassAttributes<HTMLVideoElement> & import("react").VideoHTMLAttributes<HTMLVideoElement>), import("styled-components/dist/types").BaseObject>> & (string & (import("styled-components/dist/types").BaseObject | Omit<import("react").ComponentClass<{}, any>, keyof import("react").Component<any, {}, any>> | Omit<import("react").FunctionComponent<{}>, keyof import("react").Component<any, {}, any>>));
2
- export default _default;
3
- //# sourceMappingURL=styled.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../src/Text/styled.ts"],"names":[],"mappings":";AAUA,wBAWC"}
@@ -1,19 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import type { VLComponent } from "../types";
3
- export interface Props {
4
- /**
5
- * Children to be rendered within **Util** component.
6
- */
7
- children: ReactNode;
8
- /**
9
- * Class name(s) to be added to children component.
10
- */
11
- className?: string | string[];
12
- /**
13
- * Style property to extend children component inline styles
14
- */
15
- style?: Record<string, unknown>;
16
- }
17
- declare const Component: VLComponent<Props>;
18
- export default Component;
19
- //# sourceMappingURL=component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/Util/component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAG/C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAe;AAE1C,MAAM,WAAW,KAAK;IACpB;;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;AAED,QAAA,MAAM,SAAS,EAAE,WAAW,CAAC,KAAK,CAWjC,CAAA;AAQD,eAAe,SAAS,CAAA"}
@@ -1,5 +0,0 @@
1
- import component from './component';
2
- import type { Props } from './component';
3
- export type { Props };
4
- export default component;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Util/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,YAAY,EAAE,KAAK,EAAE,CAAA;AACrB,eAAe,SAAS,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const PKG_NAME: "@vitus-labs/elements";
2
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,EAAG,sBAA+B,CAAA"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { Props } from './types';
3
- declare const _default: React.NamedExoticComponent<Partial<Props>>;
4
- export default _default;
5
- //# sourceMappingURL=component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Content/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAA;AAGnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;;AA2CpC,wBAA8B"}
@@ -1,3 +0,0 @@
1
- import component from './component';
2
- export default component;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Content/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AAEnC,eAAe,SAAS,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const StyledComponent: import("styled-components/dist/types").IStyledComponentBase<"web", any> & (string & (import("styled-components/dist/types").BaseObject | Omit<import("react").ComponentClass<{}, any>, keyof import("react").Component<any, {}, any>> | Omit<import("react").FunctionComponent<{}>, keyof import("react").Component<any, {}, any>>));
2
- export default StyledComponent;
3
- //# sourceMappingURL=styled.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Content/styled.ts"],"names":[],"mappings":"AA2FA,QAAA,MAAM,eAAe,sUAgBpB,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,31 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { HTMLTags } from '@vitus-labs/core';
3
- import type { ContentDirection, ContentAlignX, ContentAlignY, ContentBoolean, ContentSimpleValue, Css, Direction, AlignX, AlignY, ResponsiveBoolType, Responsive, ExtendCss } from "../../types";
4
- export interface Props {
5
- parentDirection: Direction;
6
- gap: Responsive;
7
- contentType: 'before' | 'content' | 'after';
8
- children: ReactNode;
9
- tag: HTMLTags;
10
- direction: Direction;
11
- alignX: AlignX;
12
- alignY: AlignY;
13
- equalCols: ResponsiveBoolType;
14
- extendCss: ExtendCss;
15
- }
16
- export interface StyledProps {
17
- $element: Pick<Props, 'contentType' | 'parentDirection' | 'direction' | 'alignX' | 'alignY' | 'equalCols' | 'gap'> & {
18
- extraStyles: Props['extendCss'];
19
- };
20
- $contentType: Props['contentType'];
21
- }
22
- export type ThemeProps = Pick<Props, 'contentType'> & {
23
- parentDirection: ContentDirection;
24
- direction: ContentDirection;
25
- alignX: ContentAlignX;
26
- alignY: ContentAlignY;
27
- equalCols?: ContentBoolean;
28
- gap?: ContentSimpleValue;
29
- extraStyles?: Css;
30
- };
31
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Content/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,GAAG,EACH,SAAS,EACT,MAAM,EACN,MAAM,EACN,kBAAkB,EAClB,UAAU,EACV,SAAS,EACV,oBAAe;AAEhB,MAAM,WAAW,KAAK;IACpB,eAAe,EAAE,SAAS,CAAA;IAC1B,GAAG,EAAE,UAAU,CAAA;IACf,WAAW,EAAE,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;IAC3C,QAAQ,EAAE,SAAS,CAAA;IACnB,GAAG,EAAE,QAAQ,CAAA;IACb,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,kBAAkB,CAAA;IAC7B,SAAS,EAAE,SAAS,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,IAAI,CACZ,KAAK,EACH,aAAa,GACb,iBAAiB,GACjB,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,KAAK,CACR,GAAG;QACF,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;KAChC,CAAA;IACD,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,CAAA;CACnC;AAED,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,GAAG;IACpD,eAAe,EAAE,gBAAgB,CAAA;IACjC,SAAS,EAAE,gBAAgB,CAAA;IAC3B,MAAM,EAAE,aAAa,CAAA;IACrB,MAAM,EAAE,aAAa,CAAA;IACrB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,GAAG,CAAC,EAAE,kBAAkB,CAAA;IACxB,WAAW,CAAC,EAAE,GAAG,CAAA;CAClB,CAAA"}
@@ -1,10 +0,0 @@
1
- import { type FC } from 'react';
2
- import type { Props } from './types';
3
- declare const RESERVED_PROPS: readonly ["children", "component", "wrapComponent", "data", "itemKey", "valueName", "itemProps", "wrapProps"];
4
- type Static = {
5
- isIterator: true;
6
- RESERVED_PROPS: typeof RESERVED_PROPS;
7
- };
8
- declare const Component: FC<Props> & Static;
9
- export default Component;
10
- //# sourceMappingURL=component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Iterator/component.tsx"],"names":[],"mappings":"AAAA,OAAc,EAEZ,KAAK,EAAE,EAIR,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,KAAK,EAA2C,MAAM,SAAS,CAAA;AAE7E,QAAA,MAAM,cAAc,+GASV,CAAA;AA6BV,KAAK,MAAM,GAAG;IACZ,UAAU,EAAE,IAAI,CAAA;IAChB,cAAc,EAAE,OAAO,cAAc,CAAA;CACtC,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,MAsN5B,CAAA;AAKD,eAAe,SAAS,CAAA"}
@@ -1,5 +0,0 @@
1
- import component from './component';
2
- import type { Props, PropsCallback, ObjectValue, ExtendedProps, ElementType } from './types';
3
- export type { Props, PropsCallback, ObjectValue, ExtendedProps, ElementType };
4
- export default component;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Iterator/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,EACV,KAAK,EACL,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACZ,MAAM,SAAS,CAAA;AAEhB,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,CAAA;AAE7E,eAAe,SAAS,CAAA"}
@@ -1,60 +0,0 @@
1
- import type { ComponentType, ForwardRefExoticComponent, ReactNode } from 'react';
2
- import { type HTMLTags } from '@vitus-labs/core';
3
- export type MaybeNull = undefined | null;
4
- export type TObj = Record<string, unknown>;
5
- export type SimpleValue = string | number;
6
- export type ObjectValue = Partial<{
7
- id: SimpleValue;
8
- key: SimpleValue;
9
- itemId: SimpleValue;
10
- component: ElementType;
11
- }> & Record<string, unknown>;
12
- export type ElementType<T extends Record<string, unknown> = any> = ComponentType<T> | ForwardRefExoticComponent<T> | HTMLTags;
13
- export type ExtendedProps = {
14
- index: number;
15
- first: boolean;
16
- last: boolean;
17
- odd: boolean;
18
- even: boolean;
19
- position: number;
20
- };
21
- export type PropsCallback = TObj | ((itemProps: Record<string, never> | Record<string, SimpleValue> | ObjectValue, extendedProps: ExtendedProps) => TObj);
22
- export type Props = Partial<{
23
- /**
24
- * Valid React `children`
25
- */
26
- children: ReactNode;
27
- /**
28
- * Array of data passed to `component` prop
29
- */
30
- data: Array<SimpleValue | ObjectValue | MaybeNull>;
31
- /**
32
- * A React component to be rendered within list
33
- */
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
- */
40
- valueName: string;
41
- /**
42
- * A React component to be rendered within list. `wrapComponent`
43
- * wraps `component`. Therefore it can be used to enhance the behavior
44
- * of the list component
45
- */
46
- wrapComponent: ElementType;
47
- /**
48
- * Extension of **item** `component` props to be passed
49
- */
50
- itemProps: PropsCallback;
51
- /**
52
- * Extension of **item** `wrapComponent` props to be passed
53
- */
54
- wrapProps?: PropsCallback;
55
- /**
56
- * Extension of **item** `wrapComponent` props to be passed
57
- */
58
- itemKey?: keyof ObjectValue | ((item: SimpleValue | Omit<ObjectValue, 'component'>, index: number) => SimpleValue);
59
- }>;
60
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
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,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEhD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,IAAI,CAAA;AACxC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAC1C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AACzC,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;IAChC,EAAE,EAAE,WAAW,CAAA;IACf,GAAG,EAAE,WAAW,CAAA;IAChB,MAAM,EAAE,WAAW,CAAA;IACnB,SAAS,EAAE,WAAW,CAAA;CACvB,CAAC,GACA,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEzB,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,GAAG,IAC3D,aAAa,CAAC,CAAC,CAAC,GAChB,yBAAyB,CAAC,CAAC,CAAC,GAC5B,QAAQ,CAAA;AAEZ,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,OAAO,CAAA;IACb,GAAG,EAAE,OAAO,CAAA;IACZ,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,aAAa,GACrB,IAAI,GACJ,CAAC,CACC,SAAS,EACL,MAAM,CAAC,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"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { Props } from './types';
3
- declare const Component: React.ForwardRefExoticComponent<Partial<Props> & React.RefAttributes<unknown>>;
4
- export default Component;
5
- //# sourceMappingURL=component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAGzC,OAAO,KAAK,EAAE,KAAK,EAAa,MAAM,SAAS,CAAA;AAI/C,QAAA,MAAM,SAAS,gFA+Ed,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1,6 +0,0 @@
1
- export declare const INLINE_ELEMENTS_FLEX_FIX: {
2
- button: boolean;
3
- fieldset: boolean;
4
- legend: boolean;
5
- };
6
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB;;;;CAIpC,CAAA"}
@@ -1,3 +0,0 @@
1
- import component from './component';
2
- export default component;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAA;AAEnC,eAAe,SAAS,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const _default: import("styled-components/dist/types").IStyledComponentBase<"web", any> & (string & (import("styled-components/dist/types").BaseObject | Omit<import("react").ComponentClass<{}, any>, keyof import("react").Component<any, {}, any>> | Omit<import("react").FunctionComponent<{}>, keyof import("react").Component<any, {}, any>>));
2
- export default _default;
3
- //# sourceMappingURL=styled.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/styled.ts"],"names":[],"mappings":";AA2DA,wBAYC"}
@@ -1,42 +0,0 @@
1
- import { type ReactNode } from 'react';
2
- import type { HTMLTags } from '@vitus-labs/core';
3
- import type { ContentDirection, ContentAlignX, ContentAlignY, ContentBoolean, Css, Direction, AlignX, AlignY, ResponsiveBoolType, ExtendCss } from "../../types";
4
- export type Reference = unknown;
5
- export interface Props {
6
- children: ReactNode;
7
- tag: HTMLTags;
8
- block: ResponsiveBoolType;
9
- isInline: boolean;
10
- direction: Direction;
11
- alignX: AlignX;
12
- alignY: AlignY;
13
- equalCols: ResponsiveBoolType;
14
- extendCss: ExtendCss;
15
- dangerouslySetInnerHTML: any;
16
- }
17
- export interface StyledProps {
18
- $element: {
19
- direction: Direction;
20
- alignX: AlignX;
21
- alignY: AlignY;
22
- equalCols: ResponsiveBoolType;
23
- } & Partial<{
24
- block: ResponsiveBoolType;
25
- extraStyles: ExtendCss;
26
- childFix: true;
27
- parentFix: true;
28
- }>;
29
- $childFix?: true;
30
- }
31
- export type ThemeProps = {
32
- direction: ContentDirection;
33
- alignX: ContentAlignX;
34
- alignY: ContentAlignY;
35
- equalCols: ContentBoolean;
36
- } & Partial<{
37
- block: ContentBoolean;
38
- extraStyles: Css;
39
- childFix: true;
40
- parentFix: true;
41
- }>;
42
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,cAAc,EACd,GAAG,EACH,SAAS,EACT,MAAM,EACN,MAAM,EACN,kBAAkB,EAClB,SAAS,EACV,oBAAe;AAEhB,MAAM,MAAM,SAAS,GAAG,OAAO,CAAA;AAE/B,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,GAAG,EAAE,QAAQ,CAAA;IACb,KAAK,EAAE,kBAAkB,CAAA;IACzB,QAAQ,EAAE,OAAO,CAAA;IACjB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,kBAAkB,CAAA;IAC7B,SAAS,EAAE,SAAS,CAAA;IACpB,uBAAuB,EAAE,GAAG,CAAA;CAC7B;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE;QACR,SAAS,EAAE,SAAS,CAAA;QACpB,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,EAAE,MAAM,CAAA;QACd,SAAS,EAAE,kBAAkB,CAAA;KAC9B,GAAG,OAAO,CAAC;QACV,KAAK,EAAE,kBAAkB,CAAA;QACzB,WAAW,EAAE,SAAS,CAAA;QACtB,QAAQ,EAAE,IAAI,CAAA;QACd,SAAS,EAAE,IAAI,CAAA;KAChB,CAAC,CAAA;IACF,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,gBAAgB,CAAA;IAC3B,MAAM,EAAE,aAAa,CAAA;IACrB,MAAM,EAAE,aAAa,CAAA;IACrB,SAAS,EAAE,cAAc,CAAA;CAC1B,GAAG,OAAO,CAAC;IACV,KAAK,EAAE,cAAc,CAAA;IACrB,WAAW,EAAE,GAAG,CAAA;IAChB,QAAQ,EAAE,IAAI,CAAA;IACd,SAAS,EAAE,IAAI,CAAA;CAChB,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- type IsWebFixNeeded = (tag?: string) => boolean;
2
- export declare const isWebFixNeeded: IsWebFixNeeded;
3
- export {};
4
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/helpers/Wrapper/utils.ts"],"names":[],"mappings":"AAGA,KAAK,cAAc,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,OAAO,CAAA;AAC/C,eAAO,MAAM,cAAc,EAAE,cAG5B,CAAA"}
@@ -1,4 +0,0 @@
1
- import Wrapper from './Wrapper';
2
- import Content from './Content';
3
- export { Wrapper, Content };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -1,18 +0,0 @@
1
- import { Provider } from '@vitus-labs/unistyle';
2
- import Element, { withEqualSizeBeforeAfter } from "./Element";
3
- import type { Props as ElementProps } from "./Element";
4
- import List, { withActiveState } from "./List";
5
- import type { Props as ListProps } from "./List";
6
- import Overlay, { useOverlay, OverlayProvider } from "./Overlay";
7
- import type { Props as OverlayProps, UseOverlayProps } from "./Overlay";
8
- import Portal from "./Portal";
9
- import type { Props as PortalProps } from "./Portal";
10
- import Text from "./Text";
11
- import type { Props as TextProps } from "./Text";
12
- import Util from "./Util";
13
- import type { Props as UtilProps } from "./Util";
14
- import type { Props as IteratorProps, PropsCallback, ObjectValue, ExtendedProps, ElementType } from "./helpers/Iterator";
15
- import type { AlignX, AlignY, Content, Direction, ResponsiveBoolType, ContentBoolean, Responsive, ExtendCss, InnerRef } from "./types";
16
- export type { ElementProps, ListProps, OverlayProps, UseOverlayProps, PortalProps, TextProps, UtilProps, IteratorProps, AlignX, AlignY, Content, Direction, ResponsiveBoolType, ContentBoolean, Responsive, ExtendCss, InnerRef, PropsCallback, ObjectValue, ExtendedProps, ElementType, };
17
- export { Element, withEqualSizeBeforeAfter, withActiveState, List, Overlay, useOverlay, OverlayProvider, Portal, Text, Util, Provider, };
18
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,OAAO,EAAE,EAAE,wBAAwB,EAAE,kBAAiB;AAC7D,OAAO,KAAK,EAAE,KAAK,IAAI,YAAY,EAAE,kBAAiB;AACtD,OAAO,IAAI,EAAE,EAAE,eAAe,EAAE,eAAc;AAC9C,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,eAAc;AAChD,OAAO,OAAO,EAAE,EAAE,UAAU,EAAE,eAAe,EAAE,kBAAiB;AAChE,OAAO,KAAK,EAAE,KAAK,IAAI,YAAY,EAAE,eAAe,EAAE,kBAAiB;AACvE,OAAO,MAAM,iBAAgB;AAC7B,OAAO,KAAK,EAAE,KAAK,IAAI,WAAW,EAAE,iBAAgB;AACpD,OAAO,IAAI,eAAc;AACzB,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,eAAc;AAChD,OAAO,IAAI,eAAc;AACzB,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,eAAc;AAChD,OAAO,KAAK,EACV,KAAK,IAAI,aAAa,EACtB,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,EACZ,2BAA0B;AAC3B,OAAO,KAAK,EACV,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,SAAS,EACT,QAAQ,EACT,gBAAe;AAEhB,YAAY,EACV,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,SAAS,EACT,SAAS,EACT,aAAa,EAEb,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACT,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,SAAS,EACT,QAAQ,EAER,aAAa,EACb,WAAW,EACX,aAAa,EACb,WAAW,GACZ,CAAA;AAED,OAAO,EACL,OAAO,EACP,wBAAwB,EACxB,eAAe,EACf,IAAI,EACJ,OAAO,EACP,UAAU,EACV,eAAe,EACf,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,CAAA"}
@@ -1,51 +0,0 @@
1
- import type { ComponentType, FC, ForwardedRef, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
2
- import type { MakeItResponsive } from '@vitus-labs/unistyle';
3
- import type { BreakpointKeys } from '@vitus-labs/core';
4
- import { config, render } from '@vitus-labs/core';
5
- export type ResponsiveStylesCallback = Parameters<MakeItResponsive>[0]['styles'];
6
- type ExtractNullableKeys<T> = {
7
- [P in keyof T as T[P] extends null | undefined ? never : P]: T[P];
8
- };
9
- type Id<T> = T extends infer U ? {
10
- [K in keyof U]: U[K];
11
- } : never;
12
- type SpreadTwo<L, R> = Id<Pick<L, Exclude<keyof L, keyof R>> & R>;
13
- type Spread<A extends readonly [...any]> = A extends [infer L, ...infer R] ? SpreadTwo<L, Spread<R>> : unknown;
14
- export type MergeTypes<A extends readonly [...any]> = ExtractNullableKeys<Spread<A>>;
15
- export type SimpleHoc<P extends Record<string, unknown> = {}> = (WrappedComponent: ComponentType<P>) => ComponentType<P>;
16
- export type InnerRef = ForwardedRef<any>;
17
- export type CssCallback = (css: typeof config.css) => ReturnType<typeof css>;
18
- export type Css = CssCallback | string;
19
- export type isEmpty = null | undefined;
20
- export type Content = Parameters<typeof render>['0'];
21
- export type ContentAlignX = 'left' | 'center' | 'right' | 'spaceBetween' | 'spaceAround' | 'block';
22
- export type ContentAlignY = 'top' | 'center' | 'bottom' | 'spaceBetween' | 'spaceAround' | 'block';
23
- export type ContentDirection = 'inline' | 'rows' | 'reverseInline' | 'reverseRows';
24
- export type ContentBoolean = boolean;
25
- export type ContentSimpleValue = string | number;
26
- export type Ref = HTMLElement;
27
- export type AlignY = ContentAlignY | ContentAlignY[] | Partial<Record<BreakpointKeys, ContentAlignY>>;
28
- export type AlignX = ContentAlignX | ContentAlignX[] | Partial<Record<BreakpointKeys, ContentAlignX>>;
29
- export type Direction = ContentDirection | ContentDirection[] | Partial<Record<BreakpointKeys, ContentDirection>>;
30
- export type ResponsiveBoolType = ContentBoolean | ContentBoolean[] | Partial<Record<BreakpointKeys, ContentBoolean>>;
31
- export type Responsive = ContentSimpleValue | ContentSimpleValue[] | Partial<Record<BreakpointKeys, number | string>>;
32
- export type ExtendCss = Css | Css[] | Partial<Record<BreakpointKeys, Css>>;
33
- export type ExtractProps<TComponentOrTProps> = TComponentOrTProps extends ComponentType<infer TProps> ? TProps : TComponentOrTProps;
34
- export type VLForwardedComponent<P extends Record<string, unknown> = {}> = ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<any>> & VLStatic;
35
- export type VLComponent<P extends Record<string, any> = {}> = FC<P> & VLStatic;
36
- export interface VLStatic {
37
- /**
38
- * React displayName
39
- */
40
- displayName?: string | undefined;
41
- /**
42
- * package name
43
- */
44
- pkgName?: string;
45
- /**
46
- * component name
47
- */
48
- VITUS_LABS__COMPONENT?: `@vitus-labs/${string}`;
49
- }
50
- export {};
51
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"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"}