@embeddable.com/remarkable-ui 0.0.12 → 0.0.13

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 CHANGED
@@ -1 +1,28 @@
1
- # remarkable-ui
1
+ # Remarkable UI
2
+
3
+ **Remarkable UI** is an open-source library of **beautiful components** for analytics – charts, controls, tables, and more – designed to be styled with **granular CSS variables**.
4
+
5
+ 👉 Remarkable UI forms part of the [Embeddable](https://embeddable.com) ecosystem but can also be used independently.
6
+
7
+ ## 🎨 Styling with CSS Variables
8
+
9
+ Every part of a Remarkable UI component can be styled with granular CSS variables.
10
+
11
+ There are **three layers** of variables in our system:
12
+
13
+ 1. **Base variables**
14
+ – Raw CSS primitives (colors, spacing, type scales)
15
+ – *Don’t override*—they’re the foundation.
16
+
17
+ 2. **Semantic variables**
18
+ – “Meaningful” tokens built from base vars (e.g. --background-default, --foreground-error, --font-default)
19
+ – Control *global* look-and-feel: light vs. dark palettes, brand colors, default text styles.
20
+
21
+ 3. **Component variables**
22
+ – Element-specific tokens (namespaced by component, e.g. --icn-btn-background-hover, --dropdown-padding)
23
+ – Fine-tune individual components without touching global semantics.
24
+
25
+ ## 🛠 Contributing
26
+
27
+ Remarkable UI is under active development, and we’d love feedback or contributions.
28
+ Feel free to open issues or suggest improvements.
@@ -17145,6 +17145,7 @@ const fi = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
17145
17145
  options: js
17146
17146
  }
17147
17147
  }, j0 = {
17148
+ id: "remarkableTheme",
17148
17149
  i18n: Jd,
17149
17150
  charts: qd,
17150
17151
  editors: Zd,
@@ -17165,14 +17166,14 @@ const fi = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
17165
17166
  }
17166
17167
  };
17167
17168
  em();
17168
- const li = (e, t, r, n = "global") => {
17169
- Ft.has(n) || (Ft.set(n, /* @__PURE__ */ new Map()), Hn.set(n, /* @__PURE__ */ new Set()));
17170
- const a = Ft.get(n), i = Hn.get(n);
17171
- if (a.has(e)) return a.get(e);
17172
- const s = t.find((o) => !i.has(o)) ?? t[r % t.length];
17169
+ const li = (e, t, r, n) => {
17170
+ Ft.has(e) || (Ft.set(e, /* @__PURE__ */ new Map()), Hn.set(e, /* @__PURE__ */ new Set()));
17171
+ const a = Ft.get(e), i = Hn.get(e);
17172
+ if (a.has(t)) return a.get(t);
17173
+ const s = r.find((o) => !i.has(o)) ?? r[n % r.length];
17173
17174
  if (typeof s != "string")
17174
17175
  throw new Error("No valid color found in palette");
17175
- return a.set(e, s), i.add(s), Qd(), s;
17176
+ return a.set(t, s), i.add(s), Qd(), s;
17176
17177
  }, rm = "_skeleton_12e7h_10", tm = {
17177
17178
  skeleton: rm
17178
17179
  }, nm = () => /* @__PURE__ */ ze.jsx("div", { className: tm.skeleton });
@@ -17194,31 +17195,31 @@ const am = [["path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-
17194
17195
  e.dimension,
17195
17196
  e.measure,
17196
17197
  e.maxLegendItems
17197
- ), a = JSON.stringify(t), i = n.map(
17198
- (o, l) => li(
17199
- `${a}.${e.dimension.name}.${o[e.dimension.name]}.backgroundColor`,
17198
+ ), a = n.map(
17199
+ (s, o) => li(
17200
+ `${t.id}.charts.backgroundColors`,
17201
+ `${e.dimension.name}.${s[e.dimension.name]}`,
17200
17202
  t.charts.backgroundColors ?? _a,
17201
- l,
17202
- "chartBackgroundColors"
17203
+ o
17203
17204
  )
17204
- ), s = n.map(
17205
- (o, l) => li(
17206
- `${a}.${e.dimension.name}.${o[e.dimension.name]}.borderColor`,
17205
+ ), i = n.map(
17206
+ (s, o) => li(
17207
+ `${t.id}.charts.borderColors`,
17208
+ `${e.dimension.name}.${s[e.dimension.name]}`,
17207
17209
  t.charts.borderColors ?? _a,
17208
- l,
17209
- "chartBorderColors"
17210
+ o
17210
17211
  )
17211
17212
  );
17212
17213
  return {
17213
- labels: n.map((o) => {
17214
- const l = o[e.dimension.name], f = r.data(e.dimension, l);
17215
- return l === f ? Pr.t(l) : f;
17214
+ labels: n.map((s) => {
17215
+ const o = s[e.dimension.name], l = r.data(e.dimension, o);
17216
+ return o === l ? Pr.t(o) : l;
17216
17217
  }),
17217
17218
  datasets: [
17218
17219
  {
17219
- data: n.map((o) => o[e.measure.name]),
17220
- backgroundColor: i,
17221
- borderColor: s
17220
+ data: n.map((s) => s[e.measure.name]),
17221
+ backgroundColor: a,
17222
+ borderColor: i
17222
17223
  }
17223
17224
  ]
17224
17225
  };
@@ -17338,4 +17339,4 @@ export {
17338
17339
  j0 as r,
17339
17340
  Xs as s
17340
17341
  };
17341
- //# sourceMappingURL=ChartCard-B_BAibdy.js.map
17342
+ //# sourceMappingURL=ChartCard-DmNmLI8u.js.map