@ramong26/xp-components 1.0.13 → 1.0.15

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 CHANGED
@@ -1,20 +1,20 @@
1
- # @ramong26/xp-components
2
-
3
- React와 TypeScript로 만든 최소한의 UI 컴포넌트 라이브러리입니다.
4
- 현재는 테스트 중입니다.
5
-
6
- ---
7
-
8
- ## 설치
9
-
10
- ```bash
11
- # pnpm 사용
12
- pnpm add @ramong26/xp-components
13
-
14
- # npm 사용
15
- npm install @ramong26/xp-components
16
- ```
17
-
18
- ---
19
-
20
- 사용법은 위키에 자세히 추가 될 예정입니다
1
+ # @ramong26/xp-components
2
+
3
+ React와 TypeScript로 만든 최소한의 UI 컴포넌트 라이브러리입니다.
4
+ 현재는 테스트 중입니다.
5
+
6
+ ---
7
+
8
+ ## 설치
9
+
10
+ ```bash
11
+ # pnpm 사용
12
+ pnpm add @ramong26/xp-components
13
+
14
+ # npm 사용
15
+ npm install @ramong26/xp-components
16
+ ```
17
+
18
+ ---
19
+
20
+ 사용법은 위키에 자세히 추가 될 예정입니다
@@ -31,15 +31,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  App: () => App_default,
34
- Button: () => Button_exports,
35
- Carousel: () => Carousel_exports,
36
- Checkbox: () => Checkbox_exports,
37
- Chips: () => Chips_exports,
38
- Input: () => Input_exports,
39
- Select: () => Select_exports,
40
- Slider: () => Slider_exports,
41
- Switch: () => Switch_exports,
42
- Tag: () => Tag_exports
34
+ Button: () => Button_default,
35
+ Carousel: () => Carousel_default,
36
+ Checkbox: () => Checkbox_default,
37
+ Chips: () => Chips_default,
38
+ Input: () => Input_default,
39
+ Select: () => Select_default,
40
+ Slider: () => Slider_default,
41
+ Switch: () => Switch_default,
42
+ Tag: () => Tag_default
43
43
  });
44
44
  module.exports = __toCommonJS(index_exports);
45
45
 
@@ -67,10 +67,6 @@ function App() {
67
67
  var App_default = App;
68
68
 
69
69
  // src/components/Button/Button.tsx
70
- var Button_exports = {};
71
- __export(Button_exports, {
72
- default: () => Button_default
73
- });
74
70
  var import_jsx_runtime2 = require("react/jsx-runtime");
75
71
  var Button = ({
76
72
  children,
@@ -90,10 +86,6 @@ var Button = ({
90
86
  var Button_default = Button;
91
87
 
92
88
  // src/components/Carousel/Carousel.tsx
93
- var Carousel_exports = {};
94
- __export(Carousel_exports, {
95
- default: () => Carousel_default
96
- });
97
89
  var import_react2 = require("react");
98
90
  var import_jsx_runtime3 = require("react/jsx-runtime");
99
91
  var paperTexture = "/xp-components/assets/paper.png";
@@ -197,10 +189,6 @@ var Carousel = ({
197
189
  var Carousel_default = Carousel;
198
190
 
199
191
  // src/components/Checkbox/Checkbox.tsx
200
- var Checkbox_exports = {};
201
- __export(Checkbox_exports, {
202
- default: () => Checkbox_default
203
- });
204
192
  var import_react3 = __toESM(require("react"), 1);
205
193
  var import_jsx_runtime4 = require("react/jsx-runtime");
206
194
  var paperTexture2 = "/xp-components/assets/paper.png";
@@ -224,10 +212,6 @@ var Checkbox = ({ label, ...rest }) => {
224
212
  var Checkbox_default = Checkbox;
225
213
 
226
214
  // src/components/Chips/Chips.tsx
227
- var Chips_exports = {};
228
- __export(Chips_exports, {
229
- default: () => Chips_default
230
- });
231
215
  var import_jsx_runtime5 = require("react/jsx-runtime");
232
216
  var paperTexture3 = "/xp-components/assets/paper.png";
233
217
  var Chips = ({
@@ -269,10 +253,6 @@ var Chips = ({
269
253
  var Chips_default = Chips;
270
254
 
271
255
  // src/components/Input/Input.tsx
272
- var Input_exports = {};
273
- __export(Input_exports, {
274
- default: () => Input_default
275
- });
276
256
  var import_react4 = require("react");
277
257
  var import_jsx_runtime6 = require("react/jsx-runtime");
278
258
  var paperTexture4 = "/xp-components/assets/paper.png";
@@ -311,10 +291,6 @@ var Input = ({
311
291
  var Input_default = Input;
312
292
 
313
293
  // src/components/Select/Select.tsx
314
- var Select_exports = {};
315
- __export(Select_exports, {
316
- default: () => Select_default
317
- });
318
294
  var import_react5 = require("react");
319
295
  var import_jsx_runtime7 = require("react/jsx-runtime");
320
296
  var paperTexture5 = "/xp-components/assets/paper.png";
@@ -430,10 +406,6 @@ var Select = ({
430
406
  var Select_default = Select;
431
407
 
432
408
  // src/components/Slider/Slider.tsx
433
- var Slider_exports = {};
434
- __export(Slider_exports, {
435
- default: () => Slider_default
436
- });
437
409
  var import_react6 = __toESM(require("react"), 1);
438
410
  var import_jsx_runtime8 = require("react/jsx-runtime");
439
411
  var paperTexture6 = "/xp-components/assets/paper.png";
@@ -483,10 +455,6 @@ var Slider = ({
483
455
  var Slider_default = Slider;
484
456
 
485
457
  // src/components/Switch/Switch.tsx
486
- var Switch_exports = {};
487
- __export(Switch_exports, {
488
- default: () => Switch_default
489
- });
490
458
  var import_react7 = __toESM(require("react"), 1);
491
459
  var import_jsx_runtime9 = require("react/jsx-runtime");
492
460
  var paperTexture7 = "/xp-components/assets/paper.png";
@@ -517,10 +485,6 @@ var Switch = ({ label, disabled, ...rest }) => {
517
485
  var Switch_default = Switch;
518
486
 
519
487
  // src/components/Tag/Tag.tsx
520
- var Tag_exports = {};
521
- __export(Tag_exports, {
522
- default: () => Tag_default
523
- });
524
488
  var import_jsx_runtime10 = require("react/jsx-runtime");
525
489
  var paperTexture8 = "/xp-components/assets/paper.png";
526
490
  var Tag = ({
package/dist/index.css CHANGED
@@ -39,7 +39,7 @@
39
39
  color: #888;
40
40
  }
41
41
 
42
- /* ../../../../../tmp/tmp-2289-XdAxeBL3O2Xp/xp-components/src/components/Button/Button.css */
42
+ /* ../../../Users/rlatn/AppData/Local/Temp/tmp-29320-aVHBk16u2weU/xp-components/src/components/Button/Button.css */
43
43
  .btn {
44
44
  background: #fffbea;
45
45
  background-size: cover;
@@ -106,7 +106,7 @@
106
106
  border-color: #000;
107
107
  }
108
108
 
109
- /* ../../../../../tmp/tmp-2289-XdAxeBL3O2Xp/xp-components/src/components/Carousel/Carousel.css */
109
+ /* ../../../Users/rlatn/AppData/Local/Temp/tmp-29320-aVHBk16u2weU/xp-components/src/components/Carousel/Carousel.css */
110
110
  .carousel {
111
111
  position: relative;
112
112
  overflow: hidden;
@@ -263,7 +263,7 @@
263
263
  }
264
264
  }
265
265
 
266
- /* ../../../../../tmp/tmp-2289-XdAxeBL3O2Xp/xp-components/src/components/Checkbox/Checkbox.css */
266
+ /* ../../../Users/rlatn/AppData/Local/Temp/tmp-29320-aVHBk16u2weU/xp-components/src/components/Checkbox/Checkbox.css */
267
267
  .checkbox {
268
268
  display: flex;
269
269
  flex-direction: row;
@@ -380,7 +380,7 @@
380
380
  }
381
381
  }
382
382
 
383
- /* ../../../../../tmp/tmp-2289-XdAxeBL3O2Xp/xp-components/src/components/Chips/Chips.css */
383
+ /* ../../../Users/rlatn/AppData/Local/Temp/tmp-29320-aVHBk16u2weU/xp-components/src/components/Chips/Chips.css */
384
384
  .chip {
385
385
  width: fit-content;
386
386
  height: fit-content;
@@ -543,7 +543,7 @@
543
543
  }
544
544
  }
545
545
 
546
- /* ../../../../../tmp/tmp-2289-XdAxeBL3O2Xp/xp-components/src/components/Input/Input.css */
546
+ /* ../../../Users/rlatn/AppData/Local/Temp/tmp-29320-aVHBk16u2weU/xp-components/src/components/Input/Input.css */
547
547
  .input__wrapper {
548
548
  position: relative;
549
549
  cursor: text;
@@ -679,7 +679,7 @@
679
679
  padding: 0 4px;
680
680
  }
681
681
 
682
- /* ../../../../../tmp/tmp-2289-XdAxeBL3O2Xp/xp-components/src/components/Select/Select.css */
682
+ /* ../../../Users/rlatn/AppData/Local/Temp/tmp-29320-aVHBk16u2weU/xp-components/src/components/Select/Select.css */
683
683
  .select {
684
684
  position: relative;
685
685
  cursor: pointer;
@@ -869,7 +869,7 @@
869
869
  }
870
870
  }
871
871
 
872
- /* ../../../../../tmp/tmp-2289-XdAxeBL3O2Xp/xp-components/src/components/Slider/Slider.css */
872
+ /* ../../../Users/rlatn/AppData/Local/Temp/tmp-29320-aVHBk16u2weU/xp-components/src/components/Slider/Slider.css */
873
873
  .slider {
874
874
  display: flex;
875
875
  flex-direction: row;
@@ -987,7 +987,7 @@
987
987
  }
988
988
  }
989
989
 
990
- /* ../../../../../tmp/tmp-2289-XdAxeBL3O2Xp/xp-components/src/components/Switch/Switch.css */
990
+ /* ../../../Users/rlatn/AppData/Local/Temp/tmp-29320-aVHBk16u2weU/xp-components/src/components/Switch/Switch.css */
991
991
  .switch {
992
992
  display: inline-flex;
993
993
  align-items: center;
@@ -1116,7 +1116,7 @@
1116
1116
  }
1117
1117
  }
1118
1118
 
1119
- /* ../../../../../tmp/tmp-2289-XdAxeBL3O2Xp/xp-components/src/components/Tag/Tag.css */
1119
+ /* ../../../Users/rlatn/AppData/Local/Temp/tmp-29320-aVHBk16u2weU/xp-components/src/components/Tag/Tag.css */
1120
1120
  .tag {
1121
1121
  display: inline-flex;
1122
1122
  align-items: center;
package/dist/index.mjs CHANGED
@@ -1,9 +1,3 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, { get: all[name], enumerable: true });
5
- };
6
-
7
1
  // src/App.tsx
8
2
  import { useState } from "react";
9
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -28,10 +22,6 @@ function App() {
28
22
  var App_default = App;
29
23
 
30
24
  // src/components/Button/Button.tsx
31
- var Button_exports = {};
32
- __export(Button_exports, {
33
- default: () => Button_default
34
- });
35
25
  import { jsx as jsx2 } from "react/jsx-runtime";
36
26
  var Button = ({
37
27
  children,
@@ -51,10 +41,6 @@ var Button = ({
51
41
  var Button_default = Button;
52
42
 
53
43
  // src/components/Carousel/Carousel.tsx
54
- var Carousel_exports = {};
55
- __export(Carousel_exports, {
56
- default: () => Carousel_default
57
- });
58
44
  import { useState as useState2, useEffect } from "react";
59
45
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
60
46
  var paperTexture = "/xp-components/assets/paper.png";
@@ -158,10 +144,6 @@ var Carousel = ({
158
144
  var Carousel_default = Carousel;
159
145
 
160
146
  // src/components/Checkbox/Checkbox.tsx
161
- var Checkbox_exports = {};
162
- __export(Checkbox_exports, {
163
- default: () => Checkbox_default
164
- });
165
147
  import React2 from "react";
166
148
  import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
167
149
  var paperTexture2 = "/xp-components/assets/paper.png";
@@ -185,10 +167,6 @@ var Checkbox = ({ label, ...rest }) => {
185
167
  var Checkbox_default = Checkbox;
186
168
 
187
169
  // src/components/Chips/Chips.tsx
188
- var Chips_exports = {};
189
- __export(Chips_exports, {
190
- default: () => Chips_default
191
- });
192
170
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
193
171
  var paperTexture3 = "/xp-components/assets/paper.png";
194
172
  var Chips = ({
@@ -230,10 +208,6 @@ var Chips = ({
230
208
  var Chips_default = Chips;
231
209
 
232
210
  // src/components/Input/Input.tsx
233
- var Input_exports = {};
234
- __export(Input_exports, {
235
- default: () => Input_default
236
- });
237
211
  import { useId } from "react";
238
212
  import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
239
213
  var paperTexture4 = "/xp-components/assets/paper.png";
@@ -272,10 +246,6 @@ var Input = ({
272
246
  var Input_default = Input;
273
247
 
274
248
  // src/components/Select/Select.tsx
275
- var Select_exports = {};
276
- __export(Select_exports, {
277
- default: () => Select_default
278
- });
279
249
  import { useState as useState3, useRef, useEffect as useEffect2, useMemo } from "react";
280
250
  import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
281
251
  var paperTexture5 = "/xp-components/assets/paper.png";
@@ -391,10 +361,6 @@ var Select = ({
391
361
  var Select_default = Select;
392
362
 
393
363
  // src/components/Slider/Slider.tsx
394
- var Slider_exports = {};
395
- __export(Slider_exports, {
396
- default: () => Slider_default
397
- });
398
364
  import React5, { useState as useState4 } from "react";
399
365
  import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
400
366
  var paperTexture6 = "/xp-components/assets/paper.png";
@@ -444,10 +410,6 @@ var Slider = ({
444
410
  var Slider_default = Slider;
445
411
 
446
412
  // src/components/Switch/Switch.tsx
447
- var Switch_exports = {};
448
- __export(Switch_exports, {
449
- default: () => Switch_default
450
- });
451
413
  import React6 from "react";
452
414
  import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
453
415
  var paperTexture7 = "/xp-components/assets/paper.png";
@@ -478,10 +440,6 @@ var Switch = ({ label, disabled, ...rest }) => {
478
440
  var Switch_default = Switch;
479
441
 
480
442
  // src/components/Tag/Tag.tsx
481
- var Tag_exports = {};
482
- __export(Tag_exports, {
483
- default: () => Tag_default
484
- });
485
443
  import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
486
444
  var paperTexture8 = "/xp-components/assets/paper.png";
487
445
  var Tag = ({
@@ -520,13 +478,13 @@ var Tag = ({
520
478
  var Tag_default = Tag;
521
479
  export {
522
480
  App_default as App,
523
- Button_exports as Button,
524
- Carousel_exports as Carousel,
525
- Checkbox_exports as Checkbox,
526
- Chips_exports as Chips,
527
- Input_exports as Input,
528
- Select_exports as Select,
529
- Slider_exports as Slider,
530
- Switch_exports as Switch,
531
- Tag_exports as Tag
481
+ Button_default as Button,
482
+ Carousel_default as Carousel,
483
+ Checkbox_default as Checkbox,
484
+ Chips_default as Chips,
485
+ Input_default as Input,
486
+ Select_default as Select,
487
+ Slider_default as Slider,
488
+ Switch_default as Switch,
489
+ Tag_default as Tag
532
490
  };
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@ramong26/xp-components",
3
3
  "private": false,
4
- "version": "1.0.13",
4
+ "version": "1.0.15",
5
5
  "type": "module",
6
- "main": "dist/index.cjs.js",
6
+ "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
8
8
  "types": "dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
11
  "types": "./dist/index.d.ts",
12
12
  "import": "./dist/index.mjs",
13
- "require": "./dist/index.cjs.js",
13
+ "require": "./dist/index.cjs",
14
14
  "default": "./dist/index.mjs"
15
15
  },
16
16
  "./styles": "./dist/index.css",
@@ -42,6 +42,17 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
+ "scripts": {
46
+ "dev": "vite",
47
+ "build:lib": "tsup src/index.ts --dts --format cjs,esm --out-dir dist --clean",
48
+ "build": "pnpm build:lib",
49
+ "storybook": "storybook dev -p 6006",
50
+ "build-storybook": "storybook build",
51
+ "test": "vitest",
52
+ "pack": "pnpm build:lib && npm pack",
53
+ "lint": "pnpm exec eslint . --ext .ts,.tsx",
54
+ "typecheck": "tsc --noEmit"
55
+ },
45
56
  "peerDependencies": {
46
57
  "react": ">=18 <20",
47
58
  "react-dom": ">=18 <20"
@@ -74,19 +85,7 @@
74
85
  "vitest": "^3.2.4"
75
86
  },
76
87
  "dependencies": {
77
- "@ramong26/xp-components": "file:/home/runner/work/xp-components/xp-components/ramong26-xp-components-1.0.13.tgz",
78
88
  "@testing-library/react": "^16.3.0",
79
89
  "@testing-library/user-event": "^14.6.1"
80
- },
81
- "scripts": {
82
- "dev": "vite",
83
- "build:lib": "tsup src/index.ts --dts --format cjs,esm --out-dir dist --clean",
84
- "build": "pnpm build:lib",
85
- "storybook": "storybook dev -p 6006",
86
- "build-storybook": "storybook build",
87
- "test": "vitest",
88
- "pack": "pnpm build:lib && npm pack",
89
- "lint": "pnpm exec eslint . --ext .ts,.tsx",
90
- "typecheck": "tsc --noEmit"
91
90
  }
92
- }
91
+ }
package/dist/index.d.cts DELETED
@@ -1,131 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
3
-
4
- declare function App(): react_jsx_runtime.JSX.Element;
5
-
6
- type Variant$2 = 'default' | 'secondary';
7
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
8
- variant?: Variant$2;
9
- }
10
- declare const Button: React.FC<ButtonProps>;
11
-
12
- type Button$1_ButtonProps = ButtonProps;
13
- declare namespace Button$1 {
14
- export { type Button$1_ButtonProps as ButtonProps, type Variant$2 as Variant, Button as default };
15
- }
16
-
17
- interface CarouselItem {
18
- title?: string;
19
- text?: string;
20
- image?: string;
21
- imageStyle?: React.CSSProperties;
22
- onClick?: () => void;
23
- }
24
- interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
25
- items: CarouselItem[];
26
- autoPlay?: boolean;
27
- interval?: number;
28
- }
29
- declare const Carousel: React.FC<CarouselProps>;
30
-
31
- type Carousel$1_CarouselItem = CarouselItem;
32
- type Carousel$1_CarouselProps = CarouselProps;
33
- declare namespace Carousel$1 {
34
- export { type Carousel$1_CarouselItem as CarouselItem, type Carousel$1_CarouselProps as CarouselProps, Carousel as default };
35
- }
36
-
37
- interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
38
- label: string;
39
- }
40
- declare const Checkbox: React.FC<CheckboxProps>;
41
-
42
- type Checkbox$1_CheckboxProps = CheckboxProps;
43
- declare namespace Checkbox$1 {
44
- export { type Checkbox$1_CheckboxProps as CheckboxProps, Checkbox as default };
45
- }
46
-
47
- interface ChipsProps extends React.HTMLAttributes<HTMLDivElement> {
48
- onRemove?: () => void;
49
- selected?: boolean;
50
- onClick?: () => void;
51
- }
52
- declare const Chips: React.FC<ChipsProps>;
53
-
54
- type Chips$1_ChipsProps = ChipsProps;
55
- declare namespace Chips$1 {
56
- export { type Chips$1_ChipsProps as ChipsProps, Chips as default };
57
- }
58
-
59
- type Variant$1 = 'default' | 'title';
60
- interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
61
- label?: string;
62
- variant?: Variant$1;
63
- className?: string;
64
- }
65
- declare const Input: React.FC<InputProps>;
66
-
67
- type Input$1_InputProps = InputProps;
68
- declare namespace Input$1 {
69
- export { type Input$1_InputProps as InputProps, type Variant$1 as Variant, Input as default };
70
- }
71
-
72
- interface SelectProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
73
- label: string;
74
- options: Array<{
75
- label: string;
76
- value: string | number;
77
- }>;
78
- value?: string | number;
79
- onChange?: (value: string | number) => void;
80
- }
81
- declare const Select: React.FC<SelectProps>;
82
-
83
- type Select$1_SelectProps = SelectProps;
84
- declare namespace Select$1 {
85
- export { type Select$1_SelectProps as SelectProps, Select as default };
86
- }
87
-
88
- interface SliderProps {
89
- min?: number;
90
- max?: number;
91
- step?: number;
92
- value?: number;
93
- onChange?: (value: number) => void;
94
- showValue?: boolean;
95
- }
96
- declare const Slider: React.FC<SliderProps>;
97
-
98
- type Slider$1_SliderProps = SliderProps;
99
- declare namespace Slider$1 {
100
- export { type Slider$1_SliderProps as SliderProps, Slider as default };
101
- }
102
-
103
- interface SwitchProps extends React.InputHTMLAttributes<HTMLInputElement> {
104
- label?: string;
105
- }
106
- declare const Switch: React.FC<SwitchProps>;
107
-
108
- type Switch$1_SwitchProps = SwitchProps;
109
- declare namespace Switch$1 {
110
- export { type Switch$1_SwitchProps as SwitchProps, Switch as default };
111
- }
112
-
113
- type Variant = 'default' | 'success' | 'warning' | 'error' | 'outline';
114
- type Size = 'sm' | 'md' | 'lg';
115
- interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
116
- variant?: Variant;
117
- size?: Size;
118
- icon?: React.ReactNode;
119
- closable?: boolean;
120
- onClose?: () => void;
121
- }
122
- declare const Tag: React.FC<TagProps>;
123
-
124
- type Tag$1_Size = Size;
125
- type Tag$1_TagProps = TagProps;
126
- type Tag$1_Variant = Variant;
127
- declare namespace Tag$1 {
128
- export { type Tag$1_Size as Size, type Tag$1_TagProps as TagProps, type Tag$1_Variant as Variant, Tag as default };
129
- }
130
-
131
- export { App, Button$1 as Button, Carousel$1 as Carousel, Checkbox$1 as Checkbox, Chips$1 as Chips, Input$1 as Input, Select$1 as Select, Slider$1 as Slider, Switch$1 as Switch, Tag$1 as Tag };
package/dist/index.d.ts DELETED
@@ -1,131 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
3
-
4
- declare function App(): react_jsx_runtime.JSX.Element;
5
-
6
- type Variant$2 = 'default' | 'secondary';
7
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
8
- variant?: Variant$2;
9
- }
10
- declare const Button: React.FC<ButtonProps>;
11
-
12
- type Button$1_ButtonProps = ButtonProps;
13
- declare namespace Button$1 {
14
- export { type Button$1_ButtonProps as ButtonProps, type Variant$2 as Variant, Button as default };
15
- }
16
-
17
- interface CarouselItem {
18
- title?: string;
19
- text?: string;
20
- image?: string;
21
- imageStyle?: React.CSSProperties;
22
- onClick?: () => void;
23
- }
24
- interface CarouselProps extends React.HTMLAttributes<HTMLDivElement> {
25
- items: CarouselItem[];
26
- autoPlay?: boolean;
27
- interval?: number;
28
- }
29
- declare const Carousel: React.FC<CarouselProps>;
30
-
31
- type Carousel$1_CarouselItem = CarouselItem;
32
- type Carousel$1_CarouselProps = CarouselProps;
33
- declare namespace Carousel$1 {
34
- export { type Carousel$1_CarouselItem as CarouselItem, type Carousel$1_CarouselProps as CarouselProps, Carousel as default };
35
- }
36
-
37
- interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
38
- label: string;
39
- }
40
- declare const Checkbox: React.FC<CheckboxProps>;
41
-
42
- type Checkbox$1_CheckboxProps = CheckboxProps;
43
- declare namespace Checkbox$1 {
44
- export { type Checkbox$1_CheckboxProps as CheckboxProps, Checkbox as default };
45
- }
46
-
47
- interface ChipsProps extends React.HTMLAttributes<HTMLDivElement> {
48
- onRemove?: () => void;
49
- selected?: boolean;
50
- onClick?: () => void;
51
- }
52
- declare const Chips: React.FC<ChipsProps>;
53
-
54
- type Chips$1_ChipsProps = ChipsProps;
55
- declare namespace Chips$1 {
56
- export { type Chips$1_ChipsProps as ChipsProps, Chips as default };
57
- }
58
-
59
- type Variant$1 = 'default' | 'title';
60
- interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
61
- label?: string;
62
- variant?: Variant$1;
63
- className?: string;
64
- }
65
- declare const Input: React.FC<InputProps>;
66
-
67
- type Input$1_InputProps = InputProps;
68
- declare namespace Input$1 {
69
- export { type Input$1_InputProps as InputProps, type Variant$1 as Variant, Input as default };
70
- }
71
-
72
- interface SelectProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
73
- label: string;
74
- options: Array<{
75
- label: string;
76
- value: string | number;
77
- }>;
78
- value?: string | number;
79
- onChange?: (value: string | number) => void;
80
- }
81
- declare const Select: React.FC<SelectProps>;
82
-
83
- type Select$1_SelectProps = SelectProps;
84
- declare namespace Select$1 {
85
- export { type Select$1_SelectProps as SelectProps, Select as default };
86
- }
87
-
88
- interface SliderProps {
89
- min?: number;
90
- max?: number;
91
- step?: number;
92
- value?: number;
93
- onChange?: (value: number) => void;
94
- showValue?: boolean;
95
- }
96
- declare const Slider: React.FC<SliderProps>;
97
-
98
- type Slider$1_SliderProps = SliderProps;
99
- declare namespace Slider$1 {
100
- export { type Slider$1_SliderProps as SliderProps, Slider as default };
101
- }
102
-
103
- interface SwitchProps extends React.InputHTMLAttributes<HTMLInputElement> {
104
- label?: string;
105
- }
106
- declare const Switch: React.FC<SwitchProps>;
107
-
108
- type Switch$1_SwitchProps = SwitchProps;
109
- declare namespace Switch$1 {
110
- export { type Switch$1_SwitchProps as SwitchProps, Switch as default };
111
- }
112
-
113
- type Variant = 'default' | 'success' | 'warning' | 'error' | 'outline';
114
- type Size = 'sm' | 'md' | 'lg';
115
- interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
116
- variant?: Variant;
117
- size?: Size;
118
- icon?: React.ReactNode;
119
- closable?: boolean;
120
- onClose?: () => void;
121
- }
122
- declare const Tag: React.FC<TagProps>;
123
-
124
- type Tag$1_Size = Size;
125
- type Tag$1_TagProps = TagProps;
126
- type Tag$1_Variant = Variant;
127
- declare namespace Tag$1 {
128
- export { type Tag$1_Size as Size, type Tag$1_TagProps as TagProps, type Tag$1_Variant as Variant, Tag as default };
129
- }
130
-
131
- export { App, Button$1 as Button, Carousel$1 as Carousel, Checkbox$1 as Checkbox, Chips$1 as Chips, Input$1 as Input, Select$1 as Select, Slider$1 as Slider, Switch$1 as Switch, Tag$1 as Tag };