@seeqdev/qomponents 0.0.114 → 0.0.115

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 (36) hide show
  1. package/README.md +135 -135
  2. package/dist/FontCustom.woff +0 -0
  3. package/dist/FontCustom.woff2 +0 -0
  4. package/dist/example/.eslintrc.cjs +14 -14
  5. package/dist/example/README.md +33 -33
  6. package/dist/example/index.html +13 -13
  7. package/dist/example/package.json +30 -30
  8. package/dist/example/src/ComplexSelectExample.tsx +81 -81
  9. package/dist/example/src/Example.tsx +408 -408
  10. package/dist/example/src/index.css +102 -102
  11. package/dist/example/src/main.tsx +10 -10
  12. package/dist/example/src/vite-env.d.ts +1 -1
  13. package/dist/example/tsconfig.json +33 -33
  14. package/dist/example/tsconfig.node.json +12 -12
  15. package/dist/example/vite.config.ts +12 -12
  16. package/dist/index.esm.js +12 -12
  17. package/dist/index.esm.js.map +1 -1
  18. package/dist/index.js +12 -12
  19. package/dist/index.js.map +1 -1
  20. package/dist/styles.css +3631 -3615
  21. package/package.json +85 -85
  22. package/dist/Collapse/Collapse.d.ts +0 -4
  23. package/dist/Collapse/Collapse.js +0 -20
  24. package/dist/Collapse/Collapse.js.map +0 -1
  25. package/dist/Collapse/Collapse.stories.d.ts +0 -5
  26. package/dist/Collapse/Collapse.stories.js +0 -37
  27. package/dist/Collapse/Collapse.stories.js.map +0 -1
  28. package/dist/Collapse/Collapse.test.d.ts +0 -1
  29. package/dist/Collapse/Collapse.test.js +0 -24
  30. package/dist/Collapse/Collapse.test.js.map +0 -1
  31. package/dist/Collapse/Collapse.types.d.ts +0 -4
  32. package/dist/Collapse/Collapse.types.js +0 -2
  33. package/dist/Collapse/Collapse.types.js.map +0 -1
  34. package/dist/Collapse/index.d.ts +0 -1
  35. package/dist/Collapse/index.js +0 -2
  36. package/dist/Collapse/index.js.map +0 -1
package/package.json CHANGED
@@ -1,85 +1,85 @@
1
- {
2
- "name": "@seeqdev/qomponents",
3
- "version": "0.0.114",
4
- "main": "dist/index.js",
5
- "module": "dist/index.esm.js",
6
- "types": "dist/index.js",
7
- "skip-lib-check": true,
8
- "files": [
9
- "dist"
10
- ],
11
- "repository": {
12
- "type": "git",
13
- "url": "TOOD"
14
- },
15
- "publishConfig": {
16
- "access": "public"
17
- },
18
- "description": "A library that allows you to build native UIs ... TODO",
19
- "scripts": {
20
- "build": "rollup -c --bundleConfigAsCjs",
21
- "watchRollup": "rollup -c --bundleConfigAsCjs --watch",
22
- "test": "jest",
23
- "test:watch": "jest --watch",
24
- "dev": "ladle serve"
25
- },
26
- "author": "Seeq",
27
- "license": "MIT",
28
- "bugs": {
29
- "url": "TODO"
30
- },
31
- "homepage": "https://seeq12.github.io/qomponents-documentation/",
32
- "peerDependencies": {
33
- "react": ">=17.0.0",
34
- "react-dom": ">=17.0.0"
35
- },
36
- "devDependencies": {
37
- "@ladle/react": "2.9.0",
38
- "@react-types/shared": "3.19.0",
39
- "@rollup/plugin-commonjs": "24.0.1",
40
- "@rollup/plugin-node-resolve": "15.0.1",
41
- "@tailwindcss/forms": "0.5.3",
42
- "@testing-library/jest-dom": "5.16.5",
43
- "@testing-library/react": "14.0.0",
44
- "@testing-library/user-event": "14.4.3",
45
- "@types/dompurify": "^3.0.2",
46
- "@types/jest": "29.4.0",
47
- "@types/react": "18.0.27",
48
- "@types/react-dom": "18.0.11",
49
- "autoprefixer": "10.4.13",
50
- "color": "4.2.3",
51
- "identity-obj-proxy": "3.0.0",
52
- "jest": "29.4.3",
53
- "jest-cli": "29.1.1",
54
- "jest-environment-jsdom": "29.4.3",
55
- "jest-junit": "15.0.0",
56
- "jest-silent-reporter": "0.5.0",
57
- "postcss-import": "15.1.0",
58
- "react": "18.2.0",
59
- "react-dom": "18.2.0",
60
- "rollup": "3.17.2",
61
- "rollup-plugin-copy": "3.4.0",
62
- "rollup-plugin-peer-deps-external": "2.2.4",
63
- "rollup-plugin-postcss": "4.0.2",
64
- "rollup-plugin-typescript2": "0.34.1",
65
- "tailwindcss": "3.2.7",
66
- "ts-jest": "29.0.5",
67
- "ts-node": "10.9.1",
68
- "typescript": "4.9.5",
69
- "typescript-strict-plugin": "2.1.0"
70
- },
71
- "dependencies": {
72
- "@floating-ui/dom": "1.5.1",
73
- "@radix-ui/react-accordion": "1.1.2",
74
- "@radix-ui/react-dialog": "1.0.5",
75
- "@radix-ui/react-dropdown-menu": "2.0.6",
76
- "@radix-ui/react-popover": "1.0.7",
77
- "@radix-ui/react-slider": "1.2.2",
78
- "@radix-ui/react-progress": "1.1.1",
79
- "@radix-ui/react-tabs": "1.0.4",
80
- "dompurify": "3.2.3",
81
- "postcss": "8.4.21",
82
- "react-select": "5.7.3",
83
- "rooks": "7.14.1"
84
- }
85
- }
1
+ {
2
+ "name": "@seeqdev/qomponents",
3
+ "version": "0.0.115",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.esm.js",
6
+ "types": "dist/index.js",
7
+ "skip-lib-check": true,
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "TOOD"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "description": "A library that allows you to build native UIs ... TODO",
19
+ "scripts": {
20
+ "build": "rollup -c --bundleConfigAsCjs",
21
+ "watchRollup": "rollup -c --bundleConfigAsCjs --watch",
22
+ "test": "jest",
23
+ "test:watch": "jest --watch",
24
+ "dev": "ladle serve"
25
+ },
26
+ "author": "Seeq",
27
+ "license": "MIT",
28
+ "bugs": {
29
+ "url": "TODO"
30
+ },
31
+ "homepage": "https://seeq12.github.io/qomponents-documentation/",
32
+ "peerDependencies": {
33
+ "react": ">=17.0.0",
34
+ "react-dom": ">=17.0.0"
35
+ },
36
+ "devDependencies": {
37
+ "@ladle/react": "2.9.0",
38
+ "@react-types/shared": "3.19.0",
39
+ "@rollup/plugin-commonjs": "24.0.1",
40
+ "@rollup/plugin-node-resolve": "15.0.1",
41
+ "@tailwindcss/forms": "0.5.3",
42
+ "@testing-library/jest-dom": "5.16.5",
43
+ "@testing-library/react": "14.0.0",
44
+ "@testing-library/user-event": "14.4.3",
45
+ "@types/dompurify": "^3.0.2",
46
+ "@types/jest": "29.4.0",
47
+ "@types/react": "18.0.27",
48
+ "@types/react-dom": "18.0.11",
49
+ "autoprefixer": "10.4.13",
50
+ "color": "4.2.3",
51
+ "identity-obj-proxy": "3.0.0",
52
+ "jest": "29.4.3",
53
+ "jest-cli": "29.1.1",
54
+ "jest-environment-jsdom": "29.4.3",
55
+ "jest-junit": "15.0.0",
56
+ "jest-silent-reporter": "0.5.0",
57
+ "postcss-import": "15.1.0",
58
+ "react": "18.2.0",
59
+ "react-dom": "18.2.0",
60
+ "rollup": "3.17.2",
61
+ "rollup-plugin-copy": "3.4.0",
62
+ "rollup-plugin-peer-deps-external": "2.2.4",
63
+ "rollup-plugin-postcss": "4.0.2",
64
+ "rollup-plugin-typescript2": "0.34.1",
65
+ "tailwindcss": "3.2.7",
66
+ "ts-jest": "29.0.5",
67
+ "ts-node": "10.9.1",
68
+ "typescript": "4.9.5",
69
+ "typescript-strict-plugin": "2.1.0"
70
+ },
71
+ "dependencies": {
72
+ "@floating-ui/dom": "1.5.1",
73
+ "@radix-ui/react-accordion": "1.1.2",
74
+ "@radix-ui/react-dialog": "1.0.5",
75
+ "@radix-ui/react-dropdown-menu": "2.0.6",
76
+ "@radix-ui/react-popover": "1.0.7",
77
+ "@radix-ui/react-slider": "1.2.2",
78
+ "@radix-ui/react-progress": "1.1.1",
79
+ "@radix-ui/react-tabs": "1.0.4",
80
+ "dompurify": "3.2.3",
81
+ "postcss": "8.4.21",
82
+ "react-select": "5.7.3",
83
+ "rooks": "7.14.1"
84
+ }
85
+ }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { CollapseProps } from './Collapse.types';
3
- declare const Collapse: React.FunctionComponent<CollapseProps>;
4
- export default Collapse;
@@ -1,20 +0,0 @@
1
- import React, { useRef, useEffect, useState } from 'react';
2
- import { animated, useSpring } from '@react-spring/web';
3
- const Collapse = ({ isVisible, children }) => {
4
- const contentRef = useRef(null);
5
- const [contentHeight, setContentHeight] = useState(0);
6
- useEffect(() => {
7
- if (contentRef.current) {
8
- setContentHeight(contentRef.current?.scrollHeight);
9
- }
10
- }, [children]);
11
- const styles = useSpring({
12
- opacity: isVisible ? 1 : 0,
13
- height: isVisible ? contentHeight : 0,
14
- y: isVisible ? 0 : 24,
15
- });
16
- return (React.createElement(animated.div, { style: styles },
17
- React.createElement("div", { ref: contentRef }, children)));
18
- };
19
- export default Collapse;
20
- //# sourceMappingURL=Collapse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Collapse.js","sourceRoot":"","sources":["../../src/Collapse/Collapse.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGxD,MAAM,QAAQ,GAA2C,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IACnF,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAChD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,UAAU,CAAC,OAAO,EAAE;YACtB,gBAAgB,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;SACpD;IACH,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,MAAM,MAAM,GAAG,SAAS,CAAC;QACvB,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACrC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;KACtB,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,QAAQ,CAAC,GAAG,IAAC,KAAK,EAAE,MAAM;QACzB,6BAAK,GAAG,EAAE,UAAU,IAAG,QAAQ,CAAO,CACzB,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- };
4
- export default _default;
5
- export declare const AllCollapses: () => JSX.Element;
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import Collapse from './Collapse';
3
- import { QTip } from '../Tooltip';
4
- import Button from '../Button';
5
- export default {
6
- title: 'Collapse',
7
- };
8
- export const AllCollapses = () => {
9
- const [isVisible, setIsVisible] = React.useState(true);
10
- const renderChild = () => (React.createElement("div", { className: "tw-text-sq-color-gray dark:tw-text-sq-white" },
11
- React.createElement("p", { className: "tw-mb-5 tw-text-[15px] tw-leading-normal" }, "This is a content to be shown when the collapse is visible. Clice the button above to toggle it"),
12
- React.createElement(Button, { variant: "outline", label: "Save data" })));
13
- const renderAllVariations = () => (React.createElement(React.Fragment, null,
14
- React.createElement("div", { className: "tw-p-4 light" },
15
- React.createElement("div", { className: "tw-p-4" },
16
- React.createElement(Button, { variant: "theme", label: "Toggle Collapse", onClick: () => setIsVisible(!isVisible) }),
17
- React.createElement(Collapse, { isVisible: isVisible }, renderChild()))),
18
- React.createElement("div", { className: "tw-p-4 tw-dark tw-bg-sq-dark-background" },
19
- React.createElement("div", { className: "tw-p-4" },
20
- React.createElement(Button, { variant: "theme", label: "Toggle Collapse", onClick: () => setIsVisible(!isVisible) }),
21
- React.createElement(Collapse, { isVisible: isVisible }, renderChild())))));
22
- return (React.createElement("div", { className: "tw-grid tw-grid-cols-4 tw-gap-4" },
23
- React.createElement(QTip, null),
24
- React.createElement("div", { className: "color_topic" },
25
- React.createElement("b", null, "Topic Colors"),
26
- renderAllVariations()),
27
- React.createElement("div", { className: "color_analysis" },
28
- React.createElement("b", null, "Analysis Colors"),
29
- renderAllVariations()),
30
- React.createElement("div", { className: "color_datalab" },
31
- React.createElement("b", null, "Datalab Colors"),
32
- renderAllVariations()),
33
- React.createElement("div", { className: "color_vantage" },
34
- React.createElement("b", null, "Vantage Colors"),
35
- renderAllVariations())));
36
- };
37
- //# sourceMappingURL=Collapse.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Collapse.stories.js","sourceRoot":"","sources":["../../src/Collapse/Collapse.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,eAAe;IACb,KAAK,EAAE,UAAU;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEvD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,CACxB,6BAAK,SAAS,EAAC,6CAA6C;QAC1D,2BAAG,SAAS,EAAC,0CAA0C,sGAEnD;QACJ,oBAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,WAAW,GAAG,CAC1C,CACP,CAAC;IACF,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,CAChC;QACE,6BAAK,SAAS,EAAC,cAAc;YAC3B,6BAAK,SAAS,EAAC,QAAQ;gBACrB,oBAAC,MAAM,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,iBAAiB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,GAAI;gBAC3F,oBAAC,QAAQ,IAAC,SAAS,EAAE,SAAS,IAAG,WAAW,EAAE,CAAY,CACtD,CACF;QAEN,6BAAK,SAAS,EAAC,yCAAyC;YACtD,6BAAK,SAAS,EAAC,QAAQ;gBACrB,oBAAC,MAAM,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,iBAAiB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,GAAI;gBAC3F,oBAAC,QAAQ,IAAC,SAAS,EAAE,SAAS,IAAG,WAAW,EAAE,CAAY,CACtD,CACF,CACL,CACJ,CAAC;IACF,OAAO,CACL,6BAAK,SAAS,EAAC,iCAAiC;QAC9C,oBAAC,IAAI,OAAG;QACR,6BAAK,SAAS,EAAC,aAAa;YAC1B,8CAAmB;YAClB,mBAAmB,EAAE,CAClB;QAEN,6BAAK,SAAS,EAAC,gBAAgB;YAC7B,iDAAsB;YACrB,mBAAmB,EAAE,CAClB;QAEN,6BAAK,SAAS,EAAC,eAAe;YAC5B,gDAAqB;YACpB,mBAAmB,EAAE,CAClB;QAEN,6BAAK,SAAS,EAAC,eAAe;YAC5B,gDAAqB;YACpB,mBAAmB,EAAE,CAClB,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { render, screen } from '@testing-library/react';
3
- import '@testing-library/jest-dom';
4
- import Collapse from './Collapse';
5
- describe('Collapse component', () => {
6
- test('renders children when visible', () => {
7
- render(React.createElement(Collapse, { isVisible: true },
8
- React.createElement("div", { "data-testid": "content" }, "Content")));
9
- expect(screen.getByTestId('content')).toBeVisible();
10
- });
11
- test('does not render children when not visible', () => {
12
- render(React.createElement(Collapse, { isVisible: false },
13
- React.createElement("div", { "data-testid": "content" }, "Content")));
14
- expect(screen.queryByTestId('content')).not.toBeVisible();
15
- });
16
- test('applies correct styles when not visible', () => {
17
- render(React.createElement(Collapse, { isVisible: false },
18
- React.createElement("div", { "data-testid": "content" }, "Content")));
19
- const animatedDiv = screen.getByTestId('content').parentElement?.parentElement;
20
- expect(animatedDiv).toHaveStyle('opacity: 0');
21
- expect(animatedDiv).toHaveStyle('height: 0');
22
- });
23
- });
24
- //# sourceMappingURL=Collapse.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Collapse.test.js","sourceRoot":"","sources":["../../src/Collapse/Collapse.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,2BAA2B,CAAC;AACnC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,IAAI,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACzC,MAAM,CACJ,oBAAC,QAAQ,IAAC,SAAS,EAAE,IAAI;YACvB,4CAAiB,SAAS,cAAc,CAC/B,CACZ,CAAC;QAEF,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACrD,MAAM,CACJ,oBAAC,QAAQ,IAAC,SAAS,EAAE,KAAK;YACxB,4CAAiB,SAAS,cAAc,CAC/B,CACZ,CAAC;QAEF,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;IAC5D,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACnD,MAAM,CACJ,oBAAC,QAAQ,IAAC,SAAS,EAAE,KAAK;YACxB,4CAAiB,SAAS,cAAc,CAC/B,CACZ,CAAC;QAEF,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,aAAa,EAAE,aAAa,CAAC;QAC/E,MAAM,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC9C,MAAM,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export interface CollapseProps {
2
- isVisible: boolean;
3
- children: React.ReactNode;
4
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Collapse.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Collapse.types.js","sourceRoot":"","sources":["../../src/Collapse/Collapse.types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export { default } from './Collapse';
@@ -1,2 +0,0 @@
1
- export { default } from './Collapse';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Collapse/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}