@x-plat/design-system 0.8.2 → 0.9.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 -3
- package/dist/components/AutoResizeTextArea/index.d.cts +3 -0
- package/dist/components/AutoResizeTextArea/index.d.ts +3 -0
- package/dist/components/AutoResizeTextArea/index.js +140 -4
- package/dist/components/ChatInput/index.cjs +150 -9
- package/dist/components/ChatInput/index.css +38 -3
- package/dist/components/ChatInput/index.d.cts +3 -0
- package/dist/components/ChatInput/index.d.ts +3 -0
- package/dist/components/ChatInput/index.js +151 -10
- package/dist/components/CheckBox/index.cjs +132 -5
- package/dist/components/CheckBox/index.css +38 -0
- package/dist/components/CheckBox/index.d.cts +3 -0
- package/dist/components/CheckBox/index.d.ts +3 -0
- package/dist/components/CheckBox/index.js +132 -5
- package/dist/components/DatePicker/index.cjs +72 -59
- package/dist/components/DatePicker/index.css +38 -34
- package/dist/components/DatePicker/index.js +38 -25
- 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 +3 -0
- package/dist/components/FileUpload/index.d.ts +3 -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 +3 -0
- package/dist/components/ImageSelector/index.d.ts +3 -0
- package/dist/components/ImageSelector/index.js +153 -11
- package/dist/components/Input/index.cjs +38 -25
- package/dist/components/Input/index.css +38 -34
- package/dist/components/Input/index.d.cts +3 -8
- package/dist/components/Input/index.d.ts +3 -8
- package/dist/components/Input/index.js +36 -23
- package/dist/components/Radio/index.cjs +152 -8
- package/dist/components/Radio/index.css +38 -0
- package/dist/components/Radio/index.d.cts +3 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Radio/index.js +152 -8
- package/dist/components/Select/index.cjs +139 -13
- package/dist/components/Select/index.css +38 -0
- package/dist/components/Select/index.d.cts +3 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/index.js +139 -13
- package/dist/components/Switch/index.cjs +140 -4
- package/dist/components/Switch/index.css +38 -0
- package/dist/components/Switch/index.d.cts +3 -0
- package/dist/components/Switch/index.d.ts +3 -0
- package/dist/components/Switch/index.js +140 -4
- package/dist/components/TextArea/index.cjs +138 -2
- package/dist/components/TextArea/index.css +38 -3
- package/dist/components/TextArea/index.d.cts +3 -0
- package/dist/components/TextArea/index.d.ts +3 -0
- package/dist/components/TextArea/index.js +138 -2
- package/dist/components/index.cjs +439 -385
- package/dist/components/index.css +38 -40
- package/dist/components/index.d.cts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +222 -171
- package/dist/index.cjs +444 -390
- package/dist/index.css +38 -40
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +224 -173
- package/dist/validation-Dqo1zqhT.d.cts +13 -0
- package/dist/validation-Dqo1zqhT.d.ts +13 -0
- package/guidelines/components/form.md +26 -0
- 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;
|
|
@@ -1461,9 +1499,6 @@
|
|
|
1461
1499
|
outline: 2px solid transparent;
|
|
1462
1500
|
outline-offset: 2px;
|
|
1463
1501
|
}
|
|
1464
|
-
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
|
|
1465
|
-
border-color: var(--semantic-border-tertiary);
|
|
1466
|
-
}
|
|
1467
1502
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea.disabled {
|
|
1468
1503
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
1469
1504
|
cursor: not-allowed;
|
|
@@ -2640,9 +2675,6 @@
|
|
|
2640
2675
|
outline: 2px solid transparent;
|
|
2641
2676
|
outline-offset: 2px;
|
|
2642
2677
|
}
|
|
2643
|
-
.lib-xplat-input-wrap .lib-xplat-input:has(> input:not(:placeholder-shown)):not(:focus-within) {
|
|
2644
|
-
border-color: var(--semantic-border-tertiary);
|
|
2645
|
-
}
|
|
2646
2678
|
.lib-xplat-input-wrap .lib-xplat-input.sm {
|
|
2647
2679
|
height: var(--spacing-control-height-sm);
|
|
2648
2680
|
font-family: var(--semantic-typo-caption-1-r-font);
|
|
@@ -2699,37 +2731,6 @@
|
|
|
2699
2731
|
.lib-xplat-input-wrap .lib-xplat-input > .suffix > .wrapper.pointer {
|
|
2700
2732
|
cursor: pointer;
|
|
2701
2733
|
}
|
|
2702
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap {
|
|
2703
|
-
display: flex;
|
|
2704
|
-
gap: var(--spacing-space-2);
|
|
2705
|
-
margin-left: var(--spacing-space-1);
|
|
2706
|
-
}
|
|
2707
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation {
|
|
2708
|
-
display: flex;
|
|
2709
|
-
gap: var(--spacing-space-1);
|
|
2710
|
-
font-family: var(--semantic-typo-caption-2-r-font);
|
|
2711
|
-
font-size: var(--semantic-typo-caption-2-r-size);
|
|
2712
|
-
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
2713
|
-
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
2714
|
-
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
2715
|
-
align-items: center;
|
|
2716
|
-
user-select: none;
|
|
2717
|
-
}
|
|
2718
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.default {
|
|
2719
|
-
color: var(--semantic-icon-secondary);
|
|
2720
|
-
}
|
|
2721
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.success {
|
|
2722
|
-
color: var(--semantic-text-success);
|
|
2723
|
-
}
|
|
2724
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.warning {
|
|
2725
|
-
color: var(--semantic-text-warning);
|
|
2726
|
-
}
|
|
2727
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.error {
|
|
2728
|
-
color: var(--semantic-text-error);
|
|
2729
|
-
}
|
|
2730
|
-
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation > .icon {
|
|
2731
|
-
font-size: var(--semantic-typo-label-2-m-size);
|
|
2732
|
-
}
|
|
2733
2734
|
|
|
2734
2735
|
/* src/components/Modal/modal.scss */
|
|
2735
2736
|
.lib-xplat-modal {
|
|
@@ -5271,9 +5272,6 @@
|
|
|
5271
5272
|
outline: 2px solid transparent;
|
|
5272
5273
|
outline-offset: 2px;
|
|
5273
5274
|
}
|
|
5274
|
-
.lib-xplat-textarea-wrap .lib-xplat-textarea:not(:placeholder-shown):not(:focus) {
|
|
5275
|
-
border-color: var(--semantic-border-tertiary);
|
|
5276
|
-
}
|
|
5277
5275
|
.lib-xplat-textarea-wrap .lib-xplat-textarea.disabled {
|
|
5278
5276
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
5279
5277
|
cursor: not-allowed;
|
|
@@ -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,5 @@ 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';
|
|
@@ -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,5 @@ 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';
|