@tabler/charts-bootstrap 0.3.0 → 0.4.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/dist/tabler.css CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! @tabler/charts-bootstrap, Tabler preset | MIT */
2
- :where(:root,[data-bs-theme],[data-bs-theme-primary],[data-bs-theme-base],[data-bs-theme-font],[data-bs-theme-radius]){--tc-color-1:var(--tblr-primary,#066fd1);--tc-focus-color:var(--tblr-primary,#066fd1);--tc-surface:var(--tblr-bg-surface,#fff);--tc-text-color:var(--tblr-body-color,#0b0b0b);--tc-text-muted:var(--tblr-secondary,#6f6e69);--tc-grid-color:var(--tblr-border-color-translucent,#e1e0d9);--tc-baseline-color:var(--tblr-border-color,#c3c2b7);--tc-hover-color:rgba(var(--tblr-emphasis-color-rgb,11, 11, 11), .05);--tc-tooltip-bg:var(--tblr-tooltip-bg,#0b0b0b);--tc-tooltip-color:var(--tblr-tooltip-color,#fff);--tc-tooltip-muted:rgba(var(--tblr-body-bg-rgb,255, 255, 255), .7);--tc-tooltip-border:rgba(var(--tblr-body-bg-rgb,255, 255, 255), .12);--tc-tooltip-shadow:var(--tblr-box-shadow,0 4px 16px #0b0b0b1f);--tc-tooltip-radius:var(--tblr-border-radius,6px);--tc-font-family:var(--tblr-body-font-family,inherit)}
2
+ :where(:root,[data-bs-theme],[data-bs-theme-primary],[data-bs-theme-base],[data-bs-theme-font],[data-bs-theme-radius]){--tc-color-1:var(--tblr-chart-1,var(--tblr-primary,#066fd1));--tc-focus-color:var(--tblr-chart-1,var(--tblr-primary,#066fd1));--tc-surface:var(--tblr-bg-surface,#fff);--tc-text-color:var(--tblr-body-color,#0b0b0b);--tc-text-muted:var(--tblr-secondary,#6f6e69);--tc-grid-color:var(--tblr-border-color-translucent,#e1e0d9);--tc-baseline-color:var(--tblr-border-color,#c3c2b7);--tc-hover-color:rgba(var(--tblr-emphasis-color-rgb,11, 11, 11), .05);--tc-tooltip-bg:var(--tblr-tooltip-bg,#0b0b0b);--tc-tooltip-color:var(--tblr-tooltip-color,#fff);--tc-tooltip-muted:rgba(var(--tblr-body-bg-rgb,255, 255, 255), .7);--tc-tooltip-border:rgba(var(--tblr-body-bg-rgb,255, 255, 255), .12);--tc-tooltip-shadow:var(--tblr-box-shadow,0 4px 16px #0b0b0b1f);--tc-tooltip-radius:var(--tblr-border-radius,6px);--tc-font-family:var(--tblr-body-font-family,inherit)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tabler/charts-bootstrap",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Bootstrap 5.3 and Tabler theme mapping (CSS and SCSS) and a data API for @tabler/charts.",
5
5
  "keywords": [
6
6
  "charts",
@@ -49,7 +49,7 @@
49
49
  "scss"
50
50
  ],
51
51
  "peerDependencies": {
52
- "@tabler/charts": "^0.3.0",
52
+ "@tabler/charts": "^0.4.0",
53
53
  "bootstrap": ">=5.3"
54
54
  },
55
55
  "peerDependenciesMeta": {
@@ -58,7 +58,7 @@
58
58
  }
59
59
  },
60
60
  "devDependencies": {
61
- "@tabler/charts": "^0.3.0",
61
+ "@tabler/charts": "^0.4.0",
62
62
  "sass": "^1.108.2"
63
63
  },
64
64
  "publishConfig": {
package/scss/_tabler.scss CHANGED
@@ -7,8 +7,9 @@
7
7
  // as fallbacks), so on a Tabler page this preset only adds the theme-option
8
8
  // scopes: the mapping is declared again on every element that carries a
9
9
  // data-bs-theme-* attribute, so a subtree with its own primary color or
10
- // radius gets it. Series 2–8 are left to the chart stylesheet, which uses
11
- // Tabler's named colors. Load it after `@tabler/charts/style.css`; the plain
10
+ // radius gets it. Series 1 is the first color of Tabler's chart palette
11
+ // (--tblr-chart-1, the primary color unless the app overrides it); series 2–8
12
+ // are left to the chart stylesheet, which reads the rest of that palette. Load it after `@tabler/charts/style.css`; the plain
12
13
  // CSS build is `@tabler/charts-bootstrap/tabler.css`.
13
14
  //
14
15
  // @use "@tabler/charts-bootstrap/scss/tabler";
@@ -18,7 +19,7 @@
18
19
  $tc-prefix: "tblr-" !default,
19
20
  $tc-theme-attribute: "data-bs-theme" !default,
20
21
  $tc-theme-scopes: ":root, [data-bs-theme], [data-bs-theme-primary], [data-bs-theme-base], [data-bs-theme-font], [data-bs-theme-radius]" !default,
21
- $tc-series-1: var(--tblr-primary, #066fd1) !default,
22
+ $tc-series-1: var(--tblr-chart-1, var(--tblr-primary, #066fd1)) !default,
22
23
  $tc-surface: var(--tblr-bg-surface, #fff) !default,
23
24
  $tc-tooltip-bg: var(--tblr-tooltip-bg, #0b0b0b) !default,
24
25
  $tc-tooltip-color: var(--tblr-tooltip-color, #fff) !default,