@seeqdev/qomponents 0.0.157 → 0.0.159
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/dist/example/package.json +15 -13
- package/dist/example/src/Example.tsx +269 -39
- package/dist/example/src/index.css +1 -0
- package/dist/example/vite.config.ts +2 -1
- package/dist/index.esm.js +2731 -2712
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2731 -2712
- package/dist/index.js.map +1 -1
- package/dist/{Accordion → src/Accordion}/Accordion.d.ts +4 -4
- package/dist/src/Accordion/Accordion.stories.d.ts +5 -0
- package/dist/{Accordion → src/Accordion}/Accordion.test.d.ts +1 -1
- package/dist/src/Accordion/Accordion.types.d.ts +86 -0
- package/dist/{Accordion → src/Accordion}/index.d.ts +1 -1
- package/dist/{Alert → src/Alert}/Alert.d.ts +7 -7
- package/dist/src/Alert/Alert.stories.d.ts +5 -0
- package/dist/src/Alert/Alert.test.d.ts +1 -0
- package/dist/src/Alert/Alert.types.d.ts +63 -0
- package/dist/{Alert → src/Alert}/index.d.ts +1 -1
- package/dist/{Button → src/Button}/Button.d.ts +10 -10
- package/dist/src/Button/Button.stories.d.ts +8 -0
- package/dist/{Button → src/Button}/Button.test.d.ts +1 -1
- package/dist/src/Button/Button.types.d.ts +148 -0
- package/dist/{Button → src/Button}/index.d.ts +1 -1
- package/dist/{ButtonGroup → src/ButtonGroup}/ButtonGroup.d.ts +7 -7
- package/dist/src/ButtonGroup/ButtonGroup.stories.d.ts +5 -0
- package/dist/src/ButtonGroup/ButtonGroup.test.d.ts +1 -0
- package/dist/src/ButtonGroup/ButtonGroup.types.d.ts +81 -0
- package/dist/{ButtonGroup → src/ButtonGroup}/index.d.ts +1 -1
- package/dist/{ButtonWithDropdown → src/ButtonWithDropdown}/ButtonWithDropdown.d.ts +4 -4
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +5 -0
- package/dist/{ButtonWithDropdown → src/ButtonWithDropdown}/ButtonWithDropdown.test.d.ts +1 -1
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +233 -0
- package/dist/{ButtonWithDropdown → src/ButtonWithDropdown}/index.d.ts +1 -1
- package/dist/{ButtonWithPopover → src/ButtonWithPopover}/ButtonWithPopover.d.ts +4 -4
- package/dist/src/ButtonWithPopover/ButtonWithPopover.stories.d.ts +5 -0
- package/dist/{ButtonWithPopover → src/ButtonWithPopover}/ButtonWithPopover.test.d.ts +1 -1
- package/dist/src/ButtonWithPopover/ButtonWithPopover.types.d.ts +134 -0
- package/dist/{ButtonWithPopover → src/ButtonWithPopover}/index.d.ts +1 -1
- package/dist/{Carousel → src/Carousel}/Carousel.d.ts +9 -9
- package/dist/src/Carousel/Carousel.stories.d.ts +5 -0
- package/dist/{Carousel → src/Carousel}/Carousel.test.d.ts +1 -1
- package/dist/src/Carousel/Carousel.types.d.ts +86 -0
- package/dist/{Carousel → src/Carousel}/index.d.ts +1 -1
- package/dist/{Checkbox → src/Checkbox}/Checkbox.d.ts +7 -7
- package/dist/src/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/{Checkbox → src/Checkbox}/Checkbox.test.d.ts +1 -1
- package/dist/src/Checkbox/Checkbox.types.d.ts +92 -0
- package/dist/{Checkbox → src/Checkbox}/index.d.ts +1 -1
- package/dist/{Collapse → src/Collapse}/Collapse.d.ts +4 -4
- package/dist/src/Collapse/Collapse.stories.d.ts +5 -0
- package/dist/{Collapse → src/Collapse}/Collapse.test.d.ts +1 -1
- package/dist/src/Collapse/Collapse.types.d.ts +19 -0
- package/dist/{Collapse → src/Collapse}/index.d.ts +1 -1
- package/dist/{Icon → src/Icon}/Icon.d.ts +10 -10
- package/dist/src/Icon/Icon.stories.d.ts +5 -0
- package/dist/{Icon → src/Icon}/Icon.test.d.ts +1 -1
- package/dist/src/Icon/Icon.types.d.ts +87 -0
- package/dist/{Icon → src/Icon}/index.d.ts +1 -1
- package/dist/{InputGroup → src/InputGroup}/InputGroup.d.ts +7 -7
- package/dist/src/InputGroup/InputGroup.stories.d.ts +5 -0
- package/dist/src/InputGroup/InputGroup.test.d.ts +1 -0
- package/dist/src/InputGroup/InputGroup.types.d.ts +62 -0
- package/dist/{InputGroup → src/InputGroup}/index.d.ts +2 -2
- package/dist/{Modal → src/Modal}/Modal.d.ts +5 -5
- package/dist/{Modal → src/Modal}/Modal.stories.d.ts +10 -10
- package/dist/{Modal → src/Modal}/Modal.test.d.ts +1 -1
- package/dist/src/Modal/Modal.types.d.ts +244 -0
- package/dist/{Modal → src/Modal}/index.d.ts +1 -1
- package/dist/{ProgressBar → src/ProgressBar}/ProgressBar.d.ts +4 -4
- package/dist/src/ProgressBar/ProgressBar.stories.d.ts +5 -0
- package/dist/src/ProgressBar/ProgressBar.test.d.ts +1 -0
- package/dist/src/ProgressBar/ProgressBar.types.d.ts +77 -0
- package/dist/{ProgressBar → src/ProgressBar}/index.d.ts +1 -1
- package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/SeeqActionDropdown.d.ts +4 -4
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +5 -0
- package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/SeeqActionDropdown.test.d.ts +1 -1
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +160 -0
- package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/index.d.ts +1 -1
- package/dist/{SeeqActionDropdown → src/SeeqActionDropdown}/variants.d.ts +5 -5
- package/dist/{Select → src/Select}/Select.d.ts +15 -15
- package/dist/src/Select/Select.stories.d.ts +5 -0
- package/dist/{Select → src/Select}/Select.test.d.ts +1 -1
- package/dist/src/Select/Select.types.d.ts +220 -0
- package/dist/{Select → src/Select}/index.d.ts +2 -2
- package/dist/{Slider → src/Slider}/Slider.d.ts +6 -6
- package/dist/src/Slider/Slider.stories.d.ts +5 -0
- package/dist/src/Slider/Slider.test.d.ts +1 -0
- package/dist/src/Slider/Slider.types.d.ts +85 -0
- package/dist/{Slider → src/Slider}/index.d.ts +1 -1
- package/dist/{SvgIcon → src/SvgIcon}/SvgIcon.d.ts +20 -20
- package/dist/src/SvgIcon/SvgIcon.stories.d.ts +5 -0
- package/dist/{SvgIcon → src/SvgIcon}/SvgIcon.test.d.ts +1 -1
- package/dist/src/SvgIcon/SvgIcon.types.d.ts +76 -0
- package/dist/{SvgIcon → src/SvgIcon}/index.d.ts +1 -1
- package/dist/{Tabs → src/Tabs}/Tabs.d.ts +4 -4
- package/dist/src/Tabs/Tabs.stories.d.ts +5 -0
- package/dist/{Tabs → src/Tabs}/Tabs.test.d.ts +1 -1
- package/dist/src/Tabs/Tabs.types.d.ts +95 -0
- package/dist/{Tabs → src/Tabs}/index.d.ts +1 -1
- package/dist/{TextArea → src/TextArea}/TextArea.d.ts +7 -7
- package/dist/src/TextArea/TextArea.stories.d.ts +5 -0
- package/dist/{TextArea → src/TextArea}/TextArea.test.d.ts +1 -1
- package/dist/src/TextArea/TextArea.types.d.ts +105 -0
- package/dist/{TextArea → src/TextArea}/index.d.ts +1 -1
- package/dist/{TextField → src/TextField}/TextField.d.ts +7 -7
- package/dist/src/TextField/TextField.stories.d.ts +5 -0
- package/dist/{TextField → src/TextField}/TextField.test.d.ts +1 -1
- package/dist/src/TextField/TextField.types.d.ts +199 -0
- package/dist/{TextField → src/TextField}/index.d.ts +1 -1
- package/dist/{ToolbarButton → src/ToolbarButton}/ToolbarButton.d.ts +3 -3
- package/dist/src/ToolbarButton/ToolbarButton.stories.d.ts +5 -0
- package/dist/{ToolbarButton → src/ToolbarButton}/ToolbarButton.test.d.ts +1 -1
- package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +124 -0
- package/dist/{ToolbarButton → src/ToolbarButton}/index.d.ts +1 -1
- package/dist/src/Tooltip/QTip.stories.d.ts +5 -0
- package/dist/{Tooltip → src/Tooltip}/QTip.types.d.ts +13 -13
- package/dist/src/Tooltip/QTipPerformance.stories.d.ts +5 -0
- package/dist/{Tooltip → src/Tooltip}/Qtip.d.ts +26 -26
- package/dist/{Tooltip → src/Tooltip}/Tooltip.d.ts +13 -13
- package/dist/src/Tooltip/Tooltip.stories.d.ts +5 -0
- package/dist/{Tooltip → src/Tooltip}/Tooltip.types.d.ts +22 -22
- package/dist/src/Tooltip/TooltipPerformance.stories.d.ts +5 -0
- package/dist/{Tooltip → src/Tooltip}/index.d.ts +2 -2
- package/dist/{Tooltip → src/Tooltip}/qTip.utilities.d.ts +3 -3
- package/dist/{index.d.ts → src/index.d.ts} +45 -45
- package/dist/src/setupTests.d.ts +1 -0
- package/dist/{types.d.ts → src/types.d.ts} +2 -2
- package/dist/{utils → src/utils}/browserId.d.ts +9 -9
- package/dist/{utils → src/utils}/svg.d.ts +15 -15
- package/dist/{utils → src/utils}/validateStyleDimension.d.ts +2 -2
- package/dist/{utils → src/utils}/validateStyleDimension.test.d.ts +1 -1
- package/dist/styles.css +102 -67
- package/dist/types.d.ts.map +1 -0
- package/package.json +20 -22
- package/dist/Accordion/Accordion.stories.d.ts +0 -6
- package/dist/Accordion/Accordion.types.d.ts +0 -20
- package/dist/Alert/Alert.stories.d.ts +0 -6
- package/dist/Alert/Alert.test.d.ts +0 -1
- package/dist/Alert/Alert.types.d.ts +0 -14
- package/dist/Button/Button.stories.d.ts +0 -9
- package/dist/Button/Button.types.d.ts +0 -53
- package/dist/ButtonGroup/ButtonGroup.stories.d.ts +0 -6
- package/dist/ButtonGroup/ButtonGroup.test.d.ts +0 -1
- package/dist/ButtonGroup/ButtonGroup.types.d.ts +0 -40
- package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +0 -6
- package/dist/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -90
- package/dist/ButtonWithPopover/ButtonWithPopover.stories.d.ts +0 -6
- package/dist/ButtonWithPopover/ButtonWithPopover.types.d.ts +0 -48
- package/dist/Carousel/Carousel.stories.d.ts +0 -6
- package/dist/Carousel/Carousel.types.d.ts +0 -24
- package/dist/Checkbox/Checkbox.stories.d.ts +0 -6
- package/dist/Checkbox/Checkbox.types.d.ts +0 -20
- package/dist/Collapse/Collapse.stories.d.ts +0 -6
- package/dist/Collapse/Collapse.types.d.ts +0 -5
- package/dist/Icon/Icon.stories.d.ts +0 -6
- package/dist/Icon/Icon.types.d.ts +0 -31
- package/dist/InputGroup/InputGroup.stories.d.ts +0 -6
- package/dist/InputGroup/InputGroup.test.d.ts +0 -1
- package/dist/InputGroup/InputGroup.types.d.ts +0 -36
- package/dist/Modal/Modal.types.d.ts +0 -48
- package/dist/ProgressBar/ProgressBar.stories.d.ts +0 -6
- package/dist/ProgressBar/ProgressBar.test.d.ts +0 -1
- package/dist/ProgressBar/ProgressBar.types.d.ts +0 -30
- package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +0 -6
- package/dist/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -58
- package/dist/Select/Select.stories.d.ts +0 -6
- package/dist/Select/Select.types.d.ts +0 -89
- package/dist/Slider/Slider.stories.d.ts +0 -6
- package/dist/Slider/Slider.test.d.ts +0 -1
- package/dist/Slider/Slider.types.d.ts +0 -17
- package/dist/SvgIcon/SvgIcon.stories.d.ts +0 -6
- package/dist/SvgIcon/SvgIcon.types.d.ts +0 -25
- package/dist/Tabs/Tabs.stories.d.ts +0 -6
- package/dist/Tabs/Tabs.types.d.ts +0 -21
- package/dist/TextArea/TextArea.stories.d.ts +0 -6
- package/dist/TextArea/TextArea.types.d.ts +0 -35
- package/dist/TextField/TextField.stories.d.ts +0 -6
- package/dist/TextField/TextField.types.d.ts +0 -40
- package/dist/ToolbarButton/ToolbarButton.stories.d.ts +0 -6
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +0 -53
- package/dist/Tooltip/QTip.stories.d.ts +0 -6
- package/dist/Tooltip/QTipPerformance.stories.d.ts +0 -6
- package/dist/Tooltip/Tooltip.stories.d.ts +0 -6
- package/dist/Tooltip/TooltipPerformance.stories.d.ts +0 -6
package/dist/styles.css
CHANGED
|
@@ -1184,7 +1184,7 @@
|
|
|
1184
1184
|
content: "\f979" !important;
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
|
-
/* ! tailwindcss v3.
|
|
1187
|
+
/* ! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com */
|
|
1188
1188
|
|
|
1189
1189
|
/*
|
|
1190
1190
|
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
@@ -1211,16 +1211,21 @@
|
|
|
1211
1211
|
3. Use a more readable tab size.
|
|
1212
1212
|
4. Use the user's configured `sans` font-family by default.
|
|
1213
1213
|
5. Use the user's configured `sans` font-feature-settings by default.
|
|
1214
|
+
6. Use the user's configured `sans` font-variation-settings by default.
|
|
1215
|
+
7. Disable tap highlights on iOS
|
|
1214
1216
|
*/
|
|
1215
1217
|
|
|
1216
|
-
html
|
|
1218
|
+
html,
|
|
1219
|
+
:host {
|
|
1217
1220
|
line-height: 1.5; /* 1 */
|
|
1218
1221
|
-webkit-text-size-adjust: 100%; /* 2 */
|
|
1219
1222
|
-moz-tab-size: 4; /* 3 */
|
|
1220
1223
|
-o-tab-size: 4;
|
|
1221
1224
|
tab-size: 4; /* 3 */
|
|
1222
|
-
font-family: ui-sans-serif, system-ui,
|
|
1225
|
+
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
|
|
1223
1226
|
font-feature-settings: normal; /* 5 */
|
|
1227
|
+
font-variation-settings: normal; /* 6 */
|
|
1228
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
1224
1229
|
}
|
|
1225
1230
|
|
|
1226
1231
|
/*
|
|
@@ -1287,8 +1292,10 @@ strong {
|
|
|
1287
1292
|
}
|
|
1288
1293
|
|
|
1289
1294
|
/*
|
|
1290
|
-
1. Use the user's configured `mono` font
|
|
1291
|
-
2.
|
|
1295
|
+
1. Use the user's configured `mono` font-family by default.
|
|
1296
|
+
2. Use the user's configured `mono` font-feature-settings by default.
|
|
1297
|
+
3. Use the user's configured `mono` font-variation-settings by default.
|
|
1298
|
+
4. Correct the odd `em` font sizing in all browsers.
|
|
1292
1299
|
*/
|
|
1293
1300
|
|
|
1294
1301
|
code,
|
|
@@ -1296,7 +1303,9 @@ kbd,
|
|
|
1296
1303
|
samp,
|
|
1297
1304
|
pre {
|
|
1298
1305
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
|
|
1299
|
-
font-
|
|
1306
|
+
font-feature-settings: normal; /* 2 */
|
|
1307
|
+
font-variation-settings: normal; /* 3 */
|
|
1308
|
+
font-size: 1em; /* 4 */
|
|
1300
1309
|
}
|
|
1301
1310
|
|
|
1302
1311
|
/*
|
|
@@ -1351,6 +1360,8 @@ optgroup,
|
|
|
1351
1360
|
select,
|
|
1352
1361
|
textarea {
|
|
1353
1362
|
font-family: inherit; /* 1 */
|
|
1363
|
+
font-feature-settings: inherit; /* 1 */
|
|
1364
|
+
font-variation-settings: inherit; /* 1 */
|
|
1354
1365
|
font-size: 100%; /* 1 */
|
|
1355
1366
|
font-weight: inherit; /* 1 */
|
|
1356
1367
|
line-height: inherit; /* 1 */
|
|
@@ -1488,6 +1499,14 @@ menu {
|
|
|
1488
1499
|
padding: 0;
|
|
1489
1500
|
}
|
|
1490
1501
|
|
|
1502
|
+
/*
|
|
1503
|
+
Reset default styling for dialogs.
|
|
1504
|
+
*/
|
|
1505
|
+
|
|
1506
|
+
dialog {
|
|
1507
|
+
padding: 0;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1491
1510
|
/*
|
|
1492
1511
|
Prevent resizing textareas horizontally by default.
|
|
1493
1512
|
*/
|
|
@@ -1673,6 +1692,9 @@ ol,
|
|
|
1673
1692
|
--tw-pan-y: ;
|
|
1674
1693
|
--tw-pinch-zoom: ;
|
|
1675
1694
|
--tw-scroll-snap-strictness: proximity;
|
|
1695
|
+
--tw-gradient-from-position: ;
|
|
1696
|
+
--tw-gradient-via-position: ;
|
|
1697
|
+
--tw-gradient-to-position: ;
|
|
1676
1698
|
--tw-ordinal: ;
|
|
1677
1699
|
--tw-slashed-zero: ;
|
|
1678
1700
|
--tw-numeric-figure: ;
|
|
@@ -1720,6 +1742,9 @@ ol,
|
|
|
1720
1742
|
--tw-pan-y: ;
|
|
1721
1743
|
--tw-pinch-zoom: ;
|
|
1722
1744
|
--tw-scroll-snap-strictness: proximity;
|
|
1745
|
+
--tw-gradient-from-position: ;
|
|
1746
|
+
--tw-gradient-via-position: ;
|
|
1747
|
+
--tw-gradient-to-position: ;
|
|
1723
1748
|
--tw-ordinal: ;
|
|
1724
1749
|
--tw-slashed-zero: ;
|
|
1725
1750
|
--tw-numeric-figure: ;
|
|
@@ -1856,10 +1881,7 @@ ol,
|
|
|
1856
1881
|
}
|
|
1857
1882
|
|
|
1858
1883
|
.tw-inset-0 {
|
|
1859
|
-
|
|
1860
|
-
right: 0px;
|
|
1861
|
-
bottom: 0px;
|
|
1862
|
-
left: 0px;
|
|
1884
|
+
inset: 0px;
|
|
1863
1885
|
}
|
|
1864
1886
|
|
|
1865
1887
|
.-tw-bottom-2 {
|
|
@@ -2219,6 +2241,10 @@ ol,
|
|
|
2219
2241
|
width: 100%;
|
|
2220
2242
|
}
|
|
2221
2243
|
|
|
2244
|
+
.tw-min-w-6 {
|
|
2245
|
+
min-width: 1.5rem;
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2222
2248
|
.tw-min-w-\[100px\] {
|
|
2223
2249
|
min-width: 100px;
|
|
2224
2250
|
}
|
|
@@ -2252,6 +2278,10 @@ ol,
|
|
|
2252
2278
|
max-width: 72rem;
|
|
2253
2279
|
}
|
|
2254
2280
|
|
|
2281
|
+
.tw-max-w-96 {
|
|
2282
|
+
max-width: 24rem;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2255
2285
|
.tw-max-w-full {
|
|
2256
2286
|
max-width: 100%;
|
|
2257
2287
|
}
|
|
@@ -3773,286 +3803,291 @@ ol,
|
|
|
3773
3803
|
color: rgb(var(--sq-disabled-gray));
|
|
3774
3804
|
}
|
|
3775
3805
|
|
|
3776
|
-
.tw-dark .dark\:tw-border-gray-500 {
|
|
3806
|
+
:is(.tw-dark .dark\:tw-border-gray-500) {
|
|
3777
3807
|
--tw-border-opacity: 1;
|
|
3778
3808
|
border-color: rgb(107 114 128 / var(--tw-border-opacity));
|
|
3779
3809
|
}
|
|
3780
3810
|
|
|
3781
|
-
.tw-dark .dark\:tw-border-gray-700 {
|
|
3811
|
+
:is(.tw-dark .dark\:tw-border-gray-700) {
|
|
3782
3812
|
--tw-border-opacity: 1;
|
|
3783
3813
|
border-color: rgb(55 65 81 / var(--tw-border-opacity));
|
|
3784
3814
|
}
|
|
3785
3815
|
|
|
3786
|
-
.tw-dark .dark\:tw-border-sq-color-dark {
|
|
3816
|
+
:is(.tw-dark .dark\:tw-border-sq-color-dark) {
|
|
3787
3817
|
--tw-border-opacity: 1;
|
|
3788
3818
|
border-color: rgb(var(--sq-color-dark));
|
|
3789
3819
|
}
|
|
3790
3820
|
|
|
3791
|
-
.tw-dark .dark\:tw-border-sq-dark-background {
|
|
3821
|
+
:is(.tw-dark .dark\:tw-border-sq-dark-background) {
|
|
3792
3822
|
--tw-border-opacity: 1;
|
|
3793
3823
|
border-color: rgb(var(--sq-dark-background));
|
|
3794
3824
|
}
|
|
3795
3825
|
|
|
3796
|
-
.tw-dark .dark\:tw-border-sq-dark-disabled-gray {
|
|
3826
|
+
:is(.tw-dark .dark\:tw-border-sq-dark-disabled-gray) {
|
|
3797
3827
|
--tw-border-opacity: 1;
|
|
3798
3828
|
border-color: rgb(var(--sq-dark-disabled-gray));
|
|
3799
3829
|
}
|
|
3800
3830
|
|
|
3801
|
-
.tw-dark .dark\:tw-border-sq-dark-text {
|
|
3831
|
+
:is(.tw-dark .dark\:tw-border-sq-dark-text) {
|
|
3802
3832
|
--tw-border-opacity: 1;
|
|
3803
3833
|
border-color: rgb(var(--sq-dark-text));
|
|
3804
3834
|
}
|
|
3805
3835
|
|
|
3806
|
-
.tw-dark .dark\:tw-border-sq-icon-dark {
|
|
3836
|
+
:is(.tw-dark .dark\:tw-border-sq-icon-dark) {
|
|
3807
3837
|
--tw-border-opacity: 1;
|
|
3808
3838
|
border-color: rgb(var(--sq-icon-dark));
|
|
3809
3839
|
}
|
|
3810
3840
|
|
|
3811
|
-
.tw-dark .dark\:tw-border-b-sq-color-dark {
|
|
3841
|
+
:is(.tw-dark .dark\:tw-border-b-sq-color-dark) {
|
|
3812
3842
|
--tw-border-opacity: 1;
|
|
3813
3843
|
border-bottom-color: rgb(var(--sq-color-dark));
|
|
3814
3844
|
}
|
|
3815
3845
|
|
|
3816
|
-
.tw-dark .dark\:\!tw-bg-sq-multi-gray-dark {
|
|
3846
|
+
:is(.tw-dark .dark\:\!tw-bg-sq-multi-gray-dark) {
|
|
3817
3847
|
--tw-bg-opacity: 1 !important;
|
|
3818
3848
|
background-color: rgb(var(--sq-multi-gray-dark)) !important;
|
|
3819
3849
|
}
|
|
3820
3850
|
|
|
3821
|
-
.tw-dark .dark\:tw-bg-gray-500 {
|
|
3851
|
+
:is(.tw-dark .dark\:tw-bg-gray-500) {
|
|
3822
3852
|
--tw-bg-opacity: 1;
|
|
3823
3853
|
background-color: rgb(107 114 128 / var(--tw-bg-opacity));
|
|
3824
3854
|
}
|
|
3825
3855
|
|
|
3826
|
-
.tw-dark .dark\:tw-bg-gray-700 {
|
|
3856
|
+
:is(.tw-dark .dark\:tw-bg-gray-700) {
|
|
3827
3857
|
--tw-bg-opacity: 1;
|
|
3828
3858
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
|
3829
3859
|
}
|
|
3830
3860
|
|
|
3831
|
-
.tw-dark .dark\:tw-bg-sq-color-dark {
|
|
3861
|
+
:is(.tw-dark .dark\:tw-bg-sq-color-dark) {
|
|
3832
3862
|
--tw-bg-opacity: 1;
|
|
3833
3863
|
background-color: rgb(var(--sq-color-dark));
|
|
3834
3864
|
}
|
|
3835
3865
|
|
|
3836
|
-
.tw-dark .dark\:tw-bg-sq-color-highlight {
|
|
3866
|
+
:is(.tw-dark .dark\:tw-bg-sq-color-highlight) {
|
|
3837
3867
|
--tw-bg-opacity: 1;
|
|
3838
3868
|
background-color: rgb(var(--sq-color-highlight));
|
|
3839
3869
|
}
|
|
3840
3870
|
|
|
3841
|
-
.tw-dark .dark\:tw-bg-sq-colored-hover-dark {
|
|
3871
|
+
:is(.tw-dark .dark\:tw-bg-sq-colored-hover-dark) {
|
|
3842
3872
|
--tw-bg-opacity: 1;
|
|
3843
3873
|
background-color: rgb(var(--sq-colored-hover-dark));
|
|
3844
3874
|
}
|
|
3845
3875
|
|
|
3846
|
-
.tw-dark .dark\:tw-bg-sq-dark-background {
|
|
3876
|
+
:is(.tw-dark .dark\:tw-bg-sq-dark-background) {
|
|
3847
3877
|
--tw-bg-opacity: 1;
|
|
3848
3878
|
background-color: rgb(var(--sq-dark-background));
|
|
3849
3879
|
}
|
|
3850
3880
|
|
|
3851
|
-
.tw-dark .dark\:tw-bg-sq-dark-disabled-gray {
|
|
3881
|
+
:is(.tw-dark .dark\:tw-bg-sq-dark-disabled-gray) {
|
|
3852
3882
|
--tw-bg-opacity: 1;
|
|
3853
3883
|
background-color: rgb(var(--sq-dark-disabled-gray));
|
|
3854
3884
|
}
|
|
3855
3885
|
|
|
3856
|
-
.tw-dark .dark\:tw-bg-sq-icon-dark {
|
|
3886
|
+
:is(.tw-dark .dark\:tw-bg-sq-icon-dark) {
|
|
3857
3887
|
--tw-bg-opacity: 1;
|
|
3858
3888
|
background-color: rgb(var(--sq-icon-dark));
|
|
3859
3889
|
}
|
|
3860
3890
|
|
|
3861
|
-
.tw-dark .dark\:tw-bg-sq-multi-gray-dark {
|
|
3891
|
+
:is(.tw-dark .dark\:tw-bg-sq-multi-gray-dark) {
|
|
3862
3892
|
--tw-bg-opacity: 1;
|
|
3863
3893
|
background-color: rgb(var(--sq-multi-gray-dark));
|
|
3864
3894
|
}
|
|
3865
3895
|
|
|
3866
|
-
.tw-dark .dark\:tw-bg-
|
|
3896
|
+
:is(.tw-dark .dark\:tw-bg-sq-worksheetspanel-gray-dark) {
|
|
3897
|
+
--tw-bg-opacity: 1;
|
|
3898
|
+
background-color: rgb(var(--sq-worksheetspanel-gray-dark));
|
|
3899
|
+
}
|
|
3900
|
+
|
|
3901
|
+
:is(.tw-dark .dark\:tw-bg-transparent) {
|
|
3867
3902
|
background-color: transparent;
|
|
3868
3903
|
}
|
|
3869
3904
|
|
|
3870
|
-
.tw-dark .dark\:tw-text-sq-color-dark-dark {
|
|
3905
|
+
:is(.tw-dark .dark\:tw-text-sq-color-dark-dark) {
|
|
3871
3906
|
--tw-text-opacity: 1;
|
|
3872
3907
|
color: rgb(var(--sq-color-dark-dark));
|
|
3873
3908
|
}
|
|
3874
3909
|
|
|
3875
|
-
.tw-dark .dark\:tw-text-sq-dark-disabled-gray {
|
|
3910
|
+
:is(.tw-dark .dark\:tw-text-sq-dark-disabled-gray) {
|
|
3876
3911
|
--tw-text-opacity: 1;
|
|
3877
3912
|
color: rgb(var(--sq-dark-disabled-gray));
|
|
3878
3913
|
}
|
|
3879
3914
|
|
|
3880
|
-
.tw-dark .dark\:tw-text-sq-dark-text {
|
|
3915
|
+
:is(.tw-dark .dark\:tw-text-sq-dark-text) {
|
|
3881
3916
|
--tw-text-opacity: 1;
|
|
3882
3917
|
color: rgb(var(--sq-dark-text));
|
|
3883
3918
|
}
|
|
3884
3919
|
|
|
3885
|
-
.tw-dark .dark\:tw-text-sq-dark-text-lighter {
|
|
3920
|
+
:is(.tw-dark .dark\:tw-text-sq-dark-text-lighter) {
|
|
3886
3921
|
--tw-text-opacity: 1;
|
|
3887
3922
|
color: rgba(var(--sq-dark-text), 0.3);
|
|
3888
3923
|
}
|
|
3889
3924
|
|
|
3890
|
-
.tw-dark .dark\:tw-text-sq-fairly-dark-gray {
|
|
3925
|
+
:is(.tw-dark .dark\:tw-text-sq-fairly-dark-gray) {
|
|
3891
3926
|
--tw-text-opacity: 1;
|
|
3892
3927
|
color: rgb(var(--sq-fairly-dark-gray));
|
|
3893
3928
|
}
|
|
3894
3929
|
|
|
3895
|
-
.tw-dark .dark\:tw-text-sq-link-dark {
|
|
3930
|
+
:is(.tw-dark .dark\:tw-text-sq-link-dark) {
|
|
3896
3931
|
--tw-text-opacity: 1;
|
|
3897
3932
|
color: rgb(var(--sq-link-dark));
|
|
3898
3933
|
}
|
|
3899
3934
|
|
|
3900
|
-
.tw-dark .dark\:tw-text-sq-text-color {
|
|
3935
|
+
:is(.tw-dark .dark\:tw-text-sq-text-color) {
|
|
3901
3936
|
--tw-text-opacity: 1;
|
|
3902
3937
|
color: rgb(var(--sq-text-color));
|
|
3903
3938
|
}
|
|
3904
3939
|
|
|
3905
|
-
.tw-dark .dark\:tw-text-sq-white {
|
|
3940
|
+
:is(.tw-dark .dark\:tw-text-sq-white) {
|
|
3906
3941
|
--tw-text-opacity: 1;
|
|
3907
3942
|
color: rgb(var(--sq-white));
|
|
3908
3943
|
}
|
|
3909
3944
|
|
|
3910
|
-
.tw-dark .dark\:tw-text-white {
|
|
3945
|
+
:is(.tw-dark .dark\:tw-text-white) {
|
|
3911
3946
|
--tw-text-opacity: 1;
|
|
3912
3947
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
3913
3948
|
}
|
|
3914
3949
|
|
|
3915
|
-
.tw-dark .dark\:tw-placeholder-sq-dark-text-lighter::-moz-placeholder {
|
|
3950
|
+
:is(.tw-dark .dark\:tw-placeholder-sq-dark-text-lighter)::-moz-placeholder {
|
|
3916
3951
|
--tw-placeholder-opacity: 1;
|
|
3917
3952
|
color: rgba(var(--sq-dark-text), 0.3);
|
|
3918
3953
|
}
|
|
3919
3954
|
|
|
3920
|
-
.tw-dark .dark\:tw-placeholder-sq-dark-text-lighter::placeholder {
|
|
3955
|
+
:is(.tw-dark .dark\:tw-placeholder-sq-dark-text-lighter)::placeholder {
|
|
3921
3956
|
--tw-placeholder-opacity: 1;
|
|
3922
3957
|
color: rgba(var(--sq-dark-text), 0.3);
|
|
3923
3958
|
}
|
|
3924
3959
|
|
|
3925
|
-
.tw-dark .dark\:hover\:tw-border-sq-color-dark-dark:hover {
|
|
3960
|
+
:is(.tw-dark .dark\:hover\:tw-border-sq-color-dark-dark:hover) {
|
|
3926
3961
|
--tw-border-opacity: 1;
|
|
3927
3962
|
border-color: rgb(var(--sq-color-dark-dark));
|
|
3928
3963
|
}
|
|
3929
3964
|
|
|
3930
|
-
.tw-dark .dark\:hover\:tw-border-sq-color-highlight:hover {
|
|
3965
|
+
:is(.tw-dark .dark\:hover\:tw-border-sq-color-highlight:hover) {
|
|
3931
3966
|
--tw-border-opacity: 1;
|
|
3932
3967
|
border-color: rgb(var(--sq-color-highlight));
|
|
3933
3968
|
}
|
|
3934
3969
|
|
|
3935
|
-
.tw-dark .dark\:hover\:tw-border-sq-dark-disabled-gray:hover {
|
|
3970
|
+
:is(.tw-dark .dark\:hover\:tw-border-sq-dark-disabled-gray:hover) {
|
|
3936
3971
|
--tw-border-opacity: 1;
|
|
3937
3972
|
border-color: rgb(var(--sq-dark-disabled-gray));
|
|
3938
3973
|
}
|
|
3939
3974
|
|
|
3940
|
-
.tw-dark .dark\:hover\:tw-border-sq-link-dark:hover {
|
|
3975
|
+
:is(.tw-dark .dark\:hover\:tw-border-sq-link-dark:hover) {
|
|
3941
3976
|
--tw-border-opacity: 1;
|
|
3942
3977
|
border-color: rgb(var(--sq-link-dark));
|
|
3943
3978
|
}
|
|
3944
3979
|
|
|
3945
|
-
.tw-dark .dark\:hover\:tw-bg-sq-color-highlight:hover {
|
|
3980
|
+
:is(.tw-dark .dark\:hover\:tw-bg-sq-color-highlight:hover) {
|
|
3946
3981
|
--tw-bg-opacity: 1;
|
|
3947
3982
|
background-color: rgb(var(--sq-color-highlight));
|
|
3948
3983
|
}
|
|
3949
3984
|
|
|
3950
|
-
.tw-dark .dark\:hover\:tw-bg-sq-dark-background:hover {
|
|
3985
|
+
:is(.tw-dark .dark\:hover\:tw-bg-sq-dark-background:hover) {
|
|
3951
3986
|
--tw-bg-opacity: 1;
|
|
3952
3987
|
background-color: rgb(var(--sq-dark-background));
|
|
3953
3988
|
}
|
|
3954
3989
|
|
|
3955
|
-
.tw-dark .dark\:hover\:tw-bg-sq-field-disabled-gray:hover {
|
|
3990
|
+
:is(.tw-dark .dark\:hover\:tw-bg-sq-field-disabled-gray:hover) {
|
|
3956
3991
|
--tw-bg-opacity: 1;
|
|
3957
3992
|
background-color: rgba(var(--sq-field-disabled-gray), 0.3);
|
|
3958
3993
|
}
|
|
3959
3994
|
|
|
3960
|
-
.tw-dark .dark\:hover\:tw-bg-sq-gray-highlight-dark:hover {
|
|
3995
|
+
:is(.tw-dark .dark\:hover\:tw-bg-sq-gray-highlight-dark:hover) {
|
|
3961
3996
|
--tw-bg-opacity: 1;
|
|
3962
3997
|
background-color: rgb(var(--sq-gray-highlight-dark));
|
|
3963
3998
|
}
|
|
3964
3999
|
|
|
3965
|
-
.tw-dark .dark\:hover\:tw-bg-sq-highlight-color-dark:hover {
|
|
4000
|
+
:is(.tw-dark .dark\:hover\:tw-bg-sq-highlight-color-dark:hover) {
|
|
3966
4001
|
--tw-bg-opacity: 1;
|
|
3967
4002
|
background-color: rgb(var(--sq-highlight-color-dark));
|
|
3968
4003
|
}
|
|
3969
4004
|
|
|
3970
|
-
.tw-dark .dark\:hover\:tw-bg-sq-link-dark:hover {
|
|
4005
|
+
:is(.tw-dark .dark\:hover\:tw-bg-sq-link-dark:hover) {
|
|
3971
4006
|
--tw-bg-opacity: 1;
|
|
3972
4007
|
background-color: rgb(var(--sq-link-dark));
|
|
3973
4008
|
}
|
|
3974
4009
|
|
|
3975
|
-
.tw-dark .hover\:dark\:tw-bg-gray-700:hover {
|
|
4010
|
+
:is(.tw-dark .hover\:dark\:tw-bg-gray-700):hover {
|
|
3976
4011
|
--tw-bg-opacity: 1;
|
|
3977
4012
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
|
3978
4013
|
}
|
|
3979
4014
|
|
|
3980
|
-
.tw-dark .dark\:hover\:tw-text-sq-color-dark-dark:hover {
|
|
4015
|
+
:is(.tw-dark .dark\:hover\:tw-text-sq-color-dark-dark:hover) {
|
|
3981
4016
|
--tw-text-opacity: 1;
|
|
3982
4017
|
color: rgb(var(--sq-color-dark-dark));
|
|
3983
4018
|
}
|
|
3984
4019
|
|
|
3985
|
-
.tw-dark .dark\:focus\:tw-border-sq-color-dark:focus {
|
|
4020
|
+
:is(.tw-dark .dark\:focus\:tw-border-sq-color-dark:focus) {
|
|
3986
4021
|
--tw-border-opacity: 1;
|
|
3987
4022
|
border-color: rgb(var(--sq-color-dark));
|
|
3988
4023
|
}
|
|
3989
4024
|
|
|
3990
|
-
.tw-dark .dark\:focus\:tw-border-sq-color-dark-dark:focus {
|
|
4025
|
+
:is(.tw-dark .dark\:focus\:tw-border-sq-color-dark-dark:focus) {
|
|
3991
4026
|
--tw-border-opacity: 1;
|
|
3992
4027
|
border-color: rgb(var(--sq-color-dark-dark));
|
|
3993
4028
|
}
|
|
3994
4029
|
|
|
3995
|
-
.tw-dark .dark\:focus\:tw-bg-sq-multi-gray-dark:focus {
|
|
4030
|
+
:is(.tw-dark .dark\:focus\:tw-bg-sq-multi-gray-dark:focus) {
|
|
3996
4031
|
--tw-bg-opacity: 1;
|
|
3997
4032
|
background-color: rgb(var(--sq-multi-gray-dark));
|
|
3998
4033
|
}
|
|
3999
4034
|
|
|
4000
|
-
.tw-dark .dark\:focus\:tw-text-sq-color-dark-dark:focus {
|
|
4035
|
+
:is(.tw-dark .dark\:focus\:tw-text-sq-color-dark-dark:focus) {
|
|
4001
4036
|
--tw-text-opacity: 1;
|
|
4002
4037
|
color: rgb(var(--sq-color-dark-dark));
|
|
4003
4038
|
}
|
|
4004
4039
|
|
|
4005
|
-
.tw-dark .dark\:checked\:focus\:tw-bg-sq-dark-background:focus:checked {
|
|
4040
|
+
:is(.tw-dark .dark\:checked\:focus\:tw-bg-sq-dark-background:focus:checked) {
|
|
4006
4041
|
--tw-bg-opacity: 1;
|
|
4007
4042
|
background-color: rgb(var(--sq-dark-background));
|
|
4008
4043
|
}
|
|
4009
4044
|
|
|
4010
|
-
.tw-dark .dark\:active\:tw-border-sq-color-dark:active {
|
|
4045
|
+
:is(.tw-dark .dark\:active\:tw-border-sq-color-dark:active) {
|
|
4011
4046
|
--tw-border-opacity: 1;
|
|
4012
4047
|
border-color: rgb(var(--sq-color-dark));
|
|
4013
4048
|
}
|
|
4014
4049
|
|
|
4015
|
-
.tw-dark .dark\:active\:tw-border-sq-color-dark-dark:active {
|
|
4050
|
+
:is(.tw-dark .dark\:active\:tw-border-sq-color-dark-dark:active) {
|
|
4016
4051
|
--tw-border-opacity: 1;
|
|
4017
4052
|
border-color: rgb(var(--sq-color-dark-dark));
|
|
4018
4053
|
}
|
|
4019
4054
|
|
|
4020
|
-
.tw-dark .dark\:active\:tw-bg-sq-dark-disabled-gray:active {
|
|
4055
|
+
:is(.tw-dark .dark\:active\:tw-bg-sq-dark-disabled-gray:active) {
|
|
4021
4056
|
--tw-bg-opacity: 1;
|
|
4022
4057
|
background-color: rgb(var(--sq-dark-disabled-gray));
|
|
4023
4058
|
}
|
|
4024
4059
|
|
|
4025
|
-
.tw-dark .dark\:active\:tw-bg-sq-field-disabled-gray:active {
|
|
4060
|
+
:is(.tw-dark .dark\:active\:tw-bg-sq-field-disabled-gray:active) {
|
|
4026
4061
|
--tw-bg-opacity: 1;
|
|
4027
4062
|
background-color: rgba(var(--sq-field-disabled-gray), 0.3);
|
|
4028
4063
|
}
|
|
4029
4064
|
|
|
4030
|
-
.tw-dark .dark\:active\:tw-bg-sq-multi-gray-dark:active {
|
|
4065
|
+
:is(.tw-dark .dark\:active\:tw-bg-sq-multi-gray-dark:active) {
|
|
4031
4066
|
--tw-bg-opacity: 1;
|
|
4032
4067
|
background-color: rgb(var(--sq-multi-gray-dark));
|
|
4033
4068
|
}
|
|
4034
4069
|
|
|
4035
|
-
.tw-dark .dark\:active\:tw-text-sq-color-dark-dark:active {
|
|
4070
|
+
:is(.tw-dark .dark\:active\:tw-text-sq-color-dark-dark:active) {
|
|
4036
4071
|
--tw-text-opacity: 1;
|
|
4037
4072
|
color: rgb(var(--sq-color-dark-dark));
|
|
4038
4073
|
}
|
|
4039
4074
|
|
|
4040
|
-
.tw-dark .dark\:disabled\:tw-border-sq-fairly-dark-gray:disabled {
|
|
4075
|
+
:is(.tw-dark .dark\:disabled\:tw-border-sq-fairly-dark-gray:disabled) {
|
|
4041
4076
|
--tw-border-opacity: 1;
|
|
4042
4077
|
border-color: rgb(var(--sq-fairly-dark-gray));
|
|
4043
4078
|
}
|
|
4044
4079
|
|
|
4045
|
-
.tw-dark .disabled\:dark\:tw-bg-sq-dark-disabled-gray:disabled {
|
|
4080
|
+
:is(.tw-dark .disabled\:dark\:tw-bg-sq-dark-disabled-gray):disabled {
|
|
4046
4081
|
--tw-bg-opacity: 1;
|
|
4047
4082
|
background-color: rgb(var(--sq-dark-disabled-gray));
|
|
4048
4083
|
}
|
|
4049
4084
|
|
|
4050
|
-
.tw-dark .disabled\:dark\:tw-text-sq-dark-text-lighter:disabled {
|
|
4085
|
+
:is(.tw-dark .disabled\:dark\:tw-text-sq-dark-text-lighter):disabled {
|
|
4051
4086
|
--tw-text-opacity: 1;
|
|
4052
4087
|
color: rgba(var(--sq-dark-text), 0.3);
|
|
4053
4088
|
}
|
|
4054
4089
|
|
|
4055
|
-
.tw-dark .dark\:aria-disabled\:tw-bg-sq-dark-disabled-gray[aria-disabled="true"] {
|
|
4090
|
+
:is(.tw-dark .dark\:aria-disabled\:tw-bg-sq-dark-disabled-gray[aria-disabled="true"]) {
|
|
4056
4091
|
--tw-bg-opacity: 1;
|
|
4057
4092
|
background-color: rgb(var(--sq-dark-disabled-gray));
|
|
4058
4093
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sources":["../src/Button/Button.types.ts","../src/Icon/Icon.types.ts","../src/Tooltip/Tooltip.types.ts"],"sourcesContent":["import { TooltipProps } from '../Tooltip/Tooltip.types';\nimport { IconType } from '../Icon/Icon.types';\nimport React from 'react';\n\nexport const buttonTypes = ['button', 'reset', 'submit', 'link'] as const;\nexport const buttonSizes = ['sm', 'lg'] as const;\nexport const buttonVariants = ['outline', 'theme', 'theme-light', 'warning', 'danger', 'no-border'] as const;\nexport const iconPositions = ['left', 'right'];\n\nexport type ButtonType = (typeof buttonTypes)[number];\nexport type ButtonSize = (typeof buttonSizes)[number];\nexport type ButtonVariant = (typeof buttonVariants)[number];\nexport type IconPosition = (typeof iconPositions)[number];\n\nexport interface ButtonProps {\n /**\n * Callback function triggered when the button is clicked.\n * Receives the mouse event as a parameter for additional event handling.\n * Use this to define the primary action the button should perform.\n */\n onClick?: (e: React.MouseEvent) => void;\n\n /**\n * The text, element, or content to display inside the button.\n * Can be a string for simple text, a translation key, or any React element/node\n * for more complex content like formatted text or inline elements.\n */\n label?: string | React.JSX.Element | React.ReactNode;\n\n /**\n * Visual style variant that determines the button's appearance and color scheme:\n * - `outline`: White background with border, suitable for secondary actions\n * - `theme`: Primary theme colors, typically for main call-to-action buttons\n * - `theme-light`: Lighter version of theme colors for subtle primary actions\n * - `warning`: Yellow/orange styling for caution-related actions\n * - `danger`: Red styling for destructive or critical actions\n * - `no-border`: Borderless styling for minimal, text-like buttons\n * @default 'outline'\n */\n variant?: ButtonVariant;\n\n /**\n * HTML button type attribute that determines the button's behavior in forms:\n * - `button`: Standard button with no special form behavior (default)\n * - `submit`: Submits the parent form when clicked\n * - `reset`: Resets the parent form fields to their initial values\n * - `link`: Behaves like a button but renders as button type for Firefox compatibility\n * @default 'button'\n */\n type?: ButtonType;\n\n /**\n * Size variant that controls the button's dimensions and text size:\n * - `sm`: Small button with compact padding and smaller text (default)\n * - `lg`: Large button with generous padding and larger text\n * @default 'sm'\n */\n size?: ButtonSize;\n\n /**\n * When true, disables the button preventing user interaction.\n * Disabled buttons are visually dimmed and do not respond to clicks or focus.\n * The button will also have `pointer-events: none` applied via CSS.\n */\n disabled?: boolean;\n\n /**\n * Additional CSS classes to apply to the button element.\n * These classes are combined with the component's built-in styling classes.\n * Use this to customize appearance beyond the standard variants.\n */\n extraClassNames?: string;\n\n /**\n * Icon class name to display alongside the button text.\n * Typically uses FontAwesome classes (e.g., 'fc-zoom', 'fc-delete').\n * The icon is automatically styled to match the button's text color.\n */\n icon?: string;\n\n /**\n * Determines how the icon should be styled and colored:\n * - `text`: Uses the button's text color (default)\n * - `white`: Forces white color regardless of button variant\n * - `theme`: Uses theme-specific colors\n * - `color`: Uses a custom color specified in `iconColor`\n * @default 'text'\n */\n iconStyle?: IconType;\n\n /**\n * Custom color for the icon when `iconStyle` is set to 'color'.\n * Can be any valid CSS color value (hex, rgb, color name, etc.).\n * This property is required when iconStyle is 'color'.\n */\n iconColor?: string;\n\n /**\n * Position of the icon relative to the button text:\n * - `left`: Icon appears before the text with right margin\n * - `right`: Icon appears after the text with left margin\n * @default 'left'\n */\n iconPosition?: IconPosition;\n\n /**\n * Custom prefix for the icon class when not using standard FontAwesome icons.\n * By default, icons are prefixed with 'fa-sharp fa-regular', but some icons\n * require different prefixes. Use this to override the default behavior.\n */\n iconPrefix?: string;\n\n /**\n * HTML ID attribute for the button element.\n * Should be unique across the entire page for proper HTML semantics.\n * Also used as a prefix for the icon's test ID when an icon is present.\n */\n id?: string;\n\n /**\n * Test ID attribute for the button element used in automated testing.\n * Applied to the `data-testid` attribute for element selection in test suites.\n */\n testId?: string;\n\n /**\n * Controls whether the click event should stop propagation to parent elements.\n * When true (default), prevents the click from bubbling up the DOM tree.\n * Set to false if you need parent elements to also handle the click event.\n * @default true\n */\n stopPropagation?: boolean;\n\n /**\n * Tooltip text to display when hovering over the button.\n * When provided, the button will show a tooltip with this text on hover.\n * The tooltip appearance and behavior can be customized with `tooltipOptions`.\n */\n tooltip?: string;\n\n /**\n * When true, the tooltip text is rendered as HTML allowing for rich content.\n * When false (default), the tooltip text is treated as plain text for security.\n * Only set to true if you trust the tooltip content source.\n * @default false\n */\n isHtmlTooltip?: boolean;\n\n /**\n * Test ID attribute specifically for the tooltip element.\n * Used for automated testing to identify and interact with the tooltip.\n * Helpful when you need to test tooltip-specific behavior separately from the button.\n */\n tooltipTestId?: string;\n\n /**\n * Configuration options for customizing tooltip behavior and appearance.\n * Omits the 'text' property since that's handled by the `tooltip` prop.\n * Includes options like position, delay, and other tooltip-specific settings.\n */\n tooltipOptions?: Omit<TooltipProps, 'text'>;\n\n /**\n * When true, prevents the blur event from occurring on mouse down.\n * Useful when you want to keep focus on the current element after clicking the button.\n * Commonly used in scenarios where button clicks shouldn't interrupt form input focus.\n * @default false\n */\n preventBlur?: boolean;\n}\n","import { TooltipComponentProps } from '../Tooltip/Tooltip.types';\n\nexport const iconTypes = [\n 'theme',\n 'white',\n 'dark-gray',\n 'darkish-gray',\n 'gray',\n 'color',\n 'info',\n 'text',\n 'warning',\n 'inherit',\n 'danger',\n 'theme-light',\n 'success',\n] as const;\n\nexport type IconType = (typeof iconTypes)[number];\n\n/**\n * Props for the Icon component that renders customizable icons with various styling options.\n * Extends TooltipComponentProps to support tooltip functionality on the icon.\n */\nexport interface IconProps extends TooltipComponentProps {\n /**\n * Icon class name to display, typically from FontAwesome.\n * Examples: 'fc-zoom', 'fc-delete', 'fc-save'. This determines which icon is rendered.\n */\n icon: string;\n\n /**\n * Custom prefix for the icon class when not using standard FontAwesome icons.\n * By default, icons are prefixed with 'fa-sharp fa-regular', but some icons\n * from different icon sets require specific prefixes. Use this to override the default.\n */\n iconPrefix?: string;\n\n /**\n * Visual style type that determines the icon's color and appearance:\n * - `theme`: Uses primary theme colors (default)\n * - `white`: Pure white color\n * - `text`: Uses standard text color\n * - `dark-gray`: Dark gray color\n * - `darkish-gray`: Medium-dark gray color\n * - `gray`: Standard gray color\n * - `color`: Uses custom color specified in `color` prop\n * - `info`: Blue informational color\n * - `warning`: Yellow/orange warning color\n * - `danger`: Red error/danger color\n * - `success`: Green success color\n * - `theme-light`: Lighter version of theme color\n * - `inherit`: Inherits color from parent element\n * @default 'theme'\n */\n type?: IconType;\n\n /**\n * Custom color value for the icon when `type` is set to 'color'.\n * Can be any valid CSS color (hex, rgb, color names, etc.).\n * This property is required when type is 'color'.\n */\n color?: string;\n\n /**\n * Callback function triggered when the icon is clicked.\n * Receives the mouse event as a parameter. Use this to make icons interactive\n * for actions like opening menus, triggering functions, or navigation.\n */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => any;\n\n /**\n * Additional CSS classes to apply to the icon element.\n * Use this to customize the icon's appearance, spacing, or behavior beyond built-in options.\n */\n extraClassNames?: string;\n\n /**\n * HTML ID attribute for the icon element.\n * Should be unique across the page for proper HTML semantics and accessibility.\n */\n id?: string;\n\n /**\n * When true, applies the 'fa-lg' class to make the icon larger than normal size.\n * Cannot be used together with the `small` prop. Useful for emphasis or better visibility.\n */\n large?: boolean;\n\n /**\n * When true, applies the 'fa-sm' class to make the icon smaller than normal size.\n * Cannot be used together with the `large` prop. Useful for compact layouts or inline text.\n */\n small?: boolean;\n\n /**\n * Test ID attribute for the icon element used in automated testing.\n * Applied to the `data-testid` attribute for element selection in test suites.\n */\n testId?: string;\n\n /**\n * Custom identifier placed in the `data-customid` attribute on the icon element.\n * Useful for identifying the specific icon in event handlers when multiple icons\n * share the same click handler. Helps distinguish which icon was clicked.\n */\n customId?: string;\n\n /**\n * Numeric value associated with the icon, purpose depends on specific use case.\n * Can be used for ordering, counting, or any numeric data related to the icon.\n */\n number?: number;\n}\n","export const DEFAULT_TOOL_TIP_DELAY = 500;\nexport const tooltipPositions = ['top', 'left', 'right', 'bottom'] as const;\nimport React from 'react';\n\nexport type TooltipPosition = (typeof tooltipPositions)[number];\n\nexport interface TooltipProps {\n position?: TooltipPosition;\n children?: React.JSX.Element | string;\n text: React.JSX.Element | string;\n delay?: number;\n}\n\nexport interface TooltipComponentProps {\n /** text to display on tooltip */\n tooltip?: string;\n /** number of milliseconds to wait before showing a tooltip on-hover */\n tooltipDelay?: number;\n /** one of four possible tooltip positions */\n tooltipPlacement?: TooltipPosition;\n /** true if the provided tooltip text should be rendered as HTML */\n isHtmlTooltip?: boolean;\n /** optional testId applied to the tooltip - useful for testing */\n tooltipTestId?: string;\n}\n"],"names":[],"mappings":";;AAIO,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAW;MAC7D,WAAW,GAAG,CAAC,IAAI,EAAE,IAAI,EAAW;AACpC,MAAA,cAAc,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAW;MAChG,aAAa,GAAG,CAAC,MAAM,EAAE,OAAO;;ACLhC,MAAA,SAAS,GAAG;IACvB,OAAO;IACP,OAAO;IACP,WAAW;IACX,cAAc;IACd,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,SAAS;IACT,SAAS;IACT,QAAQ;IACR,aAAa;IACb,SAAS;;;ACfJ,MAAM,sBAAsB,GAAG,IAAI;AACnC,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seeqdev/qomponents",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.159",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.js",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"description": "A library that allows you to build native UIs ... TODO",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "rollup -c --bundleConfigAsCjs",
|
|
21
|
-
"postinstall": "node ./node_modules/patch-package/index.js --patch-dir=patches",
|
|
22
21
|
"watchRollup": "rollup -c --bundleConfigAsCjs --watch",
|
|
23
22
|
"test": "jest",
|
|
24
23
|
"test:watch": "jest --watch",
|
|
@@ -35,43 +34,43 @@
|
|
|
35
34
|
"react-dom": ">=19.0.0"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
|
-
"@ladle/react": "
|
|
37
|
+
"@ladle/react": "5.0.3",
|
|
39
38
|
"@react-types/shared": "3.30.0",
|
|
40
|
-
"@rollup/plugin-commonjs": "
|
|
41
|
-
"@rollup/plugin-node-resolve": "
|
|
39
|
+
"@rollup/plugin-commonjs": "26.0.0",
|
|
40
|
+
"@rollup/plugin-node-resolve": "16.0.0",
|
|
42
41
|
"@tailwindcss/forms": "0.5.3",
|
|
43
|
-
"@testing-library/jest-dom": "
|
|
42
|
+
"@testing-library/jest-dom": "6.4.2",
|
|
44
43
|
"@testing-library/react": "16.3.0",
|
|
45
|
-
"@testing-library/user-event": "14.
|
|
44
|
+
"@testing-library/user-event": "14.5.2",
|
|
46
45
|
"@types/dompurify": "^3.0.2",
|
|
47
|
-
"@types/jest": "29.
|
|
46
|
+
"@types/jest": "29.5.12",
|
|
48
47
|
"@types/react": "19.1.8",
|
|
49
48
|
"@types/react-dom": "19.1.6",
|
|
50
49
|
"@types/tinycolor2": "1.4.2",
|
|
51
|
-
"autoprefixer": "10.4.
|
|
50
|
+
"autoprefixer": "10.4.17",
|
|
52
51
|
"color": "4.2.3",
|
|
53
52
|
"identity-obj-proxy": "3.0.0",
|
|
54
|
-
"jest": "29.
|
|
55
|
-
"jest-cli": "29.
|
|
56
|
-
"jest-environment-jsdom": "29.
|
|
57
|
-
"jest-junit": "
|
|
53
|
+
"jest": "29.7.0",
|
|
54
|
+
"jest-cli": "29.7.0",
|
|
55
|
+
"jest-environment-jsdom": "29.7.0",
|
|
56
|
+
"jest-junit": "16.0.0",
|
|
58
57
|
"jest-silent-reporter": "0.5.0",
|
|
59
|
-
"postcss-import": "
|
|
58
|
+
"postcss-import": "16.0.0",
|
|
60
59
|
"react": "19.1.0",
|
|
61
60
|
"react-dom": "19.1.0",
|
|
62
|
-
"rollup": "
|
|
61
|
+
"rollup": "4.22.4",
|
|
63
62
|
"rollup-plugin-copy": "3.4.0",
|
|
64
63
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
65
64
|
"rollup-plugin-postcss": "4.0.2",
|
|
66
65
|
"rollup-plugin-typescript2": "0.34.1",
|
|
67
|
-
"tailwindcss": "3.
|
|
68
|
-
"ts-jest": "29.
|
|
69
|
-
"ts-node": "10.9.
|
|
70
|
-
"typescript": "
|
|
66
|
+
"tailwindcss": "3.4.1",
|
|
67
|
+
"ts-jest": "29.1.2",
|
|
68
|
+
"ts-node": "10.9.2",
|
|
69
|
+
"typescript": "5.3.3",
|
|
71
70
|
"typescript-strict-plugin": "2.1.0"
|
|
72
71
|
},
|
|
73
72
|
"dependencies": {
|
|
74
|
-
"@floating-ui/dom": "1.
|
|
73
|
+
"@floating-ui/dom": "1.6.3",
|
|
75
74
|
"@radix-ui/react-accordion": "1.2.3",
|
|
76
75
|
"@radix-ui/react-dialog": "1.1.6",
|
|
77
76
|
"@radix-ui/react-dropdown-menu": "2.1.6",
|
|
@@ -82,8 +81,7 @@
|
|
|
82
81
|
"dompurify": "3.2.3",
|
|
83
82
|
"framer-motion": "12.17.0",
|
|
84
83
|
"motion": "12.17.0",
|
|
85
|
-
"
|
|
86
|
-
"postcss": "8.4.21",
|
|
84
|
+
"postcss": "8.4.35",
|
|
87
85
|
"react-select": "5.10.1",
|
|
88
86
|
"rooks": "8.0.1",
|
|
89
87
|
"tinycolor2": "1.6.0"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface AccordionProps {
|
|
3
|
-
extraClassNames?: string;
|
|
4
|
-
defaultValue?: string;
|
|
5
|
-
value: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
accordionItems: AccordionItem[];
|
|
8
|
-
testId?: string;
|
|
9
|
-
onItemSelect: (key: string) => void;
|
|
10
|
-
}
|
|
11
|
-
interface AccordionItem {
|
|
12
|
-
value: string;
|
|
13
|
-
trigger: React.ReactNode;
|
|
14
|
-
content: React.ReactNode;
|
|
15
|
-
itemTestId?: string;
|
|
16
|
-
id?: string;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
contentClassNames?: string;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
|
|
3
|
-
interface Props {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
dismissible?: boolean;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
show?: boolean;
|
|
8
|
-
variant: 'danger' | 'theme' | 'warning' | 'gray';
|
|
9
|
-
testId?: string;
|
|
10
|
-
id?: string;
|
|
11
|
-
extraClassNames?: string;
|
|
12
|
-
}
|
|
13
|
-
export type AlertProps = Props & TooltipComponentProps;
|
|
14
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const AllButtonVariants: () => React.JSX.Element;
|
|
7
|
-
export declare const ButtonWithTooltip: () => React.JSX.Element;
|
|
8
|
-
export declare const ButtonWithIcon: () => React.JSX.Element;
|
|
9
|
-
export declare const DisabledButton: () => React.JSX.Element;
|