@lostgradient/cinder 0.23.1 → 0.24.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/CHANGELOG.md +53 -0
- package/components.json +1 -1
- package/dist/_internal/text-direction-sheet-index.d.ts +69 -0
- package/dist/components/access-gate/index.js +447 -354
- package/dist/components/approval-card/index.js +72 -1
- package/dist/components/autocomplete/index.js +72 -1
- package/dist/components/avatar-group/index.js +72 -1
- package/dist/components/carousel/index.js +73 -1
- package/dist/components/combobox/index.js +72 -1
- package/dist/components/command-menu/index.js +74 -1
- package/dist/components/context-menu/index.js +74 -1
- package/dist/components/date-picker/index.js +72 -1
- package/dist/components/date-range-field/index.js +72 -1
- package/dist/components/dropdown/index.js +74 -1
- package/dist/components/dropdown-menu/index.js +74 -1
- package/dist/components/file-upload/file-upload-list.svelte.d.ts +12 -0
- package/dist/components/file-upload/file-upload-utilities.d.ts +15 -0
- package/dist/components/file-upload/file-upload.css +152 -11
- package/dist/components/file-upload/file-upload.schema.js +39 -5
- package/dist/components/file-upload/file-upload.types.d.ts +33 -5
- package/dist/components/file-upload/index.js +1017 -264
- package/dist/components/hover-card/index.js +72 -1
- package/dist/components/invocation-rule-builder/index.js +72 -1
- package/dist/components/json-schema-editor/index.js +72 -1
- package/dist/components/mega-menu/index.js +73 -1
- package/dist/components/menu-bar/index.js +74 -1
- package/dist/components/multi-select/index.js +72 -1
- package/dist/components/navigation-bar/index.js +72 -1
- package/dist/components/popover/index.js +72 -1
- package/dist/components/portal/index.js +72 -1
- package/dist/components/selection-popover/index.js +72 -1
- package/dist/components/slider/index.js +73 -1
- package/dist/components/speed-dial/index.js +72 -1
- package/dist/components/speed-dial-action/index.js +72 -1
- package/dist/components/tooltip/index.js +72 -1
- package/dist/index.js +18932 -18257
- package/dist/server/components/access-gate/index.js +7 -4
- package/dist/server/components/approval-card/index.js +6 -5
- package/dist/server/components/autocomplete/index.js +6 -5
- package/dist/server/components/avatar-group/index.js +6 -5
- package/dist/server/components/carousel/index.js +3 -2
- package/dist/server/components/combobox/index.js +7 -6
- package/dist/server/components/command-menu/index.js +6 -5
- package/dist/server/components/context-menu/index.js +7 -6
- package/dist/server/components/date-picker/index.js +7 -6
- package/dist/server/components/date-range-field/index.js +7 -6
- package/dist/server/components/dropdown/index.js +7 -6
- package/dist/server/components/dropdown-menu/index.js +7 -6
- package/dist/server/components/file-upload/index.js +10 -2
- package/dist/server/components/hover-card/index.js +5 -4
- package/dist/server/components/icons/index.js +17 -11
- package/dist/server/components/invocation-rule-builder/index.js +7 -6
- package/dist/server/components/json-schema-editor/index.js +10 -7
- package/dist/server/components/mega-menu/index.js +4 -3
- package/dist/server/components/menu-bar/index.js +7 -6
- package/dist/server/components/multi-select/index.js +5 -4
- package/dist/server/components/navigation-bar/index.js +5 -4
- package/dist/server/components/popover/index.js +6 -5
- package/dist/server/components/portal/index.js +4 -3
- package/dist/server/components/selection-popover/index.js +5 -4
- package/dist/server/components/slider/index.js +4 -3
- package/dist/server/components/speed-dial/index.js +6 -5
- package/dist/server/components/speed-dial-action/index.js +5 -4
- package/dist/server/components/tooltip/index.js +6 -5
- package/dist/server/index.js +45 -39
- package/dist/server/{index.server-116jzzd0.js → index.server-0d1703dw.js} +1 -1
- package/dist/server/index.server-3cpak389.js +689 -0
- package/dist/server/{index.server-wmeaz6qk.js → index.server-5smw78xz.js} +78 -109
- package/dist/server/{index.server-nwgxhrzg.js → index.server-6vd98s4m.js} +1 -1
- package/dist/server/{index.server-4hvjet4z.js → index.server-7h3nmj3g.js} +7 -5
- package/dist/server/{index.server-3e8n2sry.js → index.server-7vzk6qhf.js} +2 -2
- package/dist/server/{index.server-h6qhx8mw.js → index.server-83fg1k4x.js} +7 -1
- package/dist/server/{index.server-5mz0e28m.js → index.server-8bv9bkm6.js} +1 -1
- package/dist/server/{index.server-59hgwg0n.js → index.server-8xr5tbrn.js} +1 -1
- package/dist/server/{index.server-x5zjwrnb.js → index.server-aphnpg78.js} +2 -2
- package/dist/server/{index.server-9scm7zf9.js → index.server-aywvs10h.js} +1 -1
- package/dist/server/index.server-bfkka7x4.js +2 -0
- package/dist/server/{index.server-2h45p8kd.js → index.server-bjj2hpx1.js} +2 -2
- package/dist/server/{index.server-4w0rydct.js → index.server-bw1wbzzk.js} +1 -1
- package/dist/server/{index.server-w5f4ex0f.js → index.server-c71m0a88.js} +1 -1
- package/dist/server/{index.server-kergq7c5.js → index.server-cmz3t3zw.js} +1 -1
- package/dist/server/{index.server-t2p901p7.js → index.server-cn3tg876.js} +1 -1
- package/dist/server/{index.server-6z6s8qz8.js → index.server-d05m93p4.js} +1 -1
- package/dist/server/{index.server-yr2ndv9a.js → index.server-d7twz1zm.js} +1 -1
- package/dist/server/{index.server-1cnz5ax1.js → index.server-emqv9bz6.js} +1 -1
- package/dist/server/index.server-fvtdyxbc.js +2 -0
- package/dist/server/{index.server-5wmzrvvs.js → index.server-gg4jre7c.js} +1 -1
- package/dist/server/{index.server-t91tbrmn.js → index.server-h76gdmj1.js} +2 -2
- package/dist/server/{index.server-bjw3e1wh.js → index.server-hvp84h1d.js} +1 -1
- package/dist/server/{index.server-7kez94sz.js → index.server-j6wms88v.js} +1 -1
- package/dist/server/{index.server-8t53gqe7.js → index.server-k21nfvxe.js} +2 -2
- package/dist/server/{index.server-6771g0q4.js → index.server-mf4dr1kp.js} +5 -1
- package/dist/server/{index.server-s2dseqdh.js → index.server-p69bvf14.js} +1 -1
- package/dist/server/{index.server-br3khchh.js → index.server-ppw26tpq.js} +1 -1
- package/dist/server/{index.server-q7r53g7z.js → index.server-s4pfz6pb.js} +1 -1
- package/dist/server/index.server-sje2hers.js +97 -0
- package/dist/server/{index.server-drdtprjs.js → index.server-spdds2hk.js} +1 -1
- package/dist/server/index.server-sz6y8xqk.js +2 -0
- package/dist/server/index.server-tkv7aey1.js +35 -0
- package/dist/server/{index.server-rf9pd5mr.js → index.server-w20xg416.js} +1 -1
- package/dist/server/index.server-xvg6mjdw.js +73 -0
- package/dist/server/{index.server-03ndc3td.js → index.server-ye5xkaq2.js} +1 -1
- package/dist/server/{index.server-ejdprw7f.js → index.server-ykvb4rcc.js} +1 -1
- package/dist/server/index.server-yq9evnp4.js +38 -0
- package/dist/server/index.server-yrfah2yz.js +33 -0
- package/dist/server/{index.server-9n2bc545.js → index.server-zbgdfzy6.js} +1 -1
- package/dist/server/{index.server-n6wm89xy.js → index.server-zj0x74bt.js} +1 -1
- package/package.json +1 -1
- package/src/_internal/text-direction-css.ts +6 -0
- package/src/_internal/text-direction-sheet-index.ts +170 -0
- package/src/components/file-upload/file-upload-list.svelte +198 -0
- package/src/components/file-upload/file-upload-utilities.ts +262 -0
- package/src/components/file-upload/file-upload.css +152 -11
- package/src/components/file-upload/file-upload.examples.json +1 -1
- package/src/components/file-upload/file-upload.schema.json +38 -4
- package/src/components/file-upload/file-upload.schema.ts +40 -4
- package/src/components/file-upload/file-upload.svelte +176 -146
- package/src/components/file-upload/file-upload.types.ts +33 -5
- package/src/components/portal/portal.utilities.svelte.ts +8 -0
- package/dist/server/index.server-1qvmrpnx.js +0 -328
- package/dist/server/index.server-4n1mxg74.js +0 -2
- package/dist/server/index.server-7trweg3f.js +0 -61
|
@@ -2113,6 +2113,76 @@ function classNames(...parts) {
|
|
|
2113
2113
|
import * as $2 from "svelte/internal/client";
|
|
2114
2114
|
import { untrack } from "svelte";
|
|
2115
2115
|
|
|
2116
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
2117
|
+
var sheetIndex = new WeakMap;
|
|
2118
|
+
function resetDirectionStyleSheetIndex() {
|
|
2119
|
+
sheetIndex = new WeakMap;
|
|
2120
|
+
}
|
|
2121
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
2122
|
+
let rules;
|
|
2123
|
+
try {
|
|
2124
|
+
rules = sheet.cssRules;
|
|
2125
|
+
} catch {
|
|
2126
|
+
return true;
|
|
2127
|
+
}
|
|
2128
|
+
const cached = sheetIndex.get(sheet);
|
|
2129
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
2130
|
+
return cached.declaresDirection;
|
|
2131
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
2132
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
2133
|
+
scanRuleList(rules, scan);
|
|
2134
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
2135
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
2136
|
+
} else {
|
|
2137
|
+
sheetIndex.delete(sheet);
|
|
2138
|
+
}
|
|
2139
|
+
return scan.declaresDirection;
|
|
2140
|
+
}
|
|
2141
|
+
function scanRuleList(rules, state) {
|
|
2142
|
+
for (const rule of Array.from(rules)) {
|
|
2143
|
+
if (state.declaresDirection)
|
|
2144
|
+
return;
|
|
2145
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
2146
|
+
state.cacheable = false;
|
|
2147
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
2148
|
+
if (imported) {
|
|
2149
|
+
try {
|
|
2150
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
2151
|
+
if (isRuleCollection(importedRules))
|
|
2152
|
+
scanRuleList(importedRules, state);
|
|
2153
|
+
} catch {
|
|
2154
|
+
state.declaresDirection = true;
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
continue;
|
|
2158
|
+
}
|
|
2159
|
+
const style = Reflect.get(rule, "style");
|
|
2160
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
2161
|
+
state.declaresDirection = true;
|
|
2162
|
+
return;
|
|
2163
|
+
}
|
|
2164
|
+
if (!("cssRules" in rule))
|
|
2165
|
+
continue;
|
|
2166
|
+
try {
|
|
2167
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
2168
|
+
if (isRuleCollection(nested))
|
|
2169
|
+
scanRuleList(nested, state);
|
|
2170
|
+
} catch {
|
|
2171
|
+
state.declaresDirection = true;
|
|
2172
|
+
return;
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
}
|
|
2176
|
+
function isRuleCollection(value) {
|
|
2177
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
2178
|
+
return true;
|
|
2179
|
+
if (Array.isArray(value))
|
|
2180
|
+
return true;
|
|
2181
|
+
if (typeof value !== "object" || value === null)
|
|
2182
|
+
return false;
|
|
2183
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2116
2186
|
// ../../node_modules/esm-env/true.js
|
|
2117
2187
|
var true_default = true;
|
|
2118
2188
|
// src/utilities/dev-warn.ts
|
|
@@ -2626,6 +2696,7 @@ function invalidateComputedDirections() {
|
|
|
2626
2696
|
});
|
|
2627
2697
|
}
|
|
2628
2698
|
function invalidatePortalDirection() {
|
|
2699
|
+
resetDirectionStyleSheetIndex();
|
|
2629
2700
|
if (computedDirectionObservations.size === 0)
|
|
2630
2701
|
return;
|
|
2631
2702
|
refreshMediaQueryObservers();
|
|
@@ -6987,4 +7058,4 @@ export {
|
|
|
6987
7058
|
Approval_card as ApprovalCard
|
|
6988
7059
|
};
|
|
6989
7060
|
|
|
6990
|
-
//# debugId=
|
|
7061
|
+
//# debugId=EB95C4541059DA5E64756E2164756E21
|
|
@@ -1895,6 +1895,76 @@ function classNames(...parts) {
|
|
|
1895
1895
|
import * as $2 from "svelte/internal/client";
|
|
1896
1896
|
import { untrack } from "svelte";
|
|
1897
1897
|
|
|
1898
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1899
|
+
var sheetIndex = new WeakMap;
|
|
1900
|
+
function resetDirectionStyleSheetIndex() {
|
|
1901
|
+
sheetIndex = new WeakMap;
|
|
1902
|
+
}
|
|
1903
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1904
|
+
let rules;
|
|
1905
|
+
try {
|
|
1906
|
+
rules = sheet.cssRules;
|
|
1907
|
+
} catch {
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
const cached = sheetIndex.get(sheet);
|
|
1911
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1912
|
+
return cached.declaresDirection;
|
|
1913
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1914
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1915
|
+
scanRuleList(rules, scan);
|
|
1916
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1917
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1918
|
+
} else {
|
|
1919
|
+
sheetIndex.delete(sheet);
|
|
1920
|
+
}
|
|
1921
|
+
return scan.declaresDirection;
|
|
1922
|
+
}
|
|
1923
|
+
function scanRuleList(rules, state) {
|
|
1924
|
+
for (const rule of Array.from(rules)) {
|
|
1925
|
+
if (state.declaresDirection)
|
|
1926
|
+
return;
|
|
1927
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1928
|
+
state.cacheable = false;
|
|
1929
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1930
|
+
if (imported) {
|
|
1931
|
+
try {
|
|
1932
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1933
|
+
if (isRuleCollection(importedRules))
|
|
1934
|
+
scanRuleList(importedRules, state);
|
|
1935
|
+
} catch {
|
|
1936
|
+
state.declaresDirection = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
const style = Reflect.get(rule, "style");
|
|
1942
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1943
|
+
state.declaresDirection = true;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!("cssRules" in rule))
|
|
1947
|
+
continue;
|
|
1948
|
+
try {
|
|
1949
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1950
|
+
if (isRuleCollection(nested))
|
|
1951
|
+
scanRuleList(nested, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function isRuleCollection(value) {
|
|
1959
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1960
|
+
return true;
|
|
1961
|
+
if (Array.isArray(value))
|
|
1962
|
+
return true;
|
|
1963
|
+
if (typeof value !== "object" || value === null)
|
|
1964
|
+
return false;
|
|
1965
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1898
1968
|
// ../../node_modules/esm-env/true.js
|
|
1899
1969
|
var true_default = true;
|
|
1900
1970
|
// src/utilities/dev-warn.ts
|
|
@@ -2408,6 +2478,7 @@ function invalidateComputedDirections() {
|
|
|
2408
2478
|
});
|
|
2409
2479
|
}
|
|
2410
2480
|
function invalidatePortalDirection() {
|
|
2481
|
+
resetDirectionStyleSheetIndex();
|
|
2411
2482
|
if (computedDirectionObservations.size === 0)
|
|
2412
2483
|
return;
|
|
2413
2484
|
refreshMediaQueryObservers();
|
|
@@ -4629,4 +4700,4 @@ export {
|
|
|
4629
4700
|
autocomplete_default as default
|
|
4630
4701
|
};
|
|
4631
4702
|
|
|
4632
|
-
//# debugId=
|
|
4703
|
+
//# debugId=EF5A61328B9A4ECB64756E2164756E21
|
|
@@ -1895,6 +1895,76 @@ function classNames(...parts) {
|
|
|
1895
1895
|
import * as $2 from "svelte/internal/client";
|
|
1896
1896
|
import { untrack } from "svelte";
|
|
1897
1897
|
|
|
1898
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1899
|
+
var sheetIndex = new WeakMap;
|
|
1900
|
+
function resetDirectionStyleSheetIndex() {
|
|
1901
|
+
sheetIndex = new WeakMap;
|
|
1902
|
+
}
|
|
1903
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1904
|
+
let rules;
|
|
1905
|
+
try {
|
|
1906
|
+
rules = sheet.cssRules;
|
|
1907
|
+
} catch {
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
const cached = sheetIndex.get(sheet);
|
|
1911
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1912
|
+
return cached.declaresDirection;
|
|
1913
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1914
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1915
|
+
scanRuleList(rules, scan);
|
|
1916
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1917
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1918
|
+
} else {
|
|
1919
|
+
sheetIndex.delete(sheet);
|
|
1920
|
+
}
|
|
1921
|
+
return scan.declaresDirection;
|
|
1922
|
+
}
|
|
1923
|
+
function scanRuleList(rules, state) {
|
|
1924
|
+
for (const rule of Array.from(rules)) {
|
|
1925
|
+
if (state.declaresDirection)
|
|
1926
|
+
return;
|
|
1927
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1928
|
+
state.cacheable = false;
|
|
1929
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1930
|
+
if (imported) {
|
|
1931
|
+
try {
|
|
1932
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1933
|
+
if (isRuleCollection(importedRules))
|
|
1934
|
+
scanRuleList(importedRules, state);
|
|
1935
|
+
} catch {
|
|
1936
|
+
state.declaresDirection = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
const style = Reflect.get(rule, "style");
|
|
1942
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1943
|
+
state.declaresDirection = true;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!("cssRules" in rule))
|
|
1947
|
+
continue;
|
|
1948
|
+
try {
|
|
1949
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1950
|
+
if (isRuleCollection(nested))
|
|
1951
|
+
scanRuleList(nested, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function isRuleCollection(value) {
|
|
1959
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1960
|
+
return true;
|
|
1961
|
+
if (Array.isArray(value))
|
|
1962
|
+
return true;
|
|
1963
|
+
if (typeof value !== "object" || value === null)
|
|
1964
|
+
return false;
|
|
1965
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1898
1968
|
// ../../node_modules/esm-env/true.js
|
|
1899
1969
|
var true_default = true;
|
|
1900
1970
|
// src/utilities/dev-warn.ts
|
|
@@ -2408,6 +2478,7 @@ function invalidateComputedDirections() {
|
|
|
2408
2478
|
});
|
|
2409
2479
|
}
|
|
2410
2480
|
function invalidatePortalDirection() {
|
|
2481
|
+
resetDirectionStyleSheetIndex();
|
|
2411
2482
|
if (computedDirectionObservations.size === 0)
|
|
2412
2483
|
return;
|
|
2413
2484
|
refreshMediaQueryObservers();
|
|
@@ -3781,4 +3852,4 @@ export {
|
|
|
3781
3852
|
Avatar_group as AvatarGroup
|
|
3782
3853
|
};
|
|
3783
3854
|
|
|
3784
|
-
//# debugId=
|
|
3855
|
+
//# debugId=9D1920351FF70A5364756E2164756E21
|
|
@@ -284,6 +284,76 @@ function evaluateContainerSizeConstraints(conditionText, width, remSize, inlineS
|
|
|
284
284
|
return /^\s*not\b/i.test(conditionText) ? !combinedMatches : combinedMatches;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
288
|
+
var sheetIndex = new WeakMap;
|
|
289
|
+
function resetDirectionStyleSheetIndex() {
|
|
290
|
+
sheetIndex = new WeakMap;
|
|
291
|
+
}
|
|
292
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
293
|
+
let rules;
|
|
294
|
+
try {
|
|
295
|
+
rules = sheet.cssRules;
|
|
296
|
+
} catch {
|
|
297
|
+
return true;
|
|
298
|
+
}
|
|
299
|
+
const cached = sheetIndex.get(sheet);
|
|
300
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
301
|
+
return cached.declaresDirection;
|
|
302
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
303
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
304
|
+
scanRuleList(rules, scan);
|
|
305
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
306
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
307
|
+
} else {
|
|
308
|
+
sheetIndex.delete(sheet);
|
|
309
|
+
}
|
|
310
|
+
return scan.declaresDirection;
|
|
311
|
+
}
|
|
312
|
+
function scanRuleList(rules, state) {
|
|
313
|
+
for (const rule of Array.from(rules)) {
|
|
314
|
+
if (state.declaresDirection)
|
|
315
|
+
return;
|
|
316
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
317
|
+
state.cacheable = false;
|
|
318
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
319
|
+
if (imported) {
|
|
320
|
+
try {
|
|
321
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
322
|
+
if (isRuleCollection(importedRules))
|
|
323
|
+
scanRuleList(importedRules, state);
|
|
324
|
+
} catch {
|
|
325
|
+
state.declaresDirection = true;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
continue;
|
|
329
|
+
}
|
|
330
|
+
const style = Reflect.get(rule, "style");
|
|
331
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
332
|
+
state.declaresDirection = true;
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
if (!("cssRules" in rule))
|
|
336
|
+
continue;
|
|
337
|
+
try {
|
|
338
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
339
|
+
if (isRuleCollection(nested))
|
|
340
|
+
scanRuleList(nested, state);
|
|
341
|
+
} catch {
|
|
342
|
+
state.declaresDirection = true;
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
function isRuleCollection(value) {
|
|
348
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
349
|
+
return true;
|
|
350
|
+
if (Array.isArray(value))
|
|
351
|
+
return true;
|
|
352
|
+
if (typeof value !== "object" || value === null)
|
|
353
|
+
return false;
|
|
354
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
355
|
+
}
|
|
356
|
+
|
|
287
357
|
// src/_internal/text-direction-css.ts
|
|
288
358
|
function matchesDirectionStyleRule(element, getParentElement) {
|
|
289
359
|
const styleSheets = new Map;
|
|
@@ -307,6 +377,8 @@ function matchesDirectionStyleRule(element, getParentElement) {
|
|
|
307
377
|
for (const [sheet, fallbackRoot] of styleSheets) {
|
|
308
378
|
if (!isActiveStyleSheet(sheet))
|
|
309
379
|
continue;
|
|
380
|
+
if (!styleSheetDeclaresDirection(sheet))
|
|
381
|
+
continue;
|
|
310
382
|
let rules;
|
|
311
383
|
try {
|
|
312
384
|
rules = sheet.cssRules;
|
|
@@ -2436,4 +2508,4 @@ export {
|
|
|
2436
2508
|
Carousel
|
|
2437
2509
|
};
|
|
2438
2510
|
|
|
2439
|
-
//# debugId=
|
|
2511
|
+
//# debugId=F15644FF9528586E64756E2164756E21
|
|
@@ -1895,6 +1895,76 @@ function classNames(...parts) {
|
|
|
1895
1895
|
import * as $2 from "svelte/internal/client";
|
|
1896
1896
|
import { untrack } from "svelte";
|
|
1897
1897
|
|
|
1898
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1899
|
+
var sheetIndex = new WeakMap;
|
|
1900
|
+
function resetDirectionStyleSheetIndex() {
|
|
1901
|
+
sheetIndex = new WeakMap;
|
|
1902
|
+
}
|
|
1903
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1904
|
+
let rules;
|
|
1905
|
+
try {
|
|
1906
|
+
rules = sheet.cssRules;
|
|
1907
|
+
} catch {
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
const cached = sheetIndex.get(sheet);
|
|
1911
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1912
|
+
return cached.declaresDirection;
|
|
1913
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1914
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1915
|
+
scanRuleList(rules, scan);
|
|
1916
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1917
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1918
|
+
} else {
|
|
1919
|
+
sheetIndex.delete(sheet);
|
|
1920
|
+
}
|
|
1921
|
+
return scan.declaresDirection;
|
|
1922
|
+
}
|
|
1923
|
+
function scanRuleList(rules, state) {
|
|
1924
|
+
for (const rule of Array.from(rules)) {
|
|
1925
|
+
if (state.declaresDirection)
|
|
1926
|
+
return;
|
|
1927
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1928
|
+
state.cacheable = false;
|
|
1929
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1930
|
+
if (imported) {
|
|
1931
|
+
try {
|
|
1932
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1933
|
+
if (isRuleCollection(importedRules))
|
|
1934
|
+
scanRuleList(importedRules, state);
|
|
1935
|
+
} catch {
|
|
1936
|
+
state.declaresDirection = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
const style = Reflect.get(rule, "style");
|
|
1942
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1943
|
+
state.declaresDirection = true;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!("cssRules" in rule))
|
|
1947
|
+
continue;
|
|
1948
|
+
try {
|
|
1949
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1950
|
+
if (isRuleCollection(nested))
|
|
1951
|
+
scanRuleList(nested, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function isRuleCollection(value) {
|
|
1959
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1960
|
+
return true;
|
|
1961
|
+
if (Array.isArray(value))
|
|
1962
|
+
return true;
|
|
1963
|
+
if (typeof value !== "object" || value === null)
|
|
1964
|
+
return false;
|
|
1965
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1898
1968
|
// ../../node_modules/esm-env/true.js
|
|
1899
1969
|
var true_default = true;
|
|
1900
1970
|
// src/utilities/dev-warn.ts
|
|
@@ -2408,6 +2478,7 @@ function invalidateComputedDirections() {
|
|
|
2408
2478
|
});
|
|
2409
2479
|
}
|
|
2410
2480
|
function invalidatePortalDirection() {
|
|
2481
|
+
resetDirectionStyleSheetIndex();
|
|
2411
2482
|
if (computedDirectionObservations.size === 0)
|
|
2412
2483
|
return;
|
|
2413
2484
|
refreshMediaQueryObservers();
|
|
@@ -5112,4 +5183,4 @@ export {
|
|
|
5112
5183
|
Combobox
|
|
5113
5184
|
};
|
|
5114
5185
|
|
|
5115
|
-
//# debugId=
|
|
5186
|
+
//# debugId=1D6B62651B7B3D7164756E2164756E21
|
|
@@ -1895,6 +1895,76 @@ function classNames(...parts) {
|
|
|
1895
1895
|
import * as $2 from "svelte/internal/client";
|
|
1896
1896
|
import { untrack } from "svelte";
|
|
1897
1897
|
|
|
1898
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1899
|
+
var sheetIndex = new WeakMap;
|
|
1900
|
+
function resetDirectionStyleSheetIndex() {
|
|
1901
|
+
sheetIndex = new WeakMap;
|
|
1902
|
+
}
|
|
1903
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1904
|
+
let rules;
|
|
1905
|
+
try {
|
|
1906
|
+
rules = sheet.cssRules;
|
|
1907
|
+
} catch {
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
const cached = sheetIndex.get(sheet);
|
|
1911
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1912
|
+
return cached.declaresDirection;
|
|
1913
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1914
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1915
|
+
scanRuleList(rules, scan);
|
|
1916
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1917
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1918
|
+
} else {
|
|
1919
|
+
sheetIndex.delete(sheet);
|
|
1920
|
+
}
|
|
1921
|
+
return scan.declaresDirection;
|
|
1922
|
+
}
|
|
1923
|
+
function scanRuleList(rules, state) {
|
|
1924
|
+
for (const rule of Array.from(rules)) {
|
|
1925
|
+
if (state.declaresDirection)
|
|
1926
|
+
return;
|
|
1927
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1928
|
+
state.cacheable = false;
|
|
1929
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1930
|
+
if (imported) {
|
|
1931
|
+
try {
|
|
1932
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1933
|
+
if (isRuleCollection(importedRules))
|
|
1934
|
+
scanRuleList(importedRules, state);
|
|
1935
|
+
} catch {
|
|
1936
|
+
state.declaresDirection = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
const style = Reflect.get(rule, "style");
|
|
1942
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1943
|
+
state.declaresDirection = true;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!("cssRules" in rule))
|
|
1947
|
+
continue;
|
|
1948
|
+
try {
|
|
1949
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1950
|
+
if (isRuleCollection(nested))
|
|
1951
|
+
scanRuleList(nested, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function isRuleCollection(value) {
|
|
1959
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1960
|
+
return true;
|
|
1961
|
+
if (Array.isArray(value))
|
|
1962
|
+
return true;
|
|
1963
|
+
if (typeof value !== "object" || value === null)
|
|
1964
|
+
return false;
|
|
1965
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1898
1968
|
// ../../node_modules/esm-env/true.js
|
|
1899
1969
|
var true_default = true;
|
|
1900
1970
|
// src/utilities/dev-warn.ts
|
|
@@ -2408,6 +2478,7 @@ function invalidateComputedDirections() {
|
|
|
2408
2478
|
});
|
|
2409
2479
|
}
|
|
2410
2480
|
function invalidatePortalDirection() {
|
|
2481
|
+
resetDirectionStyleSheetIndex();
|
|
2411
2482
|
if (computedDirectionObservations.size === 0)
|
|
2412
2483
|
return;
|
|
2413
2484
|
refreshMediaQueryObservers();
|
|
@@ -3559,6 +3630,8 @@ function matchesDirectionStyleRule(element, getParentElement) {
|
|
|
3559
3630
|
for (const [sheet, fallbackRoot] of styleSheets) {
|
|
3560
3631
|
if (!isActiveStyleSheet(sheet))
|
|
3561
3632
|
continue;
|
|
3633
|
+
if (!styleSheetDeclaresDirection(sheet))
|
|
3634
|
+
continue;
|
|
3562
3635
|
let rules;
|
|
3563
3636
|
try {
|
|
3564
3637
|
rules = sheet.cssRules;
|
|
@@ -5320,4 +5393,4 @@ export {
|
|
|
5320
5393
|
Command_menu as CommandMenu
|
|
5321
5394
|
};
|
|
5322
5395
|
|
|
5323
|
-
//# debugId=
|
|
5396
|
+
//# debugId=02BBC62F0BC67BFC64756E2164756E21
|
|
@@ -1895,6 +1895,76 @@ function classNames(...parts) {
|
|
|
1895
1895
|
import * as $2 from "svelte/internal/client";
|
|
1896
1896
|
import { untrack } from "svelte";
|
|
1897
1897
|
|
|
1898
|
+
// src/_internal/text-direction-sheet-index.ts
|
|
1899
|
+
var sheetIndex = new WeakMap;
|
|
1900
|
+
function resetDirectionStyleSheetIndex() {
|
|
1901
|
+
sheetIndex = new WeakMap;
|
|
1902
|
+
}
|
|
1903
|
+
function styleSheetDeclaresDirection(sheet) {
|
|
1904
|
+
let rules;
|
|
1905
|
+
try {
|
|
1906
|
+
rules = sheet.cssRules;
|
|
1907
|
+
} catch {
|
|
1908
|
+
return true;
|
|
1909
|
+
}
|
|
1910
|
+
const cached = sheetIndex.get(sheet);
|
|
1911
|
+
if (cached !== undefined && cached.ruleCount === rules.length)
|
|
1912
|
+
return cached.declaresDirection;
|
|
1913
|
+
const isConstructed = Reflect.get(sheet, "ownerNode") == null;
|
|
1914
|
+
const scan = { declaresDirection: false, cacheable: !isConstructed };
|
|
1915
|
+
scanRuleList(rules, scan);
|
|
1916
|
+
if (scan.cacheable || scan.declaresDirection) {
|
|
1917
|
+
sheetIndex.set(sheet, { ruleCount: rules.length, declaresDirection: scan.declaresDirection });
|
|
1918
|
+
} else {
|
|
1919
|
+
sheetIndex.delete(sheet);
|
|
1920
|
+
}
|
|
1921
|
+
return scan.declaresDirection;
|
|
1922
|
+
}
|
|
1923
|
+
function scanRuleList(rules, state) {
|
|
1924
|
+
for (const rule of Array.from(rules)) {
|
|
1925
|
+
if (state.declaresDirection)
|
|
1926
|
+
return;
|
|
1927
|
+
if (Reflect.get(rule, "type") === 3) {
|
|
1928
|
+
state.cacheable = false;
|
|
1929
|
+
const imported = Reflect.get(rule, "styleSheet");
|
|
1930
|
+
if (imported) {
|
|
1931
|
+
try {
|
|
1932
|
+
const importedRules = Reflect.get(imported, "cssRules");
|
|
1933
|
+
if (isRuleCollection(importedRules))
|
|
1934
|
+
scanRuleList(importedRules, state);
|
|
1935
|
+
} catch {
|
|
1936
|
+
state.declaresDirection = true;
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
const style = Reflect.get(rule, "style");
|
|
1942
|
+
if (typeof style === "object" && style !== null && typeof Reflect.get(rule, "selectorText") === "string" && Boolean(Reflect.get(style, "direction"))) {
|
|
1943
|
+
state.declaresDirection = true;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
if (!("cssRules" in rule))
|
|
1947
|
+
continue;
|
|
1948
|
+
try {
|
|
1949
|
+
const nested = Reflect.get(rule, "cssRules");
|
|
1950
|
+
if (isRuleCollection(nested))
|
|
1951
|
+
scanRuleList(nested, state);
|
|
1952
|
+
} catch {
|
|
1953
|
+
state.declaresDirection = true;
|
|
1954
|
+
return;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
function isRuleCollection(value) {
|
|
1959
|
+
if (typeof CSSRuleList !== "undefined" && value instanceof CSSRuleList)
|
|
1960
|
+
return true;
|
|
1961
|
+
if (Array.isArray(value))
|
|
1962
|
+
return true;
|
|
1963
|
+
if (typeof value !== "object" || value === null)
|
|
1964
|
+
return false;
|
|
1965
|
+
return typeof Reflect.get(value, Symbol.iterator) === "function";
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1898
1968
|
// ../../node_modules/esm-env/true.js
|
|
1899
1969
|
var true_default = true;
|
|
1900
1970
|
// src/utilities/dev-warn.ts
|
|
@@ -2408,6 +2478,7 @@ function invalidateComputedDirections() {
|
|
|
2408
2478
|
});
|
|
2409
2479
|
}
|
|
2410
2480
|
function invalidatePortalDirection() {
|
|
2481
|
+
resetDirectionStyleSheetIndex();
|
|
2411
2482
|
if (computedDirectionObservations.size === 0)
|
|
2412
2483
|
return;
|
|
2413
2484
|
refreshMediaQueryObservers();
|
|
@@ -3789,6 +3860,8 @@ function matchesDirectionStyleRule(element, getParentElement) {
|
|
|
3789
3860
|
for (const [sheet, fallbackRoot] of styleSheets) {
|
|
3790
3861
|
if (!isActiveStyleSheet(sheet))
|
|
3791
3862
|
continue;
|
|
3863
|
+
if (!styleSheetDeclaresDirection(sheet))
|
|
3864
|
+
continue;
|
|
3792
3865
|
let rules;
|
|
3793
3866
|
try {
|
|
3794
3867
|
rules = sheet.cssRules;
|
|
@@ -5855,4 +5928,4 @@ export {
|
|
|
5855
5928
|
ContextMenu
|
|
5856
5929
|
};
|
|
5857
5930
|
|
|
5858
|
-
//# debugId=
|
|
5931
|
+
//# debugId=1DC7456E8BF2289B64756E2164756E21
|