barua-ui 0.4.0 → 0.4.2
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/css/components/nav.css +5 -0
- package/css/liquid.css +12 -1
- package/css/utilities.css +3 -0
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/css/components/nav.css
CHANGED
|
@@ -522,6 +522,11 @@
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
/* Dropdown wrapper (CSS-only open via <details>) */
|
|
525
|
+
/* A menu used as a listbox can hold a long list — twenty blocks of a serial,
|
|
526
|
+
every region — so it scrolls inside itself rather than running off the
|
|
527
|
+
card or the screen. */
|
|
528
|
+
.b-menu[role="listbox"] { max-block-size: min(18rem, 50dvh); overflow-y: auto; overscroll-behavior: contain; }
|
|
529
|
+
|
|
525
530
|
.b-dropdown { position: relative; display: inline-block; }
|
|
526
531
|
.b-dropdown > summary { list-style: none; cursor: pointer; }
|
|
527
532
|
.b-dropdown > summary::-webkit-details-marker { display: none; }
|
package/css/liquid.css
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
/* ---- Chrome: bars, sidebars, rails, status ------------------------------- */
|
|
43
43
|
[data-glass="liquid"] :is(.b-topnav, .b-bottomnav, .b-mobile-header,
|
|
44
|
-
.b-mobile-toolbar, .b-statusbar) {
|
|
44
|
+
.b-mobile-toolbar, .b-statusbar, .b-marketing-nav) {
|
|
45
45
|
background: light-dark(rgba(250, 251, 254, 0.45), rgba(20, 20, 26, 0.45));
|
|
46
46
|
-webkit-backdrop-filter: var(--b-glass-heavy);
|
|
47
47
|
backdrop-filter: var(--b-glass-heavy);
|
|
@@ -198,6 +198,17 @@
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
/* ---- Feedback ------------------------------------------------------------------ */
|
|
201
|
+
[data-glass="liquid"] .b-spinner {
|
|
202
|
+
border-color: var(--b-lg-border);
|
|
203
|
+
border-top-color: var(--b-color-accent);
|
|
204
|
+
box-shadow: var(--b-glass-edge);
|
|
205
|
+
}
|
|
206
|
+
[data-glass="liquid"] .b-btn.is-loading::after { border-color: var(--b-lg-border); border-top-color: currentColor; }
|
|
207
|
+
[data-glass="liquid"] .b-btn--primary.is-loading::after { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
|
|
208
|
+
|
|
209
|
+
/* ---- Media ------------------------------------------------------------------------- */
|
|
210
|
+
[data-glass="liquid"] .b-poster__frame { box-shadow: var(--b-glass-edge); }
|
|
211
|
+
[data-glass="liquid"] .b-billboard__actions .b-badge { background: var(--b-lg-pane); box-shadow: var(--b-glass-edge); }
|
|
201
212
|
[data-glass="liquid"] .b-alert {
|
|
202
213
|
-webkit-backdrop-filter: var(--b-glass-light);
|
|
203
214
|
backdrop-filter: var(--b-glass-light);
|
package/css/utilities.css
CHANGED
|
@@ -174,6 +174,9 @@
|
|
|
174
174
|
/* A row inside a sideways scroll area is meant to overflow: it keeps its
|
|
175
175
|
content's width instead of squeezing every item to fit. */
|
|
176
176
|
.b-scroll-area--x > .b-hstack { width: max-content; min-width: 100%; }
|
|
177
|
+
/* …and is scrolled by thumb or wheel, so it carries no scrollbar of its own. */
|
|
178
|
+
.b-scroll-area--x:has(> .b-hstack) { scrollbar-width: none; }
|
|
179
|
+
.b-scroll-area--x:has(> .b-hstack)::-webkit-scrollbar { display: none; }
|
|
177
180
|
.b-scroll-area--y { overflow: hidden auto; }
|
|
178
181
|
.b-scroll-area--fade {
|
|
179
182
|
mask-image: linear-gradient(to bottom, transparent, black var(--b-space-4),
|
package/dist/index.cjs
CHANGED
|
@@ -1281,6 +1281,7 @@ var iconNames = [
|
|
|
1281
1281
|
"doc",
|
|
1282
1282
|
"download",
|
|
1283
1283
|
"drop",
|
|
1284
|
+
"film",
|
|
1284
1285
|
"filter",
|
|
1285
1286
|
"flame",
|
|
1286
1287
|
"folder",
|
|
@@ -1320,6 +1321,7 @@ var iconNames = [
|
|
|
1320
1321
|
"star",
|
|
1321
1322
|
"sun",
|
|
1322
1323
|
"trash",
|
|
1324
|
+
"tv",
|
|
1323
1325
|
"warning",
|
|
1324
1326
|
"waveform",
|
|
1325
1327
|
"wifi"
|
|
@@ -1360,6 +1362,10 @@ var GLYPHS = {
|
|
|
1360
1362
|
] }),
|
|
1361
1363
|
"download": /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M10 3.5v9M6.5 9.5l3.5 3 3.5-3M4 16.5h12", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }),
|
|
1362
1364
|
"drop": /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M10 2.8C7.7 6 5.5 8.6 5.5 11.4a4.5 4.5 0 0 0 9 0c0-2.8-2.2-5.4-4.5-8.6Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }) }),
|
|
1365
|
+
"film": /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
1366
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M3.5 8.5h13V15a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 15V8.5Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }),
|
|
1367
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "m3.5 8.5 1-3.4 11.6 1.7-.6 1.7M7.6 5.6 6.6 8.2M11.2 6.1l-1 2.4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1368
|
+
] }),
|
|
1363
1369
|
"filter": /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M3.5 5.5h13M6 10h8M8.5 14.5h3", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }),
|
|
1364
1370
|
"flame": /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M10 3c-2.5 3-4.5 5.2-4.5 7.4a4.5 4.5 0 0 0 9 0C14.5 8.2 12.5 6 10 3Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }) }),
|
|
1365
1371
|
"folder": /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M3.5 5.5A1.5 1.5 0 0 1 5 4h3l1.5 2H15a1.5 1.5 0 0 1 1.5 1.5V14a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 14V5.5Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }) }),
|
|
@@ -1471,6 +1477,10 @@ var GLYPHS = {
|
|
|
1471
1477
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M10 1.5v2m0 13v2M18.5 10h-2m-13 0h-2m14.5-6-1.4 1.4M4.9 15.1 3.5 16.5m0-13 1.4 1.4m10.2 10.2 1.4 1.4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
1472
1478
|
] }),
|
|
1473
1479
|
"trash": /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M4 6h12M8 6V4.5h4V6M6.5 6l.5 10h6l.5-10M8.5 9v4M11.5 9v4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }),
|
|
1480
|
+
"tv": /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
1481
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("rect", { x: "3", y: "6", width: "14", height: "9.5", rx: "1.8", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
1482
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M7 17.5h6M7.5 2.5 10 5l2.5-2.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1483
|
+
] }),
|
|
1474
1484
|
"warning": /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
|
|
1475
1485
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M10 3.5 18 17H2L10 3.5Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }),
|
|
1476
1486
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M10 8.5V12M10 14.5h.01", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|