@likec4/styles 1.47.0 → 1.49.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/LICENSE +1 -1
- package/css/package.json +1 -1
- package/dev.d.mts +3 -0
- package/{dev.ts → dev.mjs} +8 -4
- package/dist/css/conditions.mjs +1 -1
- package/dist/css/{css.d.ts → css.d.mts} +1 -1
- package/dist/css/{cva.d.ts → cva.d.mts} +2 -2
- package/dist/css/index.d.mts +5 -0
- package/dist/css/sva.d.mts +4 -0
- package/dist/jsx/{aspect-ratio.d.ts → aspect-ratio.d.mts} +3 -3
- package/dist/jsx/bleed.d.mts +10 -0
- package/dist/jsx/box.d.mts +10 -0
- package/dist/jsx/center.d.mts +10 -0
- package/dist/jsx/circle.d.mts +10 -0
- package/dist/jsx/{container.d.ts → container.d.mts} +3 -3
- package/dist/jsx/cq.d.mts +10 -0
- package/dist/jsx/{create-style-context.d.ts → create-style-context.d.mts} +3 -3
- package/dist/jsx/divider.d.mts +10 -0
- package/dist/jsx/factory.d.mts +3 -0
- package/dist/jsx/flex.d.mts +10 -0
- package/dist/jsx/float.d.mts +10 -0
- package/dist/jsx/grid-item.d.mts +10 -0
- package/dist/jsx/grid.d.mts +10 -0
- package/dist/jsx/hstack.d.mts +10 -0
- package/dist/jsx/index.d.mts +26 -0
- package/dist/jsx/index.mjs +2 -1
- package/dist/jsx/is-valid-prop.mjs +1 -1
- package/dist/jsx/{link-overlay.d.ts → link-overlay.d.mts} +3 -3
- package/dist/jsx/spacer.d.mts +10 -0
- package/dist/jsx/square.d.mts +10 -0
- package/dist/jsx/stack.d.mts +10 -0
- package/dist/jsx/txt.d.mts +10 -0
- package/dist/jsx/txt.mjs +14 -0
- package/dist/jsx/{visually-hidden.d.ts → visually-hidden.d.mts} +3 -3
- package/dist/jsx/vstack.d.mts +10 -0
- package/dist/jsx/wrap.d.mts +10 -0
- package/dist/patterns/{aspect-ratio.d.ts → aspect-ratio.d.mts} +5 -5
- package/dist/patterns/{bleed.d.ts → bleed.d.mts} +5 -5
- package/dist/patterns/{box.d.ts → box.d.mts} +5 -5
- package/dist/patterns/{center.d.ts → center.d.mts} +5 -5
- package/dist/patterns/{circle.d.ts → circle.d.mts} +5 -5
- package/dist/patterns/{container.d.ts → container.d.mts} +5 -5
- package/dist/patterns/{cq.d.ts → cq.d.mts} +5 -5
- package/dist/patterns/{divider.d.ts → divider.d.mts} +5 -5
- package/dist/patterns/{flex.d.ts → flex.d.mts} +5 -5
- package/dist/patterns/{float.d.ts → float.d.mts} +5 -5
- package/dist/patterns/{grid-item.d.ts → grid-item.d.mts} +5 -5
- package/dist/patterns/{grid.d.ts → grid.d.mts} +5 -5
- package/dist/patterns/{hstack.d.ts → hstack.d.mts} +5 -5
- package/dist/patterns/index.d.mts +22 -0
- package/dist/patterns/index.mjs +2 -1
- package/dist/patterns/{link-overlay.d.ts → link-overlay.d.mts} +5 -5
- package/dist/patterns/{spacer.d.ts → spacer.d.mts} +5 -5
- package/dist/patterns/{square.d.ts → square.d.mts} +5 -5
- package/dist/patterns/{stack.d.ts → stack.d.mts} +5 -5
- package/dist/patterns/txt.d.mts +24 -0
- package/dist/patterns/txt.mjs +28 -0
- package/dist/patterns/{visually-hidden.d.ts → visually-hidden.d.mts} +5 -5
- package/dist/patterns/{vstack.d.ts → vstack.d.mts} +5 -5
- package/dist/patterns/{wrap.d.ts → wrap.d.mts} +5 -5
- package/dist/recipes/{action-btn.d.ts → action-btn.d.mts} +2 -2
- package/dist/recipes/action-buttons.d.mts +33 -0
- package/dist/recipes/action-buttons.mjs +24 -0
- package/dist/recipes/{compound-node.d.ts → compound-node.d.mts} +12 -3
- package/dist/recipes/compound-node.mjs +5 -1
- package/dist/recipes/{edge-action-btn.d.ts → edge-action-btn.d.mts} +2 -2
- package/dist/recipes/{edge-label.d.ts → edge-label.d.mts} +2 -2
- package/dist/recipes/{edge-path.d.ts → edge-path.d.mts} +2 -2
- package/dist/recipes/{element-node-data.d.ts → element-node-data.d.mts} +10 -3
- package/dist/recipes/element-node-data.mjs +16 -2
- package/dist/recipes/{element-node.d.ts → element-node.d.mts} +2 -2
- package/dist/recipes/{element-shape-recipe.d.ts → element-shape-recipe.d.mts} +6 -2
- package/dist/recipes/element-shape-recipe.mjs +6 -1
- package/dist/recipes/index.d.mts +17 -0
- package/dist/recipes/index.mjs +2 -0
- package/dist/recipes/{likec4tag.d.ts → likec4tag.d.mts} +2 -2
- package/dist/recipes/{markdown-block.d.ts → markdown-block.d.mts} +2 -2
- package/dist/recipes/{navigation-link.d.ts → navigation-link.d.mts} +2 -2
- package/dist/recipes/{navigation-panel-action-icon.d.ts → navigation-panel-action-icon.d.mts} +2 -2
- package/dist/recipes/{navigation-panel.d.ts → navigation-panel.d.mts} +6 -2
- package/dist/recipes/navigation-panel.mjs +8 -2
- package/dist/recipes/node-notes.d.mts +34 -0
- package/dist/recipes/node-notes.mjs +31 -0
- package/dist/recipes/{overlay.d.ts → overlay.d.mts} +2 -2
- package/dist/tokens/{index.d.ts → index.d.mts} +2 -2
- package/dist/tokens/index.mjs +328 -184
- package/dist/tokens/tokens.d.mts +54 -0
- package/dist/types/{composition.d.ts → composition.d.mts} +4 -1
- package/dist/types/{conditions.d.ts → conditions.d.mts} +4 -6
- package/dist/types/{global.d.ts → global.d.mts} +5 -5
- package/dist/types/index.d.mts +8 -0
- package/dist/types/{jsx.d.ts → jsx.d.mts} +2 -2
- package/dist/types/{pattern.d.ts → pattern.d.mts} +2 -2
- package/dist/types/{prop-type.d.ts → prop-type.d.mts} +21 -5
- package/dist/types/{recipe.d.ts → recipe.d.mts} +2 -2
- package/dist/types/{selectors.d.ts → selectors.d.mts} +1 -1
- package/dist/types/{style-props.d.ts → style-props.d.mts} +59 -59
- package/dist/types/{system-types.d.ts → system-types.d.mts} +3 -3
- package/jsx/package.json +1 -1
- package/package.json +42 -34
- package/patterns/package.json +1 -1
- package/preset/_chunks/libs/@radix-ui/colors.mjs +3784 -0
- package/preset/_chunks/libs/pandacss-preset-radix-colors.mjs +147 -0
- package/preset/_chunks/libs/remeda.mjs +120 -0
- package/preset/_chunks/rolldown-runtime.mjs +11 -0
- package/preset/package.json +2 -2
- package/preset/preset.d.mts +1466 -0
- package/preset/preset.mjs +3943 -0
- package/recipes/package.json +1 -1
- package/tokens/package.json +1 -1
- package/types/package.json +1 -1
- package/vars/package.json +4 -0
- package/vars/vars.d.mts +417 -0
- package/vars/vars.mjs +415 -0
- package/dist/css/index.d.ts +0 -5
- package/dist/css/sva.d.ts +0 -4
- package/dist/jsx/bleed.d.ts +0 -10
- package/dist/jsx/box.d.ts +0 -10
- package/dist/jsx/center.d.ts +0 -10
- package/dist/jsx/circle.d.ts +0 -10
- package/dist/jsx/cq.d.ts +0 -10
- package/dist/jsx/divider.d.ts +0 -10
- package/dist/jsx/factory.d.ts +0 -3
- package/dist/jsx/flex.d.ts +0 -10
- package/dist/jsx/float.d.ts +0 -10
- package/dist/jsx/grid-item.d.ts +0 -10
- package/dist/jsx/grid.d.ts +0 -10
- package/dist/jsx/hstack.d.ts +0 -10
- package/dist/jsx/index.d.ts +0 -25
- package/dist/jsx/spacer.d.ts +0 -10
- package/dist/jsx/square.d.ts +0 -10
- package/dist/jsx/stack.d.ts +0 -10
- package/dist/jsx/vstack.d.ts +0 -10
- package/dist/jsx/wrap.d.ts +0 -10
- package/dist/patterns/index.d.ts +0 -21
- package/dist/preset.d.mts +0 -1232
- package/dist/preset.mjs +0 -7553
- package/dist/recipes/index.d.ts +0 -15
- package/dist/tokens/tokens.d.ts +0 -51
- package/dist/types/index.d.ts +0 -8
- package/panda.config.ts +0 -10
- package/preset.ts +0 -3
- /package/dist/css/{cx.d.ts → cx.d.mts} +0 -0
- /package/dist/jsx/{is-valid-prop.d.ts → is-valid-prop.d.mts} +0 -0
- /package/dist/types/{csstype.d.ts → csstype.d.mts} +0 -0
- /package/dist/types/{parts.d.ts → parts.d.mts} +0 -0
- /package/dist/types/{static-css.d.ts → static-css.d.mts} +0 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { r as colors_exports } from "./@radix-ui/colors.mjs";
|
|
2
|
+
import { definePreset } from "@pandacss/dev";
|
|
3
|
+
var SCALE_TAGS_REGEX = new RegExp(`(${["P3"].join("|")})|(?=[A-Z0-9])`, "g");
|
|
4
|
+
function getScaleTags(fullName) {
|
|
5
|
+
return fullName.split(SCALE_TAGS_REGEX).filter(Boolean).map((x) => x.toLowerCase());
|
|
6
|
+
}
|
|
7
|
+
function getScalePath(tags) {
|
|
8
|
+
return tags.join(".");
|
|
9
|
+
}
|
|
10
|
+
function isScaleAlpha(tags) {
|
|
11
|
+
return tags.includes("a");
|
|
12
|
+
}
|
|
13
|
+
function isScaleDark(tags) {
|
|
14
|
+
return tags.includes("dark");
|
|
15
|
+
}
|
|
16
|
+
function isScaleP3(tags) {
|
|
17
|
+
return tags.includes("p3");
|
|
18
|
+
}
|
|
19
|
+
function getScaleName(tags) {
|
|
20
|
+
return tags[0];
|
|
21
|
+
}
|
|
22
|
+
function getScaleShades(value) {
|
|
23
|
+
return Object.assign({}, ...Object.values(value).map((shade, i) => ({ [++i]: shade })));
|
|
24
|
+
}
|
|
25
|
+
function getScales(lightPrefix) {
|
|
26
|
+
return Object.entries(colors_exports).map(([fullName, value]) => {
|
|
27
|
+
const tags = getScaleTags(fullName);
|
|
28
|
+
const dark = isScaleDark(tags);
|
|
29
|
+
if (!dark && lightPrefix) tags.splice(1, 0, "light");
|
|
30
|
+
return {
|
|
31
|
+
fullName,
|
|
32
|
+
tags,
|
|
33
|
+
name: getScaleName(tags),
|
|
34
|
+
path: getScalePath(tags),
|
|
35
|
+
dark,
|
|
36
|
+
alpha: isScaleAlpha(tags),
|
|
37
|
+
p3: isScaleP3(tags),
|
|
38
|
+
shades: getScaleShades(value)
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function keysToObj(keys, value) {
|
|
43
|
+
if (keys.length === 0) return value;
|
|
44
|
+
const key = keys[0];
|
|
45
|
+
const obj = keysToObj(keys.slice(1), value);
|
|
46
|
+
return { [key]: obj };
|
|
47
|
+
}
|
|
48
|
+
function isObject(value) {
|
|
49
|
+
return value !== null && value !== void 0 && typeof value === "object" && !Array.isArray(value);
|
|
50
|
+
}
|
|
51
|
+
function mergeObjs(target, ...sources) {
|
|
52
|
+
if (!sources.length) return target;
|
|
53
|
+
const source = sources.shift();
|
|
54
|
+
if (isObject(target) && isObject(source)) for (const key in source) if (isObject(source[key])) {
|
|
55
|
+
if (!target[key]) Object.assign(target, { [key]: {} });
|
|
56
|
+
mergeObjs(target[key], source[key]);
|
|
57
|
+
} else Object.assign(target, { [key]: source[key] });
|
|
58
|
+
return mergeObjs(target, ...sources);
|
|
59
|
+
}
|
|
60
|
+
function findDarkScale(scale, scales) {
|
|
61
|
+
return scales.find((x) => x.name === scale.name && x.alpha === scale.alpha && x.p3 === scale.p3 && x.dark);
|
|
62
|
+
}
|
|
63
|
+
function findP3Scale(scale, scales) {
|
|
64
|
+
return scales.find((x) => x.name === scale.name && x.alpha === scale.alpha && x.dark === scale.dark && x.p3);
|
|
65
|
+
}
|
|
66
|
+
function findLightScale(scale, scales) {
|
|
67
|
+
return scales.find((x) => x.name === scale.name && x.alpha === scale.alpha && x.dark === scale.dark && x.p3 === scale.p3 && x.tags.includes("light"));
|
|
68
|
+
}
|
|
69
|
+
function findRelatedScales(scale, scales, enableDarkMode, enableAutoP3) {
|
|
70
|
+
const result = { current: scale };
|
|
71
|
+
if (enableDarkMode && !scale.dark && !scale.tags.includes("light")) result.dark = findDarkScale(scale, scales);
|
|
72
|
+
if (!result.dark && enableAutoP3 && !scale.p3) result.p3 = findP3Scale(scale, scales);
|
|
73
|
+
if (result.dark) result.light = scale.tags.includes("light") ? scale : findLightScale(scale, scales);
|
|
74
|
+
return result;
|
|
75
|
+
}
|
|
76
|
+
function buildTokenValue(shade, shadeIndex, relatedScales) {
|
|
77
|
+
if (relatedScales.dark) return {
|
|
78
|
+
base: `{colors.${relatedScales.light?.path}.${shadeIndex}}`,
|
|
79
|
+
_dark: `{colors.${relatedScales.dark.path}.${shadeIndex}}`
|
|
80
|
+
};
|
|
81
|
+
if (relatedScales.p3) return {
|
|
82
|
+
base: shade,
|
|
83
|
+
_p3: `{colors.${relatedScales.p3.path}.${shadeIndex}}`
|
|
84
|
+
};
|
|
85
|
+
return shade;
|
|
86
|
+
}
|
|
87
|
+
function getSemanticTokens(darkMode, autoP3, colorScales = []) {
|
|
88
|
+
let scales = getScales(darkMode);
|
|
89
|
+
if (darkMode) scales = scales.concat(getScales(false).filter((x) => !x.dark));
|
|
90
|
+
const filteredScales = scales.filter((scale) => shouldIncludeScale(scale, colorScales));
|
|
91
|
+
return mergeObjs({}, ...filteredScales.map((scale) => generateScaleTokens(scale, filteredScales, darkMode, autoP3)));
|
|
92
|
+
}
|
|
93
|
+
function shouldIncludeScale(scale, colorScales) {
|
|
94
|
+
if (colorScales.length === 0) return true;
|
|
95
|
+
return colorScales.some((colorScale) => {
|
|
96
|
+
return scale.path === colorScale || scale.path.startsWith(colorScale + ".");
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function generateScaleTokens(scale, allScales, enableDarkMode = false, enableAutoP3 = false) {
|
|
100
|
+
const relatedScales = findRelatedScales(scale, allScales, enableDarkMode, enableAutoP3);
|
|
101
|
+
const mergedShades = mergeObjs({}, ...Object.entries(scale.shades).map(([shadeIndex, color]) => {
|
|
102
|
+
const tokenValue = buildTokenValue(color, shadeIndex, relatedScales);
|
|
103
|
+
return { [shadeIndex]: { value: tokenValue } };
|
|
104
|
+
}));
|
|
105
|
+
return keysToObj(scale.tags, mergedShades);
|
|
106
|
+
}
|
|
107
|
+
var name = "pandacss-preset-radix-colors";
|
|
108
|
+
var DEFAULT_DARK_MODE_CONDITION = ".dark &";
|
|
109
|
+
function getConditions(darkModeCondition) {
|
|
110
|
+
const conditions = {};
|
|
111
|
+
if (darkModeCondition) conditions["dark"] = darkModeCondition;
|
|
112
|
+
conditions["p3"] = "@media (color-gamut: p3)";
|
|
113
|
+
return conditions;
|
|
114
|
+
}
|
|
115
|
+
function normalizeDarkMode(darkModeOption) {
|
|
116
|
+
if (!darkModeOption) return { enabled: false };
|
|
117
|
+
if (typeof darkModeOption === "boolean") return {
|
|
118
|
+
enabled: true,
|
|
119
|
+
condition: DEFAULT_DARK_MODE_CONDITION
|
|
120
|
+
};
|
|
121
|
+
return {
|
|
122
|
+
enabled: darkModeOption.enabled ?? true,
|
|
123
|
+
condition: darkModeOption.condition
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
function validateColorScales(colorScales) {
|
|
127
|
+
if (!colorScales || colorScales.length === 0) return;
|
|
128
|
+
const scales = getScales();
|
|
129
|
+
const unmatchedScales = colorScales.filter((colorScale) => {
|
|
130
|
+
return !scales.some((scale) => scale.path === colorScale || scale.path.startsWith(colorScale + "."));
|
|
131
|
+
});
|
|
132
|
+
if (unmatchedScales.length > 0) console.warn(`[pandacss-preset-radix-colors] Color scale paths don't match any available scales: ${unmatchedScales.join(", ")}. Valid examples: "amber", "blue.dark", "gray.p3", "red.dark.a". Available base colors: ${Array.from(new Set(scales.map((s) => s.name))).join(", ")}.`);
|
|
133
|
+
}
|
|
134
|
+
function createPreset(options) {
|
|
135
|
+
const darkModeConfig = normalizeDarkMode(options?.darkMode);
|
|
136
|
+
validateColorScales(options?.colorScales);
|
|
137
|
+
return definePreset({
|
|
138
|
+
name,
|
|
139
|
+
conditions: { extend: getConditions(darkModeConfig.enabled ? darkModeConfig.condition : void 0) },
|
|
140
|
+
theme: { extend: { semanticTokens: { colors: getSemanticTokens(darkModeConfig.enabled, options?.autoP3, options?.colorScales) } } }
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
function transformScaleName(scale) {
|
|
144
|
+
return scale.split(/(Dark|P3|A)/).map((x) => x.toLowerCase()).filter(Boolean).join(".");
|
|
145
|
+
}
|
|
146
|
+
Object.keys(colors_exports).filter((scale) => !scale.includes("default")).map(transformScaleName);
|
|
147
|
+
export { createPreset as t };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
function e$3(e, t, n) {
|
|
2
|
+
let r = (n) => e(n, ...t);
|
|
3
|
+
return n === void 0 ? r : Object.assign(r, {
|
|
4
|
+
lazy: n,
|
|
5
|
+
lazyArgs: t
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
function t$9(t, n, r) {
|
|
9
|
+
let i = t.length - n.length;
|
|
10
|
+
if (i === 0) return t(...n);
|
|
11
|
+
if (i === 1) return e$3(t, n, r);
|
|
12
|
+
throw Error(`Wrong number of arguments`);
|
|
13
|
+
}
|
|
14
|
+
function t$8(...t) {
|
|
15
|
+
return t$9(n$6, t);
|
|
16
|
+
}
|
|
17
|
+
const n$6 = (e) => `${e[0]?.toUpperCase() ?? ``}${e.slice(1)}`, t$7 = {
|
|
18
|
+
done: !1,
|
|
19
|
+
hasNext: !1
|
|
20
|
+
};
|
|
21
|
+
function t$6(e, ...t) {
|
|
22
|
+
let a = e, o = t.map((e) => `lazy` in e ? r(e) : void 0), s = 0;
|
|
23
|
+
for (; s < t.length;) {
|
|
24
|
+
if (o[s] === void 0 || !i(a)) {
|
|
25
|
+
let e = t[s];
|
|
26
|
+
a = e(a), s += 1;
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
let e = [];
|
|
30
|
+
for (let n = s; n < t.length; n++) {
|
|
31
|
+
let t = o[n];
|
|
32
|
+
if (t === void 0 || (e.push(t), t.isSingle)) break;
|
|
33
|
+
}
|
|
34
|
+
let r = [];
|
|
35
|
+
for (let t of a) if (n$4(t, r, e)) break;
|
|
36
|
+
let { isSingle: c } = e.at(-1);
|
|
37
|
+
a = c ? r[0] : r, s += e.length;
|
|
38
|
+
}
|
|
39
|
+
return a;
|
|
40
|
+
}
|
|
41
|
+
function n$4(t, r, i) {
|
|
42
|
+
if (i.length === 0) return r.push(t), !1;
|
|
43
|
+
let a = t, o = t$7, s = !1;
|
|
44
|
+
for (let [e, t] of i.entries()) {
|
|
45
|
+
let { index: c, items: l } = t;
|
|
46
|
+
if (l.push(a), o = t(a, c, l), t.index += 1, o.hasNext) {
|
|
47
|
+
if (o.hasMany ?? !1) {
|
|
48
|
+
for (let t of o.next) if (n$4(t, r, i.slice(e + 1))) return !0;
|
|
49
|
+
return s;
|
|
50
|
+
}
|
|
51
|
+
a = o.next;
|
|
52
|
+
}
|
|
53
|
+
if (!o.hasNext) break;
|
|
54
|
+
o.done && (s = !0);
|
|
55
|
+
}
|
|
56
|
+
return o.hasNext && r.push(a), s;
|
|
57
|
+
}
|
|
58
|
+
function r(e) {
|
|
59
|
+
let { lazy: t, lazyArgs: n } = e, r = t(...n);
|
|
60
|
+
return Object.assign(r, {
|
|
61
|
+
isSingle: t.single ?? !1,
|
|
62
|
+
index: 0,
|
|
63
|
+
items: []
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function i(e) {
|
|
67
|
+
return typeof e == `string` || typeof e == `object` && !!e && Symbol.iterator in e;
|
|
68
|
+
}
|
|
69
|
+
function t$5(...t) {
|
|
70
|
+
return t$9(n$3, t);
|
|
71
|
+
}
|
|
72
|
+
const n$3 = (e, t) => e.length >= t;
|
|
73
|
+
function e$1(e) {
|
|
74
|
+
return typeof e == `string`;
|
|
75
|
+
}
|
|
76
|
+
function t$4(...t) {
|
|
77
|
+
return t$9(Object.keys, t);
|
|
78
|
+
}
|
|
79
|
+
function t$3(...t) {
|
|
80
|
+
return t$9(n$2, t);
|
|
81
|
+
}
|
|
82
|
+
function n$2(e, t) {
|
|
83
|
+
let n = {};
|
|
84
|
+
for (let [r, i] of Object.entries(e)) {
|
|
85
|
+
let a = t(r, i, e);
|
|
86
|
+
n[a] = i;
|
|
87
|
+
}
|
|
88
|
+
return n;
|
|
89
|
+
}
|
|
90
|
+
function t$2(...t) {
|
|
91
|
+
return t$9(n$1, t);
|
|
92
|
+
}
|
|
93
|
+
function n$1(e, t) {
|
|
94
|
+
let n = {};
|
|
95
|
+
for (let [r, i] of e.entries()) {
|
|
96
|
+
let [a, o] = t(i, r, e);
|
|
97
|
+
n[a] = o;
|
|
98
|
+
}
|
|
99
|
+
return n;
|
|
100
|
+
}
|
|
101
|
+
function t$1(...t) {
|
|
102
|
+
return t$9(n, t);
|
|
103
|
+
}
|
|
104
|
+
function n(e, t) {
|
|
105
|
+
let n = {};
|
|
106
|
+
for (let [r, i] of Object.entries(e)) n[r] = t(i, r, e);
|
|
107
|
+
return n;
|
|
108
|
+
}
|
|
109
|
+
function e(e, ...n) {
|
|
110
|
+
return typeof e == `string` || typeof e == `number` || typeof e == `symbol` ? (r) => t(r, e, ...n) : t(e, ...n);
|
|
111
|
+
}
|
|
112
|
+
function t(e, ...t) {
|
|
113
|
+
let n = e;
|
|
114
|
+
for (let e of t) {
|
|
115
|
+
if (n == null) return;
|
|
116
|
+
n = n[e];
|
|
117
|
+
}
|
|
118
|
+
return n;
|
|
119
|
+
}
|
|
120
|
+
export { t$4 as a, t$6 as c, t$3 as i, t$8 as l, t$1 as n, e$1 as o, t$2 as r, t$5 as s, e as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __exportAll = (all, no_symbols) => {
|
|
3
|
+
let target = {};
|
|
4
|
+
for (var name in all) __defProp(target, name, {
|
|
5
|
+
get: all[name],
|
|
6
|
+
enumerable: true
|
|
7
|
+
});
|
|
8
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
|
+
return target;
|
|
10
|
+
};
|
|
11
|
+
export { __exportAll as t };
|
package/preset/package.json
CHANGED