@reitwagen/design-components 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Button/Button.stories.d.ts +1 -0
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Button/Button.stories.js +4 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +4 -0
- package/dist/components/Chip/Chip.stories.d.ts +1 -0
- package/dist/components/Chip/Chip.stories.d.ts.map +1 -1
- package/dist/components/Chip/Chip.stories.js +2 -0
- package/dist/components/Chip/index.d.ts.map +1 -1
- package/dist/components/FormControl/FormControl.d.ts +55 -0
- package/dist/components/FormControl/FormControl.d.ts.map +1 -0
- package/dist/components/FormControl/FormControl.js +79 -0
- package/dist/components/FormControl/FormControl.stories.d.ts +19 -0
- package/dist/components/FormControl/FormControl.stories.d.ts.map +1 -0
- package/dist/components/FormControl/FormControl.stories.js +75 -0
- package/dist/components/FormControl/FormControlLabel.d.ts +20 -0
- package/dist/components/FormControl/FormControlLabel.d.ts.map +1 -0
- package/dist/components/FormControl/FormControlLabel.js +32 -0
- package/dist/components/FormControl/FormControlValidation.d.ts +13 -0
- package/dist/components/FormControl/FormControlValidation.d.ts.map +1 -0
- package/dist/components/FormControl/FormControlValidation.js +22 -0
- package/dist/components/FormControl/index.d.ts +2 -0
- package/dist/components/FormControl/index.d.ts.map +1 -0
- package/dist/components/FormControl/index.js +5 -0
- package/dist/components/Icons/IconPlaceLine.js +1 -1
- package/dist/components/Input/Input.d.ts +28 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/Input.js +30 -0
- package/dist/components/Input/Input.stories.d.ts +34 -0
- package/dist/components/Input/Input.stories.d.ts.map +1 -0
- package/dist/components/Input/Input.stories.js +81 -0
- package/dist/components/Input/Input.styles.d.ts +5 -0
- package/dist/components/Input/Input.styles.d.ts.map +1 -0
- package/dist/components/Input/Input.styles.js +20 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Input/index.js +5 -0
- package/dist/components/Radio/Radio.d.ts +6 -6
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Radio/Radio.js +27 -9
- package/dist/components/Radio/Radio.stories.d.ts +1 -0
- package/dist/components/Radio/Radio.stories.d.ts.map +1 -1
- package/dist/components/Radio/Radio.stories.js +6 -2
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +55 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +45 -0
- package/dist/components/RadioGroup/RadioGroup.stories.d.ts +40 -0
- package/dist/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.stories.js +103 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroup/index.d.ts.map +1 -0
- package/dist/components/RadioGroup/index.js +5 -0
- package/dist/components/Toggle/index.d.ts.map +1 -1
- package/dist/index.css +70 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/types/props.d.ts +2 -2
- package/dist/types/props.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.css
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"Noto Sans KR", "Malgun Gothic", sans-serif;
|
|
9
9
|
--ui-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
10
10
|
"Courier New", monospace;
|
|
11
|
+
--ui-color-red-50: #fff3f3;
|
|
12
|
+
--ui-color-red-200: #ffbbbb;
|
|
13
|
+
--ui-color-red-500: #f65353;
|
|
11
14
|
--ui-color-blue-50: #eef6ff;
|
|
12
15
|
--ui-color-blue-100: #cfe6ff;
|
|
13
16
|
--ui-color-blue-300: #a0cbff;
|
|
@@ -324,6 +327,9 @@
|
|
|
324
327
|
.ui\:h-\[40px\] {
|
|
325
328
|
height: 40px;
|
|
326
329
|
}
|
|
330
|
+
.ui\:h-\[50px\] {
|
|
331
|
+
height: 50px;
|
|
332
|
+
}
|
|
327
333
|
.ui\:h-\[52px\] {
|
|
328
334
|
height: 52px;
|
|
329
335
|
}
|
|
@@ -336,6 +342,9 @@
|
|
|
336
342
|
.ui\:w-6 {
|
|
337
343
|
width: calc(var(--ui-spacing) * 6);
|
|
338
344
|
}
|
|
345
|
+
.ui\:w-80 {
|
|
346
|
+
width: calc(var(--ui-spacing) * 80);
|
|
347
|
+
}
|
|
339
348
|
.ui\:w-\[21px\] {
|
|
340
349
|
width: 21px;
|
|
341
350
|
}
|
|
@@ -368,6 +377,9 @@
|
|
|
368
377
|
.ui\:cursor-default {
|
|
369
378
|
cursor: default;
|
|
370
379
|
}
|
|
380
|
+
.ui\:cursor-not-allowed {
|
|
381
|
+
cursor: not-allowed;
|
|
382
|
+
}
|
|
371
383
|
.ui\:cursor-pointer {
|
|
372
384
|
cursor: pointer;
|
|
373
385
|
}
|
|
@@ -395,12 +407,22 @@
|
|
|
395
407
|
.ui\:gap-2 {
|
|
396
408
|
gap: calc(var(--ui-spacing) * 2);
|
|
397
409
|
}
|
|
410
|
+
.ui\:gap-3 {
|
|
411
|
+
gap: calc(var(--ui-spacing) * 3);
|
|
412
|
+
}
|
|
398
413
|
.ui\:gap-4 {
|
|
399
414
|
gap: calc(var(--ui-spacing) * 4);
|
|
400
415
|
}
|
|
401
416
|
.ui\:gap-5 {
|
|
402
417
|
gap: calc(var(--ui-spacing) * 5);
|
|
403
418
|
}
|
|
419
|
+
.ui\:space-y-6 {
|
|
420
|
+
:where(& > :not(:last-child)) {
|
|
421
|
+
--tw-space-y-reverse: 0;
|
|
422
|
+
margin-block-start: calc(calc(var(--ui-spacing) * 6) * var(--tw-space-y-reverse));
|
|
423
|
+
margin-block-end: calc(calc(var(--ui-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));
|
|
424
|
+
}
|
|
425
|
+
}
|
|
404
426
|
.ui\:rounded-\[8px\] {
|
|
405
427
|
border-radius: 8px;
|
|
406
428
|
}
|
|
@@ -413,6 +435,9 @@
|
|
|
413
435
|
.ui\:rounded-\[14px\] {
|
|
414
436
|
border-radius: 14px;
|
|
415
437
|
}
|
|
438
|
+
.ui\:rounded-\[16px\] {
|
|
439
|
+
border-radius: 16px;
|
|
440
|
+
}
|
|
416
441
|
.ui\:rounded-full {
|
|
417
442
|
border-radius: calc(infinity * 1px);
|
|
418
443
|
}
|
|
@@ -436,6 +461,9 @@
|
|
|
436
461
|
.ui\:border-gray-200 {
|
|
437
462
|
border-color: var(--ui-color-gray-200);
|
|
438
463
|
}
|
|
464
|
+
.ui\:border-red-200 {
|
|
465
|
+
border-color: var(--ui-color-red-200);
|
|
466
|
+
}
|
|
439
467
|
.ui\:bg-blue-50 {
|
|
440
468
|
background-color: var(--ui-color-blue-50);
|
|
441
469
|
}
|
|
@@ -469,9 +497,15 @@
|
|
|
469
497
|
.ui\:bg-gray-800 {
|
|
470
498
|
background-color: var(--ui-color-gray-800);
|
|
471
499
|
}
|
|
500
|
+
.ui\:bg-red-50 {
|
|
501
|
+
background-color: var(--ui-color-red-50);
|
|
502
|
+
}
|
|
472
503
|
.ui\:bg-white {
|
|
473
504
|
background-color: var(--ui-color-white);
|
|
474
505
|
}
|
|
506
|
+
.ui\:px-4 {
|
|
507
|
+
padding-inline: calc(var(--ui-spacing) * 4);
|
|
508
|
+
}
|
|
475
509
|
.ui\:px-\[10px\] {
|
|
476
510
|
padding-inline: 10px;
|
|
477
511
|
}
|
|
@@ -670,6 +704,9 @@
|
|
|
670
704
|
.ui\:text-gray-800 {
|
|
671
705
|
color: var(--ui-color-gray-800);
|
|
672
706
|
}
|
|
707
|
+
.ui\:text-red-500 {
|
|
708
|
+
color: var(--ui-color-red-500);
|
|
709
|
+
}
|
|
673
710
|
.ui\:text-white {
|
|
674
711
|
color: var(--ui-color-white);
|
|
675
712
|
}
|
|
@@ -701,10 +738,37 @@
|
|
|
701
738
|
--tw-duration: 300ms;
|
|
702
739
|
transition-duration: 300ms;
|
|
703
740
|
}
|
|
741
|
+
.ui\:outline-none {
|
|
742
|
+
--tw-outline-style: none;
|
|
743
|
+
outline-style: none;
|
|
744
|
+
}
|
|
704
745
|
.ui\:select-none {
|
|
705
746
|
-webkit-user-select: none;
|
|
706
747
|
user-select: none;
|
|
707
748
|
}
|
|
749
|
+
.ui\:placeholder\:text-body4 {
|
|
750
|
+
&::placeholder {
|
|
751
|
+
font-size: var(--ui-text-body4);
|
|
752
|
+
line-height: var(--tw-leading, var(--ui-text-body4--line-height));
|
|
753
|
+
letter-spacing: var(--tw-tracking, var(--ui-text-body4--letter-spacing));
|
|
754
|
+
font-weight: var(--tw-font-weight, var(--ui-text-body4--font-weight));
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
.ui\:placeholder\:text-gray-500 {
|
|
758
|
+
&::placeholder {
|
|
759
|
+
color: var(--ui-color-gray-500);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
.ui\:focus\:border-gray-200 {
|
|
763
|
+
&:focus {
|
|
764
|
+
border-color: var(--ui-color-gray-200);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
.ui\:focus\:bg-gray-50 {
|
|
768
|
+
&:focus {
|
|
769
|
+
background-color: var(--ui-color-gray-50);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
708
772
|
.ui\:focus\:ring-0 {
|
|
709
773
|
&:focus {
|
|
710
774
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
@@ -968,6 +1032,11 @@
|
|
|
968
1032
|
inherits: false;
|
|
969
1033
|
initial-value: 0;
|
|
970
1034
|
}
|
|
1035
|
+
@property --tw-space-y-reverse {
|
|
1036
|
+
syntax: "*";
|
|
1037
|
+
inherits: false;
|
|
1038
|
+
initial-value: 0;
|
|
1039
|
+
}
|
|
971
1040
|
@property --tw-border-style {
|
|
972
1041
|
syntax: "*";
|
|
973
1042
|
inherits: false;
|
|
@@ -1048,6 +1117,7 @@
|
|
|
1048
1117
|
--tw-translate-x: 0;
|
|
1049
1118
|
--tw-translate-y: 0;
|
|
1050
1119
|
--tw-translate-z: 0;
|
|
1120
|
+
--tw-space-y-reverse: 0;
|
|
1051
1121
|
--tw-border-style: solid;
|
|
1052
1122
|
--tw-shadow: 0 0 #0000;
|
|
1053
1123
|
--tw-shadow-color: initial;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,8 @@ export * from "./components/Chip";
|
|
|
3
3
|
export * from "./components/Toggle";
|
|
4
4
|
export * from "./components/Checkbox";
|
|
5
5
|
export * from "./components/Radio";
|
|
6
|
+
export * from "./components/RadioGroup";
|
|
7
|
+
export * from "./components/Input";
|
|
8
|
+
export * from "./components/FormControl";
|
|
6
9
|
export * from "./components/Icons";
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -20,5 +20,8 @@ __exportStar(require("./components/Chip"), exports);
|
|
|
20
20
|
__exportStar(require("./components/Toggle"), exports);
|
|
21
21
|
__exportStar(require("./components/Checkbox"), exports);
|
|
22
22
|
__exportStar(require("./components/Radio"), exports);
|
|
23
|
+
__exportStar(require("./components/RadioGroup"), exports);
|
|
24
|
+
__exportStar(require("./components/Input"), exports);
|
|
25
|
+
__exportStar(require("./components/FormControl"), exports);
|
|
23
26
|
/* --------------------------------- ICONS ---------------------------------- */
|
|
24
27
|
__exportStar(require("./components/Icons"), exports);
|
package/dist/types/props.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export type AsProps<C extends ElementType> = {
|
|
|
5
5
|
export type ElementTypeProps<C extends ElementType> = ComponentProps<C>;
|
|
6
6
|
export type KeyWithAs<C extends ElementType, Props> = keyof (Props & AsProps<C>);
|
|
7
7
|
export type PolymorphicRef<T extends ElementType> = ComponentPropsWithRef<T>["ref"];
|
|
8
|
-
export type PolymorphicComponentProps<C extends ElementType, Props =
|
|
9
|
-
export type PolymorphicComponentWithRef<T extends ElementType, Props =
|
|
8
|
+
export type PolymorphicComponentProps<C extends ElementType, Props = Record<string, unknown>> = Props & AsProps<C> & Omit<ElementTypeProps<C>, KeyWithAs<C, Props>>;
|
|
9
|
+
export type PolymorphicComponentWithRef<T extends ElementType, Props = Record<string, unknown>> = PolymorphicComponentProps<T, Props> & {
|
|
10
10
|
ref?: PolymorphicRef<T>;
|
|
11
11
|
};
|
|
12
12
|
export interface ChildrenProps<Children = ReactNode> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/types/props.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,WAAW,EACX,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,WAAW,IAAI;IAC3C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EAAE,KAAK,CAAC,CAAC,CAAC;AAExE,MAAM,MAAM,2BAA2B,CACrC,CAAC,SAAS,WAAW,EACrB,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAC7B,yBAAyB,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG;IACxC,GAAG,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,aAAa,CAAC,QAAQ,GAAG,SAAS;IACjD,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reitwagen/design-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"**/*.css"
|
|
6
6
|
],
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"tailwindcss": "^4.1.5",
|
|
50
50
|
"ts-node": "^10.9.2",
|
|
51
51
|
"typescript": "5.9.2",
|
|
52
|
+
"@reitwagen/eslint-config": "0.0.0",
|
|
52
53
|
"@reitwagen/tailwind-config": "0.0.0",
|
|
53
|
-
"@reitwagen/typescript-config": "0.0.0"
|
|
54
|
-
"@reitwagen/eslint-config": "0.0.0"
|
|
54
|
+
"@reitwagen/typescript-config": "0.0.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"axios": "^1.13.2",
|