@soroush.tech/design-system 1.0.0 → 1.2.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/README.md +5 -5
- package/dist/AppBar.cjs +1 -1
- package/dist/AppBar.d.cts +3 -3
- package/dist/AppBar.d.mts +3 -3
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.d.cts +3 -3
- package/dist/Avatar.d.mts +3 -3
- package/dist/Avatar.mjs +1 -1
- package/dist/Backdrop.cjs +1 -1
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Button.cjs +2 -8
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +1 -7
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/Card.cjs +3 -3
- package/dist/Card.d.cts +3 -3
- package/dist/Card.d.mts +3 -3
- package/dist/Card.mjs +2 -2
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.d.cts +2 -2
- package/dist/Checkbox.d.mts +2 -2
- package/dist/CircularProgress.cjs +1 -1
- package/dist/CircularProgress.d.cts +3 -3
- package/dist/CircularProgress.d.mts +3 -3
- package/dist/Drawer.cjs +4 -3
- package/dist/Drawer.d.cts +2 -2
- package/dist/Drawer.d.mts +2 -2
- package/dist/Drawer.mjs +3 -2
- package/dist/Flex.cjs +3 -7
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +2 -6
- package/dist/FocusTrap.cjs +1 -1
- package/dist/Form.cjs +1 -1
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.mts +1 -1
- package/dist/FormControl.cjs +2 -2
- package/dist/FormControl.d.cts +2 -2
- package/dist/FormControl.d.mts +2 -2
- package/dist/FormControl.mjs +1 -1
- package/dist/FormHelperText.cjs +1 -1
- package/dist/FormHelperText.d.cts +1 -1
- package/dist/FormHelperText.d.mts +1 -1
- package/dist/FormLabel.cjs +1 -1
- package/dist/FormLabel.d.cts +1 -1
- package/dist/FormLabel.d.mts +1 -1
- package/dist/Grid.cjs +3 -26
- package/dist/Grid.d.cts +4 -11
- package/dist/Grid.d.mts +4 -11
- package/dist/Grid.mjs +4 -24
- package/dist/{Icon-zsHe7hWR.cjs → Icon-ByDvM-t1.cjs} +39 -7
- package/dist/{Icon-bv8Z38l-.mjs → Icon-GgwNXKEY.mjs} +38 -6
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.d.cts +1 -1
- package/dist/Icon.d.mts +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/Image.cjs +10 -9
- package/dist/Image.d.cts +2 -2
- package/dist/Image.d.mts +2 -2
- package/dist/Image.mjs +9 -8
- package/dist/LinearProgress.cjs +1 -1
- package/dist/LinearProgress.d.cts +3 -3
- package/dist/LinearProgress.d.mts +3 -3
- package/dist/Link.cjs +3 -7
- package/dist/Link.d.cts +1 -2
- package/dist/Link.d.mts +1 -2
- package/dist/Link.mjs +3 -7
- package/dist/MenuItem.cjs +3 -3
- package/dist/MenuItem.d.cts +2 -2
- package/dist/MenuItem.d.mts +2 -2
- package/dist/MenuItem.mjs +2 -2
- package/dist/{Modal-dy5l7gfH.mjs → Modal-COLrJoNW.mjs} +2 -1
- package/dist/{Modal-DZH-DzMZ.cjs → Modal-S2nb35q-.cjs} +3 -2
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.d.cts +1 -1
- package/dist/Modal.d.mts +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NativeSelect.cjs +9 -8
- package/dist/NativeSelect.d.cts +3 -3
- package/dist/NativeSelect.d.mts +3 -3
- package/dist/NativeSelect.mjs +8 -7
- package/dist/Pagination/PaginationItem.cjs +2 -2
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +1 -1
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.d.cts +2 -2
- package/dist/Pagination.d.mts +2 -2
- package/dist/Paper.cjs +2 -4
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +1 -1
- package/dist/Paper.mjs +1 -3
- package/dist/{Popover-Chgtjn-N.mjs → Popover-BjGubpna.mjs} +2 -2
- package/dist/{Popover-pEVboMZO.cjs → Popover-BxN7ts_I.cjs} +3 -3
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +4 -4
- package/dist/Popover.d.mts +4 -4
- package/dist/Popover.mjs +1 -1
- package/dist/Pressable.cjs +123 -0
- package/dist/Pressable.d.cts +2 -0
- package/dist/Pressable.d.mts +2 -0
- package/dist/Pressable.mjs +121 -0
- package/dist/Quote.cjs +1 -1
- package/dist/Quote.d.cts +4 -4
- package/dist/Quote.d.mts +4 -4
- package/dist/Radio.cjs +1 -1
- package/dist/Radio.d.cts +2 -2
- package/dist/Radio.d.mts +2 -2
- package/dist/Select.cjs +42 -41
- package/dist/Select.d.cts +3 -3
- package/dist/Select.d.mts +3 -3
- package/dist/Select.mjs +41 -40
- package/dist/Sidebar/Sidebar.cjs +94 -0
- package/dist/Sidebar/Sidebar.d.cts +59 -0
- package/dist/Sidebar/Sidebar.d.mts +59 -0
- package/dist/Sidebar/Sidebar.mjs +93 -0
- package/dist/Sidebar/SidebarItem.cjs +125 -0
- package/dist/Sidebar/SidebarItem.d.cts +39 -0
- package/dist/Sidebar/SidebarItem.d.mts +39 -0
- package/dist/Sidebar/SidebarItem.mjs +124 -0
- package/dist/Sidebar.cjs +7 -0
- package/dist/Sidebar.d.cts +4 -0
- package/dist/Sidebar.d.mts +4 -0
- package/dist/Sidebar.mjs +4 -0
- package/dist/SidebarContext-DgSLwjur.mjs +10 -0
- package/dist/SidebarContext-ao6lRfTX.d.cts +37 -0
- package/dist/SidebarContext-ao6lRfTX.d.mts +37 -0
- package/dist/SidebarContext-jG6OioC-.cjs +14 -0
- package/dist/Skeleton.cjs +1 -1
- package/dist/Skeleton.d.cts +2 -2
- package/dist/Skeleton.d.mts +2 -2
- package/dist/Switch.cjs +2 -2
- package/dist/Switch.d.cts +2 -2
- package/dist/Switch.d.mts +2 -2
- package/dist/Switch.mjs +1 -1
- package/dist/Table/Table.cjs +1 -1
- package/dist/Table/Table.d.cts +3 -3
- package/dist/Table/Table.d.mts +3 -3
- package/dist/Table/TableBody.cjs +18 -16
- package/dist/Table/TableBody.d.cts +2 -2
- package/dist/Table/TableBody.d.mts +2 -2
- package/dist/Table/TableBody.mjs +17 -15
- package/dist/Table/TableCell.cjs +1 -1
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableContainer.cjs +1 -1
- package/dist/Table/TableContainer.d.cts +4 -4
- package/dist/Table/TableContainer.d.mts +4 -4
- package/dist/Table/TableControl.cjs +3 -2
- package/dist/Table/TableControl.d.cts +1 -1
- package/dist/Table/TableControl.d.mts +1 -1
- package/dist/Table/TableControl.mjs +3 -2
- package/dist/Table/TableFooter.cjs +18 -16
- package/dist/Table/TableFooter.d.cts +2 -2
- package/dist/Table/TableFooter.d.mts +2 -2
- package/dist/Table/TableFooter.mjs +17 -15
- package/dist/Table/TableHead.cjs +18 -16
- package/dist/Table/TableHead.d.cts +2 -2
- package/dist/Table/TableHead.d.mts +2 -2
- package/dist/Table/TableHead.mjs +17 -15
- package/dist/Table/TablePagination.cjs +1 -1
- package/dist/Table/TablePagination.d.cts +2 -2
- package/dist/Table/TablePagination.d.mts +2 -2
- package/dist/Table/TablePaginationActions.cjs +2 -2
- package/dist/Table/TablePaginationActions.d.cts +1 -1
- package/dist/Table/TablePaginationActions.d.mts +1 -1
- package/dist/Table/TablePaginationActions.mjs +1 -1
- package/dist/Table/TableRow.cjs +1 -1
- package/dist/Table/TableRow.d.cts +2 -2
- package/dist/Table/TableRow.d.mts +2 -2
- package/dist/Table/TableSortLabel.cjs +8 -7
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +7 -6
- package/dist/Table/hooks.cjs +2 -1
- package/dist/Table/hooks.d.cts +1 -1
- package/dist/Table/hooks.d.mts +1 -1
- package/dist/Table/hooks.mjs +2 -1
- package/dist/Table.d.cts +5 -5
- package/dist/Table.d.mts +5 -5
- package/dist/{TableContext-DOhYeOFx.d.cts → TableContext-BoOxdk8p.d.cts} +1 -1
- package/dist/{TableContext-adilRIJZ.d.mts → TableContext-DV31j6HO.d.mts} +1 -1
- package/dist/TextInput.cjs +11 -10
- package/dist/TextInput.d.cts +2 -2
- package/dist/TextInput.d.mts +2 -2
- package/dist/TextInput.mjs +10 -9
- package/dist/ToggleButton/ToggleButton.cjs +2 -2
- package/dist/ToggleButton/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton/ToggleButton.d.mts +1 -1
- package/dist/ToggleButton/ToggleButton.mjs +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.cjs +2 -2
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +1 -1
- package/dist/ToggleButton/ToggleButtonGroup.mjs +1 -1
- package/dist/Typography.cjs +2 -2
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +1 -1
- package/dist/View.cjs +1 -3
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +0 -2
- package/dist/engine.cjs +1 -1
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.mts +1 -1
- package/dist/{index-DwjxjLcD.d.mts → index--mvTGo8F.d.cts} +3 -3
- package/dist/{index-CY0Czi9Z.d.cts → index-ATXjtAOY.d.mts} +2 -2
- package/dist/{index-BLnOsdgc.d.cts → index-B2hrssyF.d.mts} +2 -2
- package/dist/{index-C-UBdWKI.d.cts → index-B3FrhO2r.d.cts} +3 -3
- package/dist/{index-DCwLdUQH.d.mts → index-B7aaTHOe.d.cts} +2 -2
- package/dist/{index-BGzs2cKy.d.mts → index-BItZoGZ1.d.mts} +3 -3
- package/dist/{index-CLCtvcKA.d.mts → index-BJ8OC_Zh.d.cts} +2 -2
- package/dist/{index-D0x1ZMVG.d.mts → index-BL3jwIQU.d.mts} +5 -2
- package/dist/{index-D2H_6WLf.d.cts → index-BNP_iejT.d.cts} +3 -3
- package/dist/{index-DdFxl06Q.d.cts → index-BfpjEqqt.d.cts} +2 -2
- package/dist/{index-0J6U39Rl.d.mts → index-BoOs5h_b.d.mts} +1 -1
- package/dist/{index-ypEBcdCx.d.mts → index-BwUnDd9W.d.mts} +2 -2
- package/dist/{index-DGqakgRN.d.mts → index-C7j38wne.d.mts} +3 -3
- package/dist/{index-DN7IvJeV.d.cts → index-CA_X-mXg.d.cts} +5 -2
- package/dist/index-CO3Qq0I0.d.mts +49 -0
- package/dist/{index-DLiHZtDi.d.mts → index-CYTaYcm3.d.cts} +3 -5
- package/dist/{index-DitJ7ss0.d.mts → index-Ca0Pj5m2.d.mts} +3 -3
- package/dist/{index-BF2KXGBM.d.mts → index-CvaEVk-f.d.cts} +2 -2
- package/dist/{index-BnCp6k4s.d.cts → index-D8U2tk1L.d.mts} +2 -2
- package/dist/{index-B66h9kbP.d.mts → index-D8b5OCLe.d.mts} +1 -1
- package/dist/{index-DhcmRr8Q.d.cts → index-DEv2QslH.d.mts} +4 -7
- package/dist/{index-C1vVYigQ.d.cts → index-DF3Hweir.d.mts} +3 -3
- package/dist/{index-BVX_Jq2G.d.cts → index-DLJ-li1B.d.cts} +1 -1
- package/dist/{index-CYNgNatZ.d.mts → index-DjtGkwRM.d.cts} +2 -4
- package/dist/{index-BpLv6Y8m.d.mts → index-Ds__py2h.d.mts} +2 -2
- package/dist/{index-HnvGdPCp.d.cts → index-KZUd8B5E.d.mts} +3 -5
- package/dist/{index-CJQXZ4hq.d.cts → index-MsUtFRul.d.cts} +1 -1
- package/dist/index-dtLxevvf.d.cts +49 -0
- package/dist/{index-B8FOqBiS.d.cts → index-q6EgsH9R.d.mts} +2 -4
- package/dist/{index-BahGB82c.d.cts → index-v99yMdts.d.cts} +3 -3
- package/dist/{index-BGWm4HKR.d.cts → index-yr4HkKOj.d.cts} +2 -2
- package/dist/{index-BJcHQUga.d.mts → index-zFYi0f1t.d.cts} +4 -7
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/{rolldown-runtime-DDXJien1.cjs → rolldown-runtime-BloeesfJ.cjs} +1 -1
- package/dist/{src-C8PIppTy.cjs → src-BJrcLd7P.cjs} +1 -1
- package/dist/style.cjs +1 -1
- package/dist/style.d.cts +2 -2
- package/dist/style.d.mts +2 -2
- package/dist/style.mjs +1 -1
- package/dist/{theme-Du6xgPsg.cjs → theme-CleLAV6A.cjs} +2 -1
- package/dist/{theme-V6lYzd3j.mjs → theme-Cudynq5K.mjs} +2 -1
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +3 -3
- package/dist/theme.d.mts +3 -3
- package/dist/theme.mjs +1 -1
- package/dist/{themes-BTGww2YK.d.cts → themes-CUV79qWU.d.cts} +16 -1
- package/dist/{themes-BTGww2YK.d.mts → themes-CUV79qWU.d.mts} +16 -1
- package/dist/{useTablePagination-D6T-fQFc.d.mts → useTablePagination-7jiSvKCh.d.cts} +1 -1
- package/dist/{useTablePagination-_94Wrvj9.d.cts → useTablePagination-HaIcJPv-.d.mts} +1 -1
- package/package.json +37 -17
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { d as PaletteColor, h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
|
+
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
4
|
+
//#region src/Pressable/Pressable.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Press feedback: `none` leaves the wrapped content untouched, `opacity` dims it
|
|
7
|
+
* while held, `highlight` tints the surface behind it while held.
|
|
8
|
+
*/
|
|
9
|
+
type PressableFeedback = 'none' | 'opacity' | 'highlight';
|
|
10
|
+
type PressableColor = PaletteColor;
|
|
11
|
+
interface PressableProps extends Omit<ButtonHTMLAttributes<HTMLElement>, 'color'>, index_d_exports.SpaceProps<Theme>, index_d_exports.LayoutProps<Theme>, index_d_exports.BorderProps<Theme>, index_d_exports.TypographyProps<Theme> {
|
|
12
|
+
/**
|
|
13
|
+
* Element to render. Default: `'div'` — which still behaves as a button
|
|
14
|
+
* (`role`, tab stop, Enter/Space) because a `<button>` may not legally contain
|
|
15
|
+
* links, buttons, or block-level content. Pass `'button'` for a native button
|
|
16
|
+
* when the content is phrasing-only, or any other tag you need.
|
|
17
|
+
*/
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
/** Feedback shown while pressed. Default: `'none'`, overridable via `theme.components.Pressable.defaultProps`. */
|
|
20
|
+
feedback?: PressableFeedback;
|
|
21
|
+
/** Palette the `highlight` tint derives from — maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
|
|
22
|
+
color?: PressableColor;
|
|
23
|
+
/** Opacity held content fades to under `feedback="opacity"`. Default: `0.7`. */
|
|
24
|
+
activeOpacity?: number;
|
|
25
|
+
/** The URL to link to. If defined and `as` is unset, an `a` element is used. */
|
|
26
|
+
href?: string;
|
|
27
|
+
/** Anchor `target` — only meaningful when `href` is set. */
|
|
28
|
+
target?: string;
|
|
29
|
+
/** Anchor `rel` — only meaningful when `href` is set. */
|
|
30
|
+
rel?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* An unstyled clickable surface — button semantics (keyboard activation, focus
|
|
34
|
+
* ring, disabled state) with none of a button's looks, so it can wrap arbitrary
|
|
35
|
+
* content without changing its layout. Use it instead of an `onClick` on a
|
|
36
|
+
* `div`, which no keyboard or screen-reader user can reach.
|
|
37
|
+
*
|
|
38
|
+
* It renders a `div` by default, because `<button>` may not legally contain a
|
|
39
|
+
* link, another button, or block-level content — the shim gives that div a
|
|
40
|
+
* `role`, a tab stop, and Enter/Space activation, so it is announced and
|
|
41
|
+
* operated as a button either way. Pass `as="button"` for a native button, or
|
|
42
|
+
* `href` for an anchor; both skip the shim and let the browser do the work.
|
|
43
|
+
*
|
|
44
|
+
* `feedback` picks what happens while it is held: nothing (default), the content
|
|
45
|
+
* dims, or the surface tints.
|
|
46
|
+
*/
|
|
47
|
+
declare function Pressable({ as, feedback, color, activeOpacity, href, type, disabled, onClick, onKeyDown, onKeyUp, ...rest }: Readonly<PressableProps>): import("react").JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { PressableProps as i, PressableColor as n, PressableFeedback as r, Pressable as t };
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import { n as FlexProps } from "./index-
|
|
1
|
+
import "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
|
+
import { n as FlexProps } from "./index-zFYi0f1t.cjs";
|
|
4
4
|
import { CSSProperties, ElementType } from "react";
|
|
5
5
|
//#region src/Paper/Paper.d.ts
|
|
6
6
|
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;
|
|
7
7
|
interface PaperProps extends FlexProps {
|
|
8
8
|
/** Shadow depth — 0 (flat) to 24 (highest). Resolves to theme.shadows[n]. Default: 1. */
|
|
9
9
|
elevation?: PaperElevation;
|
|
10
|
-
/** CSS aspect-ratio for fixed-ratio surfaces (e.g. 16/9, 1). */
|
|
11
|
-
aspectRatio?: CSSProperties['aspectRatio'];
|
|
12
10
|
/** CSS transition for surface animations (e.g. hover elevation change). */
|
|
13
11
|
transition?: CSSProperties['transition'];
|
|
14
12
|
/** Resolves against theme.border — light · primary · dark */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as index_d_exports } from "./index-
|
|
3
|
-
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
|
+
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-BwUnDd9W.mjs";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
//#region src/Pagination/Pagination.d.ts
|
|
6
6
|
type PaginationColor = PaginationItemColor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { L as TypographyVariant, h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
3
|
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
4
4
|
//#region src/Typography/Typography.d.ts
|
|
5
5
|
type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { d as PaletteColor, h as Theme, n as ButtonVariants } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
3
|
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
4
4
|
//#region src/Button/Button.d.ts
|
|
5
5
|
/** Augmentable via the `ButtonVariants` interface — style new values through `theme.components.Button.variants`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as PaletteColor,
|
|
1
|
+
import { d as PaletteColor, h as Theme, r as CSSObject$1 } from "./themes-CUV79qWU.mjs";
|
|
2
2
|
import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
|
|
3
3
|
import { PropsOf, css as css$1, keyframes } from "@emotion/react";
|
|
4
4
|
import { createShouldForwardProp, props } from "@soroush.tech/styled-system/should-forward-prop";
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { s as ViewProps } from "./index-
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
|
+
import { s as ViewProps } from "./index-q6EgsH9R.mjs";
|
|
4
4
|
//#region src/Flex/Flex.d.ts
|
|
5
5
|
/** Valid values for the gap prop — derived from theme.space keys. */
|
|
6
6
|
type GapToken = keyof Theme['space'];
|
|
7
|
-
interface FlexProps extends ViewProps, index_d_exports.FlexboxProps<Theme> {
|
|
8
|
-
/** Resolves against theme.space — maps to CSS gap. Accepts responsive arrays. */
|
|
9
|
-
gap?: index_d_exports.ResponsiveValue<GapToken>;
|
|
10
|
-
}
|
|
7
|
+
interface FlexProps extends ViewProps, index_d_exports.FlexboxProps<Theme> {}
|
|
11
8
|
declare const Flex: import("@emotion/styled").StyledComponent<{
|
|
12
9
|
theme?: Theme;
|
|
13
10
|
as?: React.ElementType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
|
+
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-D8U2tk1L.mjs";
|
|
4
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
5
5
|
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
6
6
|
type ButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as PaletteColor,
|
|
1
|
+
import { d as PaletteColor, h as Theme, r as CSSObject$1 } from "./themes-CUV79qWU.cjs";
|
|
2
2
|
import { CreateStyledComponent, FilteringStyledOptions, Interpolation, StyledOptions } from "@emotion/styled";
|
|
3
3
|
import { PropsOf, css, keyframes } from "@emotion/react";
|
|
4
4
|
import { ComponentClass, ComponentProps, ComponentType, JSX, Ref } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
3
|
import { CSSProperties, HTMLAttributes } from "react";
|
|
4
4
|
//#region src/View/View.d.ts
|
|
5
5
|
/** Valid values for the color prop — derived from theme.text keys. */
|
|
@@ -22,8 +22,6 @@ interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, index_d_
|
|
|
22
22
|
borderRadius?: ViewBorderRadiusToken;
|
|
23
23
|
opacity?: number;
|
|
24
24
|
cursor?: CSSProperties['cursor'];
|
|
25
|
-
/** CSS aspect-ratio for fixed-ratio surfaces (e.g. 16/9, 1). */
|
|
26
|
-
aspectRatio?: CSSProperties['aspectRatio'];
|
|
27
25
|
/** CSS order for flex/grid item placement. Accepts responsive arrays. */
|
|
28
26
|
order?: index_d_exports.FlexboxProps<Theme>['order'];
|
|
29
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import "./index-D8b5OCLe.mjs";
|
|
3
3
|
import { KeyboardEvent, MouseEvent, ReactNode, Ref, RefCallback, SyntheticEvent } from "react";
|
|
4
4
|
//#region src/Modal/useModal.d.ts
|
|
5
5
|
type ModalCloseReason = 'escapeKey' | 'backdropClick';
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
import { n as FlexProps } from "./index-
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import "./index-D8b5OCLe.mjs";
|
|
3
|
+
import { n as FlexProps } from "./index-DEv2QslH.mjs";
|
|
4
4
|
import { CSSProperties, ElementType } from "react";
|
|
5
5
|
//#region src/Paper/Paper.d.ts
|
|
6
6
|
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;
|
|
7
7
|
interface PaperProps extends FlexProps {
|
|
8
8
|
/** Shadow depth — 0 (flat) to 24 (highest). Resolves to theme.shadows[n]. Default: 1. */
|
|
9
9
|
elevation?: PaperElevation;
|
|
10
|
-
/** CSS aspect-ratio for fixed-ratio surfaces (e.g. 16/9, 1). */
|
|
11
|
-
aspectRatio?: CSSProperties['aspectRatio'];
|
|
12
10
|
/** CSS transition for surface animations (e.g. hover elevation change). */
|
|
13
11
|
transition?: CSSProperties['transition'];
|
|
14
12
|
/** Resolves against theme.border — light · primary · dark */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as ThemeComponents, h as Theme, x as ThemeDefaults } from "./themes-CUV79qWU.cjs";
|
|
2
2
|
import { ComponentType, ReactNode } from "react";
|
|
3
3
|
//#region src/theme/ThemeProvider.d.ts
|
|
4
4
|
interface ThemeProviderProps {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { d as PaletteColor, h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
|
+
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
4
|
+
//#region src/Pressable/Pressable.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Press feedback: `none` leaves the wrapped content untouched, `opacity` dims it
|
|
7
|
+
* while held, `highlight` tints the surface behind it while held.
|
|
8
|
+
*/
|
|
9
|
+
type PressableFeedback = 'none' | 'opacity' | 'highlight';
|
|
10
|
+
type PressableColor = PaletteColor;
|
|
11
|
+
interface PressableProps extends Omit<ButtonHTMLAttributes<HTMLElement>, 'color'>, index_d_exports.SpaceProps<Theme>, index_d_exports.LayoutProps<Theme>, index_d_exports.BorderProps<Theme>, index_d_exports.TypographyProps<Theme> {
|
|
12
|
+
/**
|
|
13
|
+
* Element to render. Default: `'div'` — which still behaves as a button
|
|
14
|
+
* (`role`, tab stop, Enter/Space) because a `<button>` may not legally contain
|
|
15
|
+
* links, buttons, or block-level content. Pass `'button'` for a native button
|
|
16
|
+
* when the content is phrasing-only, or any other tag you need.
|
|
17
|
+
*/
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
/** Feedback shown while pressed. Default: `'none'`, overridable via `theme.components.Pressable.defaultProps`. */
|
|
20
|
+
feedback?: PressableFeedback;
|
|
21
|
+
/** Palette the `highlight` tint derives from — maps to `theme.palette[color]`. Default: `'primary'`, overridable via `theme.defaults.color`. */
|
|
22
|
+
color?: PressableColor;
|
|
23
|
+
/** Opacity held content fades to under `feedback="opacity"`. Default: `0.7`. */
|
|
24
|
+
activeOpacity?: number;
|
|
25
|
+
/** The URL to link to. If defined and `as` is unset, an `a` element is used. */
|
|
26
|
+
href?: string;
|
|
27
|
+
/** Anchor `target` — only meaningful when `href` is set. */
|
|
28
|
+
target?: string;
|
|
29
|
+
/** Anchor `rel` — only meaningful when `href` is set. */
|
|
30
|
+
rel?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* An unstyled clickable surface — button semantics (keyboard activation, focus
|
|
34
|
+
* ring, disabled state) with none of a button's looks, so it can wrap arbitrary
|
|
35
|
+
* content without changing its layout. Use it instead of an `onClick` on a
|
|
36
|
+
* `div`, which no keyboard or screen-reader user can reach.
|
|
37
|
+
*
|
|
38
|
+
* It renders a `div` by default, because `<button>` may not legally contain a
|
|
39
|
+
* link, another button, or block-level content — the shim gives that div a
|
|
40
|
+
* `role`, a tab stop, and Enter/Space activation, so it is announced and
|
|
41
|
+
* operated as a button either way. Pass `as="button"` for a native button, or
|
|
42
|
+
* `href` for an anchor; both skip the shim and let the browser do the work.
|
|
43
|
+
*
|
|
44
|
+
* `feedback` picks what happens while it is held: nothing (default), the content
|
|
45
|
+
* dims, or the surface tints.
|
|
46
|
+
*/
|
|
47
|
+
declare function Pressable({ as, feedback, color, activeOpacity, href, type, disabled, onClick, onKeyDown, onKeyUp, ...rest }: Readonly<PressableProps>): import("react").JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { PressableProps as i, PressableColor as n, PressableFeedback as r, Pressable as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { h as Theme } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { r as index_d_exports } from "./index-D8b5OCLe.mjs";
|
|
3
3
|
import { CSSProperties, HTMLAttributes } from "react";
|
|
4
4
|
//#region src/View/View.d.ts
|
|
5
5
|
/** Valid values for the color prop — derived from theme.text keys. */
|
|
@@ -22,8 +22,6 @@ interface ViewProps extends Omit<HTMLAttributes<HTMLElement>, 'color'>, index_d_
|
|
|
22
22
|
borderRadius?: ViewBorderRadiusToken;
|
|
23
23
|
opacity?: number;
|
|
24
24
|
cursor?: CSSProperties['cursor'];
|
|
25
|
-
/** CSS aspect-ratio for fixed-ratio surfaces (e.g. 16/9, 1). */
|
|
26
|
-
aspectRatio?: CSSProperties['aspectRatio'];
|
|
27
25
|
/** CSS order for flex/grid item placement. Accepts responsive arrays. */
|
|
28
26
|
order?: index_d_exports.FlexboxProps<Theme>['order'];
|
|
29
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as index_d_exports } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-CA_X-mXg.cjs";
|
|
4
4
|
import { ButtonHTMLAttributes } from "react";
|
|
5
5
|
//#region src/Table/TableSortLabel/TableSortLabel.d.ts
|
|
6
6
|
type TableSortLabelDirection = 'asc' | 'desc';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as index_d_exports } from "./index-
|
|
2
|
-
import { d as PaletteColor,
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { d as PaletteColor, h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
3
|
import { ButtonHTMLAttributes, ElementType, ReactNode } from "react";
|
|
4
4
|
//#region src/Pagination/hooks/usePagination.d.ts
|
|
5
5
|
type PaginationItemType = 'page' | 'first' | 'previous' | 'next' | 'last' | 'start-ellipsis' | 'end-ellipsis';
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { s as ViewProps } from "./index-
|
|
1
|
+
import { r as index_d_exports } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { h as Theme } from "./themes-CUV79qWU.cjs";
|
|
3
|
+
import { s as ViewProps } from "./index-DjtGkwRM.cjs";
|
|
4
4
|
//#region src/Flex/Flex.d.ts
|
|
5
5
|
/** Valid values for the gap prop — derived from theme.space keys. */
|
|
6
6
|
type GapToken = keyof Theme['space'];
|
|
7
|
-
interface FlexProps extends ViewProps, index_d_exports.FlexboxProps<Theme> {
|
|
8
|
-
/** Resolves against theme.space — maps to CSS gap. Accepts responsive arrays. */
|
|
9
|
-
gap?: index_d_exports.ResponsiveValue<GapToken>;
|
|
10
|
-
}
|
|
7
|
+
interface FlexProps extends ViewProps, index_d_exports.FlexboxProps<Theme> {}
|
|
11
8
|
declare const Flex: import("@emotion/styled").StyledComponent<{
|
|
12
9
|
theme?: Theme;
|
|
13
10
|
as?: React.ElementType;
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-BJrcLd7P.cjs");
|
|
3
3
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
4
4
|
let _emotion_react = require("@emotion/react");
|
|
5
5
|
Object.defineProperty(exports, "createShouldForwardProp", {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as props, i as keyframes, n as css, o as ThemeCustomizationOptions, s as styled, t as createShouldForwardProp } from "./index-
|
|
2
|
-
import { d as PaletteColor,
|
|
1
|
+
import { a as props, i as keyframes, n as css, o as ThemeCustomizationOptions, s as styled, t as createShouldForwardProp } from "./index-DLJ-li1B.cjs";
|
|
2
|
+
import { d as PaletteColor, h as Theme, r as CSSObject } from "./themes-CUV79qWU.cjs";
|
|
3
3
|
export * from "@soroush.tech/styled-system";
|
|
4
4
|
export { type CSSObject, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as PaletteColor,
|
|
2
|
-
import { a as props, i as keyframes, n as css, o as ThemeCustomizationOptions, s as styled, t as createShouldForwardProp } from "./index-
|
|
1
|
+
import { d as PaletteColor, h as Theme, r as CSSObject } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { a as props, i as keyframes, n as css, o as ThemeCustomizationOptions, s as styled, t as createShouldForwardProp } from "./index-D8b5OCLe.mjs";
|
|
3
3
|
export * from "@soroush.tech/styled-system";
|
|
4
4
|
export { type CSSObject, type PaletteColor, type Theme, type ThemeCustomizationOptions, createShouldForwardProp, css, keyframes, props, styled };
|
|
@@ -25,7 +25,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
25
25
|
return to;
|
|
26
26
|
};
|
|
27
27
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
29
29
|
value: mod,
|
|
30
30
|
enumerable: true
|
|
31
31
|
}) : target, mod));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-BloeesfJ.cjs");
|
|
2
2
|
let _emotion_styled = require("@emotion/styled");
|
|
3
3
|
_emotion_styled = require_rolldown_runtime.__toESM(_emotion_styled, 1);
|
|
4
4
|
let _emotion_react = require("@emotion/react");
|
package/dist/style.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_theme = require("./theme-
|
|
2
|
+
const require_theme = require("./theme-CleLAV6A.cjs");
|
|
3
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
4
|
let _emotion_react = require("@emotion/react");
|
|
5
5
|
//#region src/style/hooks/useStyle.ts
|
package/dist/style.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { h as Theme, r as CSSObject } from "./themes-CUV79qWU.cjs";
|
|
2
|
+
import "./index-MsUtFRul.cjs";
|
|
3
3
|
import { ComponentType, ReactNode } from "react";
|
|
4
4
|
//#region src/style/hooks/useStyle.d.ts
|
|
5
5
|
type StyleFactory = {
|
package/dist/style.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { h as Theme, r as CSSObject } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import "./index-BoOs5h_b.mjs";
|
|
3
3
|
import { ComponentType, ReactNode } from "react";
|
|
4
4
|
//#region src/style/hooks/useStyle.d.ts
|
|
5
5
|
type StyleFactory = {
|
package/dist/style.mjs
CHANGED
|
@@ -319,8 +319,9 @@ const baseTheme = {
|
|
|
319
319
|
//#endregion
|
|
320
320
|
//#region src/theme/ThemeProvider.tsx
|
|
321
321
|
function ThemeProvider({ children, theme = baseTheme, defaults }) {
|
|
322
|
+
const value = (0, react.useMemo)(() => defaults ? createTheme(theme, { defaults }) : theme, [theme, defaults]);
|
|
322
323
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_emotion_react.ThemeProvider, {
|
|
323
|
-
theme:
|
|
324
|
+
theme: value,
|
|
324
325
|
children
|
|
325
326
|
});
|
|
326
327
|
}
|
|
@@ -319,8 +319,9 @@ const baseTheme = {
|
|
|
319
319
|
//#endregion
|
|
320
320
|
//#region src/theme/ThemeProvider.tsx
|
|
321
321
|
function ThemeProvider({ children, theme = baseTheme, defaults }) {
|
|
322
|
+
const value = useMemo(() => defaults ? createTheme(theme, { defaults }) : theme, [theme, defaults]);
|
|
322
323
|
return /* @__PURE__ */ jsx(EmotionThemeProvider, {
|
|
323
|
-
theme:
|
|
324
|
+
theme: value,
|
|
324
325
|
children
|
|
325
326
|
});
|
|
326
327
|
}
|
package/dist/theme.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
3
|
-
const require_theme = require("./theme-
|
|
3
|
+
const require_theme = require("./theme-CleLAV6A.cjs");
|
|
4
4
|
exports.ThemeProvider = require_theme.ThemeProvider;
|
|
5
5
|
exports.avatar = require_theme.avatar;
|
|
6
6
|
exports.baseTheme = require_theme.baseTheme;
|
package/dist/theme.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as ThemeProvider, i as themeDefault, n as useDefaultProps, r as useTheme, t as withTheme } from "./index-
|
|
3
|
-
export { ButtonOwnerState, ButtonVariants, CSSObject, CardOwnerState, CardSlotIconProps, CardSlotTypographyProps, ComponentConfig, ComponentStyle, ComponentVariant, type DeepPartial, OpenScale, PaletteColor, PaletteEntry, SizeEntry, Theme, ThemeAvatarSizes, ThemeBackground, ThemeBorder, ThemeBorderWidths, ThemeComponents, ThemeDefaults, ThemeFontWeights, ThemeFonts, ThemeIconSizes, ThemeLetterSpacings, ThemeLineHeights, type ThemeOverride, ThemePalette, ThemeProvider, ThemeRadii, ThemeShadow, ThemeSizes, ThemeSkeleton, ThemeSpace, ThemeSwitch, ThemeText, ThemeTypographyVariants, ThemeZOrder, TypographyVariant, TypographyVariantStyle, avatar, baseTheme, borderWidths, createTheme, fontSizes, fontWeights, fonts, icon, letterSpacings, lineHeights, radii, sizes, space, themeDefault, typography, useDefaultProps, useTheme, withTheme, zOrder };
|
|
1
|
+
import { $ as DeepPartial, A as ThemeSizes, B as baseTheme, C as ThemeFonts, D as ThemePalette, E as ThemeLineHeights, F as ThemeTypographyVariants, G as icon, H as fontSizes, I as ThemeZOrder, J as radii, K as letterSpacings, L as TypographyVariant, M as ThemeSpace, N as ThemeSwitch, O as ThemeRadii, P as ThemeText, Q as zOrder, R as TypographyVariantStyle, S as ThemeFontWeights, T as ThemeLetterSpacings, U as fontWeights, V as borderWidths, W as fonts, X as space, Y as sizes, Z as typography, _ as ThemeBackground, a as CardSlotIconProps, b as ThemeComponents, c as ComponentStyle, d as PaletteColor, et as ThemeOverride, f as PaletteEntry, g as ThemeAvatarSizes, h as Theme, i as CardOwnerState, j as ThemeSkeleton, k as ThemeShadow, l as ComponentVariant, m as SizeEntry, n as ButtonVariants, o as CardSlotTypographyProps, p as PressableOwnerState, q as lineHeights, r as CSSObject, s as ComponentConfig, t as ButtonOwnerState, tt as createTheme, u as OpenScale, v as ThemeBorder, w as ThemeIconSizes, x as ThemeDefaults, y as ThemeBorderWidths, z as avatar } from "./themes-CUV79qWU.cjs";
|
|
2
|
+
import { a as ThemeProvider, i as themeDefault, n as useDefaultProps, r as useTheme, t as withTheme } from "./index-MsUtFRul.cjs";
|
|
3
|
+
export { ButtonOwnerState, ButtonVariants, CSSObject, CardOwnerState, CardSlotIconProps, CardSlotTypographyProps, ComponentConfig, ComponentStyle, ComponentVariant, type DeepPartial, OpenScale, PaletteColor, PaletteEntry, PressableOwnerState, SizeEntry, Theme, ThemeAvatarSizes, ThemeBackground, ThemeBorder, ThemeBorderWidths, ThemeComponents, ThemeDefaults, ThemeFontWeights, ThemeFonts, ThemeIconSizes, ThemeLetterSpacings, ThemeLineHeights, type ThemeOverride, ThemePalette, ThemeProvider, ThemeRadii, ThemeShadow, ThemeSizes, ThemeSkeleton, ThemeSpace, ThemeSwitch, ThemeText, ThemeTypographyVariants, ThemeZOrder, TypographyVariant, TypographyVariantStyle, avatar, baseTheme, borderWidths, createTheme, fontSizes, fontWeights, fonts, icon, letterSpacings, lineHeights, radii, sizes, space, themeDefault, typography, useDefaultProps, useTheme, withTheme, zOrder };
|
package/dist/theme.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as ThemeProvider, i as themeDefault, n as useDefaultProps, r as useTheme, t as withTheme } from "./index-
|
|
3
|
-
export { ButtonOwnerState, ButtonVariants, CSSObject, CardOwnerState, CardSlotIconProps, CardSlotTypographyProps, ComponentConfig, ComponentStyle, ComponentVariant, type DeepPartial, OpenScale, PaletteColor, PaletteEntry, SizeEntry, Theme, ThemeAvatarSizes, ThemeBackground, ThemeBorder, ThemeBorderWidths, ThemeComponents, ThemeDefaults, ThemeFontWeights, ThemeFonts, ThemeIconSizes, ThemeLetterSpacings, ThemeLineHeights, type ThemeOverride, ThemePalette, ThemeProvider, ThemeRadii, ThemeShadow, ThemeSizes, ThemeSkeleton, ThemeSpace, ThemeSwitch, ThemeText, ThemeTypographyVariants, ThemeZOrder, TypographyVariant, TypographyVariantStyle, avatar, baseTheme, borderWidths, createTheme, fontSizes, fontWeights, fonts, icon, letterSpacings, lineHeights, radii, sizes, space, themeDefault, typography, useDefaultProps, useTheme, withTheme, zOrder };
|
|
1
|
+
import { $ as DeepPartial, A as ThemeSizes, B as baseTheme, C as ThemeFonts, D as ThemePalette, E as ThemeLineHeights, F as ThemeTypographyVariants, G as icon, H as fontSizes, I as ThemeZOrder, J as radii, K as letterSpacings, L as TypographyVariant, M as ThemeSpace, N as ThemeSwitch, O as ThemeRadii, P as ThemeText, Q as zOrder, R as TypographyVariantStyle, S as ThemeFontWeights, T as ThemeLetterSpacings, U as fontWeights, V as borderWidths, W as fonts, X as space, Y as sizes, Z as typography, _ as ThemeBackground, a as CardSlotIconProps, b as ThemeComponents, c as ComponentStyle, d as PaletteColor, et as ThemeOverride, f as PaletteEntry, g as ThemeAvatarSizes, h as Theme, i as CardOwnerState, j as ThemeSkeleton, k as ThemeShadow, l as ComponentVariant, m as SizeEntry, n as ButtonVariants, o as CardSlotTypographyProps, p as PressableOwnerState, q as lineHeights, r as CSSObject, s as ComponentConfig, t as ButtonOwnerState, tt as createTheme, u as OpenScale, v as ThemeBorder, w as ThemeIconSizes, x as ThemeDefaults, y as ThemeBorderWidths, z as avatar } from "./themes-CUV79qWU.mjs";
|
|
2
|
+
import { a as ThemeProvider, i as themeDefault, n as useDefaultProps, r as useTheme, t as withTheme } from "./index-BoOs5h_b.mjs";
|
|
3
|
+
export { ButtonOwnerState, ButtonVariants, CSSObject, CardOwnerState, CardSlotIconProps, CardSlotTypographyProps, ComponentConfig, ComponentStyle, ComponentVariant, type DeepPartial, OpenScale, PaletteColor, PaletteEntry, PressableOwnerState, SizeEntry, Theme, ThemeAvatarSizes, ThemeBackground, ThemeBorder, ThemeBorderWidths, ThemeComponents, ThemeDefaults, ThemeFontWeights, ThemeFonts, ThemeIconSizes, ThemeLetterSpacings, ThemeLineHeights, type ThemeOverride, ThemePalette, ThemeProvider, ThemeRadii, ThemeShadow, ThemeSizes, ThemeSkeleton, ThemeSpace, ThemeSwitch, ThemeText, ThemeTypographyVariants, ThemeZOrder, TypographyVariant, TypographyVariantStyle, avatar, baseTheme, borderWidths, createTheme, fontSizes, fontWeights, fonts, icon, letterSpacings, lineHeights, radii, sizes, space, themeDefault, typography, useDefaultProps, useTheme, withTheme, zOrder };
|
package/dist/theme.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
2
|
-
import { _ as typography, a as avatar, c as fontSizes, d as icon, f as letterSpacings, g as space, h as sizes, i as ThemeProvider, l as fontWeights, m as radii, n as useDefaultProps, o as baseTheme, p as lineHeights, r as useTheme, s as borderWidths, t as withTheme, u as fonts, v as zOrder, y as createTheme } from "./theme-
|
|
2
|
+
import { _ as typography, a as avatar, c as fontSizes, d as icon, f as letterSpacings, g as space, h as sizes, i as ThemeProvider, l as fontWeights, m as radii, n as useDefaultProps, o as baseTheme, p as lineHeights, r as useTheme, s as borderWidths, t as withTheme, u as fonts, v as zOrder, y as createTheme } from "./theme-Cudynq5K.mjs";
|
|
3
3
|
export { ThemeProvider, avatar, baseTheme, borderWidths, createTheme, fontSizes, fontWeights, fonts, icon, letterSpacings, lineHeights, radii, sizes, space, themeDefault, typography, useDefaultProps, useTheme, withTheme, zOrder };
|
|
@@ -326,6 +326,18 @@ interface CardOwnerState {
|
|
|
326
326
|
/** Merged under any per-instance `iconProps` (instance wins). */
|
|
327
327
|
iconProps?: CardSlotIconProps;
|
|
328
328
|
}
|
|
329
|
+
/**
|
|
330
|
+
* Pressable's resolved props / theme-settable defaults. Only the three keys it
|
|
331
|
+
* actually resolves through `useDefaultProps` — the disabled state reaches the
|
|
332
|
+
* styled root as `isDisabled` and is never read from here, so exposing it would
|
|
333
|
+
* promise theme authors an override that does nothing.
|
|
334
|
+
*/
|
|
335
|
+
interface PressableOwnerState {
|
|
336
|
+
feedback?: 'none' | 'opacity' | 'highlight';
|
|
337
|
+
color?: keyof ThemePalette;
|
|
338
|
+
/** Opacity held content fades to under `feedback: 'opacity'`. */
|
|
339
|
+
activeOpacity?: number;
|
|
340
|
+
}
|
|
329
341
|
/**
|
|
330
342
|
* Per-component theme customization, keyed by component name. Augment this
|
|
331
343
|
* interface to register additional components (including your own, when their
|
|
@@ -359,9 +371,12 @@ interface ThemeComponents {
|
|
|
359
371
|
PaginationItem?: ComponentConfig<Record<string, unknown>, 'root' | 'ellipsis'>;
|
|
360
372
|
Paper?: ComponentConfig;
|
|
361
373
|
Popover?: ComponentConfig<Record<string, unknown>, 'root' | 'positioner'>;
|
|
374
|
+
Pressable?: ComponentConfig<PressableOwnerState>;
|
|
362
375
|
Quote?: ComponentConfig;
|
|
363
376
|
Radio?: ComponentConfig<Record<string, unknown>, 'root' | 'input' | 'icon'>;
|
|
364
377
|
Select?: ComponentConfig<Record<string, unknown>, 'root' | 'value' | 'valueArea' | 'valueGhost' | 'listbox'>;
|
|
378
|
+
Sidebar?: ComponentConfig<Record<string, unknown>, 'root' | 'rail' | 'panel'>;
|
|
379
|
+
SidebarItem?: ComponentConfig;
|
|
365
380
|
Skeleton?: ComponentConfig<Record<string, unknown>, 'root' | 'content'>;
|
|
366
381
|
Switch?: ComponentConfig<Record<string, unknown>, 'root' | 'input' | 'track' | 'thumb'>;
|
|
367
382
|
Table?: ComponentConfig;
|
|
@@ -485,4 +500,4 @@ declare const typography: ThemeTypographyVariants;
|
|
|
485
500
|
*/
|
|
486
501
|
declare const baseTheme: Theme;
|
|
487
502
|
//#endregion
|
|
488
|
-
export {
|
|
503
|
+
export { DeepPartial as $, ThemeSizes as A, baseTheme as B, ThemeFonts as C, ThemePalette as D, ThemeLineHeights as E, ThemeTypographyVariants as F, icon as G, fontSizes as H, ThemeZOrder as I, radii as J, letterSpacings as K, TypographyVariant as L, ThemeSpace as M, ThemeSwitch as N, ThemeRadii as O, ThemeText as P, zOrder as Q, TypographyVariantStyle as R, ThemeFontWeights as S, ThemeLetterSpacings as T, fontWeights as U, borderWidths as V, fonts as W, space as X, sizes as Y, typography as Z, ThemeBackground as _, CardSlotIconProps as a, ThemeComponents as b, ComponentStyle as c, PaletteColor as d, ThemeOverride as et, PaletteEntry as f, ThemeAvatarSizes as g, Theme as h, CardOwnerState as i, ThemeSkeleton as j, ThemeShadow as k, ComponentVariant as l, SizeEntry as m, ButtonVariants as n, CardSlotTypographyProps as o, PressableOwnerState as p, lineHeights as q, CSSObject$1 as r, ComponentConfig as s, ButtonOwnerState as t, createTheme as tt, OpenScale as u, ThemeBorder as v, ThemeIconSizes as w, ThemeDefaults as x, ThemeBorderWidths as y, avatar as z };
|
|
@@ -326,6 +326,18 @@ interface CardOwnerState {
|
|
|
326
326
|
/** Merged under any per-instance `iconProps` (instance wins). */
|
|
327
327
|
iconProps?: CardSlotIconProps;
|
|
328
328
|
}
|
|
329
|
+
/**
|
|
330
|
+
* Pressable's resolved props / theme-settable defaults. Only the three keys it
|
|
331
|
+
* actually resolves through `useDefaultProps` — the disabled state reaches the
|
|
332
|
+
* styled root as `isDisabled` and is never read from here, so exposing it would
|
|
333
|
+
* promise theme authors an override that does nothing.
|
|
334
|
+
*/
|
|
335
|
+
interface PressableOwnerState {
|
|
336
|
+
feedback?: 'none' | 'opacity' | 'highlight';
|
|
337
|
+
color?: keyof ThemePalette;
|
|
338
|
+
/** Opacity held content fades to under `feedback: 'opacity'`. */
|
|
339
|
+
activeOpacity?: number;
|
|
340
|
+
}
|
|
329
341
|
/**
|
|
330
342
|
* Per-component theme customization, keyed by component name. Augment this
|
|
331
343
|
* interface to register additional components (including your own, when their
|
|
@@ -359,9 +371,12 @@ interface ThemeComponents {
|
|
|
359
371
|
PaginationItem?: ComponentConfig<Record<string, unknown>, 'root' | 'ellipsis'>;
|
|
360
372
|
Paper?: ComponentConfig;
|
|
361
373
|
Popover?: ComponentConfig<Record<string, unknown>, 'root' | 'positioner'>;
|
|
374
|
+
Pressable?: ComponentConfig<PressableOwnerState>;
|
|
362
375
|
Quote?: ComponentConfig;
|
|
363
376
|
Radio?: ComponentConfig<Record<string, unknown>, 'root' | 'input' | 'icon'>;
|
|
364
377
|
Select?: ComponentConfig<Record<string, unknown>, 'root' | 'value' | 'valueArea' | 'valueGhost' | 'listbox'>;
|
|
378
|
+
Sidebar?: ComponentConfig<Record<string, unknown>, 'root' | 'rail' | 'panel'>;
|
|
379
|
+
SidebarItem?: ComponentConfig;
|
|
365
380
|
Skeleton?: ComponentConfig<Record<string, unknown>, 'root' | 'content'>;
|
|
366
381
|
Switch?: ComponentConfig<Record<string, unknown>, 'root' | 'input' | 'track' | 'thumb'>;
|
|
367
382
|
Table?: ComponentConfig;
|
|
@@ -485,4 +500,4 @@ declare const typography: ThemeTypographyVariants;
|
|
|
485
500
|
*/
|
|
486
501
|
declare const baseTheme: Theme;
|
|
487
502
|
//#endregion
|
|
488
|
-
export {
|
|
503
|
+
export { DeepPartial as $, ThemeSizes as A, baseTheme as B, ThemeFonts as C, ThemePalette as D, ThemeLineHeights as E, ThemeTypographyVariants as F, icon as G, fontSizes as H, ThemeZOrder as I, radii as J, letterSpacings as K, TypographyVariant as L, ThemeSpace as M, ThemeSwitch as N, ThemeRadii as O, ThemeText as P, zOrder as Q, TypographyVariantStyle as R, ThemeFontWeights as S, ThemeLetterSpacings as T, fontWeights as U, borderWidths as V, fonts as W, space as X, sizes as Y, typography as Z, ThemeBackground as _, CardSlotIconProps as a, ThemeComponents as b, ComponentStyle as c, PaletteColor as d, ThemeOverride as et, PaletteEntry as f, ThemeAvatarSizes as g, Theme as h, CardOwnerState as i, ThemeSkeleton as j, ThemeShadow as k, ComponentVariant as l, SizeEntry as m, ButtonVariants as n, CardSlotTypographyProps as o, PressableOwnerState as p, lineHeights as q, CSSObject$1 as r, ComponentConfig as s, ButtonOwnerState as t, createTheme as tt, OpenScale as u, ThemeBorder as v, ThemeIconSizes as w, ThemeDefaults as x, ThemeBorderWidths as y, avatar as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TableSortLabelDirection } from "./index-
|
|
1
|
+
import { n as TableSortLabelDirection } from "./index-v99yMdts.cjs";
|
|
2
2
|
//#region src/Table/hooks/useTableSort.d.ts
|
|
3
3
|
/** One column's sort state — spreads directly onto `TableSortLabel`. */
|
|
4
4
|
interface TableSortEntry {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TableSortLabelDirection } from "./index-
|
|
1
|
+
import { n as TableSortLabelDirection } from "./index-BItZoGZ1.mjs";
|
|
2
2
|
//#region src/Table/hooks/useTableSort.d.ts
|
|
3
3
|
/** One column's sort state — spreads directly onto `TableSortLabel`. */
|
|
4
4
|
interface TableSortEntry {
|