@soroush.tech/design-system 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/dist/AppBar.cjs +1 -1
- package/dist/AppBar.d.cts +6 -6
- package/dist/AppBar.d.mts +6 -6
- package/dist/AppBar.mjs +1 -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 +4 -4
- package/dist/Grid.d.mts +4 -4
- package/dist/Grid.mjs +1 -1
- package/dist/{Icon-ByDvM-t1.cjs → Icon-BAMpe9SO.cjs} +2 -2
- package/dist/{Icon-CU_nUmsU.mjs → Icon-gSiGgU13.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/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-Bq31OTEl.mjs} +4 -4
- package/dist/{Popover-COoJ2p2I.cjs → Popover-gg44qzwo.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 +4 -4
- package/dist/Sidebar/Sidebar.d.cts +12 -12
- package/dist/Sidebar/Sidebar.d.mts +12 -12
- package/dist/Sidebar/Sidebar.mjs +4 -4
- package/dist/Sidebar/SidebarItem.cjs +4 -4
- package/dist/Sidebar/SidebarItem.d.cts +13 -13
- package/dist/Sidebar/SidebarItem.d.mts +13 -13
- package/dist/Sidebar/SidebarItem.mjs +4 -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-BrIREKe7.d.mts} +2 -2
- package/dist/{TableContext-DV31j6HO.d.mts → TableContext-DXzUQ4-a.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-B0xTqpvt.d.mts → index-76XH-GEc.d.mts} +3 -3
- package/dist/{index-BW-9sqFG.d.cts → index-BCvkP5R1.d.mts} +6 -6
- package/dist/{index-CohsoGjZ.d.cts → index-BWECJgSb.d.mts} +7 -7
- package/dist/{index-X4STXeE2.d.cts → index-BoIi-XoB.d.mts} +15 -15
- package/dist/{index-CCfnnT2l.d.cts → index-Br2gDSme.d.cts} +7 -7
- package/dist/{index-m9jUR509.d.mts → index-Btmdtbpb.d.cts} +9 -9
- package/dist/{index-uH0EeDBZ.d.cts → index-C-2VKPcp.d.mts} +12 -12
- package/dist/{index-CbGfrKZi.d.mts → index-C5-ZM7lt.d.cts} +7 -7
- package/dist/{index-DfhMdqqI.d.mts → index-CHRAYSwH.d.cts} +15 -15
- package/dist/{index-CrXLEJO4.d.mts → index-COYxtrc0.d.mts} +8 -8
- package/dist/{index-BBWtMvkm.d.cts → index-CTVFwvju.d.mts} +3 -3
- package/dist/{index-CKz1lEdR.d.mts → index-Cf7w9Lod.d.cts} +6 -6
- package/dist/{index-DxBKLmUS.d.mts → index-Csp1Wzbz.d.cts} +7 -7
- package/dist/{index-CTYZyQ2g.d.mts → index-D-QRCHiS.d.cts} +3 -3
- package/dist/{index-MsUtFRul.d.cts → index-D3iQQ0L3.d.cts} +3 -3
- package/dist/{index-DEEHBUUZ.d.cts → index-D9CwTcnr.d.cts} +4 -4
- package/dist/{index-D_AwmCU5.d.cts → index-DCu7qjpa.d.cts} +3 -3
- package/dist/{index-DLUE7t3O.d.cts → index-DOLA1VFD.d.cts} +4 -4
- package/dist/{index-BPzvFTi5.d.cts → index-DQ16ijxx.d.mts} +9 -9
- package/dist/{index-3hPS6Lm8.d.mts → index-DdBeSvit.d.mts} +8 -8
- package/dist/{index-BYYEoNec.d.cts → index-DhMAwR96.d.mts} +7 -7
- package/dist/{index-CSXMCqrV.d.cts → index-DzuXwDCW.d.cts} +8 -8
- package/dist/{index-n2OyTMr6.d.mts → index-KZKeZDAF.d.mts} +4 -4
- package/dist/{index-BoOs5h_b.d.mts → index-NBVilQuP.d.mts} +3 -3
- package/dist/{index-BAfSyQaP.d.mts → index-Oxx0z4dS.d.cts} +12 -12
- package/dist/{index-DGku7hLP.d.mts → index-XZDPGJ_h.d.mts} +4 -4
- package/dist/{index-CiShdd2j.d.cts → index-d6gR2x8j.d.cts} +8 -8
- package/dist/{index-hcZwhQmR.d.mts → index-ggLhNdZV.d.mts} +5 -5
- package/dist/{index-D07y72Xr.d.mts → index-h36rcOy8.d.mts} +7 -7
- package/dist/{index-2QPYJgCl.d.cts → index-jmy5eXpx.d.cts} +7 -7
- package/dist/{index-q9peil7T.d.mts → index-v_otepCe.d.mts} +7 -7
- package/dist/{index-DkPJUFzd.d.cts → index-vuPAf55D.d.cts} +5 -5
- 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/{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-CleLAV6A.cjs → theme-Bnc03K83.cjs} +4 -4
- package/dist/{theme-Cudynq5K.mjs → theme-BuqqFbsz.mjs} +4 -4
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +2 -2
- package/dist/theme.d.mts +2 -2
- package/dist/theme.mjs +1 -1
- package/dist/{themes-CUV79qWU.d.cts → themes-kbuYiwCi.d.cts} +20 -20
- package/dist/{themes-CUV79qWU.d.mts → themes-kbuYiwCi.d.mts} +20 -20
- package/dist/{useTablePagination--XtCc2YL.d.cts → useTablePagination-BpMOVLsR.d.cts} +6 -6
- package/dist/{useTablePagination-RgVhJs-7.d.mts → useTablePagination-DebYZ6vN.d.mts} +6 -6
- package/package.json +3 -3
|
@@ -21,7 +21,7 @@ const deepMerge = (base, overrides) => {
|
|
|
21
21
|
*
|
|
22
22
|
* - Recurses only where both sides are plain objects; arrays (`shadows`,
|
|
23
23
|
* `fontSizes`) and functions replace wholesale.
|
|
24
|
-
* - `undefined` override values are ignored
|
|
24
|
+
* - `undefined` override values are ignored - a key can be added or replaced,
|
|
25
25
|
* never removed.
|
|
26
26
|
* - Neither argument is mutated; untouched branches keep referential identity.
|
|
27
27
|
*/
|
|
@@ -214,8 +214,8 @@ const typography = {
|
|
|
214
214
|
inherit: { element: "span" }
|
|
215
215
|
};
|
|
216
216
|
/**
|
|
217
|
-
* The package's complete default theme (dark-schemed). Raw hex only
|
|
218
|
-
* belong to the consumer, who builds brand themes with `createTheme(baseTheme,
|
|
217
|
+
* The package's complete default theme (dark-schemed). Raw hex only - palettes
|
|
218
|
+
* belong to the consumer, who builds brand themes with `createTheme(baseTheme, ...)`.
|
|
219
219
|
*/
|
|
220
220
|
const baseTheme = {
|
|
221
221
|
name: "base",
|
|
@@ -328,7 +328,7 @@ function ThemeProvider({ children, theme = baseTheme, defaults }) {
|
|
|
328
328
|
//#endregion
|
|
329
329
|
//#region src/theme/hooks/useTheme.ts
|
|
330
330
|
/**
|
|
331
|
-
* The active theme, typed as this package's own `Theme`
|
|
331
|
+
* The active theme, typed as this package's own `Theme` - Emotion is an
|
|
332
332
|
* internal implementation detail, never part of the public type surface.
|
|
333
333
|
*/
|
|
334
334
|
const useTheme = () => useEmotionTheme();
|
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-Bnc03K83.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 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-
|
|
2
|
-
import { a as ThemeProvider, i as themeDefault, n as useDefaultProps, r as useTheme, t as withTheme } from "./index-
|
|
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-kbuYiwCi.cjs";
|
|
2
|
+
import { a as ThemeProvider, i as themeDefault, n as useDefaultProps, r as useTheme, t as withTheme } from "./index-D3iQQ0L3.cjs";
|
|
3
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 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-
|
|
2
|
-
import { a as ThemeProvider, i as themeDefault, n as useDefaultProps, r as useTheme, t as withTheme } from "./index-
|
|
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-kbuYiwCi.mjs";
|
|
2
|
+
import { a as ThemeProvider, i as themeDefault, n as useDefaultProps, r as useTheme, t as withTheme } from "./index-NBVilQuP.mjs";
|
|
3
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-BuqqFbsz.mjs";
|
|
3
3
|
export { ThemeProvider, avatar, baseTheme, borderWidths, createTheme, fontSizes, fontWeights, fonts, icon, letterSpacings, lineHeights, radii, sizes, space, themeDefault, typography, useDefaultProps, useTheme, withTheme, zOrder };
|
|
@@ -13,19 +13,19 @@ type ThemeOverride = DeepPartial<Theme>;
|
|
|
13
13
|
*
|
|
14
14
|
* - Recurses only where both sides are plain objects; arrays (`shadows`,
|
|
15
15
|
* `fontSizes`) and functions replace wholesale.
|
|
16
|
-
* - `undefined` override values are ignored
|
|
16
|
+
* - `undefined` override values are ignored - a key can be added or replaced,
|
|
17
17
|
* never removed.
|
|
18
18
|
* - Neither argument is mutated; untouched branches keep referential identity.
|
|
19
19
|
*/
|
|
20
20
|
declare const createTheme: (base: Theme, overrides: ThemeOverride) => Theme;
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/theme/themes.d.ts
|
|
23
|
-
/** Design-system's own style-object shape
|
|
23
|
+
/** Design-system's own style-object shape - Emotion stays an internal implementation detail. */
|
|
24
24
|
type CSSObject$1 = CSSObject;
|
|
25
25
|
/**
|
|
26
26
|
* Re-opens a named scale interface as an anonymous mapped type. Named
|
|
27
27
|
* interfaces have no implicit index signature, which styled-system's
|
|
28
|
-
* Record-based `Theme` constraint requires
|
|
28
|
+
* Record-based `Theme` constraint requires - the mapped copy restores it
|
|
29
29
|
* while keeping the literal keys (and any consumer-augmented keys).
|
|
30
30
|
*/
|
|
31
31
|
type OpenScale<T> = { [K in keyof T]: T[K]; };
|
|
@@ -91,7 +91,7 @@ interface ThemeSwitch {
|
|
|
91
91
|
thumb: string;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
* Shadow tokens
|
|
94
|
+
* Shadow tokens - the single base color every shadow composites from
|
|
95
95
|
* (the `theme.shadows` elevation array and component shadows alike).
|
|
96
96
|
*/
|
|
97
97
|
interface ThemeShadow {
|
|
@@ -100,7 +100,7 @@ interface ThemeShadow {
|
|
|
100
100
|
/** Alpha applied per elevation step in the default `theme.shadows` array. */
|
|
101
101
|
opacity: number;
|
|
102
102
|
}
|
|
103
|
-
/** Stacking order for layered UI
|
|
103
|
+
/** Stacking order for layered UI - ascending: appBar < drawer < modal. */
|
|
104
104
|
interface ThemeZOrder {
|
|
105
105
|
appBar: number;
|
|
106
106
|
drawer: number;
|
|
@@ -182,7 +182,7 @@ interface ThemeSizes {
|
|
|
182
182
|
lg: SizeEntry;
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
|
-
* Square glyph dimension per density key
|
|
185
|
+
* Square glyph dimension per density key - Icon token sizes and the
|
|
186
186
|
* Checkbox/Radio glyphs. Mapped over `ThemeSizes` so augmenting a size key
|
|
187
187
|
* forces the matching icon size to be supplied.
|
|
188
188
|
*/
|
|
@@ -213,8 +213,8 @@ interface ThemeTypographyVariants {
|
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
215
215
|
* Optional theme-driven component defaults. Components carry their own
|
|
216
|
-
* literal fallbacks (`size = 'md'`, `variant = 'outside'`,
|
|
217
|
-
* them through `themeDefault(theme, key, fallback)`
|
|
216
|
+
* literal fallbacks (`size = 'md'`, `variant = 'outside'`, ...) and resolve
|
|
217
|
+
* them through `themeDefault(theme, key, fallback)` - set any key here (or
|
|
218
218
|
* via `ThemeProvider`'s `defaults` prop) to override that fallback globally,
|
|
219
219
|
* e.g. when your theme uses entirely different size or palette keys.
|
|
220
220
|
*/
|
|
@@ -223,9 +223,9 @@ interface ThemeDefaults {
|
|
|
223
223
|
size?: keyof ThemeSizes;
|
|
224
224
|
/** Compact density for dense secondary UI (table pagination actions). Fallback: `'sm'`. */
|
|
225
225
|
compactSize?: keyof ThemeSizes;
|
|
226
|
-
/** Accent palette color (buttons, links, progress, pagination
|
|
226
|
+
/** Accent palette color (buttons, links, progress, pagination...). Fallback: `'primary'`. */
|
|
227
227
|
color?: keyof ThemePalette;
|
|
228
|
-
/** Neutral palette color for toggle controls (checkbox, radio, switch
|
|
228
|
+
/** Neutral palette color for toggle controls (checkbox, radio, switch...). Fallback: `'default'`. */
|
|
229
229
|
neutralColor?: keyof ThemePalette;
|
|
230
230
|
/** Body text color. Fallback: `'initial'`. */
|
|
231
231
|
textColor?: keyof ThemeText;
|
|
@@ -267,7 +267,7 @@ interface ThemeDefaults {
|
|
|
267
267
|
paginationShape?: 'circular' | 'rounded';
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
|
-
* A style contributed from `theme.components`
|
|
270
|
+
* A style contributed from `theme.components` - a plain CSS object, or a
|
|
271
271
|
* callback receiving the theme and the styled root's resolved props
|
|
272
272
|
* (`ownerState`) for conditional styling.
|
|
273
273
|
*/
|
|
@@ -282,20 +282,20 @@ interface ComponentVariant<OwnerState> {
|
|
|
282
282
|
}
|
|
283
283
|
/** Per-component customization: default prop values, per-slot CSS, extra variants. */
|
|
284
284
|
interface ComponentConfig<OwnerState = Record<string, unknown>, Slot extends string = 'root'> {
|
|
285
|
-
/** Default prop values
|
|
285
|
+
/** Default prop values - explicit props and group context always win. */
|
|
286
286
|
defaultProps?: Partial<OwnerState>;
|
|
287
287
|
/** Per-slot CSS merged after the component's own styles (theme wins). */
|
|
288
288
|
styleOverrides?: Partial<Record<Slot, ComponentStyle<OwnerState>>>;
|
|
289
289
|
/** Extra variants matched by props. Replaced wholesale by `createTheme`, never merged. */
|
|
290
290
|
variants?: ReadonlyArray<ComponentVariant<OwnerState>>;
|
|
291
291
|
}
|
|
292
|
-
/** Button's variant values
|
|
292
|
+
/** Button's variant values - augment to register new ones (then style them via `variants`). */
|
|
293
293
|
interface ButtonVariants {
|
|
294
294
|
contained: true;
|
|
295
295
|
outlined: true;
|
|
296
296
|
text: true;
|
|
297
297
|
}
|
|
298
|
-
/** The resolved props Button's styled roots receive
|
|
298
|
+
/** The resolved props Button's styled roots receive - what `ownerState` exposes. */
|
|
299
299
|
interface ButtonOwnerState {
|
|
300
300
|
variant?: keyof ButtonVariants;
|
|
301
301
|
color?: keyof ThemePalette;
|
|
@@ -328,7 +328,7 @@ interface CardOwnerState {
|
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
330
|
* Pressable's resolved props / theme-settable defaults. Only the three keys it
|
|
331
|
-
* actually resolves through `useDefaultProps`
|
|
331
|
+
* actually resolves through `useDefaultProps` - the disabled state reaches the
|
|
332
332
|
* styled root as `isDisabled` and is never read from here, so exposing it would
|
|
333
333
|
* promise theme authors an override that does nothing.
|
|
334
334
|
*/
|
|
@@ -397,9 +397,9 @@ interface ThemeComponents {
|
|
|
397
397
|
}
|
|
398
398
|
interface Theme {
|
|
399
399
|
name: string;
|
|
400
|
-
/** Optional overrides for component default token/variant keys
|
|
400
|
+
/** Optional overrides for component default token/variant keys - see `ThemeDefaults`. */
|
|
401
401
|
defaults?: OpenScale<ThemeDefaults>;
|
|
402
|
-
/** Optional per-component customization
|
|
402
|
+
/** Optional per-component customization - see `ThemeComponents`. */
|
|
403
403
|
components?: OpenScale<ThemeComponents>;
|
|
404
404
|
space: OpenScale<ThemeSpace>;
|
|
405
405
|
border: OpenScale<ThemeBorder>;
|
|
@@ -421,7 +421,7 @@ interface Theme {
|
|
|
421
421
|
colorScheme: 'light' | 'dark';
|
|
422
422
|
blur: string;
|
|
423
423
|
logoFilter: string;
|
|
424
|
-
/** mix-blend-mode for the AboutHero portrait
|
|
424
|
+
/** mix-blend-mode for the AboutHero portrait - screen on dark, multiply on light. */
|
|
425
425
|
portraitBlend: string;
|
|
426
426
|
/** opacity for the AboutHero portrait. */
|
|
427
427
|
portraitOpacity: number;
|
|
@@ -495,8 +495,8 @@ declare const sizes: ThemeSizes;
|
|
|
495
495
|
declare const space: ThemeSpace;
|
|
496
496
|
declare const typography: ThemeTypographyVariants;
|
|
497
497
|
/**
|
|
498
|
-
* The package's complete default theme (dark-schemed). Raw hex only
|
|
499
|
-
* belong to the consumer, who builds brand themes with `createTheme(baseTheme,
|
|
498
|
+
* The package's complete default theme (dark-schemed). Raw hex only - palettes
|
|
499
|
+
* belong to the consumer, who builds brand themes with `createTheme(baseTheme, ...)`.
|
|
500
500
|
*/
|
|
501
501
|
declare const baseTheme: Theme;
|
|
502
502
|
//#endregion
|
|
@@ -13,19 +13,19 @@ type ThemeOverride = DeepPartial<Theme>;
|
|
|
13
13
|
*
|
|
14
14
|
* - Recurses only where both sides are plain objects; arrays (`shadows`,
|
|
15
15
|
* `fontSizes`) and functions replace wholesale.
|
|
16
|
-
* - `undefined` override values are ignored
|
|
16
|
+
* - `undefined` override values are ignored - a key can be added or replaced,
|
|
17
17
|
* never removed.
|
|
18
18
|
* - Neither argument is mutated; untouched branches keep referential identity.
|
|
19
19
|
*/
|
|
20
20
|
declare const createTheme: (base: Theme, overrides: ThemeOverride) => Theme;
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/theme/themes.d.ts
|
|
23
|
-
/** Design-system's own style-object shape
|
|
23
|
+
/** Design-system's own style-object shape - Emotion stays an internal implementation detail. */
|
|
24
24
|
type CSSObject$1 = CSSObject;
|
|
25
25
|
/**
|
|
26
26
|
* Re-opens a named scale interface as an anonymous mapped type. Named
|
|
27
27
|
* interfaces have no implicit index signature, which styled-system's
|
|
28
|
-
* Record-based `Theme` constraint requires
|
|
28
|
+
* Record-based `Theme` constraint requires - the mapped copy restores it
|
|
29
29
|
* while keeping the literal keys (and any consumer-augmented keys).
|
|
30
30
|
*/
|
|
31
31
|
type OpenScale<T> = { [K in keyof T]: T[K]; };
|
|
@@ -91,7 +91,7 @@ interface ThemeSwitch {
|
|
|
91
91
|
thumb: string;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
* Shadow tokens
|
|
94
|
+
* Shadow tokens - the single base color every shadow composites from
|
|
95
95
|
* (the `theme.shadows` elevation array and component shadows alike).
|
|
96
96
|
*/
|
|
97
97
|
interface ThemeShadow {
|
|
@@ -100,7 +100,7 @@ interface ThemeShadow {
|
|
|
100
100
|
/** Alpha applied per elevation step in the default `theme.shadows` array. */
|
|
101
101
|
opacity: number;
|
|
102
102
|
}
|
|
103
|
-
/** Stacking order for layered UI
|
|
103
|
+
/** Stacking order for layered UI - ascending: appBar < drawer < modal. */
|
|
104
104
|
interface ThemeZOrder {
|
|
105
105
|
appBar: number;
|
|
106
106
|
drawer: number;
|
|
@@ -182,7 +182,7 @@ interface ThemeSizes {
|
|
|
182
182
|
lg: SizeEntry;
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
|
-
* Square glyph dimension per density key
|
|
185
|
+
* Square glyph dimension per density key - Icon token sizes and the
|
|
186
186
|
* Checkbox/Radio glyphs. Mapped over `ThemeSizes` so augmenting a size key
|
|
187
187
|
* forces the matching icon size to be supplied.
|
|
188
188
|
*/
|
|
@@ -213,8 +213,8 @@ interface ThemeTypographyVariants {
|
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
215
215
|
* Optional theme-driven component defaults. Components carry their own
|
|
216
|
-
* literal fallbacks (`size = 'md'`, `variant = 'outside'`,
|
|
217
|
-
* them through `themeDefault(theme, key, fallback)`
|
|
216
|
+
* literal fallbacks (`size = 'md'`, `variant = 'outside'`, ...) and resolve
|
|
217
|
+
* them through `themeDefault(theme, key, fallback)` - set any key here (or
|
|
218
218
|
* via `ThemeProvider`'s `defaults` prop) to override that fallback globally,
|
|
219
219
|
* e.g. when your theme uses entirely different size or palette keys.
|
|
220
220
|
*/
|
|
@@ -223,9 +223,9 @@ interface ThemeDefaults {
|
|
|
223
223
|
size?: keyof ThemeSizes;
|
|
224
224
|
/** Compact density for dense secondary UI (table pagination actions). Fallback: `'sm'`. */
|
|
225
225
|
compactSize?: keyof ThemeSizes;
|
|
226
|
-
/** Accent palette color (buttons, links, progress, pagination
|
|
226
|
+
/** Accent palette color (buttons, links, progress, pagination...). Fallback: `'primary'`. */
|
|
227
227
|
color?: keyof ThemePalette;
|
|
228
|
-
/** Neutral palette color for toggle controls (checkbox, radio, switch
|
|
228
|
+
/** Neutral palette color for toggle controls (checkbox, radio, switch...). Fallback: `'default'`. */
|
|
229
229
|
neutralColor?: keyof ThemePalette;
|
|
230
230
|
/** Body text color. Fallback: `'initial'`. */
|
|
231
231
|
textColor?: keyof ThemeText;
|
|
@@ -267,7 +267,7 @@ interface ThemeDefaults {
|
|
|
267
267
|
paginationShape?: 'circular' | 'rounded';
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
|
-
* A style contributed from `theme.components`
|
|
270
|
+
* A style contributed from `theme.components` - a plain CSS object, or a
|
|
271
271
|
* callback receiving the theme and the styled root's resolved props
|
|
272
272
|
* (`ownerState`) for conditional styling.
|
|
273
273
|
*/
|
|
@@ -282,20 +282,20 @@ interface ComponentVariant<OwnerState> {
|
|
|
282
282
|
}
|
|
283
283
|
/** Per-component customization: default prop values, per-slot CSS, extra variants. */
|
|
284
284
|
interface ComponentConfig<OwnerState = Record<string, unknown>, Slot extends string = 'root'> {
|
|
285
|
-
/** Default prop values
|
|
285
|
+
/** Default prop values - explicit props and group context always win. */
|
|
286
286
|
defaultProps?: Partial<OwnerState>;
|
|
287
287
|
/** Per-slot CSS merged after the component's own styles (theme wins). */
|
|
288
288
|
styleOverrides?: Partial<Record<Slot, ComponentStyle<OwnerState>>>;
|
|
289
289
|
/** Extra variants matched by props. Replaced wholesale by `createTheme`, never merged. */
|
|
290
290
|
variants?: ReadonlyArray<ComponentVariant<OwnerState>>;
|
|
291
291
|
}
|
|
292
|
-
/** Button's variant values
|
|
292
|
+
/** Button's variant values - augment to register new ones (then style them via `variants`). */
|
|
293
293
|
interface ButtonVariants {
|
|
294
294
|
contained: true;
|
|
295
295
|
outlined: true;
|
|
296
296
|
text: true;
|
|
297
297
|
}
|
|
298
|
-
/** The resolved props Button's styled roots receive
|
|
298
|
+
/** The resolved props Button's styled roots receive - what `ownerState` exposes. */
|
|
299
299
|
interface ButtonOwnerState {
|
|
300
300
|
variant?: keyof ButtonVariants;
|
|
301
301
|
color?: keyof ThemePalette;
|
|
@@ -328,7 +328,7 @@ interface CardOwnerState {
|
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
330
|
* Pressable's resolved props / theme-settable defaults. Only the three keys it
|
|
331
|
-
* actually resolves through `useDefaultProps`
|
|
331
|
+
* actually resolves through `useDefaultProps` - the disabled state reaches the
|
|
332
332
|
* styled root as `isDisabled` and is never read from here, so exposing it would
|
|
333
333
|
* promise theme authors an override that does nothing.
|
|
334
334
|
*/
|
|
@@ -397,9 +397,9 @@ interface ThemeComponents {
|
|
|
397
397
|
}
|
|
398
398
|
interface Theme {
|
|
399
399
|
name: string;
|
|
400
|
-
/** Optional overrides for component default token/variant keys
|
|
400
|
+
/** Optional overrides for component default token/variant keys - see `ThemeDefaults`. */
|
|
401
401
|
defaults?: OpenScale<ThemeDefaults>;
|
|
402
|
-
/** Optional per-component customization
|
|
402
|
+
/** Optional per-component customization - see `ThemeComponents`. */
|
|
403
403
|
components?: OpenScale<ThemeComponents>;
|
|
404
404
|
space: OpenScale<ThemeSpace>;
|
|
405
405
|
border: OpenScale<ThemeBorder>;
|
|
@@ -421,7 +421,7 @@ interface Theme {
|
|
|
421
421
|
colorScheme: 'light' | 'dark';
|
|
422
422
|
blur: string;
|
|
423
423
|
logoFilter: string;
|
|
424
|
-
/** mix-blend-mode for the AboutHero portrait
|
|
424
|
+
/** mix-blend-mode for the AboutHero portrait - screen on dark, multiply on light. */
|
|
425
425
|
portraitBlend: string;
|
|
426
426
|
/** opacity for the AboutHero portrait. */
|
|
427
427
|
portraitOpacity: number;
|
|
@@ -495,8 +495,8 @@ declare const sizes: ThemeSizes;
|
|
|
495
495
|
declare const space: ThemeSpace;
|
|
496
496
|
declare const typography: ThemeTypographyVariants;
|
|
497
497
|
/**
|
|
498
|
-
* The package's complete default theme (dark-schemed). Raw hex only
|
|
499
|
-
* belong to the consumer, who builds brand themes with `createTheme(baseTheme,
|
|
498
|
+
* The package's complete default theme (dark-schemed). Raw hex only - palettes
|
|
499
|
+
* belong to the consumer, who builds brand themes with `createTheme(baseTheme, ...)`.
|
|
500
500
|
*/
|
|
501
501
|
declare const baseTheme: Theme;
|
|
502
502
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as TableSortLabelDirection } from "./index-
|
|
1
|
+
import { n as TableSortLabelDirection } from "./index-vuPAf55D.cjs";
|
|
2
2
|
//#region src/Table/hooks/useTableSort.d.ts
|
|
3
|
-
/** One column's sort state
|
|
3
|
+
/** One column's sort state - spreads directly onto `TableSortLabel`. */
|
|
4
4
|
interface TableSortEntry {
|
|
5
5
|
isActive: boolean;
|
|
6
6
|
direction: TableSortLabelDirection;
|
|
@@ -11,13 +11,13 @@ type TableSortMap<K extends string = string> = Record<K, TableSortEntry>;
|
|
|
11
11
|
/**
|
|
12
12
|
* Column-keyed sort state for sortable tables. Each column remembers its own
|
|
13
13
|
* direction (initially `'asc'`); clicking a column activates it AND flips its
|
|
14
|
-
* stored direction
|
|
14
|
+
* stored direction - so the first click on a column sorts `'desc'`.
|
|
15
15
|
* `keys` is read once on mount.
|
|
16
16
|
*
|
|
17
17
|
* ```tsx
|
|
18
18
|
* const sort = useTableSort(['name', 'latency'])
|
|
19
19
|
* <TableSortLabel {...sort.name}>Service</TableSortLabel>
|
|
20
|
-
* <TableControl data={rows} sort={sort}>{(row) =>
|
|
20
|
+
* <TableControl data={rows} sort={sort}>{(row) => ...}</TableControl>
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
declare function useTableSort<K extends string>(keys: readonly K[], onChange?: (key: K, direction: TableSortLabelDirection) => void): TableSortMap<K>;
|
|
@@ -29,7 +29,7 @@ interface UseTablePaginationOptions {
|
|
|
29
29
|
/** Initial rows per page; `-1` shows all rows. Default: `10`. */
|
|
30
30
|
defaultRowsPerPage?: number;
|
|
31
31
|
}
|
|
32
|
-
/** Paging state
|
|
32
|
+
/** Paging state - property names mirror `TablePagination`'s props so it spreads in one go. */
|
|
33
33
|
interface TablePaginationState {
|
|
34
34
|
page: number;
|
|
35
35
|
rowsPerPage: number;
|
|
@@ -43,7 +43,7 @@ interface TablePaginationState {
|
|
|
43
43
|
* ```tsx
|
|
44
44
|
* const pagination = useTablePagination({ defaultRowsPerPage: 10 })
|
|
45
45
|
* <TablePagination count={data.length} {...pagination} />
|
|
46
|
-
* <TableControl data={data} pagination={pagination}>{(row) =>
|
|
46
|
+
* <TableControl data={data} pagination={pagination}>{(row) => ...}</TableControl>
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
49
|
declare function useTablePagination({ defaultPage, defaultRowsPerPage }?: UseTablePaginationOptions): TablePaginationState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as TableSortLabelDirection } from "./index-
|
|
1
|
+
import { n as TableSortLabelDirection } from "./index-ggLhNdZV.mjs";
|
|
2
2
|
//#region src/Table/hooks/useTableSort.d.ts
|
|
3
|
-
/** One column's sort state
|
|
3
|
+
/** One column's sort state - spreads directly onto `TableSortLabel`. */
|
|
4
4
|
interface TableSortEntry {
|
|
5
5
|
isActive: boolean;
|
|
6
6
|
direction: TableSortLabelDirection;
|
|
@@ -11,13 +11,13 @@ type TableSortMap<K extends string = string> = Record<K, TableSortEntry>;
|
|
|
11
11
|
/**
|
|
12
12
|
* Column-keyed sort state for sortable tables. Each column remembers its own
|
|
13
13
|
* direction (initially `'asc'`); clicking a column activates it AND flips its
|
|
14
|
-
* stored direction
|
|
14
|
+
* stored direction - so the first click on a column sorts `'desc'`.
|
|
15
15
|
* `keys` is read once on mount.
|
|
16
16
|
*
|
|
17
17
|
* ```tsx
|
|
18
18
|
* const sort = useTableSort(['name', 'latency'])
|
|
19
19
|
* <TableSortLabel {...sort.name}>Service</TableSortLabel>
|
|
20
|
-
* <TableControl data={rows} sort={sort}>{(row) =>
|
|
20
|
+
* <TableControl data={rows} sort={sort}>{(row) => ...}</TableControl>
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
declare function useTableSort<K extends string>(keys: readonly K[], onChange?: (key: K, direction: TableSortLabelDirection) => void): TableSortMap<K>;
|
|
@@ -29,7 +29,7 @@ interface UseTablePaginationOptions {
|
|
|
29
29
|
/** Initial rows per page; `-1` shows all rows. Default: `10`. */
|
|
30
30
|
defaultRowsPerPage?: number;
|
|
31
31
|
}
|
|
32
|
-
/** Paging state
|
|
32
|
+
/** Paging state - property names mirror `TablePagination`'s props so it spreads in one go. */
|
|
33
33
|
interface TablePaginationState {
|
|
34
34
|
page: number;
|
|
35
35
|
rowsPerPage: number;
|
|
@@ -43,7 +43,7 @@ interface TablePaginationState {
|
|
|
43
43
|
* ```tsx
|
|
44
44
|
* const pagination = useTablePagination({ defaultRowsPerPage: 10 })
|
|
45
45
|
* <TablePagination count={data.length} {...pagination} />
|
|
46
|
-
* <TableControl data={data} pagination={pagination}>{(row) =>
|
|
46
|
+
* <TableControl data={data} pagination={pagination}>{(row) => ...}</TableControl>
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
49
|
declare function useTablePagination({ defaultPage, defaultRowsPerPage }?: UseTablePaginationOptions): TablePaginationState;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soroush.tech/design-system",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "Emotion + @soroush.tech/styled-system React component library
|
|
3
|
+
"version": "1.3.3",
|
|
4
|
+
"description": "Emotion + @soroush.tech/styled-system React component library - token-driven light/dark themes, layout primitives, forms, and overlays.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-system",
|
|
7
7
|
"react",
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
"@emotion/cache": "^11.14.0",
|
|
478
478
|
"@emotion/react": "^11.14.0",
|
|
479
479
|
"@emotion/styled": "^11.14.1",
|
|
480
|
-
"@soroush.tech/styled-system": "^5.8.
|
|
480
|
+
"@soroush.tech/styled-system": "^5.8.3"
|
|
481
481
|
},
|
|
482
482
|
"peerDependencies": {
|
|
483
483
|
"react": "^19.2.8",
|