@x-plat/design-system 0.8.3 → 0.10.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/AutoResizeTextArea/index.cjs +140 -4
- package/dist/components/AutoResizeTextArea/index.css +38 -0
- package/dist/components/AutoResizeTextArea/index.d.cts +4 -0
- package/dist/components/AutoResizeTextArea/index.d.ts +4 -0
- package/dist/components/AutoResizeTextArea/index.js +140 -4
- package/dist/components/Badge/index.cjs +5 -1
- package/dist/components/Badge/index.css +1 -0
- package/dist/components/Badge/index.d.cts +1 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.js +5 -1
- package/dist/components/Box/index.d.cts +3 -0
- package/dist/components/Box/index.d.ts +3 -0
- package/dist/components/Chart/index.cjs +7 -6
- package/dist/components/Chart/index.d.cts +12 -1
- package/dist/components/Chart/index.d.ts +12 -1
- package/dist/components/Chart/index.js +7 -6
- package/dist/components/ChatInput/index.cjs +150 -9
- package/dist/components/ChatInput/index.css +38 -0
- package/dist/components/ChatInput/index.d.cts +9 -0
- package/dist/components/ChatInput/index.d.ts +9 -0
- package/dist/components/ChatInput/index.js +151 -10
- package/dist/components/CheckBox/index.cjs +137 -6
- package/dist/components/CheckBox/index.css +40 -0
- package/dist/components/CheckBox/index.d.cts +13 -2
- package/dist/components/CheckBox/index.d.ts +13 -2
- package/dist/components/CheckBox/index.js +137 -6
- package/dist/components/Chip/index.d.cts +2 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/DatePicker/index.cjs +76 -62
- package/dist/components/DatePicker/index.css +38 -31
- package/dist/components/DatePicker/index.js +42 -28
- package/dist/components/Drawer/index.d.cts +1 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/FieldMessage/index.cjs +183 -0
- package/dist/components/FieldMessage/index.css +37 -0
- package/dist/components/FieldMessage/index.d.cts +37 -0
- package/dist/components/FieldMessage/index.d.ts +37 -0
- package/dist/components/FieldMessage/index.js +154 -0
- package/dist/components/FileUpload/index.cjs +135 -8
- package/dist/components/FileUpload/index.css +38 -0
- package/dist/components/FileUpload/index.d.cts +9 -0
- package/dist/components/FileUpload/index.d.ts +9 -0
- package/dist/components/FileUpload/index.js +135 -8
- package/dist/components/ImageSelector/index.cjs +153 -11
- package/dist/components/ImageSelector/index.css +38 -0
- package/dist/components/ImageSelector/index.d.cts +6 -0
- package/dist/components/ImageSelector/index.d.ts +6 -0
- package/dist/components/ImageSelector/index.js +153 -11
- package/dist/components/Input/index.cjs +38 -25
- package/dist/components/Input/index.css +38 -31
- package/dist/components/Input/index.d.cts +7 -8
- package/dist/components/Input/index.d.ts +7 -8
- package/dist/components/Input/index.js +36 -23
- package/dist/components/NotificationBadge/index.cjs +5 -1
- package/dist/components/NotificationBadge/index.css +1 -0
- package/dist/components/NotificationBadge/index.d.cts +6 -2
- package/dist/components/NotificationBadge/index.d.ts +6 -2
- package/dist/components/NotificationBadge/index.js +5 -1
- package/dist/components/Pagination/index.cjs +6 -2
- package/dist/components/Pagination/index.css +1 -0
- package/dist/components/Pagination/index.d.cts +13 -2
- package/dist/components/Pagination/index.d.ts +13 -2
- package/dist/components/Pagination/index.js +6 -2
- package/dist/components/Progress/index.cjs +6 -2
- package/dist/components/Progress/index.css +1 -0
- package/dist/components/Progress/index.d.cts +11 -2
- package/dist/components/Progress/index.d.ts +11 -2
- package/dist/components/Progress/index.js +6 -2
- package/dist/components/Radio/index.cjs +158 -10
- package/dist/components/Radio/index.css +40 -0
- package/dist/components/Radio/index.d.cts +14 -2
- package/dist/components/Radio/index.d.ts +14 -2
- package/dist/components/Radio/index.js +158 -10
- package/dist/components/Select/index.cjs +139 -13
- package/dist/components/Select/index.css +38 -0
- package/dist/components/Select/index.d.cts +8 -1
- package/dist/components/Select/index.d.ts +8 -1
- package/dist/components/Select/index.js +139 -13
- package/dist/components/Skeleton/index.d.cts +3 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/Spinner/index.cjs +6 -2
- package/dist/components/Spinner/index.css +1 -0
- package/dist/components/Spinner/index.d.cts +8 -2
- package/dist/components/Spinner/index.d.ts +8 -2
- package/dist/components/Spinner/index.js +6 -2
- package/dist/components/Steps/index.cjs +6 -2
- package/dist/components/Steps/index.css +11 -0
- package/dist/components/Steps/index.d.cts +9 -2
- package/dist/components/Steps/index.d.ts +9 -2
- package/dist/components/Steps/index.js +6 -2
- package/dist/components/Switch/index.cjs +146 -6
- package/dist/components/Switch/index.css +40 -0
- package/dist/components/Switch/index.d.cts +13 -2
- package/dist/components/Switch/index.d.ts +13 -2
- package/dist/components/Switch/index.js +146 -6
- package/dist/components/Tab/index.cjs +4 -3
- package/dist/components/Tab/index.d.cts +12 -1
- package/dist/components/Tab/index.d.ts +12 -1
- package/dist/components/Tab/index.js +4 -3
- package/dist/components/Tag/index.cjs +5 -3
- package/dist/components/Tag/index.d.cts +12 -2
- package/dist/components/Tag/index.d.ts +12 -2
- package/dist/components/Tag/index.js +5 -3
- package/dist/components/TextArea/index.cjs +138 -2
- package/dist/components/TextArea/index.css +38 -0
- package/dist/components/TextArea/index.d.cts +6 -0
- package/dist/components/TextArea/index.d.ts +6 -0
- package/dist/components/TextArea/index.js +138 -2
- package/dist/components/Tooltip/index.cjs +4 -2
- package/dist/components/Tooltip/index.d.cts +11 -1
- package/dist/components/Tooltip/index.d.ts +11 -1
- package/dist/components/Tooltip/index.js +4 -2
- package/dist/components/index.cjs +479 -408
- package/dist/components/index.css +59 -31
- package/dist/components/index.d.cts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +262 -194
- package/dist/index.cjs +484 -413
- package/dist/index.css +59 -31
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +264 -196
- package/dist/status-g_KP3qT6.d.cts +8 -0
- package/dist/status-g_KP3qT6.d.ts +8 -0
- package/dist/validation-Dqo1zqhT.d.cts +13 -0
- package/dist/validation-Dqo1zqhT.d.ts +13 -0
- package/guidelines/AGENT_PROMPT.md +15 -0
- package/guidelines/components/card.md +3 -3
- package/guidelines/components/feedback.md +1 -1
- package/guidelines/components/form.md +26 -0
- package/guidelines/components/navigation.md +16 -15
- package/guidelines/components/overlay.md +43 -4
- package/package.json +1 -1
|
@@ -1435,6 +1435,44 @@
|
|
|
1435
1435
|
color: var(--semantic-text-error);
|
|
1436
1436
|
}
|
|
1437
1437
|
|
|
1438
|
+
/* src/components/FieldMessage/fieldMessage.scss */
|
|
1439
|
+
.lib-xplat-field {
|
|
1440
|
+
display: flex;
|
|
1441
|
+
flex-direction: column;
|
|
1442
|
+
gap: var(--spacing-space-2);
|
|
1443
|
+
}
|
|
1444
|
+
.lib-xplat-field-message-wrap {
|
|
1445
|
+
display: flex;
|
|
1446
|
+
gap: var(--spacing-space-2);
|
|
1447
|
+
margin-left: var(--spacing-space-1);
|
|
1448
|
+
}
|
|
1449
|
+
.lib-xplat-field-message-wrap > .lib-xplat-field-message {
|
|
1450
|
+
display: flex;
|
|
1451
|
+
gap: var(--spacing-space-1);
|
|
1452
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
1453
|
+
font-size: var(--semantic-typo-caption-2-r-size);
|
|
1454
|
+
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
1455
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
1456
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
1457
|
+
align-items: center;
|
|
1458
|
+
user-select: none;
|
|
1459
|
+
}
|
|
1460
|
+
.lib-xplat-field-message-wrap > .lib-xplat-field-message.default {
|
|
1461
|
+
color: var(--semantic-icon-secondary);
|
|
1462
|
+
}
|
|
1463
|
+
.lib-xplat-field-message-wrap > .lib-xplat-field-message.success {
|
|
1464
|
+
color: var(--semantic-text-success);
|
|
1465
|
+
}
|
|
1466
|
+
.lib-xplat-field-message-wrap > .lib-xplat-field-message.warning {
|
|
1467
|
+
color: var(--semantic-text-warning);
|
|
1468
|
+
}
|
|
1469
|
+
.lib-xplat-field-message-wrap > .lib-xplat-field-message.error {
|
|
1470
|
+
color: var(--semantic-text-error);
|
|
1471
|
+
}
|
|
1472
|
+
.lib-xplat-field-message-wrap > .lib-xplat-field-message > .icon {
|
|
1473
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1438
1476
|
/* src/components/AutoResizeTextArea/autoResizeTextArea.scss */
|
|
1439
1477
|
.lib-xplat-auto-resize-textarea-wrapper {
|
|
1440
1478
|
display: flex;
|
|
@@ -2507,6 +2545,7 @@
|
|
|
2507
2545
|
.lib-xplat-checkbox:hover > .checkbox.unchecked {
|
|
2508
2546
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
2509
2547
|
}
|
|
2548
|
+
.lib-xplat-checkbox.primary > .checkbox.checked,
|
|
2510
2549
|
.lib-xplat-checkbox.brand > .checkbox.checked {
|
|
2511
2550
|
background-color: var(--semantic-surface-brand-default);
|
|
2512
2551
|
}
|
|
@@ -2522,6 +2561,7 @@
|
|
|
2522
2561
|
.lib-xplat-checkbox.info > .checkbox.checked {
|
|
2523
2562
|
background-color: var(--semantic-surface-info-default);
|
|
2524
2563
|
}
|
|
2564
|
+
.lib-xplat-checkbox:hover.primary > .checkbox.checked,
|
|
2525
2565
|
.lib-xplat-checkbox:hover.brand > .checkbox.checked {
|
|
2526
2566
|
background-color: var(--semantic-surface-brand-strong);
|
|
2527
2567
|
}
|
|
@@ -2693,37 +2733,6 @@
|
|
|
2693
2733
|
.lib-xplat-input-wrap .lib-xplat-input > .suffix > .wrapper.pointer {
|
|
2694
2734
|
cursor: pointer;
|
|
2695
2735
|
}
|
|
2696
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap {
|
|
2697
|
-
display: flex;
|
|
2698
|
-
gap: var(--spacing-space-2);
|
|
2699
|
-
margin-left: var(--spacing-space-1);
|
|
2700
|
-
}
|
|
2701
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation {
|
|
2702
|
-
display: flex;
|
|
2703
|
-
gap: var(--spacing-space-1);
|
|
2704
|
-
font-family: var(--semantic-typo-caption-2-r-font);
|
|
2705
|
-
font-size: var(--semantic-typo-caption-2-r-size);
|
|
2706
|
-
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
2707
|
-
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
2708
|
-
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
2709
|
-
align-items: center;
|
|
2710
|
-
user-select: none;
|
|
2711
|
-
}
|
|
2712
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.default {
|
|
2713
|
-
color: var(--semantic-icon-secondary);
|
|
2714
|
-
}
|
|
2715
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.success {
|
|
2716
|
-
color: var(--semantic-text-success);
|
|
2717
|
-
}
|
|
2718
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.warning {
|
|
2719
|
-
color: var(--semantic-text-warning);
|
|
2720
|
-
}
|
|
2721
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.error {
|
|
2722
|
-
color: var(--semantic-text-error);
|
|
2723
|
-
}
|
|
2724
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation > .icon {
|
|
2725
|
-
font-size: var(--semantic-typo-label-2-m-size);
|
|
2726
|
-
}
|
|
2727
2736
|
|
|
2728
2737
|
/* src/components/Modal/modal.scss */
|
|
2729
2738
|
.lib-xplat-modal {
|
|
@@ -3905,6 +3914,7 @@
|
|
|
3905
3914
|
.lib-xplat-notification-badge .badge-indicator.info {
|
|
3906
3915
|
background-color: var(--semantic-surface-info-default);
|
|
3907
3916
|
}
|
|
3917
|
+
.lib-xplat-notification-badge .badge-indicator.primary,
|
|
3908
3918
|
.lib-xplat-notification-badge .badge-indicator.brand {
|
|
3909
3919
|
background-color: var(--semantic-surface-brand-default);
|
|
3910
3920
|
}
|
|
@@ -4004,6 +4014,7 @@
|
|
|
4004
4014
|
.lib-xplat-pagination .page-btn svg {
|
|
4005
4015
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
4006
4016
|
}
|
|
4017
|
+
.lib-xplat-pagination.primary .page-btn.active,
|
|
4007
4018
|
.lib-xplat-pagination.brand .page-btn.active {
|
|
4008
4019
|
background-color: var(--semantic-surface-brand-default);
|
|
4009
4020
|
}
|
|
@@ -4077,6 +4088,7 @@
|
|
|
4077
4088
|
border-radius: var(--spacing-radius-full);
|
|
4078
4089
|
transition: width 0.3s ease;
|
|
4079
4090
|
}
|
|
4091
|
+
.lib-xplat-progress.primary .bar,
|
|
4080
4092
|
.lib-xplat-progress.brand .bar {
|
|
4081
4093
|
background-color: var(--semantic-surface-brand-default);
|
|
4082
4094
|
}
|
|
@@ -4179,6 +4191,7 @@
|
|
|
4179
4191
|
border-color: var(--semantic-icon-primary);
|
|
4180
4192
|
background-color: var(--semantic-surface-neutral-secondary);
|
|
4181
4193
|
}
|
|
4194
|
+
.lib-xplat-radio.primary > .circle.checked,
|
|
4182
4195
|
.lib-xplat-radio.brand > .circle.checked {
|
|
4183
4196
|
background-color: var(--semantic-surface-brand-default);
|
|
4184
4197
|
border-color: var(--semantic-surface-brand-default);
|
|
@@ -4199,6 +4212,7 @@
|
|
|
4199
4212
|
background-color: var(--semantic-surface-info-default);
|
|
4200
4213
|
border-color: var(--semantic-surface-info-default);
|
|
4201
4214
|
}
|
|
4215
|
+
.lib-xplat-radio:hover.primary > .circle.checked,
|
|
4202
4216
|
.lib-xplat-radio:hover.brand > .circle.checked {
|
|
4203
4217
|
background-color: var(--semantic-surface-brand-strong);
|
|
4204
4218
|
border-color: var(--semantic-surface-brand-strong);
|
|
@@ -4465,6 +4479,7 @@
|
|
|
4465
4479
|
stroke-dasharray: 42;
|
|
4466
4480
|
stroke-dashoffset: 28;
|
|
4467
4481
|
}
|
|
4482
|
+
.lib-xplat-spinner.primary .indicator,
|
|
4468
4483
|
.lib-xplat-spinner.brand .indicator {
|
|
4469
4484
|
stroke: var(--semantic-surface-brand-default);
|
|
4470
4485
|
}
|
|
@@ -4554,6 +4569,17 @@
|
|
|
4554
4569
|
color: var(--semantic-text-tertiary);
|
|
4555
4570
|
margin-top: 2px;
|
|
4556
4571
|
}
|
|
4572
|
+
.lib-xplat-steps.primary .step-item.completed .step-circle {
|
|
4573
|
+
color: var(--semantic-text-inverse);
|
|
4574
|
+
background-color: var(--semantic-surface-primary-default);
|
|
4575
|
+
}
|
|
4576
|
+
.lib-xplat-steps.primary .step-item.completed::after {
|
|
4577
|
+
background-color: var(--semantic-surface-primary-default);
|
|
4578
|
+
}
|
|
4579
|
+
.lib-xplat-steps.primary .step-item.active .step-circle {
|
|
4580
|
+
color: var(--semantic-text-inverse);
|
|
4581
|
+
background-color: var(--semantic-surface-primary-default);
|
|
4582
|
+
}
|
|
4557
4583
|
.lib-xplat-steps.brand .step-item.completed .step-circle {
|
|
4558
4584
|
color: var(--semantic-text-inverse);
|
|
4559
4585
|
background-color: var(--semantic-surface-brand-default);
|
|
@@ -4750,10 +4776,12 @@
|
|
|
4750
4776
|
pointer-events: none;
|
|
4751
4777
|
cursor: wait;
|
|
4752
4778
|
}
|
|
4779
|
+
.lib-xplat-switch.primary.checked,
|
|
4753
4780
|
.lib-xplat-switch.brand.checked {
|
|
4754
4781
|
background-color: var(--semantic-surface-brand-default);
|
|
4755
4782
|
border-color: var(--semantic-surface-brand-default);
|
|
4756
4783
|
}
|
|
4784
|
+
.lib-xplat-switch.primary.checked:hover:not(.disabled):not(.animating),
|
|
4757
4785
|
.lib-xplat-switch.brand.checked:hover:not(.disabled):not(.animating) {
|
|
4758
4786
|
background-color: var(--semantic-surface-brand-strong);
|
|
4759
4787
|
border-color: var(--semantic-surface-brand-strong);
|
|
@@ -17,6 +17,7 @@ export { Drawer } from './Drawer/index.cjs';
|
|
|
17
17
|
export { Dropdown } from './Dropdown/index.cjs';
|
|
18
18
|
export { default as Editor, EditorProps, EditorToolbarItem } from './Editor/index.cjs';
|
|
19
19
|
export { EmptyState } from './EmptyState/index.cjs';
|
|
20
|
+
export { Field, FieldMessage, hasError } from './FieldMessage/index.cjs';
|
|
20
21
|
export { FileUpload } from './FileUpload/index.cjs';
|
|
21
22
|
export { HtmlTypeWriter, HtmlTypeWriter as HtmlTypewriter } from './HtmlTypeWriter/index.cjs';
|
|
22
23
|
export { IconButton } from './IconButton/index.cjs';
|
|
@@ -45,4 +46,6 @@ export { Tooltip } from './Tooltip/index.cjs';
|
|
|
45
46
|
export { Video, VideoProps } from './Video/index.cjs';
|
|
46
47
|
import 'react';
|
|
47
48
|
import '../attributes-DJIWir_0.cjs';
|
|
49
|
+
import '../validation-Dqo1zqhT.cjs';
|
|
48
50
|
import 'react/jsx-runtime';
|
|
51
|
+
import '../status-g_KP3qT6.cjs';
|
|
@@ -17,6 +17,7 @@ export { Drawer } from './Drawer/index.js';
|
|
|
17
17
|
export { Dropdown } from './Dropdown/index.js';
|
|
18
18
|
export { default as Editor, EditorProps, EditorToolbarItem } from './Editor/index.js';
|
|
19
19
|
export { EmptyState } from './EmptyState/index.js';
|
|
20
|
+
export { Field, FieldMessage, hasError } from './FieldMessage/index.js';
|
|
20
21
|
export { FileUpload } from './FileUpload/index.js';
|
|
21
22
|
export { HtmlTypeWriter, HtmlTypeWriter as HtmlTypewriter } from './HtmlTypeWriter/index.js';
|
|
22
23
|
export { IconButton } from './IconButton/index.js';
|
|
@@ -45,4 +46,6 @@ export { Tooltip } from './Tooltip/index.js';
|
|
|
45
46
|
export { Video, VideoProps } from './Video/index.js';
|
|
46
47
|
import 'react';
|
|
47
48
|
import '../attributes-DJIWir_0.js';
|
|
49
|
+
import '../validation-Dqo1zqhT.js';
|
|
48
50
|
import 'react/jsx-runtime';
|
|
51
|
+
import '../status-g_KP3qT6.js';
|