@soroush.tech/design-system 1.3.3 → 2.0.0-alpha.1
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 +45 -7
- package/dist/AppBar.d.cts +3 -3
- package/dist/AppBar.d.mts +3 -3
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.d.cts +3 -3
- package/dist/Avatar.d.mts +3 -3
- package/dist/Avatar.mjs +1 -1
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +1 -1
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/Card.cjs +2 -2
- package/dist/Card.d.cts +3 -3
- package/dist/Card.d.mts +3 -3
- package/dist/Card.mjs +2 -2
- package/dist/Checkbox.d.cts +2 -2
- package/dist/Checkbox.d.mts +2 -2
- package/dist/CircularProgress.d.cts +3 -3
- package/dist/CircularProgress.d.mts +3 -3
- package/dist/Drawer.cjs +109 -17
- package/dist/Drawer.d.cts +43 -7
- package/dist/Drawer.d.mts +43 -7
- package/dist/Drawer.mjs +109 -18
- package/dist/Flex.cjs +6 -2
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +6 -2
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.mts +1 -1
- package/dist/FormControl.cjs +1 -1
- package/dist/FormControl.d.cts +2 -2
- package/dist/FormControl.d.mts +2 -2
- package/dist/FormControl.mjs +1 -1
- package/dist/FormHelperText.d.cts +1 -1
- package/dist/FormHelperText.d.mts +1 -1
- package/dist/FormLabel.d.cts +1 -1
- package/dist/FormLabel.d.mts +1 -1
- package/dist/Grid.cjs +7 -2
- package/dist/Grid.d.cts +9 -5
- package/dist/Grid.d.mts +9 -5
- package/dist/Grid.mjs +7 -2
- package/dist/{Icon-gSiGgU13.mjs → Icon-BGcd6yy0.mjs} +1 -1
- package/dist/{Icon-BAMpe9SO.cjs → Icon-Cn6Zx8wb.cjs} +1 -1
- 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.d.cts +2 -2
- package/dist/Image.d.mts +2 -2
- package/dist/LinearProgress.d.cts +3 -3
- package/dist/LinearProgress.d.mts +3 -3
- package/dist/Link.cjs +1 -1
- package/dist/Link.d.cts +1 -1
- package/dist/Link.d.mts +1 -1
- package/dist/Link.mjs +1 -1
- package/dist/MenuItem.cjs +2 -2
- package/dist/MenuItem.d.cts +2 -2
- package/dist/MenuItem.d.mts +2 -2
- package/dist/MenuItem.mjs +2 -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 +2 -2
- package/dist/NativeSelect.d.cts +3 -3
- package/dist/NativeSelect.d.mts +3 -3
- package/dist/NativeSelect.mjs +2 -2
- package/dist/Pagination/PaginationItem.cjs +1 -1
- 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.d.cts +2 -2
- package/dist/Pagination.d.mts +2 -2
- package/dist/Paper.cjs +1 -1
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +1 -1
- package/dist/Paper.mjs +1 -1
- package/dist/{Popover-gg44qzwo.cjs → Popover-CrSABgRk.cjs} +2 -2
- package/dist/{Popover-Bq31OTEl.mjs → Popover-DlpXdcwt.mjs} +2 -2
- 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 +1 -1
- package/dist/Pressable.d.cts +1 -1
- package/dist/Pressable.d.mts +1 -1
- package/dist/Pressable.mjs +1 -1
- package/dist/Quote.d.cts +4 -4
- package/dist/Quote.d.mts +4 -4
- package/dist/Radio.d.cts +2 -2
- package/dist/Radio.d.mts +2 -2
- package/dist/Select.cjs +3 -3
- package/dist/Select.d.cts +3 -3
- package/dist/Select.d.mts +3 -3
- package/dist/Select.mjs +3 -3
- package/dist/Sidebar/Sidebar.d.cts +1 -1
- package/dist/Sidebar/Sidebar.d.mts +1 -1
- package/dist/Sidebar/SidebarItem.cjs +1 -1
- package/dist/Sidebar/SidebarItem.d.cts +4 -4
- package/dist/Sidebar/SidebarItem.d.mts +4 -4
- package/dist/Sidebar/SidebarItem.mjs +1 -1
- package/dist/Skeleton.d.cts +2 -2
- package/dist/Skeleton.d.mts +2 -2
- package/dist/Switch.cjs +1 -1
- package/dist/Switch.d.cts +2 -2
- package/dist/Switch.d.mts +2 -2
- package/dist/Switch.mjs +1 -1
- package/dist/Table/Table.d.cts +3 -3
- package/dist/Table/Table.d.mts +3 -3
- package/dist/Table/TableBody.d.cts +2 -2
- package/dist/Table/TableBody.d.mts +2 -2
- package/dist/Table/TableCell.d.cts +1 -1
- package/dist/Table/TableCell.d.mts +1 -1
- package/dist/Table/TableContainer.d.cts +4 -4
- package/dist/Table/TableContainer.d.mts +4 -4
- package/dist/Table/TableControl.d.cts +1 -1
- package/dist/Table/TableControl.d.mts +1 -1
- package/dist/Table/TableFooter.d.cts +2 -2
- package/dist/Table/TableFooter.d.mts +2 -2
- package/dist/Table/TableHead.d.cts +2 -2
- package/dist/Table/TableHead.d.mts +2 -2
- package/dist/Table/TablePagination.d.cts +2 -2
- package/dist/Table/TablePagination.d.mts +2 -2
- package/dist/Table/TablePaginationActions.cjs +1 -1
- 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.d.cts +2 -2
- package/dist/Table/TableRow.d.mts +2 -2
- package/dist/Table/TableSortLabel.cjs +1 -1
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +1 -1
- package/dist/Table/hooks.d.cts +1 -1
- package/dist/Table/hooks.d.mts +1 -1
- package/dist/Table.d.cts +5 -5
- package/dist/Table.d.mts +5 -5
- package/dist/{TableContext-BrIREKe7.d.mts → TableContext-98M9MAm7.d.cts} +1 -1
- package/dist/{TableContext-DXzUQ4-a.d.cts → TableContext-BwK_fB9Q.d.mts} +1 -1
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.d.cts +2 -2
- package/dist/TextInput.d.mts +2 -2
- package/dist/TextInput.mjs +1 -1
- package/dist/ToggleButton/ToggleButton.cjs +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +1 -1
- package/dist/View.cjs +2 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +2 -1
- package/dist/engine.d.cts +1 -1
- package/dist/engine.d.mts +1 -1
- package/dist/{index-C-2VKPcp.d.mts → index-6BHvkjdp.d.cts} +3 -3
- package/dist/{index-DQ16ijxx.d.mts → index-AlVOmB-K.d.mts} +4 -4
- package/dist/{index-Btmdtbpb.d.cts → index-B2LR3Y5d.d.cts} +4 -4
- package/dist/{index-XZDPGJ_h.d.mts → index-BAKGyLEF.d.mts} +2 -2
- package/dist/{index-vuPAf55D.d.cts → index-BAb24XNa.d.cts} +3 -3
- package/dist/{index-BoIi-XoB.d.mts → index-BC98RYwO.d.mts} +3 -3
- package/dist/{index-DdBeSvit.d.mts → index-BS5dkngf.d.mts} +2 -2
- package/dist/{index-d6gR2x8j.d.cts → index-BfOZMmZA.d.cts} +2 -2
- package/dist/{index-CHRAYSwH.d.cts → index-BjMQ1Sfq.d.cts} +3 -3
- package/dist/{index-D9CwTcnr.d.cts → index-BvLNPm5C.d.cts} +2 -2
- package/dist/index-C-ACdUhw.d.mts +20 -0
- package/dist/{index-D3iQQ0L3.d.cts → index-C2e925FY.d.cts} +1 -1
- package/dist/{index-D-QRCHiS.d.cts → index-CHr4HUzH.d.mts} +2 -2
- package/dist/{index-C5-ZM7lt.d.cts → index-CJWXZFFZ.d.cts} +3 -3
- package/dist/{index-h36rcOy8.d.mts → index-COKAN6-s.d.mts} +3 -3
- package/dist/{index-Csp1Wzbz.d.cts → index-COYl2TN0.d.mts} +3 -3
- package/dist/{index-DhMAwR96.d.mts → index-CaCfFN31.d.mts} +3 -3
- package/dist/{index-jmy5eXpx.d.cts → index-CkYiijiE.d.cts} +1 -1
- package/dist/{index-Cf7w9Lod.d.cts → index-CorVAOY7.d.mts} +3 -3
- package/dist/{index-Br2gDSme.d.cts → index-D3kNrl9W.d.cts} +3 -3
- package/dist/{index-COYxtrc0.d.mts → index-D4M18wt_.d.mts} +2 -2
- package/dist/{index-DzuXwDCW.d.cts → index-D8jHpwh5.d.cts} +2 -2
- package/dist/{index-BWECJgSb.d.mts → index-DClEfecw.d.cts} +3 -3
- package/dist/{index-Oxx0z4dS.d.cts → index-DLtzp-Mg.d.mts} +3 -3
- package/dist/{index-v_otepCe.d.mts → index-DVG64KQ4.d.mts} +1 -1
- package/dist/index-Da9Sr6v7.d.cts +20 -0
- package/dist/{index-76XH-GEc.d.mts → index-Dyfu-Otn.d.mts} +1 -1
- package/dist/{index-CTVFwvju.d.mts → index-FTr8Mn3p.d.cts} +2 -2
- package/dist/{index-ggLhNdZV.d.mts → index-Fcf_SOl_.d.mts} +3 -3
- package/dist/{index-BCvkP5R1.d.mts → index-OWbQXOvw.d.cts} +3 -3
- package/dist/{index-NBVilQuP.d.mts → index-iHyGhLkM.d.mts} +1 -1
- package/dist/{index-DCu7qjpa.d.cts → index-wJbUPxSk.d.cts} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- 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-BuqqFbsz.mjs → theme-C1o9qa2E.mjs} +99 -3
- package/dist/{theme-Bnc03K83.cjs → theme-DfAqr7qo.cjs} +152 -2
- package/dist/theme.cjs +10 -1
- package/dist/theme.d.cts +3 -3
- package/dist/theme.d.mts +3 -3
- package/dist/theme.mjs +2 -2
- package/dist/{themes-kbuYiwCi.d.mts → themes-CCguU8uo.d.mts} +111 -1
- package/dist/{themes-kbuYiwCi.d.cts → themes-CtTQTVqe.d.cts} +111 -1
- package/dist/{useTablePagination-BpMOVLsR.d.cts → useTablePagination-BG93T2Od.d.cts} +1 -1
- package/dist/{useTablePagination-DebYZ6vN.d.mts → useTablePagination-jBWK8cmx.d.mts} +1 -1
- package/package.json +4 -4
- package/dist/index-DOLA1VFD.d.cts +0 -16
- package/dist/index-KZKeZDAF.d.mts +0 -16
- package/dist/{Modal-CYNcPk-2.mjs → Modal-BcsyrrpH.mjs} +1 -1
- package/dist/{Modal-CApyh_V5.cjs → Modal-CM3osOqj.cjs} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { t as TableCellPadding } from "./TableContext-
|
|
1
|
+
import { T as Theme } from "./themes-CtTQTVqe.cjs";
|
|
2
|
+
import "./index-CkYiijiE.cjs";
|
|
3
|
+
import { t as TableCellPadding } from "./TableContext-98M9MAm7.cjs";
|
|
4
4
|
import { ElementType, ThHTMLAttributes } from "react";
|
|
5
5
|
import { BorderProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
6
6
|
//#region src/Table/TableSectionContext.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as PaginationItemSize } from "./index-
|
|
2
|
-
import "./index-
|
|
1
|
+
import { a as PaginationItemSize } from "./index-BfOZMmZA.cjs";
|
|
2
|
+
import "./index-D3kNrl9W.cjs";
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
//#region src/Table/TablePaginationActions/TablePaginationActions.d.ts
|
|
5
5
|
type TablePaginationActionType = 'first' | 'previous' | 'next' | 'last';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { T as Theme } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import "./index-DVG64KQ4.mjs";
|
|
3
|
+
import { s as ViewProps } from "./index-AlVOmB-K.mjs";
|
|
4
|
+
import { FlexboxProps, LayoutGridProps } from "@soroush.tech/styled-system";
|
|
5
|
+
//#region src/Flex/Flex.d.ts
|
|
6
|
+
/** Valid values for the gap prop - derived from theme.space keys. */
|
|
7
|
+
type GapToken = keyof Theme['space'];
|
|
8
|
+
/**
|
|
9
|
+
* `layout` lays a wrapping row out from `theme.layout` - the theme's gutter and margin per
|
|
10
|
+
* breakpoint, with `--layout-columns` / `--layout-gutter` for the children's `span`.
|
|
11
|
+
*/
|
|
12
|
+
interface FlexProps extends ViewProps, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
|
|
13
|
+
declare const Flex: import("@emotion/styled").StyledComponent<{
|
|
14
|
+
theme?: Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
} & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
17
|
+
theme?: Theme;
|
|
18
|
+
} & FlexProps, {}, {}>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { FlexProps as n, GapToken as r, Flex as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as ThemeDefaults, T as Theme, j as ThemeComponents } from "./themes-CtTQTVqe.cjs";
|
|
2
2
|
import { ComponentType, ReactNode } from "react";
|
|
3
3
|
//#region src/theme/ThemeProvider.d.ts
|
|
4
4
|
interface ThemeProviderProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import "./index-DVG64KQ4.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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-
|
|
1
|
+
import { T as Theme } from "./themes-CtTQTVqe.cjs";
|
|
2
|
+
import "./index-CkYiijiE.cjs";
|
|
3
|
+
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-6BHvkjdp.cjs";
|
|
4
4
|
import { ElementType, HTMLAttributes } from "react";
|
|
5
5
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
6
6
|
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./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 { T as Theme } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import "./index-DVG64KQ4.mjs";
|
|
3
|
+
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-BS5dkngf.mjs";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { HTMLAttributes } from "react";
|
|
6
6
|
//#region src/Pagination/Pagination.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
1
|
+
import { T as Theme, Y as TypographyVariant } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import "./index-DVG64KQ4.mjs";
|
|
4
3
|
import { BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
4
|
+
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
5
5
|
//#region src/Typography/Typography.d.ts
|
|
6
6
|
type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
7
7
|
/** Valid values for the color prop - derived from theme.text keys. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-
|
|
1
|
+
import { T as Theme } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import "./index-DVG64KQ4.mjs";
|
|
3
|
+
import { n as ButtonColor, o as ButtonSize, s as ButtonVariant } from "./index-DLtzp-Mg.mjs";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { ElementType, HTMLAttributes } from "react";
|
|
6
6
|
//#region src/ButtonGroup/ButtonGroup.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as Theme } from "./themes-CtTQTVqe.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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as FlexProps } from "./index-
|
|
1
|
+
import { T as Theme } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import "./index-DVG64KQ4.mjs";
|
|
3
|
+
import { n as FlexProps } from "./index-C-ACdUhw.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./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 { T as Theme } from "./themes-CtTQTVqe.cjs";
|
|
2
|
+
import "./index-CkYiijiE.cjs";
|
|
3
|
+
import { a as PaginationItemSize, i as PaginationItemShape, l as UsePaginationProps, n as PaginationItemColor, o as PaginationItemVariant, s as PaginationItemType } from "./index-BfOZMmZA.cjs";
|
|
4
4
|
import { HTMLAttributes } from "react";
|
|
5
5
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
6
6
|
//#region src/Pagination/Pagination.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme, x as PaletteColor } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import "./index-DVG64KQ4.mjs";
|
|
3
3
|
import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
5
5
|
//#region src/Pressable/Pressable.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme, x as PaletteColor } from "./themes-CtTQTVqe.cjs";
|
|
2
|
+
import "./index-CkYiijiE.cjs";
|
|
3
3
|
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
4
4
|
import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/Pressable/Pressable.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
1
|
+
import { T as Theme, Y as TypographyVariant } from "./themes-CtTQTVqe.cjs";
|
|
2
|
+
import "./index-CkYiijiE.cjs";
|
|
4
3
|
import { CSSProperties, ElementType, HTMLAttributes } from "react";
|
|
4
|
+
import { BorderProps, FlexboxProps, LayoutProps, PositionProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/Typography/Typography.d.ts
|
|
6
6
|
type TypographyAlign = 'left' | 'right' | 'center' | 'justify' | 'inherit';
|
|
7
7
|
/** Valid values for the color prop - derived from theme.text keys. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
1
|
+
import { T as Theme, i as ButtonVariants, x as PaletteColor } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import "./index-DVG64KQ4.mjs";
|
|
4
3
|
import { BorderProps, LayoutProps, SpaceProps, TypographyProps } from "@soroush.tech/styled-system";
|
|
4
|
+
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
5
5
|
//#region src/Button/Button.d.ts
|
|
6
6
|
/** Augmentable via the `ButtonVariants` interface - style new values through `theme.components.Button.variants`. */
|
|
7
7
|
type ButtonVariant = keyof ButtonVariants;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as Theme } from "./themes-CCguU8uo.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";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { T as Theme } from "./themes-CtTQTVqe.cjs";
|
|
2
|
+
import "./index-CkYiijiE.cjs";
|
|
3
|
+
import { s as ViewProps } from "./index-B2LR3Y5d.cjs";
|
|
4
|
+
import { FlexboxProps, LayoutGridProps } from "@soroush.tech/styled-system";
|
|
5
|
+
//#region src/Flex/Flex.d.ts
|
|
6
|
+
/** Valid values for the gap prop - derived from theme.space keys. */
|
|
7
|
+
type GapToken = keyof Theme['space'];
|
|
8
|
+
/**
|
|
9
|
+
* `layout` lays a wrapping row out from `theme.layout` - the theme's gutter and margin per
|
|
10
|
+
* breakpoint, with `--layout-columns` / `--layout-gutter` for the children's `span`.
|
|
11
|
+
*/
|
|
12
|
+
interface FlexProps extends ViewProps, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
|
|
13
|
+
declare const Flex: import("@emotion/styled").StyledComponent<{
|
|
14
|
+
theme?: Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
} & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
17
|
+
theme?: Theme;
|
|
18
|
+
} & FlexProps, {}, {}>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { FlexProps as n, GapToken as r, Flex as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TextColorToken } from "./index-
|
|
1
|
+
import { n as TextColorToken } from "./index-COYl2TN0.mjs";
|
|
2
2
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
3
3
|
import { SVGProps } from "react";
|
|
4
4
|
//#region src/Icon/icons/AccountTree.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { T as Theme } from "./themes-CtTQTVqe.cjs";
|
|
2
|
+
import "./index-CkYiijiE.cjs";
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { T as Theme } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import "./index-DVG64KQ4.mjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-Dyfu-Otn.mjs";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
import { ButtonHTMLAttributes } from "react";
|
|
6
6
|
//#region src/Table/TableSortLabel/TableSortLabel.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as FlexProps } from "./index-
|
|
1
|
+
import { T as Theme } from "./themes-CtTQTVqe.cjs";
|
|
2
|
+
import "./index-CkYiijiE.cjs";
|
|
3
|
+
import { n as FlexProps } from "./index-Da9Sr6v7.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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as ThemeDefaults, T as Theme, j as ThemeComponents } from "./themes-CCguU8uo.mjs";
|
|
2
2
|
import { ComponentType, ReactNode } from "react";
|
|
3
3
|
//#region src/theme/ThemeProvider.d.ts
|
|
4
4
|
interface ThemeProviderProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TextColorToken } from "./index-
|
|
1
|
+
import { n as TextColorToken } from "./index-DClEfecw.cjs";
|
|
2
2
|
import { SVGProps } from "react";
|
|
3
3
|
import { LayoutProps, SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
//#region src/Icon/icons/AccountTree.d.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-
|
|
1
|
+
import { T as Theme, a as CSSObject, x as PaletteColor } from "./themes-CtTQTVqe.cjs";
|
|
2
|
+
import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-CkYiijiE.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 {
|
|
2
|
-
import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-
|
|
1
|
+
import { T as Theme, a as CSSObject, x as PaletteColor } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import { a as ThemeCustomizationOptions, i as props, n as css, o as styled, r as keyframes, t as createShouldForwardProp } from "./index-DVG64KQ4.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 };
|
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-DfAqr7qo.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 { T as Theme, a as CSSObject } from "./themes-CtTQTVqe.cjs";
|
|
2
|
+
import "./index-C2e925FY.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 { T as Theme, a as CSSObject } from "./themes-CCguU8uo.mjs";
|
|
2
|
+
import "./index-iHyGhLkM.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
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
import { alpha, generateBoxShadow } from "./utils.mjs";
|
|
2
2
|
import { a as useEmotionTheme, n as EmotionThemeContext, r as EmotionThemeProvider } from "./emotion-BAyqVw0c.mjs";
|
|
3
|
+
import { createContainerQueries, createMediaHelpers } from "@soroush.tech/styled-system";
|
|
3
4
|
import { useMemo } from "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
//#region src/theme/utils/spacing.ts
|
|
6
7
|
const spacing = (units) => `${8 * units}px`;
|
|
7
8
|
//#endregion
|
|
9
|
+
//#region src/theme/breakpoints.ts
|
|
10
|
+
/**
|
|
11
|
+
* The scale with its helpers attached as non-enumerable methods: the engine, the theme's JSON
|
|
12
|
+
* and a spread see only the sizes, while `theme.breakpoints.up('md')` works. `createTheme`
|
|
13
|
+
* and `ThemeProvider` re-attach them after a merge, so they always follow the theme's own
|
|
14
|
+
* breakpoints.
|
|
15
|
+
*/
|
|
16
|
+
const withBreakpointHelpers = (scale) => {
|
|
17
|
+
const sizes = { ...scale };
|
|
18
|
+
const helpers = {
|
|
19
|
+
...createMediaHelpers(sizes),
|
|
20
|
+
containerQueries: createContainerQueries(sizes)
|
|
21
|
+
};
|
|
22
|
+
for (const [name, helper] of Object.entries(helpers)) Object.defineProperty(sizes, name, {
|
|
23
|
+
value: helper,
|
|
24
|
+
enumerable: false
|
|
25
|
+
});
|
|
26
|
+
return sizes;
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
8
29
|
//#region src/theme/utils/createTheme.ts
|
|
9
30
|
const isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
10
31
|
const deepMerge = (base, overrides) => {
|
|
@@ -24,8 +45,17 @@ const deepMerge = (base, overrides) => {
|
|
|
24
45
|
* - `undefined` override values are ignored - a key can be added or replaced,
|
|
25
46
|
* never removed.
|
|
26
47
|
* - Neither argument is mutated; untouched branches keep referential identity.
|
|
48
|
+
* - `breakpoints` gets its query helpers back, built from the merged sizes.
|
|
27
49
|
*/
|
|
28
|
-
const createTheme = (base, overrides) =>
|
|
50
|
+
const createTheme = (base, overrides) => {
|
|
51
|
+
const theme = deepMerge(base, overrides);
|
|
52
|
+
return withHelpers(theme);
|
|
53
|
+
};
|
|
54
|
+
/** A theme whose `breakpoints` carry the query helpers - added when a hand-built theme lacks them. */
|
|
55
|
+
const withHelpers = (theme) => theme.breakpoints && !("up" in theme.breakpoints) ? {
|
|
56
|
+
...theme,
|
|
57
|
+
breakpoints: withBreakpointHelpers(theme.breakpoints)
|
|
58
|
+
} : theme;
|
|
29
59
|
//#endregion
|
|
30
60
|
//#region src/theme/themes.ts
|
|
31
61
|
const shadow = {
|
|
@@ -141,6 +171,65 @@ const space = {
|
|
|
141
171
|
10: spacing(10),
|
|
142
172
|
auto: "auto"
|
|
143
173
|
};
|
|
174
|
+
const breakpoints = withBreakpointHelpers({
|
|
175
|
+
xs: "0px",
|
|
176
|
+
sm: "600px",
|
|
177
|
+
md: "840px",
|
|
178
|
+
lg: "1200px",
|
|
179
|
+
xl: "1600px"
|
|
180
|
+
});
|
|
181
|
+
const layout = {
|
|
182
|
+
xs: {
|
|
183
|
+
bars: { top: 8 },
|
|
184
|
+
panels: {
|
|
185
|
+
start: {
|
|
186
|
+
mode: "hidden",
|
|
187
|
+
width: "280px",
|
|
188
|
+
railWidth: 9
|
|
189
|
+
},
|
|
190
|
+
end: {
|
|
191
|
+
mode: "hidden",
|
|
192
|
+
width: "360px",
|
|
193
|
+
railWidth: 9
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
content: {
|
|
197
|
+
columns: 4,
|
|
198
|
+
margin: 2,
|
|
199
|
+
gutter: 2,
|
|
200
|
+
mode: "fluid"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
sm: {
|
|
204
|
+
panels: { start: { mode: "collapsed" } },
|
|
205
|
+
content: {
|
|
206
|
+
columns: 8,
|
|
207
|
+
margin: 4
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
md: {
|
|
211
|
+
panels: { end: { mode: "overlay" } },
|
|
212
|
+
content: {
|
|
213
|
+
columns: 12,
|
|
214
|
+
margin: 3,
|
|
215
|
+
gutter: 3
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
lg: {
|
|
219
|
+
panels: { end: { width: "412px" } },
|
|
220
|
+
content: {
|
|
221
|
+
mode: "fixed",
|
|
222
|
+
maxWidth: "1200px"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
xl: {
|
|
226
|
+
panels: {
|
|
227
|
+
start: { mode: "inline" },
|
|
228
|
+
end: { mode: "inline" }
|
|
229
|
+
},
|
|
230
|
+
content: { maxWidth: "1600px" }
|
|
231
|
+
}
|
|
232
|
+
};
|
|
144
233
|
const typography = {
|
|
145
234
|
h1: {
|
|
146
235
|
element: "h1",
|
|
@@ -232,6 +321,8 @@ const baseTheme = {
|
|
|
232
321
|
icon,
|
|
233
322
|
sizes,
|
|
234
323
|
space,
|
|
324
|
+
breakpoints,
|
|
325
|
+
layout,
|
|
235
326
|
zOrder,
|
|
236
327
|
blur: "12px",
|
|
237
328
|
colorScheme: "dark",
|
|
@@ -316,10 +407,15 @@ const baseTheme = {
|
|
|
316
407
|
shadow,
|
|
317
408
|
shadows
|
|
318
409
|
};
|
|
410
|
+
/**
|
|
411
|
+
* The query helpers for `baseTheme`'s breakpoints, as plain functions. A theme with its own
|
|
412
|
+
* breakpoints has the same helpers on `theme.breakpoints`.
|
|
413
|
+
*/
|
|
414
|
+
const { up, down, only, between, not, containerQueries } = breakpoints;
|
|
319
415
|
//#endregion
|
|
320
416
|
//#region src/theme/ThemeProvider.tsx
|
|
321
417
|
function ThemeProvider({ children, theme = baseTheme, defaults }) {
|
|
322
|
-
const value = useMemo(() => defaults ? createTheme(theme, { defaults }) : theme, [theme, defaults]);
|
|
418
|
+
const value = useMemo(() => defaults ? createTheme(theme, { defaults }) : withHelpers(theme), [theme, defaults]);
|
|
323
419
|
return /* @__PURE__ */ jsx(EmotionThemeProvider, {
|
|
324
420
|
theme: value,
|
|
325
421
|
children
|
|
@@ -355,4 +451,4 @@ function withTheme(WrappedComponent) {
|
|
|
355
451
|
};
|
|
356
452
|
}
|
|
357
453
|
//#endregion
|
|
358
|
-
export {
|
|
454
|
+
export { space as C, createTheme as D, zOrder as E, withBreakpointHelpers as O, sizes as S, up as T, letterSpacings as _, avatar as a, only as b, borderWidths as c, down as d, fontSizes as f, layout as g, icon as h, ThemeProvider as i, breakpoints as l, fonts as m, useDefaultProps as n, baseTheme as o, fontWeights as p, useTheme as r, between as s, withTheme as t, containerQueries as u, lineHeights as v, typography as w, radii as x, not as y };
|