@rastr/filter-builder 0.1.0-beta.3 → 0.1.0-beta.4

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.
Files changed (2) hide show
  1. package/dist/styles.css +45 -0
  2. package/package.json +3 -3
package/dist/styles.css CHANGED
@@ -318,6 +318,51 @@
318
318
  gap: 8px;
319
319
  }
320
320
 
321
+ /* Saved view actions: one ⋯ button next to the picker opening a menu (new, edit, delete). */
322
+ :where(.rs-fb__menu-btn) {
323
+ justify-content: center;
324
+ min-width: 32px;
325
+ padding: 0 8px;
326
+ font-size: 16px;
327
+ line-height: 1;
328
+ }
329
+
330
+ :where(.rs-fb__menu) {
331
+ display: flex;
332
+ flex-direction: column;
333
+ min-width: 168px;
334
+ padding: 4px;
335
+ }
336
+
337
+ :where(.rs-fb__menu-item) {
338
+ all: unset;
339
+ box-sizing: border-box;
340
+ padding: 8px 12px;
341
+ border-radius: var(--rs-radius-sm);
342
+ color: var(--rs-text);
343
+ font-family: var(--rs-font);
344
+ font-size: 13px;
345
+ cursor: pointer;
346
+ }
347
+
348
+ :where(.rs-fb__menu-item:hover, .rs-fb__menu-item:focus-visible, .rs-fb__menu-item:focus) {
349
+ background: var(--rs-surface-2);
350
+ outline: none;
351
+ }
352
+
353
+ :where(.rs-fb__menu-item.rs-fb__danger) {
354
+ color: var(--rs-danger);
355
+ }
356
+
357
+ :where(.rs-fb__menu-item[aria-disabled="true"]) {
358
+ opacity: 0.45;
359
+ cursor: default;
360
+ }
361
+
362
+ :where(.rs-fb__menu-item[aria-disabled="true"]:hover) {
363
+ background: transparent;
364
+ }
365
+
321
366
  /* Confirmation before deleting a saved view: narrow, the confirming button in the danger colour. */
322
367
  :where(.rs-fb__confirm) {
323
368
  width: min(420px, calc(100vw - 32px));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rastr/filter-builder",
3
- "version": "0.1.0-beta.3",
3
+ "version": "0.1.0-beta.4",
4
4
  "description": "Visual filter editor for the @rastr/core filter AST.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,8 +27,8 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@rastr/core": "0.1.0-beta.3",
31
- "@rastr/controls": "0.1.0-beta.3"
30
+ "@rastr/core": "0.1.0-beta.4",
31
+ "@rastr/controls": "0.1.0-beta.4"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^22",