@tecsinapse/cortex-react 1.2.0 → 1.2.2-beta.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.
Files changed (85) hide show
  1. package/README.md +65 -5
  2. package/dist/cjs/components/Avatar.js +34 -0
  3. package/dist/cjs/components/BreadcrumbItem.js +27 -0
  4. package/dist/cjs/components/Breadcrumbs.js +22 -0
  5. package/dist/cjs/components/Card.js +2 -10
  6. package/dist/cjs/components/Drawer.js +32 -0
  7. package/dist/cjs/components/GroupButton.js +42 -0
  8. package/dist/cjs/components/Input.js +5 -3
  9. package/dist/cjs/components/Modal.js +6 -13
  10. package/dist/cjs/components/ProgressBar.js +70 -0
  11. package/dist/cjs/components/SearchInput.js +5 -0
  12. package/dist/cjs/components/Skeleton.js +21 -0
  13. package/dist/cjs/components/Table.js +5 -1
  14. package/dist/cjs/components/Toggle.js +17 -9
  15. package/dist/cjs/components/utils.js +12 -0
  16. package/dist/cjs/index.js +13 -0
  17. package/dist/cjs/styles/groupButton.js +16 -0
  18. package/dist/cjs/styles/progressBar.js +21 -0
  19. package/dist/esm/components/Avatar.js +32 -0
  20. package/dist/esm/components/BreadcrumbItem.js +25 -0
  21. package/dist/esm/components/Breadcrumbs.js +20 -0
  22. package/dist/esm/components/Card.js +2 -10
  23. package/dist/esm/components/Drawer.js +30 -0
  24. package/dist/esm/components/GroupButton.js +40 -0
  25. package/dist/esm/components/Input.js +5 -3
  26. package/dist/esm/components/Modal.js +6 -13
  27. package/dist/esm/components/ProgressBar.js +68 -0
  28. package/dist/esm/components/SearchInput.js +5 -0
  29. package/dist/esm/components/Skeleton.js +19 -0
  30. package/dist/esm/components/Table.js +6 -3
  31. package/dist/esm/components/Toggle.js +17 -9
  32. package/dist/esm/components/utils.js +10 -0
  33. package/dist/esm/index.js +7 -1
  34. package/dist/esm/styles/groupButton.js +14 -0
  35. package/dist/esm/styles/progressBar.js +19 -0
  36. package/dist/types/components/Avatar.d.ts +7 -0
  37. package/dist/types/components/BreadcrumbItem.d.ts +5 -0
  38. package/dist/types/components/Breadcrumbs.d.ts +10 -0
  39. package/dist/types/components/Button.d.ts +1 -1
  40. package/dist/types/components/Card.d.ts +1 -1
  41. package/dist/types/components/Drawer.d.ts +9 -0
  42. package/dist/types/components/GroupButton.d.ts +19 -0
  43. package/dist/types/components/Input.d.ts +1 -1
  44. package/dist/types/components/Modal.d.ts +2 -2
  45. package/dist/types/components/ProgressBar.d.ts +9 -0
  46. package/dist/types/components/SearchInput.d.ts +0 -1
  47. package/dist/types/components/Select.d.ts +0 -1
  48. package/dist/types/components/Skeleton.d.ts +4 -0
  49. package/dist/types/components/Table.d.ts +1 -0
  50. package/dist/types/components/index.d.ts +6 -0
  51. package/dist/types/components/utils.d.ts +1 -0
  52. package/dist/types/styles/groupButton.d.ts +77 -0
  53. package/dist/types/styles/index.d.ts +2 -0
  54. package/dist/types/styles/progressBar.d.ts +78 -0
  55. package/dist/types/tests/Avatar.test.d.ts +1 -0
  56. package/dist/types/tests/Badge.test.d.ts +1 -0
  57. package/dist/types/tests/BreadcrumbItem.test.d.ts +1 -0
  58. package/dist/types/tests/Breadcrumbs.test.d.ts +1 -0
  59. package/dist/types/tests/Card.test.d.ts +1 -0
  60. package/dist/types/tests/Drawer.test.d.ts +1 -0
  61. package/dist/types/tests/GroupButton.test.d.ts +1 -0
  62. package/dist/types/tests/Hint.test.d.ts +1 -0
  63. package/dist/types/tests/Input.test.d.ts +1 -0
  64. package/dist/types/tests/Modal.test.d.ts +1 -0
  65. package/dist/types/tests/ProgressBar.test.d.ts +1 -0
  66. package/dist/types/tests/Tag.test.d.ts +1 -0
  67. package/dist/types/tests/Toggle.test.d.ts +1 -0
  68. package/dist/types/tests/utils.test.d.ts +1 -0
  69. package/package.json +6 -4
  70. package/dist/types/docs/badge-anchor.stories.d.ts +0 -29
  71. package/dist/types/docs/badge.stories.d.ts +0 -27
  72. package/dist/types/docs/button.stories.d.ts +0 -30
  73. package/dist/types/docs/card.stories.d.ts +0 -10
  74. package/dist/types/docs/hint.stories.d.ts +0 -27
  75. package/dist/types/docs/input-custom.stories.d.ts +0 -33
  76. package/dist/types/docs/input.stories.d.ts +0 -33
  77. package/dist/types/docs/modal.stories.d.ts +0 -10
  78. package/dist/types/docs/select-grouped.stories.d.ts +0 -32
  79. package/dist/types/docs/select.stories.d.ts +0 -32
  80. package/dist/types/docs/snackbar.stories.d.ts +0 -21
  81. package/dist/types/docs/table.stories.d.ts +0 -10
  82. package/dist/types/docs/tag.stories.d.ts +0 -21
  83. package/dist/types/docs/text-area.stories.d.ts +0 -39
  84. package/dist/types/docs/toggle.stories.d.ts +0 -10
  85. package/dist/types/docs/utils.d.ts +0 -1
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "1.2.0",
3
+ "version": "1.2.2-beta.0",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -13,10 +13,12 @@
13
13
  "dev": "rollup --config --watch",
14
14
  "dev:dts": "tsc --project tsconfig.build.json --watch",
15
15
  "build:es": "rollup --config",
16
- "build:dts": "tsc --project tsconfig.build.json"
16
+ "build:dts": "tsc --project tsconfig.build.json",
17
+ "test": "jest",
18
+ "test:watch": "jest --watch"
17
19
  },
18
20
  "dependencies": {
19
- "@tecsinapse/cortex-core": "0.2.0",
21
+ "@tecsinapse/cortex-core": "0.2.2-beta.0",
20
22
  "clsx": "*",
21
23
  "react-icons": "^5.2.1"
22
24
  },
@@ -34,5 +36,5 @@
34
36
  "react-dom": ">=18.0.0",
35
37
  "tailwind": ">=3.3.0"
36
38
  },
37
- "gitHead": "5fdf13313937b667682216c4f86b6b84fa4612a4"
39
+ "gitHead": "c0748464b3ede06c6c907f81970fcc9eacf43bc0"
38
40
  }
@@ -1,29 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- value: number;
7
- intent: string;
8
- };
9
- argTypes: {
10
- intent: {
11
- options: string[];
12
- control: {
13
- type: string;
14
- };
15
- };
16
- value: {
17
- control: {
18
- type: string;
19
- };
20
- min: number;
21
- max: number;
22
- };
23
- };
24
- };
25
- export default _default;
26
- export declare const Base: {
27
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
28
- args: {};
29
- };
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- value: string;
7
- intent: string;
8
- };
9
- argTypes: {
10
- intent: {
11
- options: string[];
12
- control: {
13
- type: string;
14
- };
15
- };
16
- value: {
17
- control: {
18
- type: string;
19
- };
20
- };
21
- };
22
- };
23
- export default _default;
24
- export declare const Base: {
25
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
26
- args: {};
27
- };
@@ -1,30 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- argTypes: {
6
- intent: {
7
- options: string[];
8
- control: {
9
- type: string;
10
- };
11
- };
12
- variant: {
13
- options: string[];
14
- control: {
15
- type: string;
16
- };
17
- };
18
- size: {
19
- options: string[];
20
- control: {
21
- type: string;
22
- };
23
- };
24
- };
25
- };
26
- export default _default;
27
- export declare const Base: {
28
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
29
- args: {};
30
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- };
6
- export default _default;
7
- export declare const Base: {
8
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
9
- args: {};
10
- };
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- intent: string;
7
- description: string;
8
- };
9
- argTypes: {
10
- intent: {
11
- options: string[];
12
- control: {
13
- type: string;
14
- };
15
- };
16
- description: {
17
- control: {
18
- type: string;
19
- };
20
- };
21
- };
22
- };
23
- export default _default;
24
- export declare const Base: {
25
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
26
- args: {};
27
- };
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- label: string;
7
- placeholder: string;
8
- intent: string;
9
- };
10
- argTypes: {
11
- intent: {
12
- options: string[];
13
- control: {
14
- type: string;
15
- };
16
- };
17
- label: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- placeholder: {
23
- control: {
24
- type: string;
25
- };
26
- };
27
- };
28
- };
29
- export default _default;
30
- export declare const Base: {
31
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
32
- args: {};
33
- };
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- label: string;
7
- placeholder: string;
8
- intent: string;
9
- };
10
- argTypes: {
11
- intent: {
12
- options: string[];
13
- control: {
14
- type: string;
15
- };
16
- };
17
- label: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- placeholder: {
23
- control: {
24
- type: string;
25
- };
26
- };
27
- };
28
- };
29
- export default _default;
30
- export declare const Base: {
31
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
32
- args: {};
33
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- };
6
- export default _default;
7
- export declare const Base: {
8
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
9
- args: {};
10
- };
@@ -1,32 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- argTypes: {
6
- variant: {
7
- options: string[];
8
- control: {
9
- type: string;
10
- };
11
- };
12
- label: {
13
- control: {
14
- type: string;
15
- };
16
- };
17
- placeholderSearchInput: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- };
23
- };
24
- export default _default;
25
- export declare const Base: {
26
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
27
- args: {
28
- variant: string;
29
- label: string;
30
- placeholderSearchInput: string;
31
- };
32
- };
@@ -1,32 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- argTypes: {
6
- variant: {
7
- options: string[];
8
- control: {
9
- type: string;
10
- };
11
- };
12
- label: {
13
- control: {
14
- type: string;
15
- };
16
- };
17
- placeholderSearchInput: {
18
- control: {
19
- type: string;
20
- };
21
- };
22
- };
23
- };
24
- export default _default;
25
- export declare const Base: {
26
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
27
- args: {
28
- variant: string;
29
- label: string;
30
- placeholderSearchInput: string;
31
- };
32
- };
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- intent: string;
7
- };
8
- argTypes: {
9
- intent: {
10
- options: string[];
11
- control: {
12
- type: string;
13
- };
14
- };
15
- };
16
- };
17
- export default _default;
18
- export declare const Base: {
19
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
20
- args: {};
21
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- };
6
- export default _default;
7
- export declare const Base: {
8
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
9
- args: {};
10
- };
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- intent: string;
7
- };
8
- argTypes: {
9
- intent: {
10
- options: string[];
11
- control: {
12
- type: string;
13
- };
14
- };
15
- };
16
- };
17
- export default _default;
18
- export declare const Base: {
19
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
20
- args: {};
21
- };
@@ -1,39 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- args: {
6
- rows: number;
7
- intent: string;
8
- label: string;
9
- placeholder: string;
10
- };
11
- argTypes: {
12
- intent: {
13
- options: string[];
14
- control: {
15
- type: string;
16
- };
17
- };
18
- rows: {
19
- control: {
20
- type: string;
21
- };
22
- };
23
- label: {
24
- control: {
25
- type: string;
26
- };
27
- };
28
- placeholder: {
29
- control: {
30
- type: string;
31
- };
32
- };
33
- };
34
- };
35
- export default _default;
36
- export declare const Base: {
37
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
38
- args: {};
39
- };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- title: string;
4
- component: JSX.Element;
5
- };
6
- export default _default;
7
- export declare const Base: {
8
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/types").Args>;
9
- args: {};
10
- };
@@ -1 +0,0 @@
1
- export declare const defaultIntents: string[];