@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.
Files changed (120) hide show
  1. package/dist/{AwaitingSkeletonContext-Bh399p1x.d.ts → AwaitingSkeletonContext-DPgW__WV.d.ts} +3 -1
  2. package/dist/{Canvas3DHost-B-y2TNij.d.ts → Canvas3DHost-DfAhg6EH.d.ts} +2 -0
  3. package/dist/Typography-7PDT62PG.js +5 -0
  4. package/dist/{UISlotRenderer-P7A4SZSK.js → UISlotRenderer-QTHFT6Z4.js} +8 -8
  5. package/dist/avl/index.cjs +3031 -1790
  6. package/dist/avl/index.js +57 -745
  7. package/dist/{avl-3d-context-MAt_NuU9.d.ts → avl-3d-context-BpBKZIbc.d.ts} +1 -0
  8. package/dist/{chunk-ERXIHZW3.js → chunk-D2E44ODB.js} +29 -15
  9. package/dist/{chunk-UOTYAPV5.js → chunk-F4ZTPKZL.js} +3 -3
  10. package/dist/{chunk-53VTY5CC.js → chunk-FQM37C56.js} +352 -162
  11. package/dist/{chunk-HB4C27KU.js → chunk-HCSJHRC4.js} +1 -1
  12. package/dist/{chunk-7KSLPY56.js → chunk-HRCR53OW.js} +11 -1
  13. package/dist/{chunk-O7OLVVBR.js → chunk-Q47ZN2DW.js} +24 -22
  14. package/dist/{chunk-DQTV6QVS.js → chunk-QGH4NAQO.js} +53 -2
  15. package/dist/{chunk-QVXLKFUQ.js → chunk-RNY5LJXJ.js} +1 -1
  16. package/dist/{chunk-FUQASYEW.js → chunk-SGJHVPHC.js} +2 -2
  17. package/dist/{chunk-6O37FCX4.js → chunk-V3FGTQUE.js} +37 -2
  18. package/dist/{chunk-HUG25TT3.js → chunk-XZKGRSIO.js} +2745 -1644
  19. package/dist/{chunk-7LM6I3NA.js → chunk-Y53Q55H5.js} +522 -24
  20. package/dist/components/index.cjs +4614 -2858
  21. package/dist/components/index.d.ts +122 -53
  22. package/dist/components/index.js +16 -17
  23. package/dist/context/index.cjs +38 -1
  24. package/dist/context/index.d.ts +1 -1
  25. package/dist/context/index.js +3 -1
  26. package/dist/design-classes/index.cjs +29 -15
  27. package/dist/design-classes/index.d.cts +1 -0
  28. package/dist/design-classes/index.d.ts +1 -0
  29. package/dist/design-classes/index.js +29 -15
  30. package/dist/hooks/index.cjs +16 -1
  31. package/dist/hooks/index.d.ts +10 -1
  32. package/dist/hooks/index.js +3 -4
  33. package/dist/lib/drawable/three/index.cjs +444 -82
  34. package/dist/lib/drawable/three/index.d.ts +4 -4
  35. package/dist/lib/drawable/three/index.js +28 -24
  36. package/dist/lib/index.cjs +53 -3
  37. package/dist/lib/index.d.ts +1 -1
  38. package/dist/lib/index.js +4 -4
  39. package/dist/locales/index.cjs +33 -3
  40. package/dist/locales/index.js +23 -3
  41. package/dist/providers/index.cjs +4987 -3183
  42. package/dist/providers/index.d.ts +2 -2
  43. package/dist/providers/index.js +14 -11
  44. package/dist/runtime/index.cjs +8973 -7000
  45. package/dist/runtime/index.d.ts +28 -6
  46. package/dist/runtime/index.js +16 -13
  47. package/dist/ssr/index.cjs +26 -9
  48. package/dist/ssr/index.js +26 -9
  49. package/dist/{themeTokens-Ccu7EmGY.d.ts → themeTokens-D6MFwKrC.d.ts} +6 -2
  50. package/locales/ar.json +11 -1
  51. package/locales/en.json +11 -1
  52. package/locales/sl.json +11 -1
  53. package/package.json +8 -7
  54. package/scripts/audit-tailwind-safelist.ts +21 -1
  55. package/scripts/theme-contrast-audit.mjs +20 -1
  56. package/tailwind-preset.cjs +5 -6
  57. package/themes/_base.css +61 -0
  58. package/themes/_contract.md +37 -0
  59. package/themes/_fonts.css +6 -4
  60. package/themes/_presets.css +2 -0
  61. package/themes/almadar-heritage.css +455 -0
  62. package/themes/almadar-website.css +82 -0
  63. package/themes/almadar.css +82 -0
  64. package/themes/aqua.css +82 -0
  65. package/themes/arabesque.css +82 -0
  66. package/themes/art-deco.css +82 -0
  67. package/themes/art-nouveau.css +82 -0
  68. package/themes/atelier.css +82 -0
  69. package/themes/bauhaus.css +82 -0
  70. package/themes/bloomberg-dense.css +83 -1
  71. package/themes/blueprint.css +84 -0
  72. package/themes/clay.css +82 -0
  73. package/themes/comic.css +82 -0
  74. package/themes/constructivist.css +82 -0
  75. package/themes/corporate.css +82 -0
  76. package/themes/cyberpunk.css +82 -0
  77. package/themes/frutiger-aero.css +83 -0
  78. package/themes/game-adventure.css +15 -0
  79. package/themes/game-rpg.css +16 -0
  80. package/themes/game-sci-fi.css +15 -0
  81. package/themes/game-ui-pack.css +15 -0
  82. package/themes/gazette.css +82 -0
  83. package/themes/glass.css +82 -0
  84. package/themes/gothic.css +82 -0
  85. package/themes/ink-wash.css +82 -0
  86. package/themes/kawaii.css +82 -0
  87. package/themes/kiosk.css +82 -0
  88. package/themes/linear-clean.css +82 -0
  89. package/themes/luxury.css +82 -0
  90. package/themes/mac-classic.css +90 -8
  91. package/themes/material.css +82 -0
  92. package/themes/memphis.css +82 -0
  93. package/themes/mid-century.css +82 -0
  94. package/themes/minimalist.css +82 -0
  95. package/themes/mudcloth.css +82 -0
  96. package/themes/neon.css +83 -0
  97. package/themes/neumorphic.css +82 -0
  98. package/themes/newsprint.css +82 -0
  99. package/themes/notion-editorial.css +82 -0
  100. package/themes/orb.css +455 -0
  101. package/themes/pixel.css +82 -0
  102. package/themes/prism.css +82 -0
  103. package/themes/retro.css +83 -0
  104. package/themes/risograph.css +82 -0
  105. package/themes/scandi.css +82 -0
  106. package/themes/sketch.css +82 -0
  107. package/themes/solarpunk.css +82 -0
  108. package/themes/steampunk.css +82 -0
  109. package/themes/swiss.css +82 -0
  110. package/themes/terminal.css +84 -1
  111. package/themes/trait-wars.css +82 -0
  112. package/themes/ukiyo-e.css +82 -0
  113. package/themes/vaporwave.css +82 -0
  114. package/themes/victorian.css +82 -0
  115. package/themes/wabi-sabi.css +82 -0
  116. package/themes/win95.css +84 -0
  117. package/themes/wireframe.css +82 -0
  118. package/themes/zine.css +82 -0
  119. package/dist/Typography-7QEWUTW3.js +0 -5
  120. 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 arbitraryClassesOf(schema) {
317
- const found = /* @__PURE__ */ new Set();
318
- const visit = (value) => {
319
- if (Array.isArray(value)) {
320
- value.forEach(visit);
321
- return;
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
- if (value === null || typeof value !== "object") return;
324
- for (const [key, child] of Object.entries(value)) {
325
- if (key === "className" && typeof child === "string") {
326
- for (const cls of child.split(/\s+/)) if (cls && isArbitraryClass(cls)) found.add(cls);
327
- } else {
328
- visit(child);
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
- visit(JSON.parse(JSON.stringify(schema)));
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-HUG25TT3.js';
2
- import { VStack, HStack } from './chunk-7LM6I3NA.js';
3
- import { Typography } from './chunk-HB4C27KU.js';
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';