layerchart 2.0.0 → 2.0.1

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.
@@ -77,7 +77,7 @@
77
77
  {/if}
78
78
 
79
79
  <style>
80
- @layer component {
80
+ @layer components {
81
81
  :global(:where(.lc-debug-frame)) {
82
82
  --fill-color: color-mix(in oklab, var(--color-danger) 10%, transparent);
83
83
  }
@@ -492,7 +492,7 @@
492
492
  {/if}
493
493
 
494
494
  <style>
495
- @layer component {
495
+ @layer components {
496
496
  :where(.lc-tooltip-root) {
497
497
  position: absolute;
498
498
  z-index: 50;
@@ -818,7 +818,7 @@
818
818
  </div>
819
819
 
820
820
  <style>
821
- @layer component {
821
+ @layer components {
822
822
  :where(.lc-tooltip-context-container) {
823
823
  position: absolute;
824
824
  }
@@ -108,7 +108,7 @@
108
108
  </div>
109
109
 
110
110
  <style>
111
- @layer component {
111
+ @layer components {
112
112
  :where(.lc-tooltip-header) {
113
113
  font-weight: 600;
114
114
  white-space: nowrap;
@@ -168,7 +168,7 @@
168
168
  </div>
169
169
 
170
170
  <style>
171
- @layer component {
171
+ @layer components {
172
172
  :where(.lc-tooltip-item-root) {
173
173
  display: contents;
174
174
  }
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
 
25
25
  <style>
26
- @layer component {
26
+ @layer components {
27
27
  :where(.lc-tooltip-list) {
28
28
  display: grid;
29
29
  grid-template-columns: 1fr auto;
@@ -22,7 +22,7 @@
22
22
  </div>
23
23
 
24
24
  <style>
25
- @layer component {
25
+ @layer components {
26
26
  :where(.lc-tooltip-separator) {
27
27
  height: 1px;
28
28
  border-radius: 4px;
@@ -0,0 +1,17 @@
1
+ /*
2
+ LayerChart core styles.
3
+
4
+ Declares the cascade layer order LayerChart's component styles rely on.
5
+ Precedence is determined by the order in which each layer name is *first*
6
+ declared (later layers win), so this must be established up front — otherwise
7
+ the order falls to whatever sequence the bundler emits component styles in,
8
+ which can differ between dev and production builds (e.g. `base` incorrectly
9
+ overriding `components` only in production).
10
+
11
+ When using Tailwind this is redundant (Tailwind emits the same order via
12
+ `@import 'tailwindcss'`) but harmless — re-declaring an existing order is a
13
+ no-op. Non-Tailwind consumers should import this file (`layerchart/core.css`)
14
+ before using LayerChart. The framework presets (shadcn-svelte, skeleton,
15
+ daisyui) import it for you.
16
+ */
17
+ @layer theme, base, components, utilities;
@@ -1,3 +1,5 @@
1
+ @import './core.css';
2
+
1
3
  .lc-root-container {
2
4
  --color-surface-100: var(--color-base-100);
3
5
  --color-surface-200: var(--color-base-200);
@@ -1,3 +1,5 @@
1
+ @import './core.css';
2
+
1
3
  /*
2
4
  When NOT using shadcn-svelte Chart component.
3
5
  Not typically needed even when using built-in Chart, as defaults typically are sufficient
@@ -1,3 +1,5 @@
1
+ @import './core.css';
2
+
1
3
  .lc-root-container {
2
4
  --color-primary: var(--color-primary-500);
3
5
 
@@ -1,3 +1,5 @@
1
+ @import './core.css';
2
+
1
3
  .lc-root-container {
2
4
  --color-primary: var(--color-primary-500);
3
5
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "license": "MIT",
6
6
  "repository": "techniq/layerchart",
7
7
  "homepage": "https://layerchart.com",
8
- "version": "2.0.0",
8
+ "version": "2.0.1",
9
9
  "devDependencies": {
10
10
  "@changesets/cli": "^2.31.0",
11
11
  "@napi-rs/canvas": "^0.1.97",