@mrcaktuz/sds-react 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { ButtonHTMLAttributes, ReactNode, ChangeEvent, FocusEvent } from 'react';
3
3
  import { ButtonAppearance } from '@mrcaktuz/sds-tokens';
4
4
 
@@ -9,7 +9,7 @@ type SDSButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> & B
9
9
  /** Hides the text — set `aria-label` */
10
10
  iconOnly?: boolean;
11
11
  };
12
- declare function SDSButton({ variant, color, small, icon, iconPosition, iconOnly, type, className, children, ...props }: SDSButtonProps): React.JSX.Element;
12
+ declare function SDSButton({ variant, color, small, icon, iconPosition, iconOnly, type, className, children, ...props }: SDSButtonProps): react.JSX.Element;
13
13
 
14
14
  type SDSInputType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'date';
15
15
  /** "success" does not exist in the legacy DS: same rendering as "error", with the success color */
@@ -30,7 +30,7 @@ type SDSInputProps = {
30
30
  /** Called when the field loses focus, with the current value */
31
31
  onBlur?: (value: string, event: FocusEvent<HTMLInputElement>) => void;
32
32
  };
33
- declare function SDSInput({ id, type, label, placeholder, value, status, message, onChange, onBlur, }: SDSInputProps): React.JSX.Element;
33
+ declare function SDSInput({ id, type, label, placeholder, value, status, message, onChange, onBlur, }: SDSInputProps): react.JSX.Element;
34
34
 
35
35
  type SDSPaginationProps = {
36
36
  /** Current page, starting at 1 */
@@ -47,6 +47,6 @@ type SDSPaginationProps = {
47
47
  className?: string;
48
48
  };
49
49
  declare function getPageItems(page: number, pageCount: number): (number | 'ellipsis')[];
50
- declare function SDSPagination({ page, pageSize, totalItems, onPageChange, onPageSizeChange, showRowsPerPage, pageSizeOptions, resultsSummary, className, }: SDSPaginationProps): React.JSX.Element;
50
+ declare function SDSPagination({ page, pageSize, totalItems, onPageChange, onPageSizeChange, showRowsPerPage, pageSizeOptions, resultsSummary, className, }: SDSPaginationProps): react.JSX.Element;
51
51
 
52
52
  export { SDSButton, type SDSButtonProps, SDSInput, type SDSInputProps, type SDSInputStatus, type SDSInputType, SDSPagination, type SDSPaginationProps, getPageItems };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { ButtonHTMLAttributes, ReactNode, ChangeEvent, FocusEvent } from 'react';
3
3
  import { ButtonAppearance } from '@mrcaktuz/sds-tokens';
4
4
 
@@ -9,7 +9,7 @@ type SDSButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'> & B
9
9
  /** Hides the text — set `aria-label` */
10
10
  iconOnly?: boolean;
11
11
  };
12
- declare function SDSButton({ variant, color, small, icon, iconPosition, iconOnly, type, className, children, ...props }: SDSButtonProps): React.JSX.Element;
12
+ declare function SDSButton({ variant, color, small, icon, iconPosition, iconOnly, type, className, children, ...props }: SDSButtonProps): react.JSX.Element;
13
13
 
14
14
  type SDSInputType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'date';
15
15
  /** "success" does not exist in the legacy DS: same rendering as "error", with the success color */
@@ -30,7 +30,7 @@ type SDSInputProps = {
30
30
  /** Called when the field loses focus, with the current value */
31
31
  onBlur?: (value: string, event: FocusEvent<HTMLInputElement>) => void;
32
32
  };
33
- declare function SDSInput({ id, type, label, placeholder, value, status, message, onChange, onBlur, }: SDSInputProps): React.JSX.Element;
33
+ declare function SDSInput({ id, type, label, placeholder, value, status, message, onChange, onBlur, }: SDSInputProps): react.JSX.Element;
34
34
 
35
35
  type SDSPaginationProps = {
36
36
  /** Current page, starting at 1 */
@@ -47,6 +47,6 @@ type SDSPaginationProps = {
47
47
  className?: string;
48
48
  };
49
49
  declare function getPageItems(page: number, pageCount: number): (number | 'ellipsis')[];
50
- declare function SDSPagination({ page, pageSize, totalItems, onPageChange, onPageSizeChange, showRowsPerPage, pageSizeOptions, resultsSummary, className, }: SDSPaginationProps): React.JSX.Element;
50
+ declare function SDSPagination({ page, pageSize, totalItems, onPageChange, onPageSizeChange, showRowsPerPage, pageSizeOptions, resultsSummary, className, }: SDSPaginationProps): react.JSX.Element;
51
51
 
52
52
  export { SDSButton, type SDSButtonProps, SDSInput, type SDSInputProps, type SDSInputStatus, type SDSInputType, SDSPagination, type SDSPaginationProps, getPageItems };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mrcaktuz/sds-react",
3
3
  "description": "Synerglass Design System — React components, styled on import",
4
- "version": "0.1.0",
4
+ "version": "0.2.0",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -26,26 +26,22 @@
26
26
  "peerDependencies": {
27
27
  "react": ">=19 <20",
28
28
  "react-dom": ">=19 <20",
29
- "@vaadin/react-components": "~25.3.6"
29
+ "@vaadin/react-components": "~25.3.5"
30
30
  },
31
31
  "dependencies": {
32
- "@lit/react": "^1.0.8",
33
- "@open-wc/dedupe-mixin": "^1.3.0",
34
- "lit": "^3.3.1",
35
- "@mrcaktuz/sds-styles": "0.1.0",
32
+ "@mrcaktuz/sds-styles": "0.1.1",
36
33
  "@mrcaktuz/sds-tokens": "0.1.0"
37
34
  },
38
35
  "devDependencies": {
39
36
  "@types/react": "^19.3.0",
40
- "@vaadin/react-components": "~25.3.6",
37
+ "@vaadin/react-components": "25.3.5",
41
38
  "react": "^19.3.1",
42
39
  "tsup": "^8.5.1",
43
40
  "typescript": "^5.9.3"
44
41
  },
45
42
  "scripts": {
46
- "fork": "node scripts/fork-vaadin.mjs grid",
47
- "build": "node scripts/fork-vaadin.mjs grid && tsup",
48
- "dev": "node scripts/fork-vaadin.mjs grid && tsup --watch",
49
- "typecheck": "node scripts/fork-vaadin.mjs grid && tsc --noEmit"
43
+ "build": "tsup",
44
+ "dev": "tsup --watch",
45
+ "typecheck": "tsc --noEmit"
50
46
  }
51
47
  }