@ncds/ui-admin 0.0.26 → 0.0.28

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.
Files changed (36) hide show
  1. package/dist/cjs/src/components/badge/Badge.js +8 -1
  2. package/dist/cjs/src/components/button/Button.js +17 -4
  3. package/dist/cjs/src/components/button/ButtonGroup.js +20 -5
  4. package/dist/cjs/src/components/date-picker/RangeDatePickerWithButtons.js +4 -2
  5. package/dist/cjs/src/components/divider/Divider.js +6 -2
  6. package/dist/cjs/src/components/dot/Dot.js +41 -0
  7. package/dist/cjs/src/components/dot/index.js +16 -0
  8. package/dist/cjs/src/components/index.js +11 -0
  9. package/dist/cjs/src/components/modal/Modal.js +11 -8
  10. package/dist/cjs/src/components/select/Select.js +1 -9
  11. package/dist/cjs/src/components/tag/Tag.js +21 -9
  12. package/dist/esm/src/components/badge/Badge.js +8 -1
  13. package/dist/esm/src/components/button/Button.js +16 -3
  14. package/dist/esm/src/components/button/ButtonGroup.js +20 -5
  15. package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +4 -2
  16. package/dist/esm/src/components/divider/Divider.js +6 -2
  17. package/dist/esm/src/components/dot/Dot.js +34 -0
  18. package/dist/esm/src/components/dot/index.js +1 -0
  19. package/dist/esm/src/components/index.js +1 -0
  20. package/dist/esm/src/components/modal/Modal.js +11 -8
  21. package/dist/esm/src/components/select/Select.js +1 -9
  22. package/dist/esm/src/components/tag/Tag.js +21 -9
  23. package/dist/types/constant/color.d.ts +1 -0
  24. package/dist/types/src/components/badge/Badge.d.ts +3 -2
  25. package/dist/types/src/components/button/Button.d.ts +3 -13
  26. package/dist/types/src/components/button/ButtonGroup.d.ts +18 -29
  27. package/dist/types/src/components/date-picker/RangeDatePickerWithButtons.d.ts +3 -1
  28. package/dist/types/src/components/divider/Divider.d.ts +5 -0
  29. package/dist/types/src/components/dot/Dot.d.ts +23 -0
  30. package/dist/types/src/components/dot/index.d.ts +2 -0
  31. package/dist/types/src/components/index.d.ts +1 -0
  32. package/dist/types/src/components/modal/Modal.d.ts +6 -6
  33. package/dist/types/src/components/select/Select.d.ts +1 -1
  34. package/dist/types/src/components/tag/Tag.d.ts +5 -9
  35. package/dist/ui-admin/assets/styles/style.css +93 -52
  36. package/package.json +1 -1
@@ -51,6 +51,14 @@
51
51
  --orange-500: #e4501e;
52
52
  --orange-600: #b93815;
53
53
  --orange-700: #772917;
54
+ --violet-50: #fbfaff;
55
+ --violet-100: #ece9fe;
56
+ --violet-200: #ddd6fe;
57
+ --violet-300: #c3b5fd;
58
+ --violet-400: #a48afb;
59
+ --violet-500: #6927da;
60
+ --violet-600: #5720b7;
61
+ --violet-700: #3e1486;
54
62
  --focus-ring-4px-primary-100: 0px 0px 0px 3px #ffeaee;
55
63
  --focus-ring-4px-gray-100: 0px 0px 0px 3px #f2f4f7;
56
64
  --focus-ring-4px-error-100: 0px 0px 0px 3px #fee4e2;
@@ -532,7 +540,7 @@ button {
532
540
  color: var(--gray-600);
533
541
  }
534
542
  :where(.ncua-button-group.has-border) {
535
- border: 1px solid var(--gray-200);
543
+ outline: 1px solid var(--gray-200);
536
544
  box-shadow: var(--shadow-xs);
537
545
  }
538
546
  :where(.ncua-button-group.has-border) .ncua-button-group__item:hover {
@@ -721,15 +729,13 @@ button {
721
729
  display: none;
722
730
  }
723
731
  .ncua-checkbox-input :disabled + .ncua-checkbox-input__ico {
724
- background-color: var(--gray-100);
725
732
  border-radius: 4px;
726
733
  }
727
734
 
728
735
  .ncua-checkbox-field {
729
736
  position: relative;
730
- line-height: 18px;
731
- font-weight: var(--font-weights-commerce-sans-0);
732
737
  font-size: var(--font-size-xs);
738
+ line-height: var(--line-heights-xs);
733
739
  cursor: pointer;
734
740
  }
735
741
  .ncua-checkbox-field__text {
@@ -739,17 +745,17 @@ button {
739
745
  }
740
746
  .ncua-checkbox-field__support-text {
741
747
  color: var(--gray-400);
742
- font-size: var(--font-size-xs);
743
- line-height: var(--line-heights-xs);
748
+ font-weight: var(--font-weights-commerce-sans-0);
744
749
  }
745
750
  .ncua-checkbox-field:hover .ncua-checkbox-field__input {
746
751
  border-color: var(--gray-700);
747
752
  background-color: var(--gray-50);
748
753
  border-radius: 4px;
749
754
  }
750
- .ncua-checkbox-field--md .ncua-checkbox-field__text {
755
+ .ncua-checkbox-field--md .ncua-checkbox-field__text,
756
+ .ncua-checkbox-field--md .ncua-checkbox-field__support-text {
751
757
  font-size: var(--font-size-sm);
752
- line-height: 22px;
758
+ line-height: var(--line-heights-sm);
753
759
  }
754
760
  .ncua-checkbox-field.has-text {
755
761
  display: inline-flex;
@@ -919,9 +925,9 @@ button {
919
925
  border-radius: 8px;
920
926
  }
921
927
  .ncua-divider--text {
922
- font-size: var(--font-size-sm);
928
+ font-size: var(--font-size-xs);
923
929
  font-weight: var(--font-weights-commerce-sans-1);
924
- line-height: var(--line-heights-sm);
930
+ line-height: var(--line-heights-xs);
925
931
  color: var(--gray-500);
926
932
  }
927
933
  .ncua-divider--heading {
@@ -931,6 +937,48 @@ button {
931
937
  color: var(--gray-700);
932
938
  }
933
939
 
940
+ .ncua-dot {
941
+ display: inline-block;
942
+ border-radius: 50%;
943
+ margin: 1px;
944
+ }
945
+ .ncua-dot--sm {
946
+ width: 6px;
947
+ height: 6px;
948
+ }
949
+ .ncua-dot--md {
950
+ width: 8px;
951
+ height: 8px;
952
+ }
953
+ .ncua-dot--lg {
954
+ width: 10px;
955
+ height: 10px;
956
+ }
957
+ .ncua-dot--neutral {
958
+ background-color: var(--gray-500);
959
+ }
960
+ .ncua-dot--error {
961
+ background-color: var(--primary-red-500);
962
+ }
963
+ .ncua-dot--warning {
964
+ background-color: var(--orange-500);
965
+ }
966
+ .ncua-dot--success {
967
+ background-color: var(--green-500);
968
+ }
969
+ .ncua-dot--blue {
970
+ background-color: var(--blue-500);
971
+ }
972
+ .ncua-dot--pink {
973
+ background-color: var(--pink-500);
974
+ }
975
+ .ncua-dot--violet {
976
+ background-color: var(--violet-500);
977
+ }
978
+ .ncua-dot--disabled {
979
+ background-color: var(--gray-300);
980
+ }
981
+
934
982
  .ncua-dropdown {
935
983
  position: relative;
936
984
  display: inline-block;
@@ -1514,6 +1562,9 @@ button {
1514
1562
  .ncua-modal__header--horizontal .ncua-modal__title {
1515
1563
  flex: 1;
1516
1564
  }
1565
+ .ncua-modal__header--close-button.ncua-modal__header--left {
1566
+ padding: 20px 56px 20px 16px;
1567
+ }
1517
1568
 
1518
1569
  .ncua-modal__title {
1519
1570
  display: flex;
@@ -1536,22 +1587,21 @@ button {
1536
1587
 
1537
1588
  .ncua-modal__close-button {
1538
1589
  position: absolute;
1539
- top: 16px;
1540
- right: 20px;
1541
- width: 24px;
1542
- height: 24px;
1590
+ top: 10px;
1591
+ right: 16px;
1543
1592
  display: flex;
1544
1593
  align-items: center;
1545
1594
  justify-content: center;
1546
1595
  background: transparent;
1547
1596
  border: none;
1548
1597
  cursor: pointer;
1549
- padding: 0;
1598
+ padding: 8px;
1550
1599
  color: var(--gray-400);
1551
1600
  border-radius: 8px;
1552
1601
  }
1553
- .ncua-modal__close-button:hover {
1554
- background-color: var(--gray-50);
1602
+ .ncua-modal__close-button svg {
1603
+ width: 20px;
1604
+ height: 20px;
1555
1605
  }
1556
1606
 
1557
1607
  .ncua-modal__content {
@@ -2050,7 +2100,7 @@ button {
2050
2100
  .ncua-radio-field__support-text {
2051
2101
  color: var(--gray-400);
2052
2102
  }
2053
- .ncua-radio-field--md .ncua-radio-field__text {
2103
+ .ncua-radio-field--md .ncua-radio-field__text, .ncua-radio-field--md .ncua-radio-field__support-text {
2054
2104
  font-size: var(--font-size-sm);
2055
2105
  line-height: var(--line-heights-sm);
2056
2106
  }
@@ -2095,24 +2145,9 @@ button {
2095
2145
  white-space: nowrap;
2096
2146
  word-wrap: break-word;
2097
2147
  }
2098
- .ncua-tag > svg {
2148
+ .ncua-tag > svg, .ncua-tag > .ncua-dot {
2099
2149
  margin-right: 4px;
2100
2150
  }
2101
- .ncua-tag--dot .ncua-tag__text {
2102
- position: relative;
2103
- padding-left: 12px;
2104
- }
2105
- .ncua-tag--dot .ncua-tag__text::before {
2106
- position: absolute;
2107
- top: 50%;
2108
- left: 0;
2109
- content: "";
2110
- transform: translateY(-50%);
2111
- width: 6px;
2112
- height: 6px;
2113
- background-color: var(--primary-red-500);
2114
- border-radius: 50%;
2115
- }
2116
2151
  .ncua-tag__count {
2117
2152
  display: inline-flex;
2118
2153
  align-items: center;
@@ -2339,34 +2374,30 @@ button {
2339
2374
  .ncua-select.destructive .ncua-select__content:focus-within {
2340
2375
  box-shadow: var(--shadow-xs-focused-4px-error-100);
2341
2376
  }
2342
- .ncua-select__destructive-icon {
2343
- position: absolute;
2344
- top: 50%;
2345
- right: 25px;
2346
- width: 14px;
2347
- height: 14px;
2348
- font-size: 0;
2349
- color: var(--primary-red-600);
2350
- transform: translateY(-50%);
2351
- }
2352
2377
  .ncua-select--xs {
2353
2378
  height: var(--select-height-xs);
2354
2379
  border-radius: 6px;
2355
- padding-right: 28px;
2380
+ padding-inline: 10px 28px;
2356
2381
  }
2357
2382
  .ncua-select--xs > .ncua-select__tag {
2358
2383
  font-size: var(--font-size-xs);
2359
2384
  font-weight: var(--font-weights-commerce-sans-0);
2360
2385
  }
2386
+ .ncua-select--xs + .ncua-hint-text {
2387
+ margin-block-start: 4px;
2388
+ }
2361
2389
  .ncua-select--sm {
2362
2390
  height: var(--select-height-sm);
2363
2391
  border-radius: 6px;
2364
- padding-right: 30px;
2392
+ padding-inline: 12px 30px;
2365
2393
  }
2366
2394
  .ncua-select--sm > .ncua-select__tag {
2367
2395
  font-size: var(--font-size-sm);
2368
2396
  font-weight: var(--font-weights-commerce-sans-0);
2369
2397
  }
2398
+ .ncua-select--sm + .ncua-hint-text {
2399
+ margin-block-start: 6px;
2400
+ }
2370
2401
  .ncua-select--sm.ncua-select__content::after {
2371
2402
  width: 16px;
2372
2403
  height: 16px;
@@ -2376,12 +2407,15 @@ button {
2376
2407
  min-width: 132px;
2377
2408
  height: var(--select-height-md);
2378
2409
  border-radius: 8px;
2379
- padding-right: 30px;
2410
+ padding-inline: 12px 30px;
2380
2411
  }
2381
2412
  .ncua-select--md > .ncua-select__tag {
2382
2413
  font-size: var(--font-size-sm);
2383
2414
  font-weight: var(--font-weights-commerce-sans-1);
2384
2415
  }
2416
+ .ncua-select--md + .ncua-hint-text {
2417
+ margin-block-start: 6px;
2418
+ }
2385
2419
  .ncua-select--md.ncua-select__content::after {
2386
2420
  width: 16px;
2387
2421
  height: 16px;
@@ -2413,8 +2447,9 @@ button {
2413
2447
  padding-right: 18px;
2414
2448
  }
2415
2449
  .ncua-select .ncua-hint-text {
2416
- margin-block-start: 6px;
2417
- font-size: var(--font-size-xxxs);
2450
+ font-size: var(--font-size-xxs);
2451
+ line-height: var(--line-heights-xxs);
2452
+ color: var(--gray-400);
2418
2453
  }
2419
2454
 
2420
2455
  .ncua-pagination {
@@ -2760,7 +2795,7 @@ button {
2760
2795
  display: inline-flex;
2761
2796
  }
2762
2797
  .ncua-date-picker .flatpickr-wrapper {
2763
- border: 1px solid var(--gray-200);
2798
+ outline: 1px solid var(--gray-200);
2764
2799
  border-radius: 6px;
2765
2800
  font-weight: 400;
2766
2801
  background: var(--base-white);
@@ -2893,15 +2928,21 @@ button {
2893
2928
  .ncua-date-picker .flatpickr-day.today {
2894
2929
  border-color: var(--gray-600);
2895
2930
  }
2896
- .ncua-date-picker--sm .flatpickr-wrapper {
2931
+ .ncua-date-picker--sm {
2897
2932
  width: 138px;
2898
2933
  height: 28px;
2934
+ }
2935
+ .ncua-date-picker--sm .flatpickr-wrapper {
2936
+ height: 100%;
2899
2937
  padding: 5px 10px;
2900
2938
  font-size: var(--font-size-xs);
2901
2939
  }
2902
- .ncua-date-picker--md .flatpickr-wrapper {
2940
+ .ncua-date-picker--md {
2903
2941
  width: 156px;
2904
2942
  height: 36px;
2943
+ }
2944
+ .ncua-date-picker--md .flatpickr-wrapper {
2945
+ height: 100%;
2905
2946
  padding: 7px 12px;
2906
2947
  font-size: var(--font-size-sm);
2907
2948
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncds/ui-admin",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "nhn-commerce의 어드민 디자인 시스템입니다.",
5
5
  "scripts": {
6
6
  "barrel": "node barrel.js",