@lucasromero/matrix-ui 0.1.0

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.
package/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
9
+
10
+ ## React Compiler
11
+
12
+ The React Compiler is enabled on this template. See [this documentation](https://react.dev/learn/react-compiler) for more information.
13
+
14
+ Note: This will impact Vite dev & build performances.
15
+
16
+ ## Expanding the ESLint configuration
17
+
18
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
19
+
20
+ ```js
21
+ export default defineConfig([
22
+ globalIgnores(['dist']),
23
+ {
24
+ files: ['**/*.{ts,tsx}'],
25
+ extends: [
26
+ // Other configs...
27
+
28
+ // Remove tseslint.configs.recommended and replace with this
29
+ tseslint.configs.recommendedTypeChecked,
30
+ // Alternatively, use this for stricter rules
31
+ tseslint.configs.strictTypeChecked,
32
+ // Optionally, add this for stylistic rules
33
+ tseslint.configs.stylisticTypeChecked,
34
+
35
+ // Other configs...
36
+ ],
37
+ languageOptions: {
38
+ parserOptions: {
39
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
40
+ tsconfigRootDir: import.meta.dirname,
41
+ },
42
+ // other options...
43
+ },
44
+ },
45
+ ]);
46
+ ```
47
+
48
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
49
+
50
+ ```js
51
+ // eslint.config.js
52
+ import reactX from 'eslint-plugin-react-x';
53
+ import reactDom from 'eslint-plugin-react-dom';
54
+
55
+ export default defineConfig([
56
+ globalIgnores(['dist']),
57
+ {
58
+ files: ['**/*.{ts,tsx}'],
59
+ extends: [
60
+ // Other configs...
61
+ // Enable lint rules for React
62
+ reactX.configs['recommended-typescript'],
63
+ // Enable lint rules for React DOM
64
+ reactDom.configs.recommended,
65
+ ],
66
+ languageOptions: {
67
+ parserOptions: {
68
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
69
+ tsconfigRootDir: import.meta.dirname,
70
+ },
71
+ // other options...
72
+ },
73
+ },
74
+ ]);
75
+ ```
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { ButtonProps } from '../../types/buttonType';
3
+ export declare const Button: React.FC<ButtonProps>;
@@ -0,0 +1 @@
1
+ export * from './Button';
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { CardProps } from '../../types';
3
+ export declare const Card: React.FC<CardProps>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { DropdownMenuProps } from '../../types';
3
+ export declare const DropdownMenu: React.FC<DropdownMenuProps>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { ImageProps } from '../../types';
3
+ export declare const Image: React.FC<ImageProps>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { LinkProps } from '../../types';
3
+ export declare const Link: React.FC<LinkProps>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { NavbarProps } from '../../types';
3
+ export declare const Navbar: React.FC<NavbarProps>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { RatingProps } from '../../types';
3
+ export declare const Rating: React.FC<RatingProps>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { TextProps } from '../../types';
3
+ export declare const Text: React.FC<TextProps>;
@@ -0,0 +1,8 @@
1
+ export * from './Button/Button';
2
+ export * from './Card/Card';
3
+ export * from './Text/Text';
4
+ export * from './Image/Image';
5
+ export * from './Rating/Rating';
6
+ export * from './Navbar/Navbar';
7
+ export * from './Link/Link';
8
+ export * from './DropdownMenu/DropdownMenu';
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="d" width="79.355" height="29.4" x="-49.64" y="2.03" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="e" width="79.579" height="29.4" x="-45.045" y="20.029" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="f" width="79.579" height="29.4" x="-43.513" y="21.178" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="g" width="74.749" height="58.852" x="15.756" y="-17.901" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="h" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="i" width="61.377" height="25.362" x="23.548" y="2.284" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="j" width="56.045" height="63.649" x="-27.636" y="-22.853" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="k" width="54.814" height="64.646" x="20.116" y="-38.415" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="l" width="33.541" height="35.313" x="24.641" y="-11.323" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="m" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="n" width="54.814" height="64.646" x="-29.286" y="6.009" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="o" width="54.814" height="64.646" x="8.244" y="-2.416" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter><filter id="p" width="39.409" height="43.623" x="18.713" y="10.588" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="4.596"/></filter></defs></svg>
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang=en>
3
+ <meta charset=utf-8>
4
+ <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
5
+ <title>Error 404 (Not Found)!!1</title>
6
+ <style>
7
+ *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
8
+ </style>
9
+ <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
10
+ <p><b>404.</b> <ins>That’s an error.</ins>
11
+ <p>The requested URL <code>/s/inter/v13/UcCO3FwrK3iLTeHAPMtMVtMwcf7c.woff2</code> was not found on this server. <ins>That’s all we know.</ins>
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang=en>
3
+ <meta charset=utf-8>
4
+ <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
5
+ <title>Error 404 (Not Found)!!1</title>
6
+ <style>
7
+ *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
8
+ </style>
9
+ <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
10
+ <p><b>404.</b> <ins>That’s an error.</ins>
11
+ <p>The requested URL <code>/s/inter/v13/UcCO3FwrK3iLTeHAPMtMVtMwcPr8.woff2</code> was not found on this server. <ins>That’s all we know.</ins>
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang=en>
3
+ <meta charset=utf-8>
4
+ <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
5
+ <title>Error 404 (Not Found)!!1</title>
6
+ <style>
7
+ *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
8
+ </style>
9
+ <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
10
+ <p><b>404.</b> <ins>That’s an error.</ins>
11
+ <p>The requested URL <code>/s/inter/v13/UcCO3FwrK3iLTeHAPMtMVtMwcO74.woff2</code> was not found on this server. <ins>That’s all we know.</ins>
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang=en>
3
+ <meta charset=utf-8>
4
+ <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
5
+ <title>Error 404 (Not Found)!!1</title>
6
+ <style>
7
+ *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
8
+ </style>
9
+ <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
10
+ <p><b>404.</b> <ins>That’s an error.</ins>
11
+ <p>The requested URL <code>/s/inter/v13/UcCO3FwrK3iLTeHAPMtMVtMwcPb5.woff2</code> was not found on this server. <ins>That’s all we know.</ins>
@@ -0,0 +1 @@
1
+ export * from './useBreakpoint';
@@ -0,0 +1,7 @@
1
+ export declare const getMatch: (query: string) => boolean;
2
+ export declare const useBreakpoint: () => {
3
+ isBelowMobileMinimum: boolean;
4
+ isMobile: boolean;
5
+ isTablet: boolean;
6
+ isDesktop: boolean;
7
+ };
package/dist/icons.svg ADDED
@@ -0,0 +1,24 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg">
2
+ <symbol id="bluesky-icon" viewBox="0 0 16 17">
3
+ <g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
4
+ <defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
5
+ </symbol>
6
+ <symbol id="discord-icon" viewBox="0 0 20 19">
7
+ <path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
8
+ </symbol>
9
+ <symbol id="documentation-icon" viewBox="0 0 21 20">
10
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
11
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
12
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
13
+ </symbol>
14
+ <symbol id="github-icon" viewBox="0 0 19 19">
15
+ <path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
16
+ </symbol>
17
+ <symbol id="social-icon" viewBox="0 0 20 20">
18
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
19
+ <path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
20
+ </symbol>
21
+ <symbol id="x-icon" viewBox="0 0 19 19">
22
+ <path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
23
+ </symbol>
24
+ </svg>
@@ -0,0 +1 @@
1
+ export { Button, Card, DropdownMenu, Image, Link, Navbar, Rating, Text } from './components';
@@ -0,0 +1,341 @@
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.primary{color:#111827;cursor:pointer;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.primary:hover:not(:disabled){background:#5fafd6}.primary:active:not(:disabled){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.secondary:hover:not(:disabled){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.ghost:hover:not(:disabled){background:#ffffff0d}.ghost:active:not(:disabled){background:#ffffff14}.error{color:#111827;cursor:pointer;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.error:hover:not(:disabled){filter:brightness(.95)}.error:active:not(:disabled){filter:brightness(.9)}.success{color:#111827;cursor:pointer;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.success:hover:not(:disabled){filter:brightness(.95)}.success:active:not(:disabled){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled){color:#f8fafc}.transparent:disabled{color:#64748b;cursor:not-allowed}._cardContainer_16ci6_1{border-radius:8px;flex-direction:column;justify-content:center;align-items:center;width:100%;max-width:min(400px,90%);height:auto;margin:0 auto;display:flex}._topContentContainer_16ci6_13{flex-direction:column;margin-top:1rem;margin-bottom:1rem;display:flex}._cardTitle_16ci6_20{margin:0 1rem .2rem}._miniCard_16ci6_27 ._cardTitle_16ci6_20{flex:1;margin:0}._ctaContainer_16ci6_32{box-sizing:border-box;flex-direction:column;justify-content:space-between;gap:1rem;width:100%;padding:.75rem;display:flex}._miniCard_16ci6_27 ._ctaContainer_16ci6_32{flex-direction:row;justify-content:center;gap:.5rem;padding:.5rem}._imgContainer_16ci6_49{box-sizing:border-box;border-radius:8px;justify-content:center;padding-bottom:1rem;padding-left:1.5rem;padding-right:1.5rem;display:flex}._img_16ci6_49{max-width:100%}._miniCard_16ci6_27 ._topContentContainer_16ci6_13{flex-direction:row;justify-content:flex-start;align-items:center;gap:1rem;margin-top:1rem;margin-bottom:1rem}._cardRating_16ci6_72{justify-content:center;margin-top:.1rem;display:flex}._headingSm_1wdfi_1{color:#f8fafc;font-size:1.25rem;font-weight:600}._headingMd_1wdfi_7{color:#f8fafc;font-size:1.5rem;font-weight:600}._headingLg_1wdfi_13{color:#f8fafc;font-size:1.875rem;font-weight:700}._headingXl_1wdfi_19{color:#f8fafc;font-size:2rem;font-weight:700}._bodySm_1wdfi_25{color:#cbd5e1;font-size:.875rem;font-weight:400}._bodyMd_1wdfi_31{color:#cbd5e1;font-size:1rem;font-weight:400}._bodyLg_1wdfi_37{color:#cbd5e1;font-size:1.125rem;font-weight:400}._caption_1wdfi_43{color:#cbd5e1;font-size:.75rem;font-weight:500}._img_1n4g7_1{width:auto;max-width:100%;height:auto;display:block}._circle_1n4g7_8{border-radius:50%}._ratingContainer_1xmf5_1{flex-direction:row;display:flex}._text_1xmf5_6{margin:0;padding-right:.2rem}._star_1xmf5_11{color:gold;fill:gold;width:1rem;height:1rem;margin-top:.17rem}.primary{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.primary:hover:not(:disabled),.primary:hover:not([aria-disabled=true]){background:#5fafd6}.primary:active:not(:disabled),.primary:active:not([aria-disabled=true]){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;text-align:center;vertical-align:middle;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.secondary:hover:not(:disabled),.secondary:hover:not([aria-disabled=true]){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled),.secondary:active:not([aria-disabled=true]){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.ghost:hover:not(:disabled),.ghost:hover:not([aria-disabled=true]){background:#ffffff0d}.ghost:active:not(:disabled),.ghost:active:not([aria-disabled=true]){background:#ffffff14}.error{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.error:hover:not(:disabled),.error:hover:not([aria-disabled=true]){filter:brightness(.95)}.error:active:not(:disabled),.error:active:not([aria-disabled=true]){filter:brightness(.9)}.success{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.success:hover:not(:disabled),.success:hover:not([aria-disabled=true]){filter:brightness(.95)}.success:active:not(:disabled),.success:active:not([aria-disabled=true]){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled),.transparent:hover:not([aria-disabled=true]){color:#f8fafc}.transparent.active{color:#f8fafc;background:#ffffff14}.transparent:focus-visible{outline:none;box-shadow:0 0 0 3px #87ceeb59}.transparent:disabled,.transparent[aria-disabled=true]{color:#64748b;cursor:not-allowed}.link{justify-content:center;align-items:center;display:flex}._navElementsContainer_ndrvq_1{z-index:1000;background-color:#0b0f17;border-bottom:2px solid #1f2937;width:100%;height:3.5rem;position:sticky;top:0}._internalElementsContainer_ndrvq_11{flex-direction:row;align-items:center;width:100%;height:3.5rem;display:flex}._hamburgerIcon_ndrvq_19{margin-left:auto;padding-right:2rem}._leftElementsContainer_ndrvq_24{flex-direction:row;align-items:center;gap:2rem;width:50%;padding-left:1.5rem;line-height:.625rem;display:flex}._leftElement_ndrvq_24{padding-left:2rem}._rightElementsContainer_ndrvq_38{flex-direction:row;justify-content:end;gap:2rem;width:50%;padding-right:2rem;line-height:.625rem;display:flex}._wrapper_1cng4_1{min-width:10rem;display:inline-block;position:relative}._dropdownButton_1cng4_7{padding:0}._dropdownButtonContainer_1cng4_11{justify-content:right;align-items:end;display:flex}._listItemContainer_1cng4_17{z-index:1000;border-radius:5px;flex-direction:column;justify-content:left;align-items:start;min-width:10rem;margin-top:.5rem;padding:0;display:flex;position:absolute;top:100%;left:0}._listItem_1cng4_17{padding-top:.5rem;padding-bottom:.5rem;list-style:none}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ import { createContext as e, createElement as t, forwardRef as n, useContext as r, useEffect as i, useState as a } from "react";
3
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
4
+ //#region node_modules/clsx/dist/clsx.mjs
5
+ function l(e) {
6
+ var t, n, r = "";
7
+ if (typeof e == "string" || typeof e == "number") r += e;
8
+ else if (typeof e == "object") if (Array.isArray(e)) {
9
+ var i = e.length;
10
+ for (t = 0; t < i; t++) e[t] && (n = l(e[t])) && (r && (r += " "), r += n);
11
+ } else for (n in e) e[n] && (r && (r += " "), r += n);
12
+ return r;
13
+ }
14
+ function u() {
15
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = l(e)) && (r && (r += " "), r += t);
16
+ return r;
17
+ }
18
+ //#endregion
19
+ //#region src/constants.ts
20
+ var d = {
21
+ primary: "primary",
22
+ secondary: "secondary",
23
+ ghost: "ghost",
24
+ transparent: "transparent",
25
+ success: "success",
26
+ error: "error"
27
+ }, f = {
28
+ primary: "primary",
29
+ secondary: "secondary",
30
+ ghost: "ghost",
31
+ transparent: "transparent",
32
+ success: "success",
33
+ error: "error"
34
+ }, p = (e) => `${e?.toLowerCase().replace(/\s+/g, "-")}-id`, m = ({ variant: e, text: t, onClick: n, className: r, ariaLabel: i, ariaPressed: a = !1 }) => /* @__PURE__ */ s("button", {
35
+ id: p(i),
36
+ "aria-label": i ?? "Button",
37
+ "aria-pressed": a,
38
+ onClick: n,
39
+ className: u(e && f[e], r),
40
+ role: "button",
41
+ children: t
42
+ }), h = {
43
+ cardContainer: "_cardContainer_16ci6_1",
44
+ topContentContainer: "_topContentContainer_16ci6_13",
45
+ cardTitle: "_cardTitle_16ci6_20",
46
+ miniCard: "_miniCard_16ci6_27",
47
+ ctaContainer: "_ctaContainer_16ci6_32",
48
+ imgContainer: "_imgContainer_16ci6_49",
49
+ img: "_img_16ci6_49",
50
+ cardRating: "_cardRating_16ci6_72"
51
+ }, g = {
52
+ headingXl: "h1",
53
+ headingLg: "h2",
54
+ headingMd: "h3",
55
+ headingSm: "h4",
56
+ bodyLg: "p",
57
+ bodyMd: "p",
58
+ bodySm: "p",
59
+ caption: "span"
60
+ }, _ = {
61
+ headingSm: "_headingSm_1wdfi_1",
62
+ headingMd: "_headingMd_1wdfi_7",
63
+ headingLg: "_headingLg_1wdfi_13",
64
+ headingXl: "_headingXl_1wdfi_19",
65
+ bodySm: "_bodySm_1wdfi_25",
66
+ bodyMd: "_bodyMd_1wdfi_31",
67
+ bodyLg: "_bodyLg_1wdfi_37",
68
+ caption: "_caption_1wdfi_43"
69
+ }, v = ({ copy: e, variant: t, className: n }) => {
70
+ let r = g[t];
71
+ return /* @__PURE__ */ s(r, {
72
+ className: u(n, _[t]),
73
+ children: e
74
+ });
75
+ }, y = {
76
+ img: "_img_1n4g7_1",
77
+ circle: "_circle_1n4g7_8"
78
+ }, b = ({ style: e, src: t, alt: n, className: r, isCircle: i = !1, ariaLabel: a }) => {
79
+ let o = u(y.img, i && y.circle, r);
80
+ return /* @__PURE__ */ s("img", {
81
+ id: p(a),
82
+ "aria-label": a ?? "Image",
83
+ "data-circle": i,
84
+ style: e,
85
+ className: o,
86
+ src: t,
87
+ alt: n ?? "img-alt"
88
+ });
89
+ }, x = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), S = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), C = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), w = (e) => {
90
+ let t = C(e);
91
+ return t.charAt(0).toUpperCase() + t.slice(1);
92
+ }, T = {
93
+ xmlns: "http://www.w3.org/2000/svg",
94
+ width: 24,
95
+ height: 24,
96
+ viewBox: "0 0 24 24",
97
+ fill: "none",
98
+ stroke: "currentColor",
99
+ strokeWidth: 2,
100
+ strokeLinecap: "round",
101
+ strokeLinejoin: "round"
102
+ }, E = (e) => {
103
+ for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
104
+ return !1;
105
+ }, D = e({}), O = () => r(D), k = n(({ color: e, size: n, strokeWidth: r, absoluteStrokeWidth: i, className: a = "", children: o, iconNode: s, ...c }, l) => {
106
+ let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = O() ?? {}, h = i ?? f ? Number(r ?? d) * 24 / Number(n ?? u) : r ?? d;
107
+ return t("svg", {
108
+ ref: l,
109
+ ...T,
110
+ width: n ?? u ?? T.width,
111
+ height: n ?? u ?? T.height,
112
+ stroke: e ?? p,
113
+ strokeWidth: h,
114
+ className: x("lucide", m, a),
115
+ ...!o && !E(c) && { "aria-hidden": "true" },
116
+ ...c
117
+ }, [...s.map(([e, n]) => t(e, n)), ...Array.isArray(o) ? o : [o]]);
118
+ }), A = (e, r) => {
119
+ let i = n(({ className: n, ...i }, a) => t(k, {
120
+ ref: a,
121
+ iconNode: r,
122
+ className: x(`lucide-${S(w(e))}`, `lucide-${e}`, n),
123
+ ...i
124
+ }));
125
+ return i.displayName = w(e), i;
126
+ }, j = A("menu", [
127
+ ["path", {
128
+ d: "M4 5h16",
129
+ key: "1tepv9"
130
+ }],
131
+ ["path", {
132
+ d: "M4 12h16",
133
+ key: "1lakjw"
134
+ }],
135
+ ["path", {
136
+ d: "M4 19h16",
137
+ key: "1djgab"
138
+ }]
139
+ ]), M = A("star", [["path", {
140
+ d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",
141
+ key: "r04s7s"
142
+ }]]), N = {
143
+ ratingContainer: "_ratingContainer_1xmf5_1",
144
+ text: "_text_1xmf5_6",
145
+ star: "_star_1xmf5_11"
146
+ }, P = [
147
+ { star: /* @__PURE__ */ s(M, { className: N.star }) },
148
+ { star: /* @__PURE__ */ s(M, { className: N.star }) },
149
+ { star: /* @__PURE__ */ s(M, { className: N.star }) },
150
+ { star: /* @__PURE__ */ s(M, { className: N.star }) },
151
+ { star: /* @__PURE__ */ s(M, { className: N.star }) }
152
+ ], F = ({ rating: e }) => P.filter((t, n) => e && n < e).map((e) => e.star), I = ({ variant: e, text: t, to: n, className: r, ariaLabel: i }) => /* @__PURE__ */ s("a", {
153
+ id: p(i),
154
+ className: u("link", e && d[e], r),
155
+ href: n ?? "",
156
+ target: "_blank",
157
+ rel: "noopener noreferrer",
158
+ "aria-label": i ?? "Link",
159
+ role: "link",
160
+ children: t
161
+ }), L = ({ borderColor: e = "", backgroundColor: t, miniCard: n = !1, title: r, hasRating: i, ratingValue: a, img: o, imgAriaLabel: l, isImgCircle: u = !0, primaryCta: d, secondaryCta: f }) => /* @__PURE__ */ c("article", {
162
+ id: p(`${r} Card`),
163
+ "aria-label": `${r} Card`,
164
+ className: `${h.cardContainer} ${n ? h.miniCard : ""}`,
165
+ style: {
166
+ backgroundColor: t,
167
+ border: e ? `2px solid ${e}` : void 0
168
+ },
169
+ children: [
170
+ /* @__PURE__ */ c("div", {
171
+ "aria-label": "Card Top Content Container",
172
+ className: h.topContentContainer,
173
+ children: [/* @__PURE__ */ s(v, {
174
+ className: h.cardTitle,
175
+ variant: "headingMd",
176
+ copy: r
177
+ }), i && a != null && /* @__PURE__ */ s("div", {
178
+ "aria-label": "Card Rating Container",
179
+ className: h.cardRating,
180
+ children: /* @__PURE__ */ s(F, { rating: a })
181
+ })]
182
+ }),
183
+ !n && /* @__PURE__ */ s("div", {
184
+ "aria-label": l ? `${l} Container` : "Image Container",
185
+ className: h.imgContainer,
186
+ children: /* @__PURE__ */ s(b, {
187
+ ariaLabel: l ?? "Card Image",
188
+ isCircle: u,
189
+ src: o,
190
+ alt: `${r} Card Image`,
191
+ style: { border: e ? `2px solid ${e}` : void 0 }
192
+ })
193
+ }),
194
+ /* @__PURE__ */ c("div", {
195
+ "aria-label": "Card CTA Container",
196
+ className: h.ctaContainer,
197
+ children: [d?.isLink ? /* @__PURE__ */ s(I, {
198
+ ariaLabel: d.ariaLinkLabel ?? "Primary Card Link",
199
+ to: d.to,
200
+ text: d.text,
201
+ variant: d.variant
202
+ }) : /* @__PURE__ */ s(m, {
203
+ ariaLabel: d?.ariaButtonLabel ?? "Primary Card Button",
204
+ ariaPressed: d?.ariaPressed,
205
+ variant: d?.variant,
206
+ text: d?.text,
207
+ onClick: d?.onClick
208
+ }), f && f.isLink ? /* @__PURE__ */ s(I, {
209
+ ariaLabel: f?.ariaLinkLabel ?? "Secondary Card Link",
210
+ to: f.to,
211
+ text: f.text,
212
+ variant: f.variant
213
+ }) : /* @__PURE__ */ s(m, {
214
+ ariaLabel: f?.ariaButtonLabel ?? "Secondary Card Button",
215
+ ariaPressed: f?.ariaPressed,
216
+ variant: f?.variant,
217
+ text: f?.text,
218
+ onClick: f?.onClick
219
+ })]
220
+ })
221
+ ]
222
+ }), R = {
223
+ navElementsContainer: "_navElementsContainer_ndrvq_1",
224
+ internalElementsContainer: "_internalElementsContainer_ndrvq_11",
225
+ hamburgerIcon: "_hamburgerIcon_ndrvq_19",
226
+ leftElementsContainer: "_leftElementsContainer_ndrvq_24",
227
+ leftElement: "_leftElement_ndrvq_24",
228
+ rightElementsContainer: "_rightElementsContainer_ndrvq_38"
229
+ }, z = {
230
+ mobile: "(max-width: 767px)",
231
+ tablet: "(min-width: 768px) and (max-width: 1023px)",
232
+ desktop: "(min-width: 1024px)",
233
+ belowMobile: "(max-width: 299px)"
234
+ }, B = (e) => typeof window > "u" ? !1 : window.matchMedia(e).matches, V = () => {
235
+ let [e, t] = a({
236
+ isBelowMobileMinimum: B(z.belowMobile),
237
+ isMobile: B(z.mobile),
238
+ isTablet: B(z.tablet),
239
+ isDesktop: B(z.desktop)
240
+ });
241
+ return i(() => {
242
+ let e = Object.entries(z).map(([e, n]) => {
243
+ let r = window.matchMedia(n), i = () => {
244
+ t((t) => ({
245
+ ...t,
246
+ [e === "belowMobile" ? "isBelowMobileMinimum" : `is${H(e)}`]: r.matches
247
+ }));
248
+ };
249
+ return r.addEventListener("change", i), i(), () => r.removeEventListener("change", i);
250
+ });
251
+ return () => {
252
+ e.forEach((e) => e?.());
253
+ };
254
+ }, []), e;
255
+ }, H = (e) => e.charAt(0).toUpperCase() + e.slice(1), U = {
256
+ wrapper: "_wrapper_1cng4_1",
257
+ dropdownButton: "_dropdownButton_1cng4_7",
258
+ dropdownButtonContainer: "_dropdownButtonContainer_1cng4_11",
259
+ listItemContainer: "_listItemContainer_1cng4_17",
260
+ listItem: "_listItem_1cng4_17"
261
+ }, W = ({ className: e, icon: t, options: n, listBorderColor: r, listBackgroundColor: i, isNavbarDropdown: o = !1 }) => {
262
+ let [l, d] = a(!1);
263
+ return /* @__PURE__ */ c("section", {
264
+ className: u(e, U.wrapper),
265
+ children: [/* @__PURE__ */ s("div", {
266
+ className: U.dropdownButtonContainer,
267
+ children: /* @__PURE__ */ s(m, {
268
+ className: U.dropdownButton,
269
+ text: t,
270
+ variant: "transparent",
271
+ onClick: () => d(!l),
272
+ ariaLabel: "Dropdown Menu Button"
273
+ })
274
+ }), l && /* @__PURE__ */ s("ul", {
275
+ "aria-label": "Unordered Dropdown List",
276
+ className: U.listItemContainer,
277
+ style: {
278
+ marginTop: o ? "1.5rem" : "none",
279
+ border: `2px solid ${r}`,
280
+ backgroundColor: i
281
+ },
282
+ children: n.map((e) => /* @__PURE__ */ s("li", {
283
+ "aria-label": "Dropdown List Item",
284
+ className: U.listItem,
285
+ children: /* @__PURE__ */ s(I, {
286
+ variant: e.variant,
287
+ to: e.to,
288
+ text: e.text
289
+ })
290
+ }))
291
+ })]
292
+ });
293
+ }, G = ({ ariaLabel: e, backgroundColor: t, borderBottomColor: n, dropdownListBackgroundColor: r, dropdownListBorderColor: i, dropdownListIcon: a = /* @__PURE__ */ s(j, {}), leftElement: l, leftElementNeighbors: u, rightElements: d }) => {
294
+ let f = [...u, ...d], { isMobile: m, isBelowMobileMinimum: h } = V();
295
+ return /* @__PURE__ */ s("nav", {
296
+ id: p(e),
297
+ "aria-label": e ?? "Main Navbar",
298
+ style: {
299
+ backgroundColor: t,
300
+ borderBottom: `2px solid ${n}`
301
+ },
302
+ className: R.navElementsContainer,
303
+ children: /* @__PURE__ */ c("article", {
304
+ "aria-label": "Elements Container",
305
+ className: R.internalElementsContainer,
306
+ children: [!h && /* @__PURE__ */ s("div", {
307
+ className: R.leftElement,
308
+ children: l
309
+ }), m ? /* @__PURE__ */ s(W, {
310
+ listBackgroundColor: r,
311
+ listBorderColor: i,
312
+ className: R.hamburgerIcon,
313
+ icon: a,
314
+ options: f.map(({ text: e, to: t, variant: n }) => ({
315
+ text: e,
316
+ to: t,
317
+ variant: n
318
+ })),
319
+ isNavbarDropdown: !0
320
+ }) : /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("article", {
321
+ "aria-label": "Left Navbar Elements Container",
322
+ className: R.leftElementsContainer,
323
+ children: u?.map((e) => /* @__PURE__ */ s(I, {
324
+ variant: e.variant,
325
+ text: e.text,
326
+ to: e.to
327
+ }, e.text))
328
+ }), /* @__PURE__ */ s("article", {
329
+ "aria-label": "Right Navbar Elements Container",
330
+ className: R.rightElementsContainer,
331
+ children: d.map((e) => /* @__PURE__ */ s(I, {
332
+ variant: e.variant,
333
+ text: e.text,
334
+ to: e.to
335
+ }, e.text))
336
+ })] })]
337
+ })
338
+ });
339
+ };
340
+ //#endregion
341
+ export { m as Button, L as Card, W as DropdownMenu, b as Image, I as Link, G as Navbar, F as Rating, v as Text };
@@ -0,0 +1,2 @@
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.primary{color:#111827;cursor:pointer;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.primary:hover:not(:disabled){background:#5fafd6}.primary:active:not(:disabled){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.secondary:hover:not(:disabled){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.ghost:hover:not(:disabled){background:#ffffff0d}.ghost:active:not(:disabled){background:#ffffff14}.error{color:#111827;cursor:pointer;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.error:hover:not(:disabled){filter:brightness(.95)}.error:active:not(:disabled){filter:brightness(.9)}.success{color:#111827;cursor:pointer;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem}.success:hover:not(:disabled){filter:brightness(.95)}.success:active:not(:disabled){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled){color:#f8fafc}.transparent:disabled{color:#64748b;cursor:not-allowed}._cardContainer_16ci6_1{border-radius:8px;flex-direction:column;justify-content:center;align-items:center;width:100%;max-width:min(400px,90%);height:auto;margin:0 auto;display:flex}._topContentContainer_16ci6_13{flex-direction:column;margin-top:1rem;margin-bottom:1rem;display:flex}._cardTitle_16ci6_20{margin:0 1rem .2rem}._miniCard_16ci6_27 ._cardTitle_16ci6_20{flex:1;margin:0}._ctaContainer_16ci6_32{box-sizing:border-box;flex-direction:column;justify-content:space-between;gap:1rem;width:100%;padding:.75rem;display:flex}._miniCard_16ci6_27 ._ctaContainer_16ci6_32{flex-direction:row;justify-content:center;gap:.5rem;padding:.5rem}._imgContainer_16ci6_49{box-sizing:border-box;border-radius:8px;justify-content:center;padding-bottom:1rem;padding-left:1.5rem;padding-right:1.5rem;display:flex}._img_16ci6_49{max-width:100%}._miniCard_16ci6_27 ._topContentContainer_16ci6_13{flex-direction:row;justify-content:flex-start;align-items:center;gap:1rem;margin-top:1rem;margin-bottom:1rem}._cardRating_16ci6_72{justify-content:center;margin-top:.1rem;display:flex}._headingSm_1wdfi_1{color:#f8fafc;font-size:1.25rem;font-weight:600}._headingMd_1wdfi_7{color:#f8fafc;font-size:1.5rem;font-weight:600}._headingLg_1wdfi_13{color:#f8fafc;font-size:1.875rem;font-weight:700}._headingXl_1wdfi_19{color:#f8fafc;font-size:2rem;font-weight:700}._bodySm_1wdfi_25{color:#cbd5e1;font-size:.875rem;font-weight:400}._bodyMd_1wdfi_31{color:#cbd5e1;font-size:1rem;font-weight:400}._bodyLg_1wdfi_37{color:#cbd5e1;font-size:1.125rem;font-weight:400}._caption_1wdfi_43{color:#cbd5e1;font-size:.75rem;font-weight:500}._img_1n4g7_1{width:auto;max-width:100%;height:auto;display:block}._circle_1n4g7_8{border-radius:50%}._ratingContainer_1xmf5_1{flex-direction:row;display:flex}._text_1xmf5_6{margin:0;padding-right:.2rem}._star_1xmf5_11{color:gold;fill:gold;width:1rem;height:1rem;margin-top:.17rem}.primary{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#87ceeb;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.primary:hover:not(:disabled),.primary:hover:not([aria-disabled=true]){background:#5fafd6}.primary:active:not(:disabled),.primary:active:not([aria-disabled=true]){background:#4a9bc4}.secondary{color:#f8fafc;cursor:pointer;text-align:center;vertical-align:middle;background:#1a2230;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.secondary:hover:not(:disabled),.secondary:hover:not([aria-disabled=true]){background:#232e3d;border-color:#334155}.secondary:active:not(:disabled),.secondary:active:not([aria-disabled=true]){background:#0f172a}.ghost{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.ghost:hover:not(:disabled),.ghost:hover:not([aria-disabled=true]){background:#ffffff0d}.ghost:active:not(:disabled),.ghost:active:not([aria-disabled=true]){background:#ffffff14}.error{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#e58a8a;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.error:hover:not(:disabled),.error:hover:not([aria-disabled=true]){filter:brightness(.95)}.error:active:not(:disabled),.error:active:not([aria-disabled=true]){filter:brightness(.9)}.success{color:#111827;cursor:pointer;text-align:center;vertical-align:middle;background:#9fc9ae;border:1px solid #1f2937;border-radius:.5rem;padding:.5rem 1rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none}.success:hover:not(:disabled),.success:hover:not([aria-disabled=true]){filter:brightness(.95)}.success:active:not(:disabled),.success:active:not([aria-disabled=true]){filter:brightness(.9)}.transparent{color:#cbd5e1;cursor:pointer;text-align:center;vertical-align:middle;background:0 0;border:1px solid #0000;border-radius:.5rem;padding:.5rem .75rem;font-size:13.3px;font-weight:400;line-height:1;text-decoration:none;transition:background .15s,color .15s,border-color .15s}.transparent:hover:not(:disabled),.transparent:hover:not([aria-disabled=true]){color:#f8fafc}.transparent.active{color:#f8fafc;background:#ffffff14}.transparent:focus-visible{outline:none;box-shadow:0 0 0 3px #87ceeb59}.transparent:disabled,.transparent[aria-disabled=true]{color:#64748b;cursor:not-allowed}.link{justify-content:center;align-items:center;display:flex}._navElementsContainer_ndrvq_1{z-index:1000;background-color:#0b0f17;border-bottom:2px solid #1f2937;width:100%;height:3.5rem;position:sticky;top:0}._internalElementsContainer_ndrvq_11{flex-direction:row;align-items:center;width:100%;height:3.5rem;display:flex}._hamburgerIcon_ndrvq_19{margin-left:auto;padding-right:2rem}._leftElementsContainer_ndrvq_24{flex-direction:row;align-items:center;gap:2rem;width:50%;padding-left:1.5rem;line-height:.625rem;display:flex}._leftElement_ndrvq_24{padding-left:2rem}._rightElementsContainer_ndrvq_38{flex-direction:row;justify-content:end;gap:2rem;width:50%;padding-right:2rem;line-height:.625rem;display:flex}._wrapper_1cng4_1{min-width:10rem;display:inline-block;position:relative}._dropdownButton_1cng4_7{padding:0}._dropdownButtonContainer_1cng4_11{justify-content:right;align-items:end;display:flex}._listItemContainer_1cng4_17{z-index:1000;border-radius:5px;flex-direction:column;justify-content:left;align-items:start;min-width:10rem;margin-top:.5rem;padding:0;display:flex;position:absolute;top:100%;left:0}._listItem_1cng4_17{padding-top:.5rem;padding-bottom:.5rem;list-style:none}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("react/jsx-runtime")):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`matrix-ui`]={},e.React,e.react_jsx_runtime))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:r(s(e)),l(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function u(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=u(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function d(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=u(e))&&(r&&(r+=` `),r+=t);return r}var f={primary:`primary`,secondary:`secondary`,ghost:`ghost`,transparent:`transparent`,success:`success`,error:`error`},p={primary:`primary`,secondary:`secondary`,ghost:`ghost`,transparent:`transparent`,success:`success`,error:`error`},m=e=>`${e?.toLowerCase().replace(/\s+/g,`-`)}-id`,h=({variant:e,text:t,onClick:r,className:i,ariaLabel:a,ariaPressed:o=!1})=>(0,n.jsx)(`button`,{id:m(a),"aria-label":a??`Button`,"aria-pressed":o,onClick:r,className:d(e&&p[e],i),role:`button`,children:t}),g={cardContainer:`_cardContainer_16ci6_1`,topContentContainer:`_topContentContainer_16ci6_13`,cardTitle:`_cardTitle_16ci6_20`,miniCard:`_miniCard_16ci6_27`,ctaContainer:`_ctaContainer_16ci6_32`,imgContainer:`_imgContainer_16ci6_49`,img:`_img_16ci6_49`,cardRating:`_cardRating_16ci6_72`},_={headingXl:`h1`,headingLg:`h2`,headingMd:`h3`,headingSm:`h4`,bodyLg:`p`,bodyMd:`p`,bodySm:`p`,caption:`span`},v={headingSm:`_headingSm_1wdfi_1`,headingMd:`_headingMd_1wdfi_7`,headingLg:`_headingLg_1wdfi_13`,headingXl:`_headingXl_1wdfi_19`,bodySm:`_bodySm_1wdfi_25`,bodyMd:`_bodyMd_1wdfi_31`,bodyLg:`_bodyLg_1wdfi_37`,caption:`_caption_1wdfi_43`},y=({copy:e,variant:t,className:r})=>{let i=_[t];return(0,n.jsx)(i,{className:d(r,v[t]),children:e})},b={img:`_img_1n4g7_1`,circle:`_circle_1n4g7_8`},x=({style:e,src:t,alt:r,className:i,isCircle:a=!1,ariaLabel:o})=>{let s=d(b.img,a&&b.circle,i);return(0,n.jsx)(`img`,{id:m(o),"aria-label":o??`Image`,"data-circle":a,style:e,className:s,src:t,alt:r??`img-alt`})},S=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),C=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),w=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),T=e=>{let t=w(e);return t.charAt(0).toUpperCase()+t.slice(1)},E={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},D=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},O=(0,t.createContext)({}),k=()=>(0,t.useContext)(O),A=(0,t.forwardRef)(({color:e,size:n,strokeWidth:r,absoluteStrokeWidth:i,className:a=``,children:o,iconNode:s,...c},l)=>{let{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:f=!1,color:p=`currentColor`,className:m=``}=k()??{},h=i??f?Number(r??d)*24/Number(n??u):r??d;return(0,t.createElement)(`svg`,{ref:l,...E,width:n??u??E.width,height:n??u??E.height,stroke:e??p,strokeWidth:h,className:S(`lucide`,m,a),...!o&&!D(c)&&{"aria-hidden":`true`},...c},[...s.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(o)?o:[o]])}),j=(e,n)=>{let r=(0,t.forwardRef)(({className:r,...i},a)=>(0,t.createElement)(A,{ref:a,iconNode:n,className:S(`lucide-${C(T(e))}`,`lucide-${e}`,r),...i}));return r.displayName=T(e),r},M=j(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),N=j(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),P={ratingContainer:`_ratingContainer_1xmf5_1`,text:`_text_1xmf5_6`,star:`_star_1xmf5_11`},F=[{star:(0,n.jsx)(N,{className:P.star})},{star:(0,n.jsx)(N,{className:P.star})},{star:(0,n.jsx)(N,{className:P.star})},{star:(0,n.jsx)(N,{className:P.star})},{star:(0,n.jsx)(N,{className:P.star})}],I=({rating:e})=>F.filter((t,n)=>e&&n<e).map(e=>e.star),L=({variant:e,text:t,to:r,className:i,ariaLabel:a})=>(0,n.jsx)(`a`,{id:m(a),className:d(`link`,e&&f[e],i),href:r??``,target:`_blank`,rel:`noopener noreferrer`,"aria-label":a??`Link`,role:`link`,children:t}),R=({borderColor:e=``,backgroundColor:t,miniCard:r=!1,title:i,hasRating:a,ratingValue:o,img:s,imgAriaLabel:c,isImgCircle:l=!0,primaryCta:u,secondaryCta:d})=>(0,n.jsxs)(`article`,{id:m(`${i} Card`),"aria-label":`${i} Card`,className:`${g.cardContainer} ${r?g.miniCard:``}`,style:{backgroundColor:t,border:e?`2px solid ${e}`:void 0},children:[(0,n.jsxs)(`div`,{"aria-label":`Card Top Content Container`,className:g.topContentContainer,children:[(0,n.jsx)(y,{className:g.cardTitle,variant:`headingMd`,copy:i}),a&&o!=null&&(0,n.jsx)(`div`,{"aria-label":`Card Rating Container`,className:g.cardRating,children:(0,n.jsx)(I,{rating:o})})]}),!r&&(0,n.jsx)(`div`,{"aria-label":c?`${c} Container`:`Image Container`,className:g.imgContainer,children:(0,n.jsx)(x,{ariaLabel:c??`Card Image`,isCircle:l,src:s,alt:`${i} Card Image`,style:{border:e?`2px solid ${e}`:void 0}})}),(0,n.jsxs)(`div`,{"aria-label":`Card CTA Container`,className:g.ctaContainer,children:[u?.isLink?(0,n.jsx)(L,{ariaLabel:u.ariaLinkLabel??`Primary Card Link`,to:u.to,text:u.text,variant:u.variant}):(0,n.jsx)(h,{ariaLabel:u?.ariaButtonLabel??`Primary Card Button`,ariaPressed:u?.ariaPressed,variant:u?.variant,text:u?.text,onClick:u?.onClick}),d&&d.isLink?(0,n.jsx)(L,{ariaLabel:d?.ariaLinkLabel??`Secondary Card Link`,to:d.to,text:d.text,variant:d.variant}):(0,n.jsx)(h,{ariaLabel:d?.ariaButtonLabel??`Secondary Card Button`,ariaPressed:d?.ariaPressed,variant:d?.variant,text:d?.text,onClick:d?.onClick})]})]}),z={navElementsContainer:`_navElementsContainer_ndrvq_1`,internalElementsContainer:`_internalElementsContainer_ndrvq_11`,hamburgerIcon:`_hamburgerIcon_ndrvq_19`,leftElementsContainer:`_leftElementsContainer_ndrvq_24`,leftElement:`_leftElement_ndrvq_24`,rightElementsContainer:`_rightElementsContainer_ndrvq_38`},B={mobile:`(max-width: 767px)`,tablet:`(min-width: 768px) and (max-width: 1023px)`,desktop:`(min-width: 1024px)`,belowMobile:`(max-width: 299px)`},V=e=>typeof window>`u`?!1:window.matchMedia(e).matches,H=()=>{let[e,n]=(0,t.useState)({isBelowMobileMinimum:V(B.belowMobile),isMobile:V(B.mobile),isTablet:V(B.tablet),isDesktop:V(B.desktop)});return(0,t.useEffect)(()=>{let e=Object.entries(B).map(([e,t])=>{let r=window.matchMedia(t),i=()=>{n(t=>({...t,[e===`belowMobile`?`isBelowMobileMinimum`:`is${U(e)}`]:r.matches}))};return r.addEventListener(`change`,i),i(),()=>r.removeEventListener(`change`,i)});return()=>{e.forEach(e=>e?.())}},[]),e},U=e=>e.charAt(0).toUpperCase()+e.slice(1),W={wrapper:`_wrapper_1cng4_1`,dropdownButton:`_dropdownButton_1cng4_7`,dropdownButtonContainer:`_dropdownButtonContainer_1cng4_11`,listItemContainer:`_listItemContainer_1cng4_17`,listItem:`_listItem_1cng4_17`},G=({className:e,icon:r,options:i,listBorderColor:a,listBackgroundColor:o,isNavbarDropdown:s=!1})=>{let[c,l]=(0,t.useState)(!1);return(0,n.jsxs)(`section`,{className:d(e,W.wrapper),children:[(0,n.jsx)(`div`,{className:W.dropdownButtonContainer,children:(0,n.jsx)(h,{className:W.dropdownButton,text:r,variant:`transparent`,onClick:()=>l(!c),ariaLabel:`Dropdown Menu Button`})}),c&&(0,n.jsx)(`ul`,{"aria-label":`Unordered Dropdown List`,className:W.listItemContainer,style:{marginTop:s?`1.5rem`:`none`,border:`2px solid ${a}`,backgroundColor:o},children:i.map(e=>(0,n.jsx)(`li`,{"aria-label":`Dropdown List Item`,className:W.listItem,children:(0,n.jsx)(L,{variant:e.variant,to:e.to,text:e.text})}))})]})};e.Button=h,e.Card=R,e.DropdownMenu=G,e.Image=x,e.Link=L,e.Navbar=({ariaLabel:e,backgroundColor:t,borderBottomColor:r,dropdownListBackgroundColor:i,dropdownListBorderColor:a,dropdownListIcon:o=(0,n.jsx)(M,{}),leftElement:s,leftElementNeighbors:c,rightElements:l})=>{let u=[...c,...l],{isMobile:d,isBelowMobileMinimum:f}=H();return(0,n.jsx)(`nav`,{id:m(e),"aria-label":e??`Main Navbar`,style:{backgroundColor:t,borderBottom:`2px solid ${r}`},className:z.navElementsContainer,children:(0,n.jsxs)(`article`,{"aria-label":`Elements Container`,className:z.internalElementsContainer,children:[!f&&(0,n.jsx)(`div`,{className:z.leftElement,children:s}),d?(0,n.jsx)(G,{listBackgroundColor:i,listBorderColor:a,className:z.hamburgerIcon,icon:o,options:u.map(({text:e,to:t,variant:n})=>({text:e,to:t,variant:n})),isNavbarDropdown:!0}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`article`,{"aria-label":`Left Navbar Elements Container`,className:z.leftElementsContainer,children:c?.map(e=>(0,n.jsx)(L,{variant:e.variant,text:e.text,to:e.to},e.text))}),(0,n.jsx)(`article`,{"aria-label":`Right Navbar Elements Container`,className:z.rightElementsContainer,children:l.map(e=>(0,n.jsx)(L,{variant:e.variant,text:e.text,to:e.to},e.text))})]})]})})},e.Rating=I,e.Text=y});
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'transparent' | 'success' | 'error';
3
+ export interface ButtonProps {
4
+ ariaLabel?: string;
5
+ ariaPressed?: boolean;
6
+ variant?: ButtonVariant;
7
+ text?: string | React.ReactNode;
8
+ onClick?: () => void;
9
+ className?: string;
10
+ }
@@ -0,0 +1,33 @@
1
+ import { ButtonVariant } from './buttonType';
2
+ import { LinkVariant } from './linkType';
3
+ export interface CardProps {
4
+ borderColor?: string;
5
+ backgroundColor?: string;
6
+ miniCard?: boolean;
7
+ title: string;
8
+ hasRating?: boolean;
9
+ ratingValue?: number;
10
+ img?: string;
11
+ imgAriaLabel?: string;
12
+ isImgCircle?: boolean;
13
+ primaryCta?: {
14
+ ariaButtonLabel?: string;
15
+ ariaLinkLabel?: string;
16
+ ariaPressed?: boolean;
17
+ text?: string;
18
+ onClick?: () => void;
19
+ to?: string;
20
+ variant: ButtonVariant | LinkVariant;
21
+ isLink?: boolean;
22
+ };
23
+ secondaryCta?: {
24
+ ariaButtonLabel?: string;
25
+ ariaLinkLabel?: string;
26
+ ariaPressed?: boolean;
27
+ text?: string;
28
+ onClick?: () => void;
29
+ to?: string;
30
+ variant: ButtonVariant | LinkVariant;
31
+ isLink?: boolean;
32
+ };
33
+ }
@@ -0,0 +1,13 @@
1
+ import { LinkVariant } from './linkType';
2
+ export interface DropdownMenuProps {
3
+ className?: string;
4
+ listBackgroundColor?: string;
5
+ listBorderColor?: string;
6
+ isNavbarDropdown?: boolean;
7
+ icon: React.ReactNode;
8
+ options: {
9
+ text: string;
10
+ to: string;
11
+ variant: LinkVariant;
12
+ }[];
13
+ }
@@ -0,0 +1,11 @@
1
+ import { CSSProperties } from 'react';
2
+ export interface ImageProps {
3
+ ariaLabel?: string;
4
+ style?: CSSProperties;
5
+ src?: string;
6
+ alt?: string;
7
+ isCircle?: boolean;
8
+ className?: string;
9
+ width?: string;
10
+ height?: string;
11
+ }
@@ -0,0 +1,8 @@
1
+ export * from './cardType';
2
+ export * from './buttonType';
3
+ export * from './linkType';
4
+ export * from './textType';
5
+ export * from './imageType';
6
+ export * from './ratingType';
7
+ export * from './navbarType';
8
+ export * from './dropdownMenuType';
@@ -0,0 +1,8 @@
1
+ export type LinkVariant = 'primary' | 'secondary' | 'ghost' | 'transparent' | 'success' | 'error';
2
+ export interface LinkProps {
3
+ className?: string;
4
+ variant?: LinkVariant;
5
+ text?: string;
6
+ to?: string;
7
+ ariaLabel?: string;
8
+ }
@@ -0,0 +1,20 @@
1
+ import { LinkVariant } from './linkType';
2
+ export interface NavbarProps {
3
+ ariaLabel?: string;
4
+ backgroundColor?: string;
5
+ borderBottomColor?: string;
6
+ dropdownListIcon?: React.ReactNode;
7
+ dropdownListBackgroundColor?: string;
8
+ dropdownListBorderColor?: string;
9
+ leftElement: React.ReactElement;
10
+ leftElementNeighbors: {
11
+ text: string;
12
+ to: string;
13
+ variant: LinkVariant;
14
+ }[];
15
+ rightElements: {
16
+ text: string;
17
+ to: string;
18
+ variant: LinkVariant;
19
+ }[];
20
+ }
@@ -0,0 +1,3 @@
1
+ export interface RatingProps {
2
+ rating?: number;
3
+ }
@@ -0,0 +1,16 @@
1
+ export type TextVariant = 'headingSm' | 'headingMd' | 'headingLg' | 'headingXl' | 'bodySm' | 'bodyMd' | 'bodyLg' | 'caption';
2
+ export declare const variantMap: {
3
+ readonly headingXl: "h1";
4
+ readonly headingLg: "h2";
5
+ readonly headingMd: "h3";
6
+ readonly headingSm: "h4";
7
+ readonly bodyLg: "p";
8
+ readonly bodyMd: "p";
9
+ readonly bodySm: "p";
10
+ readonly caption: "span";
11
+ };
12
+ export interface TextProps {
13
+ copy?: string;
14
+ variant: TextVariant;
15
+ className?: string;
16
+ }
package/package.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "@lucasromero/matrix-ui",
3
+ "private": false,
4
+ "version": "0.1.0",
5
+ "type": "module",
6
+ "main": "./dist/matrix-ui.es.js",
7
+ "module": "./dist/matrix-ui.es.js",
8
+ "types": "./dist/index.d.ts",
9
+ "style": "./dist/matrix-ui.css",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "scripts": {
14
+ "dev": "vite",
15
+ "build": "tsc -p tsconfig.types.json && vite build",
16
+ "lint": "eslint .",
17
+ "preview": "vite preview",
18
+ "storybook": "storybook dev -p 6006",
19
+ "build-storybook": "storybook build",
20
+ "test": "jest --coverage -u",
21
+ "test:watch": "jest --watch",
22
+ "prepare": "husky"
23
+ },
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/matrix-ui.es.js",
28
+ "require": "./dist/matrix-ui.umd.js"
29
+ },
30
+ "./style.css": "./dist/matrix-ui.css"
31
+ },
32
+ "dependencies": {
33
+ "@radix-ui/react-slot": "^1.2.4",
34
+ "build": "^0.1.4",
35
+ "clsx": "^2.1.1",
36
+ "lucide-react": "^1.14.0",
37
+ "npm": "^11.18.0",
38
+ "pack": "^2.2.0",
39
+ "run": "^1.5.0"
40
+ },
41
+ "peerDependencies": {
42
+ "react": "^19.0.0",
43
+ "react-dom": "^19.0.0"
44
+ },
45
+ "devDependencies": {
46
+ "@babel/core": "^7.29.0",
47
+ "@chromatic-com/storybook": "^5.1.2",
48
+ "@fontsource/inter": "^5.2.8",
49
+ "@rolldown/plugin-babel": "^0.2.3",
50
+ "@storybook/addon-a11y": "^10.3.6",
51
+ "@storybook/addon-docs": "^10.3.6",
52
+ "@storybook/addon-vitest": "^10.3.6",
53
+ "@storybook/react-vite": "^10.3.6",
54
+ "@testing-library/jest-dom": "^6.9.1",
55
+ "@testing-library/react": "^16.3.2",
56
+ "@testing-library/user-event": "^14.6.1",
57
+ "@types/babel__core": "^7.20.5",
58
+ "@types/jest": "^30.0.0",
59
+ "@types/node": "^24.12.2",
60
+ "@types/react": "^19.2.14",
61
+ "@types/react-dom": "^19.2.3",
62
+ "@vitejs/plugin-react": "^6.0.1",
63
+ "autoprefixer": "^10.5.0",
64
+ "babel-plugin-react-compiler": "^1.0.0",
65
+ "eslint": "^9.39.4",
66
+ "eslint-config-prettier": "^10.1.8",
67
+ "eslint-plugin-prettier": "^5.5.5",
68
+ "eslint-plugin-react": "^7.37.5",
69
+ "eslint-plugin-react-hooks": "^7.1.1",
70
+ "eslint-plugin-react-refresh": "^0.5.2",
71
+ "eslint-plugin-storybook": "^10.3.6",
72
+ "globals": "^17.6.0",
73
+ "husky": "^9.1.7",
74
+ "jest": "^29.7.0",
75
+ "jest-environment-jsdom": "^29.0.0",
76
+ "jest-spec-reporter": "^1.0.19",
77
+ "jsdom": "^27.0.1",
78
+ "postcss": "^8.5.14",
79
+ "prettier": "^3.8.3",
80
+ "react": "^19.0.0",
81
+ "react-dom": "^19.0.0",
82
+ "sass": "^1.72.0",
83
+ "storybook": "^10.3.6",
84
+ "ts-jest": "^29.4.9",
85
+ "typescript": "~6.0.2",
86
+ "typescript-eslint": "^8.59.2",
87
+ "vite": "^8.0.10",
88
+ "vite-plugin-css-injected-by-js": "^5.0.2",
89
+ "vite-plugin-dts": "^5.0.1"
90
+ }
91
+ }