@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 +28 -1
- package/dist/{ChartCard-B_BAibdy.js → ChartCard-DmNmLI8u.js} +24 -23
- package/dist/{ChartCard-B_BAibdy.js.map → ChartCard-DmNmLI8u.js.map} +1 -1
- package/dist/DonutChartPro.js +1 -1
- package/dist/DonutLabelChartPro.js +1 -1
- package/dist/PieChartPro.js +1 -1
- package/dist/embeddable-components.json +2 -2
- package/dist/embeddable-theme-2b917.js +1 -0
- package/dist/{index-fEYtrrwd.js → index-B1ql-3g7.js} +2 -2
- package/dist/{index-fEYtrrwd.js.map → index-B1ql-3g7.js.map} +1 -1
- package/dist/{index-CeCU5BdY.js → index-DqVAuVBE.js} +2 -2
- package/dist/{index-CeCU5BdY.js.map → index-DqVAuVBE.js.map} +1 -1
- package/dist/{index-BDe-Elcv.js → index-iZ4ZiouG.js} +2 -2
- package/dist/{index-BDe-Elcv.js.map → index-iZ4ZiouG.js.map} +1 -1
- package/dist/index.js +4 -4
- package/dist/remarkable-pro/components/charts/pies/pies.utils.d.ts.map +1 -1
- package/dist/remarkable-pro/theme/styles/styles.utils.d.ts +1 -1
- package/dist/remarkable-pro/theme/styles/styles.utils.d.ts.map +1 -1
- package/dist/remarkable-pro/theme/theme.constants.d.ts.map +1 -1
- package/dist/remarkable-pro/theme/theme.types.d.ts +1 -0
- package/dist/remarkable-pro/theme/theme.types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1 +1,28 @@
|
|
|
1
|
-
#
|
|
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
|
|
17169
|
-
Ft.has(
|
|
17170
|
-
const a = Ft.get(
|
|
17171
|
-
if (a.has(
|
|
17172
|
-
const s =
|
|
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(
|
|
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 =
|
|
17198
|
-
(
|
|
17199
|
-
`${
|
|
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
|
-
|
|
17202
|
-
"chartBackgroundColors"
|
|
17203
|
+
o
|
|
17203
17204
|
)
|
|
17204
|
-
),
|
|
17205
|
-
(
|
|
17206
|
-
`${
|
|
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
|
-
|
|
17209
|
-
"chartBorderColors"
|
|
17210
|
+
o
|
|
17210
17211
|
)
|
|
17211
17212
|
);
|
|
17212
17213
|
return {
|
|
17213
|
-
labels: n.map((
|
|
17214
|
-
const
|
|
17215
|
-
return
|
|
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((
|
|
17220
|
-
backgroundColor:
|
|
17221
|
-
borderColor:
|
|
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-
|
|
17342
|
+
//# sourceMappingURL=ChartCard-DmNmLI8u.js.map
|