@almadar/ui 6.53.1 → 6.55.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/dist/{AwaitingSkeletonContext-Bh399p1x.d.ts → AwaitingSkeletonContext-DPgW__WV.d.ts} +3 -1
- package/dist/{Canvas3DHost-B-y2TNij.d.ts → Canvas3DHost-DfAhg6EH.d.ts} +2 -0
- package/dist/Typography-7PDT62PG.js +5 -0
- package/dist/{UISlotRenderer-P7A4SZSK.js → UISlotRenderer-QTHFT6Z4.js} +8 -8
- package/dist/avl/index.cjs +3031 -1790
- package/dist/avl/index.js +57 -745
- package/dist/{avl-3d-context-MAt_NuU9.d.ts → avl-3d-context-BpBKZIbc.d.ts} +1 -0
- package/dist/{chunk-ERXIHZW3.js → chunk-D2E44ODB.js} +29 -15
- package/dist/{chunk-UOTYAPV5.js → chunk-F4ZTPKZL.js} +3 -3
- package/dist/{chunk-53VTY5CC.js → chunk-FQM37C56.js} +352 -162
- package/dist/{chunk-HB4C27KU.js → chunk-HCSJHRC4.js} +1 -1
- package/dist/{chunk-7KSLPY56.js → chunk-HRCR53OW.js} +11 -1
- package/dist/{chunk-O7OLVVBR.js → chunk-Q47ZN2DW.js} +24 -22
- package/dist/{chunk-DQTV6QVS.js → chunk-QGH4NAQO.js} +53 -2
- package/dist/{chunk-QVXLKFUQ.js → chunk-RNY5LJXJ.js} +1 -1
- package/dist/{chunk-FUQASYEW.js → chunk-SGJHVPHC.js} +2 -2
- package/dist/{chunk-6O37FCX4.js → chunk-V3FGTQUE.js} +37 -2
- package/dist/{chunk-HUG25TT3.js → chunk-XZKGRSIO.js} +2745 -1644
- package/dist/{chunk-7LM6I3NA.js → chunk-Y53Q55H5.js} +522 -24
- package/dist/components/index.cjs +4614 -2858
- package/dist/components/index.d.ts +122 -53
- package/dist/components/index.js +16 -17
- package/dist/context/index.cjs +38 -1
- package/dist/context/index.d.ts +1 -1
- package/dist/context/index.js +3 -1
- package/dist/design-classes/index.cjs +29 -15
- package/dist/design-classes/index.d.cts +1 -0
- package/dist/design-classes/index.d.ts +1 -0
- package/dist/design-classes/index.js +29 -15
- package/dist/hooks/index.cjs +16 -1
- package/dist/hooks/index.d.ts +10 -1
- package/dist/hooks/index.js +3 -4
- package/dist/lib/drawable/three/index.cjs +444 -82
- package/dist/lib/drawable/three/index.d.ts +4 -4
- package/dist/lib/drawable/three/index.js +28 -24
- package/dist/lib/index.cjs +53 -3
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/locales/index.cjs +33 -3
- package/dist/locales/index.js +23 -3
- package/dist/providers/index.cjs +4987 -3183
- package/dist/providers/index.d.ts +2 -2
- package/dist/providers/index.js +14 -11
- package/dist/runtime/index.cjs +8973 -7000
- package/dist/runtime/index.d.ts +28 -6
- package/dist/runtime/index.js +16 -13
- package/dist/ssr/index.cjs +26 -9
- package/dist/ssr/index.js +26 -9
- package/dist/{themeTokens-Ccu7EmGY.d.ts → themeTokens-D6MFwKrC.d.ts} +6 -2
- package/locales/ar.json +11 -1
- package/locales/en.json +11 -1
- package/locales/sl.json +11 -1
- package/package.json +8 -7
- package/scripts/audit-tailwind-safelist.ts +21 -1
- package/scripts/theme-contrast-audit.mjs +20 -1
- package/tailwind-preset.cjs +5 -6
- package/themes/_base.css +61 -0
- package/themes/_contract.md +37 -0
- package/themes/_fonts.css +6 -4
- package/themes/_presets.css +2 -0
- package/themes/almadar-heritage.css +455 -0
- package/themes/almadar-website.css +82 -0
- package/themes/almadar.css +82 -0
- package/themes/aqua.css +82 -0
- package/themes/arabesque.css +82 -0
- package/themes/art-deco.css +82 -0
- package/themes/art-nouveau.css +82 -0
- package/themes/atelier.css +82 -0
- package/themes/bauhaus.css +82 -0
- package/themes/bloomberg-dense.css +83 -1
- package/themes/blueprint.css +84 -0
- package/themes/clay.css +82 -0
- package/themes/comic.css +82 -0
- package/themes/constructivist.css +82 -0
- package/themes/corporate.css +82 -0
- package/themes/cyberpunk.css +82 -0
- package/themes/frutiger-aero.css +83 -0
- package/themes/game-adventure.css +15 -0
- package/themes/game-rpg.css +16 -0
- package/themes/game-sci-fi.css +15 -0
- package/themes/game-ui-pack.css +15 -0
- package/themes/gazette.css +82 -0
- package/themes/glass.css +82 -0
- package/themes/gothic.css +82 -0
- package/themes/ink-wash.css +82 -0
- package/themes/kawaii.css +82 -0
- package/themes/kiosk.css +82 -0
- package/themes/linear-clean.css +82 -0
- package/themes/luxury.css +82 -0
- package/themes/mac-classic.css +90 -8
- package/themes/material.css +82 -0
- package/themes/memphis.css +82 -0
- package/themes/mid-century.css +82 -0
- package/themes/minimalist.css +82 -0
- package/themes/mudcloth.css +82 -0
- package/themes/neon.css +83 -0
- package/themes/neumorphic.css +82 -0
- package/themes/newsprint.css +82 -0
- package/themes/notion-editorial.css +82 -0
- package/themes/orb.css +455 -0
- package/themes/pixel.css +82 -0
- package/themes/prism.css +82 -0
- package/themes/retro.css +83 -0
- package/themes/risograph.css +82 -0
- package/themes/scandi.css +82 -0
- package/themes/sketch.css +82 -0
- package/themes/solarpunk.css +82 -0
- package/themes/steampunk.css +82 -0
- package/themes/swiss.css +82 -0
- package/themes/terminal.css +84 -1
- package/themes/trait-wars.css +82 -0
- package/themes/ukiyo-e.css +82 -0
- package/themes/vaporwave.css +82 -0
- package/themes/victorian.css +82 -0
- package/themes/wabi-sabi.css +82 -0
- package/themes/win95.css +84 -0
- package/themes/wireframe.css +82 -0
- package/themes/zine.css +82 -0
- package/dist/Typography-7QEWUTW3.js +0 -5
- package/dist/chunk-E37BYSXY.js +0 -51
|
@@ -59,6 +59,7 @@ declare const AVL_3D_COLORS: {
|
|
|
59
59
|
readonly "op:std-json": string;
|
|
60
60
|
readonly "op:std-time": string;
|
|
61
61
|
readonly "op:std-format": string;
|
|
62
|
+
readonly "op:std-i18n": string;
|
|
62
63
|
readonly "op:std-async": string;
|
|
63
64
|
readonly "op:std-nn": string;
|
|
64
65
|
readonly "op:std-tensor": string;
|
|
@@ -313,23 +313,37 @@ function tokenOfDesignClass(className) {
|
|
|
313
313
|
function isArbitraryClass(className) {
|
|
314
314
|
return /^[a-z0-9:@/-]*-\[[^\]\s]+\]$/i.test(className);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
316
|
+
function collectClasses(value, found) {
|
|
317
|
+
if (Array.isArray(value)) {
|
|
318
|
+
for (const item of value) collectClasses(item, found);
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
if (value === null || typeof value !== "object") return;
|
|
322
|
+
for (const [key, child] of Object.entries(value)) {
|
|
323
|
+
if (key === "className" && typeof child === "string") {
|
|
324
|
+
for (const cls of child.split(/\s+/)) if (cls && isArbitraryClass(cls)) found.add(cls);
|
|
325
|
+
} else {
|
|
326
|
+
collectClasses(child, found);
|
|
322
327
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
function classesOfPart(part) {
|
|
331
|
+
const found = /* @__PURE__ */ new Set();
|
|
332
|
+
collectClasses(JSON.parse(JSON.stringify(part)), found);
|
|
333
|
+
return [...found];
|
|
334
|
+
}
|
|
335
|
+
var classesByOrbital = /* @__PURE__ */ new WeakMap();
|
|
336
|
+
function arbitraryClassesOf(schema) {
|
|
337
|
+
const { orbitals, _metadata: _provenance, ledger: _identities, ...rest } = schema;
|
|
338
|
+
const found = new Set(classesOfPart(rest));
|
|
339
|
+
for (const orbital of orbitals ?? []) {
|
|
340
|
+
let classes = classesByOrbital.get(orbital);
|
|
341
|
+
if (!classes) {
|
|
342
|
+
classes = classesOfPart(orbital);
|
|
343
|
+
classesByOrbital.set(orbital, classes);
|
|
330
344
|
}
|
|
331
|
-
|
|
332
|
-
|
|
345
|
+
for (const cls of classes) found.add(cls);
|
|
346
|
+
}
|
|
333
347
|
return [...found].sort();
|
|
334
348
|
}
|
|
335
349
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Icon, Button, Switch, Input } from './chunk-
|
|
2
|
-
import { VStack, HStack } from './chunk-
|
|
3
|
-
import { Typography } from './chunk-
|
|
1
|
+
import { Icon, Button, Switch, Input } from './chunk-XZKGRSIO.js';
|
|
2
|
+
import { VStack, HStack } from './chunk-Y53Q55H5.js';
|
|
3
|
+
import { Typography } from './chunk-HCSJHRC4.js';
|
|
4
4
|
import { cn } from './chunk-64WACXM7.js';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useTranslate } from '@almadar/ui/hooks';
|