@x-plat/design-system 0.4.6 → 0.5.1
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.cjs +4 -4
- package/dist/components/Accordion/index.css +11 -11
- package/dist/components/Accordion/index.js +4 -4
- package/dist/components/Alert/index.css +19 -19
- package/dist/components/Avatar/index.cjs +11 -5
- package/dist/components/Avatar/index.css +41 -11
- package/dist/components/Avatar/index.d.cts +1 -2
- package/dist/components/Avatar/index.d.ts +1 -2
- package/dist/components/Avatar/index.js +11 -5
- package/dist/components/Badge/index.cjs +3 -4
- package/dist/components/Badge/index.css +32 -19
- package/dist/components/Badge/index.d.cts +3 -2
- package/dist/components/Badge/index.d.ts +3 -2
- package/dist/components/Badge/index.js +3 -4
- package/dist/components/Breadcrumb/index.css +6 -6
- package/dist/components/Button/index.cjs +1 -3
- package/dist/components/Button/index.css +67 -23
- package/dist/components/Button/index.d.cts +2 -3
- package/dist/components/Button/index.d.ts +2 -3
- package/dist/components/Button/index.js +1 -3
- package/dist/components/Calendar/index.cjs +10 -10
- package/dist/components/Calendar/index.css +51 -52
- package/dist/components/Calendar/index.d.cts +3 -3
- package/dist/components/Calendar/index.d.ts +3 -3
- package/dist/components/Calendar/index.js +10 -10
- package/dist/components/Card/index.css +6 -6
- package/dist/components/CardTab/index.css +28 -28
- package/dist/components/Chart/index.cjs +228 -14548
- package/dist/components/Chart/index.css +57 -0
- package/dist/components/Chart/index.d.cts +3 -2
- package/dist/components/Chart/index.d.ts +3 -2
- package/dist/components/Chart/index.js +219 -14541
- package/dist/components/CheckBox/index.cjs +13 -8
- package/dist/components/CheckBox/index.css +50 -27
- package/dist/components/CheckBox/index.d.cts +3 -2
- package/dist/components/CheckBox/index.d.ts +3 -2
- package/dist/components/CheckBox/index.js +13 -8
- package/dist/components/Chip/index.cjs +1 -3
- package/dist/components/Chip/index.css +35 -23
- package/dist/components/Chip/index.d.cts +2 -3
- package/dist/components/Chip/index.d.ts +2 -3
- package/dist/components/Chip/index.js +1 -3
- package/dist/components/DatePicker/index.cjs +37 -46
- package/dist/components/DatePicker/index.css +175 -122
- package/dist/components/DatePicker/index.d.cts +2 -3
- package/dist/components/DatePicker/index.d.ts +2 -3
- package/dist/components/DatePicker/index.js +37 -46
- package/dist/components/Divider/index.css +2 -2
- package/dist/components/Drawer/index.css +7 -7
- package/dist/components/Dropdown/index.css +10 -10
- package/dist/components/EmptyState/index.css +8 -9
- package/dist/components/FileUpload/index.cjs +4 -4
- package/dist/components/FileUpload/index.css +13 -14
- package/dist/components/FileUpload/index.js +4 -4
- package/dist/components/HtmlTypeWriter/index.cjs +10 -10
- package/dist/components/HtmlTypeWriter/index.css +3 -3
- package/dist/components/HtmlTypeWriter/index.js +10 -10
- package/dist/components/ImageSelector/index.cjs +4 -4
- package/dist/components/ImageSelector/index.css +15 -15
- package/dist/components/ImageSelector/index.js +4 -4
- package/dist/components/Input/index.css +37 -26
- package/dist/components/Modal/index.css +5 -4
- package/dist/components/Pagination/index.cjs +9 -10
- package/dist/components/Pagination/index.css +37 -26
- package/dist/components/Pagination/index.d.cts +3 -2
- package/dist/components/Pagination/index.d.ts +3 -2
- package/dist/components/Pagination/index.js +9 -10
- package/dist/components/PopOver/index.css +3 -3
- package/dist/components/Progress/index.cjs +4 -5
- package/dist/components/Progress/index.css +23 -9
- package/dist/components/Progress/index.d.cts +3 -2
- package/dist/components/Progress/index.d.ts +3 -2
- package/dist/components/Progress/index.js +4 -5
- package/dist/components/Radio/index.cjs +3 -4
- package/dist/components/Radio/index.css +61 -29
- package/dist/components/Radio/index.d.cts +3 -2
- package/dist/components/Radio/index.d.ts +3 -2
- package/dist/components/Radio/index.js +3 -4
- package/dist/components/Select/index.cjs +4 -4
- package/dist/components/Select/index.css +46 -40
- package/dist/components/Select/index.js +4 -4
- package/dist/components/Skeleton/index.css +3 -3
- package/dist/components/Spinner/index.cjs +2 -3
- package/dist/components/Spinner/index.css +22 -8
- package/dist/components/Spinner/index.d.cts +3 -2
- package/dist/components/Spinner/index.d.ts +3 -2
- package/dist/components/Spinner/index.js +2 -3
- package/dist/components/Steps/index.cjs +8 -9
- package/dist/components/Steps/index.css +77 -22
- package/dist/components/Steps/index.d.cts +3 -2
- package/dist/components/Steps/index.d.ts +3 -2
- package/dist/components/Steps/index.js +8 -9
- package/dist/components/Swiper/index.css +10 -10
- package/dist/components/Switch/index.cjs +4 -5
- package/dist/components/Switch/index.css +58 -26
- package/dist/components/Switch/index.d.cts +3 -2
- package/dist/components/Switch/index.d.ts +3 -2
- package/dist/components/Switch/index.js +4 -5
- package/dist/components/Tab/index.css +15 -15
- package/dist/components/Table/index.cjs +0 -3
- package/dist/components/Table/index.css +15 -15
- package/dist/components/Table/index.d.cts +1 -2
- package/dist/components/Table/index.d.ts +1 -2
- package/dist/components/Table/index.js +0 -3
- package/dist/components/Tag/index.cjs +23 -10
- package/dist/components/Tag/index.css +58 -17
- package/dist/components/Tag/index.d.cts +5 -2
- package/dist/components/Tag/index.d.ts +5 -2
- package/dist/components/Tag/index.js +23 -10
- package/dist/components/TextArea/index.css +20 -9
- package/dist/components/Toast/index.css +22 -22
- package/dist/components/Tooltip/index.cjs +1 -3
- package/dist/components/Tooltip/index.css +6 -6
- package/dist/components/Tooltip/index.d.cts +1 -2
- package/dist/components/Tooltip/index.d.ts +1 -2
- package/dist/components/Tooltip/index.js +1 -3
- package/dist/components/Video/index.css +5 -5
- package/dist/components/index.cjs +970 -15289
- package/dist/components/index.css +2167 -1061
- package/dist/components/index.d.cts +1 -2
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.js +871 -15192
- package/dist/index.cjs +1077 -15378
- package/dist/index.css +2164 -1058
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +877 -15182
- package/dist/layout/Grid/FullGrid/index.cjs +9 -18
- package/dist/layout/Grid/FullGrid/index.d.cts +1 -1
- package/dist/layout/Grid/FullGrid/index.d.ts +1 -1
- package/dist/layout/Grid/FullGrid/index.js +9 -18
- package/dist/layout/Grid/FullScreen/index.cjs +9 -18
- package/dist/layout/Grid/FullScreen/index.d.cts +3 -3
- package/dist/layout/Grid/FullScreen/index.d.ts +3 -3
- package/dist/layout/Grid/FullScreen/index.js +9 -18
- package/dist/layout/Grid/index.cjs +34 -20
- package/dist/layout/Grid/index.js +34 -20
- package/dist/layout/index.cjs +34 -20
- package/dist/layout/index.css +1000 -295
- package/dist/layout/index.js +34 -20
- package/dist/tokens/index.cjs +33 -142
- package/dist/tokens/index.d.cts +23 -6
- package/dist/tokens/index.d.ts +23 -6
- package/dist/tokens/index.js +29 -140
- package/guidelines/Guidelines.md +57 -0
- package/guidelines/components/accordion.md +72 -0
- package/guidelines/components/avatar.md +35 -0
- package/guidelines/components/button.md +58 -0
- package/guidelines/components/card.md +28 -0
- package/guidelines/components/chart.md +58 -0
- package/guidelines/components/chip-tag.md +49 -0
- package/guidelines/components/data-display.md +96 -0
- package/guidelines/components/datepicker.md +60 -0
- package/guidelines/components/dropdown.md +49 -0
- package/guidelines/components/feedback.md +64 -0
- package/guidelines/components/file-media.md +95 -0
- package/guidelines/components/form.md +60 -0
- package/guidelines/components/html-typewriter.md +38 -0
- package/guidelines/components/input.md +55 -0
- package/guidelines/components/navigation.md +80 -0
- package/guidelines/components/overlay.md +72 -0
- package/guidelines/components/select.md +44 -0
- package/guidelines/components/swiper.md +84 -0
- package/guidelines/components/table.md +62 -0
- package/guidelines/composition/grid.md +95 -0
- package/guidelines/composition/layout.md +30 -0
- package/guidelines/foundations/color.md +81 -0
- package/guidelines/foundations/icons.md +55 -0
- package/guidelines/foundations/spacing.md +51 -0
- package/guidelines/foundations/typography.md +63 -0
- package/guidelines/setup.md +42 -0
- package/package.json +5 -5
- package/dist/colors-CY4JXVHj.d.cts +0 -137
- package/dist/colors-CY4JXVHj.d.ts +0 -137
- package/dist/layout/Grid/GapGrid/index.cjs +0 -32
- package/dist/layout/Grid/GapGrid/index.d.cts +0 -12
- package/dist/layout/Grid/GapGrid/index.d.ts +0 -12
- package/dist/layout/Grid/GapGrid/index.js +0 -11
|
@@ -2,42 +2,53 @@
|
|
|
2
2
|
.lib-xplat-input-wrap {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
gap:
|
|
5
|
+
gap: var(--spacing-space-2);
|
|
6
6
|
}
|
|
7
7
|
.lib-xplat-input-wrap .lib-xplat-input {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
border: 1px solid var(--
|
|
11
|
-
border-radius:
|
|
10
|
+
border: 1px solid var(--semantic-border-default);
|
|
11
|
+
border-radius: var(--spacing-radius-md);
|
|
12
12
|
overflow: hidden;
|
|
13
|
-
background-color: var(--
|
|
14
|
-
padding-right:
|
|
13
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
14
|
+
padding-right: var(--spacing-space-2);
|
|
15
15
|
width: 100%;
|
|
16
|
+
transition: border-color 0.15s, box-shadow 0.15s;
|
|
17
|
+
}
|
|
18
|
+
.lib-xplat-input-wrap .lib-xplat-input:hover:not(.disabled):not(:focus-within) {
|
|
19
|
+
border-color: var(--semantic-border-strong);
|
|
20
|
+
}
|
|
21
|
+
.lib-xplat-input-wrap .lib-xplat-input:focus-within {
|
|
22
|
+
border-color: var(--semantic-interaction-focus-ring);
|
|
23
|
+
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
24
|
+
}
|
|
25
|
+
.lib-xplat-input-wrap .lib-xplat-input:has(> input:not(:placeholder-shown)):not(:focus-within) {
|
|
26
|
+
border-color: var(--semantic-border-strong);
|
|
16
27
|
}
|
|
17
28
|
.lib-xplat-input-wrap .lib-xplat-input.sm {
|
|
18
|
-
height:
|
|
19
|
-
font-size:
|
|
29
|
+
height: var(--spacing-control-height-sm);
|
|
30
|
+
font-size: 14px;
|
|
20
31
|
}
|
|
21
32
|
.lib-xplat-input-wrap .lib-xplat-input.md {
|
|
22
|
-
height:
|
|
23
|
-
font-size:
|
|
33
|
+
height: var(--spacing-control-height-md);
|
|
34
|
+
font-size: 16px;
|
|
24
35
|
}
|
|
25
36
|
.lib-xplat-input-wrap .lib-xplat-input.lg {
|
|
26
|
-
height:
|
|
27
|
-
font-size:
|
|
37
|
+
height: var(--spacing-control-height-lg);
|
|
38
|
+
font-size: 18px;
|
|
28
39
|
}
|
|
29
40
|
.lib-xplat-input-wrap .lib-xplat-input.disabled {
|
|
30
|
-
background-color: var(--
|
|
41
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
31
42
|
cursor: not-allowed;
|
|
32
43
|
}
|
|
33
44
|
.lib-xplat-input-wrap .lib-xplat-input > input {
|
|
34
45
|
border: none;
|
|
35
46
|
outline: none;
|
|
36
47
|
flex: 1;
|
|
37
|
-
padding-left:
|
|
38
|
-
padding-right:
|
|
48
|
+
padding-left: var(--spacing-space-4);
|
|
49
|
+
padding-right: var(--spacing-space-2);
|
|
39
50
|
width: 100%;
|
|
40
|
-
color: var(--
|
|
51
|
+
color: var(--semantic-text-subtle);
|
|
41
52
|
}
|
|
42
53
|
.lib-xplat-input-wrap .lib-xplat-input > input :disabled {
|
|
43
54
|
cursor: not-allowed;
|
|
@@ -47,8 +58,8 @@
|
|
|
47
58
|
align-items: center;
|
|
48
59
|
justify-content: center;
|
|
49
60
|
height: 100%;
|
|
50
|
-
color: var(--
|
|
51
|
-
padding-right:
|
|
61
|
+
color: var(--semantic-icon-subtle);
|
|
62
|
+
padding-right: var(--spacing-space-2);
|
|
52
63
|
}
|
|
53
64
|
.lib-xplat-input-wrap .lib-xplat-input > .suffix > .wrapper {
|
|
54
65
|
font: 500;
|
|
@@ -58,36 +69,35 @@
|
|
|
58
69
|
}
|
|
59
70
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap {
|
|
60
71
|
display: flex;
|
|
61
|
-
gap:
|
|
62
|
-
margin-left:
|
|
72
|
+
gap: var(--spacing-space-2);
|
|
73
|
+
margin-left: var(--spacing-space-1);
|
|
63
74
|
}
|
|
64
75
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation {
|
|
65
76
|
display: flex;
|
|
66
|
-
gap:
|
|
67
|
-
font-size:
|
|
77
|
+
gap: var(--spacing-space-1);
|
|
78
|
+
font-size: 12px;
|
|
68
79
|
align-items: center;
|
|
69
80
|
user-select: none;
|
|
70
81
|
}
|
|
71
82
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.default {
|
|
72
|
-
color: var(--
|
|
83
|
+
color: var(--semantic-icon-subtle);
|
|
73
84
|
}
|
|
74
85
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.success {
|
|
75
|
-
color: var(--
|
|
86
|
+
color: var(--semantic-text-success);
|
|
76
87
|
}
|
|
77
88
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.warning {
|
|
78
|
-
color: var(--
|
|
89
|
+
color: var(--semantic-text-warning);
|
|
79
90
|
}
|
|
80
91
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.error {
|
|
81
|
-
color: var(--
|
|
92
|
+
color: var(--semantic-text-error);
|
|
82
93
|
}
|
|
83
94
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation > .icon {
|
|
84
|
-
font-size:
|
|
95
|
+
font-size: 16px;
|
|
85
96
|
}
|
|
86
97
|
|
|
87
98
|
/* src/components/DatePicker/datepicker.scss */
|
|
88
99
|
.lib-xplat-datepicker {
|
|
89
100
|
user-select: none;
|
|
90
|
-
container-type: inline-size;
|
|
91
101
|
min-width: 200px;
|
|
92
102
|
width: 100%;
|
|
93
103
|
}
|
|
@@ -95,89 +105,88 @@
|
|
|
95
105
|
display: flex;
|
|
96
106
|
align-items: center;
|
|
97
107
|
justify-content: center;
|
|
98
|
-
gap:
|
|
99
|
-
margin-bottom:
|
|
108
|
+
gap: var(--spacing-space-2);
|
|
109
|
+
margin-bottom: var(--spacing-space-3);
|
|
100
110
|
}
|
|
101
111
|
.lib-xplat-datepicker .datepicker-title {
|
|
102
112
|
background: none;
|
|
103
113
|
border: none;
|
|
104
114
|
cursor: pointer;
|
|
105
|
-
padding:
|
|
106
|
-
border-radius:
|
|
115
|
+
padding: var(--spacing-space-1) var(--spacing-space-2);
|
|
116
|
+
border-radius: var(--spacing-radius-md);
|
|
107
117
|
transition: background-color 0.15s;
|
|
108
|
-
font-size: clamp(
|
|
118
|
+
font-size: clamp(13px, 3cqi, 18px);
|
|
109
119
|
font-weight: 600;
|
|
110
|
-
color: var(--
|
|
120
|
+
color: var(--semantic-text-strong);
|
|
111
121
|
min-width: 110px;
|
|
112
122
|
text-align: center;
|
|
113
123
|
}
|
|
114
124
|
.lib-xplat-datepicker .datepicker-title:hover {
|
|
115
|
-
background-color: var(--
|
|
125
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
116
126
|
}
|
|
117
127
|
.lib-xplat-datepicker .datepicker-picker-grid {
|
|
118
128
|
display: grid;
|
|
119
129
|
grid-template-columns: repeat(3, 1fr);
|
|
120
|
-
gap:
|
|
121
|
-
padding:
|
|
130
|
+
gap: var(--spacing-space-1);
|
|
131
|
+
padding: var(--spacing-space-1) 0;
|
|
122
132
|
}
|
|
123
133
|
.lib-xplat-datepicker .datepicker-picker-cell {
|
|
124
134
|
display: flex;
|
|
125
135
|
align-items: center;
|
|
126
136
|
justify-content: center;
|
|
127
|
-
padding:
|
|
137
|
+
padding: var(--spacing-space-2);
|
|
128
138
|
border: none;
|
|
129
|
-
border-radius:
|
|
139
|
+
border-radius: var(--spacing-radius-md);
|
|
130
140
|
background: none;
|
|
131
|
-
font-size: clamp(
|
|
132
|
-
color: var(--
|
|
141
|
+
font-size: clamp(11px, 2cqi, 13px);
|
|
142
|
+
color: var(--semantic-text-subtle);
|
|
133
143
|
cursor: pointer;
|
|
134
144
|
transition: background-color 0.15s;
|
|
135
145
|
}
|
|
136
146
|
.lib-xplat-datepicker .datepicker-picker-cell:hover {
|
|
137
|
-
background-color: var(--
|
|
147
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
138
148
|
}
|
|
139
149
|
.lib-xplat-datepicker .datepicker-picker-cell.active {
|
|
140
|
-
background-color: var(--
|
|
141
|
-
color: var(--
|
|
150
|
+
background-color: var(--semantic-surface-brand-default);
|
|
151
|
+
color: var(--semantic-text-inverse);
|
|
142
152
|
font-weight: 600;
|
|
143
153
|
}
|
|
144
154
|
.lib-xplat-datepicker .datepicker-nav {
|
|
145
155
|
display: flex;
|
|
146
156
|
align-items: center;
|
|
147
157
|
justify-content: center;
|
|
148
|
-
width:
|
|
149
|
-
height:
|
|
158
|
+
width: var(--spacing-space-7);
|
|
159
|
+
height: var(--spacing-space-7);
|
|
150
160
|
border: none;
|
|
151
|
-
border-radius:
|
|
161
|
+
border-radius: var(--spacing-radius-md);
|
|
152
162
|
background: none;
|
|
153
163
|
cursor: pointer;
|
|
154
|
-
color: var(--
|
|
164
|
+
color: var(--semantic-text-muted);
|
|
155
165
|
transition: background-color 0.15s;
|
|
156
166
|
}
|
|
157
167
|
.lib-xplat-datepicker .datepicker-nav:hover {
|
|
158
|
-
background-color: var(--
|
|
168
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
159
169
|
}
|
|
160
170
|
.lib-xplat-datepicker .datepicker-nav svg {
|
|
161
|
-
|
|
162
|
-
height: 16px;
|
|
171
|
+
font-size: 16px;
|
|
163
172
|
}
|
|
164
173
|
.lib-xplat-datepicker .datepicker-weekdays {
|
|
165
174
|
display: grid;
|
|
166
175
|
grid-template-columns: repeat(7, 1fr);
|
|
167
|
-
margin-bottom:
|
|
176
|
+
margin-bottom: var(--spacing-space-1);
|
|
168
177
|
}
|
|
169
178
|
.lib-xplat-datepicker .datepicker-weekday {
|
|
170
179
|
text-align: center;
|
|
171
|
-
font-size: clamp(
|
|
180
|
+
font-size: clamp(11px, 2cqi, 14px);
|
|
172
181
|
font-weight: 500;
|
|
173
|
-
padding:
|
|
174
|
-
color: var(--
|
|
182
|
+
padding: var(--spacing-space-1) 0;
|
|
183
|
+
color: var(--semantic-text-muted);
|
|
175
184
|
}
|
|
176
185
|
.lib-xplat-datepicker .datepicker-weekday.sunday {
|
|
177
|
-
color: var(--
|
|
186
|
+
color: var(--semantic-text-sunday);
|
|
178
187
|
}
|
|
179
188
|
.lib-xplat-datepicker .datepicker-weekday.saturday {
|
|
180
|
-
color: var(--
|
|
189
|
+
color: var(--semantic-text-saturday);
|
|
181
190
|
}
|
|
182
191
|
.lib-xplat-datepicker .datepicker-grid {
|
|
183
192
|
display: grid;
|
|
@@ -190,63 +199,63 @@
|
|
|
190
199
|
justify-content: center;
|
|
191
200
|
max-height: 100%;
|
|
192
201
|
aspect-ratio: 1;
|
|
193
|
-
font-size: clamp(
|
|
202
|
+
font-size: clamp(12px, 2.5cqi, 16px);
|
|
194
203
|
border: none;
|
|
195
|
-
border-radius:
|
|
204
|
+
border-radius: var(--spacing-radius-md);
|
|
196
205
|
background: none;
|
|
197
206
|
cursor: pointer;
|
|
198
|
-
color: var(--
|
|
207
|
+
color: var(--semantic-text-strong);
|
|
199
208
|
transition: background-color 0.15s, color 0.15s;
|
|
200
209
|
}
|
|
201
210
|
.lib-xplat-datepicker .datepicker-day:hover:not(:disabled):not(.outside):not(.selected) {
|
|
202
|
-
background-color: color-mix(in srgb, var(--
|
|
211
|
+
background-color: color-mix(in srgb, var(--semantic-surface-brand-default) 15%, transparent);
|
|
203
212
|
}
|
|
204
213
|
.lib-xplat-datepicker .datepicker-day.outside {
|
|
205
|
-
color: var(--
|
|
214
|
+
color: var(--semantic-text-disabled);
|
|
206
215
|
cursor: default;
|
|
207
216
|
}
|
|
208
217
|
.lib-xplat-datepicker .datepicker-day.outside.sunday {
|
|
209
|
-
color: color-mix(in srgb, var(--
|
|
218
|
+
color: color-mix(in srgb, var(--semantic-text-sunday) 35%, transparent);
|
|
210
219
|
}
|
|
211
220
|
.lib-xplat-datepicker .datepicker-day.outside.saturday {
|
|
212
|
-
color: color-mix(in srgb, var(--
|
|
221
|
+
color: color-mix(in srgb, var(--semantic-text-saturday) 35%, transparent);
|
|
213
222
|
}
|
|
214
223
|
.lib-xplat-datepicker .datepicker-day.disabled {
|
|
215
|
-
color: var(--
|
|
224
|
+
color: var(--semantic-text-disabled);
|
|
216
225
|
cursor: not-allowed;
|
|
217
226
|
}
|
|
218
227
|
.lib-xplat-datepicker .datepicker-day.today {
|
|
219
228
|
font-weight: 700;
|
|
220
|
-
box-shadow: inset 0 0 0 1px var(--
|
|
229
|
+
box-shadow: inset 0 0 0 1px var(--semantic-surface-brand-default);
|
|
221
230
|
}
|
|
222
231
|
.lib-xplat-datepicker .datepicker-day.selected {
|
|
223
|
-
background-color: var(--
|
|
224
|
-
color: var(--
|
|
232
|
+
background-color: var(--semantic-surface-brand-default);
|
|
233
|
+
color: var(--semantic-text-inverse);
|
|
225
234
|
font-weight: 600;
|
|
226
235
|
}
|
|
227
236
|
.lib-xplat-datepicker .datepicker-day.selected:hover {
|
|
228
|
-
background-color: color-mix(in srgb, var(--
|
|
237
|
+
background-color: color-mix(in srgb, var(--semantic-surface-brand-default), black 15%);
|
|
229
238
|
}
|
|
230
239
|
.lib-xplat-datepicker .datepicker-day.highlighted {
|
|
231
|
-
background-color: color-mix(in srgb, var(--
|
|
240
|
+
background-color: color-mix(in srgb, var(--semantic-surface-brand-default) 20%, transparent);
|
|
232
241
|
}
|
|
233
242
|
.lib-xplat-datepicker .datepicker-day.in-range {
|
|
234
|
-
background-color: color-mix(in srgb, var(--
|
|
243
|
+
background-color: color-mix(in srgb, var(--semantic-surface-brand-default) 12%, transparent);
|
|
235
244
|
border-radius: 0;
|
|
236
245
|
}
|
|
237
246
|
.lib-xplat-datepicker .datepicker-day.sunday:not(.selected):not(.outside):not(.disabled) {
|
|
238
|
-
color: var(--
|
|
247
|
+
color: var(--semantic-text-sunday);
|
|
239
248
|
}
|
|
240
249
|
.lib-xplat-datepicker .datepicker-day.saturday:not(.selected):not(.outside):not(.disabled) {
|
|
241
|
-
color: var(--
|
|
250
|
+
color: var(--semantic-text-saturday);
|
|
242
251
|
}
|
|
243
252
|
.lib-xplat-datepicker .datepicker-day.outside.sunday,
|
|
244
253
|
.lib-xplat-datepicker .datepicker-day.disabled.sunday {
|
|
245
|
-
color: color-mix(in srgb, var(--
|
|
254
|
+
color: color-mix(in srgb, var(--semantic-text-sunday) 35%, transparent);
|
|
246
255
|
}
|
|
247
256
|
.lib-xplat-datepicker .datepicker-day.outside.saturday,
|
|
248
257
|
.lib-xplat-datepicker .datepicker-day.disabled.saturday {
|
|
249
|
-
color: color-mix(in srgb, var(--
|
|
258
|
+
color: color-mix(in srgb, var(--semantic-text-saturday) 35%, transparent);
|
|
250
259
|
}
|
|
251
260
|
.lib-xplat-datepicker.range {
|
|
252
261
|
display: flex;
|
|
@@ -254,29 +263,29 @@
|
|
|
254
263
|
}
|
|
255
264
|
.lib-xplat-datepicker .datepicker-range-tabs {
|
|
256
265
|
display: none;
|
|
257
|
-
margin-bottom:
|
|
258
|
-
border-bottom: 1px solid var(--
|
|
266
|
+
margin-bottom: var(--spacing-space-3);
|
|
267
|
+
border-bottom: 1px solid var(--semantic-border-default);
|
|
259
268
|
}
|
|
260
269
|
.lib-xplat-datepicker .datepicker-range-tab {
|
|
261
270
|
flex: 1;
|
|
262
|
-
padding:
|
|
271
|
+
padding: var(--spacing-space-2);
|
|
263
272
|
border: none;
|
|
264
273
|
background: none;
|
|
265
|
-
font-size:
|
|
274
|
+
font-size: 13px;
|
|
266
275
|
font-weight: 500;
|
|
267
|
-
color: var(--
|
|
276
|
+
color: var(--semantic-text-muted);
|
|
268
277
|
cursor: pointer;
|
|
269
278
|
border-bottom: 2px solid transparent;
|
|
270
279
|
transition: color 0.15s, border-color 0.15s;
|
|
271
280
|
}
|
|
272
281
|
.lib-xplat-datepicker .datepicker-range-tab.active {
|
|
273
|
-
color: var(--
|
|
274
|
-
border-bottom-color: var(--
|
|
282
|
+
color: var(--semantic-surface-brand-default);
|
|
283
|
+
border-bottom-color: var(--semantic-surface-brand-default);
|
|
275
284
|
font-weight: 600;
|
|
276
285
|
}
|
|
277
286
|
.lib-xplat-datepicker .datepicker-range-panels {
|
|
278
287
|
display: flex;
|
|
279
|
-
gap:
|
|
288
|
+
gap: var(--spacing-space-6);
|
|
280
289
|
}
|
|
281
290
|
.lib-xplat-datepicker .datepicker-range-mobile {
|
|
282
291
|
display: none;
|
|
@@ -288,10 +297,10 @@
|
|
|
288
297
|
.lib-xplat-datepicker .datepicker-range-label {
|
|
289
298
|
display: block;
|
|
290
299
|
text-align: center;
|
|
291
|
-
font-size:
|
|
300
|
+
font-size: 12px;
|
|
292
301
|
font-weight: 500;
|
|
293
|
-
color: var(--
|
|
294
|
-
margin-bottom:
|
|
302
|
+
color: var(--semantic-text-muted);
|
|
303
|
+
margin-bottom: var(--spacing-space-2);
|
|
295
304
|
}
|
|
296
305
|
@media (max-width: 600px) {
|
|
297
306
|
.lib-xplat-datepicker .datepicker-range-tabs {
|
|
@@ -315,69 +324,112 @@
|
|
|
315
324
|
top: 100%;
|
|
316
325
|
left: 0;
|
|
317
326
|
z-index: 10;
|
|
318
|
-
margin-top:
|
|
319
|
-
padding:
|
|
320
|
-
background-color: var(--
|
|
321
|
-
border: 1px solid var(--
|
|
322
|
-
border-radius:
|
|
327
|
+
margin-top: var(--spacing-space-1);
|
|
328
|
+
padding: var(--spacing-space-4);
|
|
329
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
330
|
+
border: 1px solid var(--semantic-border-default);
|
|
331
|
+
border-radius: var(--spacing-radius-md);
|
|
323
332
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
|
|
324
333
|
}
|
|
325
334
|
.lib-xplat-popup-datepicker-card {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
border-radius: 0.75rem;
|
|
335
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
336
|
+
border-radius: var(--spacing-radius-lg);
|
|
329
337
|
}
|
|
330
338
|
.lib-xplat-popup-datepicker-card .popup-datepicker-content {
|
|
331
|
-
margin-bottom:
|
|
339
|
+
margin-bottom: var(--spacing-space-4);
|
|
332
340
|
}
|
|
333
341
|
.lib-xplat-popup-datepicker-card .popup-datepicker-footer {
|
|
334
342
|
display: flex;
|
|
335
343
|
justify-content: flex-end;
|
|
336
|
-
gap:
|
|
344
|
+
gap: var(--spacing-space-2);
|
|
337
345
|
}
|
|
338
346
|
|
|
339
347
|
/* src/components/Button/button.scss */
|
|
340
348
|
.lib-xplat-button {
|
|
341
|
-
border-radius:
|
|
349
|
+
border-radius: var(--spacing-radius-md);
|
|
342
350
|
font-weight: 500;
|
|
343
351
|
cursor: pointer;
|
|
352
|
+
border: 1px solid transparent;
|
|
353
|
+
transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
344
354
|
}
|
|
345
355
|
.lib-xplat-button.sm {
|
|
346
|
-
|
|
347
|
-
|
|
356
|
+
height: var(--spacing-control-height-sm);
|
|
357
|
+
padding: 0 var(--spacing-space-3);
|
|
358
|
+
font-size: 14px;
|
|
348
359
|
}
|
|
349
360
|
.lib-xplat-button.md {
|
|
350
|
-
|
|
351
|
-
|
|
361
|
+
height: var(--spacing-control-height-md);
|
|
362
|
+
padding: 0 var(--spacing-space-4);
|
|
363
|
+
font-size: 16px;
|
|
352
364
|
}
|
|
353
365
|
.lib-xplat-button.lg {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
.lib-xplat-button {
|
|
358
|
-
transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
366
|
+
height: var(--spacing-control-height-lg);
|
|
367
|
+
padding: 0 var(--spacing-space-6);
|
|
368
|
+
font-size: 18px;
|
|
359
369
|
}
|
|
360
370
|
.lib-xplat-button:disabled {
|
|
361
371
|
cursor: not-allowed;
|
|
362
|
-
background-color: var(--
|
|
363
|
-
border-color: var(--
|
|
364
|
-
color: var(--
|
|
372
|
+
background-color: var(--semantic-surface-neutral-disabled) !important;
|
|
373
|
+
border-color: var(--semantic-surface-neutral-disabled) !important;
|
|
374
|
+
color: var(--semantic-text-disabled) !important;
|
|
365
375
|
}
|
|
366
376
|
.lib-xplat-button.primary {
|
|
367
|
-
color: var(--
|
|
368
|
-
background-color: var(--
|
|
377
|
+
color: var(--semantic-text-inverse);
|
|
378
|
+
background-color: var(--semantic-surface-brand-default);
|
|
379
|
+
}
|
|
380
|
+
.lib-xplat-button.primary:hover:not(:disabled) {
|
|
381
|
+
background-color: var(--semantic-surface-brand-strong);
|
|
369
382
|
}
|
|
370
|
-
.lib-xplat-button.primary:
|
|
371
|
-
background-color:
|
|
383
|
+
.lib-xplat-button.primary:active:not(:disabled) {
|
|
384
|
+
background-color: var(--semantic-surface-brand-strong);
|
|
385
|
+
}
|
|
386
|
+
.lib-xplat-button.primary:focus-visible {
|
|
387
|
+
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
388
|
+
outline-offset: 2px;
|
|
372
389
|
}
|
|
373
390
|
.lib-xplat-button.secondary {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
color: var(--
|
|
377
|
-
|
|
391
|
+
color: var(--semantic-surface-brand-default);
|
|
392
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
393
|
+
border-color: var(--semantic-border-default);
|
|
394
|
+
}
|
|
395
|
+
.lib-xplat-button.secondary:hover:not(:disabled) {
|
|
396
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
397
|
+
}
|
|
398
|
+
.lib-xplat-button.secondary:active:not(:disabled) {
|
|
399
|
+
background-color: var(--semantic-surface-neutral-strong);
|
|
400
|
+
}
|
|
401
|
+
.lib-xplat-button.secondary:focus-visible {
|
|
402
|
+
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
403
|
+
outline-offset: 2px;
|
|
404
|
+
}
|
|
405
|
+
.lib-xplat-button.danger {
|
|
406
|
+
color: var(--semantic-text-inverse);
|
|
407
|
+
background-color: var(--semantic-surface-error-default);
|
|
408
|
+
}
|
|
409
|
+
.lib-xplat-button.danger:hover:not(:disabled) {
|
|
410
|
+
background-color: var(--semantic-surface-error-strong);
|
|
411
|
+
}
|
|
412
|
+
.lib-xplat-button.danger:active:not(:disabled) {
|
|
413
|
+
background-color: var(--semantic-surface-error-strong);
|
|
414
|
+
}
|
|
415
|
+
.lib-xplat-button.danger:focus-visible {
|
|
416
|
+
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
417
|
+
outline-offset: 2px;
|
|
418
|
+
}
|
|
419
|
+
.lib-xplat-button.ghost {
|
|
420
|
+
color: var(--semantic-text-subtle);
|
|
421
|
+
background-color: transparent;
|
|
422
|
+
border-color: transparent;
|
|
423
|
+
}
|
|
424
|
+
.lib-xplat-button.ghost:hover:not(:disabled) {
|
|
425
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
426
|
+
}
|
|
427
|
+
.lib-xplat-button.ghost:active:not(:disabled) {
|
|
428
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
378
429
|
}
|
|
379
|
-
.lib-xplat-button.
|
|
380
|
-
|
|
430
|
+
.lib-xplat-button.ghost:focus-visible {
|
|
431
|
+
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
432
|
+
outline-offset: 2px;
|
|
381
433
|
}
|
|
382
434
|
|
|
383
435
|
/* src/components/Modal/modal.scss */
|
|
@@ -385,11 +437,12 @@
|
|
|
385
437
|
z-index: 11;
|
|
386
438
|
}
|
|
387
439
|
.lib-xplat-modal.modal-box {
|
|
388
|
-
border-radius:
|
|
440
|
+
border-radius: var(--spacing-radius-lg);
|
|
389
441
|
background-color: #fff;
|
|
390
|
-
padding:
|
|
391
|
-
|
|
392
|
-
max-
|
|
442
|
+
padding: var(--spacing-space-6);
|
|
443
|
+
min-width: min-content;
|
|
444
|
+
max-width: calc(100vw - 32px);
|
|
445
|
+
max-height: calc(100vh - 32px);
|
|
393
446
|
overflow: visible;
|
|
394
447
|
transform: scale(0.9);
|
|
395
448
|
opacity: 0;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { a as ColorProps } from '../../colors-CY4JXVHj.cjs';
|
|
4
3
|
|
|
5
4
|
interface InputDatePickerProps {
|
|
6
5
|
value: Date;
|
|
@@ -37,7 +36,7 @@ interface PopupPickerBaseProps {
|
|
|
37
36
|
type PopupPickerProps = PopupPickerBaseProps & (SinglePickerProps | RangePickerProps$1);
|
|
38
37
|
declare const PopupPicker: React.FC<PopupPickerProps>;
|
|
39
38
|
|
|
40
|
-
interface RangePickerProps
|
|
39
|
+
interface RangePickerProps {
|
|
41
40
|
startDate: Date;
|
|
42
41
|
endDate: Date;
|
|
43
42
|
onChange?: (range: {
|
|
@@ -53,7 +52,7 @@ declare const RangePicker: {
|
|
|
53
52
|
displayName: string;
|
|
54
53
|
};
|
|
55
54
|
|
|
56
|
-
interface SingleDatePickerProps
|
|
55
|
+
interface SingleDatePickerProps {
|
|
57
56
|
value: Date | null;
|
|
58
57
|
onChange?: (date: Date | null) => void;
|
|
59
58
|
minDate?: Date;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { a as ColorProps } from '../../colors-CY4JXVHj.js';
|
|
4
3
|
|
|
5
4
|
interface InputDatePickerProps {
|
|
6
5
|
value: Date;
|
|
@@ -37,7 +36,7 @@ interface PopupPickerBaseProps {
|
|
|
37
36
|
type PopupPickerProps = PopupPickerBaseProps & (SinglePickerProps | RangePickerProps$1);
|
|
38
37
|
declare const PopupPicker: React.FC<PopupPickerProps>;
|
|
39
38
|
|
|
40
|
-
interface RangePickerProps
|
|
39
|
+
interface RangePickerProps {
|
|
41
40
|
startDate: Date;
|
|
42
41
|
endDate: Date;
|
|
43
42
|
onChange?: (range: {
|
|
@@ -53,7 +52,7 @@ declare const RangePicker: {
|
|
|
53
52
|
displayName: string;
|
|
54
53
|
};
|
|
55
54
|
|
|
56
|
-
interface SingleDatePickerProps
|
|
55
|
+
interface SingleDatePickerProps {
|
|
57
56
|
value: Date | null;
|
|
58
57
|
onChange?: (date: Date | null) => void;
|
|
59
58
|
minDate?: Date;
|