@soroush.tech/design-system 2.0.0-alpha.3 → 2.0.0-alpha.4

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/dist/AppBar.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
2
  import "./index-BsUsSWXP.cjs";
3
- import { n as FlexProps } from "./index-CS4yFHlC.cjs";
3
+ import { n as FlexProps } from "./index-DRM_YhHL.cjs";
4
4
  //#region src/AppBar/AppBar.d.ts
5
5
  /** Valid values for the color prop - derived from theme.background keys. */
6
6
  type AppBarColor = keyof Theme['background'];
package/dist/AppBar.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { T as Theme } from "./themes-C3RTORGO.mjs";
2
2
  import "./index-Dkqk_6g2.mjs";
3
- import { n as FlexProps } from "./index-CWYckiaS.mjs";
3
+ import { n as FlexProps } from "./index-C_VwtHyK.mjs";
4
4
  //#region src/AppBar/AppBar.d.ts
5
5
  /** Valid values for the color prop - derived from theme.background keys. */
6
6
  type AppBarColor = keyof Theme['background'];
package/dist/Avatar.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
2
  import "./index-BsUsSWXP.cjs";
3
- import { n as FlexProps } from "./index-CS4yFHlC.cjs";
3
+ import { n as FlexProps } from "./index-DRM_YhHL.cjs";
4
4
  //#region src/Avatar/Avatar.d.ts
5
5
  type AvatarVariant = 'circular' | 'rounded' | 'square';
6
6
  type AvatarSize = keyof Theme['avatar'];
package/dist/Avatar.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { T as Theme } from "./themes-C3RTORGO.mjs";
2
2
  import "./index-Dkqk_6g2.mjs";
3
- import { n as FlexProps } from "./index-CWYckiaS.mjs";
3
+ import { n as FlexProps } from "./index-C_VwtHyK.mjs";
4
4
  //#region src/Avatar/Avatar.d.ts
5
5
  type AvatarVariant = 'circular' | 'rounded' | 'square';
6
6
  type AvatarSize = keyof Theme['avatar'];
package/dist/Card.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as PaperProps } from "./index-Ddetmkqd.cjs";
1
+ import { r as PaperProps } from "./index-N_TM6YXV.cjs";
2
2
  import { a as TypographyProps } from "./index-D5Rj4uWe.cjs";
3
3
  import { n as IconProps, r as IconName } from "./index-CxDY_w-H.cjs";
4
4
  import { ReactNode } from "react";
package/dist/Card.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as PaperProps } from "./index-suqlMrTp.mjs";
1
+ import { r as PaperProps } from "./index-BUvlTtD7.mjs";
2
2
  import { a as TypographyProps } from "./index-DJ8NTYR8.mjs";
3
3
  import { n as IconProps, r as IconName } from "./index-BBV7_p-W.mjs";
4
4
  import { ReactNode } from "react";
package/dist/Drawer.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as ButtonProps } from "./index-B2eLreA5.cjs";
2
- import { n as PaperElevation } from "./index-Ddetmkqd.cjs";
2
+ import { n as PaperElevation } from "./index-N_TM6YXV.cjs";
3
3
  import { ReactNode } from "react";
4
4
  //#region src/Drawer/Drawer.d.ts
5
5
  type DrawerAnchor = 'left' | 'right' | 'top' | 'bottom';
package/dist/Drawer.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as ButtonProps } from "./index-DYtIEMr9.mjs";
2
- import { n as PaperElevation } from "./index-suqlMrTp.mjs";
2
+ import { n as PaperElevation } from "./index-BUvlTtD7.mjs";
3
3
  import { ReactNode } from "react";
4
4
  //#region src/Drawer/Drawer.d.ts
5
5
  type DrawerAnchor = 'left' | 'right' | 'top' | 'bottom';
package/dist/Flex.cjs CHANGED
@@ -8,11 +8,7 @@ const Flex = require_src.styled(require_View.View, {
8
8
  name: "Flex",
9
9
  label: "flex",
10
10
  shouldForwardProp,
11
- systemProps: [
12
- require_src.src_exports.layoutFlex,
13
- require_src.src_exports.flexbox,
14
- require_src.src_exports.space
15
- ]
11
+ systemProps: [require_src.src_exports.flexbox, require_src.src_exports.space]
16
12
  })({
17
13
  display: "flex",
18
14
  flexDirection: "column"
package/dist/Flex.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as FlexProps, r as GapToken, t as Flex } from "./index-CS4yFHlC.cjs";
1
+ import { n as FlexProps, r as GapToken, t as Flex } from "./index-DRM_YhHL.cjs";
2
2
  export { Flex, FlexProps, GapToken };
package/dist/Flex.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as FlexProps, r as GapToken, t as Flex } from "./index-CWYckiaS.mjs";
1
+ import { n as FlexProps, r as GapToken, t as Flex } from "./index-C_VwtHyK.mjs";
2
2
  export { Flex, FlexProps, GapToken };
package/dist/Flex.mjs CHANGED
@@ -6,11 +6,7 @@ const Flex = styled(View, {
6
6
  name: "Flex",
7
7
  label: "flex",
8
8
  shouldForwardProp,
9
- systemProps: [
10
- src_exports.layoutFlex,
11
- src_exports.flexbox,
12
- src_exports.space
13
- ]
9
+ systemProps: [src_exports.flexbox, src_exports.space]
14
10
  })({
15
11
  display: "flex",
16
12
  flexDirection: "column"
package/dist/Grid.d.cts CHANGED
@@ -7,10 +7,10 @@ import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@sorous
7
7
  type GapToken = keyof Theme['space'];
8
8
  /**
9
9
  * `layout` lays the grid out from `theme.layout` - the theme's columns, gutter and margin per
10
- * breakpoint, its own at every breakpoint (`layout={{ gutter: 8 }}`), or its own for a named
11
- * breakpoint: `layout={{ lg: { columns: 16 } }}`. Both mix: `{ gutter: 8, lg: { columns: 16 } }`.
12
- * View draws the frame (margin, max width); Grid adds the columns. The layout owns what it
13
- * writes, so column spacing comes from `gutter` and rows take `rowGap`.
10
+ * breakpoint, its own at every breakpoint (`layout={{ maxWidth: '1280px' }}`), or its own from
11
+ * a named breakpoint up: `layout={{ lg: { columns: 16 } }}`. View draws the frame (margin, max
12
+ * width); Grid adds the columns. The gutter is the grid's own `gap` / `columnGap` where it sets
13
+ * one - single or responsive - and the theme's elsewhere; rows take `gap` or `rowGap`.
14
14
  */
15
15
  interface GridProps extends Omit<ViewProps, 'layout'>, GridProps$1<Theme>, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
16
16
  declare const Grid: import("@emotion/styled").StyledComponent<{
package/dist/Grid.d.mts CHANGED
@@ -7,10 +7,10 @@ import { FlexboxProps, GridProps as GridProps$1, LayoutGridProps } from "@sorous
7
7
  type GapToken = keyof Theme['space'];
8
8
  /**
9
9
  * `layout` lays the grid out from `theme.layout` - the theme's columns, gutter and margin per
10
- * breakpoint, its own at every breakpoint (`layout={{ gutter: 8 }}`), or its own for a named
11
- * breakpoint: `layout={{ lg: { columns: 16 } }}`. Both mix: `{ gutter: 8, lg: { columns: 16 } }`.
12
- * View draws the frame (margin, max width); Grid adds the columns. The layout owns what it
13
- * writes, so column spacing comes from `gutter` and rows take `rowGap`.
10
+ * breakpoint, its own at every breakpoint (`layout={{ maxWidth: '1280px' }}`), or its own from
11
+ * a named breakpoint up: `layout={{ lg: { columns: 16 } }}`. View draws the frame (margin, max
12
+ * width); Grid adds the columns. The gutter is the grid's own `gap` / `columnGap` where it sets
13
+ * one - single or responsive - and the theme's elsewhere; rows take `gap` or `rowGap`.
14
14
  */
15
15
  interface GridProps extends Omit<ViewProps, 'layout'>, GridProps$1<Theme>, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
16
16
  declare const Grid: import("@emotion/styled").StyledComponent<{
package/dist/Paper.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as PaperElevation, r as PaperProps, t as Paper } from "./index-Ddetmkqd.cjs";
1
+ import { n as PaperElevation, r as PaperProps, t as Paper } from "./index-N_TM6YXV.cjs";
2
2
  export { Paper, PaperElevation, PaperProps };
package/dist/Paper.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as PaperElevation, r as PaperProps, t as Paper } from "./index-suqlMrTp.mjs";
1
+ import { n as PaperElevation, r as PaperProps, t as Paper } from "./index-BUvlTtD7.mjs";
2
2
  export { Paper, PaperElevation, PaperProps };
@@ -1,6 +1,6 @@
1
1
  import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
2
  import "./index-BsUsSWXP.cjs";
3
- import { n as PaperElevation, r as PaperProps } from "./index-Ddetmkqd.cjs";
3
+ import { n as PaperElevation, r as PaperProps } from "./index-N_TM6YXV.cjs";
4
4
  import { l as ModalCloseReason } from "./index-BW4rc8cK.cjs";
5
5
  import { ReactNode, Ref } from "react";
6
6
  //#region src/Popover/utils/resolveAnchorEl.d.ts
@@ -1,6 +1,6 @@
1
1
  import { T as Theme } from "./themes-C3RTORGO.mjs";
2
2
  import "./index-Dkqk_6g2.mjs";
3
- import { n as PaperElevation, r as PaperProps } from "./index-suqlMrTp.mjs";
3
+ import { n as PaperElevation, r as PaperProps } from "./index-BUvlTtD7.mjs";
4
4
  import { l as ModalCloseReason } from "./index-BbngAEDY.mjs";
5
5
  import { ReactNode, Ref } from "react";
6
6
  //#region src/Popover/utils/resolveAnchorEl.d.ts
@@ -1,4 +1,4 @@
1
- import { n as FlexProps } from "../index-CS4yFHlC.cjs";
1
+ import { n as FlexProps } from "../index-DRM_YhHL.cjs";
2
2
  import { i as SidebarItemVariant, t as SidebarAnchor } from "../SidebarContext-B1lWrt77.cjs";
3
3
  import { ElementType, ReactNode } from "react";
4
4
  //#region src/Sidebar/Sidebar/Sidebar.d.ts
@@ -1,4 +1,4 @@
1
- import { n as FlexProps } from "../index-CWYckiaS.mjs";
1
+ import { n as FlexProps } from "../index-C_VwtHyK.mjs";
2
2
  import { i as SidebarItemVariant, t as SidebarAnchor } from "../SidebarContext-B1lWrt77.mjs";
3
3
  import { ElementType, ReactNode } from "react";
4
4
  //#region src/Sidebar/Sidebar/Sidebar.d.ts
@@ -1,6 +1,6 @@
1
1
  import { T as Theme } from "./themes-C3RTORGO.mjs";
2
2
  import "./index-Dkqk_6g2.mjs";
3
- import { n as FlexProps } from "./index-CWYckiaS.mjs";
3
+ import { n as FlexProps } from "./index-C_VwtHyK.mjs";
4
4
  import { CSSProperties, ElementType } from "react";
5
5
  //#region src/Paper/Paper.d.ts
6
6
  type PaperElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
@@ -0,0 +1,21 @@
1
+ import { T as Theme } from "./themes-C3RTORGO.mjs";
2
+ import "./index-Dkqk_6g2.mjs";
3
+ import { s as ViewProps } from "./index-t6XUvJ_3.mjs";
4
+ import { FlexboxProps } from "@soroush.tech/styled-system";
5
+ //#region src/Flex/Flex.d.ts
6
+ /** Valid values for the gap prop - derived from theme.space keys. */
7
+ type GapToken = keyof Theme['space'];
8
+ /**
9
+ * `layout` puts the flex container on the page frame, as on any View: the theme's margin and
10
+ * max width per breakpoint. The flexbox stays as set - a column by default, a row with
11
+ * `flexDirection="row"`. Columns are Grid's: content on the page columns uses `<Grid layout>`.
12
+ */
13
+ interface FlexProps extends ViewProps, FlexboxProps<Theme> {}
14
+ declare const Flex: import("@emotion/styled").StyledComponent<{
15
+ theme?: Theme;
16
+ as?: React.ElementType;
17
+ } & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
18
+ theme?: Theme;
19
+ } & FlexProps, {}, {}>;
20
+ //#endregion
21
+ export { FlexProps as n, GapToken as r, Flex as t };
@@ -0,0 +1,21 @@
1
+ import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
+ import "./index-BsUsSWXP.cjs";
3
+ import { s as ViewProps } from "./index-C8SeYUxJ.cjs";
4
+ import { FlexboxProps } from "@soroush.tech/styled-system";
5
+ //#region src/Flex/Flex.d.ts
6
+ /** Valid values for the gap prop - derived from theme.space keys. */
7
+ type GapToken = keyof Theme['space'];
8
+ /**
9
+ * `layout` puts the flex container on the page frame, as on any View: the theme's margin and
10
+ * max width per breakpoint. The flexbox stays as set - a column by default, a row with
11
+ * `flexDirection="row"`. Columns are Grid's: content on the page columns uses `<Grid layout>`.
12
+ */
13
+ interface FlexProps extends ViewProps, FlexboxProps<Theme> {}
14
+ declare const Flex: import("@emotion/styled").StyledComponent<{
15
+ theme?: Theme;
16
+ as?: React.ElementType;
17
+ } & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
18
+ theme?: Theme;
19
+ } & FlexProps, {}, {}>;
20
+ //#endregion
21
+ export { FlexProps as n, GapToken as r, Flex as t };
@@ -1,6 +1,6 @@
1
1
  import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
2
  import "./index-BsUsSWXP.cjs";
3
- import { n as FlexProps } from "./index-CS4yFHlC.cjs";
3
+ import { n as FlexProps } from "./index-DRM_YhHL.cjs";
4
4
  import { CSSProperties, ElementType } from "react";
5
5
  //#region src/Paper/Paper.d.ts
6
6
  type PaperElevation = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soroush.tech/design-system",
3
- "version": "2.0.0-alpha.3",
3
+ "version": "2.0.0-alpha.4",
4
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",
@@ -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": "^6.0.0-alpha.2"
480
+ "@soroush.tech/styled-system": "^6.0.0-alpha.3"
481
481
  },
482
482
  "peerDependencies": {
483
483
  "react": "^19.2.8",
@@ -1,22 +0,0 @@
1
- import { T as Theme } from "./themes-Dswy4M6B.cjs";
2
- import "./index-BsUsSWXP.cjs";
3
- import { s as ViewProps } from "./index-C8SeYUxJ.cjs";
4
- import { FlexboxProps, LayoutGridProps } from "@soroush.tech/styled-system";
5
- //#region src/Flex/Flex.d.ts
6
- /** Valid values for the gap prop - derived from theme.space keys. */
7
- type GapToken = keyof Theme['space'];
8
- /**
9
- * `layout` lays a wrapping row out from `theme.layout` - the theme's gutter and margin per
10
- * breakpoint, with `--layout-columns` / `--layout-gutter` for the children's `span`. Entries
11
- * work as on `Grid`: `layout={{ gutter: 8 }}` at every breakpoint, `{ md: { gutter: 4 } }` at one.
12
- * View draws the frame; Flex adds the row. Column spacing comes from `gutter`, rows take `rowGap`.
13
- */
14
- interface FlexProps extends Omit<ViewProps, 'layout'>, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
15
- declare const Flex: import("@emotion/styled").StyledComponent<{
16
- theme?: Theme;
17
- as?: React.ElementType;
18
- } & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
19
- theme?: Theme;
20
- } & FlexProps, {}, {}>;
21
- //#endregion
22
- export { FlexProps as n, GapToken as r, Flex as t };
@@ -1,22 +0,0 @@
1
- import { T as Theme } from "./themes-C3RTORGO.mjs";
2
- import "./index-Dkqk_6g2.mjs";
3
- import { s as ViewProps } from "./index-t6XUvJ_3.mjs";
4
- import { FlexboxProps, LayoutGridProps } from "@soroush.tech/styled-system";
5
- //#region src/Flex/Flex.d.ts
6
- /** Valid values for the gap prop - derived from theme.space keys. */
7
- type GapToken = keyof Theme['space'];
8
- /**
9
- * `layout` lays a wrapping row out from `theme.layout` - the theme's gutter and margin per
10
- * breakpoint, with `--layout-columns` / `--layout-gutter` for the children's `span`. Entries
11
- * work as on `Grid`: `layout={{ gutter: 8 }}` at every breakpoint, `{ md: { gutter: 4 } }` at one.
12
- * View draws the frame; Flex adds the row. Column spacing comes from `gutter`, rows take `rowGap`.
13
- */
14
- interface FlexProps extends Omit<ViewProps, 'layout'>, FlexboxProps<Theme>, LayoutGridProps<Theme> {}
15
- declare const Flex: import("@emotion/styled").StyledComponent<{
16
- theme?: Theme;
17
- as?: React.ElementType;
18
- } & ViewProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
19
- theme?: Theme;
20
- } & FlexProps, {}, {}>;
21
- //#endregion
22
- export { FlexProps as n, GapToken as r, Flex as t };