@x-plat/design-system 0.5.55 → 0.5.59
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/Accordion/index.css +2 -2
- package/dist/components/Alert/index.css +3 -3
- package/dist/components/Avatar/index.css +2 -2
- package/dist/components/Box/index.css +1 -1
- package/dist/components/Breadcrumb/index.css +1 -1
- package/dist/components/Button/index.css +6 -6
- package/dist/components/Calendar/index.css +1 -1
- package/dist/components/CardTab/index.css +2 -2
- package/dist/components/Chart/index.css +1 -1
- package/dist/components/ChatInput/index.css +4 -4
- package/dist/components/CheckBox/index.css +5 -5
- package/dist/components/Chip/index.css +2 -2
- package/dist/components/DatePicker/index.css +20 -18
- package/dist/components/Drawer/index.css +1 -1
- package/dist/components/Dropdown/index.css +1 -1
- package/dist/components/Editor/index.css +1 -1
- package/dist/components/EmptyState/index.css +1 -1
- package/dist/components/FileUpload/index.css +1 -1
- package/dist/components/HtmlTypeWriter/index.css +1 -1
- package/dist/components/IconButton/index.css +2 -2
- package/dist/components/ImageSelector/index.css +1 -1
- package/dist/components/Input/index.css +9 -7
- package/dist/components/Pagination/index.css +6 -6
- package/dist/components/Radio/index.css +6 -6
- package/dist/components/Select/index.cjs +7 -2
- package/dist/components/Select/index.css +23 -18
- package/dist/components/Select/index.js +7 -2
- package/dist/components/Steps/index.css +1 -1
- package/dist/components/Swiper/index.cjs +7 -1
- package/dist/components/Swiper/index.css +4 -0
- package/dist/components/Swiper/index.js +7 -1
- package/dist/components/Tab/index.css +4 -4
- package/dist/components/Table/index.css +2 -2
- package/dist/components/Tag/index.css +2 -2
- package/dist/components/TextArea/index.css +2 -2
- package/dist/components/Toast/index.css +3 -3
- package/dist/components/index.cjs +14 -3
- package/dist/components/index.css +100 -89
- package/dist/components/index.js +14 -3
- package/dist/index.cjs +14 -3
- package/dist/index.css +100 -89
- package/dist/index.js +14 -3
- package/package.json +1 -1
|
@@ -1642,7 +1642,7 @@
|
|
|
1642
1642
|
background: none;
|
|
1643
1643
|
border: none;
|
|
1644
1644
|
cursor: pointer;
|
|
1645
|
-
font-size: var(--semantic-typo-
|
|
1645
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
1646
1646
|
font-weight: 500;
|
|
1647
1647
|
color: var(--semantic-text-strong);
|
|
1648
1648
|
text-align: left;
|
|
@@ -1668,7 +1668,7 @@
|
|
|
1668
1668
|
}
|
|
1669
1669
|
.lib-xplat-accordion .accordion-content {
|
|
1670
1670
|
padding: 0 var(--spacing-space-4) 14px;
|
|
1671
|
-
font-size: var(--semantic-typo-
|
|
1671
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
1672
1672
|
color: var(--semantic-text-subtle);
|
|
1673
1673
|
line-height: 1.6;
|
|
1674
1674
|
}
|
|
@@ -1684,8 +1684,8 @@
|
|
|
1684
1684
|
justify-content: space-between;
|
|
1685
1685
|
padding: var(--spacing-space-3) var(--spacing-space-4);
|
|
1686
1686
|
border-radius: var(--spacing-radius-md);
|
|
1687
|
-
font-size: var(--semantic-typo-
|
|
1688
|
-
line-height: var(--semantic-typo-
|
|
1687
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
1688
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
1689
1689
|
border: 1px solid;
|
|
1690
1690
|
}
|
|
1691
1691
|
.lib-xplat-alert .content {
|
|
@@ -1695,7 +1695,7 @@
|
|
|
1695
1695
|
background: none;
|
|
1696
1696
|
border: none;
|
|
1697
1697
|
cursor: pointer;
|
|
1698
|
-
font-size: var(--semantic-typo-
|
|
1698
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
1699
1699
|
line-height: 1;
|
|
1700
1700
|
margin-left: var(--spacing-space-2);
|
|
1701
1701
|
padding: 0;
|
|
@@ -1756,12 +1756,12 @@
|
|
|
1756
1756
|
.lib-xplat-avatar.md {
|
|
1757
1757
|
width: var(--spacing-control-height-md);
|
|
1758
1758
|
height: var(--spacing-control-height-md);
|
|
1759
|
-
font-size: var(--semantic-typo-
|
|
1759
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
1760
1760
|
}
|
|
1761
1761
|
.lib-xplat-avatar.lg {
|
|
1762
1762
|
width: var(--spacing-control-height-lg);
|
|
1763
1763
|
height: var(--spacing-control-height-lg);
|
|
1764
|
-
font-size: var(--semantic-typo-
|
|
1764
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
1765
1765
|
}
|
|
1766
1766
|
.lib-xplat-avatar img {
|
|
1767
1767
|
width: 100%;
|
|
@@ -1908,7 +1908,7 @@
|
|
|
1908
1908
|
}
|
|
1909
1909
|
.lib-xplat-box > .box-title {
|
|
1910
1910
|
font-weight: 600;
|
|
1911
|
-
font-size: var(--semantic-typo-
|
|
1911
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
1912
1912
|
color: var(--semantic-text-strong);
|
|
1913
1913
|
padding: var(--spacing-space-3) var(--spacing-space-4);
|
|
1914
1914
|
border-bottom: 1px solid var(--semantic-border-subtle);
|
|
@@ -1953,7 +1953,7 @@
|
|
|
1953
1953
|
display: flex;
|
|
1954
1954
|
align-items: center;
|
|
1955
1955
|
gap: var(--spacing-space-1);
|
|
1956
|
-
font-size: var(--semantic-typo-
|
|
1956
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
1957
1957
|
}
|
|
1958
1958
|
.lib-xplat-breadcrumb .link {
|
|
1959
1959
|
color: var(--semantic-text-muted);
|
|
@@ -1994,20 +1994,20 @@
|
|
|
1994
1994
|
.lib-xplat-button.sm {
|
|
1995
1995
|
height: var(--spacing-control-height-sm);
|
|
1996
1996
|
padding: 0 var(--spacing-space-3);
|
|
1997
|
-
font-size: var(--semantic-typo-
|
|
1998
|
-
line-height: var(--semantic-typo-
|
|
1997
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
1998
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
1999
1999
|
}
|
|
2000
2000
|
.lib-xplat-button.md {
|
|
2001
2001
|
height: var(--spacing-control-height-md);
|
|
2002
2002
|
padding: 0 var(--spacing-space-4);
|
|
2003
|
-
font-size: var(--semantic-typo-label-
|
|
2004
|
-
line-height: var(--semantic-typo-label-
|
|
2003
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
2004
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
2005
2005
|
}
|
|
2006
2006
|
.lib-xplat-button.lg {
|
|
2007
2007
|
height: var(--spacing-control-height-lg);
|
|
2008
2008
|
padding: 0 var(--spacing-space-6);
|
|
2009
|
-
font-size: var(--semantic-typo-
|
|
2010
|
-
line-height: var(--semantic-typo-
|
|
2009
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
2010
|
+
line-height: var(--semantic-typo-label-1-m-lh);
|
|
2011
2011
|
}
|
|
2012
2012
|
.lib-xplat-button:disabled {
|
|
2013
2013
|
cursor: not-allowed;
|
|
@@ -2122,7 +2122,7 @@
|
|
|
2122
2122
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
2123
2123
|
}
|
|
2124
2124
|
.lib-xplat-calendar .calendar-nav svg {
|
|
2125
|
-
font-size: var(--semantic-typo-label-
|
|
2125
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
2126
2126
|
}
|
|
2127
2127
|
.lib-xplat-calendar .calendar-today-btn {
|
|
2128
2128
|
margin-left: auto;
|
|
@@ -2320,7 +2320,7 @@
|
|
|
2320
2320
|
.lib-xplat-card-tab.md .card-tab-trigger {
|
|
2321
2321
|
--tab-py: 6px;
|
|
2322
2322
|
padding: 6px var(--spacing-space-4);
|
|
2323
|
-
font-size: var(--semantic-typo-
|
|
2323
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
2324
2324
|
}
|
|
2325
2325
|
.lib-xplat-card-tab.md .card-tab-body {
|
|
2326
2326
|
padding: var(--spacing-space-5);
|
|
@@ -2331,7 +2331,7 @@
|
|
|
2331
2331
|
.lib-xplat-card-tab.lg .card-tab-trigger {
|
|
2332
2332
|
--tab-py: var(--spacing-space-2);
|
|
2333
2333
|
padding: var(--spacing-space-2) var(--spacing-space-5);
|
|
2334
|
-
font-size: var(--semantic-typo-label-
|
|
2334
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
2335
2335
|
}
|
|
2336
2336
|
.lib-xplat-card-tab.lg .card-tab-body {
|
|
2337
2337
|
padding: var(--spacing-space-6);
|
|
@@ -2527,7 +2527,7 @@
|
|
|
2527
2527
|
color: var(--semantic-text-muted);
|
|
2528
2528
|
}
|
|
2529
2529
|
.lib-xplat-chart .chart-legend-value {
|
|
2530
|
-
font-size: var(--semantic-typo-
|
|
2530
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
2531
2531
|
font-weight: 600;
|
|
2532
2532
|
color: var(--semantic-text-strong);
|
|
2533
2533
|
}
|
|
@@ -2571,12 +2571,12 @@
|
|
|
2571
2571
|
.lib-xplat-icon-button.sm {
|
|
2572
2572
|
width: var(--spacing-control-height-sm);
|
|
2573
2573
|
height: var(--spacing-control-height-sm);
|
|
2574
|
-
font-size: var(--semantic-typo-
|
|
2574
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
2575
2575
|
}
|
|
2576
2576
|
.lib-xplat-icon-button.md {
|
|
2577
2577
|
width: var(--spacing-control-height-md);
|
|
2578
2578
|
height: var(--spacing-control-height-md);
|
|
2579
|
-
font-size: var(--semantic-typo-
|
|
2579
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
2580
2580
|
}
|
|
2581
2581
|
.lib-xplat-icon-button.lg {
|
|
2582
2582
|
width: var(--spacing-control-height-lg);
|
|
@@ -2668,8 +2668,8 @@
|
|
|
2668
2668
|
max-height: 200px;
|
|
2669
2669
|
overflow-y: auto;
|
|
2670
2670
|
padding: 4px 0;
|
|
2671
|
-
font-size: var(--semantic-typo-label-
|
|
2672
|
-
line-height: var(--semantic-typo-label-
|
|
2671
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
2672
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
2673
2673
|
color: var(--semantic-text-strong);
|
|
2674
2674
|
background: transparent;
|
|
2675
2675
|
}
|
|
@@ -2707,17 +2707,17 @@
|
|
|
2707
2707
|
height: var(--spacing-space-6);
|
|
2708
2708
|
}
|
|
2709
2709
|
.lib-xplat-checkbox.sm > .label {
|
|
2710
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
2711
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
2712
|
+
}
|
|
2713
|
+
.lib-xplat-checkbox.md > .label {
|
|
2710
2714
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
2711
2715
|
line-height: var(--semantic-typo-label-2-m-lh);
|
|
2712
2716
|
}
|
|
2713
|
-
.lib-xplat-checkbox.
|
|
2717
|
+
.lib-xplat-checkbox.lg > .label {
|
|
2714
2718
|
font-size: var(--semantic-typo-label-1-m-size);
|
|
2715
2719
|
line-height: var(--semantic-typo-label-1-m-lh);
|
|
2716
2720
|
}
|
|
2717
|
-
.lib-xplat-checkbox.lg > .label {
|
|
2718
|
-
font-size: var(--semantic-typo-body-1-m-size);
|
|
2719
|
-
line-height: var(--semantic-typo-body-1-m-lh);
|
|
2720
|
-
}
|
|
2721
2721
|
.lib-xplat-checkbox > .checkbox {
|
|
2722
2722
|
display: flex;
|
|
2723
2723
|
align-items: center;
|
|
@@ -2800,11 +2800,11 @@
|
|
|
2800
2800
|
}
|
|
2801
2801
|
.lib-xplat-chip.md {
|
|
2802
2802
|
padding: 2px var(--spacing-space-3);
|
|
2803
|
-
font-size: var(--semantic-typo-
|
|
2803
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
2804
2804
|
}
|
|
2805
2805
|
.lib-xplat-chip.lg {
|
|
2806
2806
|
padding: var(--spacing-space-1) var(--spacing-space-4);
|
|
2807
|
-
font-size: var(--semantic-typo-label-
|
|
2807
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
2808
2808
|
}
|
|
2809
2809
|
.lib-xplat-chip.primary {
|
|
2810
2810
|
color: var(--semantic-text-inverse);
|
|
@@ -2866,18 +2866,18 @@
|
|
|
2866
2866
|
}
|
|
2867
2867
|
.lib-xplat-input-wrap .lib-xplat-input.sm {
|
|
2868
2868
|
height: var(--spacing-control-height-sm);
|
|
2869
|
-
font-size: var(--semantic-typo-
|
|
2870
|
-
line-height: var(--semantic-typo-
|
|
2869
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
2870
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
2871
2871
|
}
|
|
2872
2872
|
.lib-xplat-input-wrap .lib-xplat-input.md {
|
|
2873
2873
|
height: var(--spacing-control-height-md);
|
|
2874
|
-
font-size: var(--semantic-typo-label-
|
|
2875
|
-
line-height: var(--semantic-typo-label-
|
|
2874
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
2875
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
2876
2876
|
}
|
|
2877
2877
|
.lib-xplat-input-wrap .lib-xplat-input.lg {
|
|
2878
2878
|
height: var(--spacing-control-height-lg);
|
|
2879
|
-
font-size: var(--semantic-typo-
|
|
2880
|
-
line-height: var(--semantic-typo-
|
|
2879
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
2880
|
+
line-height: var(--semantic-typo-label-1-m-lh);
|
|
2881
2881
|
}
|
|
2882
2882
|
.lib-xplat-input-wrap .lib-xplat-input.disabled {
|
|
2883
2883
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
@@ -2891,6 +2891,8 @@
|
|
|
2891
2891
|
padding-right: var(--spacing-space-2);
|
|
2892
2892
|
width: 100%;
|
|
2893
2893
|
color: var(--semantic-text-subtle);
|
|
2894
|
+
font-size: inherit;
|
|
2895
|
+
font-family: inherit;
|
|
2894
2896
|
}
|
|
2895
2897
|
.lib-xplat-input-wrap .lib-xplat-input > input :disabled {
|
|
2896
2898
|
cursor: not-allowed;
|
|
@@ -2935,7 +2937,7 @@
|
|
|
2935
2937
|
color: var(--semantic-text-error);
|
|
2936
2938
|
}
|
|
2937
2939
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation > .icon {
|
|
2938
|
-
font-size: var(--semantic-typo-label-
|
|
2940
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
2939
2941
|
}
|
|
2940
2942
|
|
|
2941
2943
|
/* src/components/Modal/modal.scss */
|
|
@@ -3058,7 +3060,7 @@
|
|
|
3058
3060
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
3059
3061
|
}
|
|
3060
3062
|
.lib-xplat-datepicker .datepicker-nav svg {
|
|
3061
|
-
font-size: var(--semantic-typo-label-
|
|
3063
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
3062
3064
|
}
|
|
3063
3065
|
.lib-xplat-datepicker .datepicker-weekdays {
|
|
3064
3066
|
display: grid;
|
|
@@ -3251,15 +3253,15 @@
|
|
|
3251
3253
|
}
|
|
3252
3254
|
.lib-xplat-tab.sm {
|
|
3253
3255
|
height: var(--spacing-control-height-sm);
|
|
3254
|
-
font-size: var(--semantic-typo-
|
|
3256
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
3255
3257
|
}
|
|
3256
3258
|
.lib-xplat-tab.md {
|
|
3257
3259
|
height: var(--spacing-control-height-md);
|
|
3258
|
-
font-size: var(--semantic-typo-label-
|
|
3260
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
3259
3261
|
}
|
|
3260
3262
|
.lib-xplat-tab.lg {
|
|
3261
3263
|
height: var(--spacing-control-height-lg);
|
|
3262
|
-
font-size: var(--semantic-typo-
|
|
3264
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
3263
3265
|
}
|
|
3264
3266
|
.lib-xplat-tab.type-default {
|
|
3265
3267
|
width: 100%;
|
|
@@ -3297,7 +3299,7 @@
|
|
|
3297
3299
|
justify-content: center;
|
|
3298
3300
|
white-space: nowrap;
|
|
3299
3301
|
padding: 0 var(--spacing-space-3);
|
|
3300
|
-
font-size: var(--semantic-typo-label-
|
|
3302
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
3301
3303
|
font-weight: 500;
|
|
3302
3304
|
height: 100%;
|
|
3303
3305
|
background: none;
|
|
@@ -3396,7 +3398,7 @@
|
|
|
3396
3398
|
border-bottom: 1px solid var(--semantic-border-default);
|
|
3397
3399
|
}
|
|
3398
3400
|
.lib-xplat-drawer .drawer-title {
|
|
3399
|
-
font-size: var(--semantic-typo-label-
|
|
3401
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
3400
3402
|
font-weight: 600;
|
|
3401
3403
|
color: var(--semantic-text-strong);
|
|
3402
3404
|
}
|
|
@@ -3455,7 +3457,7 @@
|
|
|
3455
3457
|
padding: var(--spacing-space-2) 14px;
|
|
3456
3458
|
border: none;
|
|
3457
3459
|
background: none;
|
|
3458
|
-
font-size: var(--semantic-typo-
|
|
3460
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
3459
3461
|
color: var(--semantic-text-strong);
|
|
3460
3462
|
cursor: pointer;
|
|
3461
3463
|
text-align: left;
|
|
@@ -3566,7 +3568,7 @@
|
|
|
3566
3568
|
font-size: var(--semantic-typo-heading-1-m-size);
|
|
3567
3569
|
}
|
|
3568
3570
|
.lib-xplat-editor__editable h3 {
|
|
3569
|
-
font-size: var(--semantic-typo-
|
|
3571
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
3570
3572
|
}
|
|
3571
3573
|
.lib-xplat-editor__editable p {
|
|
3572
3574
|
margin: var(--spacing-space-2) 0;
|
|
@@ -3742,7 +3744,7 @@
|
|
|
3742
3744
|
font-size: var(--semantic-typo-display-1-b-size);
|
|
3743
3745
|
}
|
|
3744
3746
|
.lib-xplat-empty-state .empty-title {
|
|
3745
|
-
font-size: var(--semantic-typo-
|
|
3747
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
3746
3748
|
font-weight: 500;
|
|
3747
3749
|
color: var(--semantic-text-subtle);
|
|
3748
3750
|
margin: 0;
|
|
@@ -3791,7 +3793,7 @@
|
|
|
3791
3793
|
font-size: var(--semantic-typo-display-2-sb-size);
|
|
3792
3794
|
}
|
|
3793
3795
|
.lib-xplat-file-upload .upload-label {
|
|
3794
|
-
font-size: var(--semantic-typo-
|
|
3796
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
3795
3797
|
font-weight: 500;
|
|
3796
3798
|
color: var(--semantic-text-subtle);
|
|
3797
3799
|
margin: 0;
|
|
@@ -3805,7 +3807,7 @@
|
|
|
3805
3807
|
/* src/components/HtmlTypeWriter/htmlTypeWriter.scss */
|
|
3806
3808
|
.lib-xplat-htmlTypewriter {
|
|
3807
3809
|
width: 100%;
|
|
3808
|
-
font-size: var(--semantic-typo-label-
|
|
3810
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
3809
3811
|
}
|
|
3810
3812
|
.lib-xplat-htmlTypewriter h1,
|
|
3811
3813
|
.lib-xplat-htmlTypewriter h2,
|
|
@@ -3880,7 +3882,7 @@
|
|
|
3880
3882
|
}
|
|
3881
3883
|
.lib-xplat-imageselector > .content .skeleton > .label {
|
|
3882
3884
|
margin-top: var(--spacing-space-1);
|
|
3883
|
-
font-size: var(--semantic-typo-
|
|
3885
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
3884
3886
|
color: var(--semantic-text-muted);
|
|
3885
3887
|
}
|
|
3886
3888
|
.lib-xplat-imageselector > .content .skeleton:hover > .icon-wrapper {
|
|
@@ -3931,17 +3933,17 @@
|
|
|
3931
3933
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
3932
3934
|
}
|
|
3933
3935
|
.lib-xplat-pagination.sm .page-btn svg {
|
|
3934
|
-
font-size: var(--semantic-typo-
|
|
3936
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
3935
3937
|
}
|
|
3936
3938
|
.lib-xplat-pagination.lg .dots {
|
|
3937
3939
|
width: var(--spacing-control-height-md);
|
|
3938
3940
|
height: var(--spacing-control-height-md);
|
|
3939
|
-
font-size: var(--semantic-typo-label-
|
|
3941
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
3940
3942
|
}
|
|
3941
3943
|
.lib-xplat-pagination.lg .page-btn {
|
|
3942
3944
|
min-width: var(--spacing-control-height-md);
|
|
3943
3945
|
height: var(--spacing-control-height-md);
|
|
3944
|
-
font-size: var(--semantic-typo-label-
|
|
3946
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
3945
3947
|
}
|
|
3946
3948
|
.lib-xplat-pagination.lg .page-btn svg {
|
|
3947
3949
|
font-size: var(--semantic-typo-heading-1-m-size);
|
|
@@ -3952,7 +3954,7 @@
|
|
|
3952
3954
|
justify-content: center;
|
|
3953
3955
|
width: var(--spacing-control-height-sm);
|
|
3954
3956
|
height: var(--spacing-control-height-sm);
|
|
3955
|
-
font-size: var(--semantic-typo-
|
|
3957
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
3956
3958
|
color: var(--semantic-text-muted);
|
|
3957
3959
|
user-select: none;
|
|
3958
3960
|
}
|
|
@@ -3966,7 +3968,7 @@
|
|
|
3966
3968
|
border: none;
|
|
3967
3969
|
border-radius: var(--spacing-radius-md);
|
|
3968
3970
|
background: none;
|
|
3969
|
-
font-size: var(--semantic-typo-
|
|
3971
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
3970
3972
|
cursor: pointer;
|
|
3971
3973
|
color: var(--semantic-text-subtle);
|
|
3972
3974
|
transition: background-color 0.2s, color 0.2s;
|
|
@@ -3983,7 +3985,7 @@
|
|
|
3983
3985
|
font-weight: 600;
|
|
3984
3986
|
}
|
|
3985
3987
|
.lib-xplat-pagination .page-btn svg {
|
|
3986
|
-
font-size: var(--semantic-typo-label-
|
|
3988
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
3987
3989
|
}
|
|
3988
3990
|
.lib-xplat-pagination.brand .page-btn.active {
|
|
3989
3991
|
background-color: var(--semantic-surface-brand-default);
|
|
@@ -4102,16 +4104,16 @@
|
|
|
4102
4104
|
height: var(--spacing-space-2);
|
|
4103
4105
|
}
|
|
4104
4106
|
.lib-xplat-radio.sm > span {
|
|
4105
|
-
font-size: var(--semantic-typo-
|
|
4106
|
-
line-height: var(--semantic-typo-
|
|
4107
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
4108
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
4107
4109
|
}
|
|
4108
4110
|
.lib-xplat-radio.md > .circle {
|
|
4109
4111
|
width: var(--spacing-space-5);
|
|
4110
4112
|
height: var(--spacing-space-5);
|
|
4111
4113
|
}
|
|
4112
4114
|
.lib-xplat-radio.md > span {
|
|
4113
|
-
font-size: var(--semantic-typo-label-
|
|
4114
|
-
line-height: var(--semantic-typo-label-
|
|
4115
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
4116
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
4115
4117
|
}
|
|
4116
4118
|
.lib-xplat-radio.lg > .circle {
|
|
4117
4119
|
width: var(--spacing-space-6);
|
|
@@ -4122,8 +4124,8 @@
|
|
|
4122
4124
|
height: var(--spacing-space-4);
|
|
4123
4125
|
}
|
|
4124
4126
|
.lib-xplat-radio.lg > span {
|
|
4125
|
-
font-size: var(--semantic-typo-
|
|
4126
|
-
line-height: var(--semantic-typo-
|
|
4127
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
4128
|
+
line-height: var(--semantic-typo-label-1-m-lh);
|
|
4127
4129
|
}
|
|
4128
4130
|
.lib-xplat-radio > .circle {
|
|
4129
4131
|
border: 2px solid var(--semantic-border-strong);
|
|
@@ -4195,28 +4197,29 @@
|
|
|
4195
4197
|
z-index: 1;
|
|
4196
4198
|
}
|
|
4197
4199
|
.lib-xplat-select.sm .select-trigger {
|
|
4198
|
-
|
|
4199
|
-
padding:
|
|
4200
|
+
height: var(--spacing-control-height-sm);
|
|
4201
|
+
padding: 0 var(--spacing-space-2);
|
|
4202
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
4203
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
4204
|
+
}
|
|
4205
|
+
.lib-xplat-select.md .select-trigger {
|
|
4206
|
+
height: var(--spacing-control-height-md);
|
|
4207
|
+
padding: 0 var(--spacing-space-3);
|
|
4200
4208
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
4201
4209
|
line-height: var(--semantic-typo-label-2-m-lh);
|
|
4202
4210
|
}
|
|
4203
|
-
.lib-xplat-select.
|
|
4204
|
-
|
|
4205
|
-
padding:
|
|
4211
|
+
.lib-xplat-select.lg .select-trigger {
|
|
4212
|
+
height: var(--spacing-control-height-lg);
|
|
4213
|
+
padding: 0 var(--spacing-space-4);
|
|
4206
4214
|
font-size: var(--semantic-typo-label-1-m-size);
|
|
4207
4215
|
line-height: var(--semantic-typo-label-1-m-lh);
|
|
4208
4216
|
}
|
|
4209
|
-
.lib-xplat-select.lg .select-trigger {
|
|
4210
|
-
min-height: var(--spacing-control-height-lg);
|
|
4211
|
-
padding: var(--spacing-space-2) var(--spacing-space-4);
|
|
4212
|
-
font-size: var(--semantic-typo-body-1-m-size);
|
|
4213
|
-
line-height: var(--semantic-typo-body-1-m-lh);
|
|
4214
|
-
}
|
|
4215
4217
|
.lib-xplat-select .select-trigger {
|
|
4216
4218
|
cursor: pointer;
|
|
4217
4219
|
user-select: none;
|
|
4218
4220
|
outline: none;
|
|
4219
4221
|
display: flex;
|
|
4222
|
+
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
4220
4223
|
align-items: center;
|
|
4221
4224
|
justify-content: space-between;
|
|
4222
4225
|
gap: var(--spacing-space-2);
|
|
@@ -4278,7 +4281,7 @@
|
|
|
4278
4281
|
transform: rotate(180deg);
|
|
4279
4282
|
}
|
|
4280
4283
|
.lib-xplat-select .select-trigger .select-trigger-icon svg {
|
|
4281
|
-
font-size: var(--semantic-typo-
|
|
4284
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
4282
4285
|
}
|
|
4283
4286
|
.lib-xplat-select-content {
|
|
4284
4287
|
position: fixed;
|
|
@@ -4317,22 +4320,26 @@
|
|
|
4317
4320
|
}
|
|
4318
4321
|
.lib-xplat-select-content.sm .select-item {
|
|
4319
4322
|
padding: var(--spacing-space-2) var(--spacing-space-2);
|
|
4320
|
-
font-size: var(--semantic-typo-
|
|
4321
|
-
line-height: var(--semantic-typo-
|
|
4323
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
4324
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
4322
4325
|
}
|
|
4323
4326
|
.lib-xplat-select-content.lg .select-item {
|
|
4324
4327
|
padding: var(--spacing-space-2) var(--spacing-space-4);
|
|
4325
|
-
font-size: var(--semantic-typo-
|
|
4326
|
-
line-height: var(--semantic-typo-
|
|
4328
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
4329
|
+
line-height: var(--semantic-typo-label-1-m-lh);
|
|
4327
4330
|
}
|
|
4328
4331
|
.lib-xplat-select-content .select-item {
|
|
4329
4332
|
padding: var(--spacing-space-2) var(--spacing-space-3);
|
|
4330
|
-
font-size: var(--semantic-typo-label-
|
|
4331
|
-
line-height: var(--semantic-typo-label-
|
|
4333
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
4334
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
4335
|
+
font-weight: var(--semantic-typo-label-1-m-weight);
|
|
4332
4336
|
cursor: pointer;
|
|
4333
4337
|
transition: background-color 0.15s ease;
|
|
4334
4338
|
outline: none;
|
|
4335
4339
|
}
|
|
4340
|
+
.lib-xplat-select-content .select-item.is-selected {
|
|
4341
|
+
font-weight: var(--semantic-typo-label-1-sb-weight);
|
|
4342
|
+
}
|
|
4336
4343
|
.lib-xplat-select-content .select-item:hover:not(.disabled) {
|
|
4337
4344
|
background-color: var(--semantic-surface-neutral-subtle);
|
|
4338
4345
|
}
|
|
@@ -4467,7 +4474,7 @@
|
|
|
4467
4474
|
transition: background-color 0.2s, color 0.2s;
|
|
4468
4475
|
}
|
|
4469
4476
|
.lib-xplat-steps .step-circle svg {
|
|
4470
|
-
font-size: var(--semantic-typo-label-
|
|
4477
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
4471
4478
|
}
|
|
4472
4479
|
.lib-xplat-steps .step-content {
|
|
4473
4480
|
display: flex;
|
|
@@ -4579,6 +4586,10 @@
|
|
|
4579
4586
|
flex-shrink: 0;
|
|
4580
4587
|
overflow: hidden;
|
|
4581
4588
|
}
|
|
4589
|
+
.lib-xplat-swiper__slide img {
|
|
4590
|
+
-webkit-user-drag: none;
|
|
4591
|
+
user-drag: none;
|
|
4592
|
+
}
|
|
4582
4593
|
.lib-xplat-swiper__progress {
|
|
4583
4594
|
margin-top: var(--spacing-space-4);
|
|
4584
4595
|
display: flex;
|
|
@@ -4753,14 +4764,14 @@
|
|
|
4753
4764
|
.lib-xplat-table-wrapper.md > .lib-xplat-table > tbody > tr > th,
|
|
4754
4765
|
.lib-xplat-table-wrapper.md > .lib-xplat-table > tbody > tr > td {
|
|
4755
4766
|
padding: var(--spacing-space-2) var(--spacing-space-3);
|
|
4756
|
-
font-size: var(--semantic-typo-
|
|
4767
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
4757
4768
|
}
|
|
4758
4769
|
.lib-xplat-table-wrapper.lg > .lib-xplat-table > thead > tr > th,
|
|
4759
4770
|
.lib-xplat-table-wrapper.lg > .lib-xplat-table > thead > tr > td,
|
|
4760
4771
|
.lib-xplat-table-wrapper.lg > .lib-xplat-table > tbody > tr > th,
|
|
4761
4772
|
.lib-xplat-table-wrapper.lg > .lib-xplat-table > tbody > tr > td {
|
|
4762
4773
|
padding: var(--spacing-space-3) var(--spacing-space-4);
|
|
4763
|
-
font-size: var(--semantic-typo-label-
|
|
4774
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
4764
4775
|
}
|
|
4765
4776
|
.lib-xplat-table-wrapper > .lib-xplat-table {
|
|
4766
4777
|
width: 100%;
|
|
@@ -5041,7 +5052,7 @@
|
|
|
5041
5052
|
.lib-xplat-tag.lg {
|
|
5042
5053
|
gap: var(--spacing-space-1);
|
|
5043
5054
|
padding: var(--spacing-space-1) var(--spacing-space-2);
|
|
5044
|
-
font-size: var(--semantic-typo-
|
|
5055
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
5045
5056
|
}
|
|
5046
5057
|
.lib-xplat-tag.neutral {
|
|
5047
5058
|
color: var(--semantic-text-muted);
|
|
@@ -5117,7 +5128,7 @@
|
|
|
5117
5128
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
5118
5129
|
}
|
|
5119
5130
|
.lib-xplat-tag.lg .tag-close svg {
|
|
5120
|
-
font-size: var(--semantic-typo-
|
|
5131
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
5121
5132
|
}
|
|
5122
5133
|
|
|
5123
5134
|
/* src/components/TextArea/textArea.scss */
|
|
@@ -5161,8 +5172,8 @@
|
|
|
5161
5172
|
color: var(--semantic-text-subtle);
|
|
5162
5173
|
resize: none;
|
|
5163
5174
|
height: 1.5em;
|
|
5164
|
-
font-size: var(--semantic-typo-label-
|
|
5165
|
-
line-height: var(--semantic-typo-label-
|
|
5175
|
+
font-size: var(--semantic-typo-label-2-m-size);
|
|
5176
|
+
line-height: var(--semantic-typo-label-2-m-lh);
|
|
5166
5177
|
font-family: inherit;
|
|
5167
5178
|
}
|
|
5168
5179
|
.lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea:disabled {
|
|
@@ -5224,8 +5235,8 @@
|
|
|
5224
5235
|
gap: var(--spacing-space-2);
|
|
5225
5236
|
padding: var(--spacing-space-3) var(--spacing-space-4);
|
|
5226
5237
|
border-radius: var(--spacing-radius-md);
|
|
5227
|
-
font-size: var(--semantic-typo-
|
|
5228
|
-
line-height: var(--semantic-typo-
|
|
5238
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
5239
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
5229
5240
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
|
|
5230
5241
|
pointer-events: auto;
|
|
5231
5242
|
animation: lib-xplat-toast-enter 0.2s ease;
|
|
@@ -5244,7 +5255,7 @@
|
|
|
5244
5255
|
background: none;
|
|
5245
5256
|
border: none;
|
|
5246
5257
|
cursor: pointer;
|
|
5247
|
-
font-size: var(--semantic-typo-
|
|
5258
|
+
font-size: var(--semantic-typo-label-1-m-size);
|
|
5248
5259
|
line-height: 1;
|
|
5249
5260
|
padding: 0;
|
|
5250
5261
|
opacity: 0.6;
|
package/dist/components/index.js
CHANGED
|
@@ -5049,10 +5049,11 @@ var SelectItem = (props) => {
|
|
|
5049
5049
|
ctx?.close();
|
|
5050
5050
|
onClick?.();
|
|
5051
5051
|
};
|
|
5052
|
+
const isSelected = value !== void 0 ? ctx?.selectedValue === value : ctx?.selectedLabel === children;
|
|
5052
5053
|
return /* @__PURE__ */ jsx334(
|
|
5053
5054
|
"div",
|
|
5054
5055
|
{
|
|
5055
|
-
className: clsx_default("select-item", disabled && "disabled"),
|
|
5056
|
+
className: clsx_default("select-item", disabled && "disabled", isSelected && "is-selected"),
|
|
5056
5057
|
onClick: handleClick,
|
|
5057
5058
|
role: "menuitem",
|
|
5058
5059
|
tabIndex: disabled ? void 0 : 0,
|
|
@@ -5088,12 +5089,14 @@ var SelectRoot = (props) => {
|
|
|
5088
5089
|
const isControlled = valueProp !== void 0;
|
|
5089
5090
|
const [isOpen, setOpen] = React30.useState(false);
|
|
5090
5091
|
const [uncontrolledLabel, setUncontrolledLabel] = React30.useState(null);
|
|
5092
|
+
const [uncontrolledValue, setUncontrolledValue] = React30.useState(void 0);
|
|
5091
5093
|
const controlledLabel = React30.useMemo(() => {
|
|
5092
5094
|
if (!isControlled) return null;
|
|
5093
5095
|
const match = itemChildren.find((child) => child.props.value === valueProp);
|
|
5094
5096
|
return match ? match.props.children : null;
|
|
5095
5097
|
}, [isControlled, valueProp, itemChildren]);
|
|
5096
5098
|
const selectedLabel = isControlled ? controlledLabel : uncontrolledLabel;
|
|
5099
|
+
const selectedValue = isControlled ? valueProp : uncontrolledValue;
|
|
5097
5100
|
const triggerRef = React30.useRef(null);
|
|
5098
5101
|
const contentRef = React30.useRef(null);
|
|
5099
5102
|
const [mounted, setMounted] = React30.useState(false);
|
|
@@ -5120,6 +5123,7 @@ var SelectRoot = (props) => {
|
|
|
5120
5123
|
(label, itemValue) => {
|
|
5121
5124
|
if (!isControlled) {
|
|
5122
5125
|
setUncontrolledLabel(label);
|
|
5126
|
+
setUncontrolledValue(itemValue);
|
|
5123
5127
|
}
|
|
5124
5128
|
onChange?.(itemValue, label);
|
|
5125
5129
|
},
|
|
@@ -5132,12 +5136,13 @@ var SelectRoot = (props) => {
|
|
|
5132
5136
|
visible,
|
|
5133
5137
|
triggerRef,
|
|
5134
5138
|
selectedLabel,
|
|
5139
|
+
selectedValue,
|
|
5135
5140
|
setSelected,
|
|
5136
5141
|
open,
|
|
5137
5142
|
close,
|
|
5138
5143
|
toggle
|
|
5139
5144
|
}),
|
|
5140
|
-
[isOpen, mounted, visible, selectedLabel, setSelected, open, close, toggle]
|
|
5145
|
+
[isOpen, mounted, visible, selectedLabel, selectedValue, setSelected, open, close, toggle]
|
|
5141
5146
|
);
|
|
5142
5147
|
const stateClass = visible ? "visible" : "exit";
|
|
5143
5148
|
const handleTriggerClick = (e) => {
|
|
@@ -5351,7 +5356,7 @@ var Swiper = (props) => {
|
|
|
5351
5356
|
);
|
|
5352
5357
|
const [isDragging, setIsDragging] = React31.useState(false);
|
|
5353
5358
|
const [dragOffset, setDragOffset] = React31.useState(0);
|
|
5354
|
-
const [animated, setAnimated] = React31.useState(
|
|
5359
|
+
const [animated, setAnimated] = React31.useState(false);
|
|
5355
5360
|
const [containerWidth, setContainerWidth] = React31.useState(0);
|
|
5356
5361
|
const containerRef = React31.useRef(null);
|
|
5357
5362
|
const startXRef = React31.useRef(0);
|
|
@@ -5359,12 +5364,17 @@ var Swiper = (props) => {
|
|
|
5359
5364
|
const autoplayTimerRef = React31.useRef(null);
|
|
5360
5365
|
const resumeTimeoutRef = React31.useRef(null);
|
|
5361
5366
|
const [paused, setPaused] = React31.useState(false);
|
|
5367
|
+
const initializedRef = React31.useRef(false);
|
|
5362
5368
|
React31.useEffect(() => {
|
|
5363
5369
|
const el = containerRef.current;
|
|
5364
5370
|
if (!el) return;
|
|
5365
5371
|
const ro = new ResizeObserver((entries) => {
|
|
5366
5372
|
for (const entry of entries) {
|
|
5367
5373
|
setContainerWidth(entry.contentRect.width);
|
|
5374
|
+
if (!initializedRef.current) {
|
|
5375
|
+
initializedRef.current = true;
|
|
5376
|
+
requestAnimationFrame(() => setAnimated(true));
|
|
5377
|
+
}
|
|
5368
5378
|
}
|
|
5369
5379
|
});
|
|
5370
5380
|
ro.observe(el);
|
|
@@ -5567,6 +5577,7 @@ var Swiper = (props) => {
|
|
|
5567
5577
|
className: "lib-xplat-swiper__viewport",
|
|
5568
5578
|
onMouseDown: handleDragStart,
|
|
5569
5579
|
onTouchStart: handleDragStart,
|
|
5580
|
+
onDragStart: (e) => e.preventDefault(),
|
|
5570
5581
|
children: /* @__PURE__ */ jsx339(
|
|
5571
5582
|
"div",
|
|
5572
5583
|
{
|