@soroush.tech/design-system 1.3.2 → 2.0.0-alpha.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 +72 -37
- package/dist/AppBar.cjs +5 -1
- package/dist/AppBar.d.cts +6 -6
- package/dist/AppBar.d.mts +6 -6
- package/dist/AppBar.mjs +5 -1
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.d.cts +6 -6
- package/dist/Avatar.d.mts +6 -6
- package/dist/Avatar.mjs +2 -2
- package/dist/Backdrop.cjs +1 -1
- package/dist/Backdrop.d.cts +1 -1
- package/dist/Backdrop.d.mts +1 -1
- package/dist/Backdrop.mjs +1 -1
- package/dist/Button.cjs +2 -2
- package/dist/Button.d.cts +1 -1
- package/dist/Button.d.mts +1 -1
- package/dist/Button.mjs +2 -2
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.d.cts +1 -1
- package/dist/ButtonGroup.d.mts +1 -1
- package/dist/ButtonGroup.mjs +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 +3 -3
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.d.cts +2 -2
- package/dist/Checkbox.d.mts +2 -2
- package/dist/Checkbox.mjs +1 -1
- package/dist/CircularProgress.cjs +1 -1
- package/dist/CircularProgress.d.cts +6 -6
- package/dist/CircularProgress.d.mts +6 -6
- package/dist/CircularProgress.mjs +1 -1
- package/dist/Drawer.cjs +2 -2
- package/dist/Drawer.d.cts +3 -3
- package/dist/Drawer.d.mts +3 -3
- package/dist/Drawer.mjs +2 -2
- package/dist/Flex.cjs +1 -1
- package/dist/Flex.d.cts +1 -1
- package/dist/Flex.d.mts +1 -1
- package/dist/Flex.mjs +1 -1
- package/dist/FocusTrap.cjs +1 -1
- package/dist/FocusTrap.mjs +1 -1
- package/dist/Form.cjs +2 -2
- package/dist/Form.d.cts +5 -5
- package/dist/Form.d.mts +5 -5
- package/dist/Form.mjs +2 -2
- package/dist/FormControl.cjs +2 -2
- package/dist/FormControl.d.cts +8 -8
- package/dist/FormControl.d.mts +8 -8
- package/dist/FormControl.mjs +2 -2
- package/dist/FormHelperText.cjs +1 -1
- package/dist/FormHelperText.d.cts +1 -1
- package/dist/FormHelperText.d.mts +1 -1
- package/dist/FormHelperText.mjs +1 -1
- package/dist/FormLabel.cjs +1 -1
- package/dist/FormLabel.d.cts +1 -1
- package/dist/FormLabel.d.mts +1 -1
- package/dist/FormLabel.mjs +1 -1
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.d.cts +1 -15
- package/dist/Grid.d.mts +1 -15
- package/dist/Grid.mjs +1 -1
- package/dist/{Icon-ByDvM-t1.cjs → Icon-CKLBJ7CC.cjs} +2 -2
- package/dist/{Icon-CU_nUmsU.mjs → Icon-CkQGOBmm.mjs} +2 -2
- 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 +1 -1
- package/dist/Image.d.cts +3 -3
- package/dist/Image.d.mts +3 -3
- package/dist/Image.mjs +1 -1
- package/dist/LinearProgress.cjs +1 -1
- package/dist/LinearProgress.d.cts +5 -5
- package/dist/LinearProgress.d.mts +5 -5
- package/dist/LinearProgress.mjs +1 -1
- package/dist/Link.cjs +2 -2
- package/dist/Link.d.cts +1 -1
- package/dist/Link.d.mts +1 -1
- package/dist/Link.mjs +2 -2
- package/dist/MenuItem.cjs +3 -3
- package/dist/MenuItem.d.cts +9 -9
- package/dist/MenuItem.d.mts +9 -9
- package/dist/MenuItem.mjs +3 -3
- package/dist/{Modal-Bjfv7n4e.cjs → Modal-CApyh_V5.cjs} +2 -2
- package/dist/{Modal-Bv-mf8Fn.mjs → Modal-CYNcPk-2.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 +3 -3
- package/dist/NativeSelect.d.cts +12 -12
- package/dist/NativeSelect.d.mts +12 -12
- package/dist/NativeSelect.mjs +3 -3
- package/dist/PageLayout/LayoutGrid.cjs +21 -0
- package/dist/PageLayout/LayoutGrid.d.cts +22 -0
- package/dist/PageLayout/LayoutGrid.d.mts +22 -0
- package/dist/PageLayout/LayoutGrid.mjs +20 -0
- package/dist/PageLayout/PageLayout.cjs +148 -0
- package/dist/PageLayout/PageLayout.d.cts +31 -0
- package/dist/PageLayout/PageLayout.d.mts +31 -0
- package/dist/PageLayout/PageLayout.mjs +147 -0
- package/dist/PageLayout.cjs +7 -0
- package/dist/PageLayout.d.cts +19 -0
- package/dist/PageLayout.d.mts +19 -0
- package/dist/PageLayout.mjs +4 -0
- package/dist/PageLayoutContext-DjJ1_7Xc.mjs +5 -0
- package/dist/PageLayoutContext-agXGhegE.cjs +9 -0
- package/dist/Pagination/PaginationItem.cjs +3 -3
- package/dist/Pagination/PaginationItem.d.cts +1 -1
- package/dist/Pagination/PaginationItem.d.mts +1 -1
- package/dist/Pagination/PaginationItem.mjs +3 -3
- package/dist/Pagination.cjs +2 -2
- package/dist/Pagination.d.cts +2 -2
- package/dist/Pagination.d.mts +2 -2
- package/dist/Pagination.mjs +2 -2
- package/dist/Paper.cjs +2 -2
- package/dist/Paper.d.cts +1 -1
- package/dist/Paper.d.mts +1 -1
- package/dist/Paper.mjs +2 -2
- package/dist/{Popover-CH3yI-j-.mjs → Popover-DWOrf7sy.mjs} +4 -4
- package/dist/{Popover-COoJ2p2I.cjs → Popover-Dz6h3A_9.cjs} +4 -4
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.d.cts +7 -7
- package/dist/Popover.d.mts +7 -7
- package/dist/Popover.mjs +1 -1
- package/dist/Portal.cjs +1 -1
- package/dist/Portal.d.cts +1 -1
- package/dist/Portal.d.mts +1 -1
- package/dist/Portal.mjs +1 -1
- package/dist/Pressable.cjs +4 -4
- package/dist/Pressable.d.cts +1 -1
- package/dist/Pressable.d.mts +1 -1
- package/dist/Pressable.mjs +4 -4
- package/dist/Quote.cjs +2 -2
- package/dist/Quote.d.cts +4 -4
- package/dist/Quote.d.mts +4 -4
- package/dist/Quote.mjs +2 -2
- package/dist/Radio.cjs +1 -1
- package/dist/Radio.d.cts +3 -3
- package/dist/Radio.d.mts +3 -3
- package/dist/Radio.mjs +1 -1
- package/dist/Select.cjs +4 -4
- package/dist/Select.d.cts +11 -11
- package/dist/Select.d.mts +11 -11
- package/dist/Select.mjs +4 -4
- package/dist/Sidebar/Sidebar.cjs +29 -10
- package/dist/Sidebar/Sidebar.d.cts +16 -13
- package/dist/Sidebar/Sidebar.d.mts +16 -13
- package/dist/Sidebar/Sidebar.mjs +30 -11
- package/dist/Sidebar/SidebarItem.cjs +5 -4
- package/dist/Sidebar/SidebarItem.d.cts +13 -13
- package/dist/Sidebar/SidebarItem.d.mts +13 -13
- package/dist/Sidebar/SidebarItem.mjs +5 -4
- package/dist/Sidebar.d.cts +1 -1
- package/dist/Sidebar.d.mts +1 -1
- package/dist/{SidebarContext-ao6lRfTX.d.cts → SidebarContext-B1lWrt77.d.cts} +4 -4
- package/dist/{SidebarContext-ao6lRfTX.d.mts → SidebarContext-B1lWrt77.d.mts} +4 -4
- package/dist/Skeleton.cjs +1 -1
- package/dist/Skeleton.d.cts +3 -3
- package/dist/Skeleton.d.mts +3 -3
- package/dist/Skeleton.mjs +1 -1
- package/dist/Switch.cjs +2 -2
- package/dist/Switch.d.cts +5 -5
- package/dist/Switch.d.mts +5 -5
- package/dist/Switch.mjs +2 -2
- package/dist/Table/Table.cjs +1 -1
- package/dist/Table/Table.d.cts +14 -14
- package/dist/Table/Table.d.mts +14 -14
- package/dist/Table/Table.mjs +1 -1
- package/dist/Table/TableBody.cjs +1 -1
- package/dist/Table/TableBody.d.cts +6 -6
- package/dist/Table/TableBody.d.mts +6 -6
- package/dist/Table/TableBody.mjs +1 -1
- 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/TableCell.mjs +1 -1
- package/dist/Table/TableContainer.cjs +2 -2
- package/dist/Table/TableContainer.d.cts +4 -4
- package/dist/Table/TableContainer.d.mts +4 -4
- package/dist/Table/TableContainer.mjs +2 -2
- package/dist/Table/TableControl.cjs +1 -1
- package/dist/Table/TableControl.d.cts +7 -7
- package/dist/Table/TableControl.d.mts +7 -7
- package/dist/Table/TableControl.mjs +1 -1
- package/dist/Table/TableFooter.cjs +1 -1
- package/dist/Table/TableFooter.d.cts +6 -6
- package/dist/Table/TableFooter.d.mts +6 -6
- package/dist/Table/TableFooter.mjs +1 -1
- package/dist/Table/TableHead.cjs +1 -1
- package/dist/Table/TableHead.d.cts +6 -6
- package/dist/Table/TableHead.d.mts +6 -6
- package/dist/Table/TableHead.mjs +1 -1
- package/dist/Table/TablePagination.cjs +3 -3
- package/dist/Table/TablePagination.d.cts +4 -4
- package/dist/Table/TablePagination.d.mts +4 -4
- package/dist/Table/TablePagination.mjs +3 -3
- 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 +2 -2
- package/dist/Table/TableRow.cjs +1 -1
- package/dist/Table/TableRow.d.cts +7 -7
- package/dist/Table/TableRow.d.mts +7 -7
- package/dist/Table/TableRow.mjs +1 -1
- package/dist/Table/TableSortLabel.cjs +2 -2
- package/dist/Table/TableSortLabel.d.cts +1 -1
- package/dist/Table/TableSortLabel.d.mts +1 -1
- package/dist/Table/TableSortLabel.mjs +2 -2
- package/dist/Table/hooks.cjs +5 -5
- package/dist/Table/hooks.d.cts +5 -5
- package/dist/Table/hooks.d.mts +5 -5
- package/dist/Table/hooks.mjs +5 -5
- package/dist/Table.d.cts +5 -5
- package/dist/Table.d.mts +5 -5
- package/dist/{TableContext-BoOxdk8p.d.cts → TableContext-DBOk01Xl.d.mts} +2 -2
- package/dist/{TableContext-DV31j6HO.d.mts → TableContext-DRAhXvq3.d.cts} +2 -2
- package/dist/TextInput.cjs +2 -2
- package/dist/TextInput.d.cts +10 -10
- package/dist/TextInput.d.mts +10 -10
- package/dist/TextInput.mjs +2 -2
- package/dist/ToggleButton/ToggleButton.cjs +2 -2
- package/dist/ToggleButton/ToggleButton.d.cts +3 -3
- package/dist/ToggleButton/ToggleButton.d.mts +3 -3
- package/dist/ToggleButton/ToggleButton.mjs +2 -2
- package/dist/ToggleButton/ToggleButtonGroup.cjs +3 -3
- package/dist/ToggleButton/ToggleButtonGroup.d.cts +4 -4
- package/dist/ToggleButton/ToggleButtonGroup.d.mts +4 -4
- package/dist/ToggleButton/ToggleButtonGroup.mjs +3 -3
- package/dist/ToggleButton.d.cts +1 -1
- package/dist/ToggleButton.d.mts +1 -1
- package/dist/{ToggleButtonGroupContext-CqD-Afho.d.cts → ToggleButtonGroupContext-10jEsQdg.d.cts} +2 -2
- package/dist/{ToggleButtonGroupContext-CqD-Afho.d.mts → ToggleButtonGroupContext-10jEsQdg.d.mts} +2 -2
- package/dist/Typography.cjs +2 -2
- package/dist/Typography.d.cts +2 -2
- package/dist/Typography.d.mts +2 -2
- package/dist/Typography.mjs +2 -2
- package/dist/View.cjs +1 -1
- package/dist/View.d.cts +1 -1
- package/dist/View.d.mts +1 -1
- package/dist/View.mjs +1 -1
- package/dist/engine.cjs +2 -2
- package/dist/engine.d.cts +3 -3
- package/dist/engine.d.mts +3 -3
- package/dist/engine.mjs +2 -2
- package/dist/{index-CrXLEJO4.d.mts → index-8mHoIUt5.d.mts} +8 -8
- package/dist/{index-DLUE7t3O.d.cts → index-B41OXLX8.d.mts} +4 -4
- package/dist/{index-X4STXeE2.d.cts → index-B6vxRNLt.d.cts} +14 -14
- package/dist/{index-BBWtMvkm.d.cts → index-B8KscJic.d.cts} +3 -3
- package/dist/{index-MsUtFRul.d.cts → index-BDD-L8uL.d.cts} +3 -3
- package/dist/{index-BW-9sqFG.d.cts → index-BGD4OzzG.d.cts} +6 -6
- package/dist/index-BJ5Tsf7u.d.cts +16 -0
- package/dist/{index-n2OyTMr6.d.mts → index-BMJ3tyIw.d.cts} +4 -4
- package/dist/{index-CbGfrKZi.d.mts → index-BNpkmtaM.d.mts} +6 -6
- package/dist/{index-CKz1lEdR.d.mts → index-BSR9zrAA.d.mts} +6 -6
- package/dist/index-BnFxdnEL.d.mts +16 -0
- package/dist/{index-BYYEoNec.d.cts → index-CCrocxBL.d.cts} +6 -6
- package/dist/{index-q9peil7T.d.mts → index-CEqa8xx8.d.mts} +7 -7
- package/dist/{index-CiShdd2j.d.cts → index-CLttbRhG.d.cts} +8 -8
- package/dist/{index-DfhMdqqI.d.mts → index-CVb5zbas.d.mts} +14 -14
- package/dist/{index-DEEHBUUZ.d.cts → index-Cjlax0-f.d.mts} +4 -4
- package/dist/{index-BoOs5h_b.d.mts → index-CoHrw2p7.d.mts} +3 -3
- package/dist/{index-CCfnnT2l.d.cts → index-CohgpyUj.d.cts} +7 -7
- package/dist/{index-CSXMCqrV.d.cts → index-CtrxW81j.d.cts} +8 -8
- package/dist/{index-m9jUR509.d.mts → index-CvWslVk6.d.cts} +9 -9
- package/dist/{index-3hPS6Lm8.d.mts → index-CzmA09Yf.d.mts} +8 -8
- package/dist/{index-uH0EeDBZ.d.cts → index-D4i9vrQM.d.mts} +12 -12
- package/dist/{index-DkPJUFzd.d.cts → index-DNNg9RoR.d.cts} +5 -5
- package/dist/{index-B0xTqpvt.d.mts → index-DPHwCZYf.d.cts} +4 -4
- package/dist/{index-2QPYJgCl.d.cts → index-DkJzi96w.d.cts} +7 -7
- package/dist/{index-D07y72Xr.d.mts → index-DsKd9VW5.d.mts} +7 -7
- package/dist/{index-CohsoGjZ.d.cts → index-DuefjNlC.d.mts} +7 -7
- package/dist/{index-DGku7hLP.d.mts → index-EYR0z1Qv.d.cts} +4 -4
- package/dist/{index-hcZwhQmR.d.mts → index-IEvuh6Cd.d.mts} +5 -5
- package/dist/{index-BAfSyQaP.d.mts → index-S3NZS-Qp.d.cts} +12 -12
- package/dist/{index-DxBKLmUS.d.mts → index-bN91IhZi.d.cts} +7 -7
- package/dist/{index-CTYZyQ2g.d.mts → index-qtKJ56yu.d.mts} +3 -3
- package/dist/{index-D_AwmCU5.d.cts → index-r2avCy1z.d.mts} +4 -4
- package/dist/{index-BPzvFTi5.d.cts → index-tv-TGYSG.d.mts} +9 -9
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/layoutStyles-B4Z1K6HZ.cjs +67 -0
- package/dist/layoutStyles-f0ISNjsC.mjs +56 -0
- package/dist/{src-D3tHU94W.mjs → src-DLGYOJMh.mjs} +1 -1
- package/dist/{src-BJrcLd7P.cjs → src-DU81aGy9.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-Cudynq5K.mjs → theme-BQGlZoma.mjs} +53 -5
- package/dist/{theme-CleLAV6A.cjs → theme-BmEAXmwh.cjs} +64 -4
- package/dist/theme.cjs +3 -1
- package/dist/theme.d.cts +3 -3
- package/dist/theme.d.mts +3 -3
- package/dist/theme.mjs +2 -2
- package/dist/{themes-CUV79qWU.d.cts → themes-9YNnlVyY.d.cts} +90 -21
- package/dist/{themes-CUV79qWU.d.mts → themes-9YNnlVyY.d.mts} +90 -21
- package/dist/{useTablePagination--XtCc2YL.d.cts → useTablePagination-CLoac5oX.d.cts} +6 -6
- package/dist/{useTablePagination-RgVhJs-7.d.mts → useTablePagination-RelVsdMR.d.mts} +6 -6
- package/package.json +15 -5
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
[](./LICENSE)
|
|
9
9
|
|
|
10
10
|
**Your design system. Your tokens. Your rules.**
|
|
11
|
-
A fully typed React component library where nothing is hardcoded
|
|
11
|
+
A fully typed React component library where nothing is hardcoded - every color, scale, and default belongs to you, not the package.
|
|
12
12
|
|
|
13
|
-
Tired of forking a component library just to change a color? Every token here is designed to be overridden
|
|
13
|
+
Tired of forking a component library just to change a color? Every token here is designed to be overridden - theming isn't an afterthought, it's the whole point.
|
|
14
14
|
|
|
15
15
|
## Install
|
|
16
16
|
|
|
@@ -18,7 +18,31 @@ Tired of forking a component library just to change a color? Every token here is
|
|
|
18
18
|
npm i @soroush.tech/design-system
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
`react` and `react-dom` are peer dependencies. Emotion is an internal implementation detail
|
|
21
|
+
`react` and `react-dom` are peer dependencies. Emotion is an internal implementation detail - it ships as a regular dependency, not a peer, so you never install it yourself.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Use it with AI tools
|
|
26
|
+
|
|
27
|
+
An MCP server serves this library's component inventory, every component's props
|
|
28
|
+
reference, and the live token contract, so an AI assistant writes against the real API
|
|
29
|
+
instead of guessing:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
claude mcp add --transport http soroush https://mcp.soroush.tech/mcp
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
It also runs locally over stdio (`npx -y @soroush.tech/mcp`). Claude Code users can
|
|
36
|
+
install the plugin instead, which adds a house-style skill and a UI review agent on top
|
|
37
|
+
of the same server:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
claude plugin marketplace add soroush-tech/design-system
|
|
41
|
+
claude plugin install soroush-design-system@soroush-tech
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Any other tool can read [docs.soroush.tech/llms.txt](https://docs.soroush.tech/llms.txt).
|
|
45
|
+
See [`@soroush.tech/mcp`](../mcp) for the full tool list.
|
|
22
46
|
|
|
23
47
|
---
|
|
24
48
|
|
|
@@ -31,7 +55,7 @@ import { Typography } from '@soroush.tech/design-system/Typography'
|
|
|
31
55
|
import { Flex } from '@soroush.tech/design-system/Flex'
|
|
32
56
|
```
|
|
33
57
|
|
|
34
|
-
Styling primitives (the engine) come from the barrel `@soroush.tech/design-system`
|
|
58
|
+
Styling primitives (the engine) come from the barrel `@soroush.tech/design-system` - `styled`, `css`, `keyframes`, the `Theme` type, styled-system functions, and `createShouldForwardProp`. The barrel (`src/index.ts`) is the engine abstraction layer: to swap the CSS-in-JS engine, only that file changes.
|
|
35
59
|
|
|
36
60
|
```ts
|
|
37
61
|
import { styled, css, type Theme } from '@soroush.tech/design-system'
|
|
@@ -43,21 +67,21 @@ import { styled, css, type Theme } from '@soroush.tech/design-system'
|
|
|
43
67
|
import { ThemeProvider, useTheme } from '@soroush.tech/design-system/theme'
|
|
44
68
|
```
|
|
45
69
|
|
|
46
|
-
Style-computation helpers (`useStyle`, `withStyles`, `StylesConsumer`)
|
|
70
|
+
Style-computation helpers (`useStyle`, `withStyles`, `StylesConsumer`) - resolving a `StyleInput`/`StyleFactory` into a `CSSObject` - live at their own subpath:
|
|
47
71
|
|
|
48
72
|
```ts
|
|
49
73
|
import { useStyle } from '@soroush.tech/design-system/style'
|
|
50
74
|
```
|
|
51
75
|
|
|
52
|
-
Raw engine primitives for building your own global styles
|
|
76
|
+
Raw engine primitives for building your own global styles - `Global`, `globalStyles`, and the SSR-only `CacheProvider`/`styleCache` pairing - live at their own subpath, not the barrel:
|
|
53
77
|
|
|
54
78
|
```ts
|
|
55
79
|
import { Global, globalStyles, CacheProvider, styleCache } from '@soroush.tech/design-system/engine'
|
|
56
80
|
```
|
|
57
81
|
|
|
58
|
-
`Global` (retyped against this package's `Theme`) applies app-wide CSS and should render inside `ThemeProvider` so it resolves against the active theme. `globalStyles(theme)` is the base reset this package owns
|
|
82
|
+
`Global` (retyped against this package's `Theme`) applies app-wide CSS and should render inside `ThemeProvider` so it resolves against the active theme. `globalStyles(theme)` is the base reset this package owns - box-sizing, margin/table resets, and theme-driven body colors - compose it into your own `Global` styles array alongside your app's own concerns (font-family, webfont loading, and anything else app-specific stay entirely app policy).
|
|
59
83
|
|
|
60
|
-
SSR critical-CSS extraction (e.g. with `@emotion/server`) is a separate, opt-in concern most apps never need
|
|
84
|
+
SSR critical-CSS extraction (e.g. with `@emotion/server`) is a separate, opt-in concern most apps never need - that's what `CacheProvider` and its paired `styleCache` instance are for.
|
|
61
85
|
|
|
62
86
|
---
|
|
63
87
|
|
|
@@ -65,27 +89,28 @@ SSR critical-CSS extraction (e.g. with `@emotion/server`) is a separate, opt-in
|
|
|
65
89
|
|
|
66
90
|
### Layout & surfaces
|
|
67
91
|
|
|
68
|
-
| Component
|
|
69
|
-
|
|
|
70
|
-
| `View`
|
|
71
|
-
| `Flex`
|
|
72
|
-
| `Grid`
|
|
73
|
-
| `
|
|
74
|
-
| `
|
|
75
|
-
| `
|
|
76
|
-
| `
|
|
77
|
-
| `
|
|
92
|
+
| Component | Purpose |
|
|
93
|
+
| ------------ | ----------------------------------------------------------------------------------------- |
|
|
94
|
+
| `View` | Styled `div` primitive - the base building block |
|
|
95
|
+
| `Flex` | `View` with flexbox defaults |
|
|
96
|
+
| `Grid` | CSS grid container |
|
|
97
|
+
| `PageLayout` | Page frame (bars, side panels, content) from `theme.layout`; `LayoutGrid` for its columns |
|
|
98
|
+
| `Paper` | Elevated surface with background and shadow |
|
|
99
|
+
| `Card` | Content container built on `Paper` |
|
|
100
|
+
| `Quote` | Bordered quote / terminal-panel surface on `View` |
|
|
101
|
+
| `AppBar` | Top application bar |
|
|
102
|
+
| `Drawer` | Slide-in side panel |
|
|
78
103
|
|
|
79
104
|
### Content & data display
|
|
80
105
|
|
|
81
106
|
| Component | Purpose |
|
|
82
107
|
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
83
|
-
| `Typography` | Text with variant → element mapping
|
|
108
|
+
| `Typography` | Text with variant → element mapping - the reference implementation for all components |
|
|
84
109
|
| `Link` | Anchor with theme-aware styling |
|
|
85
110
|
| `Icon` | Icon renderer |
|
|
86
111
|
| `Image` | Image with styled-system props |
|
|
87
112
|
| `Avatar` | User/entity avatar |
|
|
88
|
-
| `Table` | Compound data table
|
|
113
|
+
| `Table` | Compound data table - exports `TableContainer`, `TableHead`, `TableBody`, `TableFooter`, `TableRow`, `TableCell`, `TablePagination`, `TablePaginationActions`, `TableSortLabel`, and `TableControl` from `@soroush.tech/design-system/Table` |
|
|
89
114
|
|
|
90
115
|
### Inputs & forms
|
|
91
116
|
|
|
@@ -122,13 +147,14 @@ SSR critical-CSS extraction (e.g. with `@emotion/server`) is a separate, opt-in
|
|
|
122
147
|
|
|
123
148
|
## Theme tokens
|
|
124
149
|
|
|
125
|
-
Components never hardcode colors or sizes
|
|
150
|
+
Components never hardcode colors or sizes - props resolve against scales on the `Theme` object:
|
|
126
151
|
|
|
127
152
|
| Group | Scales |
|
|
128
153
|
| ------------------ | ----------------------------------------------------------------------------------------------------- |
|
|
129
154
|
| Color | `palette` (main/light/dark/contrastText per color) · `text` · `background` · `border` · `colorScheme` |
|
|
130
155
|
| Typography | `typography` (variant map) · `fonts` · `fontSizes` · `fontWeights` · `lineHeights` · `letterSpacings` |
|
|
131
156
|
| Space & shape | `space` · `sizes` · `radii` · `borderWidths` · `shadows` |
|
|
157
|
+
| Layout | `breakpoints` (tablet/web/wide) · `layout` (bars, panels, content columns per breakpoint) |
|
|
132
158
|
| Component scales | `avatar` (size steps) · `skeleton` (wave highlight) |
|
|
133
159
|
| Layering & effects | `zOrder` (appBar/drawer/modal) · `blur` · `logoFilter` · `portraitBlend` · `portraitOpacity` |
|
|
134
160
|
|
|
@@ -138,11 +164,11 @@ Prop types are derived from the interface (`keyof Theme['text']`), so adding a t
|
|
|
138
164
|
|
|
139
165
|
## Theming
|
|
140
166
|
|
|
141
|
-
The theme belongs to you
|
|
167
|
+
The theme belongs to you - the package only ships defaults. This section is the overview; the full guides are [`docs/theming.md`](./docs/theming.md) and [`docs/customization.md`](./docs/customization.md).
|
|
142
168
|
|
|
143
169
|
### One theme, yours
|
|
144
170
|
|
|
145
|
-
`ThemeProvider` provides exactly one theme
|
|
171
|
+
`ThemeProvider` provides exactly one theme - the built-in dark theme when you pass nothing. Bring one theme, or as many as you like: switching between them is your state, not the provider's.
|
|
146
172
|
|
|
147
173
|
```tsx
|
|
148
174
|
import { ThemeProvider } from '@soroush.tech/design-system/theme'
|
|
@@ -151,20 +177,29 @@ import { baseTheme, createTheme } from '@soroush.tech/design-system/theme'
|
|
|
151
177
|
// Zero-config: the built-in `baseTheme`.
|
|
152
178
|
<ThemeProvider>{app}</ThemeProvider>
|
|
153
179
|
|
|
154
|
-
// Your theme
|
|
180
|
+
// Your theme - written from scratch or extended from the base.
|
|
155
181
|
const brand = createTheme(baseTheme, { palette: { primary: { main: '#00ff88' } } })
|
|
156
182
|
<ThemeProvider theme={brand}>{app}</ThemeProvider>
|
|
157
183
|
|
|
158
|
-
// Mode switching is app policy
|
|
184
|
+
// Mode switching is app policy - own the state and pass the active theme:
|
|
159
185
|
const [isDark, setIsDark] = useState(true)
|
|
160
186
|
<ThemeProvider theme={isDark ? brandDark : brandLight}>{app}</ThemeProvider>
|
|
161
187
|
```
|
|
162
188
|
|
|
163
|
-
`createTheme(base, overrides)` (exported from `@soroush.tech/design-system/theme`) is the merge primitive: plain objects recurse, arrays (`shadows`, `fontSizes`) and functions replace wholesale, `undefined` values are ignored
|
|
189
|
+
`createTheme(base, overrides)` (exported from `@soroush.tech/design-system/theme`) is the merge primitive: plain objects recurse, arrays (`shadows`, `fontSizes`) and functions replace wholesale, `undefined` values are ignored - keys are added or replaced, never removed.
|
|
190
|
+
|
|
191
|
+
### Breakpoints and layout
|
|
192
|
+
|
|
193
|
+
`theme.breakpoints` (`tablet` 600px, `web` 1200px, `wide` 1600px) is where responsive props change -
|
|
194
|
+
`p={{ _: 2, web: 4 }}` or `p={[2, 3, 4]}`. `theme.layout` holds the page's columns, margins,
|
|
195
|
+
gutters, side panels and bars per breakpoint, merged mobile-first; `PageLayout` and `LayoutGrid`
|
|
196
|
+
lay a page out from it. Override both with `createTheme`; a breakpoint you add comes after the
|
|
197
|
+
existing ones, so it must be larger. The full guide is the
|
|
198
|
+
[Breakpoints and layout](./docs/theming.md#breakpoints-and-layout) section of the theming guide.
|
|
164
199
|
|
|
165
200
|
### Component defaults
|
|
166
201
|
|
|
167
|
-
Components carry visible literal fallbacks (`size = 'md'`, `variant = 'outside'`,
|
|
202
|
+
Components carry visible literal fallbacks (`size = 'md'`, `variant = 'outside'`, ...) resolved through `themeDefault(theme, key, fallback)` - so every default, including behavioral variants, is overridable via the optional `theme.defaults` map or the provider's `defaults` prop:
|
|
168
203
|
|
|
169
204
|
| Key | Fallback | Drives |
|
|
170
205
|
| -------------------------------------------- | ---------------------------------- | -------------------------------------- |
|
|
@@ -181,7 +216,7 @@ Components carry visible literal fallbacks (`size = 'md'`, `variant = 'outside'`
|
|
|
181
216
|
| `linkUnderline` | `'always'` | Link underline behavior |
|
|
182
217
|
| `paginationVariant` / `paginationShape` | `'text'` / `'circular'` | Pagination items |
|
|
183
218
|
|
|
184
|
-
The built-in themes carry no `defaults`
|
|
219
|
+
The built-in themes carry no `defaults` - the literals apply. A theme with entirely different size or palette keys stays valid by pointing the keys at its own tokens:
|
|
185
220
|
|
|
186
221
|
```tsx
|
|
187
222
|
<ThemeProvider defaults={{ size: 'compact', color: 'brand', switchVariant: 'inside' }}>
|
|
@@ -189,7 +224,7 @@ The built-in themes carry no `defaults` — the literals apply. A theme with ent
|
|
|
189
224
|
|
|
190
225
|
### Per-component customization (`theme.components`)
|
|
191
226
|
|
|
192
|
-
Customize one component for the whole app
|
|
227
|
+
Customize one component for the whole app - default prop values, per-slot CSS, and new variant values - without wrapping or forking:
|
|
193
228
|
|
|
194
229
|
```tsx
|
|
195
230
|
const brand = createTheme(baseTheme, {
|
|
@@ -198,8 +233,8 @@ const brand = createTheme(baseTheme, {
|
|
|
198
233
|
// Buttons default to sm + rounded; explicit props and ButtonGroup still win.
|
|
199
234
|
defaultProps: { size: 'sm', shape: 'rounded' },
|
|
200
235
|
|
|
201
|
-
// Per-slot CSS merged after Button's own styles
|
|
202
|
-
// but per-instance props (m, p, width,
|
|
236
|
+
// Per-slot CSS merged after Button's own styles - the theme wins the cascade,
|
|
237
|
+
// but per-instance props (m, p, width, ...) still beat the theme.
|
|
203
238
|
styleOverrides: {
|
|
204
239
|
root: ({ theme, ownerState }) => ({
|
|
205
240
|
letterSpacing: theme.letterSpacings.wide,
|
|
@@ -208,7 +243,7 @@ const brand = createTheme(baseTheme, {
|
|
|
208
243
|
label: { fontStyle: 'italic' },
|
|
209
244
|
},
|
|
210
245
|
|
|
211
|
-
// A new variant value
|
|
246
|
+
// A new variant value - register it first so it typechecks:
|
|
212
247
|
// declare module '@soroush.tech/design-system/theme' { interface ButtonVariants { dashed: true } }
|
|
213
248
|
variants: [
|
|
214
249
|
{
|
|
@@ -226,11 +261,11 @@ const brand = createTheme(baseTheme, {
|
|
|
226
261
|
|
|
227
262
|
Style callbacks receive `{ theme, ownerState }`, where `ownerState` is the styled root's **resolved** props (after group context, `defaultProps`, and `theme.defaults`). `defaultProps` sits in the standard precedence chain: explicit prop → group context → `defaultProps` → `theme.defaults.*` → the component's literal fallback. `variants` arrays are replaced wholesale by `createTheme`, never merged.
|
|
228
263
|
|
|
229
|
-
Your own components can join the same mechanism: create their roots with this package's `styled(tag, { name: 'MyWidget', slot: 'root' })` and register the name by augmenting `ThemeComponents`. Zero-config themes pay nothing
|
|
264
|
+
Your own components can join the same mechanism: create their roots with this package's `styled(tag, { name: 'MyWidget', slot: 'root' })` and register the name by augmenting `ThemeComponents`. Zero-config themes pay nothing - the resolver bails out on the first check when `theme.components` is absent.
|
|
230
265
|
|
|
231
266
|
### Extending tokens (declaration merging)
|
|
232
267
|
|
|
233
|
-
Every scale is an open interface declared on `@soroush.tech/design-system/theme`, so you can add palette colors, tokens, or whole scales
|
|
268
|
+
Every scale is an open interface declared on `@soroush.tech/design-system/theme`, so you can add palette colors, tokens, or whole scales - and every component prop union (`color`, `bg`, `size`, ...) widens automatically:
|
|
234
269
|
|
|
235
270
|
```ts
|
|
236
271
|
import type { PaletteEntry } from '@soroush.tech/design-system/theme'
|
|
@@ -263,13 +298,13 @@ const brandDark = createTheme(baseTheme, {
|
|
|
263
298
|
</ThemeProvider>
|
|
264
299
|
```
|
|
265
300
|
|
|
266
|
-
Notes: new object-valued keys (like a `PaletteEntry`) must be supplied complete
|
|
301
|
+
Notes: new object-valued keys (like a `PaletteEntry`) must be supplied complete - components read `.main`/`.contrastText` at runtime; and TypeScript cannot verify at runtime that an augmented token was actually supplied, so always pair an augmentation with the matching override.
|
|
267
302
|
|
|
268
303
|
---
|
|
269
304
|
|
|
270
305
|
## Adding a component
|
|
271
306
|
|
|
272
|
-
Scaffold with the skill
|
|
307
|
+
Scaffold with the skill - it reads the live `Typography` files and `design-system.md` so output matches the codebase:
|
|
273
308
|
|
|
274
309
|
```
|
|
275
310
|
/new_theme_component ComponentName
|
|
@@ -279,7 +314,7 @@ Then work through the checklist at the bottom of [`design-system.md`](./design-s
|
|
|
279
314
|
|
|
280
315
|
---
|
|
281
316
|
|
|
282
|
-
The library takes inspiration from [Material UI](https://mui.com/)
|
|
317
|
+
The library takes inspiration from [Material UI](https://mui.com/) - its component vocabulary and prop conventions will feel familiar - but it is written entirely in house. It is not a clone or a fork: every component is built from scratch on our own engine and token system, and the API is free to diverge wherever it serves its consumers better.
|
|
283
318
|
|
|
284
319
|
---
|
|
285
320
|
|
package/dist/AppBar.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-DU81aGy9.cjs");
|
|
3
3
|
const require_Flex = require("./Flex.cjs");
|
|
4
|
+
const require_PageLayoutContext = require("./PageLayoutContext-agXGhegE.cjs");
|
|
4
5
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
6
|
+
let react = require("react");
|
|
5
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
8
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
|
7
9
|
//#region src/AppBar/AppBar.tsx
|
|
@@ -60,10 +62,12 @@ const AppBarBase = require_src.styled(require_Flex.Flex, {
|
|
|
60
62
|
width: "100%"
|
|
61
63
|
}, elevationVariant, sizeVariants);
|
|
62
64
|
function AppBar({ elevation = 4, size, ...rest }) {
|
|
65
|
+
const isInBar = (0, react.useContext)(require_PageLayoutContext.PageLayoutContext)?.region === "bar";
|
|
63
66
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AppBarBase, {
|
|
64
67
|
as: "header",
|
|
65
68
|
elevation,
|
|
66
69
|
size,
|
|
70
|
+
...isInBar && { height: "100%" },
|
|
67
71
|
...rest
|
|
68
72
|
});
|
|
69
73
|
}
|
package/dist/AppBar.d.cts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as FlexProps } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
|
+
import { n as FlexProps } from "./index-BMJ3tyIw.cjs";
|
|
4
4
|
//#region src/AppBar/AppBar.d.ts
|
|
5
|
-
/** Valid values for the color prop
|
|
5
|
+
/** Valid values for the color prop - derived from theme.background keys. */
|
|
6
6
|
type AppBarColor = keyof Theme['background'];
|
|
7
7
|
type AppBarPosition = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
8
8
|
/** Padding preset from theme.sizes. Default: 'md', overridable via `theme.defaults.size`. */
|
|
9
9
|
type AppBarSize = keyof Theme['sizes'];
|
|
10
10
|
interface AppBarProps extends Omit<FlexProps, 'position' | 'bg'> {
|
|
11
|
-
/** Resolves against theme.background
|
|
11
|
+
/** Resolves against theme.background - sets the AppBar background color. */
|
|
12
12
|
color?: AppBarColor;
|
|
13
13
|
/** CSS position value for layout placement. Default: browser default (static). */
|
|
14
14
|
position?: AppBarPosition;
|
|
15
|
-
/** Box-shadow elevation (index into theme.shadows, 0
|
|
15
|
+
/** Box-shadow elevation (index into theme.shadows, 0-24). Default: `4`; use `0` for no shadow. */
|
|
16
16
|
elevation?: number;
|
|
17
17
|
/** Padding preset from theme.sizes. Default: 'md', overridable via `theme.defaults.size`. */
|
|
18
18
|
size?: AppBarSize;
|
package/dist/AppBar.d.mts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as FlexProps } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
|
+
import { n as FlexProps } from "./index-B41OXLX8.mjs";
|
|
4
4
|
//#region src/AppBar/AppBar.d.ts
|
|
5
|
-
/** Valid values for the color prop
|
|
5
|
+
/** Valid values for the color prop - derived from theme.background keys. */
|
|
6
6
|
type AppBarColor = keyof Theme['background'];
|
|
7
7
|
type AppBarPosition = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
8
8
|
/** Padding preset from theme.sizes. Default: 'md', overridable via `theme.defaults.size`. */
|
|
9
9
|
type AppBarSize = keyof Theme['sizes'];
|
|
10
10
|
interface AppBarProps extends Omit<FlexProps, 'position' | 'bg'> {
|
|
11
|
-
/** Resolves against theme.background
|
|
11
|
+
/** Resolves against theme.background - sets the AppBar background color. */
|
|
12
12
|
color?: AppBarColor;
|
|
13
13
|
/** CSS position value for layout placement. Default: browser default (static). */
|
|
14
14
|
position?: AppBarPosition;
|
|
15
|
-
/** Box-shadow elevation (index into theme.shadows, 0
|
|
15
|
+
/** Box-shadow elevation (index into theme.shadows, 0-24). Default: `4`; use `0` for no shadow. */
|
|
16
16
|
elevation?: number;
|
|
17
17
|
/** Padding preset from theme.sizes. Default: 'md', overridable via `theme.defaults.size`. */
|
|
18
18
|
size?: AppBarSize;
|
package/dist/AppBar.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { Flex } from "./Flex.mjs";
|
|
3
|
+
import { t as PageLayoutContext } from "./PageLayoutContext-DjJ1_7Xc.mjs";
|
|
3
4
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
5
|
+
import { useContext } from "react";
|
|
4
6
|
import { jsx } from "react/jsx-runtime";
|
|
5
7
|
//#region src/AppBar/AppBar.tsx
|
|
6
8
|
const shouldForwardProp = createShouldForwardProp([
|
|
@@ -58,10 +60,12 @@ const AppBarBase = styled(Flex, {
|
|
|
58
60
|
width: "100%"
|
|
59
61
|
}, elevationVariant, sizeVariants);
|
|
60
62
|
function AppBar({ elevation = 4, size, ...rest }) {
|
|
63
|
+
const isInBar = useContext(PageLayoutContext)?.region === "bar";
|
|
61
64
|
return /* @__PURE__ */ jsx(AppBarBase, {
|
|
62
65
|
as: "header",
|
|
63
66
|
elevation,
|
|
64
67
|
size,
|
|
68
|
+
...isInBar && { height: "100%" },
|
|
65
69
|
...rest
|
|
66
70
|
});
|
|
67
71
|
}
|
package/dist/Avatar.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-DU81aGy9.cjs");
|
|
3
3
|
const require_Flex = require("./Flex.cjs");
|
|
4
4
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
5
|
-
const require_theme = require("./theme-
|
|
5
|
+
const require_theme = require("./theme-BmEAXmwh.cjs");
|
|
6
6
|
let react = require("react");
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let _soroush_tech_styled_system_should_forward_prop = require("@soroush.tech/styled-system/should-forward-prop");
|
package/dist/Avatar.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as FlexProps } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
|
+
import { n as FlexProps } from "./index-BMJ3tyIw.cjs";
|
|
4
4
|
//#region src/Avatar/Avatar.d.ts
|
|
5
5
|
type AvatarVariant = 'circular' | 'rounded' | 'square';
|
|
6
6
|
type AvatarSize = keyof Theme['avatar'];
|
|
@@ -15,13 +15,13 @@ interface AvatarProps extends Omit<FlexProps, OmittedProps> {
|
|
|
15
15
|
fallback?: string;
|
|
16
16
|
/** Shape of the avatar. Default: 'circular'. */
|
|
17
17
|
variant?: AvatarVariant;
|
|
18
|
-
/** Preset size
|
|
18
|
+
/** Preset size - resolves against theme.avatar. Default: 'md', overridable via `theme.defaults.size`. */
|
|
19
19
|
size?: AvatarSize;
|
|
20
20
|
/** Adds a CSS outline ring around the avatar. */
|
|
21
21
|
ring?: boolean;
|
|
22
|
-
/** Ring color
|
|
22
|
+
/** Ring color - resolves against theme.border. */
|
|
23
23
|
ringColor?: AvatarRingColor;
|
|
24
|
-
/** Ring width
|
|
24
|
+
/** Ring width - resolves against theme.borderWidths. */
|
|
25
25
|
ringWidth?: AvatarRingWidth;
|
|
26
26
|
}
|
|
27
27
|
declare function Avatar({ src, srcSet, alt, fallback, children, variant: variantProp, size: sizeProp, ring, ringColor: ringColorProp, ringWidth: ringWidthProp, ...rest }: Readonly<AvatarProps>): import("react").JSX.Element;
|
package/dist/Avatar.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
3
|
-
import { n as FlexProps } from "./index-
|
|
1
|
+
import { S as Theme } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
|
+
import { n as FlexProps } from "./index-B41OXLX8.mjs";
|
|
4
4
|
//#region src/Avatar/Avatar.d.ts
|
|
5
5
|
type AvatarVariant = 'circular' | 'rounded' | 'square';
|
|
6
6
|
type AvatarSize = keyof Theme['avatar'];
|
|
@@ -15,13 +15,13 @@ interface AvatarProps extends Omit<FlexProps, OmittedProps> {
|
|
|
15
15
|
fallback?: string;
|
|
16
16
|
/** Shape of the avatar. Default: 'circular'. */
|
|
17
17
|
variant?: AvatarVariant;
|
|
18
|
-
/** Preset size
|
|
18
|
+
/** Preset size - resolves against theme.avatar. Default: 'md', overridable via `theme.defaults.size`. */
|
|
19
19
|
size?: AvatarSize;
|
|
20
20
|
/** Adds a CSS outline ring around the avatar. */
|
|
21
21
|
ring?: boolean;
|
|
22
|
-
/** Ring color
|
|
22
|
+
/** Ring color - resolves against theme.border. */
|
|
23
23
|
ringColor?: AvatarRingColor;
|
|
24
|
-
/** Ring width
|
|
24
|
+
/** Ring width - resolves against theme.borderWidths. */
|
|
25
25
|
ringWidth?: AvatarRingWidth;
|
|
26
26
|
}
|
|
27
27
|
declare function Avatar({ src, srcSet, alt, fallback, children, variant: variantProp, size: sizeProp, ring, ringColor: ringColorProp, ringWidth: ringWidthProp, ...rest }: Readonly<AvatarProps>): import("react").JSX.Element;
|
package/dist/Avatar.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { Flex } from "./Flex.mjs";
|
|
3
3
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
4
|
-
import { r as useTheme } from "./theme-
|
|
4
|
+
import { r as useTheme } from "./theme-BQGlZoma.mjs";
|
|
5
5
|
import { useState } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/Avatar/Avatar.tsx
|
package/dist/Backdrop.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-DU81aGy9.cjs");
|
|
3
3
|
const require_View = require("./View.cjs");
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
5
|
//#region src/Backdrop/Backdrop.tsx
|
package/dist/Backdrop.d.cts
CHANGED
package/dist/Backdrop.d.mts
CHANGED
package/dist/Backdrop.mjs
CHANGED
package/dist/Button.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-DU81aGy9.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
4
|
const require_utils = require("./utils.cjs");
|
|
5
|
-
const require_theme = require("./theme-
|
|
5
|
+
const require_theme = require("./theme-BmEAXmwh.cjs");
|
|
6
6
|
const require_CircularProgress = require("./CircularProgress.cjs");
|
|
7
7
|
const require_ButtonGroupContext = require("./ButtonGroupContext-NtkVeDVE.cjs");
|
|
8
8
|
let react = require("react");
|
package/dist/Button.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-
|
|
1
|
+
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-S3NZS-Qp.cjs";
|
|
2
2
|
export { Button, ButtonColor, ButtonLoadingPosition, ButtonProps, ButtonShape, ButtonSize, ButtonVariant, GapToken };
|
package/dist/Button.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-
|
|
1
|
+
import { a as ButtonShape, c as GapToken, i as ButtonProps, n as ButtonColor, o as ButtonSize, r as ButtonLoadingPosition, s as ButtonVariant, t as Button } from "./index-D4i9vrQM.mjs";
|
|
2
2
|
export { Button, ButtonColor, ButtonLoadingPosition, ButtonProps, ButtonShape, ButtonSize, ButtonVariant, GapToken };
|
package/dist/Button.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { alpha } from "./utils.mjs";
|
|
4
|
-
import { n as useDefaultProps, r as useTheme } from "./theme-
|
|
4
|
+
import { n as useDefaultProps, r as useTheme } from "./theme-BQGlZoma.mjs";
|
|
5
5
|
import { CircularProgress } from "./CircularProgress.mjs";
|
|
6
6
|
import { t as ButtonGroupContext } from "./ButtonGroupContext-DS-kl9lG.mjs";
|
|
7
7
|
import { useContext } from "react";
|
package/dist/ButtonGroup.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-DU81aGy9.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
4
|
const require_utils = require("./utils.cjs");
|
|
5
5
|
const require_ButtonGroupContext = require("./ButtonGroupContext-NtkVeDVE.cjs");
|
package/dist/ButtonGroup.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-
|
|
1
|
+
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-CCrocxBL.cjs";
|
|
2
2
|
export { ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupOrientation, ButtonGroupProps, ButtonGroupRadius };
|
package/dist/ButtonGroup.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-
|
|
1
|
+
import { a as ButtonGroupProps, i as ButtonGroupOrientation, n as ButtonGroupContextValue, o as ButtonGroupRadius, r as ButtonGroup, t as ButtonGroupContext } from "./index-BNpkmtaM.mjs";
|
|
2
2
|
export { ButtonGroup, ButtonGroupContext, ButtonGroupContextValue, ButtonGroupOrientation, ButtonGroupProps, ButtonGroupRadius };
|
package/dist/ButtonGroup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-
|
|
1
|
+
import { a as src_exports, i as props, o as styled, t as createShouldForwardProp } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
3
|
import { alpha } from "./utils.mjs";
|
|
4
4
|
import { t as ButtonGroupContext } from "./ButtonGroupContext-DS-kl9lG.mjs";
|
package/dist/Card.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_src = require("./src-
|
|
2
|
+
const require_src = require("./src-DU81aGy9.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
|
-
const require_theme = require("./theme-
|
|
4
|
+
const require_theme = require("./theme-BmEAXmwh.cjs");
|
|
5
5
|
const require_Paper = require("./Paper.cjs");
|
|
6
6
|
const require_Typography = require("./Typography.cjs");
|
|
7
|
-
const require_Icon = require("./Icon-
|
|
7
|
+
const require_Icon = require("./Icon-CKLBJ7CC.cjs");
|
|
8
8
|
require("react");
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
//#region src/Card/Card.tsx
|
package/dist/Card.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as PaperProps } from "./index-
|
|
2
|
-
import { a as TypographyProps } from "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { r as PaperProps } from "./index-BGD4OzzG.cjs";
|
|
2
|
+
import { a as TypographyProps } from "./index-bN91IhZi.cjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-DPHwCZYf.cjs";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
//#region src/Card/Card.d.ts
|
|
6
6
|
type CardVariant = 'paper' | 'bracketBox' | 'interactive';
|
package/dist/Card.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as PaperProps } from "./index-
|
|
2
|
-
import { a as TypographyProps } from "./index-
|
|
3
|
-
import { n as IconProps, r as IconName } from "./index-
|
|
1
|
+
import { r as PaperProps } from "./index-BSR9zrAA.mjs";
|
|
2
|
+
import { a as TypographyProps } from "./index-DuefjNlC.mjs";
|
|
3
|
+
import { n as IconProps, r as IconName } from "./index-r2avCy1z.mjs";
|
|
4
4
|
import { ReactNode } from "react";
|
|
5
5
|
//#region src/Card/Card.d.ts
|
|
6
6
|
type CardVariant = 'paper' | 'bracketBox' | 'interactive';
|
package/dist/Card.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o as styled } from "./src-
|
|
1
|
+
import { o as styled } from "./src-DLGYOJMh.mjs";
|
|
2
2
|
import { t as themeDefault } from "./themeDefault-Z3KmyIbm.mjs";
|
|
3
|
-
import { n as useDefaultProps, r as useTheme } from "./theme-
|
|
3
|
+
import { n as useDefaultProps, r as useTheme } from "./theme-BQGlZoma.mjs";
|
|
4
4
|
import { Paper } from "./Paper.mjs";
|
|
5
5
|
import { Typography } from "./Typography.mjs";
|
|
6
|
-
import { t as Icon } from "./Icon-
|
|
6
|
+
import { t as Icon } from "./Icon-CkQGOBmm.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/Card/Card.tsx
|
package/dist/Checkbox.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-DU81aGy9.cjs");
|
|
3
3
|
const require_themeDefault = require("./themeDefault-Cebi08Cv.cjs");
|
|
4
4
|
const require_FormControl = require("./FormControl.cjs");
|
|
5
5
|
let react = require("react");
|
package/dist/Checkbox.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme, v as PaletteColor } from "./themes-9YNnlVyY.cjs";
|
|
2
|
+
import "./index-DkJzi96w.cjs";
|
|
3
3
|
import { ChangeEvent, ReactNode } from "react";
|
|
4
4
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
5
5
|
//#region src/Checkbox/Checkbox.d.ts
|
package/dist/Checkbox.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index-
|
|
1
|
+
import { S as Theme, v as PaletteColor } from "./themes-9YNnlVyY.mjs";
|
|
2
|
+
import "./index-CEqa8xx8.mjs";
|
|
3
3
|
import { SpaceProps } from "@soroush.tech/styled-system";
|
|
4
4
|
import { ChangeEvent, ReactNode } from "react";
|
|
5
5
|
//#region src/Checkbox/Checkbox.d.ts
|