@new-black/lyra 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 (115) hide show
  1. package/dist/components/spinner/index.d.ts +3 -0
  2. package/dist/components/spinner/index.d.ts.map +1 -0
  3. package/dist/components/spinner/spinner.d.ts +7 -0
  4. package/dist/components/spinner/spinner.d.ts.map +1 -0
  5. package/dist/components/spinner/spinner.styles.d.ts +5 -0
  6. package/dist/components/spinner/spinner.styles.d.ts.map +1 -0
  7. package/dist/components/text/index.d.ts +3 -0
  8. package/dist/components/text/index.d.ts.map +1 -0
  9. package/dist/components/text/text.d.ts +12 -0
  10. package/dist/components/text/text.d.ts.map +1 -0
  11. package/dist/components/text/text.styles.d.ts +4 -0
  12. package/dist/components/text/text.styles.d.ts.map +1 -0
  13. package/dist/index.d.ts +6 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/lyra-plugin.d.ts +5 -0
  16. package/dist/lyra-plugin.d.ts.map +1 -0
  17. package/dist/lyra-preset.d.ts +6 -0
  18. package/dist/lyra-preset.d.ts.map +1 -0
  19. package/dist/lyra.cjs +1 -0
  20. package/dist/lyra.js +16 -0
  21. package/dist/lyra10.cjs +1 -0
  22. package/dist/lyra10.js +4 -0
  23. package/dist/lyra11.cjs +1 -0
  24. package/dist/lyra11.js +48 -0
  25. package/dist/lyra12.cjs +1 -0
  26. package/dist/lyra12.js +84 -0
  27. package/dist/lyra13.cjs +1 -0
  28. package/dist/lyra13.js +168 -0
  29. package/dist/lyra14.cjs +1 -0
  30. package/dist/lyra14.js +10 -0
  31. package/dist/lyra15.cjs +1 -0
  32. package/dist/lyra15.js +9 -0
  33. package/dist/lyra16.cjs +1 -0
  34. package/dist/lyra16.js +43 -0
  35. package/dist/lyra17.cjs +1 -0
  36. package/dist/lyra17.js +6 -0
  37. package/dist/lyra18.cjs +1 -0
  38. package/dist/lyra18.js +41 -0
  39. package/dist/lyra19.cjs +1 -0
  40. package/dist/lyra19.js +4 -0
  41. package/dist/lyra2.cjs +1 -0
  42. package/dist/lyra2.js +13 -0
  43. package/dist/lyra20.cjs +9 -0
  44. package/dist/lyra20.js +32 -0
  45. package/dist/lyra21.cjs +19 -0
  46. package/dist/lyra21.js +601 -0
  47. package/dist/lyra22.cjs +1 -0
  48. package/dist/lyra22.js +22 -0
  49. package/dist/lyra23.cjs +1 -0
  50. package/dist/lyra23.js +4 -0
  51. package/dist/lyra24.cjs +1 -0
  52. package/dist/lyra24.js +4 -0
  53. package/dist/lyra25.cjs +1 -0
  54. package/dist/lyra25.js +6 -0
  55. package/dist/lyra26.cjs +1 -0
  56. package/dist/lyra26.js +20 -0
  57. package/dist/lyra27.cjs +1 -0
  58. package/dist/lyra27.js +4 -0
  59. package/dist/lyra28.cjs +1 -0
  60. package/dist/lyra28.js +21 -0
  61. package/dist/lyra29.cjs +1 -0
  62. package/dist/lyra29.js +4 -0
  63. package/dist/lyra3.cjs +1 -0
  64. package/dist/lyra3.js +15 -0
  65. package/dist/lyra30.cjs +1 -0
  66. package/dist/lyra30.js +28 -0
  67. package/dist/lyra31.cjs +1 -0
  68. package/dist/lyra31.js +4 -0
  69. package/dist/lyra32.cjs +1 -0
  70. package/dist/lyra32.js +17 -0
  71. package/dist/lyra33.cjs +1 -0
  72. package/dist/lyra33.js +993 -0
  73. package/dist/lyra34.cjs +1 -0
  74. package/dist/lyra34.js +4 -0
  75. package/dist/lyra35.cjs +1 -0
  76. package/dist/lyra35.js +15 -0
  77. package/dist/lyra36.cjs +1 -0
  78. package/dist/lyra36.js +27 -0
  79. package/dist/lyra37.cjs +1 -0
  80. package/dist/lyra37.js +13 -0
  81. package/dist/lyra38.cjs +1 -0
  82. package/dist/lyra38.js +41 -0
  83. package/dist/lyra39.cjs +1 -0
  84. package/dist/lyra39.js +2000 -0
  85. package/dist/lyra4.cjs +1 -0
  86. package/dist/lyra4.js +25 -0
  87. package/dist/lyra40.cjs +1 -0
  88. package/dist/lyra40.js +9 -0
  89. package/dist/lyra41.cjs +1 -0
  90. package/dist/lyra41.js +74 -0
  91. package/dist/lyra42.cjs +1 -0
  92. package/dist/lyra42.js +100 -0
  93. package/dist/lyra43.cjs +1 -0
  94. package/dist/lyra43.js +28 -0
  95. package/dist/lyra44.cjs +1 -0
  96. package/dist/lyra44.js +41 -0
  97. package/dist/lyra5.cjs +1 -0
  98. package/dist/lyra5.js +48 -0
  99. package/dist/lyra6.cjs +1 -0
  100. package/dist/lyra6.js +23 -0
  101. package/dist/lyra7.cjs +1 -0
  102. package/dist/lyra7.js +10 -0
  103. package/dist/lyra8.cjs +1 -0
  104. package/dist/lyra8.js +352 -0
  105. package/dist/lyra9.cjs +1 -0
  106. package/dist/lyra9.js +8 -0
  107. package/dist/provider.d.ts +9 -0
  108. package/dist/provider.d.ts.map +1 -0
  109. package/dist/style.css +1 -0
  110. package/dist/utils/class-variance-authority/index.d.ts +22 -0
  111. package/dist/utils/class-variance-authority/index.d.ts.map +1 -0
  112. package/dist/utils/class-variance-authority/types.d.ts +16 -0
  113. package/dist/utils/class-variance-authority/types.d.ts.map +1 -0
  114. package/dist/vite.svg +1 -0
  115. package/package.json +77 -0
@@ -0,0 +1,3 @@
1
+ export * from "./spinner";
2
+ export * from "./spinner.styles";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/spinner/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { spinnerStyles } from "./spinner.styles";
2
+ import { VariantProps } from "~/utils/class-variance-authority";
3
+ export type SpinnerProps = VariantProps<typeof spinnerStyles> & {
4
+ className?: string;
5
+ };
6
+ export declare function Spinner({ className, color, size }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../../src/components/spinner/spinner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,YAAY,2CAO/D"}
@@ -0,0 +1,5 @@
1
+ export declare const spinnerStyles: (props?: ({
2
+ size?: "medium" | "small" | "large" | null | undefined;
3
+ color?: "current" | "danger" | "accent" | null | undefined;
4
+ } & import("../../utils/class-variance-authority/types").ClassProp) | undefined) => string;
5
+ //# sourceMappingURL=spinner.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/spinner/spinner.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;0FAoBzB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./text";
2
+ export * from "./text.styles";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes } from "react";
2
+ import { textStyles } from "./text.styles";
3
+ import { VariantProps } from "~/utils/class-variance-authority";
4
+ export type TextProps = VariantProps<typeof textStyles> & HTMLAttributes<HTMLElement> & {
5
+ elementType?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | "small" | "p";
6
+ };
7
+ export declare const Text: import("react").ForwardRefExoticComponent<VariantProps<(props?: ({
8
+ variant?: "small" | "body" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "paragraph" | "extraSmall" | null | undefined;
9
+ } & import("../../utils/class-variance-authority/types").ClassProp) | undefined) => string> & HTMLAttributes<HTMLElement> & {
10
+ elementType?: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
11
+ } & import("react").RefAttributes<HTMLElement>>;
12
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/components/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAsB,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,GACrD,cAAc,CAAC,WAAW,CAAC,GAAG;IAC5B,WAAW,CAAC,EACR,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,MAAM,GACN,OAAO,GACP,GAAG,CAAC;CACT,CAAC;AAEJ,eAAO,MAAM,IAAI;;;;+CAiBf,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const textStyles: (props?: ({
2
+ variant?: "small" | "body" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "paragraph" | "extraSmall" | null | undefined;
3
+ } & import("../../utils/class-variance-authority/types").ClassProp) | undefined) => string;
4
+ //# sourceMappingURL=text.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/text/text.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;0FAkBrB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from "./provider";
2
+ export * from "./components/spinner";
3
+ export * from "./components/text";
4
+ export * from "./lyra-preset";
5
+ export * from "./lyra-plugin";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const lyraPlugin: {
2
+ handler: import("tailwindcss/types/config").PluginCreator;
3
+ config?: Partial<import("tailwindcss").Config> | undefined;
4
+ };
5
+ //# sourceMappingURL=lyra-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lyra-plugin.d.ts","sourceRoot":"","sources":["../../src/lyra-plugin.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;CA2YtB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const lyraPreset: {
2
+ darkMode: "class";
3
+ content: never[];
4
+ plugins: any[];
5
+ };
6
+ //# sourceMappingURL=lyra-preset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lyra-preset.d.ts","sourceRoot":"","sources":["../../src/lyra-preset.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;;;CAIL,CAAC"}
package/dist/lyra.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lyra2.cjs"),r=require("./lyra3.cjs"),t=require("./lyra4.cjs"),n=require("./lyra5.cjs"),s=require("./lyra6.cjs"),i=require("./lyra7.cjs"),l=require("./lyra8.cjs");exports.Provider=e.Provider;exports.Spinner=r.Spinner;exports.spinnerStyles=t.spinnerStyles;exports.Text=n.Text;exports.textStyles=s.textStyles;exports.lyraPreset=i.lyraPreset;exports.lyraPlugin=l.lyraPlugin;
package/dist/lyra.js ADDED
@@ -0,0 +1,16 @@
1
+ import { Provider as o } from "./lyra2.js";
2
+ import { Spinner as p } from "./lyra3.js";
3
+ import { spinnerStyles as f } from "./lyra4.js";
4
+ import { Text as l } from "./lyra5.js";
5
+ import { textStyles as i } from "./lyra6.js";
6
+ import { lyraPreset as y } from "./lyra7.js";
7
+ import { lyraPlugin as S } from "./lyra8.js";
8
+ export {
9
+ o as Provider,
10
+ p as Spinner,
11
+ l as Text,
12
+ S as lyraPlugin,
13
+ y as lyraPreset,
14
+ f as spinnerStyles,
15
+ i as textStyles
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
package/dist/lyra10.js ADDED
@@ -0,0 +1,4 @@
1
+ const e = "";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),s={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:!1},l=e.createContext(s);function a(o){let t=e.useContext(l),c=d(t===s),[n,u]=e.useState(!0),r=e.useMemo(()=>({prefix:t===s?"":`${t.prefix}-${c}`,current:0,isSSR:n}),[t,c,n]);return typeof window<"u"&&e.useLayoutEffect(()=>{u(!1)},[]),e.createElement(l.Provider,{value:r},o.children)}let f=new WeakMap;function d(o=!1){let t=e.useContext(l),c=e.useRef(null);if(c.current===null&&!o){var n,u;let r=(n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(u=n.ReactCurrentOwner)===null||u===void 0?void 0:u.current;if(r){let i=f.get(r);i==null?f.set(r,{id:t.current,state:r.memoizedState}):r.memoizedState!==i.state&&(t.current=i.id,f.delete(r))}c.current=++t.current}return c.current}function $(){return e.useContext(l).isSSR}exports.SSRProvider=a;exports.useIsSSR=$;
package/dist/lyra11.js ADDED
@@ -0,0 +1,48 @@
1
+ import a, { useContext as s, useState as d, useMemo as $, useLayoutEffect as v, useRef as p } from "react";
2
+ const i = {
3
+ prefix: String(Math.round(Math.random() * 1e10)),
4
+ current: 0,
5
+ isSSR: !1
6
+ }, o = /* @__PURE__ */ a.createContext(i);
7
+ function S(u) {
8
+ let e = s(o), r = m(e === i), [c, n] = d(!0), t = $(() => ({
9
+ // If this is the first SSRProvider, start with an empty string prefix, otherwise
10
+ // append and increment the counter.
11
+ prefix: e === i ? "" : `${e.prefix}-${r}`,
12
+ current: 0,
13
+ isSSR: c
14
+ }), [
15
+ e,
16
+ r,
17
+ c
18
+ ]);
19
+ return typeof window < "u" && v(() => {
20
+ n(!1);
21
+ }, []), /* @__PURE__ */ a.createElement(o.Provider, {
22
+ value: t
23
+ }, u.children);
24
+ }
25
+ let l = /* @__PURE__ */ new WeakMap();
26
+ function m(u = !1) {
27
+ let e = s(o), r = p(null);
28
+ if (r.current === null && !u) {
29
+ var c, n;
30
+ let t = (c = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || c === void 0 || (n = c.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
31
+ if (t) {
32
+ let f = l.get(t);
33
+ f == null ? l.set(t, {
34
+ id: e.current,
35
+ state: t.memoizedState
36
+ }) : t.memoizedState !== f.state && (e.current = f.id, l.delete(t));
37
+ }
38
+ r.current = ++e.current;
39
+ }
40
+ return r.current;
41
+ }
42
+ function b() {
43
+ return s(o).isSSR;
44
+ }
45
+ export {
46
+ S as SSRProvider,
47
+ b as useIsSSR
48
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),u=require("./lyra11.cjs"),$=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),s=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function o(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return $.has(t)}let a=e.split("-")[0];return s.has(a)}function i(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:o(e)?"rtl":"ltr"}}let l=i(),r=new Set;function c(){l=i();for(let e of r)e(l)}function g(){let e=u.useIsSSR(),[a,t]=n.useState(l);return n.useEffect(()=>(r.size===0&&window.addEventListener("languagechange",c),r.add(t),()=>{r.delete(t),r.size===0&&window.removeEventListener("languagechange",c)}),[]),e?{locale:"en-US",direction:"ltr"}:a}const v=n.createContext(null);function S(e){let{locale:a,children:t}=e,f=g(),d=a?{locale:a,direction:o(a)?"rtl":"ltr"}:f;return n.createElement(v.Provider,{value:d},t)}exports.I18nProvider=S;
package/dist/lyra12.js ADDED
@@ -0,0 +1,84 @@
1
+ import l, { useState as $, useEffect as u } from "react";
2
+ import { useIsSSR as s } from "./lyra11.js";
3
+ const g = /* @__PURE__ */ new Set([
4
+ "Arab",
5
+ "Syrc",
6
+ "Samr",
7
+ "Mand",
8
+ "Thaa",
9
+ "Mend",
10
+ "Nkoo",
11
+ "Adlm",
12
+ "Rohg",
13
+ "Hebr"
14
+ ]), p = /* @__PURE__ */ new Set([
15
+ "ae",
16
+ "ar",
17
+ "arc",
18
+ "bcc",
19
+ "bqi",
20
+ "ckb",
21
+ "dv",
22
+ "fa",
23
+ "glk",
24
+ "he",
25
+ "ku",
26
+ "mzn",
27
+ "nqo",
28
+ "pnb",
29
+ "ps",
30
+ "sd",
31
+ "ug",
32
+ "ur",
33
+ "yi"
34
+ ]);
35
+ function o(e) {
36
+ if (Intl.Locale) {
37
+ let t = new Intl.Locale(e).maximize().script;
38
+ return g.has(t);
39
+ }
40
+ let a = e.split("-")[0];
41
+ return p.has(a);
42
+ }
43
+ function f() {
44
+ let e = typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
45
+ try {
46
+ Intl.DateTimeFormat.supportedLocalesOf([
47
+ e
48
+ ]);
49
+ } catch {
50
+ e = "en-US";
51
+ }
52
+ return {
53
+ locale: e,
54
+ direction: o(e) ? "rtl" : "ltr"
55
+ };
56
+ }
57
+ let n = f(), r = /* @__PURE__ */ new Set();
58
+ function c() {
59
+ n = f();
60
+ for (let e of r)
61
+ e(n);
62
+ }
63
+ function v() {
64
+ let e = s(), [a, t] = $(n);
65
+ return u(() => (r.size === 0 && window.addEventListener("languagechange", c), r.add(t), () => {
66
+ r.delete(t), r.size === 0 && window.removeEventListener("languagechange", c);
67
+ }), []), e ? {
68
+ locale: "en-US",
69
+ direction: "ltr"
70
+ } : a;
71
+ }
72
+ const b = /* @__PURE__ */ l.createContext(null);
73
+ function m(e) {
74
+ let { locale: a, children: t } = e, i = v(), d = a ? {
75
+ locale: a,
76
+ direction: o(a) ? "rtl" : "ltr"
77
+ } : i;
78
+ return /* @__PURE__ */ l.createElement(b.Provider, {
79
+ value: d
80
+ }, t);
81
+ }
82
+ export {
83
+ m as I18nProvider
84
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./lyra25.cjs"),o=require("./lyra14.cjs"),l=o.plugin;function i(a){return Object.fromEntries(Object.entries(a).filter(([e])=>e!=="DEFAULT"))}var s=l(({addUtilities:a,matchUtilities:e,theme:n})=>{a({"@keyframes enter":n("keyframes.enter"),"@keyframes exit":n("keyframes.exit"),".animate-in":{animationName:"enter",animationDuration:n("animationDuration.DEFAULT"),"--tw-enter-opacity":"initial","--tw-enter-scale":"initial","--tw-enter-rotate":"initial","--tw-enter-translate-x":"initial","--tw-enter-translate-y":"initial"},".animate-out":{animationName:"exit",animationDuration:n("animationDuration.DEFAULT"),"--tw-exit-opacity":"initial","--tw-exit-scale":"initial","--tw-exit-rotate":"initial","--tw-exit-translate-x":"initial","--tw-exit-translate-y":"initial"}}),e({"fade-in":t=>({"--tw-enter-opacity":t}),"fade-out":t=>({"--tw-exit-opacity":t})},{values:n("animationOpacity")}),e({"zoom-in":t=>({"--tw-enter-scale":t}),"zoom-out":t=>({"--tw-exit-scale":t})},{values:n("animationScale")}),e({"spin-in":t=>({"--tw-enter-rotate":t}),"spin-out":t=>({"--tw-exit-rotate":t})},{values:n("animationRotate")}),e({"slide-in-from-top":t=>({"--tw-enter-translate-y":`-${t}`}),"slide-in-from-bottom":t=>({"--tw-enter-translate-y":t}),"slide-in-from-left":t=>({"--tw-enter-translate-x":`-${t}`}),"slide-in-from-right":t=>({"--tw-enter-translate-x":t}),"slide-out-to-top":t=>({"--tw-exit-translate-y":`-${t}`}),"slide-out-to-bottom":t=>({"--tw-exit-translate-y":t}),"slide-out-to-left":t=>({"--tw-exit-translate-x":`-${t}`}),"slide-out-to-right":t=>({"--tw-exit-translate-x":t})},{values:n("animationTranslate")}),e({duration:t=>({animationDuration:t})},{values:i(n("animationDuration"))}),e({delay:t=>({animationDelay:t})},{values:n("animationDelay")}),e({ease:t=>({animationTimingFunction:t})},{values:i(n("animationTimingFunction"))}),a({".running":{animationPlayState:"running"},".paused":{animationPlayState:"paused"}}),e({"fill-mode":t=>({animationFillMode:t})},{values:n("animationFillMode")}),e({direction:t=>({animationDirection:t})},{values:n("animationDirection")}),e({repeat:t=>({animationIterationCount:t})},{values:n("animationRepeat")})},{theme:{extend:{animationDelay:({theme:a})=>({...a("transitionDelay")}),animationDuration:({theme:a})=>({0:"0ms",...a("transitionDuration")}),animationTimingFunction:({theme:a})=>({...a("transitionTimingFunction")}),animationFillMode:{none:"none",forwards:"forwards",backwards:"backwards",both:"both"},animationDirection:{normal:"normal",reverse:"reverse",alternate:"alternate","alternate-reverse":"alternate-reverse"},animationOpacity:({theme:a})=>({DEFAULT:0,...a("opacity")}),animationTranslate:({theme:a})=>({DEFAULT:"100%",...a("translate")}),animationScale:({theme:a})=>({DEFAULT:0,...a("scale")}),animationRotate:({theme:a})=>({DEFAULT:"30deg",...a("rotate")}),animationRepeat:{0:"0",1:"1",infinite:"infinite"},keyframes:{enter:{from:{opacity:"var(--tw-enter-opacity, 1)",transform:"translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"}},exit:{to:{opacity:"var(--tw-exit-opacity, 1)",transform:"translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"}}}}}});const u=r.getDefaultExportFromCjs(s);exports.default=u;
package/dist/lyra13.js ADDED
@@ -0,0 +1,168 @@
1
+ import { getDefaultExportFromCjs as r } from "./lyra25.js";
2
+ import { p as o } from "./lyra14.js";
3
+ const l = o;
4
+ function i(a) {
5
+ return Object.fromEntries(
6
+ Object.entries(a).filter(([e]) => e !== "DEFAULT")
7
+ );
8
+ }
9
+ var s = l(
10
+ ({ addUtilities: a, matchUtilities: e, theme: n }) => {
11
+ a({
12
+ "@keyframes enter": n("keyframes.enter"),
13
+ "@keyframes exit": n("keyframes.exit"),
14
+ ".animate-in": {
15
+ animationName: "enter",
16
+ animationDuration: n("animationDuration.DEFAULT"),
17
+ "--tw-enter-opacity": "initial",
18
+ "--tw-enter-scale": "initial",
19
+ "--tw-enter-rotate": "initial",
20
+ "--tw-enter-translate-x": "initial",
21
+ "--tw-enter-translate-y": "initial"
22
+ },
23
+ ".animate-out": {
24
+ animationName: "exit",
25
+ animationDuration: n("animationDuration.DEFAULT"),
26
+ "--tw-exit-opacity": "initial",
27
+ "--tw-exit-scale": "initial",
28
+ "--tw-exit-rotate": "initial",
29
+ "--tw-exit-translate-x": "initial",
30
+ "--tw-exit-translate-y": "initial"
31
+ }
32
+ }), e(
33
+ {
34
+ "fade-in": (t) => ({ "--tw-enter-opacity": t }),
35
+ "fade-out": (t) => ({ "--tw-exit-opacity": t })
36
+ },
37
+ { values: n("animationOpacity") }
38
+ ), e(
39
+ {
40
+ "zoom-in": (t) => ({ "--tw-enter-scale": t }),
41
+ "zoom-out": (t) => ({ "--tw-exit-scale": t })
42
+ },
43
+ { values: n("animationScale") }
44
+ ), e(
45
+ {
46
+ "spin-in": (t) => ({ "--tw-enter-rotate": t }),
47
+ "spin-out": (t) => ({ "--tw-exit-rotate": t })
48
+ },
49
+ { values: n("animationRotate") }
50
+ ), e(
51
+ {
52
+ "slide-in-from-top": (t) => ({
53
+ "--tw-enter-translate-y": `-${t}`
54
+ }),
55
+ "slide-in-from-bottom": (t) => ({
56
+ "--tw-enter-translate-y": t
57
+ }),
58
+ "slide-in-from-left": (t) => ({
59
+ "--tw-enter-translate-x": `-${t}`
60
+ }),
61
+ "slide-in-from-right": (t) => ({
62
+ "--tw-enter-translate-x": t
63
+ }),
64
+ "slide-out-to-top": (t) => ({
65
+ "--tw-exit-translate-y": `-${t}`
66
+ }),
67
+ "slide-out-to-bottom": (t) => ({
68
+ "--tw-exit-translate-y": t
69
+ }),
70
+ "slide-out-to-left": (t) => ({
71
+ "--tw-exit-translate-x": `-${t}`
72
+ }),
73
+ "slide-out-to-right": (t) => ({
74
+ "--tw-exit-translate-x": t
75
+ })
76
+ },
77
+ { values: n("animationTranslate") }
78
+ ), e(
79
+ { duration: (t) => ({ animationDuration: t }) },
80
+ { values: i(n("animationDuration")) }
81
+ ), e(
82
+ { delay: (t) => ({ animationDelay: t }) },
83
+ { values: n("animationDelay") }
84
+ ), e(
85
+ { ease: (t) => ({ animationTimingFunction: t }) },
86
+ { values: i(n("animationTimingFunction")) }
87
+ ), a({
88
+ ".running": { animationPlayState: "running" },
89
+ ".paused": { animationPlayState: "paused" }
90
+ }), e(
91
+ { "fill-mode": (t) => ({ animationFillMode: t }) },
92
+ { values: n("animationFillMode") }
93
+ ), e(
94
+ { direction: (t) => ({ animationDirection: t }) },
95
+ { values: n("animationDirection") }
96
+ ), e(
97
+ { repeat: (t) => ({ animationIterationCount: t }) },
98
+ { values: n("animationRepeat") }
99
+ );
100
+ },
101
+ {
102
+ theme: {
103
+ extend: {
104
+ animationDelay: ({ theme: a }) => ({
105
+ ...a("transitionDelay")
106
+ }),
107
+ animationDuration: ({ theme: a }) => ({
108
+ 0: "0ms",
109
+ ...a("transitionDuration")
110
+ }),
111
+ animationTimingFunction: ({ theme: a }) => ({
112
+ ...a("transitionTimingFunction")
113
+ }),
114
+ animationFillMode: {
115
+ none: "none",
116
+ forwards: "forwards",
117
+ backwards: "backwards",
118
+ both: "both"
119
+ },
120
+ animationDirection: {
121
+ normal: "normal",
122
+ reverse: "reverse",
123
+ alternate: "alternate",
124
+ "alternate-reverse": "alternate-reverse"
125
+ },
126
+ animationOpacity: ({ theme: a }) => ({
127
+ DEFAULT: 0,
128
+ ...a("opacity")
129
+ }),
130
+ animationTranslate: ({ theme: a }) => ({
131
+ DEFAULT: "100%",
132
+ ...a("translate")
133
+ }),
134
+ animationScale: ({ theme: a }) => ({
135
+ DEFAULT: 0,
136
+ ...a("scale")
137
+ }),
138
+ animationRotate: ({ theme: a }) => ({
139
+ DEFAULT: "30deg",
140
+ ...a("rotate")
141
+ }),
142
+ animationRepeat: {
143
+ 0: "0",
144
+ 1: "1",
145
+ infinite: "infinite"
146
+ },
147
+ keyframes: {
148
+ enter: {
149
+ from: {
150
+ opacity: "var(--tw-enter-opacity, 1)",
151
+ transform: "translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))"
152
+ }
153
+ },
154
+ exit: {
155
+ to: {
156
+ opacity: "var(--tw-exit-opacity, 1)",
157
+ transform: "translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))"
158
+ }
159
+ }
160
+ }
161
+ }
162
+ }
163
+ }
164
+ );
165
+ const w = /* @__PURE__ */ r(s);
166
+ export {
167
+ w as default
168
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./lyra25.cjs");require("./lyra26.cjs");const r=require("./lyra27.cjs");let e=r.__exports;var t=(e.__esModule?e:{default:e}).default;const l=u.getDefaultExportFromCjs(t);exports.default=l;exports.plugin=t;
package/dist/lyra14.js ADDED
@@ -0,0 +1,10 @@
1
+ import { getDefaultExportFromCjs as e } from "./lyra25.js";
2
+ import "./lyra26.js";
3
+ import { __exports as r } from "./lyra27.js";
4
+ let t = r;
5
+ var o = (t.__esModule ? t : { default: t }).default;
6
+ const u = /* @__PURE__ */ e(o);
7
+ export {
8
+ u as default,
9
+ o as p
10
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./lyra25.cjs");require("./lyra28.cjs");const u=require("./lyra29.cjs");let e=u.__exports;var l=(e.__esModule?e:{default:e}).default;const r=t.getDefaultExportFromCjs(l);exports.default=r;
package/dist/lyra15.js ADDED
@@ -0,0 +1,9 @@
1
+ import { getDefaultExportFromCjs as t } from "./lyra25.js";
2
+ import "./lyra28.js";
3
+ import { __exports as a } from "./lyra29.js";
4
+ let e = a;
5
+ var o = (e.__esModule ? e : { default: e }).default;
6
+ const r = /* @__PURE__ */ t(o);
7
+ export {
8
+ r as default
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),a=typeof window<"u"?u.useLayoutEffect:()=>{};function s(...e){return e.length===1?e[0]:n=>{for(let t of e)typeof t=="function"?t(n):t!=null&&(t.current=n)}}let i=new Map,o=new Set;function c(){if(typeof window>"u")return;let e=t=>{let r=i.get(t.target);r||(r=new Set,i.set(t.target,r),t.target.addEventListener("transitioncancel",n)),r.add(t.propertyName)},n=t=>{let r=i.get(t.target);if(r&&(r.delete(t.propertyName),r.size===0&&(t.target.removeEventListener("transitioncancel",n),i.delete(t.target)),i.size===0)){for(let f of o)f();o.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?c():document.addEventListener("DOMContentLoaded",c));function l(e){const n=u.useRef();return a(()=>{if(e)return typeof e=="function"?e(n.current):e.current=n.current,()=>{typeof e=="function"?e(null):e.current=null}},[e]),n}exports.mergeRefs=s;exports.useLayoutEffect=a;exports.useObjectRef=l;
package/dist/lyra16.js ADDED
@@ -0,0 +1,43 @@
1
+ import f, { useRef as s } from "react";
2
+ const u = typeof window < "u" ? f.useLayoutEffect : () => {
3
+ };
4
+ function l(...t) {
5
+ return t.length === 1 ? t[0] : (n) => {
6
+ for (let e of t)
7
+ typeof e == "function" ? e(n) : e != null && (e.current = n);
8
+ };
9
+ }
10
+ let i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Set();
11
+ function c() {
12
+ if (typeof window > "u")
13
+ return;
14
+ let t = (e) => {
15
+ let r = i.get(e.target);
16
+ r || (r = /* @__PURE__ */ new Set(), i.set(e.target, r), e.target.addEventListener("transitioncancel", n)), r.add(e.propertyName);
17
+ }, n = (e) => {
18
+ let r = i.get(e.target);
19
+ if (r && (r.delete(e.propertyName), r.size === 0 && (e.target.removeEventListener("transitioncancel", n), i.delete(e.target)), i.size === 0)) {
20
+ for (let a of o)
21
+ a();
22
+ o.clear();
23
+ }
24
+ };
25
+ document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
26
+ }
27
+ typeof document < "u" && (document.readyState !== "loading" ? c() : document.addEventListener("DOMContentLoaded", c));
28
+ function b(t) {
29
+ const n = s();
30
+ return u(() => {
31
+ if (t)
32
+ return typeof t == "function" ? t(n.current) : t.current = n.current, () => {
33
+ typeof t == "function" ? t(null) : t.current = null;
34
+ };
35
+ }, [
36
+ t
37
+ ]), n;
38
+ }
39
+ export {
40
+ l as mergeRefs,
41
+ u as useLayoutEffect,
42
+ b as useObjectRef
43
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lyra36.cjs"),r=require("./lyra39.cjs");var t=e.createTailwindMerge(r.getDefaultConfig);exports.twMerge=t;
package/dist/lyra17.js ADDED
@@ -0,0 +1,6 @@
1
+ import { createTailwindMerge as e } from "./lyra36.js";
2
+ import { getDefaultConfig as r } from "./lyra39.js";
3
+ var i = /* @__PURE__ */ e(r);
4
+ export {
5
+ i as twMerge
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./lyra22.cjs"),N=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,i=O.clsx,C=(n,a)=>t=>{var y;if((a==null?void 0:a.variants)==null)return i(n,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:m,defaultVariants:s}=a,j=Object.keys(m).map(e=>{const c=t==null?void 0:t[e],l=s==null?void 0:s[e];if(c===null)return null;const u=N(c)||N(l);return m[e][u]}),r=t&&Object.entries(t).reduce((e,[c,l])=>(l===void 0||(e[c]=l),e),{}),x=(y=a==null?void 0:a.compoundVariants)==null?void 0:y.reduce((e,{class:c,className:l,...u})=>Object.entries(u).every(([b,d])=>Array.isArray(d)?d.includes({...s,...r}[b]):{...s,...r}[b]===d)?[...e,c,l]:e,[]);return i(n,j,x,t==null?void 0:t.class,t==null?void 0:t.className)};exports.cva=C;exports.cx=i;
package/dist/lyra18.js ADDED
@@ -0,0 +1,41 @@
1
+ import { clsx as C } from "./lyra22.js";
2
+ const N = (n) => typeof n == "boolean" ? `${n}` : n === 0 ? "0" : n, b = C, V = (n, a) => (t) => {
3
+ var r;
4
+ if ((a == null ? void 0 : a.variants) == null)
5
+ return b(n, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
6
+ const { variants: d, defaultVariants: c } = a, j = Object.keys(d).map(
7
+ (e) => {
8
+ const l = t == null ? void 0 : t[e], s = c == null ? void 0 : c[e];
9
+ if (l === null)
10
+ return null;
11
+ const m = N(l) || N(
12
+ s
13
+ );
14
+ return d[e][m];
15
+ }
16
+ ), i = t && Object.entries(t).reduce((e, [l, s]) => (s === void 0 || (e[l] = s), e), {}), x = (r = a == null ? void 0 : a.compoundVariants) == null ? void 0 : r.reduce(
17
+ (e, { class: l, className: s, ...m }) => Object.entries(m).every(
18
+ ([y, u]) => Array.isArray(u) ? u.includes(
19
+ {
20
+ ...c,
21
+ ...i
22
+ }[y]
23
+ ) : {
24
+ ...c,
25
+ ...i
26
+ }[y] === u
27
+ ) ? [...e, l, s] : e,
28
+ []
29
+ );
30
+ return b(
31
+ n,
32
+ j,
33
+ x,
34
+ t == null ? void 0 : t.class,
35
+ t == null ? void 0 : t.className
36
+ );
37
+ };
38
+ export {
39
+ V as cva,
40
+ b as cx
41
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
package/dist/lyra19.js ADDED
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
package/dist/lyra2.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lyra9.cjs");require("./lyra10.cjs");const s=require("./lyra11.cjs"),n=require("./lyra12.cjs"),d=({theme:r="light",locale:i,children:t,...o})=>e.jsxRuntimeExports.jsx("div",{className:r==="dark"?"dark":"",children:e.jsxRuntimeExports.jsx(s.SSRProvider,{...o,children:e.jsxRuntimeExports.jsx(n.I18nProvider,{locale:i??"en",children:t})})});exports.Provider=d;
package/dist/lyra2.js ADDED
@@ -0,0 +1,13 @@
1
+ import { j as r } from "./lyra9.js";
2
+ import "./lyra10.js";
3
+ import { SSRProvider as i } from "./lyra11.js";
4
+ import { I18nProvider as s } from "./lyra12.js";
5
+ const p = ({
6
+ theme: o = "light",
7
+ locale: a,
8
+ children: e,
9
+ ...f
10
+ }) => /* @__PURE__ */ r.jsx("div", { className: o === "dark" ? "dark" : "", children: /* @__PURE__ */ r.jsx(i, { ...f, children: /* @__PURE__ */ r.jsx(s, { locale: a ?? "en", children: e }) }) });
11
+ export {
12
+ p as Provider
13
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./lyra23.cjs"),a=require("react");/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var p;function R(){if(p)return t.__exports;p=1;var f=a,c=Symbol.for("react.element"),l=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function i(o,e,u){var r,n={},_=null,s=null;u!==void 0&&(_=""+u),e.key!==void 0&&(_=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)d.call(e,r)&&!y.hasOwnProperty(r)&&(n[r]=e[r]);if(o&&o.defaultProps)for(r in e=o.defaultProps,e)n[r]===void 0&&(n[r]=e[r]);return{$$typeof:c,type:o,key:_,ref:s,props:n,_owner:m.current}}return t.__exports.Fragment=l,t.__exports.jsx=i,t.__exports.jsxs=i,t.__exports}exports.__require=R;