@haloduck/ui 2.0.38 → 2.0.40
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 +10 -1
- package/fesm2022/haloduck-ui.mjs +481 -169
- package/fesm2022/haloduck-ui.mjs.map +1 -1
- package/index.d.ts +14 -1
- package/package.json +1 -1
- package/public/i18n/haloduck/ko.json +1 -1
- package/src/tailwind.css +189 -1
package/index.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ declare class SelectComponent implements ControlValueAccessor, AfterViewInit, On
|
|
|
109
109
|
placeholder: string;
|
|
110
110
|
atLeastOne: boolean;
|
|
111
111
|
showAll: boolean;
|
|
112
|
+
showAllItems: boolean;
|
|
112
113
|
options: Option[] | null;
|
|
113
114
|
layout: 'horizontal' | 'vertical';
|
|
114
115
|
labelWidth: string;
|
|
@@ -120,9 +121,15 @@ declare class SelectComponent implements ControlValueAccessor, AfterViewInit, On
|
|
|
120
121
|
selectedOptionIds: string[];
|
|
121
122
|
displayedSelectedOptions: Option[];
|
|
122
123
|
private selectedIdToDisplayOption;
|
|
124
|
+
manualInputValues: Record<string, string>;
|
|
125
|
+
activeManualKey: string | null;
|
|
126
|
+
isComposing: boolean;
|
|
123
127
|
onClick(event: MouseEvent): void;
|
|
124
128
|
onKeyDown(event: KeyboardEvent): void;
|
|
125
129
|
onDeselectOption(event: Event, option: Option): void;
|
|
130
|
+
onToggleOption(option: Option): void;
|
|
131
|
+
isOptionSelected(option: Option): boolean;
|
|
132
|
+
private isIdExclusive;
|
|
126
133
|
getSelectedValue(): string | string[] | null;
|
|
127
134
|
onChange: (_value: any) => void;
|
|
128
135
|
onTouched: () => void;
|
|
@@ -135,8 +142,14 @@ declare class SelectComponent implements ControlValueAccessor, AfterViewInit, On
|
|
|
135
142
|
ngOnChanges(changes: SimpleChanges): void;
|
|
136
143
|
private recomputeSelectedOptions;
|
|
137
144
|
private isManualSelection;
|
|
145
|
+
getManualKey(option: Option): string;
|
|
146
|
+
seedManualInputs(): void;
|
|
147
|
+
onManualInputChange(option: Option, value: string): void;
|
|
148
|
+
onCompositionStart(): void;
|
|
149
|
+
onCompositionEnd(option: Option, event: Event): void;
|
|
150
|
+
onManualInputBlur(option: Option): void;
|
|
138
151
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
139
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "haloduck-select", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "asButton": { "alias": "asButton"; "required": false; }; "useIcon": { "alias": "useIcon"; "required": false; }; "useFilter": { "alias": "useFilter"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "atLeastOne": { "alias": "atLeastOne"; "required": false; }; "showAll": { "alias": "showAll"; "required": false; }; "options": { "alias": "options"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, ["*", "buttonIcon"], true, never>;
|
|
152
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "haloduck-select", never, { "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "asButton": { "alias": "asButton"; "required": false; }; "useIcon": { "alias": "useIcon"; "required": false; }; "useFilter": { "alias": "useFilter"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "atLeastOne": { "alias": "atLeastOne"; "required": false; }; "showAll": { "alias": "showAll"; "required": false; }; "showAllItems": { "alias": "showAllItems"; "required": false; }; "options": { "alias": "options"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "labelWidth": { "alias": "labelWidth"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selectedChange": "selectedChange"; }, never, ["*", "buttonIcon"], true, never>;
|
|
140
153
|
}
|
|
141
154
|
|
|
142
155
|
interface DateRange {
|
package/package.json
CHANGED
package/src/tailwind.css
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
--color-white: #fff;
|
|
39
39
|
--spacing: 0.25rem;
|
|
40
40
|
--breakpoint-xl: 80rem;
|
|
41
|
+
--container-xs: 20rem;
|
|
41
42
|
--container-md: 28rem;
|
|
42
43
|
--text-xs: 0.75rem;
|
|
43
44
|
--text-xs--line-height: calc(1 / 0.75);
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
--color-light-on-background: #091057;
|
|
80
81
|
--color-light-inactive: #d4c9be;
|
|
81
82
|
--color-light-on-inactive: #877f78;
|
|
82
|
-
--color-light-alternative: #
|
|
83
|
+
--color-light-alternative: #efefef;
|
|
83
84
|
--color-light-on-alternative: #625a56;
|
|
84
85
|
--color-dark-primary: #e91e63;
|
|
85
86
|
--color-dark-on-primary: #fff2eb;
|
|
@@ -297,6 +298,9 @@
|
|
|
297
298
|
.bottom-2 {
|
|
298
299
|
bottom: calc(var(--spacing) * 2);
|
|
299
300
|
}
|
|
301
|
+
.left-1\/2 {
|
|
302
|
+
left: calc(1/2 * 100%);
|
|
303
|
+
}
|
|
300
304
|
.isolate {
|
|
301
305
|
isolation: isolate;
|
|
302
306
|
}
|
|
@@ -306,6 +310,9 @@
|
|
|
306
310
|
.z-40 {
|
|
307
311
|
z-index: 40;
|
|
308
312
|
}
|
|
313
|
+
.z-1100 {
|
|
314
|
+
z-index: 1100;
|
|
315
|
+
}
|
|
309
316
|
.container {
|
|
310
317
|
width: 100%;
|
|
311
318
|
@media (width >= 40rem) {
|
|
@@ -393,6 +400,9 @@
|
|
|
393
400
|
.hidden {
|
|
394
401
|
display: none;
|
|
395
402
|
}
|
|
403
|
+
.inline {
|
|
404
|
+
display: inline;
|
|
405
|
+
}
|
|
396
406
|
.inline-block {
|
|
397
407
|
display: inline-block;
|
|
398
408
|
}
|
|
@@ -495,6 +505,9 @@
|
|
|
495
505
|
.w-\[2\.4rem\] {
|
|
496
506
|
width: 2.4rem;
|
|
497
507
|
}
|
|
508
|
+
.w-\[300px\] {
|
|
509
|
+
width: 300px;
|
|
510
|
+
}
|
|
498
511
|
.w-full {
|
|
499
512
|
width: 100%;
|
|
500
513
|
}
|
|
@@ -507,6 +520,9 @@
|
|
|
507
520
|
.max-w-md {
|
|
508
521
|
max-width: var(--container-md);
|
|
509
522
|
}
|
|
523
|
+
.max-w-xs {
|
|
524
|
+
max-width: var(--container-xs);
|
|
525
|
+
}
|
|
510
526
|
.min-w-96 {
|
|
511
527
|
min-width: calc(var(--spacing) * 96);
|
|
512
528
|
}
|
|
@@ -534,6 +550,10 @@
|
|
|
534
550
|
.origin-top-right {
|
|
535
551
|
transform-origin: top right;
|
|
536
552
|
}
|
|
553
|
+
.-translate-x-1\/2 {
|
|
554
|
+
--tw-translate-x: calc(calc(1/2 * 100%) * -1);
|
|
555
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
556
|
+
}
|
|
537
557
|
.scale-100 {
|
|
538
558
|
--tw-scale-x: 100%;
|
|
539
559
|
--tw-scale-y: 100%;
|
|
@@ -552,12 +572,18 @@
|
|
|
552
572
|
.animate-spin {
|
|
553
573
|
animation: var(--animate-spin);
|
|
554
574
|
}
|
|
575
|
+
.cursor-not-allowed {
|
|
576
|
+
cursor: not-allowed;
|
|
577
|
+
}
|
|
555
578
|
.cursor-pointer {
|
|
556
579
|
cursor: pointer;
|
|
557
580
|
}
|
|
558
581
|
.resize {
|
|
559
582
|
resize: both;
|
|
560
583
|
}
|
|
584
|
+
.appearance-none {
|
|
585
|
+
appearance: none;
|
|
586
|
+
}
|
|
561
587
|
.grid-cols-7 {
|
|
562
588
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
563
589
|
}
|
|
@@ -600,6 +626,9 @@
|
|
|
600
626
|
.gap-4 {
|
|
601
627
|
gap: calc(var(--spacing) * 4);
|
|
602
628
|
}
|
|
629
|
+
.gap-6 {
|
|
630
|
+
gap: calc(var(--spacing) * 6);
|
|
631
|
+
}
|
|
603
632
|
.gap-8 {
|
|
604
633
|
gap: calc(var(--spacing) * 8);
|
|
605
634
|
}
|
|
@@ -1144,9 +1173,15 @@
|
|
|
1144
1173
|
.line-through {
|
|
1145
1174
|
text-decoration-line: line-through;
|
|
1146
1175
|
}
|
|
1176
|
+
.accent-light-primary {
|
|
1177
|
+
accent-color: var(--color-light-primary);
|
|
1178
|
+
}
|
|
1147
1179
|
.opacity-0 {
|
|
1148
1180
|
opacity: 0%;
|
|
1149
1181
|
}
|
|
1182
|
+
.opacity-60 {
|
|
1183
|
+
opacity: 60%;
|
|
1184
|
+
}
|
|
1150
1185
|
.opacity-100 {
|
|
1151
1186
|
opacity: 100%;
|
|
1152
1187
|
}
|
|
@@ -1242,6 +1277,67 @@
|
|
|
1242
1277
|
color: var(--color-light-inactive);
|
|
1243
1278
|
}
|
|
1244
1279
|
}
|
|
1280
|
+
.before\:absolute {
|
|
1281
|
+
&::before {
|
|
1282
|
+
content: var(--tw-content);
|
|
1283
|
+
position: absolute;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
.before\:inset-0 {
|
|
1287
|
+
&::before {
|
|
1288
|
+
content: var(--tw-content);
|
|
1289
|
+
inset: calc(var(--spacing) * 0);
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
.before\:inset-\[4px\] {
|
|
1293
|
+
&::before {
|
|
1294
|
+
content: var(--tw-content);
|
|
1295
|
+
inset: 4px;
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
.before\:rounded-full {
|
|
1299
|
+
&::before {
|
|
1300
|
+
content: var(--tw-content);
|
|
1301
|
+
border-radius: calc(infinity * 1px);
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
.before\:bg-light-on-primary {
|
|
1305
|
+
&::before {
|
|
1306
|
+
content: var(--tw-content);
|
|
1307
|
+
background-color: var(--color-light-on-primary);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
.before\:bg-\[url\(\'data\:image\/svg\+xml\;base64\,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI\+PHBhdGggZD0iTTEgNEw0LjUgNy41TDExIDEiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8\+PC9zdmc\+\'\)\] {
|
|
1311
|
+
&::before {
|
|
1312
|
+
content: var(--tw-content);
|
|
1313
|
+
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEgNEw0LjUgNy41TDExIDEiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+');
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
.before\:bg-center {
|
|
1317
|
+
&::before {
|
|
1318
|
+
content: var(--tw-content);
|
|
1319
|
+
background-position: center;
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
.before\:bg-no-repeat {
|
|
1323
|
+
&::before {
|
|
1324
|
+
content: var(--tw-content);
|
|
1325
|
+
background-repeat: no-repeat;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
.before\:opacity-0 {
|
|
1329
|
+
&::before {
|
|
1330
|
+
content: var(--tw-content);
|
|
1331
|
+
opacity: 0%;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
.before\:content-\[\'\'\] {
|
|
1335
|
+
&::before {
|
|
1336
|
+
content: var(--tw-content);
|
|
1337
|
+
--tw-content: '';
|
|
1338
|
+
content: var(--tw-content);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1245
1341
|
.first\:rounded-bl-lg {
|
|
1246
1342
|
&:first-child {
|
|
1247
1343
|
border-bottom-left-radius: var(--radius-lg);
|
|
@@ -1262,6 +1358,24 @@
|
|
|
1262
1358
|
background-color: var(--color-light-alternative);
|
|
1263
1359
|
}
|
|
1264
1360
|
}
|
|
1361
|
+
.checked\:border-light-primary {
|
|
1362
|
+
&:checked {
|
|
1363
|
+
border-color: var(--color-light-primary);
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
.checked\:bg-light-primary {
|
|
1367
|
+
&:checked {
|
|
1368
|
+
background-color: var(--color-light-primary);
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
.checked\:before\:opacity-100 {
|
|
1372
|
+
&:checked {
|
|
1373
|
+
&::before {
|
|
1374
|
+
content: var(--tw-content);
|
|
1375
|
+
opacity: 100%;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1265
1379
|
.hover\:scale-105 {
|
|
1266
1380
|
&:hover {
|
|
1267
1381
|
@media (hover: hover) {
|
|
@@ -1375,6 +1489,17 @@
|
|
|
1375
1489
|
}
|
|
1376
1490
|
}
|
|
1377
1491
|
}
|
|
1492
|
+
.focus\:ring-2 {
|
|
1493
|
+
&:focus {
|
|
1494
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1495
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
.focus\:ring-light-primary {
|
|
1499
|
+
&:focus {
|
|
1500
|
+
--tw-ring-color: var(--color-light-primary);
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1378
1503
|
.focus\:outline-2 {
|
|
1379
1504
|
&:focus {
|
|
1380
1505
|
outline-style: var(--tw-outline-style);
|
|
@@ -1480,6 +1605,11 @@
|
|
|
1480
1605
|
padding-inline: calc(var(--spacing) * 8);
|
|
1481
1606
|
}
|
|
1482
1607
|
}
|
|
1608
|
+
.dark\:border-black {
|
|
1609
|
+
@media (prefers-color-scheme: dark) {
|
|
1610
|
+
border-color: var(--color-black);
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1483
1613
|
.dark\:border-dark-inactive {
|
|
1484
1614
|
@media (prefers-color-scheme: dark) {
|
|
1485
1615
|
border-color: var(--color-dark-inactive);
|
|
@@ -1700,6 +1830,11 @@
|
|
|
1700
1830
|
}
|
|
1701
1831
|
}
|
|
1702
1832
|
}
|
|
1833
|
+
.dark\:accent-dark-primary {
|
|
1834
|
+
@media (prefers-color-scheme: dark) {
|
|
1835
|
+
accent-color: var(--color-dark-primary);
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1703
1838
|
.dark\:ring-dark-inactive {
|
|
1704
1839
|
@media (prefers-color-scheme: dark) {
|
|
1705
1840
|
--tw-ring-color: var(--color-dark-inactive);
|
|
@@ -1725,6 +1860,14 @@
|
|
|
1725
1860
|
}
|
|
1726
1861
|
}
|
|
1727
1862
|
}
|
|
1863
|
+
.before\:dark\:bg-dark-on-primary {
|
|
1864
|
+
&::before {
|
|
1865
|
+
content: var(--tw-content);
|
|
1866
|
+
@media (prefers-color-scheme: dark) {
|
|
1867
|
+
background-color: var(--color-dark-on-primary);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1728
1871
|
.dark\:odd\:bg-dark-background {
|
|
1729
1872
|
@media (prefers-color-scheme: dark) {
|
|
1730
1873
|
&:nth-child(odd) {
|
|
@@ -1739,6 +1882,20 @@
|
|
|
1739
1882
|
}
|
|
1740
1883
|
}
|
|
1741
1884
|
}
|
|
1885
|
+
.checked\:dark\:border-dark-primary {
|
|
1886
|
+
&:checked {
|
|
1887
|
+
@media (prefers-color-scheme: dark) {
|
|
1888
|
+
border-color: var(--color-dark-primary);
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
.checked\:dark\:bg-dark-primary {
|
|
1893
|
+
&:checked {
|
|
1894
|
+
@media (prefers-color-scheme: dark) {
|
|
1895
|
+
background-color: var(--color-dark-primary);
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1742
1899
|
.dark\:hover\:border-dark-primary {
|
|
1743
1900
|
@media (prefers-color-scheme: dark) {
|
|
1744
1901
|
&:hover {
|
|
@@ -1787,6 +1944,13 @@
|
|
|
1787
1944
|
}
|
|
1788
1945
|
}
|
|
1789
1946
|
}
|
|
1947
|
+
.dark\:focus\:ring-dark-primary {
|
|
1948
|
+
@media (prefers-color-scheme: dark) {
|
|
1949
|
+
&:focus {
|
|
1950
|
+
--tw-ring-color: var(--color-dark-primary);
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1790
1954
|
.dark\:focus\:outline-dark-primary {
|
|
1791
1955
|
@media (prefers-color-scheme: dark) {
|
|
1792
1956
|
&:focus {
|
|
@@ -1862,6 +2026,21 @@
|
|
|
1862
2026
|
}
|
|
1863
2027
|
}
|
|
1864
2028
|
}
|
|
2029
|
+
@property --tw-translate-x {
|
|
2030
|
+
syntax: "*";
|
|
2031
|
+
inherits: false;
|
|
2032
|
+
initial-value: 0;
|
|
2033
|
+
}
|
|
2034
|
+
@property --tw-translate-y {
|
|
2035
|
+
syntax: "*";
|
|
2036
|
+
inherits: false;
|
|
2037
|
+
initial-value: 0;
|
|
2038
|
+
}
|
|
2039
|
+
@property --tw-translate-z {
|
|
2040
|
+
syntax: "*";
|
|
2041
|
+
inherits: false;
|
|
2042
|
+
initial-value: 0;
|
|
2043
|
+
}
|
|
1865
2044
|
@property --tw-scale-x {
|
|
1866
2045
|
syntax: "*";
|
|
1867
2046
|
inherits: false;
|
|
@@ -2023,6 +2202,11 @@
|
|
|
2023
2202
|
syntax: "*";
|
|
2024
2203
|
inherits: false;
|
|
2025
2204
|
}
|
|
2205
|
+
@property --tw-content {
|
|
2206
|
+
syntax: "*";
|
|
2207
|
+
initial-value: "";
|
|
2208
|
+
inherits: false;
|
|
2209
|
+
}
|
|
2026
2210
|
@keyframes spin {
|
|
2027
2211
|
to {
|
|
2028
2212
|
transform: rotate(360deg);
|
|
@@ -2046,6 +2230,9 @@
|
|
|
2046
2230
|
@layer properties {
|
|
2047
2231
|
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
2048
2232
|
*, ::before, ::after, ::backdrop {
|
|
2233
|
+
--tw-translate-x: 0;
|
|
2234
|
+
--tw-translate-y: 0;
|
|
2235
|
+
--tw-translate-z: 0;
|
|
2049
2236
|
--tw-scale-x: 1;
|
|
2050
2237
|
--tw-scale-y: 1;
|
|
2051
2238
|
--tw-scale-z: 1;
|
|
@@ -2082,6 +2269,7 @@
|
|
|
2082
2269
|
--tw-drop-shadow-alpha: 100%;
|
|
2083
2270
|
--tw-drop-shadow-size: initial;
|
|
2084
2271
|
--tw-duration: initial;
|
|
2272
|
+
--tw-content: "";
|
|
2085
2273
|
}
|
|
2086
2274
|
}
|
|
2087
2275
|
}
|