@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.
Files changed (136) hide show
  1. package/README.md +5 -19
  2. package/dist/example/.eslintrc.cjs +2 -6
  3. package/dist/example/README.md +0 -3
  4. package/dist/example/src/Example.tsx +7 -7
  5. package/dist/example/tsconfig.json +2 -8
  6. package/dist/example/tsconfig.node.json +1 -3
  7. package/dist/example/vite.config.ts +1 -1
  8. package/dist/index.esm.js +784 -523
  9. package/dist/index.esm.js.map +1 -1
  10. package/dist/index.js +781 -520
  11. package/dist/index.js.map +1 -1
  12. package/dist/styles.css +3410 -2791
  13. package/package.json +12 -13
  14. package/dist/src/Accordion/Accordion.d.ts +0 -4
  15. package/dist/src/Accordion/Accordion.stories.d.ts +0 -5
  16. package/dist/src/Accordion/Accordion.test.d.ts +0 -1
  17. package/dist/src/Accordion/Accordion.types.d.ts +0 -86
  18. package/dist/src/Accordion/index.d.ts +0 -1
  19. package/dist/src/Alert/Alert.d.ts +0 -7
  20. package/dist/src/Alert/Alert.stories.d.ts +0 -6
  21. package/dist/src/Alert/Alert.test.d.ts +0 -1
  22. package/dist/src/Alert/Alert.types.d.ts +0 -62
  23. package/dist/src/Alert/index.d.ts +0 -1
  24. package/dist/src/Button/Button.d.ts +0 -10
  25. package/dist/src/Button/Button.stories.d.ts +0 -9
  26. package/dist/src/Button/Button.test.d.ts +0 -1
  27. package/dist/src/Button/Button.types.d.ts +0 -148
  28. package/dist/src/Button/index.d.ts +0 -1
  29. package/dist/src/ButtonGroup/ButtonGroup.d.ts +0 -7
  30. package/dist/src/ButtonGroup/ButtonGroup.stories.d.ts +0 -5
  31. package/dist/src/ButtonGroup/ButtonGroup.test.d.ts +0 -1
  32. package/dist/src/ButtonGroup/ButtonGroup.types.d.ts +0 -80
  33. package/dist/src/ButtonGroup/index.d.ts +0 -1
  34. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +0 -4
  35. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +0 -5
  36. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.test.d.ts +0 -1
  37. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -232
  38. package/dist/src/ButtonWithDropdown/index.d.ts +0 -1
  39. package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +0 -4
  40. package/dist/src/ButtonWithPopover/ButtonWithPopover.stories.d.ts +0 -5
  41. package/dist/src/ButtonWithPopover/ButtonWithPopover.test.d.ts +0 -1
  42. package/dist/src/ButtonWithPopover/ButtonWithPopover.types.d.ts +0 -134
  43. package/dist/src/ButtonWithPopover/index.d.ts +0 -1
  44. package/dist/src/Carousel/Carousel.d.ts +0 -9
  45. package/dist/src/Carousel/Carousel.stories.d.ts +0 -5
  46. package/dist/src/Carousel/Carousel.test.d.ts +0 -1
  47. package/dist/src/Carousel/Carousel.types.d.ts +0 -85
  48. package/dist/src/Carousel/index.d.ts +0 -1
  49. package/dist/src/Checkbox/Checkbox.d.ts +0 -7
  50. package/dist/src/Checkbox/Checkbox.stories.d.ts +0 -5
  51. package/dist/src/Checkbox/Checkbox.test.d.ts +0 -1
  52. package/dist/src/Checkbox/Checkbox.types.d.ts +0 -91
  53. package/dist/src/Checkbox/index.d.ts +0 -1
  54. package/dist/src/Collapse/Collapse.d.ts +0 -4
  55. package/dist/src/Collapse/Collapse.stories.d.ts +0 -5
  56. package/dist/src/Collapse/Collapse.test.d.ts +0 -1
  57. package/dist/src/Collapse/Collapse.types.d.ts +0 -18
  58. package/dist/src/Collapse/index.d.ts +0 -1
  59. package/dist/src/Icon/Icon.d.ts +0 -10
  60. package/dist/src/Icon/Icon.stories.d.ts +0 -5
  61. package/dist/src/Icon/Icon.test.d.ts +0 -1
  62. package/dist/src/Icon/Icon.types.d.ts +0 -90
  63. package/dist/src/Icon/index.d.ts +0 -1
  64. package/dist/src/InputGroup/InputGroup.d.ts +0 -7
  65. package/dist/src/InputGroup/InputGroup.stories.d.ts +0 -5
  66. package/dist/src/InputGroup/InputGroup.test.d.ts +0 -1
  67. package/dist/src/InputGroup/InputGroup.types.d.ts +0 -61
  68. package/dist/src/InputGroup/index.d.ts +0 -2
  69. package/dist/src/Modal/Modal.d.ts +0 -5
  70. package/dist/src/Modal/Modal.stories.d.ts +0 -10
  71. package/dist/src/Modal/Modal.test.d.ts +0 -1
  72. package/dist/src/Modal/Modal.types.d.ts +0 -244
  73. package/dist/src/Modal/index.d.ts +0 -1
  74. package/dist/src/ProgressBar/ProgressBar.d.ts +0 -4
  75. package/dist/src/ProgressBar/ProgressBar.stories.d.ts +0 -5
  76. package/dist/src/ProgressBar/ProgressBar.test.d.ts +0 -1
  77. package/dist/src/ProgressBar/ProgressBar.types.d.ts +0 -77
  78. package/dist/src/ProgressBar/index.d.ts +0 -1
  79. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +0 -4
  80. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +0 -5
  81. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.test.d.ts +0 -1
  82. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -164
  83. package/dist/src/SeeqActionDropdown/index.d.ts +0 -1
  84. package/dist/src/SeeqActionDropdown/variants.d.ts +0 -5
  85. package/dist/src/Select/Select.d.ts +0 -15
  86. package/dist/src/Select/Select.stories.d.ts +0 -5
  87. package/dist/src/Select/Select.test.d.ts +0 -1
  88. package/dist/src/Select/Select.types.d.ts +0 -220
  89. package/dist/src/Select/index.d.ts +0 -2
  90. package/dist/src/Slider/Slider.d.ts +0 -6
  91. package/dist/src/Slider/Slider.stories.d.ts +0 -5
  92. package/dist/src/Slider/Slider.test.d.ts +0 -1
  93. package/dist/src/Slider/Slider.types.d.ts +0 -84
  94. package/dist/src/Slider/index.d.ts +0 -1
  95. package/dist/src/SvgIcon/SvgIcon.d.ts +0 -20
  96. package/dist/src/SvgIcon/SvgIcon.stories.d.ts +0 -5
  97. package/dist/src/SvgIcon/SvgIcon.test.d.ts +0 -1
  98. package/dist/src/SvgIcon/SvgIcon.types.d.ts +0 -75
  99. package/dist/src/SvgIcon/index.d.ts +0 -1
  100. package/dist/src/Tabs/Tabs.d.ts +0 -4
  101. package/dist/src/Tabs/Tabs.stories.d.ts +0 -5
  102. package/dist/src/Tabs/Tabs.test.d.ts +0 -1
  103. package/dist/src/Tabs/Tabs.types.d.ts +0 -100
  104. package/dist/src/Tabs/index.d.ts +0 -1
  105. package/dist/src/TextArea/TextArea.d.ts +0 -7
  106. package/dist/src/TextArea/TextArea.stories.d.ts +0 -5
  107. package/dist/src/TextArea/TextArea.test.d.ts +0 -1
  108. package/dist/src/TextArea/TextArea.types.d.ts +0 -115
  109. package/dist/src/TextArea/index.d.ts +0 -1
  110. package/dist/src/TextField/TextField.d.ts +0 -7
  111. package/dist/src/TextField/TextField.stories.d.ts +0 -5
  112. package/dist/src/TextField/TextField.test.d.ts +0 -1
  113. package/dist/src/TextField/TextField.types.d.ts +0 -198
  114. package/dist/src/TextField/index.d.ts +0 -1
  115. package/dist/src/ToolbarButton/ToolbarButton.d.ts +0 -3
  116. package/dist/src/ToolbarButton/ToolbarButton.stories.d.ts +0 -5
  117. package/dist/src/ToolbarButton/ToolbarButton.test.d.ts +0 -1
  118. package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +0 -122
  119. package/dist/src/ToolbarButton/index.d.ts +0 -1
  120. package/dist/src/Tooltip/QTip.stories.d.ts +0 -5
  121. package/dist/src/Tooltip/QTip.types.d.ts +0 -13
  122. package/dist/src/Tooltip/QTipPerformance.stories.d.ts +0 -5
  123. package/dist/src/Tooltip/Qtip.d.ts +0 -26
  124. package/dist/src/Tooltip/Tooltip.d.ts +0 -13
  125. package/dist/src/Tooltip/Tooltip.stories.d.ts +0 -5
  126. package/dist/src/Tooltip/Tooltip.types.d.ts +0 -22
  127. package/dist/src/Tooltip/TooltipPerformance.stories.d.ts +0 -5
  128. package/dist/src/Tooltip/index.d.ts +0 -2
  129. package/dist/src/Tooltip/qTip.utilities.d.ts +0 -3
  130. package/dist/src/index.d.ts +0 -46
  131. package/dist/src/setupTests.d.ts +0 -1
  132. package/dist/src/types.d.ts +0 -27
  133. package/dist/src/utils/browserId.d.ts +0 -9
  134. package/dist/src/utils/svg.d.ts +0 -15
  135. package/dist/src/utils/validateStyleDimension.d.ts +0 -2
  136. 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
+ };
@@ -28,6 +28,3 @@ npm run dev
28
28
 
29
29
  All application code can be found in Example.tsx. Check out the source code to learn how to ensure your
30
30
  components display using the correct theme (green, blue, orange) as well as the correct mode (light or dark).
31
-
32
-
33
-
@@ -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:text-sq-theme-dark">
41
- <Icon icon="fc-arrow-dropdown" extraClassNames="tw:text-sq-theme-dark mr-[0.5rem] text-[0.75rem]" type="text" />
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:text-sq-gray dark:tw-text-sq-white p-6">
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:text-sq-dark-gray">Find peace in nature's beauty.</div>
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:text-sq-dark-gray">Experience the energy of the city.</div>
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:text-sq-dark-gray">Soak up the sun and surf.</div>
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:text-sq-dark-gray">Configure rarely used options here.</div>
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"
@@ -6,7 +6,5 @@
6
6
  "moduleResolution": "node",
7
7
  "allowSyntheticDefaultImports": true
8
8
  },
9
- "include": [
10
- "vite.config.ts"
11
- ]
9
+ "include": ["vite.config.ts"]
12
10
  }
@@ -1,6 +1,6 @@
1
1
  import { defineConfig } from 'vite';
2
2
  import react from '@vitejs/plugin-react';
3
- import tailwindcss from '@tailwindcss/vite'
3
+ import tailwindcss from '@tailwindcss/vite';
4
4
 
5
5
  // https://vitejs.dev/config/
6
6
  export default defineConfig({