@x-plat/design-system 0.10.0 → 0.12.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 +14 -5
- package/dist/components/AutoResizeTextArea/index.css +15 -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 +14 -5
- package/dist/components/Badge/index.d.cts +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/ChatInput/index.cjs +20 -7
- package/dist/components/ChatInput/index.css +15 -0
- package/dist/components/ChatInput/index.d.cts +4 -0
- package/dist/components/ChatInput/index.d.ts +4 -0
- package/dist/components/ChatInput/index.js +20 -7
- package/dist/components/CheckBox/index.cjs +8 -3
- package/dist/components/CheckBox/index.css +15 -0
- package/dist/components/CheckBox/index.d.cts +1 -1
- package/dist/components/CheckBox/index.d.ts +1 -1
- package/dist/components/CheckBox/index.js +8 -3
- package/dist/components/DatePicker/index.cjs +179 -64
- package/dist/components/DatePicker/index.css +19 -0
- package/dist/components/DatePicker/index.js +179 -64
- package/dist/components/Drawer/index.cjs +83 -4
- package/dist/components/Drawer/index.js +83 -4
- package/dist/components/Dropdown/index.cjs +57 -16
- package/dist/components/Dropdown/index.css +3 -0
- package/dist/components/Dropdown/index.js +57 -16
- package/dist/components/Editor/index.cjs +779 -50
- package/dist/components/Editor/index.css +100 -0
- package/dist/components/Editor/index.d.cts +1 -1
- package/dist/components/Editor/index.d.ts +1 -1
- package/dist/components/Editor/index.js +779 -50
- package/dist/components/FieldMessage/index.cjs +8 -3
- package/dist/components/FieldMessage/index.css +15 -0
- package/dist/components/FieldMessage/index.d.cts +11 -4
- package/dist/components/FieldMessage/index.d.ts +11 -4
- package/dist/components/FieldMessage/index.js +8 -3
- package/dist/components/FileUpload/index.cjs +8 -3
- package/dist/components/FileUpload/index.css +15 -0
- package/dist/components/FileUpload/index.js +8 -3
- package/dist/components/ImageSelector/index.cjs +8 -3
- package/dist/components/ImageSelector/index.css +15 -0
- package/dist/components/ImageSelector/index.js +8 -3
- package/dist/components/Input/index.cjs +15 -5
- package/dist/components/Input/index.css +15 -0
- package/dist/components/Input/index.d.cts +4 -0
- package/dist/components/Input/index.d.ts +4 -0
- package/dist/components/Input/index.js +15 -5
- package/dist/components/Modal/index.cjs +84 -5
- package/dist/components/Modal/index.js +84 -5
- package/dist/components/NotificationBadge/index.d.cts +1 -1
- package/dist/components/NotificationBadge/index.d.ts +1 -1
- package/dist/components/Pagination/index.d.cts +1 -1
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PopOver/index.cjs +55 -13
- package/dist/components/PopOver/index.css +3 -0
- package/dist/components/PopOver/index.js +55 -13
- package/dist/components/Progress/index.d.cts +1 -1
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/Radio/index.cjs +8 -3
- package/dist/components/Radio/index.css +15 -0
- package/dist/components/Radio/index.d.cts +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.js +8 -3
- package/dist/components/Select/index.cjs +120 -39
- package/dist/components/Select/index.css +57 -0
- package/dist/components/Select/index.d.cts +11 -0
- package/dist/components/Select/index.d.ts +11 -0
- package/dist/components/Select/index.js +120 -39
- package/dist/components/Spinner/index.d.cts +1 -1
- package/dist/components/Spinner/index.d.ts +1 -1
- package/dist/components/Stat/index.cjs +84 -0
- package/dist/components/Stat/index.css +96 -0
- package/dist/components/Stat/index.d.cts +37 -0
- package/dist/components/Stat/index.d.ts +37 -0
- package/dist/components/Stat/index.js +57 -0
- package/dist/components/Steps/index.d.cts +1 -1
- package/dist/components/Steps/index.d.ts +1 -1
- package/dist/components/Switch/index.cjs +14 -5
- package/dist/components/Switch/index.css +15 -0
- package/dist/components/Switch/index.d.cts +6 -1
- package/dist/components/Switch/index.d.ts +6 -1
- package/dist/components/Switch/index.js +14 -5
- package/dist/components/Tab/index.cjs +49 -25
- package/dist/components/Tab/index.css +4 -0
- package/dist/components/Tab/index.js +49 -25
- package/dist/components/TextArea/index.cjs +14 -4
- package/dist/components/TextArea/index.css +15 -0
- package/dist/components/TextArea/index.d.cts +4 -0
- package/dist/components/TextArea/index.d.ts +4 -0
- package/dist/components/TextArea/index.js +14 -4
- package/dist/components/TimePicker/index.cjs +461 -0
- package/dist/components/TimePicker/index.css +175 -0
- package/dist/components/TimePicker/index.d.cts +42 -0
- package/dist/components/TimePicker/index.d.ts +42 -0
- package/dist/components/TimePicker/index.js +424 -0
- package/dist/components/index.cjs +1500 -398
- package/dist/components/index.css +385 -0
- package/dist/components/index.d.cts +3 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +1498 -398
- package/dist/index.cjs +1524 -422
- package/dist/index.css +385 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1522 -422
- package/dist/status-njWqQWFV.d.cts +20 -0
- package/dist/status-njWqQWFV.d.ts +20 -0
- package/guidelines/AGENT_PROMPT.md +3 -3
- package/guidelines/Guidelines.md +3 -0
- package/guidelines/components/editor.md +141 -0
- package/guidelines/components/form.md +19 -0
- package/guidelines/components/stat.md +31 -0
- package/guidelines/components/time-picker.md +49 -0
- package/package.json +1 -1
- package/dist/status-g_KP3qT6.d.cts +0 -8
- package/dist/status-g_KP3qT6.d.ts +0 -8
package/dist/index.css
CHANGED
|
@@ -1441,6 +1441,21 @@
|
|
|
1441
1441
|
flex-direction: column;
|
|
1442
1442
|
gap: var(--spacing-space-2);
|
|
1443
1443
|
}
|
|
1444
|
+
.lib-xplat-field-label {
|
|
1445
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
1446
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
1447
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
1448
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
1449
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
1450
|
+
color: var(--semantic-text-secondary);
|
|
1451
|
+
display: inline-flex;
|
|
1452
|
+
align-items: center;
|
|
1453
|
+
gap: var(--spacing-space-1);
|
|
1454
|
+
cursor: pointer;
|
|
1455
|
+
}
|
|
1456
|
+
.lib-xplat-field-label > .required {
|
|
1457
|
+
color: var(--semantic-text-error);
|
|
1458
|
+
}
|
|
1444
1459
|
.lib-xplat-field-message-wrap {
|
|
1445
1460
|
display: flex;
|
|
1446
1461
|
gap: var(--spacing-space-2);
|
|
@@ -3082,6 +3097,10 @@
|
|
|
3082
3097
|
border-radius: var(--spacing-radius-md);
|
|
3083
3098
|
}
|
|
3084
3099
|
.lib-xplat-tab.type-default > .tab-item {
|
|
3100
|
+
appearance: none;
|
|
3101
|
+
font: inherit;
|
|
3102
|
+
border: none;
|
|
3103
|
+
background: none;
|
|
3085
3104
|
flex: 1;
|
|
3086
3105
|
padding: var(--spacing-space-1) var(--spacing-space-6);
|
|
3087
3106
|
height: 100%;
|
|
@@ -3303,6 +3322,9 @@
|
|
|
3303
3322
|
color: var(--semantic-text-disabled);
|
|
3304
3323
|
cursor: not-allowed;
|
|
3305
3324
|
}
|
|
3325
|
+
.lib-xplat-dropdown-menu.repositioning {
|
|
3326
|
+
transition: none;
|
|
3327
|
+
}
|
|
3306
3328
|
|
|
3307
3329
|
/* src/components/Editor/editor.scss */
|
|
3308
3330
|
.lib-xplat-editor {
|
|
@@ -3590,6 +3612,104 @@
|
|
|
3590
3612
|
color: var(--semantic-text-inverse);
|
|
3591
3613
|
border-color: var(--semantic-surface-brand-default);
|
|
3592
3614
|
}
|
|
3615
|
+
.lib-xplat-editor__editable .align-center {
|
|
3616
|
+
text-align: center;
|
|
3617
|
+
}
|
|
3618
|
+
.lib-xplat-editor__editable .align-right {
|
|
3619
|
+
text-align: right;
|
|
3620
|
+
}
|
|
3621
|
+
.lib-xplat-editor__editable ul.checklist {
|
|
3622
|
+
list-style: none;
|
|
3623
|
+
padding-left: var(--spacing-space-2);
|
|
3624
|
+
}
|
|
3625
|
+
.lib-xplat-editor__editable ul.checklist > li {
|
|
3626
|
+
position: relative;
|
|
3627
|
+
padding-left: var(--spacing-space-6);
|
|
3628
|
+
cursor: default;
|
|
3629
|
+
}
|
|
3630
|
+
.lib-xplat-editor__editable ul.checklist > li::before {
|
|
3631
|
+
content: "";
|
|
3632
|
+
position: absolute;
|
|
3633
|
+
left: 0;
|
|
3634
|
+
top: 0.25em;
|
|
3635
|
+
width: 1em;
|
|
3636
|
+
height: 1em;
|
|
3637
|
+
border: 1px solid var(--semantic-border-tertiary);
|
|
3638
|
+
border-radius: var(--spacing-radius-sm);
|
|
3639
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
3640
|
+
cursor: pointer;
|
|
3641
|
+
}
|
|
3642
|
+
.lib-xplat-editor__editable ul.checklist > li[data-checked=true] {
|
|
3643
|
+
color: var(--semantic-text-tertiary);
|
|
3644
|
+
text-decoration: line-through;
|
|
3645
|
+
}
|
|
3646
|
+
.lib-xplat-editor__editable ul.checklist > li[data-checked=true]::before {
|
|
3647
|
+
content: "\2713";
|
|
3648
|
+
display: flex;
|
|
3649
|
+
align-items: center;
|
|
3650
|
+
justify-content: center;
|
|
3651
|
+
border-color: var(--semantic-surface-brand-default);
|
|
3652
|
+
background-color: var(--semantic-surface-brand-default);
|
|
3653
|
+
color: var(--semantic-text-inverse);
|
|
3654
|
+
font-size: 0.75em;
|
|
3655
|
+
line-height: 1;
|
|
3656
|
+
}
|
|
3657
|
+
.lib-xplat-editor__editable mark {
|
|
3658
|
+
background-color: var(--semantic-surface-warning-subtle);
|
|
3659
|
+
color: var(--semantic-text-primary);
|
|
3660
|
+
border-radius: var(--spacing-radius-sm);
|
|
3661
|
+
padding: 0 2px;
|
|
3662
|
+
}
|
|
3663
|
+
.lib-xplat-editor__editable table {
|
|
3664
|
+
width: 100%;
|
|
3665
|
+
border-collapse: collapse;
|
|
3666
|
+
margin: var(--spacing-space-3) 0;
|
|
3667
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
3668
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
3669
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
3670
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
3671
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
3672
|
+
}
|
|
3673
|
+
.lib-xplat-editor__editable table th,
|
|
3674
|
+
.lib-xplat-editor__editable table td {
|
|
3675
|
+
border: 1px solid var(--semantic-border-primary);
|
|
3676
|
+
padding: var(--spacing-space-2) var(--spacing-space-3);
|
|
3677
|
+
text-align: left;
|
|
3678
|
+
vertical-align: top;
|
|
3679
|
+
min-width: 3em;
|
|
3680
|
+
}
|
|
3681
|
+
.lib-xplat-editor__editable table th {
|
|
3682
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
3683
|
+
font-weight: var(--semantic-typo-label-2-sb-weight);
|
|
3684
|
+
}
|
|
3685
|
+
.lib-xplat-editor__lang {
|
|
3686
|
+
margin-left: auto;
|
|
3687
|
+
border: 1px solid var(--semantic-border-primary);
|
|
3688
|
+
border-radius: var(--spacing-radius-sm);
|
|
3689
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
3690
|
+
color: var(--semantic-text-secondary);
|
|
3691
|
+
padding: 0 var(--spacing-space-1);
|
|
3692
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
3693
|
+
font-size: var(--semantic-typo-caption-2-r-size);
|
|
3694
|
+
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
3695
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
3696
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
3697
|
+
cursor: pointer;
|
|
3698
|
+
}
|
|
3699
|
+
.lib-xplat-editor__editable pre .tok-keyword {
|
|
3700
|
+
color: var(--semantic-text-link);
|
|
3701
|
+
font-weight: var(--semantic-typo-label-2-sb-weight);
|
|
3702
|
+
}
|
|
3703
|
+
.lib-xplat-editor__editable pre .tok-string {
|
|
3704
|
+
color: var(--semantic-text-success);
|
|
3705
|
+
}
|
|
3706
|
+
.lib-xplat-editor__editable pre .tok-number {
|
|
3707
|
+
color: var(--semantic-text-accent-blue);
|
|
3708
|
+
}
|
|
3709
|
+
.lib-xplat-editor__editable pre .tok-comment {
|
|
3710
|
+
color: var(--semantic-text-tertiary);
|
|
3711
|
+
font-style: italic;
|
|
3712
|
+
}
|
|
3593
3713
|
|
|
3594
3714
|
/* src/components/EmptyState/emptystate.scss */
|
|
3595
3715
|
.lib-xplat-empty-state {
|
|
@@ -4060,6 +4180,9 @@
|
|
|
4060
4180
|
opacity: 1;
|
|
4061
4181
|
transform: scale(1);
|
|
4062
4182
|
}
|
|
4183
|
+
.lib-xplat-pop-over-content.repositioning {
|
|
4184
|
+
transition: none;
|
|
4185
|
+
}
|
|
4063
4186
|
|
|
4064
4187
|
/* src/components/Progress/progress.scss */
|
|
4065
4188
|
.lib-xplat-progress {
|
|
@@ -4340,6 +4463,45 @@
|
|
|
4340
4463
|
.lib-xplat-select .select-trigger .select-trigger-icon svg {
|
|
4341
4464
|
font-size: var(--semantic-typo-label-1-m-size);
|
|
4342
4465
|
}
|
|
4466
|
+
.lib-xplat-select-content .select-search {
|
|
4467
|
+
position: sticky;
|
|
4468
|
+
top: 0;
|
|
4469
|
+
z-index: 1;
|
|
4470
|
+
padding: var(--spacing-space-2);
|
|
4471
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
4472
|
+
border-bottom: 1px solid var(--semantic-border-secondary);
|
|
4473
|
+
}
|
|
4474
|
+
.lib-xplat-select-content .select-search > input {
|
|
4475
|
+
width: 100%;
|
|
4476
|
+
border: 1px solid var(--semantic-border-primary);
|
|
4477
|
+
border-radius: var(--spacing-radius-sm);
|
|
4478
|
+
padding: var(--spacing-space-1) var(--spacing-space-2);
|
|
4479
|
+
outline: none;
|
|
4480
|
+
color: var(--semantic-text-primary);
|
|
4481
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
4482
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
4483
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
4484
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
4485
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
4486
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
4487
|
+
transition: border-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
4488
|
+
}
|
|
4489
|
+
.lib-xplat-select-content .select-search > input:focus {
|
|
4490
|
+
border-color: var(--semantic-interaction-focus-ring);
|
|
4491
|
+
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
4492
|
+
outline: 2px solid transparent;
|
|
4493
|
+
outline-offset: 2px;
|
|
4494
|
+
}
|
|
4495
|
+
.lib-xplat-select-content .select-empty {
|
|
4496
|
+
padding: var(--spacing-space-3);
|
|
4497
|
+
text-align: center;
|
|
4498
|
+
color: var(--semantic-text-tertiary);
|
|
4499
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
4500
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
4501
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
4502
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
4503
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
4504
|
+
}
|
|
4343
4505
|
.lib-xplat-select-content {
|
|
4344
4506
|
position: fixed;
|
|
4345
4507
|
z-index: 1000;
|
|
@@ -4415,6 +4577,9 @@
|
|
|
4415
4577
|
cursor: not-allowed;
|
|
4416
4578
|
color: var(--semantic-text-disabled);
|
|
4417
4579
|
}
|
|
4580
|
+
.lib-xplat-select-content.repositioning {
|
|
4581
|
+
transition: none;
|
|
4582
|
+
}
|
|
4418
4583
|
|
|
4419
4584
|
/* src/components/Skeleton/skeleton.scss */
|
|
4420
4585
|
.lib-xplat-skeleton {
|
|
@@ -4504,6 +4669,103 @@
|
|
|
4504
4669
|
}
|
|
4505
4670
|
}
|
|
4506
4671
|
|
|
4672
|
+
/* src/components/Stat/stat.scss */
|
|
4673
|
+
.lib-xplat-stat {
|
|
4674
|
+
display: flex;
|
|
4675
|
+
flex-direction: column;
|
|
4676
|
+
gap: var(--spacing-space-1);
|
|
4677
|
+
}
|
|
4678
|
+
.lib-xplat-stat .stat-label {
|
|
4679
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
4680
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
4681
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
4682
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
4683
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
4684
|
+
color: var(--semantic-text-tertiary);
|
|
4685
|
+
}
|
|
4686
|
+
.lib-xplat-stat .stat-value-row {
|
|
4687
|
+
display: flex;
|
|
4688
|
+
align-items: baseline;
|
|
4689
|
+
gap: var(--spacing-space-2);
|
|
4690
|
+
}
|
|
4691
|
+
.lib-xplat-stat .stat-icon {
|
|
4692
|
+
display: flex;
|
|
4693
|
+
align-items: center;
|
|
4694
|
+
align-self: center;
|
|
4695
|
+
color: var(--semantic-icon-secondary);
|
|
4696
|
+
}
|
|
4697
|
+
.lib-xplat-stat .stat-value {
|
|
4698
|
+
font-family: var(--semantic-typo-title-1-sb-font);
|
|
4699
|
+
font-size: var(--semantic-typo-title-1-sb-size);
|
|
4700
|
+
line-height: var(--semantic-typo-title-1-sb-lh);
|
|
4701
|
+
font-weight: var(--semantic-typo-title-1-sb-weight);
|
|
4702
|
+
letter-spacing: var(--semantic-typo-title-1-sb-ls);
|
|
4703
|
+
color: var(--semantic-text-primary);
|
|
4704
|
+
font-variant-numeric: tabular-nums;
|
|
4705
|
+
}
|
|
4706
|
+
.lib-xplat-stat .stat-unit {
|
|
4707
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
4708
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
4709
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
4710
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
4711
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
4712
|
+
color: var(--semantic-text-tertiary);
|
|
4713
|
+
}
|
|
4714
|
+
.lib-xplat-stat .stat-trend {
|
|
4715
|
+
display: inline-flex;
|
|
4716
|
+
align-items: center;
|
|
4717
|
+
gap: var(--spacing-space-1);
|
|
4718
|
+
font-family: var(--semantic-typo-caption-1-m-font);
|
|
4719
|
+
font-size: var(--semantic-typo-caption-1-m-size);
|
|
4720
|
+
line-height: var(--semantic-typo-caption-1-m-lh);
|
|
4721
|
+
font-weight: var(--semantic-typo-caption-1-m-weight);
|
|
4722
|
+
letter-spacing: var(--semantic-typo-caption-1-m-ls);
|
|
4723
|
+
font-variant-numeric: tabular-nums;
|
|
4724
|
+
}
|
|
4725
|
+
.lib-xplat-stat .stat-trend.up {
|
|
4726
|
+
color: var(--semantic-text-success);
|
|
4727
|
+
}
|
|
4728
|
+
.lib-xplat-stat .stat-trend.down {
|
|
4729
|
+
color: var(--semantic-text-error);
|
|
4730
|
+
}
|
|
4731
|
+
.lib-xplat-stat .stat-trend.flat {
|
|
4732
|
+
color: var(--semantic-text-tertiary);
|
|
4733
|
+
}
|
|
4734
|
+
.lib-xplat-stat .stat-description {
|
|
4735
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
4736
|
+
font-size: var(--semantic-typo-caption-2-r-size);
|
|
4737
|
+
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
4738
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
4739
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
4740
|
+
color: var(--semantic-text-tertiary);
|
|
4741
|
+
}
|
|
4742
|
+
.lib-xplat-stat.sm .stat-value {
|
|
4743
|
+
font-family: var(--semantic-typo-heading-1-sb-font);
|
|
4744
|
+
font-size: var(--semantic-typo-heading-1-sb-size);
|
|
4745
|
+
line-height: var(--semantic-typo-heading-1-sb-lh);
|
|
4746
|
+
font-weight: var(--semantic-typo-heading-1-sb-weight);
|
|
4747
|
+
letter-spacing: var(--semantic-typo-heading-1-sb-ls);
|
|
4748
|
+
}
|
|
4749
|
+
.lib-xplat-stat.lg .stat-value {
|
|
4750
|
+
font-family: var(--semantic-typo-display-2-sb-font);
|
|
4751
|
+
font-size: var(--semantic-typo-display-2-sb-size);
|
|
4752
|
+
line-height: var(--semantic-typo-display-2-sb-lh);
|
|
4753
|
+
font-weight: var(--semantic-typo-display-2-sb-weight);
|
|
4754
|
+
letter-spacing: var(--semantic-typo-display-2-sb-ls);
|
|
4755
|
+
}
|
|
4756
|
+
.lib-xplat-stat.success .stat-value {
|
|
4757
|
+
color: var(--semantic-text-success);
|
|
4758
|
+
}
|
|
4759
|
+
.lib-xplat-stat.error .stat-value {
|
|
4760
|
+
color: var(--semantic-text-error);
|
|
4761
|
+
}
|
|
4762
|
+
.lib-xplat-stat.warning .stat-value {
|
|
4763
|
+
color: var(--semantic-text-warning);
|
|
4764
|
+
}
|
|
4765
|
+
.lib-xplat-stat.info .stat-value {
|
|
4766
|
+
color: var(--semantic-text-info);
|
|
4767
|
+
}
|
|
4768
|
+
|
|
4507
4769
|
/* src/components/Steps/steps.scss */
|
|
4508
4770
|
.lib-xplat-steps {
|
|
4509
4771
|
display: flex;
|
|
@@ -5299,6 +5561,129 @@
|
|
|
5299
5561
|
resize: none;
|
|
5300
5562
|
}
|
|
5301
5563
|
|
|
5564
|
+
/* src/components/TimePicker/timePicker.scss */
|
|
5565
|
+
.lib-xplat-time-picker {
|
|
5566
|
+
position: relative;
|
|
5567
|
+
width: 100%;
|
|
5568
|
+
}
|
|
5569
|
+
.lib-xplat-time-picker .time-picker-trigger {
|
|
5570
|
+
display: flex;
|
|
5571
|
+
align-items: center;
|
|
5572
|
+
width: 100%;
|
|
5573
|
+
cursor: pointer;
|
|
5574
|
+
user-select: none;
|
|
5575
|
+
outline: none;
|
|
5576
|
+
border: 1px solid var(--semantic-border-primary);
|
|
5577
|
+
border-radius: var(--spacing-radius-md);
|
|
5578
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
5579
|
+
color: var(--semantic-text-primary);
|
|
5580
|
+
padding: 0 var(--spacing-space-3);
|
|
5581
|
+
transition: border-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
5582
|
+
}
|
|
5583
|
+
.lib-xplat-time-picker .time-picker-trigger:hover {
|
|
5584
|
+
border-color: var(--semantic-border-tertiary);
|
|
5585
|
+
}
|
|
5586
|
+
.lib-xplat-time-picker .time-picker-trigger:focus-visible {
|
|
5587
|
+
border-color: var(--semantic-interaction-focus-ring);
|
|
5588
|
+
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
5589
|
+
outline: 2px solid transparent;
|
|
5590
|
+
outline-offset: 2px;
|
|
5591
|
+
}
|
|
5592
|
+
.lib-xplat-time-picker .time-picker-trigger.error {
|
|
5593
|
+
border-color: var(--semantic-border-error);
|
|
5594
|
+
}
|
|
5595
|
+
.lib-xplat-time-picker .time-picker-value.placeholder {
|
|
5596
|
+
color: var(--semantic-text-tertiary);
|
|
5597
|
+
}
|
|
5598
|
+
.lib-xplat-time-picker.sm .time-picker-trigger {
|
|
5599
|
+
height: var(--spacing-control-height-sm);
|
|
5600
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
5601
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
5602
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
5603
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
5604
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
5605
|
+
}
|
|
5606
|
+
.lib-xplat-time-picker.md .time-picker-trigger {
|
|
5607
|
+
height: var(--spacing-control-height-md);
|
|
5608
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
5609
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
5610
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
5611
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
5612
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
5613
|
+
}
|
|
5614
|
+
.lib-xplat-time-picker.lg .time-picker-trigger {
|
|
5615
|
+
height: var(--spacing-control-height-lg);
|
|
5616
|
+
font-family: var(--semantic-typo-label-1-m-font);
|
|
5617
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
5618
|
+
line-height: var(--semantic-typo-label-1-m-lh);
|
|
5619
|
+
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
5620
|
+
letter-spacing: var(--semantic-typo-label-1-m-ls);
|
|
5621
|
+
}
|
|
5622
|
+
.lib-xplat-time-picker.disabled .time-picker-trigger {
|
|
5623
|
+
cursor: not-allowed;
|
|
5624
|
+
pointer-events: none;
|
|
5625
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
5626
|
+
color: var(--semantic-text-disabled);
|
|
5627
|
+
}
|
|
5628
|
+
.lib-xplat-time-picker-content {
|
|
5629
|
+
position: fixed;
|
|
5630
|
+
z-index: 1000;
|
|
5631
|
+
max-height: 220px;
|
|
5632
|
+
overflow-y: auto;
|
|
5633
|
+
padding: var(--spacing-space-1) 0;
|
|
5634
|
+
border-radius: var(--spacing-radius-md);
|
|
5635
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
5636
|
+
box-shadow: var(--semantic-shadow-md);
|
|
5637
|
+
opacity: 0;
|
|
5638
|
+
transition: opacity 0.2s ease;
|
|
5639
|
+
}
|
|
5640
|
+
.lib-xplat-time-picker-content.enter {
|
|
5641
|
+
opacity: 1;
|
|
5642
|
+
}
|
|
5643
|
+
.lib-xplat-time-picker-content.exit {
|
|
5644
|
+
opacity: 0;
|
|
5645
|
+
}
|
|
5646
|
+
.lib-xplat-time-picker-content .time-picker-item {
|
|
5647
|
+
padding: var(--spacing-space-2) var(--spacing-space-3);
|
|
5648
|
+
cursor: pointer;
|
|
5649
|
+
outline: none;
|
|
5650
|
+
color: var(--semantic-text-primary);
|
|
5651
|
+
font-variant-numeric: tabular-nums;
|
|
5652
|
+
transition: background-color 0.15s ease;
|
|
5653
|
+
}
|
|
5654
|
+
.lib-xplat-time-picker-content .time-picker-item:hover,
|
|
5655
|
+
.lib-xplat-time-picker-content .time-picker-item:focus-visible {
|
|
5656
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
5657
|
+
}
|
|
5658
|
+
.lib-xplat-time-picker-content .time-picker-item.is-selected {
|
|
5659
|
+
color: var(--semantic-text-brand-primary);
|
|
5660
|
+
font-weight: var(--semantic-typo-label-2-sb-weight);
|
|
5661
|
+
}
|
|
5662
|
+
.lib-xplat-time-picker-content.sm .time-picker-item {
|
|
5663
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
5664
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
5665
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
5666
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
5667
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
5668
|
+
}
|
|
5669
|
+
.lib-xplat-time-picker-content.md .time-picker-item {
|
|
5670
|
+
font-family: var(--semantic-typo-label-2-m-font);
|
|
5671
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
5672
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
5673
|
+
font-weight: var(--semantic-typo-label-2-m-weight);
|
|
5674
|
+
letter-spacing: var(--semantic-typo-label-2-m-ls);
|
|
5675
|
+
}
|
|
5676
|
+
.lib-xplat-time-picker-content.lg .time-picker-item {
|
|
5677
|
+
font-family: var(--semantic-typo-label-1-m-font);
|
|
5678
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
5679
|
+
line-height: var(--semantic-typo-label-1-m-lh);
|
|
5680
|
+
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
5681
|
+
letter-spacing: var(--semantic-typo-label-1-m-ls);
|
|
5682
|
+
}
|
|
5683
|
+
.lib-xplat-time-picker-content.repositioning {
|
|
5684
|
+
transition: none;
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5302
5687
|
/* src/components/Toast/toast.scss */
|
|
5303
5688
|
.lib-xplat-toast-container {
|
|
5304
5689
|
position: fixed;
|
package/dist/index.d.cts
CHANGED
|
@@ -35,6 +35,7 @@ export { Radio, RadioGroup } from './components/Radio/index.cjs';
|
|
|
35
35
|
export { Select, SelectChangeHandler, SelectItem, SelectItemProps } from './components/Select/index.cjs';
|
|
36
36
|
export { Skeleton } from './components/Skeleton/index.cjs';
|
|
37
37
|
export { Spinner } from './components/Spinner/index.cjs';
|
|
38
|
+
export { Stat } from './components/Stat/index.cjs';
|
|
38
39
|
export { Steps } from './components/Steps/index.cjs';
|
|
39
40
|
export { Swiper, SwiperHandle, SwiperProps } from './components/Swiper/index.cjs';
|
|
40
41
|
export { Switch } from './components/Switch/index.cjs';
|
|
@@ -42,6 +43,7 @@ export { Tab } from './components/Tab/index.cjs';
|
|
|
42
43
|
export { Table, TableBody, TableCell, TableHead, TableRow } from './components/Table/index.cjs';
|
|
43
44
|
export { Tag } from './components/Tag/index.cjs';
|
|
44
45
|
export { TextArea } from './components/TextArea/index.cjs';
|
|
46
|
+
export { TimePicker } from './components/TimePicker/index.cjs';
|
|
45
47
|
export { ToastProvider, useToast } from './components/Toast/index.cjs';
|
|
46
48
|
export { Tooltip } from './components/Tooltip/index.cjs';
|
|
47
49
|
export { Video, VideoProps } from './components/Video/index.cjs';
|
|
@@ -58,4 +60,4 @@ import 'react';
|
|
|
58
60
|
import './attributes-DJIWir_0.cjs';
|
|
59
61
|
import './validation-Dqo1zqhT.cjs';
|
|
60
62
|
import 'react/jsx-runtime';
|
|
61
|
-
import './status-
|
|
63
|
+
import './status-njWqQWFV.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export { Radio, RadioGroup } from './components/Radio/index.js';
|
|
|
35
35
|
export { Select, SelectChangeHandler, SelectItem, SelectItemProps } from './components/Select/index.js';
|
|
36
36
|
export { Skeleton } from './components/Skeleton/index.js';
|
|
37
37
|
export { Spinner } from './components/Spinner/index.js';
|
|
38
|
+
export { Stat } from './components/Stat/index.js';
|
|
38
39
|
export { Steps } from './components/Steps/index.js';
|
|
39
40
|
export { Swiper, SwiperHandle, SwiperProps } from './components/Swiper/index.js';
|
|
40
41
|
export { Switch } from './components/Switch/index.js';
|
|
@@ -42,6 +43,7 @@ export { Tab } from './components/Tab/index.js';
|
|
|
42
43
|
export { Table, TableBody, TableCell, TableHead, TableRow } from './components/Table/index.js';
|
|
43
44
|
export { Tag } from './components/Tag/index.js';
|
|
44
45
|
export { TextArea } from './components/TextArea/index.js';
|
|
46
|
+
export { TimePicker } from './components/TimePicker/index.js';
|
|
45
47
|
export { ToastProvider, useToast } from './components/Toast/index.js';
|
|
46
48
|
export { Tooltip } from './components/Tooltip/index.js';
|
|
47
49
|
export { Video, VideoProps } from './components/Video/index.js';
|
|
@@ -58,4 +60,4 @@ import 'react';
|
|
|
58
60
|
import './attributes-DJIWir_0.js';
|
|
59
61
|
import './validation-Dqo1zqhT.js';
|
|
60
62
|
import 'react/jsx-runtime';
|
|
61
|
-
import './status-
|
|
63
|
+
import './status-njWqQWFV.js';
|