@seeqdev/qomponents 0.0.245-beta.74765a171d.20260902 → 0.0.245-beta.9ccd9e6eec.20260918
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 +19 -1
- package/dist/index.esm.js +1136 -52
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1158 -74
- package/dist/index.js.map +1 -1
- package/dist/src/Accordion/Accordion.d.ts +2 -2
- package/dist/src/Alert/Alert.d.ts +2 -2
- package/dist/src/Badge/Badge.d.ts +2 -2
- package/dist/src/Button/Button.d.ts +4 -3
- package/dist/src/Button/Button.types.d.ts +5 -4
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +3 -3
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +10 -7
- package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +2 -2
- package/dist/src/Carousel/Carousel.d.ts +2 -2
- package/dist/src/Carousel/Carousel.types.d.ts +9 -6
- package/dist/src/Checkbox/Checkbox.d.ts +2 -2
- package/dist/src/Collapse/Collapse.d.ts +2 -2
- package/dist/src/ColorPickerControl/ColorPickerControl.d.ts +2 -2
- package/dist/src/ColorSwatch/ColorSwatch.d.ts +2 -2
- package/dist/src/EditorPanel/EditorPanel.d.ts +2 -2
- package/dist/src/ExternalLink/ExternalLink.d.ts +2 -2
- package/dist/src/Icon/Icon.d.ts +5 -18
- package/dist/src/Icon/Icon.types.d.ts +60 -19
- package/dist/src/LoadingIndicator/LoadingIndicator.d.ts +2 -2
- package/dist/src/Modal/Modal.d.ts +2 -2
- package/dist/src/Modal/Modal.types.d.ts +3 -2
- package/dist/src/Paginator/Paginator.d.ts +2 -2
- package/dist/src/Pill/Pill.d.ts +2 -2
- package/dist/src/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +2 -2
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +4 -3
- package/dist/src/SeeqActionDropdown/variants.d.ts +4 -4
- package/dist/src/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/dist/src/Select/Select.d.ts +2 -2
- package/dist/src/Slider/Slider.d.ts +2 -2
- package/dist/src/SvgIcon/SvgIcon.d.ts +2 -2
- package/dist/src/Tabs/Tabs.types.d.ts +5 -3
- package/dist/src/TextField/TextField.d.ts +3 -3
- package/dist/src/ToolbarButton/ToolbarButton.d.ts +2 -2
- package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +8 -5
- package/dist/src/Tooltip/Qtip.d.ts +2 -2
- package/dist/src/Tooltip/Tooltip.d.ts +2 -2
- package/dist/src/TriggerWithDropdown/TriggerWithDropdown.d.ts +2 -2
- package/dist/src/index.build.d.ts +2 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/styles.css +99 -7
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ TextArea, as well as Select.
|
|
|
61
61
|
|
|
62
62
|
<h3>1) I use webpack and I get a strange error once I added qomponents to my package.json!</h3>
|
|
63
63
|
|
|
64
|
-
Webpack needs a little help :)
|
|
64
|
+
Webpack needs a little help :)
|
|
65
65
|
Add the following to the <code>rules</code> array in your <code>webpack.config</code>
|
|
66
66
|
|
|
67
67
|
```
|
|
@@ -126,6 +126,24 @@ For Example:
|
|
|
126
126
|
@import "@fortawesome/fontawesome-free/css/solid.css";
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
+
**Using icons with components:**
|
|
130
|
+
|
|
131
|
+
The `Icon` component and other icon-accepting props (like `<Button icon>`) accept either a string class name or an
|
|
132
|
+
`IconDefinition` object from Font Awesome:
|
|
133
|
+
|
|
134
|
+
```tsx
|
|
135
|
+
import { Icon, Button } from '@seeqdev/qomponents';
|
|
136
|
+
|
|
137
|
+
// String format (Font Awesome class names)
|
|
138
|
+
<Icon icon="fa-solid fa-check" />
|
|
139
|
+
<Button icon="fa-solid fa-plus" label="Add Item" />
|
|
140
|
+
|
|
141
|
+
// IconDefinition object format
|
|
142
|
+
import { faCheck } from '@fortawesome/free-solid-svg-icons';
|
|
143
|
+
<Icon icon={faCheck} />
|
|
144
|
+
<Button icon={faCheck} label="Add Item" />
|
|
145
|
+
```
|
|
146
|
+
|
|
129
147
|
<h3>4) How can I see all the props that are available?</h3>
|
|
130
148
|
Take a look at the <code>.types.d.ts</code> files that can be found in the <code>dist/{component name}/</code>
|
|
131
149
|
folder. This file contains all available properties including some descriptive text that tells you more about them.
|