@reitwagen/design-components 0.4.0 → 0.6.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/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/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/TextInput/TextInput.d.ts +36 -0
- package/dist/components/TextInput/TextInput.d.ts.map +1 -0
- package/dist/components/TextInput/TextInput.js +53 -0
- package/dist/components/TextInput/TextInput.stories.d.ts +41 -0
- package/dist/components/TextInput/TextInput.stories.d.ts.map +1 -0
- package/dist/components/TextInput/TextInput.stories.js +112 -0
- package/dist/components/TextInput/TextInput.styles.d.ts +5 -0
- package/dist/components/TextInput/TextInput.styles.d.ts.map +1 -0
- package/dist/components/TextInput/TextInput.styles.js +20 -0
- package/dist/components/TextInput/index.d.ts +2 -0
- package/dist/components/TextInput/index.d.ts.map +1 -0
- package/dist/components/TextInput/index.js +5 -0
- package/dist/components/Toggle/index.d.ts.map +1 -1
- package/dist/index.css +90 -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;
|
|
@@ -26,6 +29,7 @@
|
|
|
26
29
|
--ui-color-gray-900: #04041b;
|
|
27
30
|
--ui-color-white: #ffffff;
|
|
28
31
|
--ui-spacing: 0.25rem;
|
|
32
|
+
--ui-radius-2xl: 1rem;
|
|
29
33
|
--ui-default-transition-duration: 150ms;
|
|
30
34
|
--ui-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
31
35
|
--ui-default-font-family: var(--ui-font-sans);
|
|
@@ -279,6 +283,18 @@
|
|
|
279
283
|
white-space: nowrap;
|
|
280
284
|
border-width: 0;
|
|
281
285
|
}
|
|
286
|
+
.ui\:absolute {
|
|
287
|
+
position: absolute;
|
|
288
|
+
}
|
|
289
|
+
.ui\:relative {
|
|
290
|
+
position: relative;
|
|
291
|
+
}
|
|
292
|
+
.ui\:top-1\/2 {
|
|
293
|
+
top: calc(1/2 * 100%);
|
|
294
|
+
}
|
|
295
|
+
.ui\:right-4 {
|
|
296
|
+
right: calc(var(--ui-spacing) * 4);
|
|
297
|
+
}
|
|
282
298
|
.ui\:my-3 {
|
|
283
299
|
margin-block: calc(var(--ui-spacing) * 3);
|
|
284
300
|
}
|
|
@@ -324,6 +340,9 @@
|
|
|
324
340
|
.ui\:h-\[40px\] {
|
|
325
341
|
height: 40px;
|
|
326
342
|
}
|
|
343
|
+
.ui\:h-\[50px\] {
|
|
344
|
+
height: 50px;
|
|
345
|
+
}
|
|
327
346
|
.ui\:h-\[52px\] {
|
|
328
347
|
height: 52px;
|
|
329
348
|
}
|
|
@@ -336,6 +355,9 @@
|
|
|
336
355
|
.ui\:w-6 {
|
|
337
356
|
width: calc(var(--ui-spacing) * 6);
|
|
338
357
|
}
|
|
358
|
+
.ui\:w-80 {
|
|
359
|
+
width: calc(var(--ui-spacing) * 80);
|
|
360
|
+
}
|
|
339
361
|
.ui\:w-\[21px\] {
|
|
340
362
|
width: 21px;
|
|
341
363
|
}
|
|
@@ -365,9 +387,16 @@
|
|
|
365
387
|
--tw-translate-x: calc(var(--ui-spacing) * 6);
|
|
366
388
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
367
389
|
}
|
|
390
|
+
.ui\:-translate-y-1\/2 {
|
|
391
|
+
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
392
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
393
|
+
}
|
|
368
394
|
.ui\:cursor-default {
|
|
369
395
|
cursor: default;
|
|
370
396
|
}
|
|
397
|
+
.ui\:cursor-not-allowed {
|
|
398
|
+
cursor: not-allowed;
|
|
399
|
+
}
|
|
371
400
|
.ui\:cursor-pointer {
|
|
372
401
|
cursor: pointer;
|
|
373
402
|
}
|
|
@@ -395,12 +424,25 @@
|
|
|
395
424
|
.ui\:gap-2 {
|
|
396
425
|
gap: calc(var(--ui-spacing) * 2);
|
|
397
426
|
}
|
|
427
|
+
.ui\:gap-3 {
|
|
428
|
+
gap: calc(var(--ui-spacing) * 3);
|
|
429
|
+
}
|
|
398
430
|
.ui\:gap-4 {
|
|
399
431
|
gap: calc(var(--ui-spacing) * 4);
|
|
400
432
|
}
|
|
401
433
|
.ui\:gap-5 {
|
|
402
434
|
gap: calc(var(--ui-spacing) * 5);
|
|
403
435
|
}
|
|
436
|
+
.ui\:space-y-6 {
|
|
437
|
+
:where(& > :not(:last-child)) {
|
|
438
|
+
--tw-space-y-reverse: 0;
|
|
439
|
+
margin-block-start: calc(calc(var(--ui-spacing) * 6) * var(--tw-space-y-reverse));
|
|
440
|
+
margin-block-end: calc(calc(var(--ui-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)));
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
.ui\:rounded-2xl {
|
|
444
|
+
border-radius: var(--ui-radius-2xl);
|
|
445
|
+
}
|
|
404
446
|
.ui\:rounded-\[8px\] {
|
|
405
447
|
border-radius: 8px;
|
|
406
448
|
}
|
|
@@ -436,6 +478,9 @@
|
|
|
436
478
|
.ui\:border-gray-200 {
|
|
437
479
|
border-color: var(--ui-color-gray-200);
|
|
438
480
|
}
|
|
481
|
+
.ui\:border-red-200 {
|
|
482
|
+
border-color: var(--ui-color-red-200);
|
|
483
|
+
}
|
|
439
484
|
.ui\:bg-blue-50 {
|
|
440
485
|
background-color: var(--ui-color-blue-50);
|
|
441
486
|
}
|
|
@@ -469,9 +514,15 @@
|
|
|
469
514
|
.ui\:bg-gray-800 {
|
|
470
515
|
background-color: var(--ui-color-gray-800);
|
|
471
516
|
}
|
|
517
|
+
.ui\:bg-red-50 {
|
|
518
|
+
background-color: var(--ui-color-red-50);
|
|
519
|
+
}
|
|
472
520
|
.ui\:bg-white {
|
|
473
521
|
background-color: var(--ui-color-white);
|
|
474
522
|
}
|
|
523
|
+
.ui\:px-4 {
|
|
524
|
+
padding-inline: calc(var(--ui-spacing) * 4);
|
|
525
|
+
}
|
|
475
526
|
.ui\:px-\[10px\] {
|
|
476
527
|
padding-inline: 10px;
|
|
477
528
|
}
|
|
@@ -508,6 +559,9 @@
|
|
|
508
559
|
.ui\:py-\[14px\] {
|
|
509
560
|
padding-block: 14px;
|
|
510
561
|
}
|
|
562
|
+
.ui\:pr-\[52px\] {
|
|
563
|
+
padding-right: 52px;
|
|
564
|
+
}
|
|
511
565
|
.ui\:text-body1 {
|
|
512
566
|
font-size: var(--ui-text-body1);
|
|
513
567
|
line-height: var(--tw-leading, var(--ui-text-body1--line-height));
|
|
@@ -670,6 +724,9 @@
|
|
|
670
724
|
.ui\:text-gray-800 {
|
|
671
725
|
color: var(--ui-color-gray-800);
|
|
672
726
|
}
|
|
727
|
+
.ui\:text-red-500 {
|
|
728
|
+
color: var(--ui-color-red-500);
|
|
729
|
+
}
|
|
673
730
|
.ui\:text-white {
|
|
674
731
|
color: var(--ui-color-white);
|
|
675
732
|
}
|
|
@@ -701,10 +758,37 @@
|
|
|
701
758
|
--tw-duration: 300ms;
|
|
702
759
|
transition-duration: 300ms;
|
|
703
760
|
}
|
|
761
|
+
.ui\:outline-none {
|
|
762
|
+
--tw-outline-style: none;
|
|
763
|
+
outline-style: none;
|
|
764
|
+
}
|
|
704
765
|
.ui\:select-none {
|
|
705
766
|
-webkit-user-select: none;
|
|
706
767
|
user-select: none;
|
|
707
768
|
}
|
|
769
|
+
.ui\:placeholder\:text-body4 {
|
|
770
|
+
&::placeholder {
|
|
771
|
+
font-size: var(--ui-text-body4);
|
|
772
|
+
line-height: var(--tw-leading, var(--ui-text-body4--line-height));
|
|
773
|
+
letter-spacing: var(--tw-tracking, var(--ui-text-body4--letter-spacing));
|
|
774
|
+
font-weight: var(--tw-font-weight, var(--ui-text-body4--font-weight));
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
.ui\:placeholder\:text-gray-500 {
|
|
778
|
+
&::placeholder {
|
|
779
|
+
color: var(--ui-color-gray-500);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
.ui\:focus\:border-gray-200 {
|
|
783
|
+
&:focus {
|
|
784
|
+
border-color: var(--ui-color-gray-200);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
.ui\:focus\:bg-gray-50 {
|
|
788
|
+
&:focus {
|
|
789
|
+
background-color: var(--ui-color-gray-50);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
708
792
|
.ui\:focus\:ring-0 {
|
|
709
793
|
&:focus {
|
|
710
794
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
@@ -968,6 +1052,11 @@
|
|
|
968
1052
|
inherits: false;
|
|
969
1053
|
initial-value: 0;
|
|
970
1054
|
}
|
|
1055
|
+
@property --tw-space-y-reverse {
|
|
1056
|
+
syntax: "*";
|
|
1057
|
+
inherits: false;
|
|
1058
|
+
initial-value: 0;
|
|
1059
|
+
}
|
|
971
1060
|
@property --tw-border-style {
|
|
972
1061
|
syntax: "*";
|
|
973
1062
|
inherits: false;
|
|
@@ -1048,6 +1137,7 @@
|
|
|
1048
1137
|
--tw-translate-x: 0;
|
|
1049
1138
|
--tw-translate-y: 0;
|
|
1050
1139
|
--tw-translate-z: 0;
|
|
1140
|
+
--tw-space-y-reverse: 0;
|
|
1051
1141
|
--tw-border-style: solid;
|
|
1052
1142
|
--tw-shadow: 0 0 #0000;
|
|
1053
1143
|
--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/TextInput";
|
|
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,wBAAwB,CAAC;AACvC,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/TextInput"), 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,EAAE,CAAC,EAAE,CAAC,CAAC;CACR,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,WAAW,IAAI,cAAc,CAAC,CAAC,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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.1",
|
|
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/
|
|
52
|
+
"@reitwagen/eslint-config": "0.0.0",
|
|
53
53
|
"@reitwagen/typescript-config": "0.0.0",
|
|
54
|
-
"@reitwagen/
|
|
54
|
+
"@reitwagen/tailwind-config": "0.0.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"axios": "^1.13.2",
|