enerdot-front-system 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,50 @@
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/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
+
14
+ - Configure the top-level `parserOptions` property like this:
15
+
16
+ ```js
17
+ export default tseslint.config({
18
+ languageOptions: {
19
+ // other options...
20
+ parserOptions: {
21
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
22
+ tsconfigRootDir: import.meta.dirname,
23
+ },
24
+ },
25
+ })
26
+ ```
27
+
28
+ - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29
+ - Optionally add `...tseslint.configs.stylisticTypeChecked`
30
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
31
+
32
+ ```js
33
+ // eslint.config.js
34
+ import react from 'eslint-plugin-react'
35
+
36
+ export default tseslint.config({
37
+ // Set the react version
38
+ settings: { react: { version: '18.3' } },
39
+ plugins: {
40
+ // Add the react plugin
41
+ react,
42
+ },
43
+ rules: {
44
+ // other rules...
45
+ // Enable its recommended rules
46
+ ...react.configs.recommended.rules,
47
+ ...react.configs['jsx-runtime'].rules,
48
+ },
49
+ })
50
+ ```
@@ -0,0 +1,3 @@
1
+ import { ButtonProps } from '.';
2
+ declare const PrimaryButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
+ export default PrimaryButton;
@@ -0,0 +1,3 @@
1
+ import { ButtonProps } from '.';
2
+ declare const SecondaryButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
+ export default SecondaryButton;
@@ -0,0 +1,3 @@
1
+ import { ButtonProps } from '.';
2
+ declare const TertiaryButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
+ export default TertiaryButton;
@@ -0,0 +1,3 @@
1
+ import { ButtonProps } from '.';
2
+ declare const TextButton: (props: Omit<ButtonProps, "theme">) => import("react/jsx-runtime").JSX.Element;
3
+ export default TextButton;
@@ -0,0 +1,65 @@
1
+ export interface ButtonStyleProps {
2
+ $mainColor: string;
3
+ $hoverColor: string;
4
+ $activeColor: string;
5
+ $disabledColor: string;
6
+ $fontWeights: [string, string, string];
7
+ $fontSize: number;
8
+ $borderRadius: number;
9
+ $pr: number;
10
+ $pl: number;
11
+ $height: number;
12
+ $width: string;
13
+ /**theme - secondary, text만 지원 */
14
+ $isSelected?: boolean;
15
+ }
16
+ export declare const levels: {
17
+ [key: string]: {
18
+ height: number;
19
+ fontSize: number;
20
+ fontWeights: [string, string, string];
21
+ };
22
+ };
23
+ export declare const borderRadii: {
24
+ full: number;
25
+ round: number;
26
+ no: number;
27
+ };
28
+ export declare const colors: {
29
+ primary: {
30
+ $mainColor: string;
31
+ $hoverColor: string;
32
+ $activeColor: string;
33
+ $disabledColor: string;
34
+ };
35
+ green: {
36
+ $mainColor: string;
37
+ $hoverColor: string;
38
+ $activeColor: string;
39
+ $disabledColor: string;
40
+ };
41
+ red: {
42
+ $mainColor: string;
43
+ $hoverColor: string;
44
+ $activeColor: string;
45
+ $disabledColor: string;
46
+ };
47
+ orange: {
48
+ $mainColor: string;
49
+ $hoverColor: string;
50
+ $activeColor: string;
51
+ $disabledColor: string;
52
+ };
53
+ yellow: {
54
+ $mainColor: string;
55
+ $hoverColor: string;
56
+ $activeColor: string;
57
+ $disabledColor: string;
58
+ };
59
+ gray: {
60
+ $mainColor: string;
61
+ $hoverColor: string;
62
+ $activeColor: string;
63
+ $disabledColor: string;
64
+ };
65
+ };
@@ -0,0 +1,14 @@
1
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
2
+ level?: "small" | "medium" | "large";
3
+ theme?: "primary" | "secondary" | "tertiary" | "text";
4
+ baseColor?: "primary" | "green" | "red" | "orange" | "yellow" | "gray";
5
+ borderRadius?: "full" | "round" | "no";
6
+ pl?: number;
7
+ pr?: number;
8
+ width?: string;
9
+ children?: React.ReactNode;
10
+ /**theme - secondary, text만 지원 */
11
+ isSelected?: boolean;
12
+ }
13
+ declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default Button;
@@ -0,0 +1,143 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const dr=require("react"),vr=require("styled-components"),pr=r=>r&&typeof r=="object"&&"default"in r?r:{default:r};function gr(r){if(r&&typeof r=="object"&&"default"in r)return r;const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const y in r)if(y!=="default"){const v=Object.getOwnPropertyDescriptor(r,y);Object.defineProperty(f,y,v.get?v:{enumerable:!0,get:()=>r[y]})}}return f.default=r,Object.freeze(f)}const br=gr(dr),N=pr(vr);function yr(r){if(r.__esModule)return r;var f=r.default;if(typeof f=="function"){var y=function v(){return this instanceof v?Reflect.construct(f,arguments,this.constructor):f.apply(this,arguments)};y.prototype=f.prototype}else y={};return Object.defineProperty(y,"__esModule",{value:!0}),Object.keys(r).forEach(function(v){var $=Object.getOwnPropertyDescriptor(r,v);Object.defineProperty(y,v,$.get?$:{enumerable:!0,get:function(){return r[v]}})}),y}var U={exports:{}},A={};const Te=yr(br);/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var we;function hr(){if(we)return A;we=1;var r=Te,f=Symbol.for("react.element"),y=Symbol.for("react.fragment"),v=Object.prototype.hasOwnProperty,$=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,I={key:!0,ref:!0,__self:!0,__source:!0};function x(C,p,T){var m,_={},w=null,W=null;T!==void 0&&(w=""+T),p.key!==void 0&&(w=""+p.key),p.ref!==void 0&&(W=p.ref);for(m in p)v.call(p,m)&&!I.hasOwnProperty(m)&&(_[m]=p[m]);if(C&&C.defaultProps)for(m in p=C.defaultProps,p)_[m]===void 0&&(_[m]=p[m]);return{$$typeof:f,type:C,key:w,ref:W,props:_,_owner:$.current}}return A.Fragment=y,A.jsx=x,A.jsxs=x,A}var B={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Fe;function mr(){return Fe||(Fe=1,process.env.NODE_ENV!=="production"&&function(){var r=Te,f=Symbol.for("react.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),C=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),Q=Symbol.iterator,je="@@iterator";function Pe(e){if(e===null||typeof e!="object")return null;var t=Q&&e[Q]||e[je];return typeof t=="function"?t:null}var j=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];Se("error",e,n)}}function Se(e,t,n){{var o=j.ReactDebugCurrentFrame,u=o.getStackAddendum();u!==""&&(t+="%s",n=n.concat([u]));var s=n.map(function(l){return String(l)});s.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,s)}}var xe=!1,De=!1,ke=!1,Ae=!1,Be=!1,ee;ee=Symbol.for("react.module.reference");function Ie(e){return!!(typeof e=="string"||typeof e=="function"||e===v||e===I||Be||e===$||e===T||e===m||Ae||e===W||xe||De||ke||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===_||e.$$typeof===x||e.$$typeof===C||e.$$typeof===p||e.$$typeof===ee||e.getModuleId!==void 0))}function We(e,t,n){var o=e.displayName;if(o)return o;var u=t.displayName||t.name||"";return u!==""?n+"("+u+")":n}function re(e){return e.displayName||"Context"}function R(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case y:return"Portal";case I:return"Profiler";case $:return"StrictMode";case T:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case C:var t=e;return re(t)+".Consumer";case x:var n=e;return re(n._context)+".Provider";case p:return We(e,e.render,"ForwardRef");case _:var o=e.displayName||null;return o!==null?o:R(e.type)||"Memo";case w:{var u=e,s=u._payload,l=u._init;try{return R(l(s))}catch{return null}}}return null}var F=Object.assign,D=0,te,ne,oe,ae,ie,le,ue;function se(){}se.__reactDisabledLog=!0;function Ye(){{if(D===0){te=console.log,ne=console.info,oe=console.warn,ae=console.error,ie=console.group,le=console.groupCollapsed,ue=console.groupEnd;var e={configurable:!0,enumerable:!0,value:se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function Me(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:te}),info:F({},e,{value:ne}),warn:F({},e,{value:oe}),error:F({},e,{value:ae}),group:F({},e,{value:ie}),groupCollapsed:F({},e,{value:le}),groupEnd:F({},e,{value:ue})})}D<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=j.ReactCurrentDispatcher,J;function Y(e,t,n){{if(J===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);J=o&&o[1]||""}return`
18
+ `+J+e}}var z=!1,M;{var Le=typeof WeakMap=="function"?WeakMap:Map;M=new Le}function ce(e,t){if(!e||z)return"";{var n=M.get(e);if(n!==void 0)return n}var o;z=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=q.current,q.current=null,Ye();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(h){o=h}Reflect.construct(e,[],l)}else{try{l.call()}catch(h){o=h}e.call(l.prototype)}}else{try{throw Error()}catch(h){o=h}e()}}catch(h){if(h&&o&&typeof h.stack=="string"){for(var a=h.stack.split(`
19
+ `),b=o.stack.split(`
20
+ `),c=a.length-1,d=b.length-1;c>=1&&d>=0&&a[c]!==b[d];)d--;for(;c>=1&&d>=0;c--,d--)if(a[c]!==b[d]){if(c!==1||d!==1)do if(c--,d--,d<0||a[c]!==b[d]){var E=`
21
+ `+a[c].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,E),E}while(c>=1&&d>=0);break}}}finally{z=!1,q.current=s,Me(),Error.prepareStackTrace=u}var S=e?e.displayName||e.name:"",O=S?Y(S):"";return typeof e=="function"&&M.set(e,O),O}function Ve(e,t,n){return ce(e,!1)}function Ue(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function L(e,t,n){if(e==null)return"";if(typeof e=="function")return ce(e,Ue(e));if(typeof e=="string")return Y(e);switch(e){case T:return Y("Suspense");case m:return Y("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Ve(e.render);case _:return L(e.type,t,n);case w:{var o=e,u=o._payload,s=o._init;try{return L(s(u),t,n)}catch{}}}return""}var k=Object.prototype.hasOwnProperty,fe={},de=j.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);de.setExtraStackFrame(n)}else de.setExtraStackFrame(null)}function Ne(e,t,n,o,u){{var s=Function.call.bind(k);for(var l in e)if(s(e,l)){var a=void 0;try{if(typeof e[l]!="function"){var b=Error((o||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}a=e[l](t,l,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}a&&!(a instanceof Error)&&(V(u),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",n,l,typeof a),V(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,V(u),g("Failed %s type: %s",n,a.message),V(null))}}}var qe=Array.isArray;function K(e){return qe(e)}function Je(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function ze(e){try{return ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(ze(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),ve(e)}var ge=j.ReactCurrentOwner,Ke={key:!0,ref:!0,__self:!0,__source:!0},be,ye;function Ge(e){if(k.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(k.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function He(e,t){typeof e.ref=="string"&&ge.current}function Ze(e,t){{var n=function(){be||(be=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Qe(e,t){{var n=function(){ye||(ye=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var er=function(e,t,n,o,u,s,l){var a={$$typeof:f,type:e,key:t,ref:n,props:l,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function rr(e,t,n,o,u){{var s,l={},a=null,b=null;n!==void 0&&(pe(n),a=""+n),Xe(t)&&(pe(t.key),a=""+t.key),Ge(t)&&(b=t.ref,He(t,u));for(s in t)k.call(t,s)&&!Ke.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps){var c=e.defaultProps;for(s in c)l[s]===void 0&&(l[s]=c[s])}if(a||b){var d=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Ze(l,d),b&&Qe(l,d)}return er(e,a,b,u,o,ge.current,l)}}var G=j.ReactCurrentOwner,he=j.ReactDebugCurrentFrame;function P(e){if(e){var t=e._owner,n=L(e.type,e._source,t?t.type:null);he.setExtraStackFrame(n)}else he.setExtraStackFrame(null)}var X;X=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===f}function me(){{if(G.current){var e=R(G.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function tr(e){return""}var Ee={};function nr(e){{var t=me();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
24
+
25
+ Check the top-level render call using <`+n+">.")}return t}}function _e(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=nr(t);if(Ee[n])return;Ee[n]=!0;var o="";e&&e._owner&&e._owner!==G.current&&(o=" It was passed a child from "+R(e._owner.type)+"."),P(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),P(null)}}function Re(e,t){{if(typeof e!="object")return;if(K(e))for(var n=0;n<e.length;n++){var o=e[n];H(o)&&_e(o,t)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var u=Pe(e);if(typeof u=="function"&&u!==e.entries)for(var s=u.call(e),l;!(l=s.next()).done;)H(l.value)&&_e(l.value,t)}}}function or(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===p||t.$$typeof===_))n=t.propTypes;else return;if(n){var o=R(t);Ne(n,e.props,"prop",o,e)}else if(t.PropTypes!==void 0&&!X){X=!0;var u=R(t);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var o=t[n];if(o!=="children"&&o!=="key"){P(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),P(null);break}}e.ref!==null&&(P(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),P(null))}}var $e={};function Ce(e,t,n,o,u,s){{var l=Ie(e);if(!l){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var b=tr();b?a+=b:a+=me();var c;e===null?c="null":K(e)?c="array":e!==void 0&&e.$$typeof===f?(c="<"+(R(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,a)}var d=rr(e,t,n,u,s);if(d==null)return d;if(l){var E=t.children;if(E!==void 0)if(o)if(K(E)){for(var S=0;S<E.length;S++)Re(E[S],e);Object.freeze&&Object.freeze(E)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Re(E,e)}if(k.call(t,"key")){var O=R(e),h=Object.keys(t).filter(function(fr){return fr!=="key"}),Z=h.length>0?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}";if(!$e[O+Z]){var cr=h.length>0?"{"+h.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,Z,O,cr,O),$e[O+Z]=!0}}return e===v?ar(d):or(d),d}}function ir(e,t,n){return Ce(e,t,n,!0)}function lr(e,t,n){return Ce(e,t,n,!1)}var ur=lr,sr=ir;B.Fragment=v,B.jsx=ur,B.jsxs=sr}()),B}var Oe;function Er(){return Oe||(Oe=1,process.env.NODE_ENV==="production"?U.exports=hr():U.exports=mr()),U.exports}Er();const i={white:"#FFFFFF",black:"#222222",gray50:"#FBFBFB",gray100:"#F7F8F9",gray200:"#EBEDF2",gray300:"#DADEE5",gray400:"#C6CBD3",gray500:"#BABFC9",gray600:"#A3A8B4",gray700:"#8A8F9D",gray800:"#6D717D",gray900:"#4A515D",blue100:"#F1F5FE",blue200:"#CEDBFF",blue300:"#A7BFFF",blue400:"#7EA1FF",blue500:"#5884FF",blue600:"#3369FF",blue700:"#2B59D9",blue800:"#244BB5",blue900:"#1D3C91",red50:"#FFF1EF",red100:"#FFACAD",red200:"#FF8182",red300:"#FA4549",red400:"#CF222E",red500:"#82071E",orange50:"#FFF1E5",orange100:"#FFD0AA",orange200:"#FFB37D",orange300:"#FF8E40",orange400:"#E16F24",orange500:"#953800",green50:"#EFFDEE",green100:"#8AE3A1",green200:"#4DD470",green300:"#1CB854",green400:"#149E53",green500:"#086A49",yellow50:"#FEF9E6",yellow100:"#FADD78",yellow200:"#F7CC33",yellow300:"#F7B200",yellow400:"#CB9D26",yellow500:"#956B00"};i.blue600,i.blue700,i.white,i.blue200,i.green300,i.green400,i.white,i.green50,i.red300,i.red400,i.white,i.red50,i.orange300,i.orange400,i.white,i.orange50,i.yellow300,i.yellow400,i.white,i.yellow50,i.gray900,i.black,i.black,i.gray300;N.default.button`
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ transition: 0.1s linear;
35
+ transition-property: background-color, border-color;
36
+ cursor: pointer;
37
+ width: ${({$width:r})=>r};
38
+
39
+ color: ${i.white};
40
+ font-size: ${({$fontSize:r})=>r}rem;
41
+ font-weight: ${({$fontWeights:r})=>r[0]};
42
+ border-radius: ${({$borderRadius:r})=>r}rem;
43
+ padding-right: ${({$pr:r})=>r}rem;
44
+ padding-left: ${({$pl:r})=>r}rem;
45
+ height: ${({$height:r})=>r}px;
46
+ background-color: ${({$mainColor:r})=>r};
47
+
48
+ &:hover:not([disabled]) {
49
+ background-color: ${({$hoverColor:r})=>r};
50
+ font-weight: ${({$fontWeights:r})=>r[1]};
51
+ }
52
+
53
+ &:disabled {
54
+ background-color: ${({$disabledColor:r})=>r};
55
+ }
56
+ `;N.default.button`
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ transition: 0.1s linear;
61
+ transition-property: border-color, color, background-color;
62
+ cursor: pointer;
63
+ width: ${({$width:r})=>r};
64
+
65
+ background-color: ${({$isSelected:r,$mainColor:f})=>r?f:i.white};
66
+ color: ${({$mainColor:r,$isSelected:f})=>f?i.white:r};
67
+
68
+ border: 1px solid ${({$mainColor:r})=>r};
69
+ font-size: ${({$fontSize:r})=>r}rem;
70
+ font-weight: ${({$fontWeights:r})=>r[0]};
71
+ border-radius: ${({$borderRadius:r})=>r}rem;
72
+ padding-right: ${({$pr:r})=>r}rem;
73
+ padding-left: ${({$pl:r})=>r}rem;
74
+ height: ${({$height:r})=>r}px;
75
+
76
+ &:hover:not([disabled]) {
77
+ color: ${({$hoverColor:r})=>r};
78
+ border: 1px solid ${({$hoverColor:r})=>r};
79
+ font-weight: ${({$fontWeights:r})=>r[1]};
80
+ background-color: ${i.white};
81
+ }
82
+
83
+ &:disabled {
84
+ color: ${({$disabledColor:r})=>r};
85
+ border: 1px solid ${({$disabledColor:r})=>r};
86
+ }
87
+ `;N.default.button`
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ transition: 0.1s linear;
92
+ transition-property: border-color, color;
93
+ cursor: pointer;
94
+ width: ${({$width:r})=>r};
95
+
96
+ background-color: ${i.white};
97
+ color: ${({$mainColor:r})=>r};
98
+ border: 1px solid ${i.gray400};
99
+ font-size: ${({$fontSize:r})=>r}rem;
100
+ font-weight: ${({$fontWeights:r})=>r[0]};
101
+ border-radius: ${({$borderRadius:r})=>r}rem;
102
+ padding-right: ${({$pr:r})=>r}rem;
103
+ padding-left: ${({$pl:r})=>r}rem;
104
+ height: ${({$height:r})=>r}px;
105
+
106
+ &:hover:not([disabled]) {
107
+ color: ${({$hoverColor:r})=>r};
108
+ border: 1px solid ${i.gray600};
109
+ font-weight: ${({$fontWeights:r})=>r[1]};
110
+ }
111
+
112
+ &:disabled {
113
+ color: ${({$disabledColor:r})=>r};
114
+ border: 1px solid ${i.gray300};
115
+ }
116
+ `;N.default.button`
117
+ display: flex;
118
+ align-items: center;
119
+ justify-content: center;
120
+ transition: 0.1s linear;
121
+ transition-property: border-color, color;
122
+ cursor: pointer;
123
+ width: ${({$width:r})=>r};
124
+
125
+ background-color: ${i.white};
126
+ color: ${({$mainColor:r,$isSelected:f})=>f?i.black:r};
127
+ border: none;
128
+ font-size: ${({$fontSize:r})=>r}rem;
129
+ font-weight: ${({$fontWeights:r})=>r[0]};
130
+ border-radius: ${({$borderRadius:r})=>r}rem;
131
+ padding-right: ${({$pr:r})=>r}rem;
132
+ padding-left: ${({$pl:r})=>r}rem;
133
+ height: ${({$height:r})=>r}px;
134
+
135
+ &:hover:not([disabled]) {
136
+ color: ${({$hoverColor:r})=>r};
137
+ font-weight: ${({$fontWeights:r})=>r[1]};
138
+ }
139
+
140
+ &:disabled {
141
+ color: ${({$disabledColor:r})=>r};
142
+ }
143
+ `;exports.themeColors=i;
@@ -0,0 +1,2 @@
1
+ export * from '../lib/components/Button';
2
+ export * from '../lib/styles/color.style';
@@ -0,0 +1,820 @@
1
+ "use client";
2
+ import * as dr from "react";
3
+ import N from "styled-components";
4
+ function vr(r) {
5
+ if (r.__esModule) return r;
6
+ var d = r.default;
7
+ if (typeof d == "function") {
8
+ var E = function y() {
9
+ return this instanceof y ? Reflect.construct(d, arguments, this.constructor) : d.apply(this, arguments);
10
+ };
11
+ E.prototype = d.prototype;
12
+ } else E = {};
13
+ return Object.defineProperty(E, "__esModule", { value: !0 }), Object.keys(r).forEach(function(y) {
14
+ var $ = Object.getOwnPropertyDescriptor(r, y);
15
+ Object.defineProperty(E, y, $.get ? $ : {
16
+ enumerable: !0,
17
+ get: function() {
18
+ return r[y];
19
+ }
20
+ });
21
+ }), E;
22
+ }
23
+ var U = { exports: {} }, A = {};
24
+ const Oe = /* @__PURE__ */ vr(dr);
25
+ /**
26
+ * @license React
27
+ * react-jsx-runtime.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */
34
+ var we;
35
+ function pr() {
36
+ if (we) return A;
37
+ we = 1;
38
+ var r = Oe, d = Symbol.for("react.element"), E = Symbol.for("react.fragment"), y = Object.prototype.hasOwnProperty, $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
39
+ function j(C, v, O) {
40
+ var h, _ = {}, w = null, W = null;
41
+ O !== void 0 && (w = "" + O), v.key !== void 0 && (w = "" + v.key), v.ref !== void 0 && (W = v.ref);
42
+ for (h in v) y.call(v, h) && !I.hasOwnProperty(h) && (_[h] = v[h]);
43
+ if (C && C.defaultProps) for (h in v = C.defaultProps, v) _[h] === void 0 && (_[h] = v[h]);
44
+ return { $$typeof: d, type: C, key: w, ref: W, props: _, _owner: $.current };
45
+ }
46
+ return A.Fragment = E, A.jsx = j, A.jsxs = j, A;
47
+ }
48
+ var B = {};
49
+ /**
50
+ * @license React
51
+ * react-jsx-runtime.development.js
52
+ *
53
+ * Copyright (c) Facebook, Inc. and its affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */
58
+ var Fe;
59
+ function gr() {
60
+ return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
61
+ var r = Oe, d = Symbol.for("react.element"), E = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), C = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, xe = "@@iterator";
62
+ function Pe(e) {
63
+ if (e === null || typeof e != "object")
64
+ return null;
65
+ var t = Q && e[Q] || e[xe];
66
+ return typeof t == "function" ? t : null;
67
+ }
68
+ var x = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
69
+ function p(e) {
70
+ {
71
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
72
+ n[o - 1] = arguments[o];
73
+ Se("error", e, n);
74
+ }
75
+ }
76
+ function Se(e, t, n) {
77
+ {
78
+ var o = x.ReactDebugCurrentFrame, u = o.getStackAddendum();
79
+ u !== "" && (t += "%s", n = n.concat([u]));
80
+ var s = n.map(function(i) {
81
+ return String(i);
82
+ });
83
+ s.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, s);
84
+ }
85
+ }
86
+ var je = !1, ke = !1, De = !1, Ae = !1, Be = !1, ee;
87
+ ee = Symbol.for("react.module.reference");
88
+ function Ie(e) {
89
+ return !!(typeof e == "string" || typeof e == "function" || e === y || e === I || Be || e === $ || e === O || e === h || Ae || e === W || je || ke || De || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === _ || e.$$typeof === j || e.$$typeof === C || e.$$typeof === v || // This needs to include all possible module reference object
90
+ // types supported by any Flight configuration anywhere since
91
+ // we don't know which Flight build this will end up being used
92
+ // with.
93
+ e.$$typeof === ee || e.getModuleId !== void 0));
94
+ }
95
+ function We(e, t, n) {
96
+ var o = e.displayName;
97
+ if (o)
98
+ return o;
99
+ var u = t.displayName || t.name || "";
100
+ return u !== "" ? n + "(" + u + ")" : n;
101
+ }
102
+ function re(e) {
103
+ return e.displayName || "Context";
104
+ }
105
+ function R(e) {
106
+ if (e == null)
107
+ return null;
108
+ if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
109
+ return e.displayName || e.name || null;
110
+ if (typeof e == "string")
111
+ return e;
112
+ switch (e) {
113
+ case y:
114
+ return "Fragment";
115
+ case E:
116
+ return "Portal";
117
+ case I:
118
+ return "Profiler";
119
+ case $:
120
+ return "StrictMode";
121
+ case O:
122
+ return "Suspense";
123
+ case h:
124
+ return "SuspenseList";
125
+ }
126
+ if (typeof e == "object")
127
+ switch (e.$$typeof) {
128
+ case C:
129
+ var t = e;
130
+ return re(t) + ".Consumer";
131
+ case j:
132
+ var n = e;
133
+ return re(n._context) + ".Provider";
134
+ case v:
135
+ return We(e, e.render, "ForwardRef");
136
+ case _:
137
+ var o = e.displayName || null;
138
+ return o !== null ? o : R(e.type) || "Memo";
139
+ case w: {
140
+ var u = e, s = u._payload, i = u._init;
141
+ try {
142
+ return R(i(s));
143
+ } catch {
144
+ return null;
145
+ }
146
+ }
147
+ }
148
+ return null;
149
+ }
150
+ var F = Object.assign, k = 0, te, ne, oe, ae, ie, le, ue;
151
+ function se() {
152
+ }
153
+ se.__reactDisabledLog = !0;
154
+ function Ye() {
155
+ {
156
+ if (k === 0) {
157
+ te = console.log, ne = console.info, oe = console.warn, ae = console.error, ie = console.group, le = console.groupCollapsed, ue = console.groupEnd;
158
+ var e = {
159
+ configurable: !0,
160
+ enumerable: !0,
161
+ value: se,
162
+ writable: !0
163
+ };
164
+ Object.defineProperties(console, {
165
+ info: e,
166
+ log: e,
167
+ warn: e,
168
+ error: e,
169
+ group: e,
170
+ groupCollapsed: e,
171
+ groupEnd: e
172
+ });
173
+ }
174
+ k++;
175
+ }
176
+ }
177
+ function Me() {
178
+ {
179
+ if (k--, k === 0) {
180
+ var e = {
181
+ configurable: !0,
182
+ enumerable: !0,
183
+ writable: !0
184
+ };
185
+ Object.defineProperties(console, {
186
+ log: F({}, e, {
187
+ value: te
188
+ }),
189
+ info: F({}, e, {
190
+ value: ne
191
+ }),
192
+ warn: F({}, e, {
193
+ value: oe
194
+ }),
195
+ error: F({}, e, {
196
+ value: ae
197
+ }),
198
+ group: F({}, e, {
199
+ value: ie
200
+ }),
201
+ groupCollapsed: F({}, e, {
202
+ value: le
203
+ }),
204
+ groupEnd: F({}, e, {
205
+ value: ue
206
+ })
207
+ });
208
+ }
209
+ k < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
210
+ }
211
+ }
212
+ var J = x.ReactCurrentDispatcher, q;
213
+ function Y(e, t, n) {
214
+ {
215
+ if (q === void 0)
216
+ try {
217
+ throw Error();
218
+ } catch (u) {
219
+ var o = u.stack.trim().match(/\n( *(at )?)/);
220
+ q = o && o[1] || "";
221
+ }
222
+ return `
223
+ ` + q + e;
224
+ }
225
+ }
226
+ var z = !1, M;
227
+ {
228
+ var Le = typeof WeakMap == "function" ? WeakMap : Map;
229
+ M = new Le();
230
+ }
231
+ function ce(e, t) {
232
+ if (!e || z)
233
+ return "";
234
+ {
235
+ var n = M.get(e);
236
+ if (n !== void 0)
237
+ return n;
238
+ }
239
+ var o;
240
+ z = !0;
241
+ var u = Error.prepareStackTrace;
242
+ Error.prepareStackTrace = void 0;
243
+ var s;
244
+ s = J.current, J.current = null, Ye();
245
+ try {
246
+ if (t) {
247
+ var i = function() {
248
+ throw Error();
249
+ };
250
+ if (Object.defineProperty(i.prototype, "props", {
251
+ set: function() {
252
+ throw Error();
253
+ }
254
+ }), typeof Reflect == "object" && Reflect.construct) {
255
+ try {
256
+ Reflect.construct(i, []);
257
+ } catch (b) {
258
+ o = b;
259
+ }
260
+ Reflect.construct(e, [], i);
261
+ } else {
262
+ try {
263
+ i.call();
264
+ } catch (b) {
265
+ o = b;
266
+ }
267
+ e.call(i.prototype);
268
+ }
269
+ } else {
270
+ try {
271
+ throw Error();
272
+ } catch (b) {
273
+ o = b;
274
+ }
275
+ e();
276
+ }
277
+ } catch (b) {
278
+ if (b && o && typeof b.stack == "string") {
279
+ for (var a = b.stack.split(`
280
+ `), g = o.stack.split(`
281
+ `), c = a.length - 1, f = g.length - 1; c >= 1 && f >= 0 && a[c] !== g[f]; )
282
+ f--;
283
+ for (; c >= 1 && f >= 0; c--, f--)
284
+ if (a[c] !== g[f]) {
285
+ if (c !== 1 || f !== 1)
286
+ do
287
+ if (c--, f--, f < 0 || a[c] !== g[f]) {
288
+ var m = `
289
+ ` + a[c].replace(" at new ", " at ");
290
+ return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, m), m;
291
+ }
292
+ while (c >= 1 && f >= 0);
293
+ break;
294
+ }
295
+ }
296
+ } finally {
297
+ z = !1, J.current = s, Me(), Error.prepareStackTrace = u;
298
+ }
299
+ var S = e ? e.displayName || e.name : "", T = S ? Y(S) : "";
300
+ return typeof e == "function" && M.set(e, T), T;
301
+ }
302
+ function Ve(e, t, n) {
303
+ return ce(e, !1);
304
+ }
305
+ function Ue(e) {
306
+ var t = e.prototype;
307
+ return !!(t && t.isReactComponent);
308
+ }
309
+ function L(e, t, n) {
310
+ if (e == null)
311
+ return "";
312
+ if (typeof e == "function")
313
+ return ce(e, Ue(e));
314
+ if (typeof e == "string")
315
+ return Y(e);
316
+ switch (e) {
317
+ case O:
318
+ return Y("Suspense");
319
+ case h:
320
+ return Y("SuspenseList");
321
+ }
322
+ if (typeof e == "object")
323
+ switch (e.$$typeof) {
324
+ case v:
325
+ return Ve(e.render);
326
+ case _:
327
+ return L(e.type, t, n);
328
+ case w: {
329
+ var o = e, u = o._payload, s = o._init;
330
+ try {
331
+ return L(s(u), t, n);
332
+ } catch {
333
+ }
334
+ }
335
+ }
336
+ return "";
337
+ }
338
+ var D = Object.prototype.hasOwnProperty, fe = {}, de = x.ReactDebugCurrentFrame;
339
+ function V(e) {
340
+ if (e) {
341
+ var t = e._owner, n = L(e.type, e._source, t ? t.type : null);
342
+ de.setExtraStackFrame(n);
343
+ } else
344
+ de.setExtraStackFrame(null);
345
+ }
346
+ function Ne(e, t, n, o, u) {
347
+ {
348
+ var s = Function.call.bind(D);
349
+ for (var i in e)
350
+ if (s(e, i)) {
351
+ var a = void 0;
352
+ try {
353
+ if (typeof e[i] != "function") {
354
+ var g = Error((o || "React class") + ": " + n + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
355
+ throw g.name = "Invariant Violation", g;
356
+ }
357
+ a = e[i](t, i, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
358
+ } catch (c) {
359
+ a = c;
360
+ }
361
+ a && !(a instanceof Error) && (V(u), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", n, i, typeof a), V(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, V(u), p("Failed %s type: %s", n, a.message), V(null));
362
+ }
363
+ }
364
+ }
365
+ var Je = Array.isArray;
366
+ function K(e) {
367
+ return Je(e);
368
+ }
369
+ function qe(e) {
370
+ {
371
+ var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
372
+ return n;
373
+ }
374
+ }
375
+ function ze(e) {
376
+ try {
377
+ return ve(e), !1;
378
+ } catch {
379
+ return !0;
380
+ }
381
+ }
382
+ function ve(e) {
383
+ return "" + e;
384
+ }
385
+ function pe(e) {
386
+ if (ze(e))
387
+ return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), ve(e);
388
+ }
389
+ var ge = x.ReactCurrentOwner, Ke = {
390
+ key: !0,
391
+ ref: !0,
392
+ __self: !0,
393
+ __source: !0
394
+ }, be, he;
395
+ function Ge(e) {
396
+ if (D.call(e, "ref")) {
397
+ var t = Object.getOwnPropertyDescriptor(e, "ref").get;
398
+ if (t && t.isReactWarning)
399
+ return !1;
400
+ }
401
+ return e.ref !== void 0;
402
+ }
403
+ function Xe(e) {
404
+ if (D.call(e, "key")) {
405
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
406
+ if (t && t.isReactWarning)
407
+ return !1;
408
+ }
409
+ return e.key !== void 0;
410
+ }
411
+ function He(e, t) {
412
+ typeof e.ref == "string" && ge.current;
413
+ }
414
+ function Ze(e, t) {
415
+ {
416
+ var n = function() {
417
+ be || (be = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
418
+ };
419
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
420
+ get: n,
421
+ configurable: !0
422
+ });
423
+ }
424
+ }
425
+ function Qe(e, t) {
426
+ {
427
+ var n = function() {
428
+ he || (he = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
429
+ };
430
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
431
+ get: n,
432
+ configurable: !0
433
+ });
434
+ }
435
+ }
436
+ var er = function(e, t, n, o, u, s, i) {
437
+ var a = {
438
+ // This tag allows us to uniquely identify this as a React Element
439
+ $$typeof: d,
440
+ // Built-in properties that belong on the element
441
+ type: e,
442
+ key: t,
443
+ ref: n,
444
+ props: i,
445
+ // Record the component responsible for creating this element.
446
+ _owner: s
447
+ };
448
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
449
+ configurable: !1,
450
+ enumerable: !1,
451
+ writable: !0,
452
+ value: !1
453
+ }), Object.defineProperty(a, "_self", {
454
+ configurable: !1,
455
+ enumerable: !1,
456
+ writable: !1,
457
+ value: o
458
+ }), Object.defineProperty(a, "_source", {
459
+ configurable: !1,
460
+ enumerable: !1,
461
+ writable: !1,
462
+ value: u
463
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
464
+ };
465
+ function rr(e, t, n, o, u) {
466
+ {
467
+ var s, i = {}, a = null, g = null;
468
+ n !== void 0 && (pe(n), a = "" + n), Xe(t) && (pe(t.key), a = "" + t.key), Ge(t) && (g = t.ref, He(t, u));
469
+ for (s in t)
470
+ D.call(t, s) && !Ke.hasOwnProperty(s) && (i[s] = t[s]);
471
+ if (e && e.defaultProps) {
472
+ var c = e.defaultProps;
473
+ for (s in c)
474
+ i[s] === void 0 && (i[s] = c[s]);
475
+ }
476
+ if (a || g) {
477
+ var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
478
+ a && Ze(i, f), g && Qe(i, f);
479
+ }
480
+ return er(e, a, g, u, o, ge.current, i);
481
+ }
482
+ }
483
+ var G = x.ReactCurrentOwner, ye = x.ReactDebugCurrentFrame;
484
+ function P(e) {
485
+ if (e) {
486
+ var t = e._owner, n = L(e.type, e._source, t ? t.type : null);
487
+ ye.setExtraStackFrame(n);
488
+ } else
489
+ ye.setExtraStackFrame(null);
490
+ }
491
+ var X;
492
+ X = !1;
493
+ function H(e) {
494
+ return typeof e == "object" && e !== null && e.$$typeof === d;
495
+ }
496
+ function me() {
497
+ {
498
+ if (G.current) {
499
+ var e = R(G.current.type);
500
+ if (e)
501
+ return `
502
+
503
+ Check the render method of \`` + e + "`.";
504
+ }
505
+ return "";
506
+ }
507
+ }
508
+ function tr(e) {
509
+ return "";
510
+ }
511
+ var Ee = {};
512
+ function nr(e) {
513
+ {
514
+ var t = me();
515
+ if (!t) {
516
+ var n = typeof e == "string" ? e : e.displayName || e.name;
517
+ n && (t = `
518
+
519
+ Check the top-level render call using <` + n + ">.");
520
+ }
521
+ return t;
522
+ }
523
+ }
524
+ function _e(e, t) {
525
+ {
526
+ if (!e._store || e._store.validated || e.key != null)
527
+ return;
528
+ e._store.validated = !0;
529
+ var n = nr(t);
530
+ if (Ee[n])
531
+ return;
532
+ Ee[n] = !0;
533
+ var o = "";
534
+ e && e._owner && e._owner !== G.current && (o = " It was passed a child from " + R(e._owner.type) + "."), P(e), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), P(null);
535
+ }
536
+ }
537
+ function Re(e, t) {
538
+ {
539
+ if (typeof e != "object")
540
+ return;
541
+ if (K(e))
542
+ for (var n = 0; n < e.length; n++) {
543
+ var o = e[n];
544
+ H(o) && _e(o, t);
545
+ }
546
+ else if (H(e))
547
+ e._store && (e._store.validated = !0);
548
+ else if (e) {
549
+ var u = Pe(e);
550
+ if (typeof u == "function" && u !== e.entries)
551
+ for (var s = u.call(e), i; !(i = s.next()).done; )
552
+ H(i.value) && _e(i.value, t);
553
+ }
554
+ }
555
+ }
556
+ function or(e) {
557
+ {
558
+ var t = e.type;
559
+ if (t == null || typeof t == "string")
560
+ return;
561
+ var n;
562
+ if (typeof t == "function")
563
+ n = t.propTypes;
564
+ else if (typeof t == "object" && (t.$$typeof === v || // Note: Memo only checks outer props here.
565
+ // Inner props are checked in the reconciler.
566
+ t.$$typeof === _))
567
+ n = t.propTypes;
568
+ else
569
+ return;
570
+ if (n) {
571
+ var o = R(t);
572
+ Ne(n, e.props, "prop", o, e);
573
+ } else if (t.PropTypes !== void 0 && !X) {
574
+ X = !0;
575
+ var u = R(t);
576
+ p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
577
+ }
578
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
579
+ }
580
+ }
581
+ function ar(e) {
582
+ {
583
+ for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
584
+ var o = t[n];
585
+ if (o !== "children" && o !== "key") {
586
+ P(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), P(null);
587
+ break;
588
+ }
589
+ }
590
+ e.ref !== null && (P(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
591
+ }
592
+ }
593
+ var $e = {};
594
+ function Ce(e, t, n, o, u, s) {
595
+ {
596
+ var i = Ie(e);
597
+ if (!i) {
598
+ var a = "";
599
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
600
+ var g = tr();
601
+ g ? a += g : a += me();
602
+ var c;
603
+ e === null ? c = "null" : K(e) ? c = "array" : e !== void 0 && e.$$typeof === d ? (c = "<" + (R(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, a);
604
+ }
605
+ var f = rr(e, t, n, u, s);
606
+ if (f == null)
607
+ return f;
608
+ if (i) {
609
+ var m = t.children;
610
+ if (m !== void 0)
611
+ if (o)
612
+ if (K(m)) {
613
+ for (var S = 0; S < m.length; S++)
614
+ Re(m[S], e);
615
+ Object.freeze && Object.freeze(m);
616
+ } else
617
+ p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
+ else
619
+ Re(m, e);
620
+ }
621
+ if (D.call(t, "key")) {
622
+ var T = R(e), b = Object.keys(t).filter(function(fr) {
623
+ return fr !== "key";
624
+ }), Z = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
625
+ if (!$e[T + Z]) {
626
+ var cr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
627
+ p(`A props object containing a "key" prop is being spread into JSX:
628
+ let props = %s;
629
+ <%s {...props} />
630
+ React keys must be passed directly to JSX without using spread:
631
+ let props = %s;
632
+ <%s key={someKey} {...props} />`, Z, T, cr, T), $e[T + Z] = !0;
633
+ }
634
+ }
635
+ return e === y ? ar(f) : or(f), f;
636
+ }
637
+ }
638
+ function ir(e, t, n) {
639
+ return Ce(e, t, n, !0);
640
+ }
641
+ function lr(e, t, n) {
642
+ return Ce(e, t, n, !1);
643
+ }
644
+ var ur = lr, sr = ir;
645
+ B.Fragment = y, B.jsx = ur, B.jsxs = sr;
646
+ }()), B;
647
+ }
648
+ var Te;
649
+ function br() {
650
+ return Te || (Te = 1, process.env.NODE_ENV === "production" ? U.exports = pr() : U.exports = gr()), U.exports;
651
+ }
652
+ br();
653
+ const l = {
654
+ white: "#FFFFFF",
655
+ black: "#222222",
656
+ gray50: "#FBFBFB",
657
+ gray100: "#F7F8F9",
658
+ gray200: "#EBEDF2",
659
+ gray300: "#DADEE5",
660
+ gray400: "#C6CBD3",
661
+ gray500: "#BABFC9",
662
+ gray600: "#A3A8B4",
663
+ gray700: "#8A8F9D",
664
+ gray800: "#6D717D",
665
+ gray900: "#4A515D",
666
+ blue100: "#F1F5FE",
667
+ blue200: "#CEDBFF",
668
+ blue300: "#A7BFFF",
669
+ blue400: "#7EA1FF",
670
+ blue500: "#5884FF",
671
+ blue600: "#3369FF",
672
+ blue700: "#2B59D9",
673
+ blue800: "#244BB5",
674
+ blue900: "#1D3C91",
675
+ red50: "#FFF1EF",
676
+ red100: "#FFACAD",
677
+ red200: "#FF8182",
678
+ red300: "#FA4549",
679
+ red400: "#CF222E",
680
+ red500: "#82071E",
681
+ orange50: "#FFF1E5",
682
+ orange100: "#FFD0AA",
683
+ orange200: "#FFB37D",
684
+ orange300: "#FF8E40",
685
+ orange400: "#E16F24",
686
+ orange500: "#953800",
687
+ green50: "#EFFDEE",
688
+ green100: "#8AE3A1",
689
+ green200: "#4DD470",
690
+ green300: "#1CB854",
691
+ green400: "#149E53",
692
+ green500: "#086A49",
693
+ yellow50: "#FEF9E6",
694
+ yellow100: "#FADD78",
695
+ yellow200: "#F7CC33",
696
+ yellow300: "#F7B200",
697
+ yellow400: "#CB9D26",
698
+ yellow500: "#956B00"
699
+ };
700
+ l.blue600, l.blue700, l.white, l.blue200, l.green300, l.green400, l.white, l.green50, l.red300, l.red400, l.white, l.red50, l.orange300, l.orange400, l.white, l.orange50, l.yellow300, l.yellow400, l.white, l.yellow50, l.gray900, l.black, l.black, l.gray300;
701
+ N.button`
702
+ display: flex;
703
+ align-items: center;
704
+ justify-content: center;
705
+ transition: 0.1s linear;
706
+ transition-property: background-color, border-color;
707
+ cursor: pointer;
708
+ width: ${({ $width: r }) => r};
709
+
710
+ color: ${l.white};
711
+ font-size: ${({ $fontSize: r }) => r}rem;
712
+ font-weight: ${({ $fontWeights: r }) => r[0]};
713
+ border-radius: ${({ $borderRadius: r }) => r}rem;
714
+ padding-right: ${({ $pr: r }) => r}rem;
715
+ padding-left: ${({ $pl: r }) => r}rem;
716
+ height: ${({ $height: r }) => r}px;
717
+ background-color: ${({ $mainColor: r }) => r};
718
+
719
+ &:hover:not([disabled]) {
720
+ background-color: ${({ $hoverColor: r }) => r};
721
+ font-weight: ${({ $fontWeights: r }) => r[1]};
722
+ }
723
+
724
+ &:disabled {
725
+ background-color: ${({ $disabledColor: r }) => r};
726
+ }
727
+ `;
728
+ N.button`
729
+ display: flex;
730
+ align-items: center;
731
+ justify-content: center;
732
+ transition: 0.1s linear;
733
+ transition-property: border-color, color, background-color;
734
+ cursor: pointer;
735
+ width: ${({ $width: r }) => r};
736
+
737
+ background-color: ${({ $isSelected: r, $mainColor: d }) => r ? d : l.white};
738
+ color: ${({ $mainColor: r, $isSelected: d }) => d ? l.white : r};
739
+
740
+ border: 1px solid ${({ $mainColor: r }) => r};
741
+ font-size: ${({ $fontSize: r }) => r}rem;
742
+ font-weight: ${({ $fontWeights: r }) => r[0]};
743
+ border-radius: ${({ $borderRadius: r }) => r}rem;
744
+ padding-right: ${({ $pr: r }) => r}rem;
745
+ padding-left: ${({ $pl: r }) => r}rem;
746
+ height: ${({ $height: r }) => r}px;
747
+
748
+ &:hover:not([disabled]) {
749
+ color: ${({ $hoverColor: r }) => r};
750
+ border: 1px solid ${({ $hoverColor: r }) => r};
751
+ font-weight: ${({ $fontWeights: r }) => r[1]};
752
+ background-color: ${l.white};
753
+ }
754
+
755
+ &:disabled {
756
+ color: ${({ $disabledColor: r }) => r};
757
+ border: 1px solid ${({ $disabledColor: r }) => r};
758
+ }
759
+ `;
760
+ N.button`
761
+ display: flex;
762
+ align-items: center;
763
+ justify-content: center;
764
+ transition: 0.1s linear;
765
+ transition-property: border-color, color;
766
+ cursor: pointer;
767
+ width: ${({ $width: r }) => r};
768
+
769
+ background-color: ${l.white};
770
+ color: ${({ $mainColor: r }) => r};
771
+ border: 1px solid ${l.gray400};
772
+ font-size: ${({ $fontSize: r }) => r}rem;
773
+ font-weight: ${({ $fontWeights: r }) => r[0]};
774
+ border-radius: ${({ $borderRadius: r }) => r}rem;
775
+ padding-right: ${({ $pr: r }) => r}rem;
776
+ padding-left: ${({ $pl: r }) => r}rem;
777
+ height: ${({ $height: r }) => r}px;
778
+
779
+ &:hover:not([disabled]) {
780
+ color: ${({ $hoverColor: r }) => r};
781
+ border: 1px solid ${l.gray600};
782
+ font-weight: ${({ $fontWeights: r }) => r[1]};
783
+ }
784
+
785
+ &:disabled {
786
+ color: ${({ $disabledColor: r }) => r};
787
+ border: 1px solid ${l.gray300};
788
+ }
789
+ `;
790
+ N.button`
791
+ display: flex;
792
+ align-items: center;
793
+ justify-content: center;
794
+ transition: 0.1s linear;
795
+ transition-property: border-color, color;
796
+ cursor: pointer;
797
+ width: ${({ $width: r }) => r};
798
+
799
+ background-color: ${l.white};
800
+ color: ${({ $mainColor: r, $isSelected: d }) => d ? l.black : r};
801
+ border: none;
802
+ font-size: ${({ $fontSize: r }) => r}rem;
803
+ font-weight: ${({ $fontWeights: r }) => r[0]};
804
+ border-radius: ${({ $borderRadius: r }) => r}rem;
805
+ padding-right: ${({ $pr: r }) => r}rem;
806
+ padding-left: ${({ $pl: r }) => r}rem;
807
+ height: ${({ $height: r }) => r}px;
808
+
809
+ &:hover:not([disabled]) {
810
+ color: ${({ $hoverColor: r }) => r};
811
+ font-weight: ${({ $fontWeights: r }) => r[1]};
812
+ }
813
+
814
+ &:disabled {
815
+ color: ${({ $disabledColor: r }) => r};
816
+ }
817
+ `;
818
+ export {
819
+ l as themeColors
820
+ };
@@ -0,0 +1,48 @@
1
+ export declare const themeColors: ThemeColors;
2
+ export interface ThemeColors {
3
+ white: string;
4
+ black: string;
5
+ gray50: string;
6
+ gray100: string;
7
+ gray200: string;
8
+ gray300: string;
9
+ gray400: string;
10
+ gray500: string;
11
+ gray600: string;
12
+ gray700: string;
13
+ gray800: string;
14
+ gray900: string;
15
+ blue100: string;
16
+ blue200: string;
17
+ blue300: string;
18
+ blue400: string;
19
+ blue500: string;
20
+ blue600: string;
21
+ blue700: string;
22
+ blue800: string;
23
+ blue900: string;
24
+ red50: string;
25
+ red100: string;
26
+ red200: string;
27
+ red300: string;
28
+ red400: string;
29
+ red500: string;
30
+ orange50: string;
31
+ orange100: string;
32
+ orange200: string;
33
+ orange300: string;
34
+ orange400: string;
35
+ orange500: string;
36
+ green50: string;
37
+ green100: string;
38
+ green200: string;
39
+ green300: string;
40
+ green400: string;
41
+ green500: string;
42
+ yellow50: string;
43
+ yellow100: string;
44
+ yellow200: string;
45
+ yellow300: string;
46
+ yellow400: string;
47
+ yellow500: string;
48
+ }
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "enerdot-front-system",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "keywords": [
7
+ "enerdot-front-system",
8
+ "enerdot",
9
+ "react",
10
+ "design-system"
11
+ ],
12
+ "main": "dist/index.cjs.js",
13
+ "types": "dist/index.d.ts",
14
+ "module": "dist/index.es.js",
15
+ "description": "enerdot frontend system",
16
+ "license": "ISC",
17
+ "files": [
18
+ "dist/**/*",
19
+ "!dist/vite.config.d.ts",
20
+ "!dist/logo.svg"
21
+ ],
22
+ "scripts": {
23
+ "dev": "vite",
24
+ "build": "tsc -b && vite build",
25
+ "lint": "eslint .",
26
+ "preview": "vite preview"
27
+ },
28
+ "peerDependencies": {
29
+ "react": "^18.3.1",
30
+ "react-dom": "^18.3.1",
31
+ "styled-components": "^6.1.14"
32
+ },
33
+ "dependencies": {
34
+ "react": "^18.3.1",
35
+ "react-dom": "^18.3.1",
36
+ "styled-components": "^6.1.14"
37
+ },
38
+ "devDependencies": {
39
+ "@eslint/js": "^9.17.0",
40
+ "@types/node": "^22.10.5",
41
+ "@types/react": "^18.3.18",
42
+ "@types/react-dom": "^18.3.5",
43
+ "@vitejs/plugin-react": "^4.3.4",
44
+ "eslint": "^9.17.0",
45
+ "eslint-plugin-react-hooks": "^5.0.0",
46
+ "eslint-plugin-react-refresh": "^0.4.16",
47
+ "eslint-plugin-simple-import-sort": "^12.1.1",
48
+ "eslint-plugin-unused-imports": "^4.1.4",
49
+ "globals": "^15.14.0",
50
+ "path": "^0.12.7",
51
+ "typescript": "~5.6.2",
52
+ "typescript-eslint": "^8.18.2",
53
+ "url": "^0.11.4",
54
+ "vite": "^6.0.5",
55
+ "vite-plugin-dts": "^4.4.0"
56
+ }
57
+ }