@crisp-ui-kit/crisp 0.2.0 → 0.5.0
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/README.md +6 -0
- package/dist/base.css +25 -0
- package/dist/button.css +1 -1
- package/dist/command.css +1 -1
- package/dist/contextmenu.css +1 -1
- package/dist/datatable.css +60 -0
- package/dist/datatable.d.ts +7 -0
- package/dist/datepicker.css +1 -1
- package/dist/dialog.css +1 -1
- package/dist/esm/components/accordion/accordion.js +32 -0
- package/dist/esm/components/accordion/accordion.recipe.js +23 -0
- package/dist/esm/components/accordion/index.js +2 -0
- package/dist/esm/components/avatar/avatar.js +8 -0
- package/dist/esm/components/avatar/avatar.recipe.js +39 -0
- package/dist/esm/components/avatar/index.js +2 -0
- package/dist/esm/components/avatargroup/avatargroup.js +16 -0
- package/dist/esm/components/avatargroup/avatargroup.recipe.js +15 -0
- package/dist/esm/components/avatargroup/index.js +2 -0
- package/dist/esm/components/badge/badge.js +8 -0
- package/dist/esm/components/badge/badge.recipe.js +65 -0
- package/dist/esm/components/badge/index.js +2 -0
- package/dist/esm/components/barchart/barchart.js +29 -0
- package/dist/esm/components/barchart/barchart.recipe.js +26 -0
- package/dist/esm/components/barchart/index.js +2 -0
- package/dist/esm/components/breadcrumb/breadcrumb.js +17 -0
- package/dist/esm/components/breadcrumb/breadcrumb.recipe.js +18 -0
- package/dist/esm/components/breadcrumb/index.js +2 -0
- package/dist/esm/components/bulkbar/bulkbar.js +16 -0
- package/dist/esm/components/bulkbar/bulkbar.recipe.js +28 -0
- package/dist/esm/components/bulkbar/index.js +2 -0
- package/dist/esm/components/button/button.js +15 -0
- package/dist/esm/components/button/button.recipe.js +39 -0
- package/dist/esm/components/button/index.js +2 -0
- package/dist/esm/components/callout/callout.js +22 -0
- package/dist/esm/components/callout/callout.recipe.js +26 -0
- package/dist/esm/components/callout/index.js +2 -0
- package/dist/esm/components/card/card.js +15 -0
- package/dist/esm/components/card/card.recipe.js +28 -0
- package/dist/esm/components/card/index.js +2 -0
- package/dist/esm/components/checkbox/checkbox.js +20 -0
- package/dist/esm/components/checkbox/checkbox.recipe.js +23 -0
- package/dist/esm/components/checkbox/index.js +2 -0
- package/dist/esm/components/contextmenu/contextmenu.js +42 -0
- package/dist/esm/components/contextmenu/contextmenu.recipe.js +21 -0
- package/dist/esm/components/contextmenu/index.js +2 -0
- package/dist/esm/components/datatable/datatable.js +245 -0
- package/dist/esm/components/datatable/datatable.recipe.js +72 -0
- package/dist/esm/components/datatable/index.js +2 -0
- package/dist/esm/components/datepicker/datepicker.js +57 -0
- package/dist/esm/components/datepicker/datepicker.recipe.js +32 -0
- package/dist/esm/components/datepicker/index.js +2 -0
- package/dist/esm/components/dialog/dialog.js +48 -0
- package/dist/esm/components/dialog/dialog.recipe.js +32 -0
- package/dist/esm/components/dialog/index.js +2 -0
- package/dist/esm/components/divider/divider.js +7 -0
- package/dist/esm/components/divider/divider.recipe.js +14 -0
- package/dist/esm/components/divider/index.js +2 -0
- package/dist/esm/components/donutchart/donutchart.js +38 -0
- package/dist/esm/components/donutchart/donutchart.recipe.js +27 -0
- package/dist/esm/components/donutchart/index.js +2 -0
- package/dist/esm/components/drawer/drawer.js +42 -0
- package/dist/esm/components/drawer/drawer.recipe.js +27 -0
- package/dist/esm/components/drawer/index.js +2 -0
- package/dist/esm/components/emptystate/emptystate.js +7 -0
- package/dist/esm/components/emptystate/emptystate.recipe.js +31 -0
- package/dist/esm/components/emptystate/index.js +2 -0
- package/dist/esm/components/formfield/formfield.js +14 -0
- package/dist/esm/components/formfield/formfield.recipe.js +19 -0
- package/dist/esm/components/formfield/index.js +2 -0
- package/dist/esm/components/input/index.js +2 -0
- package/dist/esm/components/input/input.js +8 -0
- package/dist/esm/components/input/input.recipe.js +23 -0
- package/dist/esm/components/kbd/index.js +2 -0
- package/dist/esm/components/kbd/kbd.js +8 -0
- package/dist/esm/components/kbd/kbd.recipe.js +20 -0
- package/dist/esm/components/linechart/index.js +2 -0
- package/dist/esm/components/linechart/linechart.js +41 -0
- package/dist/esm/components/linechart/linechart.recipe.js +27 -0
- package/dist/esm/components/menu/index.js +2 -0
- package/dist/esm/components/menu/menu.js +137 -0
- package/dist/esm/components/menu/menu.recipe.js +51 -0
- package/dist/esm/components/multiselect/index.js +2 -0
- package/dist/esm/components/multiselect/multiselect.js +118 -0
- package/dist/esm/components/multiselect/multiselect.recipe.js +68 -0
- package/dist/esm/components/popover/index.js +2 -0
- package/dist/esm/components/popover/popover.js +70 -0
- package/dist/esm/components/popover/popover.recipe.js +18 -0
- package/dist/esm/components/progress/index.js +2 -0
- package/dist/esm/components/progress/progress.js +23 -0
- package/dist/esm/components/progress/progress.recipe.js +17 -0
- package/dist/esm/components/radiogroup/index.js +2 -0
- package/dist/esm/components/radiogroup/radiogroup.js +46 -0
- package/dist/esm/components/radiogroup/radiogroup.recipe.js +37 -0
- package/dist/esm/components/segmented/index.js +2 -0
- package/dist/esm/components/segmented/segmented.js +59 -0
- package/dist/esm/components/segmented/segmented.recipe.js +20 -0
- package/dist/esm/components/select/index.js +2 -0
- package/dist/esm/components/select/select.js +144 -0
- package/dist/esm/components/select/select.recipe.js +76 -0
- package/dist/esm/components/skeleton/index.js +2 -0
- package/dist/esm/components/skeleton/skeleton.js +7 -0
- package/dist/esm/components/skeleton/skeleton.recipe.js +14 -0
- package/dist/esm/components/spinner/index.js +2 -0
- package/dist/esm/components/spinner/spinner.js +11 -0
- package/dist/esm/components/spinner/spinner.recipe.js +13 -0
- package/dist/esm/components/stagebar/index.js +2 -0
- package/dist/esm/components/stagebar/stagebar.js +23 -0
- package/dist/esm/components/stagebar/stagebar.recipe.js +14 -0
- package/dist/esm/components/statcard/index.js +2 -0
- package/dist/esm/components/statcard/statcard.js +12 -0
- package/dist/esm/components/statcard/statcard.recipe.js +34 -0
- package/dist/esm/components/switch/index.js +2 -0
- package/dist/esm/components/switch/switch.js +22 -0
- package/dist/esm/components/switch/switch.recipe.js +26 -0
- package/dist/esm/components/table/index.js +2 -0
- package/dist/esm/components/table/table.js +30 -0
- package/dist/esm/components/table/table.recipe.js +40 -0
- package/dist/esm/components/tabletoolbar/index.js +2 -0
- package/dist/esm/components/tabletoolbar/tabletoolbar.chrome.js +79 -0
- package/dist/esm/components/tabletoolbar/tabletoolbar.js +191 -0
- package/dist/esm/components/tabletoolbar/tabletoolbar.recipe.js +23 -0
- package/dist/esm/components/tabs/index.js +2 -0
- package/dist/esm/components/tabs/tabs.js +70 -0
- package/dist/esm/components/tabs/tabs.recipe.js +33 -0
- package/dist/esm/components/textarea/index.js +2 -0
- package/dist/esm/components/textarea/textarea.js +20 -0
- package/dist/esm/components/textarea/textarea.recipe.js +31 -0
- package/dist/esm/components/toast/index.js +2 -0
- package/dist/esm/components/toast/toast.js +58 -0
- package/dist/esm/components/toast/toast.recipe.js +28 -0
- package/dist/esm/components/tooltip/index.js +2 -0
- package/dist/esm/components/tooltip/tooltip.js +45 -0
- package/dist/esm/components/tooltip/tooltip.recipe.js +13 -0
- package/dist/esm/core/cx.js +1 -0
- package/dist/esm/core/define.js +3 -0
- package/dist/esm/core/index.js +4 -0
- package/dist/esm/core/primitive.js +13 -0
- package/dist/esm/core/resolve.js +41 -0
- package/dist/esm/core/types.js +1 -0
- package/dist/esm/index.js +71 -0
- package/dist/esm/product/appshell/appshell.js +44 -0
- package/dist/esm/product/appshell/appshell.recipe.js +27 -0
- package/dist/esm/product/appshell/index.js +2 -0
- package/dist/esm/product/board/board.js +42 -0
- package/dist/esm/product/board/board.recipe.js +28 -0
- package/dist/esm/product/board/index.js +2 -0
- package/dist/esm/product/command/command.js +188 -0
- package/dist/esm/product/command/command.recipe.js +19 -0
- package/dist/esm/product/command/index.js +2 -0
- package/dist/esm/product/entitycard/entitycard.js +11 -0
- package/dist/esm/product/entitycard/entitycard.recipe.js +29 -0
- package/dist/esm/product/entitycard/index.js +2 -0
- package/dist/esm/product/flowcanvas/flowcanvas.js +85 -0
- package/dist/esm/product/flowcanvas/flowcanvas.recipe.js +25 -0
- package/dist/esm/product/flowcanvas/index.js +2 -0
- package/dist/esm/product/inbox/inbox.js +13 -0
- package/dist/esm/product/inbox/inbox.recipe.js +43 -0
- package/dist/esm/product/inbox/index.js +2 -0
- package/dist/esm/product/listpage/index.js +2 -0
- package/dist/esm/product/listpage/listpage.js +21 -0
- package/dist/esm/product/listpage/listpage.recipe.js +43 -0
- package/dist/esm/product/navitem/index.js +1 -0
- package/dist/esm/product/navitem/navitem.js +8 -0
- package/dist/esm/product/navitem/navitem.recipe.js +21 -0
- package/dist/esm/product/onboarding/index.js +2 -0
- package/dist/esm/product/onboarding/onboarding.js +14 -0
- package/dist/esm/product/onboarding/onboarding.recipe.js +41 -0
- package/dist/esm/product/recordpage/index.js +2 -0
- package/dist/esm/product/recordpage/recordpage.js +286 -0
- package/dist/esm/product/recordpage/recordpage.recipe.js +157 -0
- package/dist/esm/product/recordpanel/index.js +2 -0
- package/dist/esm/product/recordpanel/recordpanel.js +47 -0
- package/dist/esm/product/recordpanel/recordpanel.recipe.js +52 -0
- package/dist/esm/product/recordstable/company-logos.js +26 -0
- package/dist/esm/product/recordstable/index.js +2 -0
- package/dist/esm/product/recordstable/recordstable.js +963 -0
- package/dist/esm/product/recordstable/recordstable.recipe.js +149 -0
- package/dist/esm/product/richtext/index.js +2 -0
- package/dist/esm/product/richtext/richtext.js +111 -0
- package/dist/esm/product/richtext/richtext.recipe.js +40 -0
- package/dist/esm/product/settingssection/index.js +2 -0
- package/dist/esm/product/settingssection/settingssection.js +11 -0
- package/dist/esm/product/settingssection/settingssection.recipe.js +20 -0
- package/dist/esm/product/settingsshell/index.js +2 -0
- package/dist/esm/product/settingsshell/settingsshell.js +23 -0
- package/dist/esm/product/settingsshell/settingsshell.recipe.js +38 -0
- package/dist/esm/product/sidebar/index.js +2 -0
- package/dist/esm/product/sidebar/sidebar.js +112 -0
- package/dist/esm/product/sidebar/sidebar.recipe.js +18 -0
- package/dist/esm/product/tasklist/index.js +2 -0
- package/dist/esm/product/tasklist/tasklist.js +16 -0
- package/dist/esm/product/tasklist/tasklist.recipe.js +35 -0
- package/dist/esm/product/trialbanner/index.js +2 -0
- package/dist/esm/product/trialbanner/trialbanner.js +10 -0
- package/dist/esm/product/trialbanner/trialbanner.recipe.js +29 -0
- package/dist/esm/product/viewtoggle/index.js +2 -0
- package/dist/esm/product/viewtoggle/viewtoggle.js +11 -0
- package/dist/esm/product/viewtoggle/viewtoggle.recipe.js +24 -0
- package/dist/esm/tokens/contract.js +18 -0
- package/dist/esm/tokens/index.js +4 -0
- package/dist/esm/tokens/palette.js +30 -0
- package/dist/esm/tokens/scale.js +60 -0
- package/dist/esm/tokens/semantic.js +30 -0
- package/dist/menu.css +2 -2
- package/dist/multiselect.css +3 -3
- package/dist/popover.css +1 -1
- package/dist/recordpage.css +5 -5
- package/dist/recordstable.css +4 -4
- package/dist/select.css +10 -4
- package/dist/select.d.ts +2 -1
- package/dist/sidebar.css +1 -1
- package/dist/statcard.css +6 -0
- package/dist/statcard.d.ts +2 -2
- package/dist/styles.css +222 -27
- package/dist/table.css +26 -0
- package/dist/table.d.ts +8 -0
- package/dist/tabletoolbar.css +70 -0
- package/dist/tabletoolbar.d.ts +7 -0
- package/dist/tokens.css +24 -0
- package/dist/types/components/datatable/datatable.d.ts +98 -0
- package/dist/types/components/datatable/datatable.recipe.d.ts +3 -0
- package/dist/types/components/datatable/index.d.ts +2 -0
- package/dist/types/components/select/select.d.ts +3 -1
- package/dist/types/components/select/select.recipe.d.ts +12 -0
- package/dist/types/components/statcard/statcard.d.ts +6 -1
- package/dist/types/components/statcard/statcard.recipe.d.ts +12 -2
- package/dist/types/components/table/index.d.ts +2 -0
- package/dist/types/components/table/table.d.ts +53 -0
- package/dist/types/components/table/table.recipe.d.ts +21 -0
- package/dist/types/components/tabletoolbar/index.d.ts +2 -0
- package/dist/types/components/tabletoolbar/tabletoolbar.chrome.d.ts +2 -0
- package/dist/types/components/tabletoolbar/tabletoolbar.d.ts +63 -0
- package/dist/types/components/tabletoolbar/tabletoolbar.recipe.d.ts +3 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/product/recordstable/company-logos.d.ts +1 -0
- package/dist/types/product/recordstable/recordstable.d.ts +42 -1
- package/dist/types/product/sidebar/index.d.ts +1 -1
- package/dist/types/product/sidebar/sidebar.d.ts +85 -0
- package/dist/types/tokens/contract.d.ts +12 -0
- package/dist/types/tokens/palette.d.ts +48 -0
- package/dist/types/tokens/semantic.d.ts +12 -0
- package/dist/viewtoggle.css +2 -2
- package/package.json +259 -9
- package/dist/index.js +0 -9690
package/dist/styles.css
CHANGED
|
@@ -6,6 +6,18 @@
|
|
|
6
6
|
--bg-raised: #f4f4f5;
|
|
7
7
|
--border-default: #e4e4e7;
|
|
8
8
|
--border-subtle: #eeeff1;
|
|
9
|
+
--ring-neutral: transparent;
|
|
10
|
+
--bg-tile-active: #ffffff;
|
|
11
|
+
--shadow-tile-active: rgba(0,0,0,0.04);
|
|
12
|
+
--bg-overlay-frost: #ffffff;
|
|
13
|
+
--shadow-overlay1: rgba(28,40,64,0.12);
|
|
14
|
+
--shadow-overlay2: rgba(28,40,64,0.16);
|
|
15
|
+
--shadow-overlay3: rgba(28,40,64,0.16);
|
|
16
|
+
--bg-popover: #ffffff;
|
|
17
|
+
--ring-popover: rgba(0,0,0,0);
|
|
18
|
+
--shadow-popover1: rgba(28,40,64,0.04);
|
|
19
|
+
--shadow-popover2: rgba(28,40,64,0.12);
|
|
20
|
+
--shadow-popover3: rgba(24,41,75,0.16);
|
|
9
21
|
--fg-primary: #101112;
|
|
10
22
|
--fg-muted: #71717a;
|
|
11
23
|
--bg-danger: #e5484d;
|
|
@@ -25,6 +37,18 @@
|
|
|
25
37
|
--bg-raised: #101112;
|
|
26
38
|
--border-default: #212224;
|
|
27
39
|
--border-subtle: #1c1d1f;
|
|
40
|
+
--ring-neutral: #212224;
|
|
41
|
+
--bg-tile-active: #101112;
|
|
42
|
+
--shadow-tile-active: rgba(0,0,0,0);
|
|
43
|
+
--bg-overlay-frost: #1c1d1f;
|
|
44
|
+
--shadow-overlay1: rgba(0,0,0,0.48);
|
|
45
|
+
--shadow-overlay2: rgba(0,0,0,0.64);
|
|
46
|
+
--shadow-overlay3: rgba(0,0,0,0);
|
|
47
|
+
--bg-popover: #17181a;
|
|
48
|
+
--ring-popover: #212224;
|
|
49
|
+
--shadow-popover1: rgba(0,0,0,0.16);
|
|
50
|
+
--shadow-popover2: rgba(0,0,0,0.24);
|
|
51
|
+
--shadow-popover3: rgba(0,0,0,0.32);
|
|
28
52
|
--fg-primary: #f5f5f5;
|
|
29
53
|
--fg-muted: #9a9aa2;
|
|
30
54
|
--bg-danger: #ff5a5f;
|
|
@@ -239,7 +263,7 @@
|
|
|
239
263
|
|
|
240
264
|
.datepicker {
|
|
241
265
|
display: contents; font-family: var(--font-sans);
|
|
242
|
-
& .datepicker-trigger { display: inline-flex; align-items: center; gap: var(--space-2); box-sizing: border-box; height: 32px; padding: 0 var(--space-2-5); margin: 0; border: none; border-radius: var(--radius-md); background:
|
|
266
|
+
& .datepicker-trigger { display: inline-flex; align-items: center; gap: var(--space-2); box-sizing: border-box; height: 32px; padding: 0 var(--space-2-5); margin: 0; border: none; border-radius: var(--radius-md); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-primary) 7%, transparent); color: var(--fg-primary); font-family: inherit; font-size: var(--text-lg); white-space: nowrap; cursor: pointer; }
|
|
243
267
|
& .datepicker-trigger[data-ghost] { background: transparent; box-shadow: none; }
|
|
244
268
|
& .datepicker-trigger[data-ghost]:hover { background: color-mix(in srgb, var(--fg-primary) 4%, transparent); }
|
|
245
269
|
& .datepicker-trigger[data-placeholder] { color: var(--fg-muted); }
|
|
@@ -283,7 +307,7 @@
|
|
|
283
307
|
|
|
284
308
|
.contextmenu {
|
|
285
309
|
display: contents; font-family: var(--font-sans);
|
|
286
|
-
& .contextmenu-content { position: fixed; z-index: 60; min-width: 200px; box-sizing: border-box; padding: var(--space-1); border-radius: var(--radius-xl); background: var(--bg-
|
|
310
|
+
& .contextmenu-content { position: fixed; z-index: 60; min-width: 200px; box-sizing: border-box; padding: var(--space-1); border-radius: var(--radius-xl); background: var(--bg-popover); box-shadow: inset 0 0 0 1px var(--ring-popover), 0 0 0 1px var(--shadow-popover1), 0 4px 8px -4px var(--shadow-popover2), 0 4px 12px -2px var(--shadow-popover3); opacity: 1; transform: none; transition: opacity .08s ease, transform .08s ease; transform-origin: top left; @starting-style { opacity: 0; transform: scale(0.97) translateY(-1px); } }
|
|
287
311
|
& .contextmenu-item { display: flex; align-items: center; gap: var(--space-2); width: 100%; height: 32px; box-sizing: border-box; padding: 0 var(--space-2); margin: 0; border: none; border-radius: var(--radius-md); background: none; color: var(--fg-primary); font-family: inherit; font-size: var(--text-lg); text-align: left; white-space: nowrap; cursor: pointer; }
|
|
288
312
|
& .contextmenu-item svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
289
313
|
& .contextmenu-item:hover { background: color-mix(in srgb, var(--fg-primary) 6%, transparent); }
|
|
@@ -334,7 +358,7 @@
|
|
|
334
358
|
display: contents; font-family: var(--font-sans);
|
|
335
359
|
& .dialog-backdrop { position: fixed; inset: 0; z-index: 60; background: transparent; }
|
|
336
360
|
& .dialog-positioner { position: fixed; inset: 0; z-index: 61; display: flex; align-items: flex-start; justify-content: center; padding: 15vh var(--space-4) var(--space-4); }
|
|
337
|
-
& .dialog-content { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 90vw; max-height: 74vh; padding: var(--space-1); border-radius: var(--radius-2xl); background: var(--bg-
|
|
361
|
+
& .dialog-content { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 90vw; max-height: 74vh; padding: var(--space-1); border-radius: var(--radius-2xl); background: color-mix(in srgb, var(--bg-overlay-frost) 60%, transparent); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: 0 8px 28px -6px var(--shadow-overlay1), 0 18px 88px -4px var(--shadow-overlay2), 0 0 1px var(--shadow-overlay3); opacity: 1; transform: scale(1); transition: opacity 0.2s ease, transform 0.2s ease; @starting-style { opacity: 0; transform: scale(0.97); } }
|
|
338
362
|
& .dialog-card { display: flex; flex-direction: column; flex: 1; min-height: 0; box-sizing: border-box; border-radius: var(--radius-xl); background: var(--bg-surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg-primary) 8%, transparent); overflow: hidden; }
|
|
339
363
|
& .dialog-header { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; height: 52px; padding: 0 var(--space-2) 0 var(--space-4); border-bottom: 1px solid var(--border-subtle); }
|
|
340
364
|
& .dialog-header svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
@@ -352,7 +376,7 @@
|
|
|
352
376
|
|
|
353
377
|
.popover {
|
|
354
378
|
display: contents; font-family: var(--font-sans);
|
|
355
|
-
& .popover-content { position: fixed; z-index: 60; box-sizing: border-box; min-width: 200px; max-width: min(360px, 92vw); padding: var(--space-1); border-radius: var(--radius-xl); background: var(--bg-
|
|
379
|
+
& .popover-content { position: fixed; z-index: 60; box-sizing: border-box; min-width: 200px; max-width: min(360px, 92vw); padding: var(--space-1); border-radius: var(--radius-xl); background: var(--bg-popover); color: var(--fg-primary); box-shadow: inset 0 0 0 1px var(--ring-popover), 0 0 0 1px var(--shadow-popover1), 0 4px 8px -4px var(--shadow-popover2), 0 4px 12px -2px var(--shadow-popover3); opacity: 1; transform: none; transition: opacity 0.08s ease, transform 0.08s ease; transform-origin: top left; @starting-style { opacity: 0; transform: scale(0.97) translateY(-1px); } }
|
|
356
380
|
& .popover-content[data-align="end"] { transform-origin: top right; }
|
|
357
381
|
& .popover-content[data-up] { transform-origin: bottom left; }
|
|
358
382
|
}
|
|
@@ -370,6 +394,12 @@
|
|
|
370
394
|
& .statcard-delta[data-trend="down"] { background: color-mix(in srgb, var(--bg-danger) 15%, transparent); color: color-mix(in srgb, var(--bg-danger) 80%, var(--fg-primary)); }
|
|
371
395
|
& .statcard-delta[data-trend="flat"] { background: color-mix(in srgb, var(--fg-primary) 6%, transparent); color: var(--fg-muted); }
|
|
372
396
|
}
|
|
397
|
+
.statcard--card_true {
|
|
398
|
+
padding: var(--space-4); border-radius: var(--radius-xl); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-subtle);
|
|
399
|
+
}
|
|
400
|
+
.statcard--card_false {
|
|
401
|
+
|
|
402
|
+
}
|
|
373
403
|
|
|
374
404
|
.emptystate {
|
|
375
405
|
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1-5); box-sizing: border-box; padding: var(--space-8) var(--space-4); text-align: center; font-family: var(--font-sans);
|
|
@@ -420,7 +450,7 @@
|
|
|
420
450
|
background: var(--bg-brand-solid); color: var(--fg-on-brand); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), 0 2px 4px -2px rgba(38,109,240,0.12), 0 3px 6px -2px rgba(38,109,240,0.08); &:hover { background: var(--bg-brand-solid-pressed); } &:active { background: var(--bg-brand-solid-pressed); }
|
|
421
451
|
}
|
|
422
452
|
.button--intent_neutral {
|
|
423
|
-
background: var(--bg-surface); color: var(--fg-primary); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); &:hover { background: var(--bg-raised); }
|
|
453
|
+
background: var(--bg-surface); color: var(--fg-primary); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); &:hover { background: var(--bg-raised); }
|
|
424
454
|
}
|
|
425
455
|
.button--intent_danger {
|
|
426
456
|
background: var(--bg-danger); color: var(--fg-on-brand); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), 0 2px 4px -2px rgba(229,72,77,0.20), 0 3px 6px -2px rgba(229,72,77,0.12); &:hover { filter: brightness(0.96); } &:active { filter: brightness(0.92); }
|
|
@@ -444,6 +474,33 @@
|
|
|
444
474
|
padding-inline: 0; aspect-ratio: 1 / 1;
|
|
445
475
|
}
|
|
446
476
|
|
|
477
|
+
.table {
|
|
478
|
+
display: block; box-sizing: border-box; background: var(--bg-surface);
|
|
479
|
+
& .table-scroll { overflow-x: auto; }
|
|
480
|
+
& table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--font-sans); font-size: var(--text-lg); color: var(--fg-primary); }
|
|
481
|
+
& th, & td { position: relative; height: var(--size-tableRow); padding: 0 var(--space-2); border-bottom: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle); text-align: left; vertical-align: middle; white-space: nowrap; overflow: hidden; }
|
|
482
|
+
& th { height: 40px; background: var(--bg-surface); font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: -0.14px; color: var(--fg-primary); user-select: none; }
|
|
483
|
+
& td { color: var(--fg-primary); background: var(--bg-surface); }
|
|
484
|
+
& th:last-child, & td:last-child { border-right: none; }
|
|
485
|
+
& tbody tr:last-child td { border-bottom: none; }
|
|
486
|
+
& tfoot td { border-top: 1px solid var(--border-subtle); border-bottom: none; font-weight: var(--weight-medium); color: var(--fg-muted); }
|
|
487
|
+
& caption { padding: var(--space-2) var(--space-2); text-align: left; font-size: var(--text-sm); color: var(--fg-muted); caption-side: bottom; }
|
|
488
|
+
& td[data-align="right"], & th[data-align="right"] { text-align: right; }
|
|
489
|
+
& td[data-align="center"], & th[data-align="center"] { text-align: center; }
|
|
490
|
+
}
|
|
491
|
+
.table--interactive_true {
|
|
492
|
+
& tbody tr { transition: background-color .12s; } & tbody tr:hover td { background: color-mix(in srgb, var(--fg-primary) 3%, var(--bg-surface)); }
|
|
493
|
+
}
|
|
494
|
+
.table--interactive_false {
|
|
495
|
+
|
|
496
|
+
}
|
|
497
|
+
.table--surface_card {
|
|
498
|
+
border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden;
|
|
499
|
+
}
|
|
500
|
+
.table--surface_bleed {
|
|
501
|
+
border: none; border-radius: 0;
|
|
502
|
+
}
|
|
503
|
+
|
|
447
504
|
.linechart {
|
|
448
505
|
display: flex; flex-direction: column; box-sizing: border-box; font-family: var(--font-sans);
|
|
449
506
|
& .linechart-body { display: flex; flex: 1; min-height: 0; }
|
|
@@ -460,6 +517,77 @@
|
|
|
460
517
|
& .linechart-axis-title { margin-top: var(--space-1); padding-left: 34px; text-align: center; font-size: var(--text-sm); color: var(--fg-muted); }
|
|
461
518
|
}
|
|
462
519
|
|
|
520
|
+
.tabletoolbar {
|
|
521
|
+
|
|
522
|
+
display: contents; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
523
|
+
& * { box-sizing: border-box; }
|
|
524
|
+
& .tabletoolbar-toolbar { display: flex; align-items: center; gap: var(--space-1-5); padding: 0 var(--space-3) var(--space-2); }
|
|
525
|
+
& .tabletoolbar-search { display: flex; align-items: center; gap: var(--space-1-5); height: var(--size-row); padding: 0 var(--space-2-5); border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-subtle); color: var(--fg-muted); }
|
|
526
|
+
& .tabletoolbar-search svg { flex-shrink: 0; }
|
|
527
|
+
& .tabletoolbar-search input { border: none; outline: none; background: transparent; font-family: inherit; font-size: var(--text-md); color: var(--fg-primary); width: 180px; }
|
|
528
|
+
& .tabletoolbar-search input::placeholder { color: var(--fg-muted); }
|
|
529
|
+
& .tabletoolbar-tool { display: inline-flex; align-items: center; gap: var(--space-1); height: var(--size-row); margin: 0; padding: 0 var(--space-2); border: none; border-radius: var(--radius-md); background: transparent; box-shadow: inset 0 0 0 1px var(--border-default); color: var(--fg-primary); font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; transition: background-color .12s; }
|
|
530
|
+
& .tabletoolbar-tool:hover { background: var(--bg-raised); }
|
|
531
|
+
& .tabletoolbar-tool svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
532
|
+
& .tabletoolbar-tool--active { background: var(--bg-raised); }
|
|
533
|
+
& .tabletoolbar-tool--ghost { box-shadow: none; background: color-mix(in srgb, var(--fg-primary) 3%, transparent); color: var(--fg-muted); }
|
|
534
|
+
& .tabletoolbar-tool--ghost:hover { background: color-mix(in srgb, var(--fg-primary) 6%, transparent); }
|
|
535
|
+
& .tabletoolbar-toolgroup { position: relative; display: inline-flex; }
|
|
536
|
+
& .tabletoolbar-menu { position: absolute; top: calc(100% + var(--space-1)); left: 0; z-index: 30; min-width: 232px; padding: var(--space-1); border-radius: var(--radius-lg); background: var(--bg-popover); box-shadow: inset 0 0 0 1px var(--ring-popover), 0 0 0 1px var(--shadow-popover1), 0 4px 8px -4px var(--shadow-popover2), 0 4px 12px -2px var(--shadow-popover3); display: flex; flex-direction: column; gap: var(--space-px); transform-origin: top; opacity: 1; transform: none; transition: opacity .13s ease, transform .13s ease; }
|
|
537
|
+
& .tabletoolbar-menu { @starting-style { opacity: 0; transform: scale(0.96); } }
|
|
538
|
+
& .tabletoolbar-menu-head { padding: var(--space-1) var(--space-2) var(--space-0-5); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); }
|
|
539
|
+
& .tabletoolbar-sortpop { min-width: 460px; overflow: visible; padding: var(--space-1-5); gap: var(--space-1); }
|
|
540
|
+
& .tabletoolbar-sort-empty { padding: var(--space-1) var(--space-1) var(--space-2); font-size: var(--text-md); color: var(--fg-muted); }
|
|
541
|
+
& .tabletoolbar-sort-row { display: flex; align-items: center; gap: var(--space-1-5); }
|
|
542
|
+
& .tabletoolbar-sort-grip { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 28px; flex-shrink: 0; margin-right: calc(-1 * var(--space-1)); padding: 0; border: none; background: none; color: var(--fg-muted); cursor: grab; }
|
|
543
|
+
& .tabletoolbar-sort-grip:active { cursor: grabbing; }
|
|
544
|
+
& .tabletoolbar-sort-grip:hover { color: var(--fg-primary); }
|
|
545
|
+
& .tabletoolbar-sort-optlabel { display: inline-flex; align-items: center; gap: var(--space-1-5); min-width: 0; }
|
|
546
|
+
& .tabletoolbar-sort-optlabel svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
547
|
+
& .tabletoolbar-sort-field { flex: 1; min-width: 0; }
|
|
548
|
+
& .tabletoolbar-sort-dir { width: 136px; flex-shrink: 0; }
|
|
549
|
+
& .tabletoolbar-sort-field .select-trigger, & .tabletoolbar-sort-dir .select-trigger { height: 28px; padding-right: var(--space-1); }
|
|
550
|
+
& .tabletoolbar-sort-remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; padding: 0; margin: 0; border: none; border-radius: var(--radius-md); background: none; color: var(--fg-muted); cursor: pointer; transition: background-color .12s, color .12s; }
|
|
551
|
+
& .tabletoolbar-sort-remove:hover { background: var(--bg-raised); color: var(--fg-primary); }
|
|
552
|
+
& .tabletoolbar-sort-addrow { display: flex; padding: var(--space-0-5) 0; }
|
|
553
|
+
& .tabletoolbar-sort-add { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 28px; padding: 0 var(--space-2) 0 var(--space-1-5); margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--text-lg); font-weight: var(--weight-regular); color: var(--fg-primary); cursor: pointer; transition: background-color .12s; }
|
|
554
|
+
& .tabletoolbar-sort-add:hover { background: var(--bg-raised); }
|
|
555
|
+
& .tabletoolbar-sort-add svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
556
|
+
& .tabletoolbar-sort-foot { display: flex; padding: var(--space-1-5) var(--space-1) var(--space-0-5); }
|
|
557
|
+
& .tabletoolbar-sort-learn { display: inline-flex; align-items: center; gap: var(--space-1-5); font-size: var(--text-lg); color: color-mix(in srgb, var(--fg-primary) 63%, transparent); text-decoration: none; }
|
|
558
|
+
& .tabletoolbar-sort-learn svg { flex-shrink: 0; }
|
|
559
|
+
& .tabletoolbar-sort-learn:hover { color: var(--fg-primary); }
|
|
560
|
+
& .tabletoolbar-menu-item { display: flex; align-items: center; gap: var(--space-2); width: 100%; height: var(--size-row); margin: 0; padding: 0 var(--space-2); border: none; background: none; border-radius: var(--radius-md); font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); text-align: left; cursor: pointer; }
|
|
561
|
+
& .tabletoolbar-menu-item:hover { background: var(--bg-raised); }
|
|
562
|
+
& .tabletoolbar-menu-item:disabled { opacity: 0.4; cursor: default; }
|
|
563
|
+
& .tabletoolbar-menu-item:disabled:hover { background: none; }
|
|
564
|
+
& .tabletoolbar-menu-item svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
565
|
+
& .tabletoolbar-menu-item[data-on] svg { color: var(--bg-brand-solid); }
|
|
566
|
+
& .tabletoolbar-menu-item .tabletoolbar-menu-check { margin-left: auto; }
|
|
567
|
+
& .tabletoolbar-menu-input { height: var(--size-row); margin: var(--space-0-5); padding: 0 var(--space-2); border: none; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--border-subtle); background: var(--bg-surface); font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); outline: none; }
|
|
568
|
+
& .tabletoolbar-menu-sep { height: 1px; background: var(--border-subtle); margin: var(--space-0-5) 0; }
|
|
569
|
+
& .tabletoolbar-menu--up { top: auto; bottom: calc(100% + var(--space-1)); transform-origin: bottom; }
|
|
570
|
+
& .tabletoolbar-menu--right { left: auto; right: 0; }
|
|
571
|
+
& .tabletoolbar-menu--fixed { position: fixed; top: auto; left: auto; z-index: 40; }
|
|
572
|
+
& .tabletoolbar-menu--hdr { min-width: 200px; }
|
|
573
|
+
& .tabletoolbar-menu-item--danger { color: var(--bg-danger); }
|
|
574
|
+
& .tabletoolbar-menu-item--danger svg { color: var(--bg-danger); }
|
|
575
|
+
& .tabletoolbar-menu-item--danger:hover { background: color-mix(in srgb, var(--bg-danger) 10%, transparent); }
|
|
576
|
+
& .tabletoolbar-menu-check { margin-left: auto; color: var(--bg-brand-solid); }
|
|
577
|
+
& .tabletoolbar-fchip { display: inline-flex; align-items: center; height: var(--size-row); padding-right: var(--space-1); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--border-default); background: var(--bg-surface); font-size: var(--text-md); color: var(--fg-primary); white-space: nowrap; }
|
|
578
|
+
& .tabletoolbar-fchip-main { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 100%; margin: 0; padding: 0 var(--space-1) 0 var(--space-2); border: none; background: none; font-family: inherit; font-size: var(--text-md); color: var(--fg-primary); cursor: pointer; }
|
|
579
|
+
& .tabletoolbar-fchip-field { font-weight: var(--weight-medium); }
|
|
580
|
+
& .tabletoolbar-fchip-op { color: var(--fg-muted); }
|
|
581
|
+
& .tabletoolbar-fchip-val { font-weight: var(--weight-medium); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
|
|
582
|
+
& .tabletoolbar-fchip-x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: none; border-radius: var(--radius-sm); background: none; color: var(--fg-muted); cursor: pointer; }
|
|
583
|
+
& .tabletoolbar-fchip-x:hover { background: color-mix(in srgb, var(--fg-primary) 10%, transparent); color: var(--fg-primary); }
|
|
584
|
+
& .tabletoolbar-spacer { flex: 1; }
|
|
585
|
+
& .tabletoolbar-count { font-size: var(--text-md); color: var(--fg-muted); }
|
|
586
|
+
& .tabletoolbar-new { display: inline-flex; align-items: center; gap: var(--space-1); height: var(--size-row); padding: 0 var(--space-2-5); border: none; border-radius: var(--radius-md); background: var(--bg-brand-solid); color: var(--fg-on-brand); font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; transition: background-color .12s; }
|
|
587
|
+
& .tabletoolbar-new:hover { background: var(--bg-brand-solid-pressed); }
|
|
588
|
+
|
|
589
|
+
}
|
|
590
|
+
|
|
463
591
|
.divider {
|
|
464
592
|
flex-shrink: 0; border: none; margin: 0; background: var(--border-subtle);
|
|
465
593
|
&[data-orientation="horizontal"] { width: 100%; height: 1px; }
|
|
@@ -474,8 +602,8 @@
|
|
|
474
602
|
& .menu-content {
|
|
475
603
|
position: fixed; z-index: 60; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-px);
|
|
476
604
|
min-width: 200px; max-height: 360px; overflow-y: auto; padding: var(--space-1);
|
|
477
|
-
border-radius: var(--radius-xl); background: var(--bg-
|
|
478
|
-
box-shadow: inset 0 0 0 1px
|
|
605
|
+
border-radius: var(--radius-xl); background: var(--bg-popover);
|
|
606
|
+
box-shadow: inset 0 0 0 1px var(--ring-popover), 0 0 0 1px var(--shadow-popover1), 0 4px 8px -4px var(--shadow-popover2), 0 4px 12px -2px var(--shadow-popover3);
|
|
479
607
|
transform-origin: top left; opacity: 1; transform: none; transition: opacity .08s ease, transform .08s ease;
|
|
480
608
|
}
|
|
481
609
|
& .menu-content[data-align="end"] { transform-origin: top right; }
|
|
@@ -560,13 +688,13 @@
|
|
|
560
688
|
|
|
561
689
|
.select {
|
|
562
690
|
|
|
563
|
-
position: relative; display: inline-flex;
|
|
691
|
+
position: relative; display: inline-flex; font-family: var(--font-sans);
|
|
564
692
|
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
565
693
|
|
|
566
694
|
& .select-trigger {
|
|
567
695
|
box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--space-1-5);
|
|
568
696
|
height: 32px; width: 100%; min-width: 0; margin: 0; padding: 0 var(--space-1-5) 0 var(--space-2);
|
|
569
|
-
border: none; border-radius: var(--radius-md); background:
|
|
697
|
+
border: none; border-radius: var(--radius-md); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-primary) 7%, transparent);
|
|
570
698
|
font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); cursor: pointer;
|
|
571
699
|
transition: background-color .12s ease, box-shadow .12s ease;
|
|
572
700
|
}
|
|
@@ -581,8 +709,8 @@
|
|
|
581
709
|
& .select-listbox {
|
|
582
710
|
position: fixed; z-index: 60; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-px);
|
|
583
711
|
max-height: 280px; overflow-y: auto; padding: var(--space-1);
|
|
584
|
-
border-radius: var(--radius-xl); background: var(--bg-
|
|
585
|
-
box-shadow: inset 0 0 0 1px
|
|
712
|
+
border-radius: var(--radius-xl); background: var(--bg-popover);
|
|
713
|
+
box-shadow: inset 0 0 0 1px var(--ring-popover), 0 0 0 1px var(--shadow-popover1), 0 4px 8px -4px var(--shadow-popover2), 0 4px 12px -2px var(--shadow-popover3);
|
|
586
714
|
transform-origin: top left; opacity: 1; transform: none; transition: opacity .08s ease, transform .08s ease;
|
|
587
715
|
}
|
|
588
716
|
& .select-listbox[data-up] { transform-origin: bottom; }
|
|
@@ -614,6 +742,12 @@
|
|
|
614
742
|
& .select-trigger[data-open], & .select-trigger:focus-visible { background: transparent; box-shadow: inset 0 0 0 1px var(--bg-brand-solid); }
|
|
615
743
|
|
|
616
744
|
}
|
|
745
|
+
.select--width_full {
|
|
746
|
+
width: 100%;
|
|
747
|
+
}
|
|
748
|
+
.select--width_auto {
|
|
749
|
+
width: auto;
|
|
750
|
+
}
|
|
617
751
|
|
|
618
752
|
.breadcrumb {
|
|
619
753
|
display: flex; align-items: center; gap: var(--space-0-5); font-family: var(--font-sans); font-size: var(--text-lg);
|
|
@@ -633,7 +767,7 @@
|
|
|
633
767
|
& .multiselect-trigger {
|
|
634
768
|
box-sizing: border-box; display: flex; align-items: center; gap: var(--space-1); width: 100%; min-width: 0; min-height: 32px;
|
|
635
769
|
margin: 0; padding: var(--space-0-5) var(--space-1-5) var(--space-0-5) var(--space-2);
|
|
636
|
-
border: none; border-radius: var(--radius-md); background:
|
|
770
|
+
border: none; border-radius: var(--radius-md); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-primary) 7%, transparent);
|
|
637
771
|
font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); cursor: pointer; text-align: left;
|
|
638
772
|
transition: background-color .12s ease, box-shadow .12s ease;
|
|
639
773
|
}
|
|
@@ -648,8 +782,8 @@
|
|
|
648
782
|
& .multiselect-listbox {
|
|
649
783
|
position: fixed; z-index: 60; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-px);
|
|
650
784
|
max-height: 300px; overflow-y: auto; padding: var(--space-1);
|
|
651
|
-
border-radius: var(--radius-xl); background: var(--bg-
|
|
652
|
-
box-shadow: inset 0 0 0 1px
|
|
785
|
+
border-radius: var(--radius-xl); background: var(--bg-popover);
|
|
786
|
+
box-shadow: inset 0 0 0 1px var(--ring-popover), 0 0 0 1px var(--shadow-popover1), 0 4px 8px -4px var(--shadow-popover2), 0 4px 12px -2px var(--shadow-popover3);
|
|
653
787
|
transform-origin: top left; opacity: 1; transform: none; transition: opacity .08s ease, transform .08s ease;
|
|
654
788
|
}
|
|
655
789
|
& .multiselect-listbox[data-up] { transform-origin: bottom left; }
|
|
@@ -679,6 +813,67 @@
|
|
|
679
813
|
|
|
680
814
|
}
|
|
681
815
|
|
|
816
|
+
.datatable {
|
|
817
|
+
display: flex; flex-direction: column; gap: var(--space-2-5); font-family: var(--font-sans);
|
|
818
|
+
& .datatable-toolbar { display: flex; align-items: center; gap: var(--space-2); }
|
|
819
|
+
& .datatable-search { position: relative; flex: 1; max-width: 280px; display: inline-flex; align-items: center; }
|
|
820
|
+
& .datatable-search svg { position: absolute; left: var(--space-2); color: var(--fg-muted); pointer-events: none; }
|
|
821
|
+
& .datatable-search input { width: 100%; height: 32px; padding: 0 var(--space-2) 0 var(--space-6); border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); outline: none; transition: box-shadow .15s; }
|
|
822
|
+
& .datatable-search input::placeholder { color: var(--fg-muted); }
|
|
823
|
+
& .datatable-search input:focus { box-shadow: inset 0 0 0 1px var(--bg-brand-solid); }
|
|
824
|
+
& .datatable-count { margin-left: auto; font-size: var(--text-md); color: var(--fg-muted); }
|
|
825
|
+
& .datatable-th-inner { display: inline-flex; align-items: center; gap: var(--space-1-5); width: 100%; height: 100%; }
|
|
826
|
+
& .datatable-th-inner > svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
827
|
+
& .datatable-th-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
828
|
+
& .datatable-sort { display: inline-flex; align-items: center; gap: var(--space-1-5); width: 100%; height: 100%; margin: 0; padding: 0; border: none; background: none; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; cursor: pointer; }
|
|
829
|
+
& th[data-align="right"] .datatable-sort { justify-content: flex-end; }
|
|
830
|
+
& .datatable-chevron { margin-left: auto; flex-shrink: 0; color: var(--fg-muted); opacity: 0; transition: opacity .12s; }
|
|
831
|
+
& th[data-align="right"] .datatable-chevron { margin-left: 0; }
|
|
832
|
+
& .datatable-sort:hover .datatable-chevron { opacity: 0.6; }
|
|
833
|
+
& .datatable-sort[data-sorted] .datatable-chevron { opacity: 1; color: var(--fg-primary); }
|
|
834
|
+
/* sticky first column(s) + horizontal scroll shadow — RecordsTable's feel */
|
|
835
|
+
& th[data-sticky], & td[data-sticky] { position: sticky; z-index: 1; background: var(--bg-surface); }
|
|
836
|
+
& th[data-sticky] { z-index: 3; }
|
|
837
|
+
& tbody tr[data-selected] td[data-sticky] { background: color-mix(in srgb, var(--bg-brand-solid) 6%, var(--bg-surface)); }
|
|
838
|
+
& tbody tr:hover td[data-sticky] { background: color-mix(in srgb, var(--fg-primary) 3%, var(--bg-surface)); }
|
|
839
|
+
& .table-scroll[data-scrolled-x] [data-sticky-edge] { clip-path: inset(0 -14px 0 0); box-shadow: 8px 0 12px -8px rgba(28,40,64,0.22); }
|
|
840
|
+
/* add-row + summary footer */
|
|
841
|
+
& .datatable-addcell { padding: 0; border-top: none; }
|
|
842
|
+
& .datatable-addrow { display: flex; align-items: center; gap: var(--space-2); width: 100%; height: var(--size-tableRow); padding: 0 var(--space-2); border: none; border-top: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--fg-muted); font-family: inherit; font-size: var(--text-lg); cursor: pointer; transition: background-color .12s; }
|
|
843
|
+
& .datatable-addrow:hover { background: var(--bg-raised); color: var(--fg-primary); }
|
|
844
|
+
& .datatable-addrow svg { flex-shrink: 0; }
|
|
845
|
+
& .datatable-check { display: flex; align-items: center; justify-content: center; }
|
|
846
|
+
& .datatable-col-check { width: 40px; padding: 0; text-align: center; }
|
|
847
|
+
& tbody tr[data-selected] td { background: color-mix(in srgb, var(--bg-brand-solid) 6%, var(--bg-surface)); }
|
|
848
|
+
& tbody tr[data-selected]:hover td { background: color-mix(in srgb, var(--bg-brand-solid) 10%, var(--bg-surface)); }
|
|
849
|
+
& .datatable-editable:hover { background: color-mix(in srgb, var(--fg-primary) 4%, var(--bg-surface)); cursor: text; }
|
|
850
|
+
& .datatable-edit { width: 100%; height: 28px; margin: 0; padding: 0 var(--space-1-5); border: none; border-radius: var(--radius-sm); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--bg-brand-solid); font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); outline: none; vertical-align: middle; }
|
|
851
|
+
& .datatable-empty { padding: var(--space-8) var(--space-3); text-align: center; color: var(--fg-muted); font-size: var(--text-lg); }
|
|
852
|
+
/* fixed layout so column widths (and resize) are exact — like RecordsTable */
|
|
853
|
+
& table { table-layout: fixed; }
|
|
854
|
+
/* column resize grip */
|
|
855
|
+
& .datatable-resize { position: absolute; top: 0; right: -3px; width: 9px; height: 100%; cursor: col-resize; z-index: 6; touch-action: none; }
|
|
856
|
+
& .datatable-resize::after { content: ""; position: absolute; top: 0; left: 3px; width: 2px; height: 100%; background: var(--bg-brand-solid); opacity: 0; transition: opacity .12s; }
|
|
857
|
+
& .datatable-resize:hover::after, & .datatable-resize[data-resizing]::after { opacity: 1; }
|
|
858
|
+
/* typed cells — entity (avatar + name), colour-coded tags, numbers, dates */
|
|
859
|
+
& .datatable-entity { display: flex; align-items: center; gap: var(--space-1-5); min-width: 0; color: var(--fg-primary); font-weight: var(--weight-medium); }
|
|
860
|
+
& .datatable-entity-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
861
|
+
& .datatable-avatar { width: var(--size-icon); height: var(--size-icon); border-radius: var(--radius-sm); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; font-weight: var(--weight-semibold); text-transform: uppercase; color: var(--fg-on-brand); background: var(--bg-brand-solid); }
|
|
862
|
+
& .datatable-avatar[data-tone="success"] { background: var(--bg-success); } & .datatable-avatar[data-tone="warning"] { background: var(--bg-warning); } & .datatable-avatar[data-tone="danger"] { background: var(--bg-danger); } & .datatable-avatar[data-tone="purple"] { background: var(--bg-purple); } & .datatable-avatar[data-tone="cyan"] { background: var(--bg-cyan); } & .datatable-avatar[data-tone="orange"] { background: var(--bg-orange); }
|
|
863
|
+
& .datatable-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
|
|
864
|
+
& .datatable-tags { display: flex; align-items: center; gap: var(--space-1); overflow: hidden; }
|
|
865
|
+
& .datatable-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-1); border-radius: 7px; font-size: var(--text-lg); line-height: 20px; font-weight: var(--weight-medium); white-space: nowrap; background: color-mix(in srgb, var(--fg-primary) 6%, transparent); color: color-mix(in srgb, var(--fg-primary) 82%, transparent); }
|
|
866
|
+
& .datatable-tag[data-tone="brand"] { background: color-mix(in srgb, var(--bg-brand-solid) 14%, transparent); color: color-mix(in srgb, var(--bg-brand-solid) 82%, var(--fg-primary)); }
|
|
867
|
+
& .datatable-tag[data-tone="success"] { background: color-mix(in srgb, var(--bg-success) 16%, transparent); color: color-mix(in srgb, var(--bg-success) 78%, var(--fg-primary)); }
|
|
868
|
+
& .datatable-tag[data-tone="warning"] { background: color-mix(in srgb, var(--bg-warning) 18%, transparent); color: color-mix(in srgb, var(--bg-warning) 82%, var(--fg-primary)); }
|
|
869
|
+
& .datatable-tag[data-tone="danger"] { background: color-mix(in srgb, var(--bg-danger) 15%, transparent); color: color-mix(in srgb, var(--bg-danger) 80%, var(--fg-primary)); }
|
|
870
|
+
& .datatable-tag[data-tone="purple"] { background: color-mix(in srgb, var(--bg-purple) 16%, transparent); color: color-mix(in srgb, var(--bg-purple) 80%, var(--fg-primary)); }
|
|
871
|
+
& .datatable-tag[data-tone="cyan"] { background: color-mix(in srgb, var(--bg-cyan) 18%, transparent); color: color-mix(in srgb, var(--bg-cyan) 82%, var(--fg-primary)); }
|
|
872
|
+
& .datatable-tag[data-tone="orange"] { background: color-mix(in srgb, var(--bg-orange) 16%, transparent); color: color-mix(in srgb, var(--bg-orange) 82%, var(--fg-primary)); }
|
|
873
|
+
& .datatable-num { font-variant-numeric: tabular-nums; }
|
|
874
|
+
& .datatable-muted { color: var(--fg-muted); }
|
|
875
|
+
}
|
|
876
|
+
|
|
682
877
|
.bulkbar {
|
|
683
878
|
position: absolute; left: 0; right: 0; bottom: var(--space-4); display: flex; justify-content: center; pointer-events: none; z-index: 10;
|
|
684
879
|
& .bulkbar-bar { pointer-events: auto; display: flex; align-items: center; gap: var(--space-0-5); height: 44px; padding: 0 var(--space-1) 0 var(--space-1-5); border-radius: 14px; background: var(--bg-surface); box-shadow: 0 0 0 1px rgba(28,40,64,0.04), 0 4px 8px -4px rgba(28,40,64,0.12), 0 4px 12px -2px rgba(24,41,75,0.16); color: var(--fg-primary); transition: opacity .16s ease, transform .16s ease; }
|
|
@@ -761,7 +956,7 @@
|
|
|
761
956
|
}
|
|
762
957
|
|
|
763
958
|
.sidebar {
|
|
764
|
-
box-sizing: border-box; display: flex; flex-direction: column; width: 275px; height: 100%; background: var(--bg-sidebar); border-right: 1px solid var(--border-subtle); padding: var(--space-2); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-y: auto; & .sidebar-section { display: flex; flex-direction: column; gap: var(--space-px); margin-top: var(--space-2); } & .sidebar-section[data-collapsed] { display: none; } & .sidebar-label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); padding: var(--space-1-5) var(--space-2) var(--space-0-5); } & .sidebar-section-header { display: flex; align-items: center; gap: var(--space-1); width: 100%; margin: 0; border: none; background: none; padding: var(--space-1-5) var(--space-2) var(--space-0-5); font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); cursor: pointer; } & .sidebar-section-header svg { flex-shrink: 0; transition: transform .15s ease; } & .sidebar-section-header[data-collapsed] svg { transform: rotate(-90deg); } & .sidebar-ws { display: flex; align-items: center; gap: var(--space-2); height: var(--size-header); padding: 0 var(--space-2); border-radius: var(--radius-lg); cursor: pointer; transition: background-color 0.16s; } & .sidebar-ws:hover { background: color-mix(in srgb, var(--fg-primary) 5%, transparent); } & .sidebar-ws-name { font-size: var(--text-lg); font-weight: var(--weight-semibold); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } & .sidebar-ws-collapse { margin-left: auto; } & .sidebar-searchrow { display: flex; align-items: center; gap: var(--space-1-5); margin-top: var(--space-2-5); padding-right: var(--space-2); } & .sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-0-5); } & .sidebar-trial { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-1-5) var(--space-2); font-size: var(--text-sm); color: var(--fg-muted); } & .sidebar-search { box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-2); height: var(--size-row); margin: 0; padding: 0 var(--space-1) 0 var(--space-2); border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); color: var(--fg-muted); font-family: inherit; font-size: var(--text-lg); text-align: left; cursor: pointer; transition: background-color 0.14s; } & .sidebar-search:hover { background: var(--bg-raised); } & .sidebar-search-label { flex: 1; color: var(--fg-primary); font-weight: var(--weight-medium); } & .sidebar-search-kbd { margin-left: auto; display: inline-flex; align-items: center; height: 18px; padding: 0 var(--space-1); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-primary) 8%, transparent); color: color-mix(in srgb, var(--fg-primary) 50%, transparent); font-size: var(--text-xs); } & .sidebar-pill { border-radius: var(--radius-full); align-self: center; width: auto; height: 32px; padding-inline: var(--space-4); } & .sidebar-divider { height: 0; border: none; border-top: 1px solid var(--border-subtle); margin: var(--space-2) calc(-1 * var(--space-2)) 0; } & .sidebar-newlist { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; height: var(--size-row); border-radius: var(--radius-md); border: 1px dashed var(--border-default); background: transparent; color: var(--fg-muted); font-family: var(--font-sans); font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; } & .sidebar-newlist:hover { background: var(--bg-raised); color: var(--fg-primary); }
|
|
959
|
+
box-sizing: border-box; display: flex; flex-direction: column; width: 275px; height: 100%; background: var(--bg-sidebar); border-right: 1px solid var(--border-subtle); padding: var(--space-2); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-y: auto; & .sidebar-section { display: flex; flex-direction: column; gap: var(--space-px); margin-top: var(--space-2); } & .sidebar-section[data-collapsed] { display: none; } & .sidebar-label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); padding: var(--space-1-5) var(--space-2) var(--space-0-5); } & .sidebar-section-header { display: flex; align-items: center; gap: var(--space-1); width: 100%; margin: 0; border: none; background: none; padding: var(--space-1-5) var(--space-2) var(--space-0-5); font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); cursor: pointer; } & .sidebar-section-header svg { flex-shrink: 0; transition: transform .15s ease; } & .sidebar-section-header[data-collapsed] svg { transform: rotate(-90deg); } & .sidebar-ws { display: flex; align-items: center; gap: var(--space-2); height: var(--size-header); padding: 0 var(--space-2); border-radius: var(--radius-lg); cursor: pointer; transition: background-color 0.16s; } & .sidebar-ws:hover { background: color-mix(in srgb, var(--fg-primary) 5%, transparent); } & .sidebar-ws-name { font-size: var(--text-lg); font-weight: var(--weight-semibold); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } & .sidebar-ws-collapse { margin-left: auto; } & .sidebar-searchrow { display: flex; align-items: center; gap: var(--space-1-5); margin-top: var(--space-2-5); padding-right: var(--space-2); } & .sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-0-5); } & .sidebar-trial { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-1-5) var(--space-2); font-size: var(--text-sm); color: var(--fg-muted); } & .sidebar-search { box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-2); height: var(--size-row); margin: 0; padding: 0 var(--space-1) 0 var(--space-2); border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); color: var(--fg-muted); font-family: inherit; font-size: var(--text-lg); text-align: left; cursor: pointer; transition: background-color 0.14s; } & .sidebar-search:hover { background: var(--bg-raised); } & .sidebar-search-label { flex: 1; color: var(--fg-primary); font-weight: var(--weight-medium); } & .sidebar-search-kbd { margin-left: auto; display: inline-flex; align-items: center; height: 18px; padding: 0 var(--space-1); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg-primary) 8%, transparent); color: color-mix(in srgb, var(--fg-primary) 50%, transparent); font-size: var(--text-xs); } & .sidebar-pill { border-radius: var(--radius-full); align-self: center; width: auto; height: 32px; padding-inline: var(--space-4); } & .sidebar-divider { height: 0; border: none; border-top: 1px solid var(--border-subtle); margin: var(--space-2) calc(-1 * var(--space-2)) 0; } & .sidebar-newlist { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; height: var(--size-row); border-radius: var(--radius-md); border: 1px dashed var(--border-default); background: transparent; color: var(--fg-muted); font-family: var(--font-sans); font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; } & .sidebar-newlist:hover { background: var(--bg-raised); color: var(--fg-primary); }
|
|
765
960
|
}
|
|
766
961
|
|
|
767
962
|
.inbox {
|
|
@@ -860,7 +1055,7 @@
|
|
|
860
1055
|
& .recordpage-crumb-sep { color: var(--fg-muted); font-size: var(--text-lg); }
|
|
861
1056
|
& .recordpage-crumb-name { font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--fg-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
862
1057
|
& .recordpage-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-1); }
|
|
863
|
-
& .recordpage-action { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 28px; padding: 0 var(--space-2) 0 var(--space-1-5); margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--fg-primary); cursor: pointer; white-space: nowrap; }
|
|
1058
|
+
& .recordpage-action { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 28px; padding: 0 var(--space-2) 0 var(--space-1-5); margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--fg-primary); cursor: pointer; white-space: nowrap; }
|
|
864
1059
|
& .recordpage-action:hover { background: var(--bg-raised); }
|
|
865
1060
|
& .recordpage-action--ghost { box-shadow: none; color: var(--fg-muted); }
|
|
866
1061
|
& .recordpage-action--icon { width: 28px; padding: 0; justify-content: center; box-shadow: none; color: var(--fg-muted); }
|
|
@@ -881,10 +1076,10 @@
|
|
|
881
1076
|
& .recordpage-entity-iconbtn:hover { background: var(--bg-raised); color: var(--fg-primary); }
|
|
882
1077
|
& .recordpage-entity-iconbtn[data-active] svg { color: #f5b83d; fill: #f5b83d; }
|
|
883
1078
|
& .recordpage-quickactions { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-1) var(--space-3); }
|
|
884
|
-
& .recordpage-compose { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 28px; padding: 0 var(--space-4) 0 var(--space-3); margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--fg-primary); white-space: nowrap; cursor: pointer; transition: background-color .12s; }
|
|
1079
|
+
& .recordpage-compose { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 28px; padding: 0 var(--space-4) 0 var(--space-3); margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--fg-primary); white-space: nowrap; cursor: pointer; transition: background-color .12s; }
|
|
885
1080
|
& .recordpage-compose:hover { background: var(--bg-raised); }
|
|
886
1081
|
& .recordpage-compose svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
887
|
-
& .recordpage-quickbtn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; padding: 0; margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); color: var(--fg-muted); cursor: pointer; transition: background-color .12s, color .12s; }
|
|
1082
|
+
& .recordpage-quickbtn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; padding: 0; margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); color: var(--fg-muted); cursor: pointer; transition: background-color .12s, color .12s; }
|
|
888
1083
|
& .recordpage-quickbtn:hover { background: var(--bg-raised); color: var(--fg-primary); }
|
|
889
1084
|
& .recordpage-section { padding-top: var(--space-2); }
|
|
890
1085
|
& .recordpage-section-title { font-size: var(--text-sm); font-weight: var(--weight-medium); letter-spacing: -0.12px; color: color-mix(in srgb, var(--fg-primary) 63%, transparent); padding: var(--space-1); }
|
|
@@ -948,7 +1143,7 @@
|
|
|
948
1143
|
& .recordpage-section-head .recordpage-section-title { padding: 0; }
|
|
949
1144
|
& .recordpage-section-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 var(--space-1); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--fg-primary) 6%, transparent); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--fg-muted); }
|
|
950
1145
|
& .recordpage-section-spacer { flex: 1; }
|
|
951
|
-
& .recordpage-addbtn { display: inline-flex; align-items: center; gap: var(--space-1); height: 26px; padding: 0 var(--space-1-5); margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); color: var(--fg-primary); font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; }
|
|
1146
|
+
& .recordpage-addbtn { display: inline-flex; align-items: center; gap: var(--space-1); height: 26px; padding: 0 var(--space-1-5); margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); color: var(--fg-primary); font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; }
|
|
952
1147
|
& .recordpage-addbtn:hover { background: var(--bg-raised); }
|
|
953
1148
|
& .recordpage-addbtn svg { flex-shrink: 0; }
|
|
954
1149
|
|
|
@@ -956,7 +1151,7 @@
|
|
|
956
1151
|
& .recordpage-composer textarea { width: 100%; min-height: 56px; resize: vertical; border: none; outline: none; background: none; font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); }
|
|
957
1152
|
& .recordpage-composer textarea::placeholder { color: var(--fg-muted); }
|
|
958
1153
|
& .recordpage-composer-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-1-5); }
|
|
959
|
-
& .recordpage-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--space-2-5); margin: 0; border: none; border-radius: var(--radius-md); font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); background: var(--bg-surface); color: var(--fg-primary); }
|
|
1154
|
+
& .recordpage-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--space-2-5); margin: 0; border: none; border-radius: var(--radius-md); font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); background: var(--bg-surface); color: var(--fg-primary); }
|
|
960
1155
|
& .recordpage-btn:hover { background: var(--bg-raised); }
|
|
961
1156
|
& .recordpage-btn--primary { box-shadow: none; background: var(--bg-brand-solid); color: var(--fg-on-brand); }
|
|
962
1157
|
& .recordpage-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
@@ -1102,7 +1297,7 @@
|
|
|
1102
1297
|
& .recordstable-tool--ghost { box-shadow: none; background: color-mix(in srgb, var(--fg-primary) 3%, transparent); color: var(--fg-muted); }
|
|
1103
1298
|
& .recordstable-tool--ghost:hover { background: color-mix(in srgb, var(--fg-primary) 6%, transparent); }
|
|
1104
1299
|
& .recordstable-toolgroup { position: relative; display: inline-flex; }
|
|
1105
|
-
& .recordstable-menu { position: absolute; top: calc(100% + var(--space-1)); left: 0; z-index: 30; min-width: 232px; padding: var(--space-1); border-radius: var(--radius-lg); background: var(--bg-
|
|
1300
|
+
& .recordstable-menu { position: absolute; top: calc(100% + var(--space-1)); left: 0; z-index: 30; min-width: 232px; padding: var(--space-1); border-radius: var(--radius-lg); background: var(--bg-popover); box-shadow: inset 0 0 0 1px var(--ring-popover), 0 0 0 1px var(--shadow-popover1), 0 4px 8px -4px var(--shadow-popover2), 0 4px 12px -2px var(--shadow-popover3); display: flex; flex-direction: column; gap: var(--space-px); transform-origin: top; opacity: 1; transform: none; transition: opacity .13s ease, transform .13s ease; }
|
|
1106
1301
|
& .recordstable-menu { @starting-style { opacity: 0; transform: scale(0.96); } }
|
|
1107
1302
|
& .recordstable-ctx { z-index: 60; }
|
|
1108
1303
|
& .recordstable-th[data-drop] { box-shadow: inset 2px 0 0 var(--bg-brand-solid); }
|
|
@@ -1122,7 +1317,7 @@
|
|
|
1122
1317
|
& .recordstable-sort-remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; padding: 0; margin: 0; border: none; border-radius: var(--radius-md); background: none; color: var(--fg-muted); cursor: pointer; transition: background-color .12s, color .12s; }
|
|
1123
1318
|
& .recordstable-sort-remove:hover { background: var(--bg-raised); color: var(--fg-primary); }
|
|
1124
1319
|
& .recordstable-sort-addrow { display: flex; padding: var(--space-0-5) 0; }
|
|
1125
|
-
& .recordstable-sort-add { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 28px; padding: 0 var(--space-2) 0 var(--space-1-5); margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--text-lg); font-weight: var(--weight-regular); color: var(--fg-primary); cursor: pointer; transition: background-color .12s; }
|
|
1320
|
+
& .recordstable-sort-add { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 28px; padding: 0 var(--space-2) 0 var(--space-1-5); margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--text-lg); font-weight: var(--weight-regular); color: var(--fg-primary); cursor: pointer; transition: background-color .12s; }
|
|
1126
1321
|
& .recordstable-sort-add:hover { background: var(--bg-raised); }
|
|
1127
1322
|
& .recordstable-sort-add svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
1128
1323
|
& .recordstable-sort-foot { display: flex; padding: var(--space-1-5) var(--space-1) var(--space-0-5); }
|
|
@@ -1182,8 +1377,8 @@
|
|
|
1182
1377
|
& .recordstable-resize:hover::after, & .recordstable-resize[data-resizing]::after { opacity: 1; }
|
|
1183
1378
|
|
|
1184
1379
|
/* add-column header */
|
|
1185
|
-
& .recordstable-addcol {
|
|
1186
|
-
& .recordstable-addcol button { display: flex; align-items: center; justify-content: center; width:
|
|
1380
|
+
& .recordstable-addcol { min-width: 44px; }
|
|
1381
|
+
& .recordstable-addcol button { display: flex; align-items: center; justify-content: center; width: 44px; height: 100%; border: none; background: none; color: var(--fg-muted); cursor: pointer; }
|
|
1187
1382
|
& .recordstable-addcol button:hover { background: var(--bg-raised); color: var(--fg-primary); }
|
|
1188
1383
|
|
|
1189
1384
|
/* cells */
|
|
@@ -1287,7 +1482,7 @@
|
|
|
1287
1482
|
}
|
|
1288
1483
|
|
|
1289
1484
|
.command {
|
|
1290
|
-
display: contents; font-family: var(--font-sans); & .command-content, & .command-card { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } & .command-backdrop { position: fixed; inset: 0; z-index: 50; background: transparent; } & .command-positioner { position: fixed; inset: 0; z-index: 51; display: flex; align-items: flex-start; justify-content: center; padding: 15vh var(--space-4) var(--space-4); } & .command-content { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 90vw; max-width: 748px; max-height: 70vh; padding: var(--space-1); border-radius: var(--radius-2xl); background: var(--bg-
|
|
1485
|
+
display: contents; font-family: var(--font-sans); & .command-content, & .command-card { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } & .command-backdrop { position: fixed; inset: 0; z-index: 50; background: transparent; } & .command-positioner { position: fixed; inset: 0; z-index: 51; display: flex; align-items: flex-start; justify-content: center; padding: 15vh var(--space-4) var(--space-4); } & .command-content { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 90vw; max-width: 748px; max-height: 70vh; padding: var(--space-1); border-radius: var(--radius-2xl); background: color-mix(in srgb, var(--bg-overlay-frost) 60%, transparent); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: 0 8px 28px -6px var(--shadow-overlay1), 0 18px 88px -4px var(--shadow-overlay2), 0 0 1px var(--shadow-overlay3); opacity: 1; transform: scale(1); transition: opacity 0.2s ease, transform 0.2s ease; @starting-style { opacity: 0; transform: scale(0.97); } } & .command-card { display: flex; flex-direction: column; flex: 1; min-height: 0; box-sizing: border-box; border-radius: var(--radius-xl); background: var(--bg-surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg-primary) 8%, transparent); overflow: hidden; } & .command-control { display: flex; align-items: center; gap: var(--space-2-5); height: 52px; flex-shrink: 0; padding: 0 var(--space-4); border-bottom: 1px solid var(--border-subtle); color: var(--fg-muted); } & .command-control svg { flex-shrink: 0; } & .command-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--font-sans); font-size: var(--text-xl); color: var(--fg-primary); } & .command-input::placeholder { color: var(--fg-muted); } & .command-list { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-1) var(--space-2-5); display: flex; flex-direction: column; gap: var(--space-px); } & .command-empty { padding: var(--space-8) var(--space-3); text-align: center; font-size: var(--text-md); color: var(--fg-muted); } & .command-item { box-sizing: border-box; display: flex; align-items: center; gap: var(--space-2); height: 36px; padding-inline: var(--space-2-5); border-radius: var(--radius-xl); font-size: var(--text-lg); color: var(--fg-primary); cursor: pointer; } & .command-item svg { flex-shrink: 0; color: var(--fg-muted); } & .command-item[data-highlighted] { background: color-mix(in srgb, var(--fg-primary) 4%, transparent); } & .command-item-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } & .command-item-shortcut { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: var(--space-0-5); } & .command-group-label { padding: var(--space-2) var(--space-2-5) var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-medium); color: color-mix(in srgb, var(--fg-primary) 63%, transparent); } & .command-list > .command-group-label:first-child { padding-top: var(--space-1); } & .command-footer { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 44px; padding: 0 var(--space-2-5); border-top: 1px solid var(--border-subtle); } & .command-footer-nav { display: flex; align-items: center; gap: var(--space-1-5); font-size: var(--text-sm); color: var(--fg-muted); } & .command-footer-action { display: flex; align-items: center; gap: var(--space-2); height: 28px; max-width: 60%; padding: 0 var(--space-1) 0 var(--space-2-5); border: none; border-radius: var(--radius-md); background: var(--bg-brand-solid); color: var(--fg-on-brand); font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; } & .command-footer-action:disabled { opacity: 0.5; cursor: default; } & .command-footer-action-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } & .command-footer-key { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 var(--space-1); border-radius: var(--radius-sm); background: rgba(255,255,255,0.22); font-size: var(--text-xs); }
|
|
1291
1486
|
}
|
|
1292
1487
|
|
|
1293
1488
|
.richtext {
|
|
@@ -1351,8 +1546,8 @@
|
|
|
1351
1546
|
padding: 0; margin: 0; border: none; border-radius: var(--radius-md); background: none; color: var(--fg-muted);
|
|
1352
1547
|
cursor: pointer; transition: background-color .12s, color .12s, box-shadow .12s; }
|
|
1353
1548
|
& .viewtoggle-tile:hover { color: var(--fg-primary); }
|
|
1354
|
-
& .viewtoggle-tile[data-active] { background: var(--bg-
|
|
1355
|
-
box-shadow: 0
|
|
1549
|
+
& .viewtoggle-tile[data-active] { background: var(--bg-tile-active); color: var(--fg-primary);
|
|
1550
|
+
box-shadow: 0 1px 2px -1px var(--shadow-tile-active); }
|
|
1356
1551
|
& .viewtoggle-tile:focus-visible { outline: 2px solid var(--bg-brand-solid); outline-offset: 1px; }
|
|
1357
1552
|
}
|
|
1358
1553
|
|
package/dist/table.css
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.table {
|
|
2
|
+
display: block; box-sizing: border-box; background: var(--bg-surface);
|
|
3
|
+
& .table-scroll { overflow-x: auto; }
|
|
4
|
+
& table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--font-sans); font-size: var(--text-lg); color: var(--fg-primary); }
|
|
5
|
+
& th, & td { position: relative; height: var(--size-tableRow); padding: 0 var(--space-2); border-bottom: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle); text-align: left; vertical-align: middle; white-space: nowrap; overflow: hidden; }
|
|
6
|
+
& th { height: 40px; background: var(--bg-surface); font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: -0.14px; color: var(--fg-primary); user-select: none; }
|
|
7
|
+
& td { color: var(--fg-primary); background: var(--bg-surface); }
|
|
8
|
+
& th:last-child, & td:last-child { border-right: none; }
|
|
9
|
+
& tbody tr:last-child td { border-bottom: none; }
|
|
10
|
+
& tfoot td { border-top: 1px solid var(--border-subtle); border-bottom: none; font-weight: var(--weight-medium); color: var(--fg-muted); }
|
|
11
|
+
& caption { padding: var(--space-2) var(--space-2); text-align: left; font-size: var(--text-sm); color: var(--fg-muted); caption-side: bottom; }
|
|
12
|
+
& td[data-align="right"], & th[data-align="right"] { text-align: right; }
|
|
13
|
+
& td[data-align="center"], & th[data-align="center"] { text-align: center; }
|
|
14
|
+
}
|
|
15
|
+
.table--interactive_true {
|
|
16
|
+
& tbody tr { transition: background-color .12s; } & tbody tr:hover td { background: color-mix(in srgb, var(--fg-primary) 3%, var(--bg-surface)); }
|
|
17
|
+
}
|
|
18
|
+
.table--interactive_false {
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
.table--surface_card {
|
|
22
|
+
border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
.table--surface_bleed {
|
|
25
|
+
border: none; border-radius: 0;
|
|
26
|
+
}
|
package/dist/table.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RecipeFn } from "../core/types";
|
|
2
|
+
|
|
3
|
+
export interface TableVariants {
|
|
4
|
+
interactive?: boolean;
|
|
5
|
+
surface?: "card" | "bleed";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export declare const tableRecipe: RecipeFn<{ interactive: { true: string; false: string }; surface: { card: string; bleed: string } }>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.tabletoolbar {
|
|
2
|
+
|
|
3
|
+
display: contents; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
4
|
+
& * { box-sizing: border-box; }
|
|
5
|
+
& .tabletoolbar-toolbar { display: flex; align-items: center; gap: var(--space-1-5); padding: 0 var(--space-3) var(--space-2); }
|
|
6
|
+
& .tabletoolbar-search { display: flex; align-items: center; gap: var(--space-1-5); height: var(--size-row); padding: 0 var(--space-2-5); border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--border-subtle); color: var(--fg-muted); }
|
|
7
|
+
& .tabletoolbar-search svg { flex-shrink: 0; }
|
|
8
|
+
& .tabletoolbar-search input { border: none; outline: none; background: transparent; font-family: inherit; font-size: var(--text-md); color: var(--fg-primary); width: 180px; }
|
|
9
|
+
& .tabletoolbar-search input::placeholder { color: var(--fg-muted); }
|
|
10
|
+
& .tabletoolbar-tool { display: inline-flex; align-items: center; gap: var(--space-1); height: var(--size-row); margin: 0; padding: 0 var(--space-2); border: none; border-radius: var(--radius-md); background: transparent; box-shadow: inset 0 0 0 1px var(--border-default); color: var(--fg-primary); font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; transition: background-color .12s; }
|
|
11
|
+
& .tabletoolbar-tool:hover { background: var(--bg-raised); }
|
|
12
|
+
& .tabletoolbar-tool svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
13
|
+
& .tabletoolbar-tool--active { background: var(--bg-raised); }
|
|
14
|
+
& .tabletoolbar-tool--ghost { box-shadow: none; background: color-mix(in srgb, var(--fg-primary) 3%, transparent); color: var(--fg-muted); }
|
|
15
|
+
& .tabletoolbar-tool--ghost:hover { background: color-mix(in srgb, var(--fg-primary) 6%, transparent); }
|
|
16
|
+
& .tabletoolbar-toolgroup { position: relative; display: inline-flex; }
|
|
17
|
+
& .tabletoolbar-menu { position: absolute; top: calc(100% + var(--space-1)); left: 0; z-index: 30; min-width: 232px; padding: var(--space-1); border-radius: var(--radius-lg); background: var(--bg-popover); box-shadow: inset 0 0 0 1px var(--ring-popover), 0 0 0 1px var(--shadow-popover1), 0 4px 8px -4px var(--shadow-popover2), 0 4px 12px -2px var(--shadow-popover3); display: flex; flex-direction: column; gap: var(--space-px); transform-origin: top; opacity: 1; transform: none; transition: opacity .13s ease, transform .13s ease; }
|
|
18
|
+
& .tabletoolbar-menu { @starting-style { opacity: 0; transform: scale(0.96); } }
|
|
19
|
+
& .tabletoolbar-menu-head { padding: var(--space-1) var(--space-2) var(--space-0-5); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--fg-muted); }
|
|
20
|
+
& .tabletoolbar-sortpop { min-width: 460px; overflow: visible; padding: var(--space-1-5); gap: var(--space-1); }
|
|
21
|
+
& .tabletoolbar-sort-empty { padding: var(--space-1) var(--space-1) var(--space-2); font-size: var(--text-md); color: var(--fg-muted); }
|
|
22
|
+
& .tabletoolbar-sort-row { display: flex; align-items: center; gap: var(--space-1-5); }
|
|
23
|
+
& .tabletoolbar-sort-grip { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 28px; flex-shrink: 0; margin-right: calc(-1 * var(--space-1)); padding: 0; border: none; background: none; color: var(--fg-muted); cursor: grab; }
|
|
24
|
+
& .tabletoolbar-sort-grip:active { cursor: grabbing; }
|
|
25
|
+
& .tabletoolbar-sort-grip:hover { color: var(--fg-primary); }
|
|
26
|
+
& .tabletoolbar-sort-optlabel { display: inline-flex; align-items: center; gap: var(--space-1-5); min-width: 0; }
|
|
27
|
+
& .tabletoolbar-sort-optlabel svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
28
|
+
& .tabletoolbar-sort-field { flex: 1; min-width: 0; }
|
|
29
|
+
& .tabletoolbar-sort-dir { width: 136px; flex-shrink: 0; }
|
|
30
|
+
& .tabletoolbar-sort-field .select-trigger, & .tabletoolbar-sort-dir .select-trigger { height: 28px; padding-right: var(--space-1); }
|
|
31
|
+
& .tabletoolbar-sort-remove { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; padding: 0; margin: 0; border: none; border-radius: var(--radius-md); background: none; color: var(--fg-muted); cursor: pointer; transition: background-color .12s, color .12s; }
|
|
32
|
+
& .tabletoolbar-sort-remove:hover { background: var(--bg-raised); color: var(--fg-primary); }
|
|
33
|
+
& .tabletoolbar-sort-addrow { display: flex; padding: var(--space-0-5) 0; }
|
|
34
|
+
& .tabletoolbar-sort-add { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 28px; padding: 0 var(--space-2) 0 var(--space-1-5); margin: 0; border: none; border-radius: var(--radius-md); background: var(--bg-surface); box-shadow: inset 0 0 0 1px var(--ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; font-size: var(--text-lg); font-weight: var(--weight-regular); color: var(--fg-primary); cursor: pointer; transition: background-color .12s; }
|
|
35
|
+
& .tabletoolbar-sort-add:hover { background: var(--bg-raised); }
|
|
36
|
+
& .tabletoolbar-sort-add svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
37
|
+
& .tabletoolbar-sort-foot { display: flex; padding: var(--space-1-5) var(--space-1) var(--space-0-5); }
|
|
38
|
+
& .tabletoolbar-sort-learn { display: inline-flex; align-items: center; gap: var(--space-1-5); font-size: var(--text-lg); color: color-mix(in srgb, var(--fg-primary) 63%, transparent); text-decoration: none; }
|
|
39
|
+
& .tabletoolbar-sort-learn svg { flex-shrink: 0; }
|
|
40
|
+
& .tabletoolbar-sort-learn:hover { color: var(--fg-primary); }
|
|
41
|
+
& .tabletoolbar-menu-item { display: flex; align-items: center; gap: var(--space-2); width: 100%; height: var(--size-row); margin: 0; padding: 0 var(--space-2); border: none; background: none; border-radius: var(--radius-md); font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); text-align: left; cursor: pointer; }
|
|
42
|
+
& .tabletoolbar-menu-item:hover { background: var(--bg-raised); }
|
|
43
|
+
& .tabletoolbar-menu-item:disabled { opacity: 0.4; cursor: default; }
|
|
44
|
+
& .tabletoolbar-menu-item:disabled:hover { background: none; }
|
|
45
|
+
& .tabletoolbar-menu-item svg { flex-shrink: 0; color: var(--fg-muted); }
|
|
46
|
+
& .tabletoolbar-menu-item[data-on] svg { color: var(--bg-brand-solid); }
|
|
47
|
+
& .tabletoolbar-menu-item .tabletoolbar-menu-check { margin-left: auto; }
|
|
48
|
+
& .tabletoolbar-menu-input { height: var(--size-row); margin: var(--space-0-5); padding: 0 var(--space-2); border: none; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--border-subtle); background: var(--bg-surface); font-family: inherit; font-size: var(--text-lg); color: var(--fg-primary); outline: none; }
|
|
49
|
+
& .tabletoolbar-menu-sep { height: 1px; background: var(--border-subtle); margin: var(--space-0-5) 0; }
|
|
50
|
+
& .tabletoolbar-menu--up { top: auto; bottom: calc(100% + var(--space-1)); transform-origin: bottom; }
|
|
51
|
+
& .tabletoolbar-menu--right { left: auto; right: 0; }
|
|
52
|
+
& .tabletoolbar-menu--fixed { position: fixed; top: auto; left: auto; z-index: 40; }
|
|
53
|
+
& .tabletoolbar-menu--hdr { min-width: 200px; }
|
|
54
|
+
& .tabletoolbar-menu-item--danger { color: var(--bg-danger); }
|
|
55
|
+
& .tabletoolbar-menu-item--danger svg { color: var(--bg-danger); }
|
|
56
|
+
& .tabletoolbar-menu-item--danger:hover { background: color-mix(in srgb, var(--bg-danger) 10%, transparent); }
|
|
57
|
+
& .tabletoolbar-menu-check { margin-left: auto; color: var(--bg-brand-solid); }
|
|
58
|
+
& .tabletoolbar-fchip { display: inline-flex; align-items: center; height: var(--size-row); padding-right: var(--space-1); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--border-default); background: var(--bg-surface); font-size: var(--text-md); color: var(--fg-primary); white-space: nowrap; }
|
|
59
|
+
& .tabletoolbar-fchip-main { display: inline-flex; align-items: center; gap: var(--space-1-5); height: 100%; margin: 0; padding: 0 var(--space-1) 0 var(--space-2); border: none; background: none; font-family: inherit; font-size: var(--text-md); color: var(--fg-primary); cursor: pointer; }
|
|
60
|
+
& .tabletoolbar-fchip-field { font-weight: var(--weight-medium); }
|
|
61
|
+
& .tabletoolbar-fchip-op { color: var(--fg-muted); }
|
|
62
|
+
& .tabletoolbar-fchip-val { font-weight: var(--weight-medium); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
|
|
63
|
+
& .tabletoolbar-fchip-x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: none; border-radius: var(--radius-sm); background: none; color: var(--fg-muted); cursor: pointer; }
|
|
64
|
+
& .tabletoolbar-fchip-x:hover { background: color-mix(in srgb, var(--fg-primary) 10%, transparent); color: var(--fg-primary); }
|
|
65
|
+
& .tabletoolbar-spacer { flex: 1; }
|
|
66
|
+
& .tabletoolbar-count { font-size: var(--text-md); color: var(--fg-muted); }
|
|
67
|
+
& .tabletoolbar-new { display: inline-flex; align-items: center; gap: var(--space-1); height: var(--size-row); padding: 0 var(--space-2-5); border: none; border-radius: var(--radius-md); background: var(--bg-brand-solid); color: var(--fg-on-brand); font-family: inherit; font-size: var(--text-md); font-weight: var(--weight-medium); cursor: pointer; transition: background-color .12s; }
|
|
68
|
+
& .tabletoolbar-new:hover { background: var(--bg-brand-solid-pressed); }
|
|
69
|
+
|
|
70
|
+
}
|