@beweco/aurora-ui 0.0.1 → 0.0.2
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 +6 -6
- package/dist/cjs/__rslib_css__/styles/globals.cjs +1 -0
- package/dist/cjs/components/button/Button.cjs +1 -0
- package/dist/cjs/components/button/Button.d.ts +8 -0
- package/dist/cjs/components/button/Button.d.ts.map +1 -0
- package/dist/cjs/components/button/Button.types.d.ts +23 -0
- package/dist/cjs/components/button/Button.types.d.ts.map +1 -0
- package/dist/cjs/components/button/index.cjs +1 -0
- package/dist/cjs/components/button/index.d.ts +3 -0
- package/dist/cjs/components/button/index.d.ts.map +1 -0
- package/dist/cjs/components/icon/Icon.cjs +1 -0
- package/dist/cjs/components/icon/Icon.d.ts +9 -0
- package/dist/cjs/components/icon/Icon.d.ts.map +1 -0
- package/dist/cjs/components/icon/Icon.types.d.ts +13 -0
- package/dist/cjs/components/icon/Icon.types.d.ts.map +1 -0
- package/dist/cjs/components/icon/index.cjs +1 -0
- package/dist/cjs/components/icon/index.d.ts +4 -0
- package/dist/cjs/components/icon/index.d.ts.map +1 -0
- package/dist/cjs/contexts/theme/index.cjs +1 -0
- package/dist/cjs/contexts/theme/index.d.ts +3 -0
- package/dist/cjs/contexts/theme/index.d.ts.map +1 -0
- package/dist/cjs/contexts/theme/theme-context.cjs +1 -0
- package/dist/cjs/contexts/theme/theme-context.d.ts +4 -0
- package/dist/cjs/contexts/theme/theme-context.d.ts.map +1 -0
- package/dist/cjs/contexts/theme/theme-context.type.cjs +1 -0
- package/dist/cjs/contexts/theme/theme-context.type.d.ts +6 -0
- package/dist/cjs/contexts/theme/theme-context.type.d.ts.map +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/providers/theme/index.cjs +1 -0
- package/dist/cjs/providers/theme/index.d.ts +3 -0
- package/dist/cjs/providers/theme/index.d.ts.map +1 -0
- package/dist/cjs/providers/theme/theme-provider.cjs +1 -0
- package/dist/cjs/providers/theme/theme-provider.d.ts +4 -0
- package/dist/cjs/providers/theme/theme-provider.d.ts.map +1 -0
- package/dist/cjs/providers/theme/theme-provider.types.d.ts +5 -0
- package/dist/cjs/providers/theme/theme-provider.types.d.ts.map +1 -0
- package/dist/cjs/styles/colors.default.cjs +1 -0
- package/dist/cjs/styles/colors.default.d.ts +179 -0
- package/dist/cjs/styles/colors.default.d.ts.map +1 -0
- package/dist/esm/__rslib_css__/styles/globals.js +0 -0
- package/dist/esm/components/button/Button.d.ts +8 -0
- package/dist/esm/components/button/Button.d.ts.map +1 -0
- package/dist/esm/components/button/Button.js +23 -0
- package/dist/esm/components/button/Button.types.d.ts +23 -0
- package/dist/esm/components/button/Button.types.d.ts.map +1 -0
- package/dist/esm/components/button/Button.types.js +0 -0
- package/dist/esm/components/button/index.d.ts +3 -0
- package/dist/esm/components/button/index.d.ts.map +1 -0
- package/dist/esm/components/button/index.js +3 -0
- package/dist/esm/components/icon/Icon.d.ts +9 -0
- package/dist/esm/components/icon/Icon.d.ts.map +1 -0
- package/dist/esm/components/icon/Icon.js +22 -0
- package/dist/esm/components/icon/Icon.types.d.ts +13 -0
- package/dist/esm/components/icon/Icon.types.d.ts.map +1 -0
- package/dist/esm/components/icon/Icon.types.js +0 -0
- package/dist/esm/components/icon/index.d.ts +4 -0
- package/dist/esm/components/icon/index.d.ts.map +1 -0
- package/dist/esm/components/icon/index.js +4 -0
- package/dist/esm/contexts/theme/index.d.ts +3 -0
- package/dist/esm/contexts/theme/index.d.ts.map +1 -0
- package/dist/esm/contexts/theme/index.js +1 -0
- package/dist/esm/contexts/theme/theme-context.d.ts +4 -0
- package/dist/esm/contexts/theme/theme-context.d.ts.map +1 -0
- package/dist/esm/contexts/theme/theme-context.js +11 -0
- package/dist/esm/contexts/theme/theme-context.type.d.ts +6 -0
- package/dist/esm/contexts/theme/theme-context.type.d.ts.map +1 -0
- package/dist/esm/contexts/theme/theme-context.type.js +0 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/providers/theme/index.d.ts +3 -0
- package/dist/esm/providers/theme/index.d.ts.map +1 -0
- package/dist/esm/providers/theme/index.js +2 -0
- package/dist/esm/providers/theme/theme-provider.d.ts +4 -0
- package/dist/esm/providers/theme/theme-provider.d.ts.map +1 -0
- package/dist/esm/providers/theme/theme-provider.js +17 -0
- package/dist/esm/providers/theme/theme-provider.types.d.ts +5 -0
- package/dist/esm/providers/theme/theme-provider.types.d.ts.map +1 -0
- package/dist/esm/providers/theme/theme-provider.types.js +0 -0
- package/dist/esm/styles/colors.default.d.ts +179 -0
- package/dist/esm/styles/colors.default.d.ts.map +1 -0
- package/dist/esm/styles/colors.default.js +179 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @beweco/aura-ui
|
|
2
2
|
|
|
3
3
|
Bewe Aura UI Component Library - A modern, lightweight, and customizable React component library.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
@
|
|
7
|
+
@beweco/aura-ui is a React component library designed to provide a consistent and beautiful user interface for Bewe applications. Built with TypeScript for type safety and modern development practices, it uses Storybook as its primary development and visualization environment.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
bun install @
|
|
12
|
+
bun install @beweco/aura-ui
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Quick Start
|
|
@@ -17,8 +17,8 @@ bun install @bewe/aura-ui
|
|
|
17
17
|
To use the components, you need to wrap your application with the `ThemeProvider` .
|
|
18
18
|
|
|
19
19
|
```tsx
|
|
20
|
-
import { ThemeProvider } from '@
|
|
21
|
-
import { Button } from '@
|
|
20
|
+
import { ThemeProvider } from '@beweco/aura-ui';
|
|
21
|
+
import { Button } from '@beweco/aura-ui';
|
|
22
22
|
|
|
23
23
|
function App() {
|
|
24
24
|
return (
|
|
@@ -113,7 +113,7 @@ For testing purposes, you can publish a beta version:
|
|
|
113
113
|
|
|
114
114
|
Users can then install the beta version using:
|
|
115
115
|
```bash
|
|
116
|
-
bun install @
|
|
116
|
+
bun install @beweco/aura-ui@beta
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
## Contributing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_exports__={},__webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ButtonPrueba:()=>ButtonPrueba});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),index_cjs_namespaceObject=require("../../../node_modules/@heroui/react/dist/index.cjs"),external_react_namespaceObject=require("react"),ButtonPrueba=({children:e,startIcon:_,endIcon:r,loading:t=!1,disabled:a,variant:c="solid",color:o="primary",size:n="md",radius:i,fullWidth:p=!1,className:u="",...s})=>((0,external_react_namespaceObject.useEffect)(()=>{console.log("estamos dentro del botnon")},[]),(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.Button,{variant:c,color:o,size:n,radius:i,fullWidth:p,isLoading:t,isDisabled:a,startContent:_,endContent:r,className:u,...s,children:e}));var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { CustomButtonProps } from "./Button.types";
|
|
3
|
+
/**
|
|
4
|
+
* Button component with HeroUI styling
|
|
5
|
+
* Provides a consistent interface for button interactions across the application
|
|
6
|
+
*/
|
|
7
|
+
export declare const ButtonPrueba: React.FC<CustomButtonProps>;
|
|
8
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmCpD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ButtonProps } from "@heroui/react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export interface CustomButtonProps extends Omit<ButtonProps, "startContent" | "endContent" | "isLoading" | "isDisabled"> {
|
|
4
|
+
/** The content of the button */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Icon to display at the start of the button */
|
|
7
|
+
startIcon?: ReactNode;
|
|
8
|
+
/** Icon to display at the end of the button */
|
|
9
|
+
endIcon?: ReactNode;
|
|
10
|
+
/** Whether the button is in loading state */
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
/** The visual style variant of the button */
|
|
13
|
+
variant?: "solid" | "bordered" | "light" | "flat" | "faded" | "shadow" | "ghost";
|
|
14
|
+
/** The color theme of the button */
|
|
15
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
16
|
+
/** The size of the button */
|
|
17
|
+
size?: "sm" | "md" | "lg";
|
|
18
|
+
/** The border radius of the button */
|
|
19
|
+
radius?: "none" | "sm" | "md" | "lg" | "full";
|
|
20
|
+
/** Whether the button should take full width */
|
|
21
|
+
fullWidth?: boolean;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=Button.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,iBAChB,SAAQ,IAAI,CACX,WAAW,EACX,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,CAC1D;IACD,gCAAgC;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,iDAAiD;IACjD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6CAA6C;IAC7C,OAAO,CAAC,EACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,MAAM,GACN,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;IACX,oCAAoC;IACpC,KAAK,CAAC,EACH,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;IACZ,6BAA6B;IAC7B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC9C,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ButtonPrueba:()=>external_Button_cjs_namespaceObject.ButtonPrueba});let external_Button_cjs_namespaceObject=require("./Button.cjs");var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{sizeMap:()=>sizeMap,IconComponent:()=>IconComponent});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@iconify/react"),external_react_namespaceObject=require("react"),sizeMap={sm:"16px",md:"20px",lg:"24px",xl:"32px"},IconComponent=({icon:e,size:_="md",className:r})=>{(0,external_react_namespaceObject.useEffect)(()=>{console.log("estamos dentro del icono")},[]);let t=sizeMap[_];return(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.Icon,{icon:e,width:t,height:t,className:r})};var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IconComponentProps } from "./Icon.types";
|
|
2
|
+
export declare const sizeMap: {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const IconComponent: ({ icon, size, className, }: IconComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,4BAI3B,kBAAkB,4CAcpB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IconifyIconProps } from "@iconify/react/dist/iconify.js";
|
|
2
|
+
import type { sizeMap } from "./Icon";
|
|
3
|
+
/** Available icon sizes mapped to pixel values */
|
|
4
|
+
export type IconSize = keyof typeof sizeMap;
|
|
5
|
+
export interface IconComponentProps extends IconifyIconProps {
|
|
6
|
+
/** The icon name/identifier from Iconify */
|
|
7
|
+
icon: string;
|
|
8
|
+
/** The size of the icon. Can be 'sm' (16px), 'md' (20px), 'lg' (24px), or 'xl' (32px) */
|
|
9
|
+
size?: IconSize;
|
|
10
|
+
/** Optional CSS class name to apply custom styles */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=Icon.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.types.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,OAAO,CAAC;AAE5C,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC3D,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{sizeMap:()=>external_Icon_cjs_namespaceObject.sizeMap,IconComponent:()=>external_Icon_cjs_namespaceObject.IconComponent});let external_Icon_cjs_namespaceObject=require("./Icon.cjs");var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./theme-context":function(_){_.exports=require("./theme-context.cjs")}},__webpack_module_cache__={};function __webpack_require__(_){var e=__webpack_module_cache__[_];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[_]={exports:{}};return __webpack_modules__[_](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=_=>{var e=_&&_.__esModule?()=>_.default:()=>_;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(_,e)=>{for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(_,r)&&Object.defineProperty(_,r,{enumerable:!0,get:e[r]})},__webpack_require__.o=(_,e)=>Object.prototype.hasOwnProperty.call(_,e),__webpack_require__.r=_=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{__webpack_require__.r(__webpack_exports__);var _=__webpack_require__("./theme-context"),e={};for(var r in _)"default"!==r&&(e[r]=(function(e){return _[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,e)})();var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,mBAAmB,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ThemeContext:()=>ThemeContext,useThemeContext:()=>useThemeContext});let external_react_namespaceObject=require("react"),ThemeContext=(0,external_react_namespaceObject.createContext)({theme:"light",setTheme:()=>{}}),useThemeContext=()=>{let e=(0,external_react_namespaceObject.useContext)(ThemeContext);if(!e)throw Error("useThemeContext debe ser usado dentro de un ThemeProvider");return e};var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/theme/theme-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,YAAY,wCAIvB,CAAC;AAEH,eAAO,MAAM,eAAe,qBAQ3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.r=_=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface IThemeContext {
|
|
2
|
+
theme: TypeThemeColor;
|
|
3
|
+
setTheme: (theme: TypeThemeColor) => void;
|
|
4
|
+
}
|
|
5
|
+
export type TypeThemeColor = "light" | "dark" | "purple-light" | "purple-dark" | "yellow-light" | "yellow-dark" | "blue-light" | "blue-dark" | "green-light" | "green-dark";
|
|
6
|
+
//# sourceMappingURL=theme-context.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-context.type.d.ts","sourceRoot":"","sources":["../../../../src/contexts/theme/theme-context.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,cAAc,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CAC1C;AACD,MAAM,MAAM,cAAc,GACvB,OAAO,GACP,MAAM,GACN,cAAc,GACd,aAAa,GACb,cAAc,GACd,aAAa,GACb,YAAY,GACZ,WAAW,GACX,aAAa,GACb,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"@/components/button":function(e){e.exports=require("./components/button/index.cjs")},"@/components/icon":function(e){e.exports=require("./components/icon/index.cjs")},"./contexts/theme":function(e){e.exports=require("./contexts/theme/index.cjs")},"@/providers/theme":function(e){e.exports=require("./providers/theme/index.cjs")},"@/styles/colors.default":function(e){e.exports=require("./styles/colors.default.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{themeColors:()=>o.themeColors});var e=__webpack_require__("@/components/button"),_={};for(var r in e)0>["themeColors","default"].indexOf(r)&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("@/components/icon"),_={};for(var r in t)0>["themeColors","default"].indexOf(r)&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("@/styles/colors.default"),c=__webpack_require__("@/providers/theme"),_={};for(var r in c)0>["themeColors","default"].indexOf(r)&&(_[r]=(function(e){return c[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("./contexts/theme"),_={};for(var r in n)0>["themeColors","default"].indexOf(r)&&(_[r]=(function(e){return n[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})();var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./theme-provider":function(e){e.exports=require("./theme-provider.cjs")},"./theme-provider.types":function(e){e.exports=require("./theme-provider.types.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./theme-provider"),_={};for(var r in e)"default"!==r&&(_[r]=(function(_){return e[_]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./theme-provider.types"),_={};for(var r in t)"default"!==r&&(_[r]=(function(e){return t[e]}).bind(0,r));__webpack_require__.d(__webpack_exports__,_)})();var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ThemeProvider:()=>ThemeProvider});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_react_namespaceObject=require("react"),index_cjs_namespaceObject=require("../../contexts/theme/index.cjs"),ThemeProvider=({children:e})=>{let{theme:_,setTheme:r}=(0,index_cjs_namespaceObject.useThemeContext)();return(0,jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ThemeContext.Provider,{value:{theme:_,setTheme:r},children:(0,jsx_runtime_namespaceObject.jsx)("main",{className:`${_} bg-background text-foreground `,children:e})})};var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../../../src/providers/theme/theme-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAUlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider.types.d.ts","sourceRoot":"","sources":["../../../../src/providers/theme/theme-provider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,f)=>{for(var r in f)__webpack_require__.o(f,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:f[r]})},__webpack_require__.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{themeColors:()=>themeColors});let themeColors={"purple-light":{extend:"light",colors:{background:"#ffffff",foreground:"#111827",primary:{50:"#eee4f8",100:"#d7bfef",200:"#bf99e5",300:"#a773db",400:"#904ed2",500:"#7828c8",600:"#6321a5",700:"#4e1a82",800:"#39135f",900:"#240c3c",DEFAULT:"#7828c8",foreground:"#ffffff"},focus:"#904ed2"}},"purple-dark":{extend:"dark",colors:{background:"#1A1023",foreground:"#ffffff",primary:{50:"#2c193f",100:"#462764",200:"#603689",300:"#7944ae",400:"#9353d3",500:"#a671db",600:"#b98fe2",700:"#ccadee",800:"#dfcbf2",900:"#f2eafa",DEFAULT:"#9353d3",foreground:"#ffffff"},focus:"#a671db"}},"green-light":{extend:"light",colors:{background:"#ffffff",foreground:"#111827",primary:{50:"#ecf9f0",100:"#d1f0dc",200:"#b6e7c7",300:"#9cdeb3",400:"#81d59e",500:"#66cc8a",600:"#54a872",700:"#42855a",800:"#306142",900:"#1f3d29",DEFAULT:"#66cc8a",foreground:"#000000"},focus:"#81d59e"}},"green-dark":{extend:"dark",colors:{background:"#0F1D15",foreground:"#ffffff",primary:{50:"#1f3d29",100:"#306142",200:"#42855a",300:"#54a872",400:"#66cc8a",500:"#81d59e",600:"#9cdeb3",700:"#b6e7c7",800:"#d1f0dc",900:"#ecf9f0",DEFAULT:"#66cc8a",foreground:"#000000"},focus:"#81d59e"}},"blue-light":{extend:"light",colors:{background:"#ffffff",foreground:"#111827",primary:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",DEFAULT:"#3b82f6",foreground:"#ffffff"},focus:"#60a5fa"}},"blue-dark":{extend:"dark",colors:{background:"#101d3a",foreground:"#ffffff",primary:{50:"#1e3a8a",100:"#1e40af",200:"#1d4ed8",300:"#2563eb",400:"#3b82f6",500:"#60a5fa",600:"#93c5fd",700:"#bfdbfe",800:"#dbeafe",900:"#eff6ff",DEFAULT:"#3b82f6",foreground:"#ffffff"},focus:"#60a5fa"}},"yellow-light":{extend:"light",colors:{background:"#ffffff",foreground:"#111827",primary:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",DEFAULT:"#eab308",foreground:"#111827"},focus:"#facc15"}},"yellow-dark":{extend:"dark",colors:{background:"#18181b",foreground:"#ffffff",primary:{50:"#713f12",100:"#854d0e",200:"#a16207",300:"#ca8a04",400:"#eab308",500:"#facc15",600:"#fde047",700:"#fef08a",800:"#fef9c3",900:"#fefce8",DEFAULT:"#facc15",foreground:"#18181b"},focus:"#eab308"}}};var __webpack_export_target__=exports;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0});
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export declare const themeColors: {
|
|
2
|
+
"purple-light": {
|
|
3
|
+
extend: string;
|
|
4
|
+
colors: {
|
|
5
|
+
background: string;
|
|
6
|
+
foreground: string;
|
|
7
|
+
primary: {
|
|
8
|
+
50: string;
|
|
9
|
+
100: string;
|
|
10
|
+
200: string;
|
|
11
|
+
300: string;
|
|
12
|
+
400: string;
|
|
13
|
+
500: string;
|
|
14
|
+
600: string;
|
|
15
|
+
700: string;
|
|
16
|
+
800: string;
|
|
17
|
+
900: string;
|
|
18
|
+
DEFAULT: string;
|
|
19
|
+
foreground: string;
|
|
20
|
+
};
|
|
21
|
+
focus: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
"purple-dark": {
|
|
25
|
+
extend: string;
|
|
26
|
+
colors: {
|
|
27
|
+
background: string;
|
|
28
|
+
foreground: string;
|
|
29
|
+
primary: {
|
|
30
|
+
50: string;
|
|
31
|
+
100: string;
|
|
32
|
+
200: string;
|
|
33
|
+
300: string;
|
|
34
|
+
400: string;
|
|
35
|
+
500: string;
|
|
36
|
+
600: string;
|
|
37
|
+
700: string;
|
|
38
|
+
800: string;
|
|
39
|
+
900: string;
|
|
40
|
+
DEFAULT: string;
|
|
41
|
+
foreground: string;
|
|
42
|
+
};
|
|
43
|
+
focus: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
"green-light": {
|
|
47
|
+
extend: string;
|
|
48
|
+
colors: {
|
|
49
|
+
background: string;
|
|
50
|
+
foreground: string;
|
|
51
|
+
primary: {
|
|
52
|
+
50: string;
|
|
53
|
+
100: string;
|
|
54
|
+
200: string;
|
|
55
|
+
300: string;
|
|
56
|
+
400: string;
|
|
57
|
+
500: string;
|
|
58
|
+
600: string;
|
|
59
|
+
700: string;
|
|
60
|
+
800: string;
|
|
61
|
+
900: string;
|
|
62
|
+
DEFAULT: string;
|
|
63
|
+
foreground: string;
|
|
64
|
+
};
|
|
65
|
+
focus: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
"green-dark": {
|
|
69
|
+
extend: string;
|
|
70
|
+
colors: {
|
|
71
|
+
background: string;
|
|
72
|
+
foreground: string;
|
|
73
|
+
primary: {
|
|
74
|
+
50: string;
|
|
75
|
+
100: string;
|
|
76
|
+
200: string;
|
|
77
|
+
300: string;
|
|
78
|
+
400: string;
|
|
79
|
+
500: string;
|
|
80
|
+
600: string;
|
|
81
|
+
700: string;
|
|
82
|
+
800: string;
|
|
83
|
+
900: string;
|
|
84
|
+
DEFAULT: string;
|
|
85
|
+
foreground: string;
|
|
86
|
+
};
|
|
87
|
+
focus: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
"blue-light": {
|
|
91
|
+
extend: string;
|
|
92
|
+
colors: {
|
|
93
|
+
background: string;
|
|
94
|
+
foreground: string;
|
|
95
|
+
primary: {
|
|
96
|
+
50: string;
|
|
97
|
+
100: string;
|
|
98
|
+
200: string;
|
|
99
|
+
300: string;
|
|
100
|
+
400: string;
|
|
101
|
+
500: string;
|
|
102
|
+
600: string;
|
|
103
|
+
700: string;
|
|
104
|
+
800: string;
|
|
105
|
+
900: string;
|
|
106
|
+
DEFAULT: string;
|
|
107
|
+
foreground: string;
|
|
108
|
+
};
|
|
109
|
+
focus: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
"blue-dark": {
|
|
113
|
+
extend: string;
|
|
114
|
+
colors: {
|
|
115
|
+
background: string;
|
|
116
|
+
foreground: string;
|
|
117
|
+
primary: {
|
|
118
|
+
50: string;
|
|
119
|
+
100: string;
|
|
120
|
+
200: string;
|
|
121
|
+
300: string;
|
|
122
|
+
400: string;
|
|
123
|
+
500: string;
|
|
124
|
+
600: string;
|
|
125
|
+
700: string;
|
|
126
|
+
800: string;
|
|
127
|
+
900: string;
|
|
128
|
+
DEFAULT: string;
|
|
129
|
+
foreground: string;
|
|
130
|
+
};
|
|
131
|
+
focus: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
"yellow-light": {
|
|
135
|
+
extend: string;
|
|
136
|
+
colors: {
|
|
137
|
+
background: string;
|
|
138
|
+
foreground: string;
|
|
139
|
+
primary: {
|
|
140
|
+
50: string;
|
|
141
|
+
100: string;
|
|
142
|
+
200: string;
|
|
143
|
+
300: string;
|
|
144
|
+
400: string;
|
|
145
|
+
500: string;
|
|
146
|
+
600: string;
|
|
147
|
+
700: string;
|
|
148
|
+
800: string;
|
|
149
|
+
900: string;
|
|
150
|
+
DEFAULT: string;
|
|
151
|
+
foreground: string;
|
|
152
|
+
};
|
|
153
|
+
focus: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
"yellow-dark": {
|
|
157
|
+
extend: string;
|
|
158
|
+
colors: {
|
|
159
|
+
background: string;
|
|
160
|
+
foreground: string;
|
|
161
|
+
primary: {
|
|
162
|
+
50: string;
|
|
163
|
+
100: string;
|
|
164
|
+
200: string;
|
|
165
|
+
300: string;
|
|
166
|
+
400: string;
|
|
167
|
+
500: string;
|
|
168
|
+
600: string;
|
|
169
|
+
700: string;
|
|
170
|
+
800: string;
|
|
171
|
+
900: string;
|
|
172
|
+
DEFAULT: string;
|
|
173
|
+
foreground: string;
|
|
174
|
+
};
|
|
175
|
+
focus: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
//# sourceMappingURL=colors.default.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.default.d.ts","sourceRoot":"","sources":["../../../src/styles/colors.default.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiLvB,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { CustomButtonProps } from "./Button.types";
|
|
3
|
+
/**
|
|
4
|
+
* Button component with HeroUI styling
|
|
5
|
+
* Provides a consistent interface for button interactions across the application
|
|
6
|
+
*/
|
|
7
|
+
export declare const ButtonPrueba: React.FC<CustomButtonProps>;
|
|
8
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmCpD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__node_modules_react_jsx_runtime_js_a2b4bab3__ from "../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__node_modules_heroui_react_dist_index_js_29a98b44__ from "../../../node_modules/@heroui/react/dist/index.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__node_modules_react_index_js_cb4943dd__ from "../../../node_modules/react/index.js";
|
|
4
|
+
const ButtonPrueba = ({ children, startIcon, endIcon, loading = false, disabled, variant = "solid", color = "primary", size = "md", radius, fullWidth = false, className = "", ...props })=>{
|
|
5
|
+
(0, __WEBPACK_EXTERNAL_MODULE__node_modules_react_index_js_cb4943dd__.useEffect)(()=>{
|
|
6
|
+
console.log("estamos dentro del botnon");
|
|
7
|
+
}, []);
|
|
8
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE__node_modules_react_jsx_runtime_js_a2b4bab3__.jsx)(__WEBPACK_EXTERNAL_MODULE__node_modules_heroui_react_dist_index_js_29a98b44__.Button, {
|
|
9
|
+
variant: variant,
|
|
10
|
+
color: color,
|
|
11
|
+
size: size,
|
|
12
|
+
radius: radius,
|
|
13
|
+
fullWidth: fullWidth,
|
|
14
|
+
isLoading: loading,
|
|
15
|
+
isDisabled: disabled,
|
|
16
|
+
startContent: startIcon,
|
|
17
|
+
endContent: endIcon,
|
|
18
|
+
className: className,
|
|
19
|
+
...props,
|
|
20
|
+
children: children
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export { ButtonPrueba };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ButtonProps } from "@heroui/react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export interface CustomButtonProps extends Omit<ButtonProps, "startContent" | "endContent" | "isLoading" | "isDisabled"> {
|
|
4
|
+
/** The content of the button */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Icon to display at the start of the button */
|
|
7
|
+
startIcon?: ReactNode;
|
|
8
|
+
/** Icon to display at the end of the button */
|
|
9
|
+
endIcon?: ReactNode;
|
|
10
|
+
/** Whether the button is in loading state */
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
/** The visual style variant of the button */
|
|
13
|
+
variant?: "solid" | "bordered" | "light" | "flat" | "faded" | "shadow" | "ghost";
|
|
14
|
+
/** The color theme of the button */
|
|
15
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
16
|
+
/** The size of the button */
|
|
17
|
+
size?: "sm" | "md" | "lg";
|
|
18
|
+
/** The border radius of the button */
|
|
19
|
+
radius?: "none" | "sm" | "md" | "lg" | "full";
|
|
20
|
+
/** Whether the button should take full width */
|
|
21
|
+
fullWidth?: boolean;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=Button.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,iBAChB,SAAQ,IAAI,CACX,WAAW,EACX,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,CAC1D;IACD,gCAAgC;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,iDAAiD;IACjD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6CAA6C;IAC7C,OAAO,CAAC,EACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,MAAM,GACN,OAAO,GACP,QAAQ,GACR,OAAO,CAAC;IACX,oCAAoC;IACpC,KAAK,CAAC,EACH,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;IACZ,6BAA6B;IAC7B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC9C,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IconComponentProps } from "./Icon.types";
|
|
2
|
+
export declare const sizeMap: {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const IconComponent: ({ icon, size, className, }: IconComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/Icon.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,4BAI3B,kBAAkB,4CAcpB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__node_modules_react_jsx_runtime_js_a2b4bab3__ from "../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__node_modules_iconify_react_dist_iconify_js_8ac31e12__ from "../../../node_modules/@iconify/react/dist/iconify.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__node_modules_react_index_js_cb4943dd__ from "../../../node_modules/react/index.js";
|
|
4
|
+
const sizeMap = {
|
|
5
|
+
sm: "16px",
|
|
6
|
+
md: "20px",
|
|
7
|
+
lg: "24px",
|
|
8
|
+
xl: "32px"
|
|
9
|
+
};
|
|
10
|
+
const IconComponent = ({ icon, size = "md", className })=>{
|
|
11
|
+
(0, __WEBPACK_EXTERNAL_MODULE__node_modules_react_index_js_cb4943dd__.useEffect)(()=>{
|
|
12
|
+
console.log("estamos dentro del icono");
|
|
13
|
+
}, []);
|
|
14
|
+
const iconSize = sizeMap[size];
|
|
15
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE__node_modules_react_jsx_runtime_js_a2b4bab3__.jsx)(__WEBPACK_EXTERNAL_MODULE__node_modules_iconify_react_dist_iconify_js_8ac31e12__.Icon, {
|
|
16
|
+
icon: icon,
|
|
17
|
+
width: iconSize,
|
|
18
|
+
height: iconSize,
|
|
19
|
+
className: className
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export { IconComponent, sizeMap };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IconifyIconProps } from "@iconify/react/dist/iconify.js";
|
|
2
|
+
import type { sizeMap } from "./Icon";
|
|
3
|
+
/** Available icon sizes mapped to pixel values */
|
|
4
|
+
export type IconSize = keyof typeof sizeMap;
|
|
5
|
+
export interface IconComponentProps extends IconifyIconProps {
|
|
6
|
+
/** The icon name/identifier from Iconify */
|
|
7
|
+
icon: string;
|
|
8
|
+
/** The size of the icon. Can be 'sm' (16px), 'md' (20px), 'lg' (24px), or 'xl' (32px) */
|
|
9
|
+
size?: IconSize;
|
|
10
|
+
/** Optional CSS class name to apply custom styles */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=Icon.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.types.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,OAAO,CAAC;AAE5C,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC3D,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__Icon_js_0d271bb6__ from "./Icon.js";
|
|
2
|
+
var __webpack_exports__IconComponent = __WEBPACK_EXTERNAL_MODULE__Icon_js_0d271bb6__.IconComponent;
|
|
3
|
+
var __webpack_exports__sizeMap = __WEBPACK_EXTERNAL_MODULE__Icon_js_0d271bb6__.sizeMap;
|
|
4
|
+
export { __webpack_exports__IconComponent as IconComponent, __webpack_exports__sizeMap as sizeMap };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,mBAAmB,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./theme-context.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/theme/theme-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,YAAY,wCAIvB,CAAC;AAEH,eAAO,MAAM,eAAe,qBAQ3B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__node_modules_react_index_js_cb4943dd__ from "../../../node_modules/react/index.js";
|
|
2
|
+
const ThemeContext = (0, __WEBPACK_EXTERNAL_MODULE__node_modules_react_index_js_cb4943dd__.createContext)({
|
|
3
|
+
theme: "light",
|
|
4
|
+
setTheme: ()=>{}
|
|
5
|
+
});
|
|
6
|
+
const useThemeContext = ()=>{
|
|
7
|
+
const context = (0, __WEBPACK_EXTERNAL_MODULE__node_modules_react_index_js_cb4943dd__.useContext)(ThemeContext);
|
|
8
|
+
if (!context) throw new Error("useThemeContext debe ser usado dentro de un ThemeProvider");
|
|
9
|
+
return context;
|
|
10
|
+
};
|
|
11
|
+
export { ThemeContext, useThemeContext };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface IThemeContext {
|
|
2
|
+
theme: TypeThemeColor;
|
|
3
|
+
setTheme: (theme: TypeThemeColor) => void;
|
|
4
|
+
}
|
|
5
|
+
export type TypeThemeColor = "light" | "dark" | "purple-light" | "purple-dark" | "yellow-light" | "yellow-dark" | "blue-light" | "blue-dark" | "green-light" | "green-dark";
|
|
6
|
+
//# sourceMappingURL=theme-context.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-context.type.d.ts","sourceRoot":"","sources":["../../../../src/contexts/theme/theme-context.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,cAAc,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CAC1C;AACD,MAAM,MAAM,cAAc,GACvB,OAAO,GACP,MAAM,GACN,cAAc,GACd,aAAa,GACb,cAAc,GACd,aAAa,GACb,YAAY,GACZ,WAAW,GACX,aAAa,GACb,YAAY,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__styles_colors_default_js_3e59c7ca__ from "./styles/colors.default.js";
|
|
2
|
+
export * from "./components/button/index.js";
|
|
3
|
+
export * from "./components/icon/index.js";
|
|
4
|
+
export * from "./providers/theme/index.js";
|
|
5
|
+
export * from "./contexts/theme/index.js";
|
|
6
|
+
var __webpack_exports__themeColors = __WEBPACK_EXTERNAL_MODULE__styles_colors_default_js_3e59c7ca__.themeColors;
|
|
7
|
+
export { __webpack_exports__themeColors as themeColors };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../../../src/providers/theme/theme-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAUlD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__node_modules_react_jsx_runtime_js_a2b4bab3__ from "../../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import "../../../node_modules/react/index.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__contexts_theme_index_js_2e22b74a__ from "../../contexts/theme/index.js";
|
|
4
|
+
const ThemeProvider = ({ children })=>{
|
|
5
|
+
const { theme, setTheme } = (0, __WEBPACK_EXTERNAL_MODULE__contexts_theme_index_js_2e22b74a__.useThemeContext)();
|
|
6
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE__node_modules_react_jsx_runtime_js_a2b4bab3__.jsx)(__WEBPACK_EXTERNAL_MODULE__contexts_theme_index_js_2e22b74a__.ThemeContext.Provider, {
|
|
7
|
+
value: {
|
|
8
|
+
theme: theme,
|
|
9
|
+
setTheme
|
|
10
|
+
},
|
|
11
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE__node_modules_react_jsx_runtime_js_a2b4bab3__.jsx)("main", {
|
|
12
|
+
className: `${theme} bg-background text-foreground `,
|
|
13
|
+
children: children
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export { ThemeProvider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider.types.d.ts","sourceRoot":"","sources":["../../../../src/providers/theme/theme-provider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACpB"}
|
|
File without changes
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export declare const themeColors: {
|
|
2
|
+
"purple-light": {
|
|
3
|
+
extend: string;
|
|
4
|
+
colors: {
|
|
5
|
+
background: string;
|
|
6
|
+
foreground: string;
|
|
7
|
+
primary: {
|
|
8
|
+
50: string;
|
|
9
|
+
100: string;
|
|
10
|
+
200: string;
|
|
11
|
+
300: string;
|
|
12
|
+
400: string;
|
|
13
|
+
500: string;
|
|
14
|
+
600: string;
|
|
15
|
+
700: string;
|
|
16
|
+
800: string;
|
|
17
|
+
900: string;
|
|
18
|
+
DEFAULT: string;
|
|
19
|
+
foreground: string;
|
|
20
|
+
};
|
|
21
|
+
focus: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
"purple-dark": {
|
|
25
|
+
extend: string;
|
|
26
|
+
colors: {
|
|
27
|
+
background: string;
|
|
28
|
+
foreground: string;
|
|
29
|
+
primary: {
|
|
30
|
+
50: string;
|
|
31
|
+
100: string;
|
|
32
|
+
200: string;
|
|
33
|
+
300: string;
|
|
34
|
+
400: string;
|
|
35
|
+
500: string;
|
|
36
|
+
600: string;
|
|
37
|
+
700: string;
|
|
38
|
+
800: string;
|
|
39
|
+
900: string;
|
|
40
|
+
DEFAULT: string;
|
|
41
|
+
foreground: string;
|
|
42
|
+
};
|
|
43
|
+
focus: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
"green-light": {
|
|
47
|
+
extend: string;
|
|
48
|
+
colors: {
|
|
49
|
+
background: string;
|
|
50
|
+
foreground: string;
|
|
51
|
+
primary: {
|
|
52
|
+
50: string;
|
|
53
|
+
100: string;
|
|
54
|
+
200: string;
|
|
55
|
+
300: string;
|
|
56
|
+
400: string;
|
|
57
|
+
500: string;
|
|
58
|
+
600: string;
|
|
59
|
+
700: string;
|
|
60
|
+
800: string;
|
|
61
|
+
900: string;
|
|
62
|
+
DEFAULT: string;
|
|
63
|
+
foreground: string;
|
|
64
|
+
};
|
|
65
|
+
focus: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
"green-dark": {
|
|
69
|
+
extend: string;
|
|
70
|
+
colors: {
|
|
71
|
+
background: string;
|
|
72
|
+
foreground: string;
|
|
73
|
+
primary: {
|
|
74
|
+
50: string;
|
|
75
|
+
100: string;
|
|
76
|
+
200: string;
|
|
77
|
+
300: string;
|
|
78
|
+
400: string;
|
|
79
|
+
500: string;
|
|
80
|
+
600: string;
|
|
81
|
+
700: string;
|
|
82
|
+
800: string;
|
|
83
|
+
900: string;
|
|
84
|
+
DEFAULT: string;
|
|
85
|
+
foreground: string;
|
|
86
|
+
};
|
|
87
|
+
focus: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
"blue-light": {
|
|
91
|
+
extend: string;
|
|
92
|
+
colors: {
|
|
93
|
+
background: string;
|
|
94
|
+
foreground: string;
|
|
95
|
+
primary: {
|
|
96
|
+
50: string;
|
|
97
|
+
100: string;
|
|
98
|
+
200: string;
|
|
99
|
+
300: string;
|
|
100
|
+
400: string;
|
|
101
|
+
500: string;
|
|
102
|
+
600: string;
|
|
103
|
+
700: string;
|
|
104
|
+
800: string;
|
|
105
|
+
900: string;
|
|
106
|
+
DEFAULT: string;
|
|
107
|
+
foreground: string;
|
|
108
|
+
};
|
|
109
|
+
focus: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
"blue-dark": {
|
|
113
|
+
extend: string;
|
|
114
|
+
colors: {
|
|
115
|
+
background: string;
|
|
116
|
+
foreground: string;
|
|
117
|
+
primary: {
|
|
118
|
+
50: string;
|
|
119
|
+
100: string;
|
|
120
|
+
200: string;
|
|
121
|
+
300: string;
|
|
122
|
+
400: string;
|
|
123
|
+
500: string;
|
|
124
|
+
600: string;
|
|
125
|
+
700: string;
|
|
126
|
+
800: string;
|
|
127
|
+
900: string;
|
|
128
|
+
DEFAULT: string;
|
|
129
|
+
foreground: string;
|
|
130
|
+
};
|
|
131
|
+
focus: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
"yellow-light": {
|
|
135
|
+
extend: string;
|
|
136
|
+
colors: {
|
|
137
|
+
background: string;
|
|
138
|
+
foreground: string;
|
|
139
|
+
primary: {
|
|
140
|
+
50: string;
|
|
141
|
+
100: string;
|
|
142
|
+
200: string;
|
|
143
|
+
300: string;
|
|
144
|
+
400: string;
|
|
145
|
+
500: string;
|
|
146
|
+
600: string;
|
|
147
|
+
700: string;
|
|
148
|
+
800: string;
|
|
149
|
+
900: string;
|
|
150
|
+
DEFAULT: string;
|
|
151
|
+
foreground: string;
|
|
152
|
+
};
|
|
153
|
+
focus: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
"yellow-dark": {
|
|
157
|
+
extend: string;
|
|
158
|
+
colors: {
|
|
159
|
+
background: string;
|
|
160
|
+
foreground: string;
|
|
161
|
+
primary: {
|
|
162
|
+
50: string;
|
|
163
|
+
100: string;
|
|
164
|
+
200: string;
|
|
165
|
+
300: string;
|
|
166
|
+
400: string;
|
|
167
|
+
500: string;
|
|
168
|
+
600: string;
|
|
169
|
+
700: string;
|
|
170
|
+
800: string;
|
|
171
|
+
900: string;
|
|
172
|
+
DEFAULT: string;
|
|
173
|
+
foreground: string;
|
|
174
|
+
};
|
|
175
|
+
focus: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
//# sourceMappingURL=colors.default.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.default.d.ts","sourceRoot":"","sources":["../../../src/styles/colors.default.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiLvB,CAAC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
const themeColors = {
|
|
2
|
+
"purple-light": {
|
|
3
|
+
extend: "light",
|
|
4
|
+
colors: {
|
|
5
|
+
background: "#ffffff",
|
|
6
|
+
foreground: "#111827",
|
|
7
|
+
primary: {
|
|
8
|
+
50: "#eee4f8",
|
|
9
|
+
100: "#d7bfef",
|
|
10
|
+
200: "#bf99e5",
|
|
11
|
+
300: "#a773db",
|
|
12
|
+
400: "#904ed2",
|
|
13
|
+
500: "#7828c8",
|
|
14
|
+
600: "#6321a5",
|
|
15
|
+
700: "#4e1a82",
|
|
16
|
+
800: "#39135f",
|
|
17
|
+
900: "#240c3c",
|
|
18
|
+
DEFAULT: "#7828c8",
|
|
19
|
+
foreground: "#ffffff"
|
|
20
|
+
},
|
|
21
|
+
focus: "#904ed2"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"purple-dark": {
|
|
25
|
+
extend: "dark",
|
|
26
|
+
colors: {
|
|
27
|
+
background: "#1A1023",
|
|
28
|
+
foreground: "#ffffff",
|
|
29
|
+
primary: {
|
|
30
|
+
50: "#2c193f",
|
|
31
|
+
100: "#462764",
|
|
32
|
+
200: "#603689",
|
|
33
|
+
300: "#7944ae",
|
|
34
|
+
400: "#9353d3",
|
|
35
|
+
500: "#a671db",
|
|
36
|
+
600: "#b98fe2",
|
|
37
|
+
700: "#ccadee",
|
|
38
|
+
800: "#dfcbf2",
|
|
39
|
+
900: "#f2eafa",
|
|
40
|
+
DEFAULT: "#9353d3",
|
|
41
|
+
foreground: "#ffffff"
|
|
42
|
+
},
|
|
43
|
+
focus: "#a671db"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"green-light": {
|
|
47
|
+
extend: "light",
|
|
48
|
+
colors: {
|
|
49
|
+
background: "#ffffff",
|
|
50
|
+
foreground: "#111827",
|
|
51
|
+
primary: {
|
|
52
|
+
50: "#ecf9f0",
|
|
53
|
+
100: "#d1f0dc",
|
|
54
|
+
200: "#b6e7c7",
|
|
55
|
+
300: "#9cdeb3",
|
|
56
|
+
400: "#81d59e",
|
|
57
|
+
500: "#66cc8a",
|
|
58
|
+
600: "#54a872",
|
|
59
|
+
700: "#42855a",
|
|
60
|
+
800: "#306142",
|
|
61
|
+
900: "#1f3d29",
|
|
62
|
+
DEFAULT: "#66cc8a",
|
|
63
|
+
foreground: "#000000"
|
|
64
|
+
},
|
|
65
|
+
focus: "#81d59e"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"green-dark": {
|
|
69
|
+
extend: "dark",
|
|
70
|
+
colors: {
|
|
71
|
+
background: "#0F1D15",
|
|
72
|
+
foreground: "#ffffff",
|
|
73
|
+
primary: {
|
|
74
|
+
50: "#1f3d29",
|
|
75
|
+
100: "#306142",
|
|
76
|
+
200: "#42855a",
|
|
77
|
+
300: "#54a872",
|
|
78
|
+
400: "#66cc8a",
|
|
79
|
+
500: "#81d59e",
|
|
80
|
+
600: "#9cdeb3",
|
|
81
|
+
700: "#b6e7c7",
|
|
82
|
+
800: "#d1f0dc",
|
|
83
|
+
900: "#ecf9f0",
|
|
84
|
+
DEFAULT: "#66cc8a",
|
|
85
|
+
foreground: "#000000"
|
|
86
|
+
},
|
|
87
|
+
focus: "#81d59e"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"blue-light": {
|
|
91
|
+
extend: "light",
|
|
92
|
+
colors: {
|
|
93
|
+
background: "#ffffff",
|
|
94
|
+
foreground: "#111827",
|
|
95
|
+
primary: {
|
|
96
|
+
50: "#eff6ff",
|
|
97
|
+
100: "#dbeafe",
|
|
98
|
+
200: "#bfdbfe",
|
|
99
|
+
300: "#93c5fd",
|
|
100
|
+
400: "#60a5fa",
|
|
101
|
+
500: "#3b82f6",
|
|
102
|
+
600: "#2563eb",
|
|
103
|
+
700: "#1d4ed8",
|
|
104
|
+
800: "#1e40af",
|
|
105
|
+
900: "#1e3a8a",
|
|
106
|
+
DEFAULT: "#3b82f6",
|
|
107
|
+
foreground: "#ffffff"
|
|
108
|
+
},
|
|
109
|
+
focus: "#60a5fa"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"blue-dark": {
|
|
113
|
+
extend: "dark",
|
|
114
|
+
colors: {
|
|
115
|
+
background: "#101d3a",
|
|
116
|
+
foreground: "#ffffff",
|
|
117
|
+
primary: {
|
|
118
|
+
50: "#1e3a8a",
|
|
119
|
+
100: "#1e40af",
|
|
120
|
+
200: "#1d4ed8",
|
|
121
|
+
300: "#2563eb",
|
|
122
|
+
400: "#3b82f6",
|
|
123
|
+
500: "#60a5fa",
|
|
124
|
+
600: "#93c5fd",
|
|
125
|
+
700: "#bfdbfe",
|
|
126
|
+
800: "#dbeafe",
|
|
127
|
+
900: "#eff6ff",
|
|
128
|
+
DEFAULT: "#3b82f6",
|
|
129
|
+
foreground: "#ffffff"
|
|
130
|
+
},
|
|
131
|
+
focus: "#60a5fa"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"yellow-light": {
|
|
135
|
+
extend: "light",
|
|
136
|
+
colors: {
|
|
137
|
+
background: "#ffffff",
|
|
138
|
+
foreground: "#111827",
|
|
139
|
+
primary: {
|
|
140
|
+
50: "#fefce8",
|
|
141
|
+
100: "#fef9c3",
|
|
142
|
+
200: "#fef08a",
|
|
143
|
+
300: "#fde047",
|
|
144
|
+
400: "#facc15",
|
|
145
|
+
500: "#eab308",
|
|
146
|
+
600: "#ca8a04",
|
|
147
|
+
700: "#a16207",
|
|
148
|
+
800: "#854d0e",
|
|
149
|
+
900: "#713f12",
|
|
150
|
+
DEFAULT: "#eab308",
|
|
151
|
+
foreground: "#111827"
|
|
152
|
+
},
|
|
153
|
+
focus: "#facc15"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"yellow-dark": {
|
|
157
|
+
extend: "dark",
|
|
158
|
+
colors: {
|
|
159
|
+
background: "#18181b",
|
|
160
|
+
foreground: "#ffffff",
|
|
161
|
+
primary: {
|
|
162
|
+
50: "#713f12",
|
|
163
|
+
100: "#854d0e",
|
|
164
|
+
200: "#a16207",
|
|
165
|
+
300: "#ca8a04",
|
|
166
|
+
400: "#eab308",
|
|
167
|
+
500: "#facc15",
|
|
168
|
+
600: "#fde047",
|
|
169
|
+
700: "#fef08a",
|
|
170
|
+
800: "#fef9c3",
|
|
171
|
+
900: "#fefce8",
|
|
172
|
+
DEFAULT: "#facc15",
|
|
173
|
+
foreground: "#18181b"
|
|
174
|
+
},
|
|
175
|
+
focus: "#eab308"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
export { themeColors };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beweco/aurora-ui",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Bewe
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Bewe Aurora UI Component Library",
|
|
5
5
|
"keywords": ["ui", "components", "react", "bewe", "aura"],
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"publishConfig": {
|
|
9
|
-
"access": "
|
|
9
|
+
"access": "restricted"
|
|
10
10
|
},
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|