@cfx-dev/ui-components 0.0.5

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 (188) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -0
  3. package/dist/Button.module-Z6njvP9Z.js +17 -0
  4. package/dist/Combination-AG9vHdSx.js +1478 -0
  5. package/dist/Icons-B26SczGZ.js +162 -0
  6. package/dist/Rail-DoYzqKk4.js +89 -0
  7. package/dist/assets/Avatar.css +1 -0
  8. package/dist/assets/Badge.css +1 -0
  9. package/dist/assets/Box.css +1 -0
  10. package/dist/assets/Button.css +1 -0
  11. package/dist/assets/Center.css +1 -0
  12. package/dist/assets/Checkbox.css +1 -0
  13. package/dist/assets/ControlBox.css +1 -0
  14. package/dist/assets/CountryFlag.css +1 -0
  15. package/dist/assets/Decorate.css +1 -0
  16. package/dist/assets/Dot.css +1 -0
  17. package/dist/assets/Flex.css +1 -0
  18. package/dist/assets/FlexRestricter.css +1 -0
  19. package/dist/assets/Flyout.css +1 -0
  20. package/dist/assets/Icon.css +1 -0
  21. package/dist/assets/Indicator.css +1 -0
  22. package/dist/assets/InfoPanel.css +1 -0
  23. package/dist/assets/Input.css +1 -0
  24. package/dist/assets/Interactive.css +1 -0
  25. package/dist/assets/Island.css +1 -0
  26. package/dist/assets/Loaf.css +1 -0
  27. package/dist/assets/Modal.css +1 -0
  28. package/dist/assets/NavList.css +1 -0
  29. package/dist/assets/Overlay.css +1 -0
  30. package/dist/assets/Pad.css +1 -0
  31. package/dist/assets/Page.css +1 -0
  32. package/dist/assets/Popover.css +1 -0
  33. package/dist/assets/PremiumBadge.css +1 -0
  34. package/dist/assets/Prose.css +1 -0
  35. package/dist/assets/Radio.css +1 -0
  36. package/dist/assets/Rail.css +1 -0
  37. package/dist/assets/RichInput.css +1 -0
  38. package/dist/assets/Select.css +1 -0
  39. package/dist/assets/Separator.css +1 -0
  40. package/dist/assets/Shroud.css +1 -0
  41. package/dist/assets/Spacer.css +1 -0
  42. package/dist/assets/Switch.css +1 -0
  43. package/dist/assets/Tabular.css +1 -0
  44. package/dist/assets/Text.css +1 -0
  45. package/dist/assets/Textarea.css +1 -0
  46. package/dist/assets/Title.css +1 -0
  47. package/dist/assets/global.css +1 -0
  48. package/dist/assets/themes.css +1 -0
  49. package/dist/components/Avatar/Avatar.d.ts +8 -0
  50. package/dist/components/Avatar/Avatar.js +22 -0
  51. package/dist/components/BackdropPortal/BackdropPortal.d.ts +6 -0
  52. package/dist/components/BackdropPortal/BackdropPortal.js +11 -0
  53. package/dist/components/Badge/Badge.d.ts +9 -0
  54. package/dist/components/Badge/Badge.js +18 -0
  55. package/dist/components/Button/Button.d.ts +22 -0
  56. package/dist/components/Button/Button.js +56 -0
  57. package/dist/components/Button/ButtonBar.d.ts +6 -0
  58. package/dist/components/Button/ButtonBar.js +13 -0
  59. package/dist/components/Checkbox/Checkbox.d.ts +12 -0
  60. package/dist/components/Checkbox/Checkbox.js +42 -0
  61. package/dist/components/ControlBox/ControlBox.d.ts +9 -0
  62. package/dist/components/ControlBox/ControlBox.js +19 -0
  63. package/dist/components/CountryFlag/CountryFlag.d.ts +9 -0
  64. package/dist/components/CountryFlag/CountryFlag.js +21 -0
  65. package/dist/components/Decorate/Decorate.d.ts +9 -0
  66. package/dist/components/Decorate/Decorate.js +20 -0
  67. package/dist/components/Dot/Dot.d.ts +6 -0
  68. package/dist/components/Dot/Dot.js +14 -0
  69. package/dist/components/Flyout/Flyout.d.ts +17 -0
  70. package/dist/components/Flyout/Flyout.js +60 -0
  71. package/dist/components/Icon/Icon.d.ts +11 -0
  72. package/dist/components/Icon/Icon.js +24 -0
  73. package/dist/components/Icons.d.ts +38 -0
  74. package/dist/components/Icons.js +6 -0
  75. package/dist/components/Indicator/Indicator.d.ts +6 -0
  76. package/dist/components/Indicator/Indicator.js +19 -0
  77. package/dist/components/InfoPanel/InfoPanel.d.ts +13 -0
  78. package/dist/components/InfoPanel/InfoPanel.js +34 -0
  79. package/dist/components/Input/Input.d.ts +37 -0
  80. package/dist/components/Input/Input.js +96 -0
  81. package/dist/components/Input/RichInput.d.ts +18 -0
  82. package/dist/components/Input/RichInput.js +63 -0
  83. package/dist/components/Interactive/Interactive.d.ts +6 -0
  84. package/dist/components/Interactive/Interactive.js +18 -0
  85. package/dist/components/Island/Island.d.ts +26 -0
  86. package/dist/components/Island/Island.js +34 -0
  87. package/dist/components/Layout/Box/Box.d.ts +21 -0
  88. package/dist/components/Layout/Box/Box.js +38 -0
  89. package/dist/components/Layout/Center/Center.d.ts +9 -0
  90. package/dist/components/Layout/Center/Center.js +22 -0
  91. package/dist/components/Layout/Flex/Flex.d.ts +26 -0
  92. package/dist/components/Layout/Flex/Flex.js +75 -0
  93. package/dist/components/Layout/Flex/FlexRestricter.d.ts +12 -0
  94. package/dist/components/Layout/Flex/FlexRestricter.js +20 -0
  95. package/dist/components/Layout/Pad/Pad.d.ts +15 -0
  96. package/dist/components/Layout/Pad/Pad.js +36 -0
  97. package/dist/components/Layout/Page/Page.d.ts +8 -0
  98. package/dist/components/Layout/Page/Page.js +21 -0
  99. package/dist/components/Layout/Scrollable/Rail.d.ts +13 -0
  100. package/dist/components/Layout/Scrollable/Rail.js +10 -0
  101. package/dist/components/Layout/Scrollable/Scrollable.d.ts +14 -0
  102. package/dist/components/Layout/Scrollable/Scrollable.js +89 -0
  103. package/dist/components/Layout/Scrollable/VirtualScrollable.d.ts +11 -0
  104. package/dist/components/Layout/Scrollable/VirtualScrollable.js +426 -0
  105. package/dist/components/Loaf/Loaf.d.ts +12 -0
  106. package/dist/components/Loaf/Loaf.js +27 -0
  107. package/dist/components/Modal/Modal.d.ts +18 -0
  108. package/dist/components/Modal/Modal.js +42 -0
  109. package/dist/components/NavList/NavList.d.ts +14 -0
  110. package/dist/components/NavList/NavList.js +33 -0
  111. package/dist/components/OnScreenSensor.d.ts +5 -0
  112. package/dist/components/OnScreenSensor.js +26 -0
  113. package/dist/components/Overlay/Overlay.d.ts +20 -0
  114. package/dist/components/Overlay/Overlay.js +28 -0
  115. package/dist/components/Popover/Popover.d.ts +12 -0
  116. package/dist/components/Popover/Popover.js +40 -0
  117. package/dist/components/PremiumBadge/PremiumBadge.d.ts +15 -0
  118. package/dist/components/PremiumBadge/PremiumBadge.js +38 -0
  119. package/dist/components/Prose/Prose.d.ts +6 -0
  120. package/dist/components/Prose/Prose.js +12 -0
  121. package/dist/components/Radio/Radio.d.ts +12 -0
  122. package/dist/components/Radio/Radio.js +45 -0
  123. package/dist/components/Select/Select.d.ts +16 -0
  124. package/dist/components/Select/Select.js +3293 -0
  125. package/dist/components/Separator/Separator.d.ts +8 -0
  126. package/dist/components/Separator/Separator.js +29 -0
  127. package/dist/components/Shroud/Shroud.d.ts +6 -0
  128. package/dist/components/Shroud/Shroud.js +41 -0
  129. package/dist/components/Spacer/Spacer.d.ts +5 -0
  130. package/dist/components/Spacer/Spacer.js +26 -0
  131. package/dist/components/Style/Style.d.ts +12 -0
  132. package/dist/components/Style/Style.js +23 -0
  133. package/dist/components/Switch/Switch.d.ts +17 -0
  134. package/dist/components/Switch/Switch.js +65 -0
  135. package/dist/components/Symbols.d.ts +5 -0
  136. package/dist/components/Symbols.js +7 -0
  137. package/dist/components/Tabular/Tabular.d.ts +30 -0
  138. package/dist/components/Tabular/Tabular.js +64 -0
  139. package/dist/components/Text/Text.d.ts +8 -0
  140. package/dist/components/Text/Text.js +61 -0
  141. package/dist/components/Text/Text.types.d.ts +33 -0
  142. package/dist/components/Text/Text.types.js +1 -0
  143. package/dist/components/Textarea/Textarea.d.ts +15 -0
  144. package/dist/components/Textarea/Textarea.js +57 -0
  145. package/dist/components/Title/Title.d.ts +13 -0
  146. package/dist/components/Title/Title.js +113 -0
  147. package/dist/components/outlets.d.ts +10 -0
  148. package/dist/components/outlets.js +7 -0
  149. package/dist/components/ui.d.ts +28 -0
  150. package/dist/components/ui.js +29 -0
  151. package/dist/functional-C0pE183N.js +30 -0
  152. package/dist/hooks-Bv1kQUpO.js +65 -0
  153. package/dist/index-C75OpfGQ.js +19577 -0
  154. package/dist/links-CgOD-Vfj.js +1142 -0
  155. package/dist/main.d.ts +68 -0
  156. package/dist/main.js +118 -0
  157. package/dist/math-i2ceybzU.js +16 -0
  158. package/dist/medium-Dc7QRuE0.js +118 -0
  159. package/dist/outlet-C4wpavcH.js +25 -0
  160. package/dist/outlets-BsMV5obW.js +13 -0
  161. package/dist/string-NVxCUbqk.js +54 -0
  162. package/dist/styles-scss/_colors.scss +211 -0
  163. package/dist/styles-scss/_ui.scss +195 -0
  164. package/dist/styles-scss/global.scss +71 -0
  165. package/dist/styles-scss/themes/dark.scss +24 -0
  166. package/dist/styles-scss/themes/light.scss +54 -0
  167. package/dist/styles-scss/themes.scss +2 -0
  168. package/dist/styles-scss/tokens.scss +274 -0
  169. package/dist/tslib.es6-Dd_EkEfR.js +48 -0
  170. package/dist/utils/clsx.d.ts +7 -0
  171. package/dist/utils/clsx.js +14 -0
  172. package/dist/utils/functional.d.ts +5 -0
  173. package/dist/utils/functional.js +8 -0
  174. package/dist/utils/getValue.d.ts +2 -0
  175. package/dist/utils/getValue.js +6 -0
  176. package/dist/utils/hooks.d.ts +13 -0
  177. package/dist/utils/hooks.js +9 -0
  178. package/dist/utils/links.d.ts +27 -0
  179. package/dist/utils/links.js +14 -0
  180. package/dist/utils/math.d.ts +2 -0
  181. package/dist/utils/math.js +5 -0
  182. package/dist/utils/mergeRefs.d.ts +3 -0
  183. package/dist/utils/mergeRefs.js +10 -0
  184. package/dist/utils/outlet.d.ts +4 -0
  185. package/dist/utils/outlet.js +6 -0
  186. package/dist/utils/string.d.ts +6 -0
  187. package/dist/utils/string.js +9 -0
  188. package/package.json +82 -0
@@ -0,0 +1,60 @@
1
+ import { jsxs as i, jsx as s } from "react/jsx-runtime";
2
+ import m from "react";
3
+ import { F as k } from "../../Combination-AG9vHdSx.js";
4
+ import { Button as p } from "../Button/Button.js";
5
+ import { I as h } from "../../Icons-B26SczGZ.js";
6
+ import { Interactive as f } from "../Interactive/Interactive.js";
7
+ import { clsx as l } from "../../utils/clsx.js";
8
+ import { n as u } from "../../functional-C0pE183N.js";
9
+ import { b as v } from "../../hooks-Bv1kQUpO.js";
10
+ import { a as b } from "../../outlet-C4wpavcH.js";
11
+ import '../../assets/Flyout.css';const z = "_root_11ks7_1", N = "_holder_11ks7_6", C = "_active_11ks7_15", y = "_backdrop_11ks7_15", x = "_mask_11ks7_28", F = "_content_11ks7_90", I = "_header_11ks7_95", L = "_title_11ks7_101", e = {
12
+ root: z,
13
+ "size-normal": "_size-normal_11ks7_6",
14
+ holder: N,
15
+ "size-small": "_size-small_11ks7_9",
16
+ "size-xsmall": "_size-xsmall_11ks7_12",
17
+ active: C,
18
+ backdrop: y,
19
+ "backdrop-appearance": "_backdrop-appearance_11ks7_1",
20
+ mask: x,
21
+ "holder-appearance": "_holder-appearance_11ks7_1",
22
+ content: F,
23
+ header: I,
24
+ title: L
25
+ }, g = b("overlay-outlet");
26
+ function j(c) {
27
+ const {
28
+ disabled: o = !1,
29
+ size: r = "normal",
30
+ onClose: t = u,
31
+ children: n,
32
+ holderClassName: d
33
+ } = c;
34
+ m.useEffect(() => {
35
+ if (o)
36
+ return;
37
+ const a = document.getElementById("cfxui-root");
38
+ return a == null || a.classList.add("shrink"), () => a == null ? void 0 : a.classList.remove("shrink");
39
+ }, [o]), v(t);
40
+ const _ = l(e.root, e[`size-${r}`], {
41
+ [e.active]: !o
42
+ });
43
+ return /* @__PURE__ */ s(g, { children: /* @__PURE__ */ i("div", { className: _, children: [
44
+ /* @__PURE__ */ s(f, { showPointer: !1, className: e.backdrop, onClick: t }),
45
+ /* @__PURE__ */ s("div", { className: e.mask, children: /* @__PURE__ */ s("div", { className: l(e.holder, d), children: /* @__PURE__ */ s(k, { disabled: !!o, className: e.content, children: n }) }) })
46
+ ] }) });
47
+ }
48
+ j.Header = m.forwardRef(function(o, r) {
49
+ const {
50
+ onClose: t,
51
+ children: n
52
+ } = o;
53
+ return /* @__PURE__ */ i("div", { ref: r, className: e.header, children: [
54
+ /* @__PURE__ */ s("div", { className: e.title, children: n }),
55
+ !!t && /* @__PURE__ */ s(p, { size: "large", icon: h.exit, onClick: t })
56
+ ] });
57
+ });
58
+ export {
59
+ j as Flyout
60
+ };
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { TextColor, TextOpacity, TextSize } from '../Text/Text.types';
3
+
4
+ export interface IconProps {
5
+ color?: TextColor;
6
+ size?: TextSize;
7
+ opacity?: TextOpacity;
8
+ className?: string;
9
+ children: React.ReactNode;
10
+ }
11
+ export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,24 @@
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import l from "react";
3
+ import { TEXT_OPACITY_MAP as p } from "../Text/Text.js";
4
+ import { ui as o } from "../ui.js";
5
+ import { clsx as _ } from "../../utils/clsx.js";
6
+ import '../../assets/Icon.css';const d = "_root_sqbzn_1", u = {
7
+ root: d
8
+ }, h = l.forwardRef(function(t, r) {
9
+ const {
10
+ color: c = "inherit",
11
+ size: s = "normal",
12
+ opacity: n = "100",
13
+ className: i,
14
+ children: e
15
+ } = t, m = _(u.root, i), a = {
16
+ color: o.color(c),
17
+ fontSize: o.fontSize(s),
18
+ opacity: p[n]
19
+ };
20
+ return /* @__PURE__ */ f("div", { ref: r, style: a, className: m, children: e });
21
+ });
22
+ export {
23
+ h as Icon
24
+ };
@@ -0,0 +1,38 @@
1
+ export declare namespace Icons {
2
+ const exit: import("react/jsx-runtime").JSX.Element;
3
+ const settings: import("react/jsx-runtime").JSX.Element;
4
+ const changelog: import("react/jsx-runtime").JSX.Element;
5
+ const storymode: import("react/jsx-runtime").JSX.Element;
6
+ const replayEditor: import("react/jsx-runtime").JSX.Element;
7
+ const tipInfo: import("react/jsx-runtime").JSX.Element;
8
+ const remove: import("react/jsx-runtime").JSX.Element;
9
+ const externalLink: import("react/jsx-runtime").JSX.Element;
10
+ const tags: import("react/jsx-runtime").JSX.Element;
11
+ const checkmark: import("react/jsx-runtime").JSX.Element;
12
+ const playersCount: import("react/jsx-runtime").JSX.Element;
13
+ const last24h: import("react/jsx-runtime").JSX.Element;
14
+ const statusLevelAllGood: import("react/jsx-runtime").JSX.Element;
15
+ const statusLevelMinor: import("react/jsx-runtime").JSX.Element;
16
+ const statusLevelMajor: import("react/jsx-runtime").JSX.Element;
17
+ const favoriteInactive: import("react/jsx-runtime").JSX.Element;
18
+ const favoriteActive: import("react/jsx-runtime").JSX.Element;
19
+ const account: import("react/jsx-runtime").JSX.Element;
20
+ const accountLoaded: import("react/jsx-runtime").JSX.Element;
21
+ const serversListAll: import("react/jsx-runtime").JSX.Element;
22
+ const serversListSupporters: import("react/jsx-runtime").JSX.Element;
23
+ const serversListHistory: import("react/jsx-runtime").JSX.Element;
24
+ const serversListFavorites: import("react/jsx-runtime").JSX.Element;
25
+ const serverLastConnected: import("react/jsx-runtime").JSX.Element;
26
+ const serversFeatured: import("react/jsx-runtime").JSX.Element;
27
+ const serversFeaturedUnstyled: import("react/jsx-runtime").JSX.Element;
28
+ const serverBoost: import("react/jsx-runtime").JSX.Element;
29
+ const serverBoostUnstyled: import("react/jsx-runtime").JSX.Element;
30
+ const serverBurst: import("react/jsx-runtime").JSX.Element;
31
+ }
32
+ export declare const BrandIcon: {
33
+ gta5: import("react/jsx-runtime").JSX.Element;
34
+ rdr3: import("react/jsx-runtime").JSX.Element;
35
+ ny: import("react/jsx-runtime").JSX.Element;
36
+ cfxre: import("react/jsx-runtime").JSX.Element;
37
+ ROS: import("react/jsx-runtime").JSX.Element;
38
+ };
@@ -0,0 +1,6 @@
1
+ import "react/jsx-runtime";
2
+ import { B as n, I as s } from "../Icons-B26SczGZ.js";
3
+ export {
4
+ n as BrandIcon,
5
+ s as Icons
6
+ };
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface IndicatorProps {
4
+ className?: string;
5
+ }
6
+ export declare const Indicator: React.NamedExoticComponent<IndicatorProps>;
@@ -0,0 +1,19 @@
1
+ import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
+ import i from "react";
3
+ import { clsx as a } from "../../utils/clsx.js";
4
+ import '../../assets/Indicator.css';const s = "_root_2gp9n_1", e = "_indicator_2gp9n_1", r = {
5
+ root: s,
6
+ indicator: e
7
+ }, c = { animationDelay: "0ms" }, m = { animationDelay: "50ms" }, d = { animationDelay: "100ms" }, l = { animationDelay: "150ms" }, v = i.memo(function({
8
+ className: t
9
+ }) {
10
+ return /* @__PURE__ */ n("div", { className: a(r.root, t), children: [
11
+ /* @__PURE__ */ o("div", { style: c }),
12
+ /* @__PURE__ */ o("div", { style: m }),
13
+ /* @__PURE__ */ o("div", { style: d }),
14
+ /* @__PURE__ */ o("div", { style: l })
15
+ ] });
16
+ });
17
+ export {
18
+ v as Indicator
19
+ };
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type InfoPanelType = 'default' | 'error' | 'success' | 'warning';
4
+ export type InfoPanelSize = 'auto' | 'small' | 'normal' | 'large';
5
+ export interface InfoPanelProps {
6
+ type?: InfoPanelType;
7
+ size?: InfoPanelSize;
8
+ icon?: React.ReactNode;
9
+ children?: React.ReactNode;
10
+ className?: string;
11
+ inline?: boolean;
12
+ }
13
+ export declare function InfoPanel(props: InfoPanelProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import { clsx as m } from "../../utils/clsx.js";
3
+ import '../../assets/InfoPanel.css';const p = "_root_43rns_1", y = "_inline_43rns_37", d = "_icon_43rns_58", f = "_content_43rns_61", n = {
4
+ root: p,
5
+ "type-default": "_type-default_43rns_11",
6
+ "type-error": "_type-error_43rns_15",
7
+ "type-success": "_type-success_43rns_19",
8
+ "type-warning": "_type-warning_43rns_23",
9
+ "size-small": "_size-small_43rns_27",
10
+ "size-normal": "_size-normal_43rns_30",
11
+ "size-large": "_size-large_43rns_33",
12
+ inline: y,
13
+ icon: d,
14
+ content: f
15
+ };
16
+ function N(o) {
17
+ const {
18
+ type: t = "default",
19
+ size: r = "auto",
20
+ icon: s,
21
+ children: i,
22
+ className: _,
23
+ inline: c = !1
24
+ } = o, l = m(n.root, _, n[`type-${t}`], n[`size-${r}`], {
25
+ [n.inline]: c
26
+ });
27
+ return /* @__PURE__ */ a("div", { className: l, children: [
28
+ !!s && /* @__PURE__ */ e("div", { className: n.icon, children: s }),
29
+ /* @__PURE__ */ e("div", { className: n.content, children: i })
30
+ ] });
31
+ }
32
+ export {
33
+ N as InfoPanel
34
+ };
@@ -0,0 +1,37 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type InputSize = 'small' | 'normal' | 'large';
4
+ type TypeSpecific = {
5
+ type?: 'text' | 'password' | 'search';
6
+ value: string;
7
+ onChange(value: string): void;
8
+ } | {
9
+ type: 'number';
10
+ min?: number | string;
11
+ max?: number | string;
12
+ value: number | string;
13
+ onChange(value: string): void;
14
+ };
15
+ export type InputProps = TypeSpecific & {
16
+ fullWidth?: boolean;
17
+ size?: InputSize;
18
+ tabIndex?: number;
19
+ disabled?: boolean;
20
+ autofocus?: boolean;
21
+ pattern?: RegExp;
22
+ className?: string;
23
+ backdropBlur?: boolean;
24
+ inputClassName?: string;
25
+ inputRef?: React.Ref<HTMLInputElement>;
26
+ label?: React.ReactNode;
27
+ placeholder?: string;
28
+ description?: React.ReactNode;
29
+ error?: boolean;
30
+ decorator?: React.ReactNode | (() => React.ReactNode);
31
+ onSubmit?: () => void;
32
+ onKeyDown?(event: React.KeyboardEvent<HTMLInputElement>): void | boolean;
33
+ showLoader?: boolean;
34
+ noSpellCheck?: boolean;
35
+ };
36
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLDivElement>>;
37
+ export {};
@@ -0,0 +1,96 @@
1
+ import { jsxs as r, jsx as c } from "react/jsx-runtime";
2
+ import n from "react";
3
+ import { Indicator as q } from "../Indicator/Indicator.js";
4
+ import { clsx as H } from "../../utils/clsx.js";
5
+ import { getValue as J } from "../../utils/getValue.js";
6
+ import { u as i } from "../../hooks-Bv1kQUpO.js";
7
+ import '../../assets/Input.css';const O = "_root_gmtev_1", P = "_input_gmtev_1", Q = "_small_gmtev_8", U = "_large_gmtev_12", Y = "_decorator_gmtev_60", Z = "_error_gmtev_68", $ = "_disabled_gmtev_72", ee = "_description_gmtev_106", e = {
8
+ root: O,
9
+ input: P,
10
+ small: Q,
11
+ large: U,
12
+ "full-width": "_full-width_gmtev_57",
13
+ decorator: Y,
14
+ error: Z,
15
+ disabled: $,
16
+ description: ee,
17
+ "backdrop-blur": "_backdrop-blur_gmtev_111"
18
+ }, ce = n.forwardRef(function(t, g) {
19
+ const {
20
+ label: d,
21
+ value: v,
22
+ onChange: N,
23
+ onSubmit: C,
24
+ onKeyDown: k = () => !1,
25
+ pattern: a,
26
+ tabIndex: w,
27
+ error: y = !1,
28
+ fullWidth: I = !1,
29
+ showLoader: u = !1,
30
+ noSpellCheck: R = !1,
31
+ autofocus: x = !1,
32
+ disabled: m = !1,
33
+ className: E = "",
34
+ placeholder: D = "",
35
+ inputClassName: S = "",
36
+ inputRef: F,
37
+ description: _ = "",
38
+ type: K = "text",
39
+ size: A = "normal",
40
+ decorator: l,
41
+ backdropBlur: j = !1
42
+ } = t, G = t.type === "number" && (t.min ?? Number.MIN_SAFE_INTEGER) || void 0, M = t.type === "number" && (t.max ?? Number.MAX_SAFE_INTEGER) || void 0, f = n.useId(), p = i(N), T = i(k), b = i(C), V = n.useCallback(
43
+ (o) => {
44
+ const {
45
+ value: s
46
+ } = o.target;
47
+ if (a) {
48
+ a.test(s) && p.current(s);
49
+ return;
50
+ }
51
+ return p.current(s);
52
+ },
53
+ [a]
54
+ ), z = n.useCallback((o) => {
55
+ T.current(o) || b.current && o.key === "Enter" && b.current();
56
+ }, []), B = u || l ? /* @__PURE__ */ r("div", { className: e.decorator, children: [
57
+ !!u && /* @__PURE__ */ c(q, {}),
58
+ !!l && J(l)
59
+ ] }) : null, h = /* @__PURE__ */ r("div", { className: e.input, children: [
60
+ /* @__PURE__ */ c(
61
+ "input",
62
+ {
63
+ id: f,
64
+ ref: F,
65
+ type: K,
66
+ tabIndex: w,
67
+ autoFocus: x,
68
+ className: S,
69
+ value: v,
70
+ placeholder: D,
71
+ disabled: m,
72
+ onChange: V,
73
+ onKeyDown: z,
74
+ spellCheck: !R,
75
+ min: G,
76
+ max: M
77
+ }
78
+ ),
79
+ B
80
+ ] }), L = _ ? /* @__PURE__ */ c("div", { className: e.description, children: _ }) : null, W = d ? /* @__PURE__ */ r("label", { htmlFor: f, children: [
81
+ d,
82
+ h
83
+ ] }) : h, X = H(e.root, e[A], E, {
84
+ [e["full-width"]]: I,
85
+ [e.error]: y,
86
+ [e.disabled]: m,
87
+ [e["backdrop-blur"]]: j
88
+ });
89
+ return /* @__PURE__ */ r("div", { ref: g, className: X, children: [
90
+ W,
91
+ L
92
+ ] });
93
+ });
94
+ export {
95
+ ce as Input
96
+ };
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { InputSize } from './Input';
3
+
4
+ export interface RichInputProps {
5
+ size?: InputSize;
6
+ value: string;
7
+ onChange(value: string): void;
8
+ onFocus?(): void;
9
+ onBlur?(): void;
10
+ onSelect?(start: number | null, end: number | null, direction: HTMLInputElement['selectionDirection']): void;
11
+ onKeyDown?(event: React.KeyboardEvent<HTMLInputElement>): void;
12
+ rendered: React.ReactNode;
13
+ className?: string;
14
+ placeholder?: string;
15
+ autoFocus?: boolean;
16
+ withClearButton?: boolean;
17
+ }
18
+ export declare const RichInput: React.ForwardRefExoticComponent<RichInputProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,63 @@
1
+ import { jsxs as B, jsx as o } from "react/jsx-runtime";
2
+ import r from "react";
3
+ import { Button as D } from "../Button/Button.js";
4
+ import { I as F } from "../../Icons-B26SczGZ.js";
5
+ import { clsx as L } from "../../utils/clsx.js";
6
+ import { u as i } from "../../hooks-Bv1kQUpO.js";
7
+ import '../../assets/RichInput.css';const T = "_root_16on4_1", j = "_renderer_16on4_1", z = "_small_16on4_8", E = "_large_16on4_13", H = "_clear_16on4_95", t = {
8
+ root: T,
9
+ renderer: j,
10
+ small: z,
11
+ large: E,
12
+ clear: H
13
+ }, O = r.forwardRef(function(f, m) {
14
+ const {
15
+ size: d = "normal",
16
+ value: c,
17
+ onChange: p,
18
+ onFocus: _,
19
+ onBlur: h,
20
+ onSelect: g,
21
+ onKeyDown: C,
22
+ className: R,
23
+ rendered: S,
24
+ placeholder: x,
25
+ autoFocus: k,
26
+ withClearButton: I = !1
27
+ } = f, s = r.useRef(null), n = r.useRef(null), a = i(p), u = i(g), N = r.useCallback((e) => {
28
+ a.current(e.target.value);
29
+ }, []), b = r.useCallback(() => {
30
+ var e;
31
+ a.current(""), (e = s.current) == null || e.focus();
32
+ }, []), v = r.useCallback((e) => {
33
+ if (!u.current || !(e.target instanceof HTMLInputElement))
34
+ return;
35
+ const l = e.target;
36
+ u.current(l.selectionStart, l.selectionEnd, l.selectionDirection);
37
+ }, []), w = r.useCallback((e) => {
38
+ n.current && (n.current.scrollTop = e.target.scrollTop, n.current.scrollLeft = e.target.scrollLeft);
39
+ }, []), y = L(t.root, R, t[d]);
40
+ return /* @__PURE__ */ B("div", { ref: m, className: y, children: [
41
+ /* @__PURE__ */ o(
42
+ "input",
43
+ {
44
+ ref: s,
45
+ autoFocus: k,
46
+ type: "text",
47
+ value: c,
48
+ onChange: N,
49
+ placeholder: x,
50
+ onBlur: h,
51
+ onFocus: _,
52
+ onScroll: w,
53
+ onSelect: v,
54
+ onKeyDown: C
55
+ }
56
+ ),
57
+ /* @__PURE__ */ o("div", { ref: n, className: t.renderer, children: S }),
58
+ I && c && /* @__PURE__ */ o("div", { className: t.clear, children: /* @__PURE__ */ o(D, { size: "small", icon: F.exit, onClick: b }) })
59
+ ] });
60
+ });
61
+ export {
62
+ O as RichInput
63
+ };
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface InteractiveProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
4
+ showPointer?: boolean;
5
+ }
6
+ export declare const Interactive: React.ForwardRefExoticComponent<Omit<InteractiveProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,18 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import a from "react";
3
+ import { clsx as i } from "../../utils/clsx.js";
4
+ import '../../assets/Interactive.css';const f = "_root_1o2df_1", m = {
5
+ root: f
6
+ }, h = a.forwardRef(function(o, t) {
7
+ const {
8
+ showPointer: r = !0,
9
+ className: e,
10
+ ...s
11
+ } = o, c = i(e, {
12
+ [m.root]: r
13
+ });
14
+ return /* @__PURE__ */ n("div", { ref: t, className: c, ...s, children: o.children });
15
+ });
16
+ export {
17
+ h as Interactive
18
+ };
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare enum IslandCorner {
4
+ TopLeft = 1,
5
+ TopRight = 2,
6
+ BottomLeft = 4,
7
+ BottomRight = 8,
8
+ Top = 3,
9
+ Left = 5,
10
+ Right = 10,
11
+ Bottom = 12,
12
+ All = 15
13
+ }
14
+ export interface IslandProps {
15
+ grow?: boolean;
16
+ widthQ?: number;
17
+ /**
18
+ * Use IslandCorner enum to compose corner bits
19
+ *
20
+ * For example: two top corners would be `IslandCorner.TopLeft | IslandCorner.TopRight` or just `IslandCorner.Top`
21
+ */
22
+ straightCorner?: number;
23
+ children?: React.ReactNode;
24
+ className?: string;
25
+ }
26
+ export declare const Island: React.ForwardRefExoticComponent<IslandProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,34 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import h from "react";
3
+ import { ui as d } from "../ui.js";
4
+ import { clsx as c } from "../../utils/clsx.js";
5
+ import '../../assets/Island.css';const a = "_root_aa951_1", w = "_grow_aa951_15", t = {
6
+ root: a,
7
+ grow: w,
8
+ "no-round-border-top-left": "_no-round-border-top-left_aa951_19",
9
+ "no-round-border-top-right": "_no-round-border-top-right_aa951_22",
10
+ "no-round-border-bottom-left": "_no-round-border-bottom-left_aa951_25",
11
+ "no-round-border-bottom-right": "_no-round-border-bottom-right_aa951_28"
12
+ };
13
+ var R = /* @__PURE__ */ ((o) => (o[o.TopLeft = 1] = "TopLeft", o[o.TopRight = 2] = "TopRight", o[o.BottomLeft = 4] = "BottomLeft", o[o.BottomRight = 8] = "BottomRight", o[o.Top = 3] = "Top", o[o.Left = 5] = "Left", o[o.Right = 10] = "Right", o[o.Bottom = 12] = "Bottom", o[o.All = 15] = "All", o))(R || {});
14
+ const s = h.forwardRef(function(f, e) {
15
+ const {
16
+ grow: _ = !1,
17
+ widthQ: i = 0,
18
+ straightCorner: r = 0,
19
+ children: b,
20
+ className: g
21
+ } = f, p = c(t.root, g, {
22
+ [t.grow]: _,
23
+ [t["no-round-border-top-left"]]: r & 1,
24
+ [t["no-round-border-top-right"]]: r & 2,
25
+ [t["no-round-border-bottom-left"]]: r & 4,
26
+ [t["no-round-border-bottom-right"]]: r & 8
27
+ /* BottomRight */
28
+ }), m = {};
29
+ return i > 0 && (m.width = d.q(i)), /* @__PURE__ */ u("div", { className: p, style: m, ref: e, children: b });
30
+ });
31
+ export {
32
+ s as Island,
33
+ R as IslandCorner
34
+ };
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface BoxProps {
4
+ noOverflow?: boolean;
5
+ noShrink?: boolean;
6
+ grow?: boolean;
7
+ /**
8
+ * Number values is treated like quant multiplier
9
+ * String value used as is
10
+ */
11
+ width?: number | string;
12
+ /**
13
+ * Number values is treated like quant multiplier
14
+ * String value used as is
15
+ */
16
+ height?: number | string;
17
+ children?: React.ReactNode;
18
+ className?: string;
19
+ style?: React.CSSProperties;
20
+ }
21
+ export declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,38 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import g from "react";
3
+ import { useContextualStyle as u } from "../../Style/Style.js";
4
+ import { ui as d } from "../../ui.js";
5
+ import { clsx as x } from "../../../utils/clsx.js";
6
+ import '../../../assets/Box.css';const p = "_root_1e1ao_1", k = "_grow_1e1ao_7", r = {
7
+ root: p,
8
+ "no-overflow": "_no-overflow_1e1ao_1",
9
+ "no-shrink": "_no-shrink_1e1ao_4",
10
+ grow: k,
11
+ "no-grow": "_no-grow_1e1ao_10"
12
+ };
13
+ function f(t) {
14
+ return typeof t == "string" ? t : d.q(t);
15
+ }
16
+ const B = g.forwardRef(function(s, a) {
17
+ const {
18
+ noOverflow: w = !1,
19
+ noShrink: _ = !1,
20
+ grow: n = void 0,
21
+ width: e,
22
+ height: i,
23
+ children: l,
24
+ className: c
25
+ } = s, h = x(r.root, c, {
26
+ [r["no-overflow"]]: w,
27
+ [r["no-shrink"]]: _,
28
+ [r["no-grow"]]: n === !1,
29
+ [r.grow]: n === !0
30
+ }), o = {
31
+ ...u(),
32
+ ...s.style || {}
33
+ };
34
+ return (e || i) && (e && (o.width = f(e)), i && (o.height = f(i))), !o.width && n === !0 && (o.width = "1px"), /* @__PURE__ */ m("div", { ref: a, className: h, style: o, children: l });
35
+ });
36
+ export {
37
+ B as Box
38
+ };
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface CenterProps {
4
+ vertical?: boolean;
5
+ horizontal?: boolean;
6
+ className?: string;
7
+ children?: React.ReactNode;
8
+ }
9
+ export declare const Center: React.ForwardRefExoticComponent<CenterProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,22 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import i from "react";
3
+ import { clsx as _ } from "../../../utils/clsx.js";
4
+ import '../../../assets/Center.css';const f = "_root_gr1d9_1", m = "_vertical_gr1d9_4", d = "_horizontal_gr1d9_8", o = {
5
+ root: f,
6
+ vertical: m,
7
+ horizontal: d
8
+ }, g = i.forwardRef(function(r, t) {
9
+ const {
10
+ vertical: a = !1,
11
+ horizontal: e = !1,
12
+ className: c,
13
+ children: l
14
+ } = r, n = _(o.root, c, {
15
+ [o.vertical]: a,
16
+ [o.horizontal]: e
17
+ });
18
+ return /* @__PURE__ */ s("div", { ref: t, className: n, children: l });
19
+ });
20
+ export {
21
+ g as Center
22
+ };
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface FlexProps {
4
+ fullWidth?: boolean;
5
+ fullHeight?: boolean;
6
+ centered?: boolean | 'axis' | 'cross-axis' | 'baseline-axis' | 'baseline-cross-axis';
7
+ vertical?: boolean;
8
+ reverseOrder?: boolean;
9
+ repell?: boolean;
10
+ stretch?: boolean;
11
+ wrap?: boolean;
12
+ spaceBetween?: boolean;
13
+ alignToEnd?: boolean;
14
+ alignToEndAxis?: boolean;
15
+ gap?: 'none' | 'thin' | 'small' | 'normal' | 'large' | 'xlarge';
16
+ children?: React.ReactNode;
17
+ className?: string;
18
+ }
19
+ declare const FlexComponentReffed: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
20
+ type FlexType = typeof FlexComponentReffed & {
21
+ Restricted: React.FC<{
22
+ children?: React.ReactNode;
23
+ }>;
24
+ };
25
+ export declare const Flex: FlexType;
26
+ export {};