@layers-app/shared 0.3.8 → 0.3.9

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 (31) hide show
  1. package/dist/components/ColorPicker/ColorPicker.d.ts +14 -7
  2. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  3. package/dist/components/ColorPicker/ColorPicker.js +93 -79
  4. package/dist/components/ColorPicker/ColorPicker.module.css.js +31 -0
  5. package/dist/components/ColorPicker/ColorPickerList.d.ts +6 -0
  6. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -0
  7. package/dist/components/ColorPicker/ColorPickerList.js +134 -0
  8. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +13 -0
  9. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -0
  10. package/dist/components/ColorPicker/ColorPickerToolbar.js +132 -0
  11. package/dist/components/ColorPicker/icons.d.ts +11 -0
  12. package/dist/components/ColorPicker/icons.d.ts.map +1 -0
  13. package/dist/components/ColorPicker/icons.js +71 -0
  14. package/dist/components/ColorPicker/types.d.ts +49 -0
  15. package/dist/components/ColorPicker/types.d.ts.map +1 -0
  16. package/dist/components/ColorPicker/types.js +10 -0
  17. package/dist/components/ColorPicker/useRecentColors.d.ts +13 -0
  18. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -0
  19. package/dist/components/ColorPicker/useRecentColors.js +39 -0
  20. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
  21. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  22. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
  23. package/dist/components/TextColorIcon.d.ts +8 -0
  24. package/dist/components/TextColorIcon.d.ts.map +1 -0
  25. package/dist/components/TextColorIcon.js +60 -0
  26. package/dist/config/brand.js +8 -8
  27. package/dist/index.css +1 -1
  28. package/dist/index.d.ts +6 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +509 -496
  31. package/package.json +2 -2
@@ -0,0 +1,71 @@
1
+ import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
+ function s({
3
+ size: t = 20,
4
+ color: r = "var(--mantine-color-white)",
5
+ showBorder: e
6
+ }) {
7
+ return /* @__PURE__ */ c(
8
+ "svg",
9
+ {
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ width: t,
12
+ height: t,
13
+ viewBox: "0 0 20 20",
14
+ fill: "none",
15
+ children: [
16
+ e && /* @__PURE__ */ n(
17
+ "rect",
18
+ {
19
+ x: "0.5",
20
+ y: "0.5",
21
+ width: "19",
22
+ height: "19",
23
+ rx: "5.5",
24
+ stroke: "var(--mantine-color-default-border)",
25
+ strokeWidth: "1",
26
+ fill: "none"
27
+ }
28
+ ),
29
+ /* @__PURE__ */ n("g", { transform: "translate(4.3, 2.85) scale(0.95)", children: /* @__PURE__ */ n(
30
+ "path",
31
+ {
32
+ d: "M5.74945 0C6.57421 0 7.09678 0.678265 7.50336 1.43555C7.93323 2.23628 8.38332 3.42022 8.95843 4.92676L11.4623 11.4873C11.5716 11.7742 11.4279 12.0955 11.1411 12.2051C10.8541 12.3144 10.5329 12.1706 10.4233 11.8838L8.5766 7.04883H2.9223L1.07562 11.8838C0.965974 12.1707 0.644849 12.3146 0.357848 12.2051C0.0710441 12.0955 -0.0726477 11.7742 0.0365593 11.4873L2.54047 4.92676C3.11563 3.42012 3.56662 2.23629 3.99652 1.43555C4.40306 0.678393 4.92485 8.51363e-05 5.74945 0ZM5.74945 1.11328C5.62925 1.11335 5.38778 1.19685 4.97699 1.96191C4.5893 2.68404 4.16803 3.7852 3.5805 5.32422L3.34711 5.93555H8.15179L7.9184 5.32422C7.33089 3.78522 6.9096 2.68403 6.52191 1.96191C6.11099 1.19664 5.86959 1.11328 5.74945 1.11328Z",
33
+ fill: r === "inherit" || r === "currentColor" ? "var(--mantine-color-white)" : r
34
+ }
35
+ ) })
36
+ ]
37
+ }
38
+ );
39
+ }
40
+ function d({
41
+ size: t = 24,
42
+ bgColor: r,
43
+ borderColor: e
44
+ }) {
45
+ const o = r === "inherit" || r === "" || r === "default", i = t * 0.375, l = o ? "var(--mantine-color-body)" : r, h = o ? "var(--mantine-color-default-border)" : e;
46
+ return /* @__PURE__ */ n(
47
+ "svg",
48
+ {
49
+ xmlns: "http://www.w3.org/2000/svg",
50
+ width: t,
51
+ height: t,
52
+ viewBox: `0 0 ${t} ${t}`,
53
+ fill: "none",
54
+ children: /* @__PURE__ */ n(
55
+ "circle",
56
+ {
57
+ cx: t / 2,
58
+ cy: t / 2,
59
+ r: i,
60
+ fill: l,
61
+ stroke: h,
62
+ strokeWidth: "1.5"
63
+ }
64
+ )
65
+ }
66
+ );
67
+ }
68
+ export {
69
+ d as HighlightSwatch,
70
+ s as TextColorIcon
71
+ };
@@ -0,0 +1,49 @@
1
+ import type { FlexProps } from '@mantine/core';
2
+ export type ColorItem = string | {
3
+ value: string;
4
+ label?: string;
5
+ border?: string;
6
+ bg?: string;
7
+ };
8
+ export interface ColorSection {
9
+ key: string;
10
+ label: string;
11
+ colors: ColorItem[];
12
+ value?: string;
13
+ type?: 'text' | 'highlight';
14
+ }
15
+ export interface RecentColorEntry {
16
+ value: string;
17
+ sectionKey?: string;
18
+ border?: string;
19
+ }
20
+ export type ColorPickerOnChange = (value: string, sectionKey?: string) => void;
21
+ export interface ColorPickerBaseProps {
22
+ colors?: ColorItem[];
23
+ sections?: ColorSection[];
24
+ value?: string;
25
+ onChange?: ColorPickerOnChange;
26
+ withRecentColors?: boolean;
27
+ maxRecentColors?: number;
28
+ swatchSize?: number;
29
+ withTick?: boolean;
30
+ }
31
+ export interface ColorPickerInlineProps extends ColorPickerBaseProps, Omit<FlexProps, 'onChange'> {
32
+ swatchShape?: 'circle' | 'square';
33
+ fullWidth?: boolean;
34
+ allowCustomColor?: boolean;
35
+ }
36
+ export interface ColorPickerListProps extends ColorPickerBaseProps {
37
+ columns?: number;
38
+ }
39
+ export interface ColorPickerCompactProps extends Omit<ColorPickerBaseProps, 'sections' | 'withRecentColors'>, Omit<FlexProps, 'onChange'> {
40
+ swatchShape?: 'circle' | 'square';
41
+ }
42
+ export declare function normalizeColorItem(item: ColorItem): {
43
+ value: string;
44
+ label: string;
45
+ border?: string;
46
+ bg?: string;
47
+ };
48
+ export declare function isDefaultColor(value: string): boolean;
49
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjG,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,mBAAmB,GAAG,CAChC,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,MAAM,KAChB,IAAI,CAAC;AAEV,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,sBACf,SAAQ,oBAAoB,EAC1B,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC7B,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBACf,SAAQ,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,kBAAkB,CAAC,EACjE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC7B,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CACnC;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAKA;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErD"}
@@ -0,0 +1,10 @@
1
+ function n(r) {
2
+ return typeof r == "string" ? { value: r, label: r } : { label: r.value, ...r };
3
+ }
4
+ function l(r) {
5
+ return r === "inherit" || r === "" || r === "default";
6
+ }
7
+ export {
8
+ l as isDefaultColor,
9
+ n as normalizeColorItem
10
+ };
@@ -0,0 +1,13 @@
1
+ import type { RecentColorEntry } from './types';
2
+ interface UseRecentColorsOptions {
3
+ storageKey?: string;
4
+ maxItems?: number;
5
+ }
6
+ export declare function useRecentColors(options?: UseRecentColorsOptions): {
7
+ recentColors: RecentColorEntry[];
8
+ addRecent: (value: string, sectionKey?: string, border?: string) => void;
9
+ clearRecent: () => void;
10
+ reload: () => void;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=useRecentColors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRecentColors.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/useRecentColors.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAKhD,UAAU,sBAAsB;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAmBD,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,sBAAsB;;uBAYpD,MAAM,eAAe,MAAM,WAAW,MAAM;;;EAsBvD"}
@@ -0,0 +1,39 @@
1
+ import { useState as I, useCallback as c } from "react";
2
+ const d = "color-picker-recent", p = 11;
3
+ function n(e) {
4
+ try {
5
+ const t = localStorage.getItem(e);
6
+ return t ? JSON.parse(t) : [];
7
+ } catch {
8
+ return [];
9
+ }
10
+ }
11
+ function E(e, t, o) {
12
+ try {
13
+ localStorage.setItem(e, JSON.stringify(t.slice(0, o)));
14
+ } catch {
15
+ }
16
+ }
17
+ function v(e) {
18
+ const t = e?.storageKey ?? d, o = e?.maxItems ?? p, [i, r] = I(() => n(t)), S = c(() => {
19
+ r(n(t));
20
+ }, [t]), g = c(
21
+ (s, a, f) => {
22
+ const y = n(t).filter(
23
+ (m) => !(m.value === s && m.sectionKey === a)
24
+ ), l = [{ value: s, sectionKey: a, border: f }, ...y].slice(0, o);
25
+ E(t, l, o), r(l);
26
+ },
27
+ [t, o]
28
+ ), u = c(() => {
29
+ try {
30
+ localStorage.removeItem(t);
31
+ } catch {
32
+ }
33
+ r([]);
34
+ }, [t]);
35
+ return { recentColors: i, addRecent: g, clearRecent: u, reload: S };
36
+ }
37
+ export {
38
+ v as useRecentColors
39
+ };
@@ -30,6 +30,7 @@ export type EmojiPickerLocales = {
30
30
  chooseColor?: string;
31
31
  searchNoResults?: string;
32
32
  remove?: string;
33
+ random?: string;
33
34
  icons?: string;
34
35
  emojiCategory?: Record<string, string>;
35
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAGxE,OAAO,EAIL,gBAAgB,EAEhB,YAAY,EAEb,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChC,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,2OAmBzB,iBAAiB,CAAC,gBAAgB,CAAC,4CAgNrC,CAAC"}
1
+ {"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAGxE,OAAO,EAIL,gBAAgB,EAEhB,YAAY,EAEb,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChC,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,2OAmBzB,iBAAiB,CAAC,gBAAgB,CAAC,4CAgNrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OnboardingTourWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/OnboardingTourWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA2C,MAAM,OAAO,CAAC;AAGhF,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAS3C,OAAO,6BAA6B,CAAC;AAErC,MAAM,WAAW,0BACf,SAAQ,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AA+BD,eAAO,MAAM,qBAAqB,GAAI,wQAanC,0BAA0B,4CAyO5B,CAAC"}
1
+ {"version":3,"file":"OnboardingTourWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/OnboardingTour/OnboardingTourWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA2C,MAAM,OAAO,CAAC;AAGhF,OAAO,EAIL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAS3C,OAAO,6BAA6B,CAAC;AAErC,MAAM,WAAW,0BACf,SAAQ,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AA+BD,eAAO,MAAM,qBAAqB,GAAI,wQAanC,0BAA0B,4CA2O5B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ export interface TextColorIconProps extends SVGProps<SVGSVGElement> {
3
+ size?: number;
4
+ color?: string;
5
+ showBorder?: boolean;
6
+ }
7
+ export declare const TextColorIcon: ({ size, color, showBorder, ...props }: TextColorIconProps) => import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=TextColorIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextColorIcon.d.ts","sourceRoot":"","sources":["../../src/components/TextColorIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,WAAW,kBAAmB,SAAQ,QAAQ,CAAC,aAAa,CAAC;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,GAAI,uCAK3B,kBAAkB,4CAwCpB,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
+ const i = ({
3
+ size: o = 20,
4
+ color: t = "currentColor",
5
+ showBorder: e = !1,
6
+ ...n
7
+ }) => /* @__PURE__ */ s(
8
+ "svg",
9
+ {
10
+ width: o,
11
+ height: o,
12
+ viewBox: "0 0 20 20",
13
+ fill: "none",
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ "aria-hidden": !0,
16
+ ...n,
17
+ children: [
18
+ /* @__PURE__ */ r(
19
+ "path",
20
+ {
21
+ d: "M5.25 14.75L8.85 5.25H11.15L14.75 14.75",
22
+ stroke: "currentColor",
23
+ strokeWidth: "1.6",
24
+ strokeLinecap: "round",
25
+ strokeLinejoin: "round"
26
+ }
27
+ ),
28
+ /* @__PURE__ */ r(
29
+ "path",
30
+ {
31
+ d: "M7.1 10.75H12.9",
32
+ stroke: "currentColor",
33
+ strokeWidth: "1.6",
34
+ strokeLinecap: "round"
35
+ }
36
+ ),
37
+ e ? /* @__PURE__ */ r(
38
+ "path",
39
+ {
40
+ d: "M4.75 16.25H15.25",
41
+ stroke: "currentColor",
42
+ strokeWidth: "1.4",
43
+ strokeLinecap: "round"
44
+ }
45
+ ) : null,
46
+ /* @__PURE__ */ r(
47
+ "path",
48
+ {
49
+ d: "M4.75 17.25H15.25",
50
+ stroke: t,
51
+ strokeWidth: "1.8",
52
+ strokeLinecap: "round"
53
+ }
54
+ )
55
+ ]
56
+ }
57
+ );
58
+ export {
59
+ i as TextColorIcon
60
+ };
@@ -2,16 +2,16 @@ import g from "../assets/layers-logo-full.svg.js";
2
2
  import s from "../assets/layers-logo-full.svg2.js";
3
3
  import i from "../assets/layers-logo-icon.svg.js";
4
4
  import p from "../assets/layers-logo-icon.svg2.js";
5
- import m from "../assets/logo-copyright.svg.js";
6
- import { resolveNonBlankString as o, normalizeUrl as t, getEnvConfig as c } from "./envConfig.js";
7
- const d = { VITE_APP_NAME: "Layers", VITE_APP_URL: "https://app.layers.md" }, n = d, e = () => c(), l = {
5
+ import c from "../assets/logo-copyright.svg.js";
6
+ import { resolveNonBlankString as o, normalizeUrl as n, getEnvConfig as m } from "./envConfig.js";
7
+ const d = { VITE_APP_NAME: "Layers" }, t = d, e = () => m(), l = {
8
8
  get name() {
9
- return o(e().appName, n.VITE_APP_NAME) || "Layers";
9
+ return o(e().appName, t.VITE_APP_NAME) || "Layers";
10
10
  },
11
11
  // Bundled SVG components (support currentColor for theme switching)
12
12
  LogoFull: s,
13
13
  LogoIcon: p,
14
- LogoCopyright: m,
14
+ LogoCopyright: c,
15
15
  // Custom URLs from admin panel (null if not configured)
16
16
  get customIconUrl() {
17
17
  return o(e().logoIconUrl) || o(e().logoFullUrl) || null;
@@ -30,13 +30,13 @@ const d = { VITE_APP_NAME: "Layers", VITE_APP_URL: "https://app.layers.md" }, n
30
30
  return o(e().logoIconUrl) || i;
31
31
  },
32
32
  get websiteUrl() {
33
- return t(
33
+ return n(
34
34
  o(e().websiteUrl) || "https://layers.md"
35
35
  );
36
36
  },
37
37
  get appUrl() {
38
- return t(
39
- o(e().appUrl, n.VITE_APP_URL) || "https://app.layers.md/",
38
+ return n(
39
+ o(e().appUrl, t.VITE_APP_URL) || "https://app.layers.md/",
40
40
  { trailingSlash: !0 }
41
41
  );
42
42
  },