@seeqdev/qomponents 0.0.183 → 0.0.184
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/README.md +5 -19
- package/dist/example/.eslintrc.cjs +2 -6
- package/dist/example/README.md +0 -3
- package/dist/example/src/Example.tsx +7 -7
- package/dist/example/tsconfig.json +2 -8
- package/dist/example/tsconfig.node.json +1 -3
- package/dist/example/vite.config.ts +1 -1
- package/dist/index.esm.js +784 -523
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +781 -520
- package/dist/index.js.map +1 -1
- package/dist/styles.css +3410 -2791
- package/package.json +12 -13
- package/dist/src/Accordion/Accordion.d.ts +0 -4
- package/dist/src/Accordion/Accordion.stories.d.ts +0 -5
- package/dist/src/Accordion/Accordion.test.d.ts +0 -1
- package/dist/src/Accordion/Accordion.types.d.ts +0 -86
- package/dist/src/Accordion/index.d.ts +0 -1
- package/dist/src/Alert/Alert.d.ts +0 -7
- package/dist/src/Alert/Alert.stories.d.ts +0 -6
- package/dist/src/Alert/Alert.test.d.ts +0 -1
- package/dist/src/Alert/Alert.types.d.ts +0 -62
- package/dist/src/Alert/index.d.ts +0 -1
- package/dist/src/Button/Button.d.ts +0 -10
- package/dist/src/Button/Button.stories.d.ts +0 -9
- package/dist/src/Button/Button.test.d.ts +0 -1
- package/dist/src/Button/Button.types.d.ts +0 -148
- package/dist/src/Button/index.d.ts +0 -1
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +0 -7
- package/dist/src/ButtonGroup/ButtonGroup.stories.d.ts +0 -5
- package/dist/src/ButtonGroup/ButtonGroup.test.d.ts +0 -1
- package/dist/src/ButtonGroup/ButtonGroup.types.d.ts +0 -80
- package/dist/src/ButtonGroup/index.d.ts +0 -1
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +0 -4
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +0 -5
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.test.d.ts +0 -1
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -232
- package/dist/src/ButtonWithDropdown/index.d.ts +0 -1
- package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +0 -4
- package/dist/src/ButtonWithPopover/ButtonWithPopover.stories.d.ts +0 -5
- package/dist/src/ButtonWithPopover/ButtonWithPopover.test.d.ts +0 -1
- package/dist/src/ButtonWithPopover/ButtonWithPopover.types.d.ts +0 -134
- package/dist/src/ButtonWithPopover/index.d.ts +0 -1
- package/dist/src/Carousel/Carousel.d.ts +0 -9
- package/dist/src/Carousel/Carousel.stories.d.ts +0 -5
- package/dist/src/Carousel/Carousel.test.d.ts +0 -1
- package/dist/src/Carousel/Carousel.types.d.ts +0 -85
- package/dist/src/Carousel/index.d.ts +0 -1
- package/dist/src/Checkbox/Checkbox.d.ts +0 -7
- package/dist/src/Checkbox/Checkbox.stories.d.ts +0 -5
- package/dist/src/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/src/Checkbox/Checkbox.types.d.ts +0 -91
- package/dist/src/Checkbox/index.d.ts +0 -1
- package/dist/src/Collapse/Collapse.d.ts +0 -4
- package/dist/src/Collapse/Collapse.stories.d.ts +0 -5
- package/dist/src/Collapse/Collapse.test.d.ts +0 -1
- package/dist/src/Collapse/Collapse.types.d.ts +0 -18
- package/dist/src/Collapse/index.d.ts +0 -1
- package/dist/src/Icon/Icon.d.ts +0 -10
- package/dist/src/Icon/Icon.stories.d.ts +0 -5
- package/dist/src/Icon/Icon.test.d.ts +0 -1
- package/dist/src/Icon/Icon.types.d.ts +0 -90
- package/dist/src/Icon/index.d.ts +0 -1
- package/dist/src/InputGroup/InputGroup.d.ts +0 -7
- package/dist/src/InputGroup/InputGroup.stories.d.ts +0 -5
- package/dist/src/InputGroup/InputGroup.test.d.ts +0 -1
- package/dist/src/InputGroup/InputGroup.types.d.ts +0 -61
- package/dist/src/InputGroup/index.d.ts +0 -2
- package/dist/src/Modal/Modal.d.ts +0 -5
- package/dist/src/Modal/Modal.stories.d.ts +0 -10
- package/dist/src/Modal/Modal.test.d.ts +0 -1
- package/dist/src/Modal/Modal.types.d.ts +0 -244
- package/dist/src/Modal/index.d.ts +0 -1
- package/dist/src/ProgressBar/ProgressBar.d.ts +0 -4
- package/dist/src/ProgressBar/ProgressBar.stories.d.ts +0 -5
- package/dist/src/ProgressBar/ProgressBar.test.d.ts +0 -1
- package/dist/src/ProgressBar/ProgressBar.types.d.ts +0 -77
- package/dist/src/ProgressBar/index.d.ts +0 -1
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +0 -4
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +0 -5
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.test.d.ts +0 -1
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -164
- package/dist/src/SeeqActionDropdown/index.d.ts +0 -1
- package/dist/src/SeeqActionDropdown/variants.d.ts +0 -5
- package/dist/src/Select/Select.d.ts +0 -15
- package/dist/src/Select/Select.stories.d.ts +0 -5
- package/dist/src/Select/Select.test.d.ts +0 -1
- package/dist/src/Select/Select.types.d.ts +0 -220
- package/dist/src/Select/index.d.ts +0 -2
- package/dist/src/Slider/Slider.d.ts +0 -6
- package/dist/src/Slider/Slider.stories.d.ts +0 -5
- package/dist/src/Slider/Slider.test.d.ts +0 -1
- package/dist/src/Slider/Slider.types.d.ts +0 -84
- package/dist/src/Slider/index.d.ts +0 -1
- package/dist/src/SvgIcon/SvgIcon.d.ts +0 -20
- package/dist/src/SvgIcon/SvgIcon.stories.d.ts +0 -5
- package/dist/src/SvgIcon/SvgIcon.test.d.ts +0 -1
- package/dist/src/SvgIcon/SvgIcon.types.d.ts +0 -75
- package/dist/src/SvgIcon/index.d.ts +0 -1
- package/dist/src/Tabs/Tabs.d.ts +0 -4
- package/dist/src/Tabs/Tabs.stories.d.ts +0 -5
- package/dist/src/Tabs/Tabs.test.d.ts +0 -1
- package/dist/src/Tabs/Tabs.types.d.ts +0 -100
- package/dist/src/Tabs/index.d.ts +0 -1
- package/dist/src/TextArea/TextArea.d.ts +0 -7
- package/dist/src/TextArea/TextArea.stories.d.ts +0 -5
- package/dist/src/TextArea/TextArea.test.d.ts +0 -1
- package/dist/src/TextArea/TextArea.types.d.ts +0 -115
- package/dist/src/TextArea/index.d.ts +0 -1
- package/dist/src/TextField/TextField.d.ts +0 -7
- package/dist/src/TextField/TextField.stories.d.ts +0 -5
- package/dist/src/TextField/TextField.test.d.ts +0 -1
- package/dist/src/TextField/TextField.types.d.ts +0 -198
- package/dist/src/TextField/index.d.ts +0 -1
- package/dist/src/ToolbarButton/ToolbarButton.d.ts +0 -3
- package/dist/src/ToolbarButton/ToolbarButton.stories.d.ts +0 -5
- package/dist/src/ToolbarButton/ToolbarButton.test.d.ts +0 -1
- package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +0 -122
- package/dist/src/ToolbarButton/index.d.ts +0 -1
- package/dist/src/Tooltip/QTip.stories.d.ts +0 -5
- package/dist/src/Tooltip/QTip.types.d.ts +0 -13
- package/dist/src/Tooltip/QTipPerformance.stories.d.ts +0 -5
- package/dist/src/Tooltip/Qtip.d.ts +0 -26
- package/dist/src/Tooltip/Tooltip.d.ts +0 -13
- package/dist/src/Tooltip/Tooltip.stories.d.ts +0 -5
- package/dist/src/Tooltip/Tooltip.types.d.ts +0 -22
- package/dist/src/Tooltip/TooltipPerformance.stories.d.ts +0 -5
- package/dist/src/Tooltip/index.d.ts +0 -2
- package/dist/src/Tooltip/qTip.utilities.d.ts +0 -3
- package/dist/src/index.d.ts +0 -46
- package/dist/src/setupTests.d.ts +0 -1
- package/dist/src/types.d.ts +0 -27
- package/dist/src/utils/browserId.d.ts +0 -9
- package/dist/src/utils/svg.d.ts +0 -15
- package/dist/src/utils/validateStyleDimension.d.ts +0 -2
- package/dist/src/utils/validateStyleDimension.test.d.ts +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
</p>
|
|
5
5
|
<h1 align="center">qomponents</h1>
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
Seeq qomponents are a collection of UI components, including a Button, a TextField, an Icon, as well as a Tooltip
|
|
9
8
|
React component (more coming soon!)
|
|
10
9
|
|
|
@@ -37,7 +36,7 @@ Here is an example of a basic app using the `Button` component:
|
|
|
37
36
|
|
|
38
37
|
```jsx
|
|
39
38
|
import * as React from 'react';
|
|
40
|
-
import {Button} from '@seeqdev/qomponents';
|
|
39
|
+
import { Button } from '@seeqdev/qomponents';
|
|
41
40
|
|
|
42
41
|
function App() {
|
|
43
42
|
return <Button variant="theme" label="Seeq Rocks" />;
|
|
@@ -48,15 +47,6 @@ To make sure all styles are properly applied be sure to include the qomponents c
|
|
|
48
47
|
|
|
49
48
|
```css
|
|
50
49
|
@import '@seeqdev/qomponents/dist/styles.css';
|
|
51
|
-
|
|
52
|
-
@font-face {
|
|
53
|
-
font-family: 'fontCustom';
|
|
54
|
-
src: url('@seeqdev/qomponents/dist/FontCustom.woff2') format('woff2'),
|
|
55
|
-
url('@seeqdev/qomponents/dist/FontCustom.woff') format('woff');
|
|
56
|
-
font-weight: normal;
|
|
57
|
-
font-style: normal;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
50
|
```
|
|
61
51
|
|
|
62
52
|
<b>A note on CSS:</b> Seeq's qomponents come fully styled and ready to use. While it is tempting to use the
|
|
@@ -76,7 +66,7 @@ Add the following to the <code>rules</code> array in your <code>webpack.config</
|
|
|
76
66
|
|
|
77
67
|
```
|
|
78
68
|
{
|
|
79
|
-
test: /@?(seeqdev).*\.(ts|js)x?$/,
|
|
69
|
+
test: /@?(seeqdev).*\.(ts|js)x?$/,
|
|
80
70
|
loader:'babel-loader'
|
|
81
71
|
},
|
|
82
72
|
{
|
|
@@ -100,17 +90,13 @@ Themes are applied by adding the class of the desired theme to a wrapper of your
|
|
|
100
90
|
also be applied to the body tag.
|
|
101
91
|
|
|
102
92
|
```html
|
|
103
|
-
|
|
104
|
-
<div class="color_analysis">
|
|
105
|
-
... your application here
|
|
106
|
-
</div>
|
|
107
|
-
|
|
93
|
+
<div class="color_analysis">... your application here</div>
|
|
108
94
|
```
|
|
109
95
|
|
|
110
96
|
There are 3 themes available:
|
|
111
97
|
|
|
112
98
|
| Theme | Color | Class | Example |
|
|
113
|
-
|
|
99
|
+
| :------- | :----- | :------------- | :--------------------- |
|
|
114
100
|
| Topic | blue | color_topic | class="color_topic" |
|
|
115
101
|
| Analysis | green | color_analysis | class="color_analysis" |
|
|
116
102
|
| DataLab | orange | color_datalab | class="color_datalab" |
|
|
@@ -142,4 +128,4 @@ For Example:
|
|
|
142
128
|
|
|
143
129
|
<h3>4) How can I see all the props that are available?</h3>
|
|
144
130
|
Take a look at the <code>.types.d.ts</code> files that can be found in the <code>dist/{component name}/</code>
|
|
145
|
-
folder. This file contains all available properties including some descriptive text that tells you more about them.
|
|
131
|
+
folder. This file contains all available properties including some descriptive text that tells you more about them.
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
env: { browser: true, es2020: true },
|
|
3
|
-
extends: [
|
|
4
|
-
'eslint:recommended',
|
|
5
|
-
'plugin:@typescript-eslint/recommended',
|
|
6
|
-
'plugin:react-hooks/recommended',
|
|
7
|
-
],
|
|
3
|
+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended'],
|
|
8
4
|
parser: '@typescript-eslint/parser',
|
|
9
5
|
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
|
10
6
|
plugins: ['react-refresh'],
|
|
11
7
|
rules: {
|
|
12
8
|
'react-refresh/only-export-components': 'warn',
|
|
13
9
|
},
|
|
14
|
-
}
|
|
10
|
+
};
|
package/dist/example/README.md
CHANGED
|
@@ -37,8 +37,8 @@ const options = [
|
|
|
37
37
|
];
|
|
38
38
|
|
|
39
39
|
const Trigger = ({ label }: { label: string }) => (
|
|
40
|
-
<div className="flex justify-start items-center border-b px-2 tw
|
|
41
|
-
<Icon icon="fc-arrow-dropdown" extraClassNames="tw
|
|
40
|
+
<div className="flex justify-start items-center border-b px-2 tw-text-sq-color-dark">
|
|
41
|
+
<Icon icon="fc-arrow-dropdown" extraClassNames="tw-text-sq-color-dark mr-[0.5rem] text-[0.75rem]" type="text" />
|
|
42
42
|
{label}
|
|
43
43
|
</div>
|
|
44
44
|
);
|
|
@@ -80,7 +80,7 @@ const accordionItems = [
|
|
|
80
80
|
];
|
|
81
81
|
|
|
82
82
|
const renderData = (text: string) => (
|
|
83
|
-
<div className="tw
|
|
83
|
+
<div className="tw-text-sq-color-gray dark:tw-text-sq-white p-6">
|
|
84
84
|
<p className="mb-5 text-[0.9375rem] leading-normal">{text}</p>
|
|
85
85
|
</div>
|
|
86
86
|
);
|
|
@@ -484,7 +484,7 @@ function Example() {
|
|
|
484
484
|
className="w-48 h-32 object-cover rounded-md mb-2"
|
|
485
485
|
/>
|
|
486
486
|
<div className="font-bold">Explore the Mountains</div>
|
|
487
|
-
<div className="text-xs tw
|
|
487
|
+
<div className="text-xs tw-text-sq-color-gray">Find peace in nature's beauty.</div>
|
|
488
488
|
</div>,
|
|
489
489
|
<div className="flex flex-col items-center justify-center p-4" key="slide2">
|
|
490
490
|
<img
|
|
@@ -493,7 +493,7 @@ function Example() {
|
|
|
493
493
|
className="w-48 h-32 object-cover rounded-md mb-2"
|
|
494
494
|
/>
|
|
495
495
|
<div className="font-bold">City Lights</div>
|
|
496
|
-
<div className="text-xs tw
|
|
496
|
+
<div className="text-xs tw-text-sq-color-gray">Experience the energy of the city.</div>
|
|
497
497
|
</div>,
|
|
498
498
|
<div className="flex flex-col items-center justify-center p-4" key="slide3">
|
|
499
499
|
<img
|
|
@@ -502,7 +502,7 @@ function Example() {
|
|
|
502
502
|
className="w-48 h-32 object-cover rounded-md mb-2"
|
|
503
503
|
/>
|
|
504
504
|
<div className="font-bold">Relax at the Beach</div>
|
|
505
|
-
<div className="text-xs tw
|
|
505
|
+
<div className="text-xs tw-text-sq-color-gray">Soak up the sun and surf.</div>
|
|
506
506
|
</div>,
|
|
507
507
|
]}
|
|
508
508
|
showArrows={false}
|
|
@@ -527,7 +527,7 @@ function Example() {
|
|
|
527
527
|
<Collapse isVisible={collapseVisible}>
|
|
528
528
|
<div className="p-4 mt-2 bg-transparent rounded-md">
|
|
529
529
|
<div className="font-bold">Advanced Settings</div>
|
|
530
|
-
<div className="text-xs tw
|
|
530
|
+
<div className="text-xs tw-text-sq-color-gray">Configure rarely used options here.</div>
|
|
531
531
|
<Checkbox label="Enable beta features" />
|
|
532
532
|
<Checkbox label="Show debug info" />
|
|
533
533
|
</div>
|
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "ES2020",
|
|
4
4
|
"useDefineForClassFields": true,
|
|
5
|
-
"lib": [
|
|
6
|
-
"ES2020",
|
|
7
|
-
"DOM",
|
|
8
|
-
"DOM.Iterable"
|
|
9
|
-
],
|
|
5
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
10
6
|
"module": "ESNext",
|
|
11
7
|
"skipLibCheck": true,
|
|
12
8
|
"moduleResolution": "node",
|
|
@@ -22,9 +18,7 @@
|
|
|
22
18
|
"noFallthroughCasesInSwitch": true,
|
|
23
19
|
"allowSyntheticDefaultImports": true
|
|
24
20
|
},
|
|
25
|
-
"include": [
|
|
26
|
-
"src"
|
|
27
|
-
],
|
|
21
|
+
"include": ["src"],
|
|
28
22
|
"references": [
|
|
29
23
|
{
|
|
30
24
|
"path": "./tsconfig.node.json"
|