@diniz/webcomponents 1.1.4 → 1.1.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/style.css +180 -0
- package/dist/webcomponents.es.js +603 -439
- package/dist/webcomponents.umd.js +108 -72
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1249,6 +1249,186 @@ input[type="checkbox"] {
|
|
|
1249
1249
|
font-weight: 500;
|
|
1250
1250
|
}
|
|
1251
1251
|
|
|
1252
|
+
/* ==================== LAYOUT COMPONENTS ==================== */
|
|
1253
|
+
|
|
1254
|
+
:host([data-ui="layout"]) {
|
|
1255
|
+
display: block;
|
|
1256
|
+
width: 100%;
|
|
1257
|
+
height: 100%;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
.layout-container {
|
|
1261
|
+
display: flex;
|
|
1262
|
+
width: 100%;
|
|
1263
|
+
height: 100%;
|
|
1264
|
+
background: var(--color-bg);
|
|
1265
|
+
position: relative;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
/* Header */
|
|
1269
|
+
:host([data-ui="layout-header"]) {
|
|
1270
|
+
display: block;
|
|
1271
|
+
width: 100%;
|
|
1272
|
+
flex-shrink: 0;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
.layout-header {
|
|
1276
|
+
display: flex;
|
|
1277
|
+
align-items: center;
|
|
1278
|
+
justify-content: space-between;
|
|
1279
|
+
padding: 0 1.5rem;
|
|
1280
|
+
background: var(--color-surface);
|
|
1281
|
+
border-bottom: 1px solid var(--color-border);
|
|
1282
|
+
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/* Footer */
|
|
1286
|
+
:host([data-ui="layout-footer"]) {
|
|
1287
|
+
display: block;
|
|
1288
|
+
width: 100%;
|
|
1289
|
+
flex-shrink: 0;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
.layout-footer {
|
|
1293
|
+
display: flex;
|
|
1294
|
+
align-items: center;
|
|
1295
|
+
justify-content: space-between;
|
|
1296
|
+
padding: 0 1.5rem;
|
|
1297
|
+
background: var(--color-surface);
|
|
1298
|
+
border-top: 1px solid var(--color-border);
|
|
1299
|
+
box-shadow: 0 -1px 3px rgba(15, 23, 42, 0.06);
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
/* Content */
|
|
1303
|
+
:host([data-ui="layout-content"]) {
|
|
1304
|
+
display: block;
|
|
1305
|
+
flex: 1;
|
|
1306
|
+
overflow: auto;
|
|
1307
|
+
min-width: 0;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
.layout-content {
|
|
1311
|
+
display: flex;
|
|
1312
|
+
flex-direction: column;
|
|
1313
|
+
width: 100%;
|
|
1314
|
+
height: 100%;
|
|
1315
|
+
position: relative;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
/* Sidebar */
|
|
1319
|
+
:host([data-ui="layout-sidebar"]) {
|
|
1320
|
+
display: block;
|
|
1321
|
+
flex-shrink: 0;
|
|
1322
|
+
background: var(--color-surface);
|
|
1323
|
+
border-right: 1px solid var(--color-border);
|
|
1324
|
+
position: relative;
|
|
1325
|
+
overflow: hidden;
|
|
1326
|
+
height: 100%;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
.layout-sidebar {
|
|
1330
|
+
display: flex;
|
|
1331
|
+
flex-direction: column;
|
|
1332
|
+
width: var(--sidebar-width, 240px);
|
|
1333
|
+
height: 100%;
|
|
1334
|
+
background: var(--color-surface);
|
|
1335
|
+
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
1336
|
+
position: relative;
|
|
1337
|
+
border-right: 1px solid var(--color-border);
|
|
1338
|
+
overflow: hidden;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
.layout-sidebar.collapsed {
|
|
1342
|
+
width: var(--sidebar-collapsed-width, 64px);
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
.sidebar-content {
|
|
1346
|
+
flex: 1;
|
|
1347
|
+
overflow-y: auto;
|
|
1348
|
+
overflow-x: hidden;
|
|
1349
|
+
padding: 1rem 0;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
/* Sidebar Toggle Button */
|
|
1353
|
+
.sidebar-toggle {
|
|
1354
|
+
position: absolute;
|
|
1355
|
+
bottom: 1rem;
|
|
1356
|
+
right: 0;
|
|
1357
|
+
width: 40px;
|
|
1358
|
+
height: 40px;
|
|
1359
|
+
padding: 0;
|
|
1360
|
+
margin-right: 0.7rem;
|
|
1361
|
+
background: transparent;
|
|
1362
|
+
border: 1px solid var(--color-border);
|
|
1363
|
+
border-radius: 8px;
|
|
1364
|
+
color: var(--color-ink);
|
|
1365
|
+
cursor: pointer;
|
|
1366
|
+
display: flex;
|
|
1367
|
+
align-items: center;
|
|
1368
|
+
justify-content: center;
|
|
1369
|
+
transition: all 0.2s ease;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
.sidebar-toggle:hover {
|
|
1373
|
+
background: var(--color-muted);
|
|
1374
|
+
border-color: var(--color-border-strong);
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
.sidebar-toggle:active {
|
|
1378
|
+
transform: scale(0.95);
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
.toggle-icon {
|
|
1382
|
+
width: 18px;
|
|
1383
|
+
height: 18px;
|
|
1384
|
+
transition: transform 0.3s ease;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
.layout-sidebar.collapsed .toggle-icon {
|
|
1388
|
+
transform: rotate(180deg);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
/* Scrollbar Styling */
|
|
1392
|
+
.sidebar-content::-webkit-scrollbar {
|
|
1393
|
+
width: 6px;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
.sidebar-content::-webkit-scrollbar-track {
|
|
1397
|
+
background: transparent;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
.sidebar-content::-webkit-scrollbar-thumb {
|
|
1401
|
+
background: var(--color-border-strong);
|
|
1402
|
+
border-radius: 3px;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
.sidebar-content::-webkit-scrollbar-thumb:hover {
|
|
1406
|
+
background: var(--color-ink);
|
|
1407
|
+
opacity: 0.6;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
/* Responsive */
|
|
1411
|
+
@media (max-width: 768px) {
|
|
1412
|
+
.layout-header,
|
|
1413
|
+
.layout-footer {
|
|
1414
|
+
padding: 0 1rem;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
.layout-sidebar {
|
|
1418
|
+
position: absolute;
|
|
1419
|
+
left: 0;
|
|
1420
|
+
top: 0;
|
|
1421
|
+
height: 100%;
|
|
1422
|
+
z-index: 1000;
|
|
1423
|
+
box-shadow: 2px 0 8px rgba(15, 23, 42, 0.15);
|
|
1424
|
+
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
.layout-sidebar.collapsed {
|
|
1428
|
+
transform: translateX(calc(-1 * var(--sidebar-width, 240px)));
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1252
1432
|
#ui-datepicker-div,
|
|
1253
1433
|
.datepicker,
|
|
1254
1434
|
.react-datepicker-popper {
|