@astrato-io/visualizations 0.7.0 → 0.9.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/README.md +1 -25
- package/THIRD_PARTY_NOTICES.md +307 -378
- package/chunks/{Button-BrGKp9Nm.js → Button-5CxPEACP.js} +11 -11
- package/chunks/CircularProgress-DFS-LQb7.js +765 -0
- package/chunks/FieldTypeIcon-pSVQFemC.js +22 -0
- package/chunks/LinearProgress-CjIQfkNA.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-Cb7B7x6z.js} +1384 -1002
- package/chunks/Title-CtFw1bVg.js +1804 -0
- package/chunks/ToggleButton-Br9HCPCv.js +150 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-B9775gLJ.js} +3 -3
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-B7wlH_Ro.js} +4 -4
- package/chunks/{builder-DEDvNq1k.js → builder-Dxo7D7c6.js} +118 -55
- package/chunks/{coloring-CncX_JRX.js → coloring-B-Wa8D5P.js} +3 -3
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-DNpzD9tY.js} +26 -26
- package/chunks/{escobar-DRhRMYRE.js → escobar-C4Nm3eJ7.js} +4436 -4802
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-BVKFtoe-.js} +46 -46
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-BlS3zoy_.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-CGuLpg7u.js} +494 -270
- package/chunks/{handlers-TOT-7INo.js → handlers-CMbyj5y1.js} +1513 -1454
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-DYQgVEKG.js} +8 -8
- package/chunks/{isEqual-B8loyPsC.js → isEqual-DBg_b35N.js} +1 -1
- package/chunks/isFocusVisible-B1_z03UT.js +144 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-Bo9i9qag.js} +7 -7
- package/chunks/{logger-DpQtYQnX.js → logger-3lng-wOw.js} +7 -3
- package/chunks/{metadata-WABZrt7Y.js → metadata-Fmx1swpK.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CdLd5aGW.js} +7 -7
- package/chunks/{operations-Dh4v1Ovt.js → operations-HSqnCRvv.js} +9156 -9112
- package/chunks/{range-Bi-7zT0k.js → range-CzO4isKK.js} +2 -2
- package/chunks/react-dom-BwZT0N3F.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-CAuvgMxi.js} +1 -1
- package/chunks/{requirements-PAoRaJyb.js → requirements-CYpVh65U.js} +330 -302
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/{shared-Bn4N5QcZ.js → shared-DFoJxjVN.js} +401 -401
- package/chunks/{standalone-D__XCp-h.js → standalone-530a5lvf.js} +306 -306
- package/chunks/{standalone-CXNP6-xD.js → standalone-5DnapeHH.js} +112 -112
- package/chunks/{standalone-XTgSsTAa.js → standalone-B4jrf4KE.js} +70 -70
- package/chunks/{standalone-Bes8srx1.js → standalone-B6s_xG2u.js} +14 -14
- package/chunks/{standalone-DVTJwsTY.js → standalone-BDrQMxLi.js} +623 -614
- package/chunks/standalone-BMoJXGYe.js +2 -0
- package/chunks/{standalone-CLmGb7nn2.js → standalone-BfvGggeM2.js} +76 -76
- package/chunks/{standalone-D5Q5ngsD.js → standalone-BvWdpUL3.js} +26 -26
- package/chunks/{standalone-we5D5MIn.js → standalone-C6XDHYAM.js} +31 -31
- package/chunks/standalone-CMJJIi9v.js +2 -0
- package/chunks/{standalone-C8ZAEutO.js → standalone-CNkHsynO.js} +28 -28
- package/chunks/{standalone-BMTCb10X.js → standalone-CPUiiWNP.js} +5 -5
- package/chunks/{standalone-XuGksArp.js → standalone-CXniic5x.js} +9 -9
- package/chunks/standalone-C_Jd4gkj.js +6 -0
- package/chunks/{standalone-DW6NT205.js → standalone-CiaaibTa.js} +142 -142
- package/chunks/standalone-CoQxJ6ov.js +3638 -0
- package/chunks/{standalone-CM5XcAN5.js → standalone-Cu73fzSr.js} +7660 -7534
- package/chunks/standalone-DBeXQrwH.js +468 -0
- package/chunks/{standalone-DMcI1afI.js → standalone-DMCwtebn.js} +81 -81
- package/chunks/{standalone-BlMIwpEe.js → standalone-DWPfdP0A.js} +800 -668
- package/chunks/{standalone-DLlyRIE6.js → standalone-DpSRmAWx.js} +59 -59
- package/chunks/{standalone-BGkmozIb.js → standalone-DuwTOBXH.js} +256 -256
- package/chunks/{standalone-BDhPQtzQ.js → standalone-LFVgLhia.js} +234 -234
- package/chunks/{standalone-B55oyW6c.js → standalone-kzAhwH19.js} +149 -149
- package/chunks/{standalone-DN4S1MjT.js → standalone-mb7LwEiq.js} +885 -885
- package/chunks/{standalone-CJvIXsQE.js → standalone-r4ObFvys.js} +155 -155
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-C1qjqXaT.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-mWrD_uk_.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-DYYD4Zzf.js} +7593 -12707
- package/chunks/{view-BuwQugKb.js → view-7fH6mGmY.js} +2034 -2070
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-mVnsnvLP.js} +3581 -3555
- package/chunks/with-html-element-B0Clt4jY.js +15901 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +1 -1
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +2 -2
- package/docs/operations/line.md +1 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +1 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +66 -1
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +1191 -3
- package/metadata.js +15 -16
- package/operations.js +5 -5
- package/package.json +67 -102
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +348 -348
- package/src/definitions/model/definitions/schema-registry.d.ts +101 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +8 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +29 -29
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
- package/src/getters/index.d.ts +3 -3
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +3 -3
- package/src/runtime/index.d.ts +2 -2
- package/src/types.d.ts +4 -8
- package/src/visualization-catalog.d.ts +26 -26
- package/src/web-components/index.d.ts +3 -3
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
- package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
- package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
- package/chunks/Title-CO5dP1ma.js +0 -1691
- package/chunks/ToggleButton-KOBAimC1.js +0 -112
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/registry-KervaxqJ.js +0 -31
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-DT0wKji7.js +0 -6
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/web-components-DqClFkgO.js +0 -1185
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
- package/render.js +0 -10
- package/src/charts/bar.d.ts +0 -1
- package/src/charts/combo.d.ts +0 -1
- package/src/charts/dot.d.ts +0 -1
- package/src/charts/gauge-distribution.d.ts +0 -1
- package/src/charts/gauge.d.ts +0 -1
- package/src/charts/heat-map.d.ts +0 -1
- package/src/charts/histogram.d.ts +0 -1
- package/src/charts/line.d.ts +0 -1
- package/src/charts/pie.d.ts +0 -1
- package/src/charts/radar.d.ts +0 -1
- package/src/charts/sankey.d.ts +0 -1
- package/src/charts/scatter.d.ts +0 -1
- package/src/charts/table.d.ts +0 -1
- package/src/charts/tree.d.ts +0 -1
- package/src/charts/treemap.d.ts +0 -1
- package/src/charts/waterfall.d.ts +0 -1
- package/src/charts/word-cloud.d.ts +0 -1
- package/src/objects/app-filter-bar.d.ts +0 -1
- package/src/objects/date-picker.d.ts +0 -1
- package/src/objects/filter.d.ts +0 -1
- package/src/objects/iframe.d.ts +0 -1
- package/src/objects/image.d.ts +0 -1
- package/src/objects/number.d.ts +0 -1
- package/src/objects/shape.d.ts +0 -1
- package/src/objects/slider.d.ts +0 -1
- package/src/objects/text.d.ts +0 -1
- package/src/registry/create-visualization-registry.d.ts +0 -5
- package/src/render/index.d.ts +0 -34
- /package/chunks/{src-BOS6SqkZ.js → src-BOS6SqkZ2.js} +0 -0
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Bt as t, Ei as n, Vt as r, it as i, ln as a, ri as o, un as s } from "./utils-vdmi_2PK.js";
|
|
3
|
-
import { $t as c } from "./escobar-DRhRMYRE.js";
|
|
4
|
-
import { c as l, d as u, l as d, n as f, r as p, t as m, u as h } from "./DefaultPropsProvider-BsfB7QTn.js";
|
|
5
|
-
import { t as g } from "./colorManipulator-D8Pjy1pf.js";
|
|
6
|
-
var _ = /* @__PURE__ */ e(n());
|
|
7
|
-
s(), r();
|
|
8
|
-
function v(e) {
|
|
9
|
-
return h("MuiToggleButton", e);
|
|
10
|
-
}
|
|
11
|
-
var y = d("MuiToggleButton", [
|
|
12
|
-
"root",
|
|
13
|
-
"disabled",
|
|
14
|
-
"selected",
|
|
15
|
-
"standard",
|
|
16
|
-
"primary",
|
|
17
|
-
"secondary",
|
|
18
|
-
"sizeSmall",
|
|
19
|
-
"sizeMedium",
|
|
20
|
-
"sizeLarge",
|
|
21
|
-
"fullWidth"
|
|
22
|
-
]), b = /*#__PURE__*/ _.createContext({}), x = /*#__PURE__*/ _.createContext(void 0);
|
|
23
|
-
function S(e, t) {
|
|
24
|
-
return t === void 0 || e === void 0 ? !1 : Array.isArray(t) ? t.indexOf(e) >= 0 : e === t;
|
|
25
|
-
}
|
|
26
|
-
var C = o(), w = ["value"], T = [
|
|
27
|
-
"children",
|
|
28
|
-
"className",
|
|
29
|
-
"color",
|
|
30
|
-
"disabled",
|
|
31
|
-
"disableFocusRipple",
|
|
32
|
-
"fullWidth",
|
|
33
|
-
"onChange",
|
|
34
|
-
"onClick",
|
|
35
|
-
"selected",
|
|
36
|
-
"size",
|
|
37
|
-
"value"
|
|
38
|
-
], E = (e) => {
|
|
39
|
-
let { classes: t, fullWidth: n, selected: r, disabled: i, size: a, color: o } = e;
|
|
40
|
-
return l({ root: [
|
|
41
|
-
"root",
|
|
42
|
-
r && "selected",
|
|
43
|
-
i && "disabled",
|
|
44
|
-
n && "fullWidth",
|
|
45
|
-
`size${f(a)}`,
|
|
46
|
-
o
|
|
47
|
-
] }, v, t);
|
|
48
|
-
}, D = p(c, {
|
|
49
|
-
name: "MuiToggleButton",
|
|
50
|
-
slot: "Root",
|
|
51
|
-
overridesResolver: (e, t) => {
|
|
52
|
-
let { ownerState: n } = e;
|
|
53
|
-
return [t.root, t[`size${f(n.size)}`]];
|
|
54
|
-
}
|
|
55
|
-
})(({ theme: e, ownerState: t }) => {
|
|
56
|
-
let n = t.color === "standard" ? e.palette.text.primary : e.palette[t.color].main, r;
|
|
57
|
-
return e.vars && (n = t.color === "standard" ? e.vars.palette.text.primary : e.vars.palette[t.color].main, r = t.color === "standard" ? e.vars.palette.text.primaryChannel : e.vars.palette[t.color].mainChannel), a({}, e.typography.button, {
|
|
58
|
-
borderRadius: (e.vars || e).shape.borderRadius,
|
|
59
|
-
padding: 11,
|
|
60
|
-
border: `1px solid ${(e.vars || e).palette.divider}`,
|
|
61
|
-
color: (e.vars || e).palette.action.active
|
|
62
|
-
}, t.fullWidth && { width: "100%" }, {
|
|
63
|
-
[`&.${y.disabled}`]: {
|
|
64
|
-
color: (e.vars || e).palette.action.disabled,
|
|
65
|
-
border: `1px solid ${(e.vars || e).palette.action.disabledBackground}`
|
|
66
|
-
},
|
|
67
|
-
"&:hover": {
|
|
68
|
-
textDecoration: "none",
|
|
69
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})` : g(e.palette.text.primary, e.palette.action.hoverOpacity),
|
|
70
|
-
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
71
|
-
},
|
|
72
|
-
[`&.${y.selected}`]: {
|
|
73
|
-
color: n,
|
|
74
|
-
backgroundColor: e.vars ? `rgba(${r} / ${e.vars.palette.action.selectedOpacity})` : g(n, e.palette.action.selectedOpacity),
|
|
75
|
-
"&:hover": {
|
|
76
|
-
backgroundColor: e.vars ? `rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : g(n, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
77
|
-
"@media (hover: none)": { backgroundColor: e.vars ? `rgba(${r} / ${e.vars.palette.action.selectedOpacity})` : g(n, e.palette.action.selectedOpacity) }
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}, t.size === "small" && {
|
|
81
|
-
padding: 7,
|
|
82
|
-
fontSize: e.typography.pxToRem(13)
|
|
83
|
-
}, t.size === "large" && {
|
|
84
|
-
padding: 15,
|
|
85
|
-
fontSize: e.typography.pxToRem(15)
|
|
86
|
-
});
|
|
87
|
-
}), O = /*#__PURE__*/ _.forwardRef(function(e, n) {
|
|
88
|
-
let r = _.useContext(b), { value: o } = r, s = t(r, w), c = _.useContext(x), l = m({
|
|
89
|
-
props: i(a({}, s, { selected: S(e.value, o) }), e),
|
|
90
|
-
name: "MuiToggleButton"
|
|
91
|
-
}), { children: d, className: f, color: p = "standard", disabled: h = !1, disableFocusRipple: g = !1, fullWidth: v = !1, onChange: y, onClick: O, selected: k, size: A = "medium", value: j } = l, M = t(l, T), N = a({}, l, {
|
|
92
|
-
color: p,
|
|
93
|
-
disabled: h,
|
|
94
|
-
disableFocusRipple: g,
|
|
95
|
-
fullWidth: v,
|
|
96
|
-
size: A
|
|
97
|
-
}), P = E(N), F = (e) => {
|
|
98
|
-
O && (O(e, j), e.defaultPrevented) || y && y(e, j);
|
|
99
|
-
}, I = c || "";
|
|
100
|
-
return /*#__PURE__*/ (0, C.jsx)(D, a({
|
|
101
|
-
className: u(s.className, P.root, f, I),
|
|
102
|
-
disabled: h,
|
|
103
|
-
focusRipple: !g,
|
|
104
|
-
ref: n,
|
|
105
|
-
onClick: F,
|
|
106
|
-
onChange: y,
|
|
107
|
-
value: j,
|
|
108
|
-
ownerState: N,
|
|
109
|
-
"aria-pressed": k
|
|
110
|
-
}, M, { children: d }));
|
|
111
|
-
});
|
|
112
|
-
export { y as i, x as n, b as r, O as t };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Ut as e, Wt as t, et as n, tt as r } from "./utils-vdmi_2PK.js";
|
|
2
|
-
e(), n();
|
|
3
|
-
function i(e, t = 0, n = 1) {
|
|
4
|
-
return r(e, t, n);
|
|
5
|
-
}
|
|
6
|
-
function a(e) {
|
|
7
|
-
e = e.slice(1);
|
|
8
|
-
let t = RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g"), n = e.match(t);
|
|
9
|
-
return n && n[0].length === 1 && (n = n.map((e) => e + e)), n ? `rgb${n.length === 4 ? "a" : ""}(${n.map((e, t) => t < 3 ? parseInt(e, 16) : Math.round(parseInt(e, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
10
|
-
}
|
|
11
|
-
function o(e) {
|
|
12
|
-
if (e.type) return e;
|
|
13
|
-
if (e.charAt(0) === "#") return o(a(e));
|
|
14
|
-
let n = e.indexOf("("), r = e.substring(0, n);
|
|
15
|
-
if ([
|
|
16
|
-
"rgb",
|
|
17
|
-
"rgba",
|
|
18
|
-
"hsl",
|
|
19
|
-
"hsla",
|
|
20
|
-
"color"
|
|
21
|
-
].indexOf(r) === -1) throw Error(t(9, e));
|
|
22
|
-
let i = e.substring(n + 1, e.length - 1), s;
|
|
23
|
-
if (r === "color") {
|
|
24
|
-
if (i = i.split(" "), s = i.shift(), i.length === 4 && i[3].charAt(0) === "/" && (i[3] = i[3].slice(1)), [
|
|
25
|
-
"srgb",
|
|
26
|
-
"display-p3",
|
|
27
|
-
"a98-rgb",
|
|
28
|
-
"prophoto-rgb",
|
|
29
|
-
"rec-2020"
|
|
30
|
-
].indexOf(s) === -1) throw Error(t(10, s));
|
|
31
|
-
} else i = i.split(",");
|
|
32
|
-
return i = i.map((e) => parseFloat(e)), {
|
|
33
|
-
type: r,
|
|
34
|
-
values: i,
|
|
35
|
-
colorSpace: s
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function s(e) {
|
|
39
|
-
let { type: t, colorSpace: n } = e, { values: r } = e;
|
|
40
|
-
return t.indexOf("rgb") === -1 ? t.indexOf("hsl") !== -1 && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`) : r = r.map((e, t) => t < 3 ? parseInt(e, 10) : e), r = t.indexOf("color") === -1 ? `${r.join(", ")}` : `${n} ${r.join(" ")}`, `${t}(${r})`;
|
|
41
|
-
}
|
|
42
|
-
function c(e, t) {
|
|
43
|
-
return e = o(e), t = i(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, s(e);
|
|
44
|
-
}
|
|
45
|
-
export { c as t };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./lookup-BWllin0q.js";
|
|
2
|
-
import { C as t, D as n, E as r, S as i, T as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, u as S, v as C, w, x as T, y as E } from "./requirements-PAoRaJyb.js";
|
|
3
|
-
var D = {
|
|
4
|
-
"astrato-app-filter-bar": r,
|
|
5
|
-
bar: n,
|
|
6
|
-
combo: a,
|
|
7
|
-
"distribution-gauge": t,
|
|
8
|
-
dot: w,
|
|
9
|
-
gauge: i,
|
|
10
|
-
heatMap: T,
|
|
11
|
-
histogram: c,
|
|
12
|
-
line: E,
|
|
13
|
-
pie: C,
|
|
14
|
-
radar: o,
|
|
15
|
-
sankey: f,
|
|
16
|
-
scatter: p,
|
|
17
|
-
table: g,
|
|
18
|
-
tree: y,
|
|
19
|
-
treemap: d,
|
|
20
|
-
waterfall: u,
|
|
21
|
-
"word-cloud": S,
|
|
22
|
-
"date-picker": h,
|
|
23
|
-
filter: l,
|
|
24
|
-
iframe: x,
|
|
25
|
-
image: v,
|
|
26
|
-
number: s,
|
|
27
|
-
shape: m,
|
|
28
|
-
simpleTextObject: _,
|
|
29
|
-
slider: b
|
|
30
|
-
}, O = D, k = (e = D) => Object.values(e), A = (t, n = D) => e(t, n), j = (e, t = D) => A(e, t).createDefaultVSpec();
|
|
31
|
-
export { D as a, O as i, A as n, k as r, j as t };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
var e = {
|
|
2
|
-
lg: 1,
|
|
3
|
-
md: .9,
|
|
4
|
-
sm: .7,
|
|
5
|
-
xs: .6
|
|
6
|
-
}, t = {
|
|
7
|
-
lg: 1200,
|
|
8
|
-
md: 1e3,
|
|
9
|
-
sm: 800,
|
|
10
|
-
xs: 600
|
|
11
|
-
}, n = (e, n) => e <= t.xs || n <= t.xs, r = (e, n) => e <= t.sm || n <= t.sm, i = (e, n) => e <= t.md || n <= t.md;
|
|
12
|
-
function a(n, r) {
|
|
13
|
-
return n <= t.xs || r <= t.xs ? e.xs : n <= t.sm || r <= t.sm ? e.sm : n <= t.md || r <= t.md ? e.md : 1;
|
|
14
|
-
}
|
|
15
|
-
function o(e, n) {
|
|
16
|
-
return e <= t.xs || n <= t.xs ? "xs" : e <= t.sm || n <= t.sm ? "sm" : e <= t.md || n <= t.md ? "md" : "lg";
|
|
17
|
-
}
|
|
18
|
-
var s = {
|
|
19
|
-
lg: `@media (max-width:${t.lg}px), (max-height: ${t.lg}px)`,
|
|
20
|
-
md: `@media (max-width:${t.md}px), (max-height: ${t.md}px)`,
|
|
21
|
-
sm: `@media (max-width:${t.sm}px), (max-height: ${t.sm}px)`,
|
|
22
|
-
xs: `@media (max-width:${t.xs}px), (max-height: ${t.xs}px)`
|
|
23
|
-
};
|
|
24
|
-
function c(t) {
|
|
25
|
-
return {
|
|
26
|
-
fontSize: "1em",
|
|
27
|
-
...t && {
|
|
28
|
-
[s.md]: { fontSize: `min(${e.md}em, 14px)` },
|
|
29
|
-
[s.sm]: { fontSize: `min(${e.sm}em, 12px)` },
|
|
30
|
-
[s.xs]: {
|
|
31
|
-
fontSize: `min(${e.xs}em, 10px)`,
|
|
32
|
-
fontWeight: "normal !important"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
var l = { svg: {
|
|
38
|
-
[s.lg]: {
|
|
39
|
-
maxWidth: 20,
|
|
40
|
-
maxHeight: 20
|
|
41
|
-
},
|
|
42
|
-
[s.md]: {
|
|
43
|
-
maxWidth: 16,
|
|
44
|
-
maxHeight: 16
|
|
45
|
-
},
|
|
46
|
-
[s.sm]: {
|
|
47
|
-
maxWidth: 12,
|
|
48
|
-
maxHeight: 12
|
|
49
|
-
},
|
|
50
|
-
[s.xs]: {
|
|
51
|
-
maxWidth: 8,
|
|
52
|
-
maxHeight: 8
|
|
53
|
-
}
|
|
54
|
-
} };
|
|
55
|
-
function u(t, n, r) {
|
|
56
|
-
switch (o(n, r)) {
|
|
57
|
-
case "lg": return t;
|
|
58
|
-
case "md": return Math.min(t * e.md, 16);
|
|
59
|
-
case "sm": return Math.min(t * e.sm, 14);
|
|
60
|
-
case "xs": return Math.min(t * e.xs, 12);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function d(t, n, r) {
|
|
64
|
-
switch (o(n, r)) {
|
|
65
|
-
case "lg": return Math.min(t * e.lg, 20);
|
|
66
|
-
case "md": return Math.min(t * e.md, 16);
|
|
67
|
-
case "sm": return Math.min(t * e.sm, 12);
|
|
68
|
-
case "xs": return Math.min(t * e.xs, 8);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function f(t, n) {
|
|
72
|
-
return {
|
|
73
|
-
height: t,
|
|
74
|
-
...n && {
|
|
75
|
-
[s.lg]: { height: t * e.lg },
|
|
76
|
-
[s.md]: { height: t * e.md },
|
|
77
|
-
[s.sm]: { height: t * e.sm },
|
|
78
|
-
[s.xs]: { height: t * e.xs }
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
export { d as a, n as c, l as d, s as f, f as i, e as l, a as n, i as o, u as r, r as s, o as t, c as u };
|