@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.
Files changed (49) hide show
  1. package/README.md +19 -1
  2. package/dist/index.esm.js +1136 -52
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +1158 -74
  5. package/dist/index.js.map +1 -1
  6. package/dist/src/Accordion/Accordion.d.ts +2 -2
  7. package/dist/src/Alert/Alert.d.ts +2 -2
  8. package/dist/src/Badge/Badge.d.ts +2 -2
  9. package/dist/src/Button/Button.d.ts +4 -3
  10. package/dist/src/Button/Button.types.d.ts +5 -4
  11. package/dist/src/ButtonGroup/ButtonGroup.d.ts +2 -2
  12. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +3 -3
  13. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +10 -7
  14. package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +2 -2
  15. package/dist/src/Carousel/Carousel.d.ts +2 -2
  16. package/dist/src/Carousel/Carousel.types.d.ts +9 -6
  17. package/dist/src/Checkbox/Checkbox.d.ts +2 -2
  18. package/dist/src/Collapse/Collapse.d.ts +2 -2
  19. package/dist/src/ColorPickerControl/ColorPickerControl.d.ts +2 -2
  20. package/dist/src/ColorSwatch/ColorSwatch.d.ts +2 -2
  21. package/dist/src/EditorPanel/EditorPanel.d.ts +2 -2
  22. package/dist/src/ExternalLink/ExternalLink.d.ts +2 -2
  23. package/dist/src/Icon/Icon.d.ts +5 -18
  24. package/dist/src/Icon/Icon.types.d.ts +60 -19
  25. package/dist/src/LoadingIndicator/LoadingIndicator.d.ts +2 -2
  26. package/dist/src/Modal/Modal.d.ts +2 -2
  27. package/dist/src/Modal/Modal.types.d.ts +3 -2
  28. package/dist/src/Paginator/Paginator.d.ts +2 -2
  29. package/dist/src/Pill/Pill.d.ts +2 -2
  30. package/dist/src/ProgressBar/ProgressBar.d.ts +2 -2
  31. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +2 -2
  32. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +4 -3
  33. package/dist/src/SeeqActionDropdown/variants.d.ts +4 -4
  34. package/dist/src/SegmentedControl/SegmentedControl.d.ts +2 -2
  35. package/dist/src/Select/Select.d.ts +2 -2
  36. package/dist/src/Slider/Slider.d.ts +2 -2
  37. package/dist/src/SvgIcon/SvgIcon.d.ts +2 -2
  38. package/dist/src/Tabs/Tabs.types.d.ts +5 -3
  39. package/dist/src/TextField/TextField.d.ts +3 -3
  40. package/dist/src/ToolbarButton/ToolbarButton.d.ts +2 -2
  41. package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +8 -5
  42. package/dist/src/Tooltip/Qtip.d.ts +2 -2
  43. package/dist/src/Tooltip/Tooltip.d.ts +2 -2
  44. package/dist/src/TriggerWithDropdown/TriggerWithDropdown.d.ts +2 -2
  45. package/dist/src/index.build.d.ts +2 -2
  46. package/dist/src/index.d.ts +2 -2
  47. package/dist/src/types.d.ts +2 -2
  48. package/dist/styles.css +99 -7
  49. 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.