@almadar/ui 6.54.0 → 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-QUEG6WFM.js → UISlotRenderer-QTHFT6Z4.js} +6 -6
- package/dist/avl/index.cjs +3385 -1883
- package/dist/avl/index.js +45 -737
- package/dist/{chunk-ERXIHZW3.js → chunk-D2E44ODB.js} +29 -15
- package/dist/{chunk-FJDS4SVD.js → chunk-F4ZTPKZL.js} +3 -3
- package/dist/{chunk-U3CGKPOK.js → chunk-FQM37C56.js} +136 -107
- package/dist/{chunk-4UP6BZ4R.js → chunk-HCSJHRC4.js} +1 -1
- package/dist/{chunk-N2V4LHFQ.js → chunk-HRCR53OW.js} +10 -1
- package/dist/{chunk-O7OLVVBR.js → chunk-Q47ZN2DW.js} +24 -22
- package/dist/{chunk-4HC5HRHB.js → chunk-QGH4NAQO.js} +2 -2
- package/dist/{chunk-MCKFWPT2.js → chunk-RNY5LJXJ.js} +1 -1
- package/dist/{chunk-Z7JWXIRE.js → chunk-SGJHVPHC.js} +2 -2
- package/dist/{chunk-6O37FCX4.js → chunk-V3FGTQUE.js} +37 -2
- package/dist/{chunk-U2FGMHQP.js → chunk-XZKGRSIO.js} +3334 -1796
- package/dist/{chunk-Z5IYJU44.js → chunk-Y53Q55H5.js} +521 -24
- package/dist/components/index.cjs +5194 -3008
- package/dist/components/index.d.ts +117 -52
- package/dist/components/index.js +12 -12
- package/dist/context/index.cjs +36 -1
- package/dist/context/index.d.ts +1 -1
- package/dist/context/index.js +1 -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 +10 -1
- package/dist/hooks/index.js +3 -3
- package/dist/lib/drawable/three/index.cjs +442 -82
- package/dist/lib/drawable/three/index.d.ts +2 -2
- package/dist/lib/drawable/three/index.js +28 -24
- package/dist/lib/index.cjs +52 -3
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +4 -4
- package/dist/locales/index.cjs +30 -3
- package/dist/locales/index.js +21 -3
- package/dist/providers/index.cjs +5330 -3091
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +12 -9
- package/dist/runtime/index.cjs +5400 -3182
- package/dist/runtime/index.d.ts +7 -3
- package/dist/runtime/index.js +8 -8
- package/dist/ssr/index.cjs +24 -8
- package/dist/ssr/index.js +24 -8
- package/dist/{themeTokens-Ccu7EmGY.d.ts → themeTokens-D6MFwKrC.d.ts} +6 -2
- package/locales/ar.json +10 -1
- package/locales/en.json +10 -1
- package/locales/sl.json +10 -1
- package/package.json +6 -6
- package/scripts/theme-contrast-audit.mjs +20 -1
- package/themes/_base.css +61 -0
- package/themes/_contract.md +37 -0
- package/themes/almadar-heritage.css +82 -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 +82 -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-CFI7JUVE.js +0 -5
package/dist/context/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useUISlotManager } from '../chunk-VHTJRS2N.js';
|
|
2
|
-
export { resolveThemeForRuntime, themeTokensToCssVars } from '../chunk-
|
|
2
|
+
export { resolveThemeForRuntime, themeTokensToCssVars } from '../chunk-V3FGTQUE.js';
|
|
3
3
|
import '../chunk-PEST66PN.js';
|
|
4
4
|
import '../chunk-QPXIAUJD.js';
|
|
5
5
|
import { createContext, useMemo, useContext, useState, useEffect, useCallback } from 'react';
|
|
@@ -362,23 +362,37 @@ function tokenOfDesignClass(className) {
|
|
|
362
362
|
function isArbitraryClass(className) {
|
|
363
363
|
return /^[a-z0-9:@/-]*-\[[^\]\s]+\]$/i.test(className);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
365
|
+
function collectClasses(value, found) {
|
|
366
|
+
if (Array.isArray(value)) {
|
|
367
|
+
for (const item of value) collectClasses(item, found);
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
if (value === null || typeof value !== "object") return;
|
|
371
|
+
for (const [key, child] of Object.entries(value)) {
|
|
372
|
+
if (key === "className" && typeof child === "string") {
|
|
373
|
+
for (const cls of child.split(/\s+/)) if (cls && isArbitraryClass(cls)) found.add(cls);
|
|
374
|
+
} else {
|
|
375
|
+
collectClasses(child, found);
|
|
371
376
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
function classesOfPart(part) {
|
|
380
|
+
const found = /* @__PURE__ */ new Set();
|
|
381
|
+
collectClasses(JSON.parse(JSON.stringify(part)), found);
|
|
382
|
+
return [...found];
|
|
383
|
+
}
|
|
384
|
+
var classesByOrbital = /* @__PURE__ */ new WeakMap();
|
|
385
|
+
function arbitraryClassesOf(schema) {
|
|
386
|
+
const { orbitals, _metadata: _provenance, ledger: _identities, ...rest } = schema;
|
|
387
|
+
const found = new Set(classesOfPart(rest));
|
|
388
|
+
for (const orbital of orbitals ?? []) {
|
|
389
|
+
let classes = classesByOrbital.get(orbital);
|
|
390
|
+
if (!classes) {
|
|
391
|
+
classes = classesOfPart(orbital);
|
|
392
|
+
classesByOrbital.set(orbital, classes);
|
|
379
393
|
}
|
|
380
|
-
|
|
381
|
-
|
|
394
|
+
for (const cls of classes) found.add(cls);
|
|
395
|
+
}
|
|
382
396
|
return [...found].sort();
|
|
383
397
|
}
|
|
384
398
|
|
|
@@ -157,6 +157,7 @@ declare function isArbitraryClass(className: string): boolean;
|
|
|
157
157
|
* sorted. Tailwind only compiles classes it saw at build time, so a runtime
|
|
158
158
|
* that renders a schema compiles these on demand (the scale and token classes
|
|
159
159
|
* are safelisted by the preset). Bound (expression) classNames are skipped.
|
|
160
|
+
* `_metadata` and `ledger` are provenance and identity records, never render trees.
|
|
160
161
|
*/
|
|
161
162
|
declare function arbitraryClassesOf(schema: OrbitalSchema): string[];
|
|
162
163
|
|
|
@@ -157,6 +157,7 @@ declare function isArbitraryClass(className: string): boolean;
|
|
|
157
157
|
* sorted. Tailwind only compiles classes it saw at build time, so a runtime
|
|
158
158
|
* that renders a schema compiles these on demand (the scale and token classes
|
|
159
159
|
* are safelisted by the preset). Bound (expression) classNames are skipped.
|
|
160
|
+
* `_metadata` and `ledger` are provenance and identity records, never render trees.
|
|
160
161
|
*/
|
|
161
162
|
declare function arbitraryClassesOf(schema: OrbitalSchema): string[];
|
|
162
163
|
|
|
@@ -360,23 +360,37 @@ function tokenOfDesignClass(className) {
|
|
|
360
360
|
function isArbitraryClass(className) {
|
|
361
361
|
return /^[a-z0-9:@/-]*-\[[^\]\s]+\]$/i.test(className);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
363
|
+
function collectClasses(value, found) {
|
|
364
|
+
if (Array.isArray(value)) {
|
|
365
|
+
for (const item of value) collectClasses(item, found);
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
368
|
+
if (value === null || typeof value !== "object") return;
|
|
369
|
+
for (const [key, child] of Object.entries(value)) {
|
|
370
|
+
if (key === "className" && typeof child === "string") {
|
|
371
|
+
for (const cls of child.split(/\s+/)) if (cls && isArbitraryClass(cls)) found.add(cls);
|
|
372
|
+
} else {
|
|
373
|
+
collectClasses(child, found);
|
|
369
374
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
function classesOfPart(part) {
|
|
378
|
+
const found = /* @__PURE__ */ new Set();
|
|
379
|
+
collectClasses(JSON.parse(JSON.stringify(part)), found);
|
|
380
|
+
return [...found];
|
|
381
|
+
}
|
|
382
|
+
var classesByOrbital = /* @__PURE__ */ new WeakMap();
|
|
383
|
+
function arbitraryClassesOf(schema) {
|
|
384
|
+
const { orbitals, _metadata: _provenance, ledger: _identities, ...rest } = schema;
|
|
385
|
+
const found = new Set(classesOfPart(rest));
|
|
386
|
+
for (const orbital of orbitals ?? []) {
|
|
387
|
+
let classes = classesByOrbital.get(orbital);
|
|
388
|
+
if (!classes) {
|
|
389
|
+
classes = classesOfPart(orbital);
|
|
390
|
+
classesByOrbital.set(orbital, classes);
|
|
377
391
|
}
|
|
378
|
-
|
|
379
|
-
|
|
392
|
+
for (const cls of classes) found.add(cls);
|
|
393
|
+
}
|
|
380
394
|
return [...found].sort();
|
|
381
395
|
}
|
|
382
396
|
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -1922,6 +1922,7 @@ var en_default = {
|
|
|
1922
1922
|
"template.ourTeam": "Our Team",
|
|
1923
1923
|
"template.caseStudies": "Case Studies",
|
|
1924
1924
|
"versionDiff.compare": "Compare",
|
|
1925
|
+
"versionDiff.changes": "Changes",
|
|
1925
1926
|
"versionDiff.to": "to",
|
|
1926
1927
|
"versionDiff.beforeRevision": "Before revision",
|
|
1927
1928
|
"versionDiff.afterRevision": "After revision",
|
|
@@ -2648,6 +2649,7 @@ var en_default = {
|
|
|
2648
2649
|
"gridPicker.moreRefine": "+{{count}} more \u2014 refine your search",
|
|
2649
2650
|
"graphCanvas.noNodes": "No nodes to display.",
|
|
2650
2651
|
"codeBlock.noCode": "No code to display.",
|
|
2652
|
+
"codeBlock.region": "Code",
|
|
2651
2653
|
"fab.action": "Action",
|
|
2652
2654
|
"fab.closeActions": "Close actions",
|
|
2653
2655
|
"fab.openActions": "Open actions",
|
|
@@ -2964,7 +2966,14 @@ var en_default = {
|
|
|
2964
2966
|
"agentActivity.earlierConversations": "Earlier conversations ({{count}})",
|
|
2965
2967
|
"agentActivity.earlierActivity": "Earlier activity",
|
|
2966
2968
|
"tabs.scrollStart": "Scroll tabs back",
|
|
2967
|
-
"tabs.scrollEnd": "Scroll tabs forward"
|
|
2969
|
+
"tabs.scrollEnd": "Scroll tabs forward",
|
|
2970
|
+
"agentChat.workedThrough": "Worked through {{count}} steps",
|
|
2971
|
+
"agentChat.newMessages": "New messages",
|
|
2972
|
+
"agentChat.copy": "Copy reply",
|
|
2973
|
+
"agentChat.copied": "Copied",
|
|
2974
|
+
"agentChat.today": "Today",
|
|
2975
|
+
"agentChat.yesterday": "Yesterday",
|
|
2976
|
+
"agentChat.emptyDescription": "Ask in your own words \u2014 the assistant can look things up and make changes for you."
|
|
2968
2977
|
};
|
|
2969
2978
|
|
|
2970
2979
|
// lib/format.ts
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { keyChord, mergeCaptureTables, useAgentChat, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useKeyboardRouter, useNavStack, usePreview, useRenderInterpolation, useTraitListens, useUIEvents, useValidation } from '../chunk-2LFBQ4IS.js';
|
|
2
|
-
export { I18nProvider, SharedEntityStoreContext, createSharedEntityStore, createTranslate, runTickFrame, useFormatContext, useRenderI18n, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useTranslate } from '../chunk-
|
|
2
|
+
export { I18nProvider, SharedEntityStoreContext, createSharedEntityStore, createTranslate, runTickFrame, useFormatContext, useRenderI18n, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useTranslate } from '../chunk-QGH4NAQO.js';
|
|
3
3
|
export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-VHTJRS2N.js';
|
|
4
4
|
export { ALMADAR_DND_MIME, parseQueryBinding, useAuthContext, useCanvasGestures, useDragReorder, useDraggable, useDropZone, useInfiniteScroll, useLongPress, useMediaQuery, usePrefersReducedMotion, usePullToRefresh, useQuerySingleton, useSwipeGesture } from '../chunk-JRW33U35.js';
|
|
5
5
|
export { useTapReveal } from '../chunk-XJTHMW4G.js';
|
|
6
6
|
export { useEmitEvent, useEventBus, useEventListener } from '../chunk-6EV3OEBQ.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-RNY5LJXJ.js';
|
|
8
|
+
import '../chunk-HRCR53OW.js';
|
|
9
9
|
import '../chunk-PEST66PN.js';
|
|
10
10
|
import '../chunk-QPXIAUJD.js';
|