@vitral/themes 0.2.20 → 0.2.22

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.
@@ -799,6 +799,9 @@
799
799
  --vt-datagrid-body-cell-sm-font-size: var(--vt-form-field-sm-font-size);
800
800
  --vt-datagrid-body-cell-lg-padding: 0.875rem 1rem;
801
801
  --vt-datagrid-body-cell-lg-font-size: var(--vt-form-field-lg-font-size);
802
+ --vt-datagrid-pinned-row-background: var(--vt-overlay-popover-background);
803
+ --vt-datagrid-pinned-row-color: var(--vt-text-color);
804
+ --vt-datagrid-pinned-row-font-weight: 600;
802
805
  --vt-datagrid-footer-cell-color: var(--vt-text-color);
803
806
  --vt-datagrid-footer-cell-font-weight: 600;
804
807
  --vt-datagrid-footer-padding: 0.75rem 1rem;
package/dist/css/ink.css CHANGED
@@ -788,6 +788,9 @@
788
788
  --vt-datagrid-body-cell-sm-font-size: var(--vt-form-field-sm-font-size);
789
789
  --vt-datagrid-body-cell-lg-padding: 0.875rem 1rem;
790
790
  --vt-datagrid-body-cell-lg-font-size: var(--vt-form-field-lg-font-size);
791
+ --vt-datagrid-pinned-row-background: var(--vt-overlay-popover-background);
792
+ --vt-datagrid-pinned-row-color: var(--vt-text-color);
793
+ --vt-datagrid-pinned-row-font-weight: 600;
791
794
  --vt-datagrid-footer-cell-color: var(--vt-text-color);
792
795
  --vt-datagrid-footer-cell-font-weight: 600;
793
796
  --vt-datagrid-footer-padding: 0.75rem 1rem;
@@ -788,6 +788,9 @@
788
788
  --vt-datagrid-body-cell-sm-font-size: var(--vt-form-field-sm-font-size);
789
789
  --vt-datagrid-body-cell-lg-padding: 0.875rem 1rem;
790
790
  --vt-datagrid-body-cell-lg-font-size: var(--vt-form-field-lg-font-size);
791
+ --vt-datagrid-pinned-row-background: var(--vt-overlay-popover-background);
792
+ --vt-datagrid-pinned-row-color: var(--vt-text-color);
793
+ --vt-datagrid-pinned-row-font-weight: 600;
791
794
  --vt-datagrid-footer-cell-color: var(--vt-text-color);
792
795
  --vt-datagrid-footer-cell-font-weight: 600;
793
796
  --vt-datagrid-footer-padding: 0.75rem 1rem;
@@ -799,6 +799,9 @@
799
799
  --vt-datagrid-body-cell-sm-font-size: var(--vt-form-field-sm-font-size);
800
800
  --vt-datagrid-body-cell-lg-padding: 0.875rem 1rem;
801
801
  --vt-datagrid-body-cell-lg-font-size: var(--vt-form-field-lg-font-size);
802
+ --vt-datagrid-pinned-row-background: var(--vt-overlay-popover-background);
803
+ --vt-datagrid-pinned-row-color: var(--vt-text-color);
804
+ --vt-datagrid-pinned-row-font-weight: 600;
802
805
  --vt-datagrid-footer-cell-color: var(--vt-text-color);
803
806
  --vt-datagrid-footer-cell-font-weight: 600;
804
807
  --vt-datagrid-footer-padding: 0.75rem 1rem;
@@ -76,6 +76,11 @@ declare const _default: {
76
76
  fontSize: string;
77
77
  };
78
78
  };
79
+ pinnedRow: {
80
+ background: string;
81
+ color: string;
82
+ fontWeight: string;
83
+ };
79
84
  footerCell: {
80
85
  color: string;
81
86
  fontWeight: string;
@@ -75,6 +75,11 @@ var datagrid_default = {
75
75
  fontSize: "{formField.lg.fontSize}"
76
76
  }
77
77
  },
78
+ pinnedRow: {
79
+ background: "{overlay.popover.background}",
80
+ color: "{text.color}",
81
+ fontWeight: "600"
82
+ },
78
83
  footerCell: {
79
84
  color: "{text.color}",
80
85
  fontWeight: "600"
@@ -1 +1 @@
1
- {"version":3,"file":"datagrid.js","names":[],"sources":["../../../../src/presets/base/components/datagrid.ts"],"sourcesContent":["// Rows reuse the list's hover and selected colours (and the accent pill),\n// so a selected row and a selected option read as the same thing.\nexport default {\n root: {\n background: '{content.background}',\n color: '{text.color}',\n borderColor: '{content.borderColor}',\n borderRadius: '{content.borderRadius}',\n transitionDuration: '{transitionDuration}'\n },\n header: {\n padding: '0.75rem 1rem',\n borderColor: '{content.borderColor}',\n color: '{text.color}'\n },\n headerCell: {\n background: '{content.background}',\n // A sticky header must be opaque, or rows show through it as they scroll under;\n // content backgrounds are translucent in some presets, overlay panels are not.\n stickyBackground: '{overlay.popover.background}',\n hoverBackground: '{content.hoverBackground}',\n color: '{text.mutedColor}',\n hoverColor: '{text.color}',\n sortedColor: '{text.color}',\n borderColor: '{content.borderColor}',\n padding: '0.5rem 0.75rem',\n gap: '0.375rem',\n fontWeight: '600'\n },\n filterCell: {\n padding: '0.375rem 0.75rem'\n },\n // The handle on a column's edge, the shadow the pinned block casts, and the\n // line a dragged column would land on.\n resizer: {\n width: '10px',\n inset: '6px',\n color: '{primary.color}'\n },\n pinned: {\n shadowLeft: '2px 0 4px -2px rgb(0 0 0 / 0.18)',\n shadowRight: '-2px 0 4px -2px rgb(0 0 0 / 0.18)'\n },\n drop: {\n width: '2px',\n color: '{primary.color}'\n },\n chooserButton: {\n padding: '0.25rem 0.625rem',\n fontSize: '0.8125rem'\n },\n // The heading over a run of rows gathered by a field.\n group: {\n background: '{content.hoverBackground}',\n color: '{text.color}',\n iconColor: '{text.mutedColor}',\n padding: '0.5rem 0.75rem',\n fontWeight: '600',\n count: {\n background: '{content.background}',\n color: '{text.mutedColor}'\n }\n },\n row: {\n background: 'transparent',\n hoverBackground: '{list.option.focusBackground}',\n color: '{text.color}',\n selectedBackground: '{list.option.selectedBackground}',\n selectedColor: '{list.option.selectedColor}',\n selectedIndicator: '{list.option.selectedIndicator}',\n stripedBackground: 'color-mix(in srgb, {text.color} 3%, transparent)'\n },\n bodyCell: {\n padding: '0.5rem 0.75rem',\n borderColor: '{content.borderColor}',\n /** A small or large grid scales its type with its padding, like a button. */\n sm: { padding: '0.25rem 0.5rem', fontSize: '{formField.sm.fontSize}' },\n lg: { padding: '0.875rem 1rem', fontSize: '{formField.lg.fontSize}' }\n },\n footerCell: {\n color: '{text.color}',\n fontWeight: '600'\n },\n footer: {\n padding: '0.75rem 1rem',\n color: '{text.mutedColor}'\n },\n sortIcon: {\n color: '{text.mutedColor}',\n activeColor: '{primary.color}'\n },\n sortBadge: {\n size: '1rem',\n fontSize: '0.6875rem',\n background: '{primary.color}',\n color: '{primary.contrastColor}'\n },\n checkbox: {\n size: '1.125rem',\n borderRadius: '{borderRadius.sm}',\n background: '{formField.background}',\n borderColor: '{text.mutedColor}',\n hoverBorderColor: '{text.color}',\n checkedBackground: '{primary.color}',\n checkedBorderColor: '{primary.color}',\n checkedColor: '{primary.contrastColor}'\n },\n loadingIcon: {\n size: '2rem',\n color: '{primary.color}'\n },\n colorScheme: {\n light: { loadingMask: { background: 'rgba(255, 255, 255, 0.6)' } },\n dark: { loadingMask: { background: 'rgba(0, 0, 0, 0.4)' } }\n }\n};\n"],"mappings":";AAEA,IAAA,mBAAe;CACX,MAAM;EACF,YAAY;EACZ,OAAO;EACP,aAAa;EACb,cAAc;EACd,oBAAoB;CACxB;CACA,QAAQ;EACJ,SAAS;EACT,aAAa;EACb,OAAO;CACX;CACA,YAAY;EACR,YAAY;EAGZ,kBAAkB;EAClB,iBAAiB;EACjB,OAAO;EACP,YAAY;EACZ,aAAa;EACb,aAAa;EACb,SAAS;EACT,KAAK;EACL,YAAY;CAChB;CACA,YAAY,EACR,SAAS,mBACb;CAGA,SAAS;EACL,OAAO;EACP,OAAO;EACP,OAAO;CACX;CACA,QAAQ;EACJ,YAAY;EACZ,aAAa;CACjB;CACA,MAAM;EACF,OAAO;EACP,OAAO;CACX;CACA,eAAe;EACX,SAAS;EACT,UAAU;CACd;CAEA,OAAO;EACH,YAAY;EACZ,OAAO;EACP,WAAW;EACX,SAAS;EACT,YAAY;EACZ,OAAO;GACH,YAAY;GACZ,OAAO;EACX;CACJ;CACA,KAAK;EACD,YAAY;EACZ,iBAAiB;EACjB,OAAO;EACP,oBAAoB;EACpB,eAAe;EACf,mBAAmB;EACnB,mBAAmB;CACvB;CACA,UAAU;EACN,SAAS;EACT,aAAa;;EAEb,IAAI;GAAE,SAAS;GAAkB,UAAU;EAA0B;EACrE,IAAI;GAAE,SAAS;GAAiB,UAAU;EAA0B;CACxE;CACA,YAAY;EACR,OAAO;EACP,YAAY;CAChB;CACA,QAAQ;EACJ,SAAS;EACT,OAAO;CACX;CACA,UAAU;EACN,OAAO;EACP,aAAa;CACjB;CACA,WAAW;EACP,MAAM;EACN,UAAU;EACV,YAAY;EACZ,OAAO;CACX;CACA,UAAU;EACN,MAAM;EACN,cAAc;EACd,YAAY;EACZ,aAAa;EACb,kBAAkB;EAClB,mBAAmB;EACnB,oBAAoB;EACpB,cAAc;CAClB;CACA,aAAa;EACT,MAAM;EACN,OAAO;CACX;CACA,aAAa;EACT,OAAO,EAAE,aAAa,EAAE,YAAY,2BAA2B,EAAE;EACjE,MAAM,EAAE,aAAa,EAAE,YAAY,qBAAqB,EAAE;CAC9D;AACJ"}
1
+ {"version":3,"file":"datagrid.js","names":[],"sources":["../../../../src/presets/base/components/datagrid.ts"],"sourcesContent":["// Rows reuse the list's hover and selected colours (and the accent pill),\n// so a selected row and a selected option read as the same thing.\nexport default {\n root: {\n background: '{content.background}',\n color: '{text.color}',\n borderColor: '{content.borderColor}',\n borderRadius: '{content.borderRadius}',\n transitionDuration: '{transitionDuration}'\n },\n header: {\n padding: '0.75rem 1rem',\n borderColor: '{content.borderColor}',\n color: '{text.color}'\n },\n headerCell: {\n background: '{content.background}',\n // A sticky header must be opaque, or rows show through it as they scroll under;\n // content backgrounds are translucent in some presets, overlay panels are not.\n stickyBackground: '{overlay.popover.background}',\n hoverBackground: '{content.hoverBackground}',\n color: '{text.mutedColor}',\n hoverColor: '{text.color}',\n sortedColor: '{text.color}',\n borderColor: '{content.borderColor}',\n padding: '0.5rem 0.75rem',\n gap: '0.375rem',\n fontWeight: '600'\n },\n filterCell: {\n padding: '0.375rem 0.75rem'\n },\n // The handle on a column's edge, the shadow the pinned block casts, and the\n // line a dragged column would land on.\n resizer: {\n width: '10px',\n inset: '6px',\n color: '{primary.color}'\n },\n pinned: {\n shadowLeft: '2px 0 4px -2px rgb(0 0 0 / 0.18)',\n shadowRight: '-2px 0 4px -2px rgb(0 0 0 / 0.18)'\n },\n drop: {\n width: '2px',\n color: '{primary.color}'\n },\n chooserButton: {\n padding: '0.25rem 0.625rem',\n fontSize: '0.8125rem'\n },\n // The heading over a run of rows gathered by a field.\n group: {\n background: '{content.hoverBackground}',\n color: '{text.color}',\n iconColor: '{text.mutedColor}',\n padding: '0.5rem 0.75rem',\n fontWeight: '600',\n count: {\n background: '{content.background}',\n color: '{text.mutedColor}'\n }\n },\n row: {\n background: 'transparent',\n hoverBackground: '{list.option.focusBackground}',\n color: '{text.color}',\n selectedBackground: '{list.option.selectedBackground}',\n selectedColor: '{list.option.selectedColor}',\n selectedIndicator: '{list.option.selectedIndicator}',\n stripedBackground: 'color-mix(in srgb, {text.color} 3%, transparent)'\n },\n bodyCell: {\n padding: '0.5rem 0.75rem',\n borderColor: '{content.borderColor}',\n /** A small or large grid scales its type with its padding, like a button. */\n sm: { padding: '0.25rem 0.5rem', fontSize: '{formField.sm.fontSize}' },\n lg: { padding: '0.875rem 1rem', fontSize: '{formField.lg.fontSize}' }\n },\n // Rows held at the top or the bottom while the rest scroll: opaque, as the sticky header is.\n pinnedRow: {\n background: '{overlay.popover.background}',\n color: '{text.color}',\n fontWeight: '600'\n },\n footerCell: {\n color: '{text.color}',\n fontWeight: '600'\n },\n footer: {\n padding: '0.75rem 1rem',\n color: '{text.mutedColor}'\n },\n sortIcon: {\n color: '{text.mutedColor}',\n activeColor: '{primary.color}'\n },\n sortBadge: {\n size: '1rem',\n fontSize: '0.6875rem',\n background: '{primary.color}',\n color: '{primary.contrastColor}'\n },\n checkbox: {\n size: '1.125rem',\n borderRadius: '{borderRadius.sm}',\n background: '{formField.background}',\n borderColor: '{text.mutedColor}',\n hoverBorderColor: '{text.color}',\n checkedBackground: '{primary.color}',\n checkedBorderColor: '{primary.color}',\n checkedColor: '{primary.contrastColor}'\n },\n loadingIcon: {\n size: '2rem',\n color: '{primary.color}'\n },\n colorScheme: {\n light: { loadingMask: { background: 'rgba(255, 255, 255, 0.6)' } },\n dark: { loadingMask: { background: 'rgba(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OAAO;CACX;CACA,aAAa;EACT,OAAO,EAAE,aAAa,EAAE,YAAY,2BAA2B,EAAE;EACjE,MAAM,EAAE,aAAa,EAAE,YAAY,qBAAqB,EAAE;CAC9D;AACJ"}
@@ -800,6 +800,11 @@ export declare const components: {
800
800
  fontSize: string;
801
801
  };
802
802
  };
803
+ pinnedRow: {
804
+ background: string;
805
+ color: string;
806
+ fontWeight: string;
807
+ };
803
808
  footerCell: {
804
809
  color: string;
805
810
  fontWeight: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitral/themes",
3
- "version": "0.2.20",
3
+ "version": "0.2.22",
4
4
  "description": "Design-token engine and presets (Prism, Ink, Avalonia, Simple) for Vitral.",
5
5
  "keywords": [
6
6
  "vitral",
@@ -40,7 +40,7 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@vitral/core": "0.2.20"
43
+ "@vitral/core": "0.2.22"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "vite build && tsc -p tsconfig.build.json && node ../../scripts/build-theme-css.mjs"