@x-plat/design-system 0.4.3 → 0.4.5
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/Card/index.css +1 -2
- package/dist/components/DatePicker/index.cjs +30 -5
- package/dist/components/DatePicker/index.css +43 -0
- package/dist/components/DatePicker/index.js +30 -5
- package/dist/components/PopOver/index.css +4 -0
- package/dist/components/index.cjs +166 -141
- package/dist/components/index.css +48 -2
- package/dist/components/index.js +166 -141
- package/dist/index.cjs +171 -146
- package/dist/index.css +74 -2
- package/dist/index.js +171 -146
- package/dist/layout/Header/index.css +11 -0
- package/dist/layout/Layout/index.css +15 -0
- package/dist/layout/index.css +26 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -863,9 +863,8 @@
|
|
|
863
863
|
.lib-xplat-card {
|
|
864
864
|
display: flex;
|
|
865
865
|
flex-direction: column;
|
|
866
|
-
|
|
866
|
+
flex: 1;
|
|
867
867
|
min-width: 0;
|
|
868
|
-
max-width: 100%;
|
|
869
868
|
height: fit-content;
|
|
870
869
|
border-radius: 1rem;
|
|
871
870
|
border: 1px solid var(--xplat-neutral-400);
|
|
@@ -1336,9 +1335,38 @@
|
|
|
1336
1335
|
color: color-mix(in srgb, var(--xplat-blue-500) 35%, transparent);
|
|
1337
1336
|
}
|
|
1338
1337
|
.lib-xplat-datepicker.range {
|
|
1338
|
+
display: flex;
|
|
1339
|
+
flex-direction: column;
|
|
1340
|
+
}
|
|
1341
|
+
.lib-xplat-datepicker .datepicker-range-tabs {
|
|
1342
|
+
display: none;
|
|
1343
|
+
margin-bottom: 0.75rem;
|
|
1344
|
+
border-bottom: 1px solid var(--xplat-neutral-200);
|
|
1345
|
+
}
|
|
1346
|
+
.lib-xplat-datepicker .datepicker-range-tab {
|
|
1347
|
+
flex: 1;
|
|
1348
|
+
padding: 0.5rem;
|
|
1349
|
+
border: none;
|
|
1350
|
+
background: none;
|
|
1351
|
+
font-size: 0.8125rem;
|
|
1352
|
+
font-weight: 500;
|
|
1353
|
+
color: var(--xplat-neutral-400);
|
|
1354
|
+
cursor: pointer;
|
|
1355
|
+
border-bottom: 2px solid transparent;
|
|
1356
|
+
transition: color 0.15s, border-color 0.15s;
|
|
1357
|
+
}
|
|
1358
|
+
.lib-xplat-datepicker .datepicker-range-tab.active {
|
|
1359
|
+
color: var(--datepicker-active-color, var(--xplat-blue-500));
|
|
1360
|
+
border-bottom-color: var(--datepicker-active-color, var(--xplat-blue-500));
|
|
1361
|
+
font-weight: 600;
|
|
1362
|
+
}
|
|
1363
|
+
.lib-xplat-datepicker .datepicker-range-panels {
|
|
1339
1364
|
display: flex;
|
|
1340
1365
|
gap: 1.5rem;
|
|
1341
1366
|
}
|
|
1367
|
+
.lib-xplat-datepicker .datepicker-range-mobile {
|
|
1368
|
+
display: none;
|
|
1369
|
+
}
|
|
1342
1370
|
.lib-xplat-datepicker .datepicker-range-panel {
|
|
1343
1371
|
flex: 1;
|
|
1344
1372
|
min-width: 200px;
|
|
@@ -1351,6 +1379,20 @@
|
|
|
1351
1379
|
color: var(--xplat-neutral-500);
|
|
1352
1380
|
margin-bottom: 0.5rem;
|
|
1353
1381
|
}
|
|
1382
|
+
@media (max-width: 600px) {
|
|
1383
|
+
.lib-xplat-datepicker .datepicker-range-tabs {
|
|
1384
|
+
display: flex;
|
|
1385
|
+
}
|
|
1386
|
+
.lib-xplat-datepicker .datepicker-range-panels {
|
|
1387
|
+
display: none;
|
|
1388
|
+
}
|
|
1389
|
+
.lib-xplat-datepicker .datepicker-range-mobile {
|
|
1390
|
+
display: block;
|
|
1391
|
+
}
|
|
1392
|
+
.lib-xplat-datepicker .datepicker-range-panel {
|
|
1393
|
+
min-width: unset;
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1354
1396
|
.lib-xplat-datepicker.input-datepicker {
|
|
1355
1397
|
position: relative;
|
|
1356
1398
|
}
|
|
@@ -1984,6 +2026,7 @@
|
|
|
1984
2026
|
.lib-xplat-pop-over {
|
|
1985
2027
|
position: relative;
|
|
1986
2028
|
z-index: 10;
|
|
2029
|
+
width: fit-content;
|
|
1987
2030
|
cursor: pointer;
|
|
1988
2031
|
user-select: none;
|
|
1989
2032
|
}
|
|
@@ -1991,6 +2034,9 @@
|
|
|
1991
2034
|
position: absolute;
|
|
1992
2035
|
cursor: default;
|
|
1993
2036
|
transition: transform 0.2s ease, opacity 0.2s ease;
|
|
2037
|
+
background: white;
|
|
2038
|
+
border-radius: 0.5rem;
|
|
2039
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
1994
2040
|
z-index: 10;
|
|
1995
2041
|
opacity: 0;
|
|
1996
2042
|
transform: scale(0.8);
|
|
@@ -3018,6 +3064,17 @@
|
|
|
3018
3064
|
background-color: var(--xplat-white);
|
|
3019
3065
|
width: 100%;
|
|
3020
3066
|
box-sizing: border-box;
|
|
3067
|
+
gap: 12px;
|
|
3068
|
+
overflow: hidden;
|
|
3069
|
+
}
|
|
3070
|
+
.lib-xplat-layout-header > * {
|
|
3071
|
+
min-width: 0;
|
|
3072
|
+
flex-shrink: 1;
|
|
3073
|
+
}
|
|
3074
|
+
@media (max-width: 767px) {
|
|
3075
|
+
.lib-xplat-layout-header {
|
|
3076
|
+
padding: 12px;
|
|
3077
|
+
}
|
|
3021
3078
|
}
|
|
3022
3079
|
|
|
3023
3080
|
/* src/layout/Layout/layout.scss */
|
|
@@ -3035,6 +3092,7 @@
|
|
|
3035
3092
|
flex: 1;
|
|
3036
3093
|
overflow: auto;
|
|
3037
3094
|
width: 100%;
|
|
3095
|
+
min-width: 0;
|
|
3038
3096
|
display: flex;
|
|
3039
3097
|
flex-direction: column;
|
|
3040
3098
|
}
|
|
@@ -3043,6 +3101,20 @@
|
|
|
3043
3101
|
top: 0;
|
|
3044
3102
|
z-index: 10;
|
|
3045
3103
|
}
|
|
3104
|
+
@media (max-width: 767px) {
|
|
3105
|
+
.lib-xplat-layout > .lib-xplat-layout-content-wrapper > .lib-xplat-layout-sidebar {
|
|
3106
|
+
position: fixed;
|
|
3107
|
+
left: 0;
|
|
3108
|
+
top: 0;
|
|
3109
|
+
height: 100vh;
|
|
3110
|
+
z-index: 20;
|
|
3111
|
+
transform: translateX(-100%);
|
|
3112
|
+
transition: transform 0.3s ease-in-out;
|
|
3113
|
+
}
|
|
3114
|
+
.lib-xplat-layout > .lib-xplat-layout-content-wrapper > .lib-xplat-layout-sidebar.large {
|
|
3115
|
+
transform: translateX(0);
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3046
3118
|
|
|
3047
3119
|
/* src/layout/SideBar/sidebar.scss */
|
|
3048
3120
|
.lib-xplat-layout-sidebar {
|