@ncds/ui-admin 0.0.10 → 0.0.12
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/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-admin/assets/styles/style.css +226 -36
- package/dist/ui-admin/index.d.ts +0 -10
- package/dist/ui-admin/index.d.ts.map +1 -1
- package/dist/ui-admin/index.js +0 -110
- package/dist/ui-admin/src/components/button/ButtonGroup.d.ts +1 -1
- package/dist/ui-admin/src/components/button/index.d.ts +0 -1
- package/dist/ui-admin/src/components/button/index.d.ts.map +1 -1
- package/dist/ui-admin/src/components/button/index.js +0 -11
- package/dist/ui-admin/src/components/date-picker/DatePicker.d.ts +13 -0
- package/dist/ui-admin/src/components/date-picker/DatePicker.d.ts.map +1 -0
- package/dist/ui-admin/src/components/date-picker/DatePicker.js +87 -0
- package/dist/ui-admin/src/components/index.d.ts +0 -4
- package/dist/ui-admin/src/components/index.d.ts.map +1 -1
- package/dist/ui-admin/src/components/index.js +0 -44
- package/dist/ui-admin/src/components/pagination/Pagination.d.ts +2 -1
- package/dist/ui-admin/src/components/pagination/Pagination.d.ts.map +1 -1
- package/dist/ui-admin/src/components/pagination/Pagination.js +10 -8
- package/dist/ui-admin/src/components/pagination/index.d.ts +0 -1
- package/dist/ui-admin/src/components/pagination/index.d.ts.map +1 -1
- package/dist/ui-admin/src/components/pagination/index.js +0 -11
- package/package.json +3 -1
- package/dist/ui-admin/src/components/input/index.d.ts +0 -3
- package/dist/ui-admin/src/components/input/index.d.ts.map +0 -1
- package/dist/ui-admin/src/components/input/index.js +0 -27
- package/dist/ui-admin/src/components/shared/hintText/index.d.ts +0 -2
- package/dist/ui-admin/src/components/shared/hintText/index.d.ts.map +0 -1
- package/dist/ui-admin/src/components/shared/hintText/index.js +0 -16
- package/dist/ui-admin/src/components/shared/index.d.ts +0 -3
- package/dist/ui-admin/src/components/shared/index.d.ts.map +0 -1
- package/dist/ui-admin/src/components/shared/index.js +0 -27
- package/dist/ui-admin/src/components/shared/label/index.d.ts +0 -2
- package/dist/ui-admin/src/components/shared/label/index.d.ts.map +0 -1
- package/dist/ui-admin/src/components/shared/label/index.js +0 -16
- package/dist/ui-admin/src/components/spinner/index.d.ts +0 -2
- package/dist/ui-admin/src/components/spinner/index.d.ts.map +0 -1
- package/dist/ui-admin/src/components/spinner/index.js +0 -16
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
--line-heights-sm: 22;
|
|
81
81
|
--line-heights-xs: 18;
|
|
82
82
|
--line-heights-xxs: 14;
|
|
83
|
-
--font-weights-commerce-sans-0:
|
|
84
|
-
--font-weights-commerce-sans-1:
|
|
85
|
-
--font-weights-commerce-sans-2:
|
|
83
|
+
--font-weights-commerce-sans-0: 400;
|
|
84
|
+
--font-weights-commerce-sans-1: 500;
|
|
85
|
+
--font-weights-commerce-sans-2: 700;
|
|
86
86
|
--font-size-xxs: 11px;
|
|
87
87
|
--font-size-xs: 13px;
|
|
88
88
|
--font-size-sm: 14px;
|
|
@@ -153,6 +153,22 @@ table {
|
|
|
153
153
|
border-spacing: 0;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
fieldset {
|
|
157
|
+
border: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
input,
|
|
161
|
+
button,
|
|
162
|
+
select,
|
|
163
|
+
textarea {
|
|
164
|
+
font: inherit;
|
|
165
|
+
color: inherit;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
button {
|
|
169
|
+
border: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
156
172
|
.a11y {
|
|
157
173
|
position: absolute;
|
|
158
174
|
overflow: hidden;
|
|
@@ -213,8 +229,8 @@ table {
|
|
|
213
229
|
}
|
|
214
230
|
|
|
215
231
|
:root {
|
|
216
|
-
--button-height-xxs:
|
|
217
|
-
--button-height-xs:
|
|
232
|
+
--button-height-xxs: 24px;
|
|
233
|
+
--button-height-xs: 28px;
|
|
218
234
|
--button-height-sm: 36px;
|
|
219
235
|
--button-height-md: 40px;
|
|
220
236
|
}
|
|
@@ -1287,13 +1303,6 @@ table {
|
|
|
1287
1303
|
.ncua-pagination {
|
|
1288
1304
|
display: flex;
|
|
1289
1305
|
align-items: center;
|
|
1290
|
-
justify-content: center;
|
|
1291
|
-
}
|
|
1292
|
-
.ncua-pagination__list {
|
|
1293
|
-
display: flex;
|
|
1294
|
-
align-items: center;
|
|
1295
|
-
margin: 0;
|
|
1296
|
-
padding: 0;
|
|
1297
1306
|
}
|
|
1298
1307
|
.ncua-pagination__before {
|
|
1299
1308
|
margin-inline: 4px 8px;
|
|
@@ -1312,6 +1321,8 @@ table {
|
|
|
1312
1321
|
height: 32px;
|
|
1313
1322
|
border-radius: 8px;
|
|
1314
1323
|
border: 0;
|
|
1324
|
+
background-color: transparent;
|
|
1325
|
+
color: var(--gray-500);
|
|
1315
1326
|
cursor: pointer;
|
|
1316
1327
|
}
|
|
1317
1328
|
.ncua-pagination__page-num:hover, .ncua-pagination__page-num:focus, .ncua-pagination__page-num.is-current {
|
|
@@ -1324,33 +1335,41 @@ table {
|
|
|
1324
1335
|
outline: none;
|
|
1325
1336
|
box-shadow: var(--focus-ring-4px-gray-100);
|
|
1326
1337
|
}
|
|
1327
|
-
.ncua-pagination__page-info {
|
|
1328
|
-
display: none;
|
|
1329
|
-
}
|
|
1330
1338
|
.ncua-pagination__next {
|
|
1331
1339
|
margin-inline: 8px 4px;
|
|
1332
1340
|
}
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1341
|
+
.ncua-pagination--pc {
|
|
1342
|
+
justify-content: center;
|
|
1343
|
+
}
|
|
1344
|
+
.ncua-pagination--pc .ncua-pagination__list {
|
|
1345
|
+
display: flex;
|
|
1346
|
+
align-items: center;
|
|
1347
|
+
margin: 0;
|
|
1348
|
+
padding: 0;
|
|
1349
|
+
}
|
|
1350
|
+
.ncua-pagination--pc .ncua-pagination__page-info {
|
|
1351
|
+
display: none;
|
|
1352
|
+
}
|
|
1353
|
+
.ncua-pagination--mo {
|
|
1354
|
+
justify-content: space-between;
|
|
1355
|
+
}
|
|
1356
|
+
.ncua-pagination--mo .ncua-pagination__list {
|
|
1357
|
+
display: none;
|
|
1358
|
+
}
|
|
1359
|
+
.ncua-pagination--mo .ncua-pagination__first,
|
|
1360
|
+
.ncua-pagination--mo .ncua-pagination__last {
|
|
1361
|
+
display: none;
|
|
1362
|
+
}
|
|
1363
|
+
.ncua-pagination--mo .ncua-pagination__page-info {
|
|
1364
|
+
display: flex;
|
|
1365
|
+
align-items: center;
|
|
1366
|
+
margin: 0;
|
|
1367
|
+
font-size: 14px;
|
|
1368
|
+
color: var(--gray-400);
|
|
1369
|
+
}
|
|
1370
|
+
.ncua-pagination--mo .ncua-pagination__current-num {
|
|
1371
|
+
font-style: normal;
|
|
1372
|
+
color: var(--gray-700);
|
|
1354
1373
|
}
|
|
1355
1374
|
|
|
1356
1375
|
@keyframes ncua-spinner-rotate {
|
|
@@ -1435,4 +1454,175 @@ table {
|
|
|
1435
1454
|
height: 100vh;
|
|
1436
1455
|
background-color: rgba(0, 0, 0, 0.5);
|
|
1437
1456
|
z-index: 200;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
.ncua-date-picker {
|
|
1460
|
+
position: relative;
|
|
1461
|
+
}
|
|
1462
|
+
.ncua-date-picker .flatpickr-wrapper {
|
|
1463
|
+
border: 1px solid var(--gray-200);
|
|
1464
|
+
border-radius: 6px;
|
|
1465
|
+
font-weight: 400;
|
|
1466
|
+
background: var(--base-white);
|
|
1467
|
+
box-shadow: var(--shadow-xs);
|
|
1468
|
+
color: var(--gray-700);
|
|
1469
|
+
}
|
|
1470
|
+
.ncua-date-picker .flatpickr-wrapper:focus-within {
|
|
1471
|
+
border-color: var(--gray-400);
|
|
1472
|
+
}
|
|
1473
|
+
.ncua-date-picker__input {
|
|
1474
|
+
width: 100%;
|
|
1475
|
+
height: 100%;
|
|
1476
|
+
padding: 0;
|
|
1477
|
+
border: 0;
|
|
1478
|
+
outline: none;
|
|
1479
|
+
color: inherit;
|
|
1480
|
+
font: inherit;
|
|
1481
|
+
}
|
|
1482
|
+
.ncua-date-picker__input::placeholder {
|
|
1483
|
+
color: var(--gray-700);
|
|
1484
|
+
}
|
|
1485
|
+
.ncua-date-picker__input:disabled {
|
|
1486
|
+
background-color: var(--gray-50);
|
|
1487
|
+
border-color: var(--gray-200);
|
|
1488
|
+
cursor: default;
|
|
1489
|
+
}
|
|
1490
|
+
.ncua-date-picker__input:disabled::placeholder {
|
|
1491
|
+
color: var(--gray-300);
|
|
1492
|
+
}
|
|
1493
|
+
.ncua-date-picker__ico {
|
|
1494
|
+
position: absolute;
|
|
1495
|
+
top: 0;
|
|
1496
|
+
right: 0;
|
|
1497
|
+
bottom: 0;
|
|
1498
|
+
left: auto;
|
|
1499
|
+
display: flex;
|
|
1500
|
+
align-items: center;
|
|
1501
|
+
justify-content: center;
|
|
1502
|
+
padding-right: 12px;
|
|
1503
|
+
}
|
|
1504
|
+
.ncua-date-picker .flatpickr-calendar {
|
|
1505
|
+
max-height: none;
|
|
1506
|
+
padding-block-start: 12px;
|
|
1507
|
+
}
|
|
1508
|
+
.ncua-date-picker .flatpickr-current-month .flatpickr-monthDropdown-months,
|
|
1509
|
+
.ncua-date-picker .numInputWrapper .cur-year {
|
|
1510
|
+
font-size: var(--font-size-sm);
|
|
1511
|
+
font-weight: 700;
|
|
1512
|
+
line-height: 22px;
|
|
1513
|
+
}
|
|
1514
|
+
.ncua-date-picker .numInputWrapper .cur-year {
|
|
1515
|
+
margin-inline-start: 4px;
|
|
1516
|
+
transform: translateY(2px);
|
|
1517
|
+
}
|
|
1518
|
+
.ncua-date-picker .numInputWrapper span {
|
|
1519
|
+
opacity: 1;
|
|
1520
|
+
}
|
|
1521
|
+
.ncua-date-picker .flatpickr-months {
|
|
1522
|
+
justify-content: space-between;
|
|
1523
|
+
margin-inline: auto;
|
|
1524
|
+
margin-block-end: 12px;
|
|
1525
|
+
}
|
|
1526
|
+
.ncua-date-picker .flatpickr-months .flatpickr-prev-month,
|
|
1527
|
+
.ncua-date-picker .flatpickr-months .flatpickr-next-month {
|
|
1528
|
+
position: initial;
|
|
1529
|
+
width: 36px;
|
|
1530
|
+
height: 36px;
|
|
1531
|
+
}
|
|
1532
|
+
.ncua-date-picker .flatpickr-months .flatpickr-month {
|
|
1533
|
+
overflow: visible;
|
|
1534
|
+
flex: none;
|
|
1535
|
+
}
|
|
1536
|
+
.ncua-date-picker .flatpickr-current-month {
|
|
1537
|
+
position: initial;
|
|
1538
|
+
width: auto;
|
|
1539
|
+
display: flex;
|
|
1540
|
+
gap: 4px;
|
|
1541
|
+
}
|
|
1542
|
+
.ncua-date-picker .flatpickr-monthDropdown-months {
|
|
1543
|
+
margin: 0;
|
|
1544
|
+
padding: 0;
|
|
1545
|
+
}
|
|
1546
|
+
.ncua-date-picker .flatpickr-innerContainer {
|
|
1547
|
+
justify-content: center;
|
|
1548
|
+
}
|
|
1549
|
+
.ncua-date-picker .flatpickr-weekdays {
|
|
1550
|
+
margin-inline: auto;
|
|
1551
|
+
}
|
|
1552
|
+
.ncua-date-picker .dayContainer {
|
|
1553
|
+
row-gap: 4px;
|
|
1554
|
+
}
|
|
1555
|
+
.ncua-date-picker .flatpickr-days {
|
|
1556
|
+
justify-content: center;
|
|
1557
|
+
padding-block-end: 12px;
|
|
1558
|
+
}
|
|
1559
|
+
.ncua-date-picker .flatpickr-day:hover {
|
|
1560
|
+
background-color: var(--gray-50);
|
|
1561
|
+
border-color: var(--gray-50);
|
|
1562
|
+
}
|
|
1563
|
+
.ncua-date-picker .flatpickr-day.selected {
|
|
1564
|
+
background-color: var(--gray-500);
|
|
1565
|
+
border-color: var(--gray-500);
|
|
1566
|
+
}
|
|
1567
|
+
.ncua-date-picker .flatpickr-day.today {
|
|
1568
|
+
border-color: var(--gray-600);
|
|
1569
|
+
}
|
|
1570
|
+
.ncua-date-picker--sm .flatpickr-wrapper {
|
|
1571
|
+
width: 138px;
|
|
1572
|
+
height: 28px;
|
|
1573
|
+
padding: 5px 10px;
|
|
1574
|
+
font-size: var(--font-size-xs);
|
|
1575
|
+
}
|
|
1576
|
+
.ncua-date-picker--md .flatpickr-wrapper {
|
|
1577
|
+
width: 156px;
|
|
1578
|
+
height: 36px;
|
|
1579
|
+
padding: 7px 12px;
|
|
1580
|
+
font-size: var(--font-size-sm);
|
|
1581
|
+
}
|
|
1582
|
+
.ncua-date-picker--sm .flatpickr-calendar {
|
|
1583
|
+
width: 248px;
|
|
1584
|
+
}
|
|
1585
|
+
.ncua-date-picker--sm .flatpickr-months,
|
|
1586
|
+
.ncua-date-picker--sm .flatpickr-weekdays,
|
|
1587
|
+
.ncua-date-picker--sm .flatpickr-days {
|
|
1588
|
+
width: 224px;
|
|
1589
|
+
}
|
|
1590
|
+
.ncua-date-picker--sm .dayContainer {
|
|
1591
|
+
max-width: 224px;
|
|
1592
|
+
min-width: 224px;
|
|
1593
|
+
column-gap: 0;
|
|
1594
|
+
font-size: 13px;
|
|
1595
|
+
}
|
|
1596
|
+
.ncua-date-picker--sm .flatpickr-day {
|
|
1597
|
+
max-width: 32px;
|
|
1598
|
+
width: 32px;
|
|
1599
|
+
height: 32px;
|
|
1600
|
+
line-height: 32px;
|
|
1601
|
+
}
|
|
1602
|
+
.ncua-date-picker--md .flatpickr-calendar {
|
|
1603
|
+
width: 343px;
|
|
1604
|
+
}
|
|
1605
|
+
.ncua-date-picker--md .flatpickr-months,
|
|
1606
|
+
.ncua-date-picker--md .flatpickr-weekdays,
|
|
1607
|
+
.ncua-date-picker--md .flatpickr-days {
|
|
1608
|
+
width: 311px;
|
|
1609
|
+
}
|
|
1610
|
+
.ncua-date-picker--md .dayContainer {
|
|
1611
|
+
max-width: 311px;
|
|
1612
|
+
min-width: 311px;
|
|
1613
|
+
column-gap: 9.83px;
|
|
1614
|
+
font-size: 14px;
|
|
1615
|
+
}
|
|
1616
|
+
.ncua-date-picker--md .flatpickr-day {
|
|
1617
|
+
max-width: 36px;
|
|
1618
|
+
width: 36px;
|
|
1619
|
+
height: 36px;
|
|
1620
|
+
line-height: 36px;
|
|
1621
|
+
}
|
|
1622
|
+
.ncua-date-picker--disabled .flatpickr-wrapper,
|
|
1623
|
+
.ncua-date-picker--disabled .ncua-date-picker__input {
|
|
1624
|
+
background-color: var(--gray-50);
|
|
1625
|
+
}
|
|
1626
|
+
.ncua-date-picker--disabled .ncua-date-picker__input {
|
|
1627
|
+
color: var(--gray-300);
|
|
1438
1628
|
}
|
package/dist/ui-admin/index.d.ts
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
export * from './src/components/button';
|
|
2
|
-
export * from './src/components/checkbox';
|
|
3
|
-
export * from './src/components/input';
|
|
4
|
-
export * from './src/components/pagination';
|
|
5
|
-
export * from './src/components/radio';
|
|
6
|
-
export * from './src/components/select';
|
|
7
|
-
export * from './src/components/shared/hintText';
|
|
8
|
-
export * from './src/components/shared/label';
|
|
9
|
-
export * from './src/components/shared';
|
|
10
|
-
export * from './src/components/spinner';
|
|
11
2
|
export * from './src/components/svg';
|
|
12
|
-
export * from './src/components/tooltip';
|
|
13
3
|
export * from './src/components';
|
|
14
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
|
package/dist/ui-admin/index.js
CHANGED
|
@@ -14,105 +14,6 @@ Object.keys(_button).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var _checkbox = require("./src/components/checkbox");
|
|
18
|
-
Object.keys(_checkbox).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _checkbox[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _checkbox[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
var _input = require("./src/components/input");
|
|
29
|
-
Object.keys(_input).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _input[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _input[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
var _pagination = require("./src/components/pagination");
|
|
40
|
-
Object.keys(_pagination).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _pagination[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _pagination[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var _radio = require("./src/components/radio");
|
|
51
|
-
Object.keys(_radio).forEach(function (key) {
|
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (key in exports && exports[key] === _radio[key]) return;
|
|
54
|
-
Object.defineProperty(exports, key, {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _radio[key];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
var _select = require("./src/components/select");
|
|
62
|
-
Object.keys(_select).forEach(function (key) {
|
|
63
|
-
if (key === "default" || key === "__esModule") return;
|
|
64
|
-
if (key in exports && exports[key] === _select[key]) return;
|
|
65
|
-
Object.defineProperty(exports, key, {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () {
|
|
68
|
-
return _select[key];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
var _hintText = require("./src/components/shared/hintText");
|
|
73
|
-
Object.keys(_hintText).forEach(function (key) {
|
|
74
|
-
if (key === "default" || key === "__esModule") return;
|
|
75
|
-
if (key in exports && exports[key] === _hintText[key]) return;
|
|
76
|
-
Object.defineProperty(exports, key, {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return _hintText[key];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
var _label = require("./src/components/shared/label");
|
|
84
|
-
Object.keys(_label).forEach(function (key) {
|
|
85
|
-
if (key === "default" || key === "__esModule") return;
|
|
86
|
-
if (key in exports && exports[key] === _label[key]) return;
|
|
87
|
-
Object.defineProperty(exports, key, {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () {
|
|
90
|
-
return _label[key];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
var _shared = require("./src/components/shared");
|
|
95
|
-
Object.keys(_shared).forEach(function (key) {
|
|
96
|
-
if (key === "default" || key === "__esModule") return;
|
|
97
|
-
if (key in exports && exports[key] === _shared[key]) return;
|
|
98
|
-
Object.defineProperty(exports, key, {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function () {
|
|
101
|
-
return _shared[key];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
var _spinner = require("./src/components/spinner");
|
|
106
|
-
Object.keys(_spinner).forEach(function (key) {
|
|
107
|
-
if (key === "default" || key === "__esModule") return;
|
|
108
|
-
if (key in exports && exports[key] === _spinner[key]) return;
|
|
109
|
-
Object.defineProperty(exports, key, {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function () {
|
|
112
|
-
return _spinner[key];
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
});
|
|
116
17
|
var _svg = require("./src/components/svg");
|
|
117
18
|
Object.keys(_svg).forEach(function (key) {
|
|
118
19
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -124,17 +25,6 @@ Object.keys(_svg).forEach(function (key) {
|
|
|
124
25
|
}
|
|
125
26
|
});
|
|
126
27
|
});
|
|
127
|
-
var _tooltip = require("./src/components/tooltip");
|
|
128
|
-
Object.keys(_tooltip).forEach(function (key) {
|
|
129
|
-
if (key === "default" || key === "__esModule") return;
|
|
130
|
-
if (key in exports && exports[key] === _tooltip[key]) return;
|
|
131
|
-
Object.defineProperty(exports, key, {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
get: function () {
|
|
134
|
-
return _tooltip[key];
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
28
|
var _components = require("./src/components");
|
|
139
29
|
Object.keys(_components).forEach(function (key) {
|
|
140
30
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -51,7 +51,7 @@ export declare const ButtonGroup: {
|
|
|
51
51
|
formNoValidate?: boolean | undefined;
|
|
52
52
|
formTarget?: string | undefined;
|
|
53
53
|
name?: string | undefined;
|
|
54
|
-
type?: "button" | "
|
|
54
|
+
type?: "button" | "reset" | "submit" | undefined;
|
|
55
55
|
value?: string | number | readonly string[] | undefined;
|
|
56
56
|
defaultChecked?: boolean | undefined;
|
|
57
57
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -13,15 +13,4 @@ Object.keys(_Button).forEach(function (key) {
|
|
|
13
13
|
return _Button[key];
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
});
|
|
17
|
-
var _ButtonGroup = require("./ButtonGroup");
|
|
18
|
-
Object.keys(_ButtonGroup).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _ButtonGroup[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _ButtonGroup[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
16
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import 'flatpickr/dist/flatpickr.css';
|
|
2
|
+
import { Options } from 'flatpickr/dist/types/options';
|
|
3
|
+
import { DateTimePickerProps } from 'react-flatpickr';
|
|
4
|
+
import { Size } from '../../../constant/size';
|
|
5
|
+
export type DatePickerProps = {
|
|
6
|
+
size?: Extract<Size, 'sm' | 'md'>;
|
|
7
|
+
shouldFocus?: boolean;
|
|
8
|
+
currentDate: string;
|
|
9
|
+
datePickerOptions?: Options;
|
|
10
|
+
onChangeDate: (date: string) => void;
|
|
11
|
+
} & Omit<DateTimePickerProps, 'size' | 'options' | 'value'>;
|
|
12
|
+
export declare const DatePicker: ({ shouldFocus, currentDate, size, onChangeDate, datePickerOptions, ...attrs }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/date-picker/DatePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,8BAA8B,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,OAAkB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC;AAE5D,eAAO,MAAM,UAAU,kFAOpB,eAAe,4CA6CjB,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DatePicker = void 0;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
+
require("flatpickr/dist/flatpickr.css");
|
|
10
|
+
var _ko = require("flatpickr/dist/l10n/ko");
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
var _reactFlatpickr = _interopRequireDefault(require("react-flatpickr"));
|
|
13
|
+
var _color = require("../../../constant/color");
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
16
|
+
__assign = Object.assign || function (t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
return __assign.apply(this, arguments);
|
|
24
|
+
};
|
|
25
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
28
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
29
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
};
|
|
33
|
+
var DatePicker = function (_a) {
|
|
34
|
+
var _b = _a.shouldFocus,
|
|
35
|
+
shouldFocus = _b === void 0 ? true : _b,
|
|
36
|
+
currentDate = _a.currentDate,
|
|
37
|
+
_c = _a.size,
|
|
38
|
+
size = _c === void 0 ? 'sm' : _c,
|
|
39
|
+
onChangeDate = _a.onChangeDate,
|
|
40
|
+
datePickerOptions = _a.datePickerOptions,
|
|
41
|
+
attrs = __rest(_a, ["shouldFocus", "currentDate", "size", "onChangeDate", "datePickerOptions"]);
|
|
42
|
+
var ref = (0, _react.useRef)(null);
|
|
43
|
+
var onChangeDateHandler = function (dateTimeStamp, dateStr) {
|
|
44
|
+
return onChangeDate(dateStr);
|
|
45
|
+
};
|
|
46
|
+
var options = __assign({
|
|
47
|
+
mode: 'single',
|
|
48
|
+
static: true,
|
|
49
|
+
locale: _ko.Korean,
|
|
50
|
+
dateFormat: 'Y-m-d',
|
|
51
|
+
clickOpens: true,
|
|
52
|
+
onChange: onChangeDateHandler,
|
|
53
|
+
allowInvalidPreload: true
|
|
54
|
+
}, datePickerOptions);
|
|
55
|
+
var svgSize = size === 'sm' ? 14 : 16;
|
|
56
|
+
return (0, _jsxRuntime.jsxs)("div", __assign({
|
|
57
|
+
className: (0, _classnames.default)('ncua-date-picker', "ncua-date-picker--".concat(size), {
|
|
58
|
+
'ncua-date-picker--disabled': attrs.disabled
|
|
59
|
+
})
|
|
60
|
+
}, {
|
|
61
|
+
children: [(0, _jsxRuntime.jsx)(_reactFlatpickr.default, __assign({}, attrs, {
|
|
62
|
+
ref: ref,
|
|
63
|
+
className: (0, _classnames.default)('ncua-date-picker__input'),
|
|
64
|
+
options: options,
|
|
65
|
+
value: currentDate
|
|
66
|
+
})), (0, _jsxRuntime.jsx)("span", __assign({
|
|
67
|
+
className: "ncua-date-picker__ico"
|
|
68
|
+
}, {
|
|
69
|
+
children: (0, _jsxRuntime.jsx)("svg", __assign({
|
|
70
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
71
|
+
width: svgSize,
|
|
72
|
+
height: svgSize,
|
|
73
|
+
viewBox: "0 0 16 16",
|
|
74
|
+
fill: "none"
|
|
75
|
+
}, {
|
|
76
|
+
children: (0, _jsxRuntime.jsx)("path", {
|
|
77
|
+
d: "M14 6.66671H2M10.6667 1.33337V4.00004M5.33333 1.33337V4.00004M5.2 14.6667H10.8C11.9201 14.6667 12.4802 14.6667 12.908 14.4487C13.2843 14.257 13.5903 13.951 13.782 13.5747C14 13.1469 14 12.5868 14 11.4667V5.86671C14 4.7466 14 4.18655 13.782 3.75873C13.5903 3.3824 13.2843 3.07644 12.908 2.88469C12.4802 2.66671 11.9201 2.66671 10.8 2.66671H5.2C4.0799 2.66671 3.51984 2.66671 3.09202 2.88469C2.71569 3.07644 2.40973 3.3824 2.21799 3.75873C2 4.18655 2 4.7466 2 5.86671V11.4667C2 12.5868 2 13.1469 2.21799 13.5747C2.40973 13.951 2.71569 14.257 3.09202 14.4487C3.51984 14.6667 4.0799 14.6667 5.2 14.6667Z",
|
|
78
|
+
stroke: attrs.disabled ? _color.COLOR.gray300 : 'black',
|
|
79
|
+
strokeWidth: "1.33333",
|
|
80
|
+
strokeLinecap: "round",
|
|
81
|
+
strokeLinejoin: "round"
|
|
82
|
+
})
|
|
83
|
+
}))
|
|
84
|
+
}))]
|
|
85
|
+
}));
|
|
86
|
+
};
|
|
87
|
+
exports.DatePicker = DatePicker;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export * from './button';
|
|
2
2
|
export * from './checkbox';
|
|
3
|
-
export * from './input';
|
|
4
|
-
export * from './pagination';
|
|
5
3
|
export * from './radio';
|
|
6
4
|
export * from './select';
|
|
7
|
-
export * from './shared';
|
|
8
|
-
export * from './spinner';
|
|
9
5
|
export * from './svg';
|
|
10
6
|
export * from './tooltip';
|
|
11
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC"}
|
|
@@ -25,28 +25,6 @@ Object.keys(_checkbox).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
-
var _input = require("./input");
|
|
29
|
-
Object.keys(_input).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _input[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _input[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
var _pagination = require("./pagination");
|
|
40
|
-
Object.keys(_pagination).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _pagination[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _pagination[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
28
|
var _radio = require("./radio");
|
|
51
29
|
Object.keys(_radio).forEach(function (key) {
|
|
52
30
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -69,28 +47,6 @@ Object.keys(_select).forEach(function (key) {
|
|
|
69
47
|
}
|
|
70
48
|
});
|
|
71
49
|
});
|
|
72
|
-
var _shared = require("./shared");
|
|
73
|
-
Object.keys(_shared).forEach(function (key) {
|
|
74
|
-
if (key === "default" || key === "__esModule") return;
|
|
75
|
-
if (key in exports && exports[key] === _shared[key]) return;
|
|
76
|
-
Object.defineProperty(exports, key, {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return _shared[key];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
var _spinner = require("./spinner");
|
|
84
|
-
Object.keys(_spinner).forEach(function (key) {
|
|
85
|
-
if (key === "default" || key === "__esModule") return;
|
|
86
|
-
if (key in exports && exports[key] === _spinner[key]) return;
|
|
87
|
-
Object.defineProperty(exports, key, {
|
|
88
|
-
enumerable: true,
|
|
89
|
-
get: function () {
|
|
90
|
-
return _spinner[key];
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
50
|
var _svg = require("./svg");
|
|
95
51
|
Object.keys(_svg).forEach(function (key) {
|
|
96
52
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -4,6 +4,7 @@ type CommonPaginationProps = {
|
|
|
4
4
|
itemCountPerPage?: number;
|
|
5
5
|
pageCount?: number;
|
|
6
6
|
currentPage: number;
|
|
7
|
+
breakPoint?: 'pc' | 'mo';
|
|
7
8
|
onPageChange?: (page: number) => void;
|
|
8
9
|
};
|
|
9
10
|
type PaginationButtonProps = CommonPaginationProps & {
|
|
@@ -17,6 +18,6 @@ type PaginationAnchorProps = CommonPaginationProps & {
|
|
|
17
18
|
target?: string;
|
|
18
19
|
};
|
|
19
20
|
type PaginationProps = PaginationButtonProps | PaginationAnchorProps;
|
|
20
|
-
export declare const Pagination: ({ className, totalCount, itemCountPerPage, pageCount, currentPage, as, onPageChange, ...restProps }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const Pagination: ({ className, totalCount, itemCountPerPage, pageCount, currentPage, as, breakPoint, onPageChange, ...restProps }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export {};
|
|
22
23
|
//# sourceMappingURL=Pagination.d.ts.map
|