skillgrid 0.0.1

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 (158) hide show
  1. package/LICENSE.md +129 -0
  2. package/README.md +211 -0
  3. package/dist/App.d.ts +2 -0
  4. package/dist/components/Avatar/Avatar.d.ts +7 -0
  5. package/dist/components/Avatar/Avatar.type.d.ts +87 -0
  6. package/dist/components/Avatar/AvatarGroup/AvatarGroup.d.ts +12 -0
  7. package/dist/components/Avatar/assets/index.d.ts +7 -0
  8. package/dist/components/Avatar/assets/react-svg-icons.d.ts +4 -0
  9. package/dist/components/Avatar/index.d.ts +5 -0
  10. package/dist/components/Avatar/lib/get-avatar-border-radius-by-size-and-shape.d.ts +3 -0
  11. package/dist/components/Avatar/lib/get-initials-color.d.ts +4 -0
  12. package/dist/components/Avatar/lib/get-initials-color.test.d.ts +1 -0
  13. package/dist/components/Avatar/lib/get-initials.d.ts +1 -0
  14. package/dist/components/Avatar/lib/get-initials.test.d.ts +1 -0
  15. package/dist/components/Avatar/lib/get-overflow-count-text.d.ts +2 -0
  16. package/dist/components/Avatar/lib/get-overflow-count-text.test.d.ts +1 -0
  17. package/dist/components/Avatar/lib/index.d.ts +4 -0
  18. package/dist/components/Badge/Badge.d.ts +17 -0
  19. package/dist/components/Badge/Badge.type.d.ts +61 -0
  20. package/dist/components/Badge/index.d.ts +2 -0
  21. package/dist/components/Button/Button.d.ts +14 -0
  22. package/dist/components/Button/Button.type.d.ts +105 -0
  23. package/dist/components/Button/index.d.ts +2 -0
  24. package/dist/components/ConfigProvider/ConfigProvider.d.ts +13 -0
  25. package/dist/components/ConfigProvider/ConfigProvider.hook.d.ts +4 -0
  26. package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +23 -0
  27. package/dist/components/ConfigProvider/index.d.ts +3 -0
  28. package/dist/components/Image/Image.d.ts +11 -0
  29. package/dist/components/Image/Image.type.d.ts +36 -0
  30. package/dist/components/Image/assets/PlaceholderImageIcon.d.ts +9 -0
  31. package/dist/components/Image/index.d.ts +2 -0
  32. package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts +14 -0
  33. package/dist/components/LanguageSwitcher/LanguageSwitcher.type.d.ts +3 -0
  34. package/dist/components/LanguageSwitcher/index.d.ts +2 -0
  35. package/dist/components/Loader/Loader.d.ts +19 -0
  36. package/dist/components/Loader/Loader.type.d.ts +39 -0
  37. package/dist/components/Loader/index.d.ts +2 -0
  38. package/dist/components/Palette/Palette.constants.d.ts +13 -0
  39. package/dist/components/Palette/Palette.d.ts +4 -0
  40. package/dist/components/Palette/Palette.type.d.ts +4 -0
  41. package/dist/components/Palette/index.d.ts +2 -0
  42. package/dist/components/StoryComponents.d.ts +295 -0
  43. package/dist/hooks/index.d.ts +2 -0
  44. package/dist/hooks/useBackgroundColor.d.ts +20 -0
  45. package/dist/hooks/useCustomTranslations.d.ts +9 -0
  46. package/dist/i18n.d.ts +2 -0
  47. package/dist/index.cjs.js +1 -0
  48. package/dist/index.cjs10.js +1 -0
  49. package/dist/index.cjs11.js +1 -0
  50. package/dist/index.cjs12.js +1 -0
  51. package/dist/index.cjs13.js +1 -0
  52. package/dist/index.cjs14.js +1 -0
  53. package/dist/index.cjs15.js +1 -0
  54. package/dist/index.cjs16.js +1 -0
  55. package/dist/index.cjs17.js +1 -0
  56. package/dist/index.cjs18.js +1 -0
  57. package/dist/index.cjs19.js +1 -0
  58. package/dist/index.cjs2.js +1 -0
  59. package/dist/index.cjs20.js +1 -0
  60. package/dist/index.cjs21.js +1 -0
  61. package/dist/index.cjs22.js +1 -0
  62. package/dist/index.cjs23.js +1 -0
  63. package/dist/index.cjs24.js +1 -0
  64. package/dist/index.cjs25.js +1 -0
  65. package/dist/index.cjs26.js +1 -0
  66. package/dist/index.cjs27.js +1 -0
  67. package/dist/index.cjs28.js +1 -0
  68. package/dist/index.cjs29.js +1 -0
  69. package/dist/index.cjs3.js +1 -0
  70. package/dist/index.cjs30.js +1 -0
  71. package/dist/index.cjs31.js +1 -0
  72. package/dist/index.cjs32.js +1 -0
  73. package/dist/index.cjs33.js +1 -0
  74. package/dist/index.cjs34.js +1 -0
  75. package/dist/index.cjs35.js +9 -0
  76. package/dist/index.cjs36.js +22 -0
  77. package/dist/index.cjs37.js +5 -0
  78. package/dist/index.cjs38.js +1 -0
  79. package/dist/index.cjs39.js +1 -0
  80. package/dist/index.cjs4.js +1 -0
  81. package/dist/index.cjs40.js +1 -0
  82. package/dist/index.cjs41.js +1 -0
  83. package/dist/index.cjs42.js +1 -0
  84. package/dist/index.cjs43.js +1 -0
  85. package/dist/index.cjs44.js +1 -0
  86. package/dist/index.cjs45.js +1 -0
  87. package/dist/index.cjs5.js +1 -0
  88. package/dist/index.cjs6.js +1 -0
  89. package/dist/index.cjs7.js +1 -0
  90. package/dist/index.cjs8.js +1 -0
  91. package/dist/index.cjs9.js +1 -0
  92. package/dist/index.d.ts +7 -0
  93. package/dist/index.es.js +21 -0
  94. package/dist/index.es10.js +4 -0
  95. package/dist/index.es11.js +61 -0
  96. package/dist/index.es12.js +82 -0
  97. package/dist/index.es13.js +5 -0
  98. package/dist/index.es14.js +32 -0
  99. package/dist/index.es15.js +7 -0
  100. package/dist/index.es16.js +5 -0
  101. package/dist/index.es17.js +73 -0
  102. package/dist/index.es18.js +48 -0
  103. package/dist/index.es19.js +22 -0
  104. package/dist/index.es2.js +8 -0
  105. package/dist/index.es20.js +7 -0
  106. package/dist/index.es21.js +11 -0
  107. package/dist/index.es22.js +26 -0
  108. package/dist/index.es23.js +7 -0
  109. package/dist/index.es24.js +6 -0
  110. package/dist/index.es25.js +12 -0
  111. package/dist/index.es26.js +6 -0
  112. package/dist/index.es27.js +4 -0
  113. package/dist/index.es28.js +22 -0
  114. package/dist/index.es29.js +42 -0
  115. package/dist/index.es3.js +66 -0
  116. package/dist/index.es30.js +17 -0
  117. package/dist/index.es31.js +7 -0
  118. package/dist/index.es32.js +14 -0
  119. package/dist/index.es33.js +10 -0
  120. package/dist/index.es34.js +4 -0
  121. package/dist/index.es35.js +28 -0
  122. package/dist/index.es36.js +604 -0
  123. package/dist/index.es37.js +42 -0
  124. package/dist/index.es38.js +4 -0
  125. package/dist/index.es39.js +4 -0
  126. package/dist/index.es4.js +180 -0
  127. package/dist/index.es40.js +4 -0
  128. package/dist/index.es41.js +4 -0
  129. package/dist/index.es42.js +4 -0
  130. package/dist/index.es43.js +4 -0
  131. package/dist/index.es44.js +4 -0
  132. package/dist/index.es45.js +6 -0
  133. package/dist/index.es5.js +75 -0
  134. package/dist/index.es6.js +67 -0
  135. package/dist/index.es7.js +24 -0
  136. package/dist/index.es8.js +18 -0
  137. package/dist/index.es9.js +4 -0
  138. package/dist/lib/create-rounded-cutout-rectangle-path.d.ts +18 -0
  139. package/dist/lib/create-rounded-cutout-rectangle-path.test.d.ts +1 -0
  140. package/dist/lib/generate-hash.d.ts +6 -0
  141. package/dist/lib/generate-hash.test.d.ts +1 -0
  142. package/dist/lib/index.d.ts +1 -0
  143. package/dist/locale/en_US.d.ts +6 -0
  144. package/dist/locale/index.d.ts +3 -0
  145. package/dist/locale/ru_RU.d.ts +6 -0
  146. package/dist/locale/type.d.ts +10 -0
  147. package/dist/main.d.ts +0 -0
  148. package/dist/setupTests.d.ts +5 -0
  149. package/dist/src/components/Avatar/Avatar.module.css +1 -0
  150. package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.module.css +1 -0
  151. package/dist/src/components/Badge/Badge.module.css +1 -0
  152. package/dist/src/components/Button/Button.module.css +1 -0
  153. package/dist/src/components/ConfigProvider/ConfigProvider.module.css +1 -0
  154. package/dist/src/components/Image/Image.module.css +1 -0
  155. package/dist/src/components/Loader/Loader.module.css +1 -0
  156. package/dist/types/i18n.d.ts +7 -0
  157. package/dist/types/index.d.ts +1 -0
  158. package/package.json +127 -0
@@ -0,0 +1,48 @@
1
+ import './src/components/Badge/Badge.module.css';const o = "_wrapper_1ncab_5", i = "_badge__container_1ncab_6", t = "_badge__content_1ncab_7", n = "_interactive_1ncab_20", _ = "_disabled_1ncab_21", e = "_icon_1ncab_22", c = {
2
+ wrapper: o,
3
+ badge__container: i,
4
+ badge__content: t,
5
+ interactive: n,
6
+ disabled: _,
7
+ icon: e,
8
+ "variant-filled": "_variant-filled_1ncab_101",
9
+ "color-brand": "_color-brand_1ncab_106",
10
+ "color-red": "_color-red_1ncab_110",
11
+ "color-orange": "_color-orange_1ncab_114",
12
+ "color-yellow": "_color-yellow_1ncab_118",
13
+ "color-green": "_color-green_1ncab_122",
14
+ "color-blue": "_color-blue_1ncab_126",
15
+ "color-lightblue": "_color-lightblue_1ncab_130",
16
+ "color-purple": "_color-purple_1ncab_134",
17
+ "color-gray": "_color-gray_1ncab_138",
18
+ "color-contrast": "_color-contrast_1ncab_142",
19
+ "variant-light": "_variant-light_1ncab_148",
20
+ "variant-outline": "_variant-outline_1ncab_220",
21
+ "variant-transparent": "_variant-transparent_1ncab_294",
22
+ "position-top-left": "_position-top-left_1ncab_361",
23
+ "position-top-right": "_position-top-right_1ncab_367",
24
+ "position-bottom-left": "_position-bottom-left_1ncab_373",
25
+ "position-bottom-right": "_position-bottom-right_1ncab_379",
26
+ "position-top-center": "_position-top-center_1ncab_385",
27
+ "position-bottom-center": "_position-bottom-center_1ncab_391",
28
+ "position-middle-left": "_position-middle-left_1ncab_397",
29
+ "position-middle-right": "_position-middle-right_1ncab_403",
30
+ "position-middle-center": "_position-middle-center_1ncab_409",
31
+ "position-top-left-inside": "_position-top-left-inside_1ncab_416",
32
+ "position-top-right-inside": "_position-top-right-inside_1ncab_422",
33
+ "position-bottom-left-inside": "_position-bottom-left-inside_1ncab_428",
34
+ "position-bottom-right-inside": "_position-bottom-right-inside_1ncab_434",
35
+ "position-top-center-inside": "_position-top-center-inside_1ncab_440",
36
+ "position-bottom-center-inside": "_position-bottom-center-inside_1ncab_446",
37
+ "position-middle-left-inside": "_position-middle-left-inside_1ncab_452",
38
+ "position-middle-right-inside": "_position-middle-right-inside_1ncab_458"
39
+ };
40
+ export {
41
+ i as badge__container,
42
+ t as badge__content,
43
+ c as default,
44
+ _ as disabled,
45
+ e as icon,
46
+ n as interactive,
47
+ o as wrapper
48
+ };
@@ -0,0 +1,22 @@
1
+ import { useRef as o, useState as s, useEffect as u } from "react";
2
+ const l = (t) => t === "rgba(0, 0, 0, 0)" || t === "transparent" || t.startsWith("rgba") && t.endsWith(", 0)"), c = (t) => {
3
+ if (!t) return null;
4
+ let r = t;
5
+ for (; r; ) {
6
+ const e = window.getComputedStyle(r).backgroundColor;
7
+ if (!l(e)) return e;
8
+ r = r.parentElement;
9
+ }
10
+ return null;
11
+ }, g = () => {
12
+ const t = o(null), [r, n] = s(null);
13
+ return u(() => {
14
+ if (t.current) {
15
+ const e = c(t.current);
16
+ n(e);
17
+ }
18
+ }, []), { ref: t, bgColor: r };
19
+ };
20
+ export {
21
+ g as useBackgroundColor
22
+ };
@@ -0,0 +1,8 @@
1
+ import { AvatarGroup as o } from "./index.es11.js";
2
+ import { AvatarComponent as r } from "./index.es12.js";
3
+ const p = Object.assign(r, {
4
+ Group: o
5
+ });
6
+ export {
7
+ p as Avatar
8
+ };
@@ -0,0 +1,7 @@
1
+ import './src/components/ConfigProvider/ConfigProvider.module.css';const p = "_wrapper_1ukzl_1", r = {
2
+ wrapper: p
3
+ };
4
+ export {
5
+ r as default,
6
+ p as wrapper
7
+ };
@@ -0,0 +1,11 @@
1
+ import './src/components/Image/Image.module.css';const a = "_container_chiat_7", n = "_image_chiat_19", t = "_loading_chiat_28", i = {
2
+ container: a,
3
+ image: n,
4
+ loading: t
5
+ };
6
+ export {
7
+ a as container,
8
+ i as default,
9
+ n as image,
10
+ t as loading
11
+ };
@@ -0,0 +1,26 @@
1
+ import { j as C } from "./index.es13.js";
2
+ const n = ({ width: t = 48, height: o = 48, className: e, "data-testid": s }) => /* @__PURE__ */ C.jsx(
3
+ "svg",
4
+ {
5
+ width: t,
6
+ height: o,
7
+ viewBox: "0 0 48 48",
8
+ fill: "none",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ className: e,
11
+ "data-testid": s,
12
+ children: /* @__PURE__ */ C.jsx(
13
+ "path",
14
+ {
15
+ d: "M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",
16
+ stroke: "#AABBCA",
17
+ strokeWidth: "4",
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round"
20
+ }
21
+ )
22
+ }
23
+ );
24
+ export {
25
+ n as PlaceholderImageIcon
26
+ };
@@ -0,0 +1,7 @@
1
+ import './src/components/Avatar/AvatarGroup/AvatarGroup.module.css';const a = "_avatarGroup_157g4_1", r = {
2
+ avatarGroup: a
3
+ };
4
+ export {
5
+ a as avatarGroup,
6
+ r as default
7
+ };
@@ -0,0 +1,6 @@
1
+ function t(O) {
2
+ return O < 99 ? `+${O}` : "99+";
3
+ }
4
+ export {
5
+ t as getOverflowCountText
6
+ };
@@ -0,0 +1,12 @@
1
+ function s(e) {
2
+ const n = typeof e == "string" ? e : JSON.stringify(e);
3
+ let t = 5381;
4
+ for (let r = 0; r < n.length; r++) {
5
+ const o = n.charCodeAt(r);
6
+ t = (t << 5) + t + o;
7
+ }
8
+ return t >>> 0;
9
+ }
10
+ export {
11
+ s as generateHash
12
+ };
@@ -0,0 +1,6 @@
1
+ function n(r, t) {
2
+ return t === "circle" ? r / 2 : r === 24 || r === 208 ? 8 : r === 32 || r === 40 || r === 48 ? 12 : r === 56 ? 16 : r === 84 || r === 96 ? 24 : 12;
3
+ }
4
+ export {
5
+ n as getAvatarBorderRadiusBySizeAndShape
6
+ };
@@ -0,0 +1,4 @@
1
+ let o = (n = 21) => crypto.getRandomValues(new Uint8Array(n)).reduce((r, e) => (e &= 63, e < 36 ? r += e.toString(36) : e < 62 ? r += (e - 26).toString(36).toUpperCase() : e > 62 ? r += "-" : r += "_", r), "");
2
+ export {
3
+ o as nanoid
4
+ };
@@ -0,0 +1,22 @@
1
+ function f(s, u, o, c, t, a, R) {
2
+ const A = Math.min(t, a) / 2, $ = Math.min(R, A), L = ["M0,0", `H${s}`, `V${u}`, "H0", "V0", "Z"].join(" "), M = [
3
+ `M${o + $},${c}`,
4
+ `L${o + t - $},${c}`,
5
+ // Верхний правый угол
6
+ `A${$},${$} 0 0 1 ${o + t},${c + $}`,
7
+ `L${o + t},${c + a - $}`,
8
+ // Нижний правый угол
9
+ `A${$},${$} 0 0 1 ${o + t - $},${c + a}`,
10
+ `L${o + $},${c + a}`,
11
+ // Нижний левый угол
12
+ `A${$},${$} 0 0 1 ${o},${c + a - $}`,
13
+ `L${o},${c + $}`,
14
+ // Верхний левый угол
15
+ `A${$},${$} 0 0 1 ${o + $},${c}`,
16
+ "Z"
17
+ ].join(" ");
18
+ return `${L} ${M}`;
19
+ }
20
+ export {
21
+ f as createRoundedCutoutRectanglePath
22
+ };
@@ -0,0 +1,42 @@
1
+ import './src/components/Avatar/Avatar.module.css';const o = "_avatar_1ob17_4", _ = "_clickable_1ob17_23", e = "_icon_1ob17_40", l = "_disabled_1ob17_45", r = "_image_1ob17_51", a = "_name_1ob17_51", c = "_circle_1ob17_160", i = "_square_1ob17_164", b = {
2
+ avatar: o,
3
+ clickable: _,
4
+ icon: e,
5
+ disabled: l,
6
+ image: r,
7
+ name: a,
8
+ "size-208": "_size-208_1ob17_104",
9
+ "size-96": "_size-96_1ob17_111",
10
+ "size-84": "_size-84_1ob17_118",
11
+ "size-56": "_size-56_1ob17_125",
12
+ "size-48": "_size-48_1ob17_132",
13
+ "size-40": "_size-40_1ob17_139",
14
+ "size-32": "_size-32_1ob17_146",
15
+ "size-24": "_size-24_1ob17_153",
16
+ circle: c,
17
+ square: i,
18
+ "variant-filled": "_variant-filled_1ob17_185",
19
+ "color-brand": "_color-brand_1ob17_190",
20
+ "color-red": "_color-red_1ob17_194",
21
+ "color-orange": "_color-orange_1ob17_198",
22
+ "color-yellow": "_color-yellow_1ob17_202",
23
+ "color-green": "_color-green_1ob17_206",
24
+ "color-blue": "_color-blue_1ob17_210",
25
+ "color-lightblue": "_color-lightblue_1ob17_214",
26
+ "color-purple": "_color-purple_1ob17_218",
27
+ "color-gray": "_color-gray_1ob17_222",
28
+ "color-contrast": "_color-contrast_1ob17_226",
29
+ "variant-light": "_variant-light_1ob17_232",
30
+ "variant-outline": "_variant-outline_1ob17_304"
31
+ };
32
+ export {
33
+ o as avatar,
34
+ c as circle,
35
+ _ as clickable,
36
+ b as default,
37
+ l as disabled,
38
+ e as icon,
39
+ r as image,
40
+ a as name,
41
+ i as square
42
+ };
@@ -0,0 +1,66 @@
1
+ import { j as n } from "./index.es13.js";
2
+ import { forwardRef as D } from "react";
3
+ import p from "./index.es15.js";
4
+ import t from "./index.es18.js";
5
+ import { useBackgroundColor as H } from "./index.es19.js";
6
+ const T = D((g, b) => {
7
+ const {
8
+ icon: e,
9
+ children: m,
10
+ variant: r = "filled",
11
+ label: f,
12
+ colorScheme: u = "red",
13
+ size: x = 20,
14
+ position: h = "top-right",
15
+ positionOffset: i = { x: 0, y: 0 },
16
+ cutoutBackground: C,
17
+ isDisabled: a,
18
+ className: v,
19
+ "data-testid": o = "badge",
20
+ ...d
21
+ } = g, { onClick: s, onPointerDown: $ } = d, { ref: j, bgColor: k } = H(), c = C || k, l = !a && (!!s || !!$), y = p(t.badge__container, t[`position-${h}`]), N = p(
22
+ v,
23
+ t.badge__content,
24
+ t[`color-${u}`],
25
+ t[`variant-${r}`],
26
+ {
27
+ [t.icon]: !!e,
28
+ [t.interactive]: l,
29
+ [t.disabled]: a
30
+ }
31
+ ), w = {
32
+ "--badge-height": `${x}px`,
33
+ "--badge-offset-x": `${i.x}px`,
34
+ "--badge-offset-y": `${i.y}px`,
35
+ ...c && { "--badge-cutout-bg": c },
36
+ ...r === "transparent" && { "--badge-cutout-bg": "transparent" }
37
+ }, B = (e == null ? void 0 : e({})) || f, _ = (E) => {
38
+ l && (s == null || s(E));
39
+ };
40
+ return /* @__PURE__ */ n.jsxs("div", { className: t.wrapper, ref: j, "data-testid": o + "-wrapper", children: [
41
+ m,
42
+ /* @__PURE__ */ n.jsx(
43
+ "span",
44
+ {
45
+ className: y,
46
+ style: w,
47
+ "data-testid": o + "-container",
48
+ children: /* @__PURE__ */ n.jsx(
49
+ "span",
50
+ {
51
+ ...d,
52
+ onClick: _,
53
+ className: N,
54
+ "data-testid": o + "-content",
55
+ ref: b,
56
+ "aria-disabled": a,
57
+ children: B
58
+ }
59
+ )
60
+ }
61
+ )
62
+ ] });
63
+ });
64
+ export {
65
+ T as Badge
66
+ };
@@ -0,0 +1,17 @@
1
+ import { generateHash as r } from "./index.es25.js";
2
+ const l = [
3
+ "red",
4
+ "orange",
5
+ "yellow",
6
+ "green",
7
+ "blue",
8
+ "lightblue",
9
+ "purple"
10
+ ];
11
+ function s(t, e = l) {
12
+ const n = r(t), o = Math.abs(n) % e.length;
13
+ return e[o];
14
+ }
15
+ export {
16
+ s as getInitialsColor
17
+ };
@@ -0,0 +1,7 @@
1
+ function s(t) {
2
+ const e = t.split(" ");
3
+ return e.length === 1 ? t.slice(0, 2).toUpperCase() : e.map((i) => i[0]).slice(0, 2).join("").toUpperCase();
4
+ }
5
+ export {
6
+ s as getInitials
7
+ };
@@ -0,0 +1,14 @@
1
+ import r from "./index.es41.js";
2
+ import o from "./index.es42.js";
3
+ import m from "./index.es43.js";
4
+ import p from "./index.es44.js";
5
+ import "./index.es13.js";
6
+ const l = {
7
+ male: r,
8
+ female: o,
9
+ org: p,
10
+ neutral: m
11
+ };
12
+ export {
13
+ l as placeholderSrcMap
14
+ };
@@ -0,0 +1,10 @@
1
+ import { __module as e } from "./index.es34.js";
2
+ import { __require as i } from "./index.es35.js";
3
+ import { __require as t } from "./index.es36.js";
4
+ var r;
5
+ function m() {
6
+ return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = i() : e.exports = t(), e.exports);
7
+ }
8
+ export {
9
+ m as __require
10
+ };
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1,28 @@
1
+ import { __exports as t } from "./index.es39.js";
2
+ import R from "react";
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var p;
13
+ function v() {
14
+ if (p) return t;
15
+ p = 1;
16
+ var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
17
+ function _(o, r, i) {
18
+ var e, n = {}, u = null, f = null;
19
+ i !== void 0 && (u = "" + i), r.key !== void 0 && (u = "" + r.key), r.ref !== void 0 && (f = r.ref);
20
+ for (e in r) c.call(r, e) && !y.hasOwnProperty(e) && (n[e] = r[e]);
21
+ if (o && o.defaultProps) for (e in r = o.defaultProps, r) n[e] === void 0 && (n[e] = r[e]);
22
+ return { $$typeof: m, type: o, key: u, ref: f, props: n, _owner: d.current };
23
+ }
24
+ return t.Fragment = l, t.jsx = _, t.jsxs = _, t;
25
+ }
26
+ export {
27
+ v as __require
28
+ };