react-asc 26.0.0 → 26.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/package.json CHANGED
@@ -1,25 +1,19 @@
1
1
  {
2
2
  "name": "react-asc",
3
- "version": "26.0.0",
3
+ "version": "26.2.0",
4
4
  "description": "handcrafted react components",
5
5
  "main": "index.cjs.js",
6
6
  "module": "index.es.js",
7
7
  "jsnext:main": "index.es.js",
8
8
  "author": "Ardian Shala",
9
- "homepage": "https://react-asc.netlify.app",
9
+ "homepage": "https://react-asc.oardi.com",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@popperjs/core": "^2.11.8",
13
13
  "react": "^19.0.0",
14
- "react-dom": "^19.0.0",
15
- "react-calendar": "^5.1.0"
16
- },
17
- "peerDependencies": {
18
- "@types/file-saver": "^2.0.7",
19
- "@types/papaparse": "^5.3.15",
20
- "file-saver": "^2.0.5",
21
- "papaparse": "^5.5.2"
14
+ "react-dom": "^19.0.0"
22
15
  },
16
+ "peerDependencies": {},
23
17
  "scripts": {
24
18
  "pub": "npm publish --access public"
25
19
  },
package/readme.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # react-asc
2
2
 
3
- handcrafted components inspired by Material Design and bundled with rollup.
3
+ handcrafted components inspired by Material Design and bundled with Vite.
4
4
 
5
5
  ## showcase
6
6
 
7
- react-asc interactive showcase with code snippets [link](https://react-asc.netlify.app)
7
+ react-asc interactive showcase with code snippets [link](https://react-asc.oardi.com)
8
8
 
9
9
  ## Stackblitz Examples
10
10
 
11
- - react-asc and jsx [link](https://stackblitz.com/edit/react-asc-example-js)
12
- - react-asc and tsx [link](https://stackblitz.com/edit/react-asc-example-ts)
11
+ - react-asc and jsx [link](https://stackblitz.com/edit/react-asc-example-js)
12
+ - react-asc and tsx [link](https://stackblitz.com/edit/react-asc-example-ts)
13
13
 
14
14
  ## usage
15
15
 
@@ -17,32 +17,32 @@ react-asc interactive showcase with code snippets [link](https://react-asc.netli
17
17
 
18
18
  `npm install react-asc`
19
19
 
20
- ### install modern-normalize
20
+ ### Include style
21
21
 
22
- `npm install modern-normalize`
22
+ ```scss
23
+ @use 'react-asc/react-asc.scss';
24
+ ```
23
25
 
24
- ### Include styles
26
+ ### optional - include modern-normalize
27
+
28
+ `npm install modern-normalize`
25
29
 
26
30
  ```scss
27
- @use "modern-normalize";
28
- @use "react-asc/react-asc.scss";
31
+ @use 'react-asc/react-asc.scss';
29
32
  ```
30
33
 
31
34
  ### Usage
32
35
 
33
36
  ```js
34
- import React from "react";
35
- import { Button } from "react-asc";
37
+ import React from 'react';
38
+ import { Button } from 'react-asc';
36
39
 
37
- const MyApp = () => {
38
- return <Button>some button</Button>;
39
- };
40
+ const MyApp = () => <Button>some button text</Button>;
40
41
  ```
41
42
 
42
-
43
43
  ## TypeScript
44
- react-asc provides built-in ts definition
45
44
 
45
+ react-asc provides built-in ts definition
46
46
 
47
47
  ## Included Components
48
48
 
@@ -57,7 +57,7 @@ react-asc provides built-in ts definition
57
57
  - Card
58
58
  - Checkbox
59
59
  - Chip
60
- - CssTransition
60
+ - CssTransition
61
61
  - ConditionalWrapper
62
62
  - DateSelect
63
63
  - Drawer
@@ -74,10 +74,10 @@ react-asc provides built-in ts definition
74
74
  - Menu
75
75
  - Modal + ModalService
76
76
  - NumberSelect
77
- Portal
77
+ Portal
78
78
  - Select
79
79
  - Sidebar
80
- - Skeleton (Avatar, Image, Text, SkeletonFooter)
80
+ - Skeleton (Avatar, Image, Text, SkeletonFooter)
81
81
  - Snackbar + SnackbarService
82
82
  - SpeedDial
83
83
  - Stepper (beta)
@@ -89,7 +89,6 @@ react-asc provides built-in ts definition
89
89
  - TreeView (beta)
90
90
  - Typography
91
91
 
92
-
93
92
  ## Credit
94
93
 
95
94
  uses fontawesome icons as SVGs
@@ -1 +0,0 @@
1
- export * from './sort.helper';
@@ -1 +0,0 @@
1
- export declare const sortHelper: <T, G>(a: T, b: T, valueGetter: (a: T) => G, ascending?: boolean) => number;
@@ -1,10 +0,0 @@
1
- import { IDictionary } from '../interfaces';
2
- export {};
3
- declare global {
4
- interface Array<T> {
5
- groupBy(valueGetter: (a: T) => string): IDictionary<T[]>;
6
- orderBy<T, G>(valueGetter: (a: T) => G, ascending?: boolean): T[];
7
- filterBy<G>(key?: string): G[];
8
- distinct<T>(comparator?: (obj1: unknown, obj2: unknown) => boolean): T[];
9
- }
10
- }
@@ -1,13 +0,0 @@
1
- import { ConfigType, ManipulateType, OpUnitType } from 'dayjs';
2
- declare global {
3
- interface Date {
4
- isAfter(date: ConfigType, unit?: OpUnitType): boolean;
5
- isBefore(date: ConfigType, unit?: OpUnitType): boolean;
6
- format(template?: string): string;
7
- isValid(): boolean;
8
- add(value: number, unit?: ManipulateType): Date;
9
- subtract(value: number, unit?: ManipulateType): Date;
10
- firstDayOfMonth(): Date;
11
- lastDayOfMonth(): Date;
12
- }
13
- }
@@ -1,3 +0,0 @@
1
- export * from './array-extension';
2
- export * from './date-extension';
3
- export * from './string-extensions';
@@ -1,6 +0,0 @@
1
- export {};
2
- declare global {
3
- interface String {
4
- capitalize(): string;
5
- }
6
- }