enerdot-front-system 0.1.0-beta.3 → 0.1.0-beta.4

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.
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
- import { ChipColorTheme } from './theme';
3
2
  import { Theme } from '../../types/theme';
3
+ import { ChipColorTheme } from './theme';
4
4
  export interface ChipProps extends Theme, React.HTMLAttributes<HTMLDivElement> {
5
5
  colorTheme?: keyof ChipColorTheme;
6
6
  level?: "small" | "regular" | "large" | "x-large";
@@ -2,7 +2,7 @@ type ColorObject = {
2
2
  bgColor: string;
3
3
  textColor: string;
4
4
  };
5
- type ChipBaseColor = "yellow" | "orange" | "red" | "green" | "primary" | "gray" | "cyan";
5
+ type ChipBaseColor = "yellow" | "orange" | "red" | "green" | "primary" | "gray" | "cyan" | "violet";
6
6
  export type ChipColorTheme = {
7
7
  [key in ChipBaseColor]: ColorObject;
8
8
  };
@@ -1,4 +1,4 @@
1
- import { Theme } from '../../../../../../../../../../src/lib/types/theme';
1
+ import { Theme } from '../../../../../../../../../../../src/lib/types/theme';
2
2
  interface InputButtonProps extends Theme {
3
3
  level: "small" | "medium" | "large";
4
4
  dateType: "day" | "week" | "month" | "quarter" | "year";
@@ -1,14 +1,31 @@
1
1
  import { default as moment } from 'moment';
2
- import { Theme } from '../../../../../../../../../src/lib/types/theme';
2
+ import { Theme } from '../../../../../../../../../../src/lib/types/theme';
3
3
  export interface DatePickerProps extends Theme {
4
+ /** * @deprecated 'date' 속성은 더 이상 사용되지 않습니다.
5
+ * v0.1.0부터 date => value로 변경됩니다.
6
+ */
4
7
  date?: moment.Moment;
8
+ /** * @deprecated 'minDate' 속성은 더 이상 사용되지 않습니다.
9
+ * minDate => minValue 변경됩니다.
10
+ */
11
+ minDate?: moment.Moment;
12
+ /** * @deprecated 'maxDate' 속성은 더 이상 사용되지 않습니다.
13
+ * maxDate => maxValue 변경됩니다.
14
+ */
15
+ maxDate?: moment.Moment;
16
+ value?: string;
17
+ minValue?: string;
18
+ maxValue?: string;
5
19
  onChange: (e: {
20
+ /** * @deprecated 'date' 속성은 더 이상 사용되지 않습니다.
21
+ * date => value로 변경됩니다.
22
+ */
6
23
  date: moment.Moment;
24
+ value: string;
7
25
  name?: string;
8
26
  }) => void;
27
+ gap?: number;
9
28
  dateType?: "day" | "week" | "month" | "quarter" | "year";
10
- minDate?: moment.Moment;
11
- maxDate?: moment.Moment;
12
29
  disabled?: boolean;
13
30
  name?: string;
14
31
  width?: "auto" | `${number}px` | "100%";
@@ -19,5 +36,5 @@ export interface DatePickerProps extends Theme {
19
36
  isError?: boolean;
20
37
  isIcon?: boolean;
21
38
  }
22
- export declare const DatePicker: ({ date, dateType, maxDate, minDate, onChange, disabled, name, format, level, buttonType, width, isCancelable, isError, isIcon, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
39
+ export declare const DatePicker: ({ date, value, dateType, maxDate, minDate, minValue, maxValue, onChange, disabled, name, format, level, buttonType, width, isCancelable, isError, isIcon, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
23
40
  export default DatePicker;
@@ -1,13 +1,29 @@
1
1
  import { default as moment } from 'moment';
2
2
  export interface DateRangePickerProps {
3
- dates: [moment.Moment, moment.Moment];
3
+ /** * @deprecated 'dates' 속성은 더 이상 사용되지 않습니다.
4
+ * v0.1.0부터 dates => value로 변경됩니다.
5
+ */
6
+ dates?: [moment.Moment | undefined, moment.Moment | undefined];
7
+ /** * @deprecated 'minDate' 속성은 더 이상 사용되지 않습니다.
8
+ * minDate => minValue 변경됩니다.
9
+ */
10
+ minDate?: moment.Moment;
11
+ /** * @deprecated 'maxDate' 속성은 더 이상 사용되지 않습니다.
12
+ * maxDate => maxValue 변경됩니다.
13
+ */
14
+ maxDate?: moment.Moment;
4
15
  onChange: (e: {
5
- dates: [moment.Moment, moment.Moment];
16
+ /** * @deprecated 'dates' 속성은 더 이상 사용되지 않습니다.
17
+ * dates => value로 변경됩니다.
18
+ */
19
+ dates?: [moment.Moment, moment.Moment];
20
+ value?: [string, string];
6
21
  name?: string;
7
22
  }) => void;
23
+ value?: [string, string];
24
+ minValue?: string;
25
+ maxValue?: string;
8
26
  dateType?: "day" | "month" | "year";
9
- minDate?: moment.Moment;
10
- maxDate?: moment.Moment;
11
27
  disabled?: boolean;
12
28
  name?: string;
13
29
  width?: "auto" | `${number}px` | "100%";
@@ -19,5 +35,5 @@ export interface DateRangePickerProps {
19
35
  isError?: boolean;
20
36
  isIcon?: boolean;
21
37
  }
22
- export declare const DateRangePicker: ({ dates, dateType, maxDate, minDate, onChange, disabled, name, format, level, width, maxRange, isCancelable, isError, isIcon, }: DateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
38
+ export declare const DateRangePicker: ({ dates, value, maxValue, minValue, dateType, maxDate, minDate, onChange, disabled, name, format, level, width, maxRange, isCancelable, isError, isIcon, }: DateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
23
39
  export default DateRangePicker;
@@ -1,17 +1,17 @@
1
1
  export declare const hyphenFormat: {
2
- second: string;
3
- minute: string;
4
- hour: string;
5
- day: string;
6
- month: string;
7
- year: string;
2
+ readonly second: "YYYY-MM-DD HH:mm:ss";
3
+ readonly minute: "YYYY-MM-DD HH:mm";
4
+ readonly hour: "YYYY-MM-DD HH";
5
+ readonly day: "YYYY-MM-DD";
6
+ readonly month: "YYYY-MM";
7
+ readonly year: "YYYY";
8
8
  };
9
9
  export declare const dotFormat: {
10
- second: string;
11
- minute: string;
12
- hour: string;
13
- day: string;
14
- month: string;
15
- year: string;
10
+ readonly second: "YYYY.MM.DD HH:mm:ss";
11
+ readonly minute: "YYYY.MM.DD HH:mm";
12
+ readonly hour: "YYYY.MM.DD HH";
13
+ readonly day: "YYYY.MM.DD";
14
+ readonly month: "YYYY.MM";
15
+ readonly year: "YYYY";
16
16
  };
17
- export declare const WEEKS: string[];
17
+ export declare const WEEKS: readonly ["일", "월", "화", "수", "목", "금", "토"];
@@ -47,6 +47,18 @@ export interface ThemeColors {
47
47
  yellow300: string;
48
48
  yellow400: string;
49
49
  yellow500: string;
50
+ violet50: string;
51
+ violet100: string;
52
+ violet200: string;
53
+ violet300: string;
54
+ violet400: string;
55
+ violet500: string;
56
+ cyan50: string;
57
+ cyan100: string;
58
+ cyan200: string;
59
+ cyan300: string;
60
+ cyan400: string;
61
+ cyan500: string;
50
62
  dark_gray50: string;
51
63
  dark_gray100: string;
52
64
  dark_gray200: string;
@@ -99,4 +111,10 @@ export interface ThemeColors {
99
111
  dark_orange300: string;
100
112
  dark_orange400: string;
101
113
  dark_orange500: string;
114
+ dark_violet50: string;
115
+ dark_violet100: string;
116
+ dark_violet200: string;
117
+ dark_violet300: string;
118
+ dark_violet400: string;
119
+ dark_violet500: string;
102
120
  }
@@ -1,10 +1,10 @@
1
1
  import { default as moment } from 'moment';
2
2
  export declare const dateParentsFormats: {
3
- day: string;
4
- week: string;
5
- month: string;
6
- quarter: string;
7
- year: string;
3
+ day: "YYYY-MM";
4
+ week: "YYYY-MM";
5
+ month: "YYYY";
6
+ quarter: "YYYY";
7
+ year: "YYYY";
8
8
  };
9
9
  /**선택 월의 주단위 날짜들을 가져오는 유틸 */
10
10
  export declare const generateDatesByWeek: (currentDate: moment.Moment) => moment.Moment[][];
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DrLstUcC.cjs");exports.Chip=e.Chip;exports.Divider=e.Divider;exports.themeColors=e.themeColors;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BeZVnuhe.cjs");exports.Chip=e.Chip;exports.Divider=e.Divider;exports.themeColors=e.themeColors;
package/dist/server.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r, D as s, t as a } from "./index-zhX_NgZ8.js";
1
+ import { C as r, D as s, t as a } from "./index-Cv_IZZpo.js";
2
2
  export {
3
3
  r as Chip,
4
4
  s as Divider,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "enerdot-front-system",
3
3
  "private": false,
4
- "version": "0.1.0-beta.3",
4
+ "version": "0.1.0-beta.4",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "enerdot-front-system",
@@ -26,12 +26,13 @@
26
26
  "scripts": {
27
27
  "dev": "vite",
28
28
  "build": "tsc -b && vite build",
29
+ "build:lib": "tsc -b && vite build --config vite.config.lib.ts",
29
30
  "lint": "eslint .",
30
31
  "preview": "vite preview",
31
32
  "generate:variables": "yarn node --loader ts-node/esm generate-scss.ts",
32
- "prepare": "yarn generate:variables && rm -rf dist && tsc && vite build",
33
- "add:package": "yarn add ./enerdot-front-system-v0.1.0-beta.3.tgz",
34
- "reset:package": "yarn remove enerdot-front-system && yarn cache clean && rm -rf ./enerdot-front-system-v0.1.0-beta.3.tgz"
33
+ "prepare": "yarn generate:variables && rm -rf dist && tsc && vite build --config vite.config.lib.ts",
34
+ "add:package": "yarn add ./enerdot-front-system-v0.1.0-beta.4.tgz",
35
+ "reset:package": "yarn remove enerdot-front-system && yarn cache clean && rm -rf ./enerdot-front-system-v0.1.0-beta.4.tgz"
35
36
  },
36
37
  "exports": {
37
38
  ".": {
@@ -1,5 +1,5 @@
1
1
  // THIS FILE IS AUTO-GENERATED BY generate-scss.ts
2
- // Generated at: 2026-01-21 14:25:45
2
+ // Generated at: 2026-01-27 16:20:38
3
3
  // 수정하지 말것( 수정은 lib>theme>color.style.ts>themeColors에서
4
4
 
5
5
  $white: #FFFFFF;
@@ -49,6 +49,18 @@ $yellow200: #F7CC33;
49
49
  $yellow300: #F7B200;
50
50
  $yellow400: #CB9D26;
51
51
  $yellow500: #956B00;
52
+ $violet50: #F5F0FA;
53
+ $violet100: #E9D5FF;
54
+ $violet200: #C084FC;
55
+ $violet300: #8624E1;
56
+ $violet400: #6B1DB8;
57
+ $violet500: #4C1D95;
58
+ $cyan50: #ECFEFF;
59
+ $cyan100: #CFFAFE;
60
+ $cyan200: #A5F3FC;
61
+ $cyan300: #67E8F9;
62
+ $cyan400: #22D3EE;
63
+ $cyan500: #06B6D4;
52
64
  $dark_gray50: #F7F8FA;
53
65
  $dark_gray100: #E4E8EF;
54
66
  $dark_gray200: #C7D0DE;
@@ -101,6 +113,12 @@ $dark_orange200: #FFBC4D;
101
113
  $dark_orange300: #FDA00E;
102
114
  $dark_orange400: #A66817;
103
115
  $dark_orange500: #522603;
116
+ $dark_violet50: #F3E8FF;
117
+ $dark_violet100: #DDC4FF;
118
+ $dark_violet200: #B794F6;
119
+ $dark_violet300: #9333EA;
120
+ $dark_violet400: #7C3AED;
121
+ $dark_violet500: #6D28D9;
104
122
 
105
123
  // Non-color variables
106
124
  $background: #f1f4ff;
package/src/theme.scss CHANGED
@@ -57,6 +57,7 @@
57
57
  --color-palette-orange: #{vars.$dark_orange200};
58
58
  --color-palette-yellow: #{vars.$dark_yellow100};
59
59
  --color-palette-gray: #{rgba(vars.$dark_gray200, 0.88)};
60
+ --color-palette-violet: #{vars.$dark_violet300};
60
61
  --color-palette-background-gray: #{rgba(vars.$dark_gray500, 0.28)};
61
62
 
62
63
  //legacy - 피그마 업뎃 없이 임의로 추가한 항목
@@ -102,12 +103,13 @@
102
103
 
103
104
  //palette
104
105
  --color-palette-blue: #{vars.$blue600};
105
- --color-palette-cyan: #{vars.$dark_cyan300};
106
+ --color-palette-cyan: #{vars.$cyan300};
106
107
  --color-palette-red: #{vars.$red300};
107
108
  --color-palette-green: #{vars.$green300};
108
109
  --color-palette-orange: #{vars.$orange300};
109
110
  --color-palette-yellow: #{vars.$yellow300};
110
111
  --color-palette-gray: #{vars.$gray300};
112
+ --color-palette-violet: #{vars.$violet300};
111
113
  --color-palette-background-gray: #{vars.$gray700};
112
114
 
113
115
  //legacy
@@ -1,32 +0,0 @@
1
- "use strict";const _e=require("react");function ge(s){const v=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const _ in s)if(_!=="default"){const l=Object.getOwnPropertyDescriptor(s,_);Object.defineProperty(v,_,l.get?l:{enumerable:!0,get:()=>s[_]})}}return v.default=s,Object.freeze(v)}const pe=ge(_e);function ye(s){if(s.__esModule)return s;var v=s.default;if(typeof v=="function"){var _=function l(){return this instanceof l?Reflect.construct(v,arguments,this.constructor):v.apply(this,arguments)};_.prototype=v.prototype}else _={};return Object.defineProperty(_,"__esModule",{value:!0}),Object.keys(s).forEach(function(l){var h=Object.getOwnPropertyDescriptor(s,l);Object.defineProperty(_,l,h.get?h:{enumerable:!0,get:function(){return s[l]}})}),_}var N={exports:{}},B={};const Dr=ye(pe);/**
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 wr;function Ee(){if(wr)return B;wr=1;var s=Dr,v=Symbol.for("react.element"),_=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,h=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,D={key:!0,ref:!0,__self:!0,__source:!0};function F(m,g,R){var f,k={},w=null,I=null;R!==void 0&&(w=""+R),g.key!==void 0&&(w=""+g.key),g.ref!==void 0&&(I=g.ref);for(f in g)l.call(g,f)&&!D.hasOwnProperty(f)&&(k[f]=g[f]);if(m&&m.defaultProps)for(f in g=m.defaultProps,g)k[f]===void 0&&(k[f]=g[f]);return{$$typeof:v,type:m,key:w,ref:I,props:k,_owner:h.current}}return B.Fragment=_,B.jsx=F,B.jsxs=F,B}var $={};/**
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 xr;function be(){return xr||(xr=1,process.env.NODE_ENV!=="production"&&function(){var s=Dr,v=Symbol.for("react.element"),_=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),rr=Symbol.iterator,Ar="@@iterator";function Pr(r){if(r===null||typeof r!="object")return null;var e=rr&&r[rr]||r[Ar];return typeof e=="function"?e:null}var T=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(r){{for(var e=arguments.length,t=new Array(e>1?e-1:0),a=1;a<e;a++)t[a-1]=arguments[a];jr("error",r,t)}}function jr(r,e,t){{var a=T.ReactDebugCurrentFrame,i=a.getStackAddendum();i!==""&&(e+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+e),Function.prototype.apply.call(console[r],console,u)}}var Sr=!1,Br=!1,$r=!1,Ir=!1,Wr=!1,er;er=Symbol.for("react.module.reference");function Yr(r){return!!(typeof r=="string"||typeof r=="function"||r===l||r===D||Wr||r===h||r===R||r===f||Ir||r===I||Sr||Br||$r||typeof r=="object"&&r!==null&&(r.$$typeof===w||r.$$typeof===k||r.$$typeof===F||r.$$typeof===m||r.$$typeof===g||r.$$typeof===er||r.getModuleId!==void 0))}function Lr(r,e,t){var a=r.displayName;if(a)return a;var i=e.displayName||e.name||"";return i!==""?t+"("+i+")":t}function tr(r){return r.displayName||"Context"}function C(r){if(r==null)return null;if(typeof r.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case l:return"Fragment";case _:return"Portal";case D:return"Profiler";case h:return"StrictMode";case R:return"Suspense";case f:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case m:var e=r;return tr(e)+".Consumer";case F:var t=r;return tr(t._context)+".Provider";case g:return Lr(r,r.render,"ForwardRef");case k:var a=r.displayName||null;return a!==null?a:C(r.type)||"Memo";case w:{var i=r,u=i._payload,o=i._init;try{return C(o(u))}catch{return null}}}return null}var x=Object.assign,j=0,ar,nr,or,ir,ur,lr,sr;function cr(){}cr.__reactDisabledLog=!0;function Mr(){{if(j===0){ar=console.log,nr=console.info,or=console.warn,ir=console.error,ur=console.group,lr=console.groupCollapsed,sr=console.groupEnd;var r={configurable:!0,enumerable:!0,value:cr,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}j++}}function Nr(){{if(j--,j===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:x({},r,{value:ar}),info:x({},r,{value:nr}),warn:x({},r,{value:or}),error:x({},r,{value:ir}),group:x({},r,{value:ur}),groupCollapsed:x({},r,{value:lr}),groupEnd:x({},r,{value:sr})})}j<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=T.ReactCurrentDispatcher,J;function W(r,e,t){{if(J===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);J=a&&a[1]||""}return`
18
- `+J+r}}var K=!1,Y;{var Vr=typeof WeakMap=="function"?WeakMap:Map;Y=new Vr}function fr(r,e){if(!r||K)return"";{var t=Y.get(r);if(t!==void 0)return t}var a;K=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,Mr();try{if(e){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(E){a=E}Reflect.construct(r,[],o)}else{try{o.call()}catch(E){a=E}r.call(o.prototype)}}else{try{throw Error()}catch(E){a=E}r()}}catch(E){if(E&&a&&typeof E.stack=="string"){for(var n=E.stack.split(`
19
- `),y=a.stack.split(`
20
- `),c=n.length-1,d=y.length-1;c>=1&&d>=0&&n[c]!==y[d];)d--;for(;c>=1&&d>=0;c--,d--)if(n[c]!==y[d]){if(c!==1||d!==1)do if(c--,d--,d<0||n[c]!==y[d]){var b=`
21
- `+n[c].replace(" at new "," at ");return r.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",r.displayName)),typeof r=="function"&&Y.set(r,b),b}while(c>=1&&d>=0);break}}}finally{K=!1,q.current=u,Nr(),Error.prepareStackTrace=i}var P=r?r.displayName||r.name:"",O=P?W(P):"";return typeof r=="function"&&Y.set(r,O),O}function Ur(r,e,t){return fr(r,!1)}function qr(r){var e=r.prototype;return!!(e&&e.isReactComponent)}function L(r,e,t){if(r==null)return"";if(typeof r=="function")return fr(r,qr(r));if(typeof r=="string")return W(r);switch(r){case R:return W("Suspense");case f:return W("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case g:return Ur(r.render);case k:return L(r.type,e,t);case w:{var a=r,i=a._payload,u=a._init;try{return L(u(i),e,t)}catch{}}}return""}var S=Object.prototype.hasOwnProperty,dr={},vr=T.ReactDebugCurrentFrame;function M(r){if(r){var e=r._owner,t=L(r.type,r._source,e?e.type:null);vr.setExtraStackFrame(t)}else vr.setExtraStackFrame(null)}function Jr(r,e,t,a,i){{var u=Function.call.bind(S);for(var o in r)if(u(r,o)){var n=void 0;try{if(typeof r[o]!="function"){var y=Error((a||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}n=r[o](e,o,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){n=c}n&&!(n instanceof Error)&&(M(i),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).",a||"React class",t,o,typeof n),M(null)),n instanceof Error&&!(n.message in dr)&&(dr[n.message]=!0,M(i),p("Failed %s type: %s",t,n.message),M(null))}}}var Kr=Array.isArray;function G(r){return Kr(r)}function Gr(r){{var e=typeof Symbol=="function"&&Symbol.toStringTag,t=e&&r[Symbol.toStringTag]||r.constructor.name||"Object";return t}}function zr(r){try{return _r(r),!1}catch{return!0}}function _r(r){return""+r}function gr(r){if(zr(r))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Gr(r)),_r(r)}var pr=T.ReactCurrentOwner,Xr={key:!0,ref:!0,__self:!0,__source:!0},yr,Er;function Hr(r){if(S.call(r,"ref")){var e=Object.getOwnPropertyDescriptor(r,"ref").get;if(e&&e.isReactWarning)return!1}return r.ref!==void 0}function Zr(r){if(S.call(r,"key")){var e=Object.getOwnPropertyDescriptor(r,"key").get;if(e&&e.isReactWarning)return!1}return r.key!==void 0}function Qr(r,e){typeof r.ref=="string"&&pr.current}function re(r,e){{var t=function(){yr||(yr=!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)",e))};t.isReactWarning=!0,Object.defineProperty(r,"key",{get:t,configurable:!0})}}function ee(r,e){{var t=function(){Er||(Er=!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)",e))};t.isReactWarning=!0,Object.defineProperty(r,"ref",{get:t,configurable:!0})}}var te=function(r,e,t,a,i,u,o){var n={$$typeof:v,type:r,key:e,ref:t,props:o,_owner:u};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function ae(r,e,t,a,i){{var u,o={},n=null,y=null;t!==void 0&&(gr(t),n=""+t),Zr(e)&&(gr(e.key),n=""+e.key),Hr(e)&&(y=e.ref,Qr(e,i));for(u in e)S.call(e,u)&&!Xr.hasOwnProperty(u)&&(o[u]=e[u]);if(r&&r.defaultProps){var c=r.defaultProps;for(u in c)o[u]===void 0&&(o[u]=c[u])}if(n||y){var d=typeof r=="function"?r.displayName||r.name||"Unknown":r;n&&re(o,d),y&&ee(o,d)}return te(r,n,y,i,a,pr.current,o)}}var z=T.ReactCurrentOwner,br=T.ReactDebugCurrentFrame;function A(r){if(r){var e=r._owner,t=L(r.type,r._source,e?e.type:null);br.setExtraStackFrame(t)}else br.setExtraStackFrame(null)}var X;X=!1;function H(r){return typeof r=="object"&&r!==null&&r.$$typeof===v}function Fr(){{if(z.current){var r=C(z.current.type);if(r)return`
22
-
23
- Check the render method of \``+r+"`."}return""}}function ne(r){return""}var mr={};function oe(r){{var e=Fr();if(!e){var t=typeof r=="string"?r:r.displayName||r.name;t&&(e=`
24
-
25
- Check the top-level render call using <`+t+">.")}return e}}function hr(r,e){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var t=oe(e);if(mr[t])return;mr[t]=!0;var a="";r&&r._owner&&r._owner!==z.current&&(a=" It was passed a child from "+C(r._owner.type)+"."),A(r),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),A(null)}}function kr(r,e){{if(typeof r!="object")return;if(G(r))for(var t=0;t<r.length;t++){var a=r[t];H(a)&&hr(a,e)}else if(H(r))r._store&&(r._store.validated=!0);else if(r){var i=Pr(r);if(typeof i=="function"&&i!==r.entries)for(var u=i.call(r),o;!(o=u.next()).done;)H(o.value)&&hr(o.value,e)}}}function ie(r){{var e=r.type;if(e==null||typeof e=="string")return;var t;if(typeof e=="function")t=e.propTypes;else if(typeof e=="object"&&(e.$$typeof===g||e.$$typeof===k))t=e.propTypes;else return;if(t){var a=C(e);Jr(t,r.props,"prop",a,r)}else if(e.PropTypes!==void 0&&!X){X=!0;var i=C(e);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof e.getDefaultProps=="function"&&!e.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ue(r){{for(var e=Object.keys(r.props),t=0;t<e.length;t++){var a=e[t];if(a!=="children"&&a!=="key"){A(r),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),A(null);break}}r.ref!==null&&(A(r),p("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Rr={};function Cr(r,e,t,a,i,u){{var o=Yr(r);if(!o){var n="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(n+=" 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 y=ne();y?n+=y:n+=Fr();var c;r===null?c="null":G(r)?c="array":r!==void 0&&r.$$typeof===v?(c="<"+(C(r.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):c=typeof r,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,n)}var d=ae(r,e,t,i,u);if(d==null)return d;if(o){var b=e.children;if(b!==void 0)if(a)if(G(b)){for(var P=0;P<b.length;P++)kr(b[P],r);Object.freeze&&Object.freeze(b)}else 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.");else kr(b,r)}if(S.call(e,"key")){var O=C(r),E=Object.keys(e).filter(function(ve){return ve!=="key"}),Z=E.length>0?"{key: someKey, "+E.join(": ..., ")+": ...}":"{key: someKey}";if(!Rr[O+Z]){var de=E.length>0?"{"+E.join(": ..., ")+": ...}":"{}";p(`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,de,O),Rr[O+Z]=!0}}return r===l?ue(d):ie(d),d}}function le(r,e,t){return Cr(r,e,t,!0)}function se(r,e,t){return Cr(r,e,t,!1)}var ce=se,fe=le;$.Fragment=l,$.jsx=ce,$.jsxs=fe}()),$}var Or;function Fe(){return Or||(Or=1,process.env.NODE_ENV==="production"?N.exports=Ee():N.exports=be()),N.exports}var U=Fe();const Tr={white:"#FFFFFF",black:"#222222",dark_black:"#030A18",gray50:"#FBFBFB",gray100:"#F7F8F9",gray200:"#EBEDF2",gray300:"#DADEE5",gray400:"#C6CBD3",gray500:"#BABFC9",gray600:"#A3A8B4",gray700:"#8A8F9D",gray800:"#6D717D",gray900:"#4A515D",blue100:"#F1F5FE",blue150:"#E4EBFF",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",dark_gray50:"#F7F8FA",dark_gray100:"#E4E8EF",dark_gray200:"#C7D0DE",dark_gray250:"#C7D0DE",dark_gray300:"#7E8EA2",dark_gray400:"#5C6B80",dark_gray500:"#4F5E72",dark_gray600:"#334050",dark_gray700:"#2F3A4F",dark_gray750:"#212B3E",dark_gray800:"#1C2736",dark_gray850:"#141F2D",dark_gray900:"#0B111D",dark_blue100:"#EEF8FF",dark_blue200:"#C2E8FF",dark_blue300:"#8ED3FF",dark_blue400:"#61C2FF",dark_blue500:"#2DAEFF",dark_blue600:"#1B8CE3",dark_blue700:"#2356A3",dark_blue800:"#193C70",dark_blue900:"#132B51",dark_cyan50:"#E2FBFF",dark_cyan100:"#A3F1FF",dark_cyan200:"#7BEBFF",dark_cyan300:"#40E3FF",dark_cyan400:"#1FC0DC",dark_cyan500:"#217C8C",dark_red50:"#FFEBE8",dark_red100:"#FFAAA5",dark_red200:"#FF817A",dark_red300:"#FB453D",dark_red400:"#CA2020",dark_red500:"#791F2D",dark_green50:"#C4F5CF",dark_green100:"#8AEC99",dark_green200:"#65E679",dark_green300:"#34D64B",dark_green400:"#35873D",dark_green500:"#114410",dark_yellow50:"#FFF9B8",dark_yellow100:"#FFE975",dark_yellow200:"#FFE34A",dark_yellow300:"#FFD509",dark_yellow400:"#A58515",dark_yellow500:"#503602",dark_orange50:"#FFEABB",dark_orange100:"#FFCC78",dark_orange200:"#FFBC4D",dark_orange300:"#FDA00E",dark_orange400:"#A66817",dark_orange500:"#522603"},me="_chip_row1a_1",he="_small_row1a_11",ke="_regular_row1a_22",Re="_large_row1a_33",Ce="_x-large_row1a_44",we="_full_row1a_55",xe="_dot_row1a_63",V={chip:me,small:he,regular:ke,large:Re,"x-large":"_x-large_row1a_44",xLarge:Ce,full:we,dot:xe},Oe=({children:s,level:v="regular",borderRadius:_="round",colorTheme:l="primary",isWhiteBg:h=!1,gap:D=4,isDot:F})=>{const m=l==="primary"?"blue":l,g=l==="gray"?"var(--color-palette-background-gray)":`color-mix(in srgb, var(--color-palette-${m}), transparent 84%)`,R=_==="full";let f;switch(v){case"small":f=`0 8px 0 ${F?6:8}px`;break;case"regular":f=`0 8px 0 ${F?6:8}px`;break;case"large":f=`0 10px 0 ${F?8:10}px`;break;case"x-large":f=`0 16px 0 ${F?12:16}px`;break;default:f="4px 8px"}return U.jsxs("div",{className:`${V.chip} ${V[v]}
31
- ${R&&V.full}
32
- `,style:{backgroundColor:h?Tr.white:g,color:`var(--color-palette-${m})`,padding:f,gap:`${D}px`},children:[F&&U.jsx("div",{className:V.dot,style:{backgroundColor:`var(--color-palette-${m})`}}),s]})},De="_divider_6kbwo_1",Te="_row_6kbwo_5",Ae="_column_6kbwo_9",Q={divider:De,row:Te,column:Ae},Pe=({size:s=1,direction:v="row",color:_})=>{const l=v==="row";return U.jsx("div",{className:`${Q.divider} ${l?Q.row:Q.column}`,style:{borderBottom:l&&`${s}px solid ${_||"var(--color-line-normal-muted)"}`,borderRight:!l&&`${s}px solid ${_||"var(--color-line-normal-muted)"}`,width:l&&"100%",height:!l&&"100%"}})};exports.Chip=Oe;exports.Divider=Pe;exports.jsxRuntimeExports=U;exports.themeColors=Tr;