@gild-ui/react 0.1.0-alpha.2 → 0.1.0-alpha.3
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/README.md +2 -0
- package/dist/Accordion.d.cts +1 -1
- package/dist/Accordion.d.mts +2 -2
- package/dist/Accordion.mjs +3 -3
- package/dist/{Accordion.types-DxvwAfZc.d.mts → Accordion.types-D9BgLxCR.d.mts} +31 -24
- package/dist/Alert.d.cts +1 -1
- package/dist/Alert.d.mts +1 -1
- package/dist/Alert.mjs +3 -3
- package/dist/AppBar.d.cts +1 -1
- package/dist/AppBar.d.mts +1 -1
- package/dist/Autocomplete.d.cts +1 -1
- package/dist/Autocomplete.d.mts +1 -1
- package/dist/Autocomplete.mjs +3 -3
- package/dist/Avatar.d.cts +1 -1
- package/dist/Avatar.d.mts +1 -1
- package/dist/Avatar.mjs +1 -1
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Badge.cjs +2 -1
- package/dist/Badge.d.cts +1 -1
- package/dist/Badge.d.mts +1 -1
- package/dist/Badge.mjs +3 -2
- package/dist/Breadcrumbs.d.cts +1 -1
- package/dist/Breadcrumbs.d.mts +2 -2
- package/dist/Breadcrumbs.mjs +3 -3
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +2 -2
- package/dist/Button.mjs +2 -2
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +2 -2
- package/dist/ButtonGroup.mjs +1 -1
- package/dist/CacheProvider.mjs +1 -1
- package/dist/Card.d.cts +2 -2
- package/dist/Card.d.mts +4 -4
- package/dist/Card.mjs +3 -3
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.d.cts +1 -1
- package/dist/Checkbox.d.mts +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/Chip.d.cts +1 -1
- package/dist/Chip.d.mts +1 -1
- package/dist/Chip.mjs +3 -3
- package/dist/CircularProgress.d.cts +1 -1
- package/dist/CircularProgress.d.mts +2 -2
- package/dist/CircularProgress.mjs +1 -1
- package/dist/Collapse.d.cts +2 -2
- package/dist/Collapse.d.mts +2 -2
- package/dist/Collapse.mjs +2 -2
- package/dist/Direction.cjs +8 -0
- package/dist/Direction.d.cts +2 -0
- package/dist/Direction.d.mts +2 -0
- package/dist/Direction.mjs +1 -0
- package/dist/Drawer.d.cts +1 -1
- package/dist/Drawer.d.mts +3 -3
- package/dist/Drawer.mjs +1 -1
- package/dist/Fab.d.cts +1 -1
- package/dist/Fab.d.mts +2 -2
- package/dist/Fab.mjs +1 -1
- package/dist/FabMenu.d.cts +1 -1
- package/dist/FabMenu.d.mts +2 -2
- package/dist/FabMenu.mjs +3 -3
- package/dist/Fade.d.cts +1 -1
- package/dist/Fade.d.mts +1 -1
- package/dist/Fade.mjs +1 -1
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/FocusTrap.d.cts +1 -1
- package/dist/FocusTrap.d.mts +1 -1
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.mts +1 -1
- package/dist/FormControl.d.cts +1 -1
- package/dist/FormControl.d.mts +1 -1
- package/dist/FormControl.mjs +1 -1
- package/dist/FormHelperText.d.cts +1 -1
- package/dist/FormHelperText.d.mts +2 -2
- package/dist/FormLabel.d.cts +1 -1
- package/dist/FormLabel.d.mts +2 -2
- package/dist/Global.d.cts +1 -1
- package/dist/Global.d.mts +1 -1
- package/dist/Global.mjs +1 -1
- package/dist/Grid.d.cts +1 -4
- package/dist/Grid.d.mts +1 -4
- package/dist/Grow.d.cts +1 -1
- package/dist/Grow.d.mts +1 -1
- package/dist/Grow.mjs +1 -1
- package/dist/{Icon-DBgqmUb3.mjs → Icon-D1gwHK1a.mjs} +1 -1
- package/dist/Icon.d.cts +2 -2
- package/dist/Icon.d.mts +2 -2
- package/dist/Icon.mjs +1 -1
- package/dist/Image.d.cts +1 -1
- package/dist/Image.d.mts +1 -1
- package/dist/{LayoutProvider-Eb5Vp2BZ.mjs → LayoutProvider-B5BcHN00.mjs} +1 -1
- package/dist/LayoutProvider.mjs +1 -1
- package/dist/LinearProgress.d.cts +1 -1
- package/dist/LinearProgress.d.mts +2 -2
- package/dist/LinearProgress.mjs +1 -1
- package/dist/Link.d.cts +1 -1
- package/dist/Link.d.mts +2 -2
- package/dist/Link.mjs +1 -1
- package/dist/{Menu-Ca7aUnLg.mjs → Menu-Bl9AnuYs.mjs} +3 -3
- package/dist/Menu.d.cts +2 -2
- package/dist/Menu.d.mts +3 -3
- package/dist/Menu.mjs +4 -4
- package/dist/{MenuItem-w7D1-AYW.mjs → MenuItem-BJclGwrq.mjs} +4 -4
- package/dist/MenuItem.d.cts +2 -2
- package/dist/MenuItem.d.mts +2 -2
- package/dist/MenuItem.mjs +1 -1
- package/dist/Modal.d.cts +1 -1
- package/dist/Modal.d.mts +2 -2
- package/dist/NativeSelect.d.cts +2 -2
- package/dist/NativeSelect.d.mts +2 -2
- package/dist/NativeSelect.mjs +2 -2
- package/dist/NavTree.cjs +5 -4
- package/dist/NavTree.d.cts +1 -1
- package/dist/NavTree.d.mts +1 -1
- package/dist/NavTree.mjs +7 -6
- package/dist/NumberInput.d.cts +1 -1
- package/dist/NumberInput.d.mts +1 -1
- package/dist/NumberInput.mjs +3 -3
- package/dist/Pagination.cjs +3 -1
- package/dist/Pagination.d.cts +1 -1
- package/dist/Pagination.d.mts +2 -2
- package/dist/Pagination.mjs +5 -3
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +2 -2
- package/dist/Paper.mjs +1 -1
- package/dist/{Popover-ZsN1txGi.mjs → Popover-CfSAd8YI.mjs} +1 -1
- package/dist/Popover.d.cts +1 -1
- package/dist/Popover.d.mts +3 -3
- package/dist/Popover.mjs +1 -1
- package/dist/Pressable.d.cts +1 -1
- package/dist/Pressable.d.mts +2 -2
- package/dist/Pressable.mjs +2 -2
- package/dist/Quote.d.cts +2 -5
- package/dist/Quote.d.mts +2 -5
- package/dist/Radio.cjs +1 -1
- package/dist/Radio.d.cts +1 -1
- package/dist/Radio.d.mts +1 -1
- package/dist/Radio.mjs +1 -1
- package/dist/RangeInput.cjs +3 -2
- package/dist/RangeInput.d.cts +1 -1
- package/dist/RangeInput.d.mts +1 -1
- package/dist/RangeInput.mjs +6 -5
- package/dist/Rating.d.cts +1 -1
- package/dist/Rating.d.mts +1 -1
- package/dist/Rating.mjs +2 -2
- package/dist/ScrollArea.d.cts +1 -1
- package/dist/ScrollArea.d.mts +1 -1
- package/dist/ScrollArea.mjs +2 -2
- package/dist/Select.d.cts +2 -2
- package/dist/Select.d.mts +2 -2
- package/dist/Select.mjs +4 -4
- package/dist/Sidebar.d.cts +2 -2
- package/dist/Sidebar.d.mts +3 -3
- package/dist/Sidebar.mjs +2 -2
- package/dist/Skeleton.d.cts +1 -1
- package/dist/Skeleton.d.mts +1 -1
- package/dist/Skeleton.mjs +1 -1
- package/dist/Slide.d.cts +1 -1
- package/dist/Slide.d.mts +1 -1
- package/dist/Slide.mjs +1 -1
- package/dist/Snackbar.d.cts +2 -2
- package/dist/Snackbar.d.mts +2 -2
- package/dist/Snackbar.mjs +1 -1
- package/dist/StyleSheet.d.cts +1 -1
- package/dist/StyleSheet.d.mts +1 -1
- package/dist/StyleSheet.mjs +1 -1
- package/dist/Switch.d.cts +1 -1
- package/dist/Switch.d.mts +1 -1
- package/dist/Switch.mjs +1 -1
- package/dist/Table.d.cts +2 -2
- package/dist/Table.d.mts +3 -3
- package/dist/Table.mjs +2 -2
- package/dist/Tabs.d.cts +1 -1
- package/dist/Tabs.d.mts +1 -1
- package/dist/Tabs.mjs +6 -6
- package/dist/TextInput.d.cts +1 -1
- package/dist/TextInput.d.mts +1 -1
- package/dist/TextInput.mjs +1 -1
- package/dist/{ThemeProvider-DuhfCo2F.mjs → ThemeProvider-Bys1dMk1.mjs} +1 -1
- package/dist/ThemeProvider.d.cts +1 -1
- package/dist/ThemeProvider.d.mts +1 -1
- package/dist/ThemeProvider.mjs +1 -1
- package/dist/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton.d.mts +3 -3
- package/dist/ToggleButton.mjs +1 -1
- package/dist/{Tooltip-Bt5lr52c.mjs → Tooltip-CJy8re2A.mjs} +3 -3
- package/dist/Tooltip.d.cts +1 -1
- package/dist/Tooltip.d.mts +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/TransferList.d.cts +1 -1
- package/dist/TransferList.d.mts +1 -1
- package/dist/TransferList.mjs +2 -2
- package/dist/Typography.d.cts +1 -1
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +1 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/Zoom.d.cts +1 -1
- package/dist/Zoom.d.mts +1 -1
- package/dist/Zoom.mjs +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/css.d.cts +1 -1
- package/dist/css.d.mts +1 -1
- package/dist/css.mjs +1 -1
- package/dist/engine.cjs +17 -1
- package/dist/engine.d.cts +11 -7
- package/dist/engine.d.mts +11 -7
- package/dist/engine.mjs +7 -3
- package/dist/{index-Cqse4F32.d.mts → index-BK5Ar8n0.d.mts} +2 -2
- package/dist/{index-CAMwJg71.d.mts → index-Bod39qW3.d.mts} +1 -1
- package/dist/{index-Djum1XiO.d.mts → index-C6rFzB7A.d.mts} +1 -1
- package/dist/{index-phuw9VpI.d.mts → index-CNqy6U_D.d.mts} +1 -1
- package/dist/{index-Dc7XiT_v.d.cts → index-CP18066J.d.cts} +1 -1
- package/dist/{index-B3jHcw5h.d.cts → index-Ca2px7jQ.d.cts} +1 -1
- package/dist/{index-IB1nBqEO.d.mts → index-DCfS0jjc.d.mts} +2 -2
- package/dist/{index-DtfH-dhY.d.mts → index-DLqz44Uv.d.mts} +2 -2
- package/dist/{index-CsYK-ukA.d.mts → index-DO43Pwto.d.mts} +1 -1
- package/dist/{index-D9Gg2NWm.d.mts → index-DuwQox7g.d.mts} +1 -1
- package/dist/{index-CLQt_mOa.d.mts → index-Ziqkp-mN.d.mts} +1 -1
- package/dist/{index-Bf-ZHQLG.d.mts → index-dDj2BYj-.d.mts} +2 -2
- package/dist/{index-DPQxIeZF.d.cts → index-phg5ivgg.d.cts} +29 -22
- package/dist/index-r0c0HTLB.d.mts +1 -0
- package/dist/index.cjs +7 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +6 -5
- package/dist/keyframes.d.cts +1 -1
- package/dist/keyframes.d.mts +1 -1
- package/dist/keyframes.mjs +1 -1
- package/dist/mirrored-BnvWIH18.mjs +15 -0
- package/dist/mirrored-C7vCkRBd.cjs +32 -0
- package/dist/server.mjs +1 -1
- package/dist/styleEngine-B3C0EmVQ.mjs +1 -0
- package/dist/styled.d.cts +1 -1
- package/dist/styled.d.mts +1 -1
- package/dist/{useDefaultProps-BTQGhvfY.mjs → useDefaultProps-fdTXb3rk.mjs} +1 -1
- package/dist/useDefaultProps.d.cts +1 -1
- package/dist/useDefaultProps.d.mts +1 -1
- package/dist/useDefaultProps.mjs +1 -1
- package/dist/{useLiveValue-CqiwCr56.mjs → useLiveValue-DNV2p3Op.mjs} +1 -1
- package/dist/useMediaQuery.d.cts +1 -1
- package/dist/useMediaQuery.d.mts +1 -1
- package/dist/useStyle.d.cts +1 -1
- package/dist/useStyle.d.mts +1 -1
- package/dist/useStyle.mjs +1 -1
- package/dist/useTheme.d.cts +1 -1
- package/dist/useTheme.d.mts +1 -1
- package/dist/useTheme.mjs +1 -1
- package/dist/{useTransition-BzwifRXe.d.mts → useTransition-BuGPxbx9.d.mts} +1 -1
- package/dist/{useTransition-lt8_WKk-.d.cts → useTransition-CRYyCWcL.d.cts} +1 -1
- package/dist/{useTransitionChild-C18w474Q.mjs → useTransitionChild-BMQ1s7wj.mjs} +1 -1
- package/dist/withStyle.d.cts +1 -1
- package/dist/withStyle.d.mts +1 -1
- package/dist/withStyle.mjs +1 -1
- package/dist/withTheme.d.cts +1 -1
- package/dist/withTheme.d.mts +1 -1
- package/dist/withTheme.mjs +1 -1
- package/package.json +18 -7
- package/dist/index-yCzwpbBP.d.mts +0 -1
- package/dist/styleEngine-CLid4cmR.mjs +0 -1
package/dist/Zoom.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as useTransitionChild } from "./useTransitionChild-
|
|
2
|
+
import { t as useTransitionChild } from "./useTransitionChild-BMQ1s7wj.mjs";
|
|
3
3
|
// src/Zoom/Zoom.tsx
|
|
4
4
|
/**
|
|
5
5
|
* @description Zooms one child in from nothing and out to nothing. The child holds a `ref` and
|
package/dist/catalog.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as Theme } from "./index-phg5ivgg.cjs";
|
|
2
2
|
import { CatalogContent, CatalogEntry as CatalogEntry$1, CatalogOption as CatalogOption$1, CatalogTwoWay, CatalogVariant, DesignSystemCatalog as DesignSystemCatalog$1, ExampleNode, JsonValue } from "@gild-ui/core/catalog";
|
|
3
3
|
/** A theme scale a prop's values come from - `theme.palette`'s keys for `color`. */
|
|
4
4
|
type ThemeScale = keyof Theme;
|
package/dist/catalog.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as Theme } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
import { CatalogContent, CatalogEntry as CatalogEntry$1, CatalogOption as CatalogOption$1, CatalogTwoWay, CatalogVariant, DesignSystemCatalog as DesignSystemCatalog$1, ExampleNode, JsonValue } from "@gild-ui/core/catalog";
|
|
3
3
|
/** A theme scale a prop's values come from - `theme.palette`'s keys for `color`. */
|
|
4
4
|
type ThemeScale = keyof Theme;
|
package/dist/css.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as css, g as negate, l as alpha } from "./index-phg5ivgg.cjs";
|
|
2
2
|
export { alpha, css, negate };
|
package/dist/css.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { di as negate, ii as alpha, si as css } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
export { alpha, css, negate };
|
package/dist/css.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as alpha, c as css, p as negate } from "./styleEngine-B3C0EmVQ.mjs";
|
package/dist/engine.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_CacheProvider = require("./CacheProvider.cjs");
|
|
3
|
+
const require_mirrored = require("./mirrored-C7vCkRBd.cjs");
|
|
3
4
|
const require_themes = require("./themes-k-PEE5O9.cjs");
|
|
4
5
|
let _umber_style_react = require("@umber-style/react");
|
|
6
|
+
let _umber_style_rtl = require("@umber-style/rtl");
|
|
5
7
|
let _umber_style_cache = require("@umber-style/cache");
|
|
6
8
|
// src/engine/styleCache.ts
|
|
7
9
|
/**
|
|
@@ -30,10 +32,12 @@ const styleCache = (0, _umber_style_cache.createCache)({
|
|
|
30
32
|
nonce: typeof document === "undefined" ? void 0 : document.querySelector("script[nonce]")?.nonce || void 0
|
|
31
33
|
});
|
|
32
34
|
// src/engine/configure.ts
|
|
33
|
-
function configure({ serverTheme, cache, prefix } = {}) {
|
|
35
|
+
function configure({ serverTheme, cache, prefix, plugins } = {}) {
|
|
36
|
+
require_mirrored.setMirrored(plugins);
|
|
34
37
|
(0, _umber_style_react.configure)({
|
|
35
38
|
cache: cache ?? styleCache,
|
|
36
39
|
prefix,
|
|
40
|
+
plugins,
|
|
37
41
|
serverTheme: serverTheme ?? require_themes.baseTheme
|
|
38
42
|
});
|
|
39
43
|
}
|
|
@@ -118,6 +122,12 @@ Object.defineProperty(exports, "defineTheme", {
|
|
|
118
122
|
return _umber_style_react.defineTheme;
|
|
119
123
|
}
|
|
120
124
|
});
|
|
125
|
+
Object.defineProperty(exports, "dir", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function() {
|
|
128
|
+
return _umber_style_rtl.dir;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
121
131
|
Object.defineProperty(exports, "fallback", {
|
|
122
132
|
enumerable: true,
|
|
123
133
|
get: function() {
|
|
@@ -125,6 +135,12 @@ Object.defineProperty(exports, "fallback", {
|
|
|
125
135
|
}
|
|
126
136
|
});
|
|
127
137
|
exports.globalStyles = globalStyles;
|
|
138
|
+
Object.defineProperty(exports, "rtl", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function() {
|
|
141
|
+
return _umber_style_rtl.rtl;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
128
144
|
Object.defineProperty(exports, "setNonceSource", {
|
|
129
145
|
enumerable: true,
|
|
130
146
|
get: function() {
|
package/dist/engine.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as AppTheme, Ja as Exact, S as variable, _ as setNonceSource, d as configureEngine, j as Theme$2, k as EngineStyleTheme, m as fallback, p as defineTheme, u as asIs, x as val } from "./index-phg5ivgg.cjs";
|
|
2
2
|
import { CacheProvider } from "./CacheProvider.cjs";
|
|
3
3
|
import { Register } from "@gild-ui/core/theme";
|
|
4
|
-
import { SerializedStyles, UmberCache } from "@umber-style/react";
|
|
4
|
+
import { CachePlugin, CachePlugin as CachePlugin$1, SerializedStyles, ThemeRefs, UmberCache } from "@umber-style/react";
|
|
5
5
|
import { createCache } from "@umber-style/cache";
|
|
6
|
+
import { DirValues, RtlOptions, dir, rtl } from "@umber-style/rtl";
|
|
6
7
|
type EngineOptions = Parameters<typeof configureEngine>[0];
|
|
7
8
|
interface ConfigureOwnProps<T> {
|
|
8
9
|
/** The theme of anything with no provider above it: server components, and the first render. Defaults to the built-in `baseTheme`. */
|
|
@@ -11,13 +12,15 @@ interface ConfigureOwnProps<T> {
|
|
|
11
12
|
cache?: EngineOptions['cache'];
|
|
12
13
|
/** The class prefix. It is the prefix of the cache, which is `soroush` for `styleCache`, so leave it out unless the cache is your own. */
|
|
13
14
|
prefix?: EngineOptions['prefix'];
|
|
15
|
+
/** What each declaration goes through before it is written, in order: `[rtl()]` writes both directions of a style in one class. None by default. */
|
|
16
|
+
plugins?: readonly CachePlugin$1[];
|
|
14
17
|
}
|
|
15
18
|
/** The options once the app registers its themes: it has no built-in theme to fall back to, so `serverTheme` is required. */
|
|
16
19
|
interface RegisteredConfigureProps<T> extends Omit<ConfigureOwnProps<T>, 'serverTheme'> {
|
|
17
20
|
/** The theme of anything with no provider above it: server components, and the first render. */
|
|
18
21
|
serverTheme: T & Exact<T, AppTheme>;
|
|
19
22
|
}
|
|
20
|
-
type ConfigureOptions<T = Theme$
|
|
23
|
+
type ConfigureOptions<T = Theme$2> = Register extends {
|
|
21
24
|
themes: unknown;
|
|
22
25
|
} ? RegisteredConfigureProps<T> : ConfigureOwnProps<T>;
|
|
23
26
|
/**
|
|
@@ -25,9 +28,10 @@ type ConfigureOptions<T = Theme$1> = Register extends {
|
|
|
25
28
|
* `configure({ serverTheme: themes.light })`. `serverTheme` is the theme of anything with no provider
|
|
26
29
|
* above it - server components, and the page until the browser hydrates - so pass the same one on
|
|
27
30
|
* the server and in the browser. Every entry of the app may call it: the same options again do
|
|
28
|
-
* nothing.
|
|
31
|
+
* nothing. `plugins` is the list of plugins of the style: `configure({ serverTheme, plugins: [rtl()] })`
|
|
32
|
+
* mirrors the app for a right-to-left page (`rtl` is exported by `@gild-ui/react/engine`). Raw parts of a theme are marked in the theme itself (`asIs()` and `defineTheme`).
|
|
29
33
|
*/
|
|
30
|
-
export declare function configure<T extends Theme$
|
|
34
|
+
export declare function configure<T extends Theme$2 = Theme$2>(...args: Register extends {
|
|
31
35
|
themes: unknown;
|
|
32
36
|
} ? [options: Readonly<RegisteredConfigureProps<T>>] : [options?: Readonly<ConfigureOwnProps<T>>]): void;
|
|
33
37
|
/**
|
|
@@ -55,5 +59,5 @@ declare const styleCache: UmberCache;
|
|
|
55
59
|
* theme-driven body colors. Font-family, webfont loading, and anything else
|
|
56
60
|
* app-specific are app policy - compose this into your own `Global` styles array.
|
|
57
61
|
*/
|
|
58
|
-
export declare const globalStyles: (theme:
|
|
59
|
-
export { CacheProvider, type ConfigureOptions, asIs, createCache, defineTheme, fallback, setNonceSource, styleCache, val, variable };
|
|
62
|
+
export declare const globalStyles: (theme: EngineStyleTheme) => SerializedStyles;
|
|
63
|
+
export { type CachePlugin, CacheProvider, type ConfigureOptions, type DirValues, type RtlOptions, type ThemeRefs, asIs, createCache, defineTheme, dir, fallback, rtl, setNonceSource, styleCache, val, variable };
|
package/dist/engine.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { _i as
|
|
1
|
+
import { _i as variable, ai as asIs, ci as defineTheme, fi as setNonceSource, gi as val, i as AppTheme, l as Theme$2, li as fallback, oi as configureEngine, s as EngineStyleTheme, xi as Exact } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
import { CacheProvider } from "./CacheProvider.mjs";
|
|
3
|
-
import { SerializedStyles, UmberCache } from "@umber-style/react";
|
|
3
|
+
import { CachePlugin, CachePlugin as CachePlugin$1, SerializedStyles, ThemeRefs, UmberCache } from "@umber-style/react";
|
|
4
4
|
import { Register } from "@gild-ui/core/theme";
|
|
5
|
+
import { DirValues, RtlOptions, dir, rtl } from "@umber-style/rtl";
|
|
5
6
|
import { createCache } from "@umber-style/cache";
|
|
6
7
|
type EngineOptions = Parameters<typeof configureEngine>[0];
|
|
7
8
|
interface ConfigureOwnProps<T> {
|
|
@@ -11,13 +12,15 @@ interface ConfigureOwnProps<T> {
|
|
|
11
12
|
cache?: EngineOptions['cache'];
|
|
12
13
|
/** The class prefix. It is the prefix of the cache, which is `soroush` for `styleCache`, so leave it out unless the cache is your own. */
|
|
13
14
|
prefix?: EngineOptions['prefix'];
|
|
15
|
+
/** What each declaration goes through before it is written, in order: `[rtl()]` writes both directions of a style in one class. None by default. */
|
|
16
|
+
plugins?: readonly CachePlugin$1[];
|
|
14
17
|
}
|
|
15
18
|
/** The options once the app registers its themes: it has no built-in theme to fall back to, so `serverTheme` is required. */
|
|
16
19
|
interface RegisteredConfigureProps<T> extends Omit<ConfigureOwnProps<T>, 'serverTheme'> {
|
|
17
20
|
/** The theme of anything with no provider above it: server components, and the first render. */
|
|
18
21
|
serverTheme: T & Exact<T, AppTheme>;
|
|
19
22
|
}
|
|
20
|
-
type ConfigureOptions<T = Theme$
|
|
23
|
+
type ConfigureOptions<T = Theme$2> = Register extends {
|
|
21
24
|
themes: unknown;
|
|
22
25
|
} ? RegisteredConfigureProps<T> : ConfigureOwnProps<T>;
|
|
23
26
|
/**
|
|
@@ -25,9 +28,10 @@ type ConfigureOptions<T = Theme$1> = Register extends {
|
|
|
25
28
|
* `configure({ serverTheme: themes.light })`. `serverTheme` is the theme of anything with no provider
|
|
26
29
|
* above it - server components, and the page until the browser hydrates - so pass the same one on
|
|
27
30
|
* the server and in the browser. Every entry of the app may call it: the same options again do
|
|
28
|
-
* nothing.
|
|
31
|
+
* nothing. `plugins` is the list of plugins of the style: `configure({ serverTheme, plugins: [rtl()] })`
|
|
32
|
+
* mirrors the app for a right-to-left page (`rtl` is exported by `@gild-ui/react/engine`). Raw parts of a theme are marked in the theme itself (`asIs()` and `defineTheme`).
|
|
29
33
|
*/
|
|
30
|
-
export declare function configure<T extends Theme$
|
|
34
|
+
export declare function configure<T extends Theme$2 = Theme$2>(...args: Register extends {
|
|
31
35
|
themes: unknown;
|
|
32
36
|
} ? [options: Readonly<RegisteredConfigureProps<T>>] : [options?: Readonly<ConfigureOwnProps<T>>]): void;
|
|
33
37
|
/**
|
|
@@ -55,5 +59,5 @@ declare const styleCache: UmberCache;
|
|
|
55
59
|
* theme-driven body colors. Font-family, webfont loading, and anything else
|
|
56
60
|
* app-specific are app policy - compose this into your own `Global` styles array.
|
|
57
61
|
*/
|
|
58
|
-
export declare const globalStyles: (theme:
|
|
59
|
-
export { CacheProvider, type ConfigureOptions, asIs, createCache, defineTheme, fallback, setNonceSource, styleCache, val, variable };
|
|
62
|
+
export declare const globalStyles: (theme: EngineStyleTheme) => SerializedStyles;
|
|
63
|
+
export { type CachePlugin, CacheProvider, type ConfigureOptions, type DirValues, type RtlOptions, type ThemeRefs, asIs, createCache, defineTheme, dir, fallback, rtl, setNonceSource, styleCache, val, variable };
|
package/dist/engine.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as variable, l as defineTheme, m as setNonceSource, o as asIs, s as configureEngine, u as fallback, y as val } from "./styleEngine-B3C0EmVQ.mjs";
|
|
2
2
|
import { CacheProvider } from "./CacheProvider.mjs";
|
|
3
|
+
import { r as setMirrored } from "./mirrored-BnvWIH18.mjs";
|
|
3
4
|
import { t as baseTheme } from "./themes-BtfQPcbo.mjs";
|
|
4
5
|
import { css } from "@umber-style/react";
|
|
6
|
+
import { dir, rtl } from "@umber-style/rtl";
|
|
5
7
|
import { createCache, createCache as createCache$1 } from "@umber-style/cache";
|
|
6
8
|
// src/engine/styleCache.ts
|
|
7
9
|
/**
|
|
@@ -30,10 +32,12 @@ const styleCache = createCache$1({
|
|
|
30
32
|
nonce: typeof document === "undefined" ? void 0 : document.querySelector("script[nonce]")?.nonce || void 0
|
|
31
33
|
});
|
|
32
34
|
// src/engine/configure.ts
|
|
33
|
-
function configure({ serverTheme, cache, prefix } = {}) {
|
|
35
|
+
function configure({ serverTheme, cache, prefix, plugins } = {}) {
|
|
36
|
+
setMirrored(plugins);
|
|
34
37
|
configureEngine({
|
|
35
38
|
cache: cache ?? styleCache,
|
|
36
39
|
prefix,
|
|
40
|
+
plugins,
|
|
37
41
|
serverTheme: serverTheme ?? baseTheme
|
|
38
42
|
});
|
|
39
43
|
}
|
|
@@ -98,4 +102,4 @@ const globalStyles = (theme) => css`
|
|
|
98
102
|
padding: 0;
|
|
99
103
|
}
|
|
100
104
|
`;
|
|
101
|
-
export { CacheProvider, asIs, configure, createCache, defineTheme, fallback, globalStyles, setNonceSource, styleCache, val, variable };
|
|
105
|
+
export { CacheProvider, asIs, configure, createCache, defineTheme, dir, fallback, globalStyles, rtl, setNonceSource, styleCache, val, variable };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as TransitionTimeout, t as TransitionCallbacks } from "./useTransition-
|
|
1
|
+
import { Ii as CollapseSlot, Ja as StyleOverride, Ka as SlotProps, l as Theme } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
|
+
import { r as TransitionTimeout, t as TransitionCallbacks } from "./useTransition-BuGPxbx9.mjs";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
type CollapseOrientation = 'vertical' | 'horizontal';
|
|
5
5
|
interface CollapseProps extends TransitionCallbacks {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gn as MenuItemSlot, Ja as StyleOverride, Ka as SlotProps, l as Theme } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
import { ElementType, KeyboardEvent, MouseEvent, ReactNode, SyntheticEvent } from "react";
|
|
3
3
|
type MenuItemValue = string | number;
|
|
4
4
|
interface MenuListContextValue {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ja as StyleOverride, Ka as SlotProps, ln as PressableSlot } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
3
3
|
import { PaletteColor } from "@gild-ui/core/theme";
|
|
4
4
|
import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fn as
|
|
1
|
+
import { Fn as ModalCloseReason, Ln as ModalProps } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
import { KeyboardEvent, MouseEvent, Ref, RefCallback, SyntheticEvent } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* @description Accessible overlay primitive: portals its content, dims the page,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ca as StyleOverride, j as Theme, oa as SlotProps, pr as MenuItemSlot } from "./index-phg5ivgg.cjs";
|
|
2
2
|
import { ElementType, KeyboardEvent, MouseEvent, ReactNode, SyntheticEvent } from "react";
|
|
3
3
|
type MenuItemValue = string | number;
|
|
4
4
|
interface MenuListContextValue {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Or as IconSlot, P as TextColorToken, ca as StyleOverride, oa as SlotProps } from "./index-phg5ivgg.cjs";
|
|
2
2
|
import "./Typography.cjs";
|
|
3
3
|
import { SVGProps } from "react";
|
|
4
4
|
import { ThemeIconSizes } from "@gild-ui/core/theme";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { Ja as StyleOverride, Ka as SlotProps, f as TextColorToken, or as IconSlot } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
|
+
import "./index-DO43Pwto.mjs";
|
|
3
3
|
import { SVGProps } from "react";
|
|
4
4
|
import { ThemeIconSizes } from "@gild-ui/core/theme";
|
|
5
5
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import {
|
|
1
|
+
import "./index-Ziqkp-mN.mjs";
|
|
2
|
+
import { $i as ButtonColor, Ja as StyleOverride, Ka as SlotProps, Zi as ButtonGroupSlot, ia as ButtonSize, l as Theme, sa as ButtonVariant } from "./Accordion.types-D9BgLxCR.mjs";
|
|
3
3
|
import { ElementType, HTMLAttributes } from "react";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as TypographyProps } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
declare function Typography({ variant, as, style, className, slotProps, ...rest }: Readonly<TypographyProps>): import("react").JSX.Element;
|
|
3
3
|
export { Typography as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ja as StyleOverride, Ka as SlotProps, hn as PaginationItemSlot, l as Theme$1, vn as PaginationSlot } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
import { ButtonHTMLAttributes, ElementType, HTMLAttributes, ReactNode } from "react";
|
|
3
3
|
import { PaletteColor } from "@gild-ui/core/theme";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { na as ButtonProps } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
3
3
|
export { Button as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import {
|
|
1
|
+
import "./index-Ziqkp-mN.mjs";
|
|
2
|
+
import { Ar as FabSlot, Ka as SlotProps, na as ButtonProps } from "./Accordion.types-D9BgLxCR.mjs";
|
|
3
3
|
import { ReactNode, Ref } from "react";
|
|
4
4
|
type FabVariant = 'circular' | 'extended';
|
|
5
5
|
type FabButtonProps = Omit<ButtonProps, 'variant' | 'shape' | 'endIcon' | 'loading' | 'loadingIndicator' | 'loadingPosition' | 'fullWidth' | 'href' | 'target' | 'rel' | 'gap' | 'slotProps'>;
|
|
@@ -2,7 +2,7 @@ import "./LayoutProvider-DFwC1-h0.cjs";
|
|
|
2
2
|
import { ButtonHTMLAttributes, CSSProperties, ChangeEventHandler, ComponentClass, ComponentProps, ComponentType, ElementType, FunctionComponent, HTMLAttributes, InputHTMLAttributes, JSX, ReactElement, ReactNode, Ref, TextareaHTMLAttributes } from "react";
|
|
3
3
|
import * as GildCore from "@gild-ui/core/theme";
|
|
4
4
|
import { ButtonVariants, InputVariantKey, OpenScale, Register, RegisteredTheme, Theme as Theme$1, ThemeBackground, ThemeColor, ThemeDefaults, ThemeFonts, ThemeRadii, ThemeSize, ThemeSpaceKey, ThemeText, ThemeTransitionEasing, ThemeTypography, ThemeZOrder, TypographyVariant, VariantOf } from "@gild-ui/core/theme";
|
|
5
|
-
import { CSSObject as CSSObject$1, Global, LiveValue, PropsOf, SheetStyleProp, StyleSheet, StyledStatics, alpha, asIs, configure as configureEngine, css, defineTheme, fallback, keyframes, negate, setNonceSource, useMediaQuery, useStyle, useStyleValue, useTheme, val, variable, withStyle, withTheme } from "@umber-style/react";
|
|
5
|
+
import { CSSObject as CSSObject$1, Direction, DirectionProps, Global, LiveValue, PropsOf, SheetStyleProp, StyleSheet, StyledStatics, Theme as Theme$2, ThemeRefs, alpha, asIs, configure as configureEngine, css, defineTheme, fallback, keyframes, negate, setNonceSource, useMediaQuery, useStyle, useStyleValue, useTheme, val, variable, withStyle, withTheme } from "@umber-style/react";
|
|
6
6
|
import { BorderProps, FlexboxProps, LayoutFrameProps, LayoutProps, PositionProps, SpaceProps, SpanProps, TypographyProps as TypographyProps$1 } from "@soroush.tech/styled-system";
|
|
7
7
|
import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@umber-style/styled";
|
|
8
8
|
/**
|
|
@@ -338,7 +338,6 @@ type ViewSlot = 'root';
|
|
|
338
338
|
/** What `theme.components.View` takes. */
|
|
339
339
|
type ViewThemeConfig = ComponentConfig<ViewOwnerState, ViewSlot>;
|
|
340
340
|
declare const View: StrictStyled<import("@umber-style/react").StyledComponent<import("react").ElementType, ViewProps, {
|
|
341
|
-
theme?: AppTheme;
|
|
342
341
|
as?: React.ElementType;
|
|
343
342
|
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & object>>;
|
|
344
343
|
/** Valid values for the gap prop - derived from theme.space keys. */
|
|
@@ -356,7 +355,6 @@ type FlexSlot = 'root';
|
|
|
356
355
|
/** What `theme.components.Flex` takes. */
|
|
357
356
|
type FlexThemeConfig = ComponentConfig<FlexOwnerState, FlexSlot>;
|
|
358
357
|
declare const Flex: StrictStyled<import("@umber-style/react").StyledComponent<import("react").ElementType, FlexProps, Omit<Omit<{
|
|
359
|
-
theme?: AppTheme;
|
|
360
358
|
as?: React.ElementType;
|
|
361
359
|
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & object, "as" | keyof ViewProps> & Omit<ViewProps, "style"> & {
|
|
362
360
|
as?: "a" | "abbr" | "address" | "animate" | "animateMotion" | "animateTransform" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "circle" | "cite" | "clipPath" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "defs" | "del" | "desc" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "ellipse" | "em" | "embed" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "fieldset" | "figcaption" | "figure" | "filter" | "footer" | "foreignObject" | "form" | "g" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "image" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "line" | "linearGradient" | "link" | "main" | "map" | "mark" | "marker" | "mask" | "menu" | "menuitem" | "meta" | "metadata" | "meter" | "mpath" | "nav" | "noindex" | "noscript" | "object" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "path" | "pattern" | "picture" | "polygon" | "polyline" | "pre" | "progress" | "q" | "radialGradient" | "rect" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "search" | "section" | "select" | "set" | "slot" | "small" | "source" | "span" | "stop" | "strong" | "style" | "sub" | "summary" | "sup" | "svg" | "switch" | "symbol" | "table" | "tbody" | "td" | "template" | "text" | "textPath" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "tspan" | "u" | "ul" | "use" | "var" | "video" | "view" | "wbr" | "webview" | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
|
@@ -364,8 +362,6 @@ declare const Flex: StrictStyled<import("@umber-style/react").StyledComponent<im
|
|
|
364
362
|
}, "slotProps" | "style"> & {
|
|
365
363
|
style?: StyleOverride;
|
|
366
364
|
slotProps?: SlotProps<'root'>;
|
|
367
|
-
} & {
|
|
368
|
-
theme?: AppTheme;
|
|
369
365
|
} & object>>;
|
|
370
366
|
type PaperElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
|
|
371
367
|
interface PaperProps extends FlexProps {
|
|
@@ -1164,6 +1160,26 @@ interface Theme extends Theme$1 {
|
|
|
1164
1160
|
type GildTheme = Theme;
|
|
1165
1161
|
/** The theme the app registered (see `Register` in the core), or this package's `Theme` when it registered none. */
|
|
1166
1162
|
type AppTheme = RegisteredTheme<Theme>;
|
|
1163
|
+
/** The parts of the theme that a style function reads as they are: the same ones `baseTheme` marks with `asIs`. */
|
|
1164
|
+
interface StyleThemeModes {
|
|
1165
|
+
readonly $modes: {
|
|
1166
|
+
readonly defaults: 'asIs';
|
|
1167
|
+
readonly typography: 'asIs';
|
|
1168
|
+
readonly sizes: 'asIs';
|
|
1169
|
+
readonly layout: 'asIs';
|
|
1170
|
+
readonly transitions: 'asIs';
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* The theme a style function is given (`styled`, `StyleSheet.create`, `keyframes`, `Global`): each token
|
|
1175
|
+
* is the CSS variable that holds it, and the parts that are not CSS values (`sizes`, `typography`,
|
|
1176
|
+
* `layout`, `transitions`, `breakpoints`, `components`, `defaults`) are what they are. A function given to
|
|
1177
|
+
* `Global`, `StyleSheet.create` or `keyframes` (the engine's own, with no modes of the theme) is given
|
|
1178
|
+
* `EngineStyleTheme`.
|
|
1179
|
+
*/
|
|
1180
|
+
type StyleTheme = ThemeRefs<AppTheme & StyleThemeModes>;
|
|
1181
|
+
/** The theme the engine hands a style function it was not told the modes for: `Global`, `StyleSheet.create`, `keyframes`. */
|
|
1182
|
+
type EngineStyleTheme = ThemeRefs<Theme$2>;
|
|
1167
1183
|
interface ThemeProviderOwnProps<T> {
|
|
1168
1184
|
children?: ReactNode;
|
|
1169
1185
|
/**
|
|
@@ -1266,34 +1282,25 @@ interface ThemeCustomizationOptions {
|
|
|
1266
1282
|
* `StyledTags`, with the `theme` and `as` props a styled component takes.
|
|
1267
1283
|
*/
|
|
1268
1284
|
type StyledTags = { [Tag in keyof JSX.IntrinsicElements]: CreateStyledComponent<{
|
|
1269
|
-
theme?: AppTheme;
|
|
1270
1285
|
as?: React.ElementType;
|
|
1271
|
-
}, JSX.IntrinsicElements[Tag]>; };
|
|
1286
|
+
}, JSX.IntrinsicElements[Tag], object, StyleTheme>; };
|
|
1272
1287
|
/** Overloads mirroring the engine's, with the theme-customization options added. */
|
|
1273
1288
|
interface CreateThemedStyled extends StyledTags {
|
|
1274
|
-
<C extends ComponentClass<ComponentProps<C>>, ForwardedProps extends keyof ComponentProps<C> & string = keyof ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<ComponentProps<C>, ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps
|
|
1275
|
-
theme?: AppTheme;
|
|
1276
|
-
}, {}, {
|
|
1289
|
+
<C extends ComponentClass<ComponentProps<C>>, ForwardedProps extends keyof ComponentProps<C> & string = keyof ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<ComponentProps<C>, ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps>, {}, {
|
|
1277
1290
|
ref?: Ref<InstanceType<C>>;
|
|
1278
|
-
}>;
|
|
1279
|
-
<C extends ComponentType<ComponentProps<C>>, ForwardedProps extends keyof ComponentProps<C> & string = keyof ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<ComponentProps<C>, ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps
|
|
1280
|
-
|
|
1281
|
-
}>;
|
|
1282
|
-
<C extends ComponentType<ComponentProps<C>>>(component: C, options?: StyledOptions<ComponentProps<C>> & ThemeCustomizationOptions): CreateStyledComponent<PropsOf<C> & {
|
|
1283
|
-
theme?: AppTheme;
|
|
1284
|
-
}>;
|
|
1291
|
+
}, StyleTheme>;
|
|
1292
|
+
<C extends ComponentType<ComponentProps<C>>, ForwardedProps extends keyof ComponentProps<C> & string = keyof ComponentProps<C> & string>(component: C, options: FilteringStyledOptions<ComponentProps<C>, ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps>, object, object, StyleTheme>;
|
|
1293
|
+
<C extends ComponentType<ComponentProps<C>>>(component: C, options?: StyledOptions<ComponentProps<C>> & ThemeCustomizationOptions): CreateStyledComponent<PropsOf<C> & object, object, object, StyleTheme>;
|
|
1285
1294
|
<Tag extends keyof JSX.IntrinsicElements, ForwardedProps extends keyof JSX.IntrinsicElements[Tag] & string = keyof JSX.IntrinsicElements[Tag] & string>(tag: Tag, options: FilteringStyledOptions<JSX.IntrinsicElements[Tag], ForwardedProps> & ThemeCustomizationOptions): CreateStyledComponent<{
|
|
1286
|
-
theme?: AppTheme;
|
|
1287
1295
|
as?: React.ElementType;
|
|
1288
|
-
}, Pick<JSX.IntrinsicElements[Tag], ForwardedProps
|
|
1296
|
+
}, Pick<JSX.IntrinsicElements[Tag], ForwardedProps>, object, StyleTheme>;
|
|
1289
1297
|
<Tag extends keyof JSX.IntrinsicElements>(tag: Tag, options?: StyledOptions<JSX.IntrinsicElements[Tag]> & ThemeCustomizationOptions): CreateStyledComponent<{
|
|
1290
|
-
theme?: AppTheme;
|
|
1291
1298
|
as?: React.ElementType;
|
|
1292
|
-
}, JSX.IntrinsicElements[Tag]>;
|
|
1299
|
+
}, JSX.IntrinsicElements[Tag], object, StyleTheme>;
|
|
1293
1300
|
}
|
|
1294
1301
|
/**
|
|
1295
1302
|
* The design system's `styled` - the engine's styled plus theme-level component
|
|
1296
1303
|
* customization (`theme.components[name].styleOverrides` / `.variants`).
|
|
1297
1304
|
*/
|
|
1298
1305
|
declare const styled: CreateThemedStyled;
|
|
1299
|
-
export {
|
|
1306
|
+
export { TextInputClasses as $, ButtonShape as $i, NavGroupThemeConfig as $n, FabThemeConfig as $r, SwitchThemeConfig as $t, StyleTheme as A, AlertOwnerState as Aa, PaperThemeConfig as Ai, PressableOwnerState as An, GridOwnerState as Ar, TableContainerOwnerState as At, TypographyVariant as B, AccordionDetailsSlot as Ba, CheckboxOwnerState as Bi, PaginationSlot as Bn, FormControlSlot as Br, TableSlot as Bt, withStyle as C, AutocompleteThemeConfig as Ca, ViewColorToken as Ci, RangeInputThemeConfig as Cn, LinearProgressThemeConfig as Cr, TablePaginationThemeConfig as Ct, CSSObject as D, AlertTitleOwnerState as Da, ViewThemeConfig as Di, QuoteOwnerState as Dn, IconOwnerState as Dr, TableFooterOwnerState as Dt, AppTheme as E, AppBarThemeConfig as Ea, ViewSlot as Ei, RadioThemeConfig as En, ImageThemeConfig as Er, TableHeadThemeConfig as Et, TypographyAlign as F, AccordionSummaryThemeConfig as Fa, CircularProgressSlot as Fi, PopoverThemeConfig as Fn, FormLabelThemeConfig as Fr, TableCellThemeConfig as Ft, TooltipSlot as G, AccordionOwnerState as Ga, CardThemeConfig as Gi, NavTreeOwnerState as Gn, FocusTrapOwnerState as Gr, TabPanelOwnerState as Gt, TransferListSlot as H, AccordionActionsOwnerState as Ha, CheckboxThemeConfig as Hi, NumberInputOwnerState as Hn, FormOwnerState as Hr, TabScrollButtonOwnerState as Ht, TypographyOwnerState as I, AccordionGroupOwnerState as Ia, CircularProgressThemeConfig as Ii, PaginationItemOwnerState as In, FormHelperTextOwnerState as Ir, TableBodyOwnerState as It, ToggleButtonGroupSlot as J, Exact as Ja, ButtonGroupThemeConfig as Ji, NavLinkOwnerState as Jn, FabMenuOwnerState as Jr, TabOwnerState as Jt, TooltipThemeConfig as K, AccordionSlot as Ka, ButtonGroupOwnerState as Ki, NavTreeSlot as Kn, FocusTrapSlot as Kr, TabPanelSlot as Kt, TypographyProps as L, AccordionGroupSlot as La, ChipOwnerState as Li, PaginationItemSlot as Ln, FormHelperTextSlot as Lr, TableBodySlot as Lt, ThemeComponents as M, AlertThemeConfig as Ma, CollapseSlot as Mi, PressableThemeConfig as Mn, GridThemeConfig as Mr, TableContainerThemeConfig as Mt, BackgroundToken as N, AccordionSummaryOwnerState as Na, CollapseThemeConfig as Ni, PopoverOwnerState as Nn, FormLabelOwnerState as Nr, TableCellOwnerState as Nt, ComponentConfig as O, AlertTitleSlot as Oa, PaperOwnerState as Oi, QuoteSlot as On, IconSlot as Or, TableFooterSlot as Ot, TextColorToken as P, AccordionSummarySlot as Pa, CircularProgressOwnerState as Pi, PopoverSlot as Pn, FormLabelSlot as Pr, TableCellSlot as Pt, ToggleButtonThemeConfig as Q, ButtonProps as Qi, NavGroupSlot as Qn, FabSlot as Qr, SwitchSlot as Qt, TypographySlot as R, AccordionGroupThemeConfig as Ra, ChipSlot as Ri, PaginationItemThemeConfig as Rn, FormHelperTextThemeConfig as Rr, TableBodyThemeConfig as Rt, variable as S, AutocompleteSlot as Sa, ViewBorderWidthToken as Si, RangeInputSlot as Sn, LinearProgressSlot as Sr, TablePaginationSlot as St, ThemeProvider$1 as T, AppBarSlot as Ta, ViewProps as Ti, RadioSlot as Tn, ImageSlot as Tr, TableHeadSlot as Tt, TransferListThemeConfig as U, AccordionActionsSlot as Ua, CardOwnerState as Ui, NumberInputSlot as Un, FormSlot as Ur, TabScrollButtonSlot as Ut, TransferListOwnerState as V, AccordionDetailsThemeConfig as Va, CheckboxSlot as Vi, PaginationThemeConfig as Vn, FormControlThemeConfig as Vr, TableThemeConfig as Vt, TooltipOwnerState as W, AccordionActionsThemeConfig as Wa, CardSlot as Wi, NumberInputThemeConfig as Wn, FormThemeConfig as Wr, TabScrollButtonThemeConfig as Wt, ToggleButtonOwnerState as X, ButtonLoadingPosition as Xi, NavLinkThemeConfig as Xn, FabMenuThemeConfig as Xr, TabThemeConfig as Xt, ToggleButtonGroupThemeConfig as Y, ButtonColor as Yi, NavLinkSlot as Yn, FabMenuSlot as Yr, TabSlot as Yt, ToggleButtonSlot as Z, ButtonOwnerState as Zi, NavGroupOwnerState as Zn, FabOwnerState as Zr, SwitchOwnerState as Zt, setNonceSource as _, BackdropThemeConfig as _a, GapToken as _i, ScrollAreaThemeConfig as _n, MenuDividerThemeConfig as _r, TableRowThemeConfig as _t, DirectionProps as a, SlotOverride as aa, ContextMenuThemeConfig as ai, SkeletonThemeConfig as an, ModalProps as ar, TextInputTextColor as at, useTheme as b, AvatarThemeConfig as ba, ViewBorderColorToken as bi, RatingThemeConfig as bn, LinkThemeConfig as br, TablePaginationActionsThemeConfig as bt, StyleSheet as c, StyleOverride as ca, MenuThemeConfig as ci, SidebarItemThemeConfig as cn, ModalThemeConfig as cr, TabsOwnerState as ct, configureEngine as d, BreadcrumbsThemeConfig as da, PaperProps as di, SidebarThemeConfig as dn, MenuListThemeConfig as dr, TabsVariant as dt, ButtonSize as ea, DrawerOwnerState as ei, SnackbarOwnerState as en, NativeSelectOwnerState as er, TextInputColor as et, css as f, BadgeOwnerState as fa, Flex as fi, SelectOwnerState as fn, MenuItemOwnerState as fr, TableSortLabelOwnerState as ft, negate as g, BackdropSlot as ga, FlexThemeConfig as gi, ScrollAreaSlot as gn, MenuDividerSlot as gr, TableRowSlot as gt, keyframes as h, BackdropOwnerState as ha, FlexSlot as hi, ScrollAreaOwnerState as hn, MenuDividerOwnerState as hr, TableRowOwnerState as ht, Direction as i, GapToken$1 as ia, ContextMenuSlot as ii, SkeletonSlot as in, ModalOwnerState as ir, TextInputSlot as it, Theme as j, AlertSlot as ja, CollapseOwnerState as ji, PressableSlot as jn, GridSlot as jr, TableContainerSlot as jt, EngineStyleTheme as k, AlertTitleThemeConfig as ka, PaperSlot as ki, QuoteThemeConfig as kn, IconThemeConfig as kr, TableFooterThemeConfig as kt, alpha as l, BreadcrumbsOwnerState as la, Paper as li, SidebarOwnerState as ln, MenuListOwnerState as lr, TabsSlot as lt, fallback as m, BadgeThemeConfig as ma, FlexProps as mi, SelectThemeConfig as mn, MenuItemThemeConfig as mr, TableSortLabelThemeConfig as mt, useMediaQuery as n, ButtonThemeConfig as na, DrawerThemeConfig as ni, SnackbarThemeConfig as nn, NativeSelectThemeConfig as nr, TextInputProps as nt, Global as o, SlotProps as oa, MenuOwnerState as oi, SidebarItemOwnerState as on, ModalScroll as or, TextInputThemeConfig as ot, defineTheme as p, BadgeSlot as pa, FlexOwnerState as pi, SelectSlot as pn, MenuItemSlot as pr, TableSortLabelSlot as pt, ToggleButtonGroupOwnerState as q, AccordionThemeConfig as qa, ButtonGroupSlot as qi, NavTreeThemeConfig as qn, FocusTrapThemeConfig as qr, TabPanelThemeConfig as qt, useDefaultProps as r, ButtonVariant as ra, ContextMenuOwnerState as ri, SkeletonOwnerState as rn, ModalCloseReason as rr, TextInputSize as rt, LiveValue as s, StrictStyled as sa, MenuSlot as si, SidebarItemSlot as sn, ModalSlot as sr, TextInputVariant as st, styled as t, ButtonSlot as ta, DrawerSlot as ti, SnackbarSlot as tn, NativeSelectSlot as tr, TextInputOwnerState as tt, asIs as u, BreadcrumbsSlot as ua, PaperElevation as ui, SidebarSlot as un, MenuListSlot as ur, TabsThemeConfig as ut, useStyle as v, AvatarOwnerState as va, View as vi, RatingOwnerState as vn, LinkOwnerState as vr, TablePaginationActionsOwnerState as vt, withTheme as w, AppBarOwnerState as wa, ViewOwnerState as wi, RadioOwnerState as wn, ImageOwnerState as wr, TableHeadOwnerState as wt, val as x, AutocompleteOwnerState as xa, ViewBorderRadiusToken as xi, RangeInputOwnerState as xn, LinearProgressOwnerState as xr, TablePaginationOwnerState as xt, useStyleValue as y, AvatarSlot as ya, ViewBackgroundToken as yi, RatingSlot as yn, LinkSlot as yr, TablePaginationActionsSlot as yt, TypographyThemeConfig as z, AccordionDetailsOwnerState as za, ChipThemeConfig as zi, PaginationOwnerState as zn, FormControlOwnerState as zr, TableOwnerState as zt };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./Accordion.types-D9BgLxCR.mjs";
|
package/dist/index.cjs
CHANGED
|
@@ -11,10 +11,17 @@ require("./css.cjs");
|
|
|
11
11
|
require("./keyframes.cjs");
|
|
12
12
|
require("./StyleSheet.cjs");
|
|
13
13
|
require("./Global.cjs");
|
|
14
|
+
require("./Direction.cjs");
|
|
14
15
|
require("./useStyle.cjs");
|
|
15
16
|
require("./withTheme.cjs");
|
|
16
17
|
require("./withStyle.cjs");
|
|
17
18
|
let _umber_style_react = require("@umber-style/react");
|
|
19
|
+
Object.defineProperty(exports, "Direction", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function() {
|
|
22
|
+
return _umber_style_react.Direction;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
18
25
|
Object.defineProperty(exports, "Global", {
|
|
19
26
|
enumerable: true,
|
|
20
27
|
get: function() {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { A as StyleTheme, C as withStyle, D as CSSObject, M as ThemeComponents, O as ComponentConfig, T as ThemeProvider, a as DirectionProps, aa as SlotOverride, b as useTheme, c as StyleSheet, ca as StyleOverride, f as css, g as negate, h as keyframes, i as Direction, l as alpha, n as useMediaQuery, o as Global, oa as SlotProps, r as useDefaultProps, s as LiveValue, t as styled, v as useStyle, w as withTheme, y as useStyleValue } from "./index-phg5ivgg.cjs";
|
|
2
2
|
import { n as LayoutProviderProps, t as LayoutProvider } from "./LayoutProvider-DFwC1-h0.cjs";
|
|
3
|
-
export { type CSSObject, type ComponentConfig, Global, LayoutProvider, type LayoutProviderProps, type LiveValue, type SlotOverride, type SlotProps, type StyleOverride, StyleSheet, type ThemeComponents, ThemeProvider, alpha, css, keyframes, negate, styled, useDefaultProps, useMediaQuery, useStyle, useStyleValue, useTheme, withStyle, withTheme };
|
|
3
|
+
export { type CSSObject, type ComponentConfig, Direction, type DirectionProps, Global, LayoutProvider, type LayoutProviderProps, type LiveValue, type SlotOverride, type SlotProps, type StyleOverride, StyleSheet, type StyleTheme, type ThemeComponents, ThemeProvider, alpha, css, keyframes, negate, styled, useDefaultProps, useMediaQuery, useStyle, useStyleValue, useTheme, withStyle, withTheme };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $r as
|
|
1
|
+
import { $r as Direction, Ga as SlotOverride, Ja as StyleOverride, Ka as SlotProps, Qr as useDefaultProps, Xr as styled, Zr as useMediaQuery, a as CSSObject, bi as ThemeProvider, c as StyleTheme, di as negate, ei as DirectionProps, hi as useTheme, ii as alpha, mi as useStyleValue, ni as LiveValue, o as ComponentConfig, pi as useStyle, ri as StyleSheet, si as css, ti as Global, u as ThemeComponents, ui as keyframes, vi as withStyle, yi as withTheme } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
import { n as LayoutProviderProps, t as LayoutProvider } from "./LayoutProvider-DFwC1-h0.mjs";
|
|
3
|
-
export { type CSSObject, type ComponentConfig, Global, LayoutProvider, type LayoutProviderProps, type LiveValue, type SlotOverride, type SlotProps, type StyleOverride, StyleSheet, type ThemeComponents, ThemeProvider, alpha, css, keyframes, negate, styled, useDefaultProps, useMediaQuery, useStyle, useStyleValue, useTheme, withStyle, withTheme };
|
|
3
|
+
export { type CSSObject, type ComponentConfig, Direction, type DirectionProps, Global, LayoutProvider, type LayoutProviderProps, type LiveValue, type SlotOverride, type SlotProps, type StyleOverride, StyleSheet, type StyleTheme, type ThemeComponents, ThemeProvider, alpha, css, keyframes, negate, styled, useDefaultProps, useMediaQuery, useStyle, useStyleValue, useTheme, withStyle, withTheme };
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { t as ThemeProvider } from "./ThemeProvider-
|
|
3
|
-
import { t as LayoutProvider } from "./LayoutProvider-
|
|
1
|
+
import { S as withTheme, _ as useStyleValue, a as alpha, c as css, f as keyframes, g as useStyle, n as Global, p as negate, r as StyleSheet, t as Direction, v as useTheme, x as withStyle } from "./styleEngine-B3C0EmVQ.mjs";
|
|
2
|
+
import { t as ThemeProvider } from "./ThemeProvider-Bys1dMk1.mjs";
|
|
3
|
+
import { t as LayoutProvider } from "./LayoutProvider-B5BcHN00.mjs";
|
|
4
4
|
import "./useTheme.mjs";
|
|
5
|
-
import { t as useDefaultProps } from "./useDefaultProps-
|
|
5
|
+
import { t as useDefaultProps } from "./useDefaultProps-fdTXb3rk.mjs";
|
|
6
6
|
import "./useDefaultProps.mjs";
|
|
7
7
|
import { t as useMediaQuery } from "./useMediaQuery-acJak9M3.mjs";
|
|
8
8
|
import { t as styled } from "./styled-tLHNvicL.mjs";
|
|
@@ -11,7 +11,8 @@ import "./css.mjs";
|
|
|
11
11
|
import "./keyframes.mjs";
|
|
12
12
|
import "./StyleSheet.mjs";
|
|
13
13
|
import "./Global.mjs";
|
|
14
|
+
import "./Direction.mjs";
|
|
14
15
|
import "./useStyle.mjs";
|
|
15
16
|
import "./withTheme.mjs";
|
|
16
17
|
import "./withStyle.mjs";
|
|
17
|
-
export { Global, LayoutProvider, StyleSheet, ThemeProvider, alpha, css, keyframes, negate, styled, useDefaultProps, useMediaQuery, useStyle, useStyleValue, useTheme, withStyle, withTheme };
|
|
18
|
+
export { Direction, Global, LayoutProvider, StyleSheet, ThemeProvider, alpha, css, keyframes, negate, styled, useDefaultProps, useMediaQuery, useStyle, useStyleValue, useTheme, withStyle, withTheme };
|
package/dist/keyframes.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as keyframes } from "./index-phg5ivgg.cjs";
|
|
2
2
|
export { keyframes };
|
package/dist/keyframes.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ui as keyframes } from "./Accordion.types-D9BgLxCR.mjs";
|
|
2
2
|
export { keyframes };
|
package/dist/keyframes.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { f as keyframes } from "./styleEngine-B3C0EmVQ.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { dir } from "@umber-style/rtl";
|
|
2
|
+
// src/style/mirrored.ts
|
|
3
|
+
let mirrored = false;
|
|
4
|
+
/** Records what `configure` was given: the app mirrors itself when `rtl` is one of its plugins. */
|
|
5
|
+
const setMirrored = (plugins) => {
|
|
6
|
+
mirrored = plugins?.some(({ name }) => name === "rtl") ?? false;
|
|
7
|
+
};
|
|
8
|
+
/** Whether the app mirrors itself with the plugin `rtl()`. */
|
|
9
|
+
const isMirrored = () => mirrored;
|
|
10
|
+
/** `value`, which the plugin does not flip: it is the same in both directions. Plain `value` when the app does not mirror itself. */
|
|
11
|
+
const keep = (value) => mirrored ? dir({
|
|
12
|
+
ltr: value,
|
|
13
|
+
rtl: value
|
|
14
|
+
}) : value;
|
|
15
|
+
export { keep as n, setMirrored as r, isMirrored as t };
|