@seeqdev/qomponents 0.0.177 → 0.0.178
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 +0 -9
- package/dist/index.esm.js +348 -344
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +348 -344
- package/dist/index.js.map +1 -1
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -5
- package/dist/styles.css +3543 -2815
- package/package.json +4 -5
- package/dist/Accordion/Accordion.d.ts +0 -4
- package/dist/Accordion/Accordion.js +0 -7
- package/dist/Accordion/Accordion.js.map +0 -1
- package/dist/Accordion/Accordion.stories.d.ts +0 -5
- package/dist/Accordion/Accordion.stories.js +0 -75
- package/dist/Accordion/Accordion.stories.js.map +0 -1
- package/dist/Accordion/Accordion.test.d.ts +0 -1
- package/dist/Accordion/Accordion.test.js +0 -55
- package/dist/Accordion/Accordion.test.js.map +0 -1
- package/dist/Accordion/Accordion.types.d.ts +0 -86
- package/dist/Accordion/Accordion.types.js +0 -2
- package/dist/Accordion/Accordion.types.js.map +0 -1
- package/dist/Accordion/index.d.ts +0 -1
- package/dist/Accordion/index.js +0 -2
- package/dist/Accordion/index.js.map +0 -1
- package/dist/Alert/Alert.d.ts +0 -7
- package/dist/Alert/Alert.js +0 -34
- package/dist/Alert/Alert.js.map +0 -1
- package/dist/Alert/Alert.stories.d.ts +0 -6
- package/dist/Alert/Alert.stories.js +0 -65
- package/dist/Alert/Alert.stories.js.map +0 -1
- package/dist/Alert/Alert.test.d.ts +0 -1
- package/dist/Alert/Alert.test.js +0 -50
- package/dist/Alert/Alert.test.js.map +0 -1
- package/dist/Alert/Alert.types.d.ts +0 -62
- package/dist/Alert/Alert.types.js +0 -2
- package/dist/Alert/Alert.types.js.map +0 -1
- package/dist/Alert/index.d.ts +0 -1
- package/dist/Alert/index.js +0 -2
- package/dist/Alert/index.js.map +0 -1
- package/dist/Button/Button.d.ts +0 -10
- package/dist/Button/Button.js +0 -90
- package/dist/Button/Button.js.map +0 -1
- package/dist/Button/Button.stories.d.ts +0 -9
- package/dist/Button/Button.stories.js +0 -29
- package/dist/Button/Button.stories.js.map +0 -1
- package/dist/Button/Button.test.d.ts +0 -1
- package/dist/Button/Button.test.js +0 -47
- package/dist/Button/Button.test.js.map +0 -1
- package/dist/Button/Button.types.d.ts +0 -148
- package/dist/Button/Button.types.js +0 -5
- package/dist/Button/Button.types.js.map +0 -1
- package/dist/Button/index.d.ts +0 -1
- package/dist/Button/index.js +0 -2
- package/dist/Button/index.js.map +0 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +0 -7
- package/dist/ButtonGroup/ButtonGroup.js +0 -35
- package/dist/ButtonGroup/ButtonGroup.js.map +0 -1
- package/dist/ButtonGroup/ButtonGroup.stories.d.ts +0 -5
- package/dist/ButtonGroup/ButtonGroup.stories.js +0 -317
- package/dist/ButtonGroup/ButtonGroup.stories.js.map +0 -1
- package/dist/ButtonGroup/ButtonGroup.test.d.ts +0 -1
- package/dist/ButtonGroup/ButtonGroup.test.js +0 -66
- package/dist/ButtonGroup/ButtonGroup.test.js.map +0 -1
- package/dist/ButtonGroup/ButtonGroup.types.d.ts +0 -80
- package/dist/ButtonGroup/ButtonGroup.types.js +0 -2
- package/dist/ButtonGroup/ButtonGroup.types.js.map +0 -1
- package/dist/ButtonGroup/index.d.ts +0 -1
- package/dist/ButtonGroup/index.js +0 -2
- package/dist/ButtonGroup/index.js.map +0 -1
- package/dist/ButtonWithDropdown/ButtonWithDropdown.d.ts +0 -4
- package/dist/ButtonWithDropdown/ButtonWithDropdown.js +0 -36
- package/dist/ButtonWithDropdown/ButtonWithDropdown.js.map +0 -1
- package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.d.ts +0 -5
- package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.js +0 -104
- package/dist/ButtonWithDropdown/ButtonWithDropdown.stories.js.map +0 -1
- package/dist/ButtonWithDropdown/ButtonWithDropdown.test.d.ts +0 -1
- package/dist/ButtonWithDropdown/ButtonWithDropdown.test.js +0 -93
- package/dist/ButtonWithDropdown/ButtonWithDropdown.test.js.map +0 -1
- package/dist/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -232
- package/dist/ButtonWithDropdown/ButtonWithDropdown.types.js +0 -2
- package/dist/ButtonWithDropdown/ButtonWithDropdown.types.js.map +0 -1
- package/dist/ButtonWithDropdown/index.d.ts +0 -1
- package/dist/ButtonWithDropdown/index.js +0 -2
- package/dist/ButtonWithDropdown/index.js.map +0 -1
- package/dist/ButtonWithPopover/ButtonWithPopover.d.ts +0 -4
- package/dist/ButtonWithPopover/ButtonWithPopover.js +0 -55
- package/dist/ButtonWithPopover/ButtonWithPopover.js.map +0 -1
- package/dist/ButtonWithPopover/ButtonWithPopover.stories.d.ts +0 -5
- package/dist/ButtonWithPopover/ButtonWithPopover.stories.js +0 -25
- package/dist/ButtonWithPopover/ButtonWithPopover.stories.js.map +0 -1
- package/dist/ButtonWithPopover/ButtonWithPopover.test.d.ts +0 -1
- package/dist/ButtonWithPopover/ButtonWithPopover.test.js +0 -81
- package/dist/ButtonWithPopover/ButtonWithPopover.test.js.map +0 -1
- package/dist/ButtonWithPopover/ButtonWithPopover.types.d.ts +0 -134
- package/dist/ButtonWithPopover/ButtonWithPopover.types.js +0 -2
- package/dist/ButtonWithPopover/ButtonWithPopover.types.js.map +0 -1
- package/dist/ButtonWithPopover/index.d.ts +0 -1
- package/dist/ButtonWithPopover/index.js +0 -2
- package/dist/ButtonWithPopover/index.js.map +0 -1
- package/dist/Carousel/Carousel.d.ts +0 -9
- package/dist/Carousel/Carousel.js +0 -76
- package/dist/Carousel/Carousel.js.map +0 -1
- package/dist/Carousel/Carousel.stories.d.ts +0 -5
- package/dist/Carousel/Carousel.stories.js +0 -63
- package/dist/Carousel/Carousel.stories.js.map +0 -1
- package/dist/Carousel/Carousel.test.d.ts +0 -1
- package/dist/Carousel/Carousel.test.js +0 -48
- package/dist/Carousel/Carousel.test.js.map +0 -1
- package/dist/Carousel/Carousel.types.d.ts +0 -85
- package/dist/Carousel/Carousel.types.js +0 -2
- package/dist/Carousel/Carousel.types.js.map +0 -1
- package/dist/Carousel/index.d.ts +0 -1
- package/dist/Carousel/index.js +0 -2
- package/dist/Carousel/index.js.map +0 -1
- package/dist/Checkbox/Checkbox.d.ts +0 -7
- package/dist/Checkbox/Checkbox.js +0 -24
- package/dist/Checkbox/Checkbox.js.map +0 -1
- package/dist/Checkbox/Checkbox.stories.d.ts +0 -5
- package/dist/Checkbox/Checkbox.stories.js +0 -12
- package/dist/Checkbox/Checkbox.stories.js.map +0 -1
- package/dist/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/Checkbox/Checkbox.test.js +0 -94
- package/dist/Checkbox/Checkbox.test.js.map +0 -1
- package/dist/Checkbox/Checkbox.types.d.ts +0 -91
- package/dist/Checkbox/Checkbox.types.js +0 -2
- package/dist/Checkbox/Checkbox.types.js.map +0 -1
- package/dist/Checkbox/index.d.ts +0 -1
- package/dist/Checkbox/index.js +0 -2
- package/dist/Checkbox/index.js.map +0 -1
- package/dist/Collapse/Collapse.d.ts +0 -4
- package/dist/Collapse/Collapse.js +0 -17
- package/dist/Collapse/Collapse.js.map +0 -1
- package/dist/Collapse/Collapse.stories.d.ts +0 -5
- package/dist/Collapse/Collapse.stories.js +0 -15
- package/dist/Collapse/Collapse.stories.js.map +0 -1
- package/dist/Collapse/Collapse.test.d.ts +0 -1
- package/dist/Collapse/Collapse.test.js +0 -17
- package/dist/Collapse/Collapse.test.js.map +0 -1
- package/dist/Collapse/Collapse.types.d.ts +0 -18
- package/dist/Collapse/Collapse.types.js +0 -2
- package/dist/Collapse/Collapse.types.js.map +0 -1
- package/dist/Collapse/index.d.ts +0 -1
- package/dist/Collapse/index.js +0 -2
- package/dist/Collapse/index.js.map +0 -1
- package/dist/Icon/Icon.d.ts +0 -10
- package/dist/Icon/Icon.js +0 -56
- package/dist/Icon/Icon.js.map +0 -1
- package/dist/Icon/Icon.stories.d.ts +0 -5
- package/dist/Icon/Icon.stories.js +0 -15
- package/dist/Icon/Icon.stories.js.map +0 -1
- package/dist/Icon/Icon.test.d.ts +0 -1
- package/dist/Icon/Icon.test.js +0 -55
- package/dist/Icon/Icon.test.js.map +0 -1
- package/dist/Icon/Icon.types.d.ts +0 -90
- package/dist/Icon/Icon.types.js +0 -16
- package/dist/Icon/Icon.types.js.map +0 -1
- package/dist/Icon/index.d.ts +0 -1
- package/dist/Icon/index.js +0 -2
- package/dist/Icon/index.js.map +0 -1
- package/dist/InputGroup/InputGroup.d.ts +0 -7
- package/dist/InputGroup/InputGroup.js +0 -36
- package/dist/InputGroup/InputGroup.js.map +0 -1
- package/dist/InputGroup/InputGroup.stories.d.ts +0 -5
- package/dist/InputGroup/InputGroup.stories.js +0 -129
- package/dist/InputGroup/InputGroup.stories.js.map +0 -1
- package/dist/InputGroup/InputGroup.test.d.ts +0 -1
- package/dist/InputGroup/InputGroup.test.js +0 -42
- package/dist/InputGroup/InputGroup.test.js.map +0 -1
- package/dist/InputGroup/InputGroup.types.d.ts +0 -61
- package/dist/InputGroup/InputGroup.types.js +0 -2
- package/dist/InputGroup/InputGroup.types.js.map +0 -1
- package/dist/InputGroup/index.d.ts +0 -2
- package/dist/InputGroup/index.js +0 -2
- package/dist/InputGroup/index.js.map +0 -1
- package/dist/Modal/Modal.d.ts +0 -5
- package/dist/Modal/Modal.js +0 -76
- package/dist/Modal/Modal.js.map +0 -1
- package/dist/Modal/Modal.stories.d.ts +0 -10
- package/dist/Modal/Modal.stories.js +0 -44
- package/dist/Modal/Modal.stories.js.map +0 -1
- package/dist/Modal/Modal.test.d.ts +0 -1
- package/dist/Modal/Modal.test.js +0 -108
- package/dist/Modal/Modal.test.js.map +0 -1
- package/dist/Modal/Modal.types.d.ts +0 -244
- package/dist/Modal/Modal.types.js +0 -2
- package/dist/Modal/Modal.types.js.map +0 -1
- package/dist/Modal/index.d.ts +0 -1
- package/dist/Modal/index.js +0 -2
- package/dist/Modal/index.js.map +0 -1
- package/dist/ProgressBar/ProgressBar.d.ts +0 -4
- package/dist/ProgressBar/ProgressBar.js +0 -72
- package/dist/ProgressBar/ProgressBar.js.map +0 -1
- package/dist/ProgressBar/ProgressBar.stories.d.ts +0 -5
- package/dist/ProgressBar/ProgressBar.stories.js +0 -35
- package/dist/ProgressBar/ProgressBar.stories.js.map +0 -1
- package/dist/ProgressBar/ProgressBar.test.d.ts +0 -1
- package/dist/ProgressBar/ProgressBar.test.js +0 -43
- package/dist/ProgressBar/ProgressBar.test.js.map +0 -1
- package/dist/ProgressBar/ProgressBar.types.d.ts +0 -77
- package/dist/ProgressBar/ProgressBar.types.js +0 -2
- package/dist/ProgressBar/ProgressBar.types.js.map +0 -1
- package/dist/ProgressBar/index.d.ts +0 -1
- package/dist/ProgressBar/index.js +0 -2
- package/dist/ProgressBar/index.js.map +0 -1
- package/dist/SeeqActionDropdown/SeeqActionDropdown.d.ts +0 -4
- package/dist/SeeqActionDropdown/SeeqActionDropdown.js +0 -39
- package/dist/SeeqActionDropdown/SeeqActionDropdown.js.map +0 -1
- package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.d.ts +0 -5
- package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.js +0 -58
- package/dist/SeeqActionDropdown/SeeqActionDropdown.stories.js.map +0 -1
- package/dist/SeeqActionDropdown/SeeqActionDropdown.test.d.ts +0 -1
- package/dist/SeeqActionDropdown/SeeqActionDropdown.test.js +0 -73
- package/dist/SeeqActionDropdown/SeeqActionDropdown.test.js.map +0 -1
- package/dist/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -164
- package/dist/SeeqActionDropdown/SeeqActionDropdown.types.js +0 -2
- package/dist/SeeqActionDropdown/SeeqActionDropdown.types.js.map +0 -1
- package/dist/SeeqActionDropdown/index.d.ts +0 -1
- package/dist/SeeqActionDropdown/index.js +0 -2
- package/dist/SeeqActionDropdown/index.js.map +0 -1
- package/dist/SeeqActionDropdown/variants.d.ts +0 -5
- package/dist/SeeqActionDropdown/variants.js +0 -23
- package/dist/SeeqActionDropdown/variants.js.map +0 -1
- package/dist/Select/Select.d.ts +0 -15
- package/dist/Select/Select.js +0 -179
- package/dist/Select/Select.js.map +0 -1
- package/dist/Select/Select.stories.d.ts +0 -5
- package/dist/Select/Select.stories.js +0 -40
- package/dist/Select/Select.stories.js.map +0 -1
- package/dist/Select/Select.test.d.ts +0 -1
- package/dist/Select/Select.test.js +0 -175
- package/dist/Select/Select.test.js.map +0 -1
- package/dist/Select/Select.types.d.ts +0 -220
- package/dist/Select/Select.types.js +0 -2
- package/dist/Select/Select.types.js.map +0 -1
- package/dist/Select/index.d.ts +0 -2
- package/dist/Select/index.js +0 -3
- package/dist/Select/index.js.map +0 -1
- package/dist/Slider/Slider.d.ts +0 -6
- package/dist/Slider/Slider.js +0 -10
- package/dist/Slider/Slider.js.map +0 -1
- package/dist/Slider/Slider.stories.d.ts +0 -5
- package/dist/Slider/Slider.stories.js +0 -14
- package/dist/Slider/Slider.stories.js.map +0 -1
- package/dist/Slider/Slider.test.d.ts +0 -1
- package/dist/Slider/Slider.test.js +0 -32
- package/dist/Slider/Slider.test.js.map +0 -1
- package/dist/Slider/Slider.types.d.ts +0 -84
- package/dist/Slider/Slider.types.js +0 -2
- package/dist/Slider/Slider.types.js.map +0 -1
- package/dist/Slider/index.d.ts +0 -1
- package/dist/Slider/index.js +0 -2
- package/dist/Slider/index.js.map +0 -1
- package/dist/SvgIcon/SvgIcon.d.ts +0 -20
- package/dist/SvgIcon/SvgIcon.js +0 -28
- package/dist/SvgIcon/SvgIcon.js.map +0 -1
- package/dist/SvgIcon/SvgIcon.stories.d.ts +0 -5
- package/dist/SvgIcon/SvgIcon.stories.js +0 -18
- package/dist/SvgIcon/SvgIcon.stories.js.map +0 -1
- package/dist/SvgIcon/SvgIcon.test.d.ts +0 -1
- package/dist/SvgIcon/SvgIcon.test.js +0 -41
- package/dist/SvgIcon/SvgIcon.test.js.map +0 -1
- package/dist/SvgIcon/SvgIcon.types.d.ts +0 -75
- package/dist/SvgIcon/SvgIcon.types.js +0 -3
- package/dist/SvgIcon/SvgIcon.types.js.map +0 -1
- package/dist/SvgIcon/index.d.ts +0 -1
- package/dist/SvgIcon/index.js +0 -2
- package/dist/SvgIcon/index.js.map +0 -1
- package/dist/Tabs/Tabs.d.ts +0 -4
- package/dist/Tabs/Tabs.js +0 -17
- package/dist/Tabs/Tabs.js.map +0 -1
- package/dist/Tabs/Tabs.stories.d.ts +0 -5
- package/dist/Tabs/Tabs.stories.js +0 -73
- package/dist/Tabs/Tabs.stories.js.map +0 -1
- package/dist/Tabs/Tabs.test.d.ts +0 -1
- package/dist/Tabs/Tabs.test.js +0 -86
- package/dist/Tabs/Tabs.test.js.map +0 -1
- package/dist/Tabs/Tabs.types.d.ts +0 -100
- package/dist/Tabs/Tabs.types.js +0 -2
- package/dist/Tabs/Tabs.types.js.map +0 -1
- package/dist/Tabs/index.d.ts +0 -1
- package/dist/Tabs/index.js +0 -2
- package/dist/Tabs/index.js.map +0 -1
- package/dist/TextArea/TextArea.d.ts +0 -7
- package/dist/TextArea/TextArea.js +0 -55
- package/dist/TextArea/TextArea.js.map +0 -1
- package/dist/TextArea/TextArea.stories.d.ts +0 -5
- package/dist/TextArea/TextArea.stories.js +0 -10
- package/dist/TextArea/TextArea.stories.js.map +0 -1
- package/dist/TextArea/TextArea.test.d.ts +0 -1
- package/dist/TextArea/TextArea.test.js +0 -130
- package/dist/TextArea/TextArea.test.js.map +0 -1
- package/dist/TextArea/TextArea.types.d.ts +0 -115
- package/dist/TextArea/TextArea.types.js +0 -2
- package/dist/TextArea/TextArea.types.js.map +0 -1
- package/dist/TextArea/index.d.ts +0 -1
- package/dist/TextArea/index.js +0 -2
- package/dist/TextArea/index.js.map +0 -1
- package/dist/TextField/TextField.d.ts +0 -7
- package/dist/TextField/TextField.js +0 -85
- package/dist/TextField/TextField.js.map +0 -1
- package/dist/TextField/TextField.stories.d.ts +0 -5
- package/dist/TextField/TextField.stories.js +0 -11
- package/dist/TextField/TextField.stories.js.map +0 -1
- package/dist/TextField/TextField.test.d.ts +0 -1
- package/dist/TextField/TextField.test.js +0 -41
- package/dist/TextField/TextField.test.js.map +0 -1
- package/dist/TextField/TextField.types.d.ts +0 -198
- package/dist/TextField/TextField.types.js +0 -2
- package/dist/TextField/TextField.types.js.map +0 -1
- package/dist/TextField/index.d.ts +0 -1
- package/dist/TextField/index.js +0 -2
- package/dist/TextField/index.js.map +0 -1
- package/dist/ToolbarButton/ToolbarButton.d.ts +0 -3
- package/dist/ToolbarButton/ToolbarButton.js +0 -56
- package/dist/ToolbarButton/ToolbarButton.js.map +0 -1
- package/dist/ToolbarButton/ToolbarButton.stories.d.ts +0 -5
- package/dist/ToolbarButton/ToolbarButton.stories.js +0 -28
- package/dist/ToolbarButton/ToolbarButton.stories.js.map +0 -1
- package/dist/ToolbarButton/ToolbarButton.test.d.ts +0 -1
- package/dist/ToolbarButton/ToolbarButton.test.js +0 -85
- package/dist/ToolbarButton/ToolbarButton.test.js.map +0 -1
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +0 -122
- package/dist/ToolbarButton/ToolbarButton.types.js +0 -2
- package/dist/ToolbarButton/ToolbarButton.types.js.map +0 -1
- package/dist/ToolbarButton/index.d.ts +0 -1
- package/dist/ToolbarButton/index.js +0 -2
- package/dist/ToolbarButton/index.js.map +0 -1
- package/dist/Tooltip/QTip.stories.d.ts +0 -5
- package/dist/Tooltip/QTip.stories.js +0 -19
- package/dist/Tooltip/QTip.stories.js.map +0 -1
- package/dist/Tooltip/QTip.types.d.ts +0 -13
- package/dist/Tooltip/QTip.types.js +0 -2
- package/dist/Tooltip/QTip.types.js.map +0 -1
- package/dist/Tooltip/QTipPerformance.stories.d.ts +0 -5
- package/dist/Tooltip/QTipPerformance.stories.js +0 -26
- package/dist/Tooltip/QTipPerformance.stories.js.map +0 -1
- package/dist/Tooltip/Qtip.d.ts +0 -26
- package/dist/Tooltip/Qtip.js +0 -168
- package/dist/Tooltip/Qtip.js.map +0 -1
- package/dist/Tooltip/Tooltip.d.ts +0 -13
- package/dist/Tooltip/Tooltip.js +0 -34
- package/dist/Tooltip/Tooltip.js.map +0 -1
- package/dist/Tooltip/Tooltip.stories.d.ts +0 -5
- package/dist/Tooltip/Tooltip.stories.js +0 -15
- package/dist/Tooltip/Tooltip.stories.js.map +0 -1
- package/dist/Tooltip/Tooltip.types.d.ts +0 -22
- package/dist/Tooltip/Tooltip.types.js +0 -3
- package/dist/Tooltip/Tooltip.types.js.map +0 -1
- package/dist/Tooltip/TooltipPerformance.stories.d.ts +0 -5
- package/dist/Tooltip/TooltipPerformance.stories.js +0 -26
- package/dist/Tooltip/TooltipPerformance.stories.js.map +0 -1
- package/dist/Tooltip/index.d.ts +0 -2
- package/dist/Tooltip/index.js +0 -3
- package/dist/Tooltip/index.js.map +0 -1
- package/dist/Tooltip/qTip.utilities.d.ts +0 -3
- package/dist/Tooltip/qTip.utilities.js +0 -11
- package/dist/Tooltip/qTip.utilities.js.map +0 -1
- package/dist/index.d.ts +0 -46
- package/dist/setupTests.d.ts +0 -1
- package/dist/setupTests.js +0 -6
- package/dist/setupTests.js.map +0 -1
- package/dist/types.d.ts +0 -27
- package/dist/types.js +0 -26
- package/dist/types.js.map +0 -1
- package/dist/utils/browserId.d.ts +0 -9
- package/dist/utils/browserId.js +0 -29
- package/dist/utils/browserId.js.map +0 -1
- package/dist/utils/svg.d.ts +0 -15
- package/dist/utils/svg.js +0 -20
- package/dist/utils/svg.js.map +0 -1
- package/dist/utils/validateStyleDimension.d.ts +0 -2
- package/dist/utils/validateStyleDimension.js +0 -14
- package/dist/utils/validateStyleDimension.js.map +0 -1
- package/dist/utils/validateStyleDimension.test.d.ts +0 -1
- package/dist/utils/validateStyleDimension.test.js +0 -20
- package/dist/utils/validateStyleDimension.test.js.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -46,34 +46,34 @@ const getQTipData = ({ tooltip, tooltipPlacement, isHtmlTooltip, tooltipTestId,
|
|
|
46
46
|
: undefined;
|
|
47
47
|
|
|
48
48
|
const colorClassesThemeLight = {
|
|
49
|
-
'theme': 'tw
|
|
50
|
-
'white': 'tw
|
|
51
|
-
'dark-gray': 'tw
|
|
52
|
-
'warning': 'tw
|
|
53
|
-
'darkish-gray': 'tw
|
|
54
|
-
'gray': 'tw
|
|
49
|
+
'theme': 'tw-text-sq-color-dark',
|
|
50
|
+
'white': 'tw-text-white',
|
|
51
|
+
'dark-gray': 'tw-text-sq-fairly-dark-gray',
|
|
52
|
+
'warning': 'tw-text-sq-warning-color',
|
|
53
|
+
'darkish-gray': 'tw-text-sq-darkish-gray',
|
|
54
|
+
'gray': 'tw-text-sq-disabled-gray',
|
|
55
55
|
'color': '',
|
|
56
|
-
'info': 'tw
|
|
57
|
-
'text': 'tw
|
|
56
|
+
'info': 'tw-text-sq-link',
|
|
57
|
+
'text': 'tw-text-sq-text-color',
|
|
58
58
|
'inherit': '',
|
|
59
|
-
'danger': 'tw
|
|
60
|
-
'theme-light': 'tw
|
|
61
|
-
'success': 'tw
|
|
59
|
+
'danger': 'tw-text-sq-danger-color',
|
|
60
|
+
'theme-light': 'tw-text-sq-color-light',
|
|
61
|
+
'success': 'tw-text-sq-success-color',
|
|
62
62
|
};
|
|
63
63
|
const colorClassesThemeDark = {
|
|
64
|
-
'theme': '
|
|
64
|
+
'theme': 'dark:tw-text-sq-color-dark-dark',
|
|
65
65
|
'white': '',
|
|
66
|
-
'dark-gray': 'tw
|
|
66
|
+
'dark-gray': 'tw-text-sq-fairly-dark-gray',
|
|
67
67
|
'warning': '',
|
|
68
|
-
'darkish-gray': 'tw
|
|
69
|
-
'gray': '
|
|
68
|
+
'darkish-gray': 'tw-text-sq-darkish-gray',
|
|
69
|
+
'gray': 'dark:tw-text-sq-dark-disabled-gray',
|
|
70
70
|
'color': '',
|
|
71
|
-
'info': '
|
|
72
|
-
'text': '
|
|
71
|
+
'info': 'dark:tw-text-sq-link-dark',
|
|
72
|
+
'text': 'dark:tw-text-sq-dark-text',
|
|
73
73
|
'inherit': '',
|
|
74
|
-
'danger': 'tw
|
|
75
|
-
'theme-light': 'tw
|
|
76
|
-
'success': 'tw
|
|
74
|
+
'danger': 'tw-text-sq-danger-color',
|
|
75
|
+
'theme-light': 'tw-text-sq-color-light',
|
|
76
|
+
'success': 'tw-text-sq-success-color',
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
79
|
* Icon:
|
|
@@ -85,14 +85,14 @@ const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClas
|
|
|
85
85
|
const errorMessage = color === undefined || color === ''
|
|
86
86
|
? 'Icon with type="color" must have prop color specified.'
|
|
87
87
|
: 'Icon with prop color must have type="color".';
|
|
88
|
-
return jsx$1("div", { className: "tw
|
|
88
|
+
return jsx$1("div", { className: "tw-text-sq-danger-color", children: errorMessage });
|
|
89
89
|
}
|
|
90
90
|
const fontAwesomePrefix = iconPrefix ? iconPrefix : 'fa-sharp fa-regular';
|
|
91
91
|
const iconPrefixString = icon.startsWith('fc') ? 'fc' : fontAwesomePrefix;
|
|
92
92
|
const style = type === 'color' && color ? { color } : {};
|
|
93
93
|
const sizeClass = size ? `fa-${size}` : small ? 'fa-sm' : large ? 'fa-lg' : '';
|
|
94
94
|
const appliedClassNames = `${iconPrefixString} ${icon} ${sizeClass}
|
|
95
|
-
${colorClassesThemeLight[type]} ${colorClassesThemeDark[type]} ${onClick ? 'tw
|
|
95
|
+
${colorClassesThemeLight[type]} ${colorClassesThemeDark[type]} ${onClick ? 'tw-cursor-pointer' : ''} ${extraClassNames} focus:tw-outline-none focus-visible:tw-outline-none tw-outline-none`;
|
|
96
96
|
const tooltipData = getQTipData(tooltipProps);
|
|
97
97
|
return (jsx$1("i", { className: appliedClassNames, style: style, onClick: onClick, "data-testid": testId, "data-customid": customId, id: id, "data-number": number, ...tooltipData }));
|
|
98
98
|
};
|
|
@@ -103,71 +103,71 @@ const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClas
|
|
|
103
103
|
* - include tooltips and/or icons
|
|
104
104
|
*/
|
|
105
105
|
const Button = ({ onClick, label, variant = 'outline', type = 'button', size = 'sm', disabled, extraClassNames, id, testId, stopPropagation = true, tooltip, tooltipOptions, iconStyle = 'text', icon, iconColor, iconPosition = 'left', iconPrefix = undefined, preventBlur = false, isHtmlTooltip = false, tooltipTestId, }) => {
|
|
106
|
-
const baseClasses = 'tw
|
|
106
|
+
const baseClasses = 'tw-px-2.5 tw-rounded-md focus:tw-ring-0 focus-visible:tw-outline-none aria-disabled:tw-cursor-not-allowed disabled:tw-pointer-events-none';
|
|
107
107
|
const baseClassesByVariant = {
|
|
108
|
-
'outline': '
|
|
109
|
-
'theme': '
|
|
110
|
-
'danger': 'tw
|
|
111
|
-
'tw
|
|
112
|
-
'theme-light': '
|
|
113
|
-
'no-border': '
|
|
114
|
-
'warning': 'tw
|
|
115
|
-
'
|
|
108
|
+
'outline': 'disabled:tw-opacity-50 aria-disabled:tw-opacity-50 tw-border-solid tw-border',
|
|
109
|
+
'theme': 'disabled:tw-opacity-50 aria-disabled:tw-opacity-50 tw-border-solid tw-border',
|
|
110
|
+
'danger': 'tw-bg-sq-danger-color disabled:tw-opacity-50 aria-disabled:tw-opacity-50 ' +
|
|
111
|
+
'tw-border-solid tw-border tw-border-sq-danger-color',
|
|
112
|
+
'theme-light': 'disabled:tw-opacity-50 aria-disabled:tw-opacity-50 tw-border-solid tw-border',
|
|
113
|
+
'no-border': 'disabled:tw-opacity-50 aria-disabled:tw-opacity-50',
|
|
114
|
+
'warning': 'tw-bg-sq-warning-color tw-border-solid tw-border tw-border-sq-warning-color ' +
|
|
115
|
+
'disabled:tw-opacity-50 aria-disabled:tw-opacity-50',
|
|
116
116
|
};
|
|
117
117
|
const textClassesByVariantLightTheme = {
|
|
118
|
-
'outline': 'tw
|
|
119
|
-
'theme': 'tw
|
|
120
|
-
'theme-light': 'tw
|
|
121
|
-
'danger': 'tw
|
|
122
|
-
'no-border': 'tw
|
|
123
|
-
'warning': 'tw
|
|
118
|
+
'outline': 'tw-text-sq-text-color',
|
|
119
|
+
'theme': 'tw-text-white',
|
|
120
|
+
'theme-light': 'tw-text-white',
|
|
121
|
+
'danger': 'tw-text-white',
|
|
122
|
+
'no-border': 'tw-text-sq-text-color',
|
|
123
|
+
'warning': 'tw-text-white',
|
|
124
124
|
};
|
|
125
125
|
const textClassesByVariantDarkTheme = {
|
|
126
|
-
'outline': '
|
|
127
|
-
'theme': '
|
|
128
|
-
'theme-light': '
|
|
129
|
-
'danger': '
|
|
130
|
-
'no-border': '
|
|
131
|
-
'warning': '
|
|
126
|
+
'outline': 'dark:tw-text-sq-dark-text',
|
|
127
|
+
'theme': 'dark:tw-text-white',
|
|
128
|
+
'theme-light': 'dark:tw-text-white',
|
|
129
|
+
'danger': 'dark:tw-text-white',
|
|
130
|
+
'no-border': 'dark:tw-text-sq-dark-text',
|
|
131
|
+
'warning': 'dark:tw-text-white',
|
|
132
132
|
};
|
|
133
133
|
const classesByVariantLightTheme = {
|
|
134
|
-
'outline': 'tw
|
|
135
|
-
'theme': 'tw
|
|
134
|
+
'outline': 'tw-bg-white tw-border-sq-disabled-gray',
|
|
135
|
+
'theme': 'tw-bg-sq-color-dark tw-border-sq-color-dark',
|
|
136
136
|
'danger': '',
|
|
137
|
-
'theme-light': 'tw
|
|
137
|
+
'theme-light': 'tw-bg-sq-icon',
|
|
138
138
|
'no-border': '',
|
|
139
139
|
'warning': '',
|
|
140
140
|
};
|
|
141
141
|
const classesByVariantDarkTheme = {
|
|
142
|
-
'outline': '
|
|
143
|
-
'theme': '
|
|
142
|
+
'outline': 'dark:tw-bg-sq-dark-background dark:tw-border-sq-dark-disabled-gray',
|
|
143
|
+
'theme': 'dark:tw-bg-sq-color-dark dark:tw-border-sq-color-dark',
|
|
144
144
|
'danger': '',
|
|
145
|
-
'theme-light': '
|
|
145
|
+
'theme-light': 'dark:tw-bg-sq-icon-dark dark:tw-border-sq-icon-dark',
|
|
146
146
|
'no-border': '',
|
|
147
147
|
'warning': '',
|
|
148
148
|
};
|
|
149
149
|
const activeClassesByVariantLightTheme = {
|
|
150
|
-
'outline': '
|
|
151
|
-
'
|
|
152
|
-
'theme': '
|
|
153
|
-
'danger': '
|
|
154
|
-
'theme-light': '
|
|
150
|
+
'outline': 'hover:tw-bg-sq-light-gray focus:tw-bg-sq-dark-gray active:tw-bg-sq-dark-gray focus:tw-border-sq-color-dark' +
|
|
151
|
+
' active:tw-border-sq-color-dark',
|
|
152
|
+
'theme': 'hover:tw-bg-sq-color-highlight hover:tw-border-sq-color-highlight',
|
|
153
|
+
'danger': 'hover:tw-bg-sq-danger-color-hover hover:tw-border-sq-danger-color-hover',
|
|
154
|
+
'theme-light': 'hover:tw-bg-sq-link hover:tw-border-sq-link',
|
|
155
155
|
'no-border': '',
|
|
156
156
|
'warning': '',
|
|
157
157
|
};
|
|
158
158
|
const activeClassesByVariantDarkTheme = {
|
|
159
|
-
'outline': '
|
|
160
|
-
'
|
|
161
|
-
'theme': '
|
|
162
|
-
'danger': '
|
|
163
|
-
'theme-light': '
|
|
159
|
+
'outline': 'dark:hover:tw-bg-sq-highlight-color-dark dark:focus:tw-bg-sq-multi-gray-dark' +
|
|
160
|
+
' dark:active:tw-bg-sq-multi-gray-dark dark:focus:tw-border-sq-color-dark dark:active:tw-border-sq-color-dark',
|
|
161
|
+
'theme': 'dark:hover:tw-bg-sq-color-highlight dark:hover:tw-border-sq-color-highlight',
|
|
162
|
+
'danger': 'dark:hover:tw-bg-sq-danger-color-hover dark:hover:tw-border-sq-danger-color-hover',
|
|
163
|
+
'theme-light': 'dark:hover:tw-bg-sq-link-dark dark:hover:tw-border-sq-link-dark',
|
|
164
164
|
'no-border': '',
|
|
165
165
|
'warning': '',
|
|
166
166
|
};
|
|
167
167
|
const sizeClasses = {
|
|
168
|
-
xs: 'tw
|
|
169
|
-
sm: 'tw
|
|
170
|
-
lg: 'tw
|
|
168
|
+
xs: 'tw-text-xs tw-py-0.5',
|
|
169
|
+
sm: 'tw-text-sm tw-py-1',
|
|
170
|
+
lg: 'tw-text-xl tw-py-1',
|
|
171
171
|
};
|
|
172
172
|
let tooltipData = undefined;
|
|
173
173
|
let appliedClasses = `${baseClasses} ${baseClassesByVariant[variant]} ${sizeClasses[size]} ${classesByVariantLightTheme[variant]} ${classesByVariantDarkTheme[variant]} ${textClassesByVariantLightTheme[variant]} ${textClassesByVariantDarkTheme[variant]} ${extraClassNames}`;
|
|
@@ -183,7 +183,7 @@ const Button = ({ onClick, label, variant = 'outline', type = 'button', size = '
|
|
|
183
183
|
'data-qtip-delay': tooltipOptions?.delay ?? DEFAULT_TOOL_TIP_DELAY,
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
const iconClass = iconPosition === 'left' ? 'tw
|
|
186
|
+
const iconClass = iconPosition === 'left' ? 'tw-mr-1' : 'tw-ml-1';
|
|
187
187
|
const iconElement = icon && (jsx$1(Icon, { icon: icon, iconPrefix: iconPrefix, type: iconStyle, color: iconColor, extraClassNames: label
|
|
188
188
|
? `${iconClass} ${textClassesByVariantLightTheme[variant]} ${textClassesByVariantDarkTheme[variant]}`
|
|
189
189
|
: '', testId: `${id}_spinner` }));
|
|
@@ -4777,30 +4777,31 @@ function getSvgIconPath(icon) {
|
|
|
4777
4777
|
}
|
|
4778
4778
|
|
|
4779
4779
|
const popoverBorderStyles = [
|
|
4780
|
-
'tw
|
|
4781
|
-
'tw
|
|
4782
|
-
'tw
|
|
4783
|
-
'tw
|
|
4784
|
-
'
|
|
4780
|
+
'tw-border-solid',
|
|
4781
|
+
'tw-border',
|
|
4782
|
+
'tw-rounded-md',
|
|
4783
|
+
'tw-border-sq-disabled-gray',
|
|
4784
|
+
'dark:tw-border-gray-500',
|
|
4785
4785
|
].join(' ');
|
|
4786
4786
|
const triggerBackgroundStyles = [
|
|
4787
|
-
'tw
|
|
4788
|
-
'
|
|
4789
|
-
'
|
|
4790
|
-
'
|
|
4791
|
-
'
|
|
4792
|
-
'
|
|
4787
|
+
'tw-bg-transparent',
|
|
4788
|
+
'hover:tw-bg-sq-worksheetspanel-gray',
|
|
4789
|
+
'active:tw-bg-sq-worksheetspanel-gray',
|
|
4790
|
+
'dark:tw-bg-transparent',
|
|
4791
|
+
'dark:hover:tw-bg-sq-field-disabled-gray',
|
|
4792
|
+
'dark:active:tw-bg-sq-field-disabled-gray',
|
|
4793
4793
|
].join(' ');
|
|
4794
4794
|
const activeBackgroundStyles = [
|
|
4795
4795
|
'active',
|
|
4796
|
-
'tw
|
|
4797
|
-
'tw
|
|
4798
|
-
'tw
|
|
4799
|
-
'
|
|
4800
|
-
'
|
|
4796
|
+
'tw-bg-sq-overlay-gray',
|
|
4797
|
+
'hover:tw-bg-sq-overlay-gray',
|
|
4798
|
+
'active:tw-bg-sq-overlay-gray',
|
|
4799
|
+
'dark:tw-bg-sq-dark-disabled-gray',
|
|
4800
|
+
'dark:hover:tw-border-sq-dark-disabled-gray',
|
|
4801
|
+
'dark:active:tw-bg-sq-dark-disabled-gray',
|
|
4801
4802
|
].join(' ');
|
|
4802
|
-
const bgStyles$3 = ['tw
|
|
4803
|
-
const disabledClasses$4 = ['tw
|
|
4803
|
+
const bgStyles$3 = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
|
|
4804
|
+
const disabledClasses$4 = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
|
|
4804
4805
|
const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (jsx$1(Content2$3, { ref: ref, align: align, sideOffset: sideOffset, ...props, asChild: true })));
|
|
4805
4806
|
const ToolbarButton = ({ isSmall = false, label, icon, secondIcon, forceSmallIcon = false, tooltipText, id, popoverContent, extraClassNames, testId, tooltipTestId, tooltipOptions, isActive = false, isHtmlTooltip = false, hasArrow = false, disabled = false, isPrimaryAnSvg = false, primaryIconExtraClassNames = false, iconHeight = 24, iconWidth = 24, primaryIconViewbox = '0 0 24 24', onClick, onHide, }) => {
|
|
4806
4807
|
let tooltipData = undefined;
|
|
@@ -4818,12 +4819,12 @@ const ToolbarButton = ({ isSmall = false, label, icon, secondIcon, forceSmallIco
|
|
|
4818
4819
|
onHide && onHide();
|
|
4819
4820
|
}
|
|
4820
4821
|
};
|
|
4821
|
-
return (jsxs(Root2$3, { defaultOpen: false, onOpenChange: onOpenChange, children: [jsx$1(Trigger$3, { id: id, className: `tw
|
|
4822
|
+
return (jsxs(Root2$3, { defaultOpen: false, onOpenChange: onOpenChange, children: [jsx$1(Trigger$3, { id: id, className: `tw-border-none tw-mx-[1.5px] first:tw-ml-0 last:tw-mr-0 ${isActive ? 'active' : ''}`, disabled: disabled, "data-testid": testId, onClick: (e) => {
|
|
4822
4823
|
onClick && onClick(e);
|
|
4823
|
-
}, children: jsxs("div", { ...tooltipData, className: `tw
|
|
4824
|
-
' tw
|
|
4825
|
-
'
|
|
4826
|
-
popoverBorderStyles, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: " tw
|
|
4824
|
+
}, children: jsxs("div", { ...tooltipData, className: `tw-flex tw-flex-col tw-items-center tw-rounded-md ${isSmall ? 'tw-py-[1px] tw-px-1' : 'tw-px-2 tw-py-[5px]'} ${disabled ? disabledClasses$4 : isActive ? activeBackgroundStyles : triggerBackgroundStyles} ${extraClassNames || ''}`, children: [jsxs("span", { className: "tw-nowrap", children: [isPrimaryAnSvg ? (jsx$1("svg", { xmlns: "http://www.w3.org/2000/svg", className: `tw-text-sq-text-color dark:tw-text-sq-dark-text ${primaryIconExtraClassNames || ''}`, viewBox: primaryIconViewbox, height: `${iconHeight}px`, width: `${iconWidth}px`, fill: "currentColor", "data-testid": testId, children: jsx$1("path", { d: getSvgIconPath(icon) }) })) : (jsx$1(Icon, { icon: icon, testId: "firstIcon", type: "text", large: !isSmall && !label && !secondIcon && !forceSmallIcon, extraClassNames: `tw-text-sq-text-color dark:tw-text-sq-dark-text` })), secondIcon && jsx$1(Icon, { icon: secondIcon, type: "text", testId: "secondIcon" }), popoverContent ? (jsx$1(Icon, { icon: "fc-arrow-dropdown", extraClassNames: "tw-text-sq-text-color dark:tw-text-sq-dark-text tw-ml-[3px] tw-text-[0.5rem]", type: "text" })) : undefined] }), !isSmall && (jsx$1("small", { className: "tw-text-sq-text-color dark:tw-text-sq-dark-text tw-text-[0.625rem]", children: label }))] }) }), !!popoverContent ? (jsx$1(PopoverContent, { sideOffset: 2, align: "start", children: jsxs("div", { className: bgStyles$3 +
|
|
4825
|
+
' tw-relative tw-z-[1000] tw-min-w-6 tw-p-[0.5rem] focus-visible:tw-outline-none tw-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out' +
|
|
4826
|
+
' data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2' +
|
|
4827
|
+
popoverBorderStyles, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: " tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-mt-[-7px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500" }) })), popoverContent] }) })) : undefined] }));
|
|
4827
4828
|
};
|
|
4828
4829
|
|
|
4829
4830
|
const setValidInputDimension = (width, height) => {
|
|
@@ -4840,24 +4841,24 @@ const setValidInputDimension = (width, height) => {
|
|
|
4840
4841
|
return inputStyle;
|
|
4841
4842
|
};
|
|
4842
4843
|
|
|
4843
|
-
const errorClasses$4 = 'tw
|
|
4844
|
+
const errorClasses$4 = 'tw-border-sq-danger-color';
|
|
4844
4845
|
const borderColorClasses$4 = [
|
|
4845
|
-
'tw
|
|
4846
|
-
'
|
|
4847
|
-
'
|
|
4848
|
-
'
|
|
4849
|
-
'
|
|
4850
|
-
'
|
|
4846
|
+
'tw-border-sq-disabled-gray',
|
|
4847
|
+
'dark:tw-border-sq-dark-disabled-gray',
|
|
4848
|
+
'dark:focus:tw-border-sq-color-dark-dark',
|
|
4849
|
+
'dark:active:tw-border-sq-color-dark-dark',
|
|
4850
|
+
'focus:tw-border-sq-color-dark',
|
|
4851
|
+
'active:tw-border-sq-color-dark',
|
|
4851
4852
|
].join(' ');
|
|
4852
|
-
const baseClasses$6 = 'tw
|
|
4853
|
-
'
|
|
4854
|
-
'
|
|
4855
|
-
'
|
|
4856
|
-
const darkTheme$3 = '
|
|
4857
|
-
const lightTheme$3 = 'tw
|
|
4853
|
+
const baseClasses$6 = 'tw-h-inputs tw-leading-normal tw-outline-none tw-py-1 tw-px-3' +
|
|
4854
|
+
' disabled:tw-pointer-events-none disabled:tw-bg-sq-light-gray disabled:dark:tw-bg-sq-dark-disabled-gray' +
|
|
4855
|
+
' disabled:tw-cursor-not-allowed tw-p-1 tw-border-solid tw-border tw-placeholder-gray-400' +
|
|
4856
|
+
' dark:tw-placeholder-sq-dark-text-lighter specTextField';
|
|
4857
|
+
const darkTheme$3 = 'dark:tw-bg-sq-dark-background dark:tw-text-sq-dark-text disabled:dark:tw-text-sq-dark-text-lighter';
|
|
4858
|
+
const lightTheme$3 = 'tw-text-sq-text-color disabled:tw-text-sq-darkish-gray';
|
|
4858
4859
|
const sizeClasses = {
|
|
4859
|
-
sm: 'tw
|
|
4860
|
-
lg: 'tw
|
|
4860
|
+
sm: 'tw-text-sm',
|
|
4861
|
+
lg: 'tw-text-xl',
|
|
4861
4862
|
};
|
|
4862
4863
|
/**
|
|
4863
4864
|
* Textfield.
|
|
@@ -4899,12 +4900,12 @@ const TextField = React__default.forwardRef((props, ref) => {
|
|
|
4899
4900
|
internalRef.current.value = `${value}`;
|
|
4900
4901
|
}
|
|
4901
4902
|
}, [value]);
|
|
4902
|
-
let borderRadius = 'tw
|
|
4903
|
+
let borderRadius = 'tw-rounded-md';
|
|
4903
4904
|
if (inputGroup === 'left') {
|
|
4904
|
-
borderRadius = 'tw
|
|
4905
|
+
borderRadius = 'tw-rounded-l-md tw-border-r-0 focus:tw-border-r' + ' active:tw-border-r';
|
|
4905
4906
|
}
|
|
4906
4907
|
else if (inputGroup === 'right') {
|
|
4907
|
-
borderRadius = 'tw
|
|
4908
|
+
borderRadius = 'tw-rounded-r-md tw-border-l-0 focus:tw-border-l active:tw-border-l';
|
|
4908
4909
|
}
|
|
4909
4910
|
const appliedClasses = `${baseClasses$6} ${sizeClasses[size]} ${extraClassNames} ${lightTheme$3} ${darkTheme$3} ${borderRadius} ${showError ? errorClasses$4 : borderColorClasses$4} `;
|
|
4910
4911
|
const inputProp = setValidInputDimension(inputWidth, inputHeight)
|
|
@@ -4917,18 +4918,18 @@ const TextField = React__default.forwardRef((props, ref) => {
|
|
|
4917
4918
|
inputLenghtProp.maxLength = maxLength;
|
|
4918
4919
|
if (minLength)
|
|
4919
4920
|
inputLenghtProp.minLength = minLength;
|
|
4920
|
-
return (jsxs(Fragment, { children: [jsx$1("input", { ref: setAllRefs, "data-testid": testId, name: name, id: id, type: type, value: value, className: appliedClasses, placeholder: placeholder, disabled: disabled, readOnly: readonly, autoComplete: autoComplete, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onKeyUp: onKeyUp, step: step, required: required, min: min, max: max, ...inputLenghtProp, ...inputProp, ...tooltipData }), errorText && showError && jsx$1("div", { className: "tw
|
|
4921
|
+
return (jsxs(Fragment, { children: [jsx$1("input", { ref: setAllRefs, "data-testid": testId, name: name, id: id, type: type, value: value, className: appliedClasses, placeholder: placeholder, disabled: disabled, readOnly: readonly, autoComplete: autoComplete, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onKeyUp: onKeyUp, step: step, required: required, min: min, max: max, ...inputLenghtProp, ...inputProp, ...tooltipData }), errorText && showError && jsx$1("div", { className: "tw-text-sq-danger-color tw-text-xs tw-mt-1", children: errorText })] }));
|
|
4921
4922
|
});
|
|
4922
4923
|
|
|
4923
|
-
const alignment = 'tw
|
|
4924
|
-
const labelClasses = 'tw
|
|
4925
|
-
const baseClasses$5 = 'tw
|
|
4926
|
-
'
|
|
4927
|
-
'
|
|
4928
|
-
'
|
|
4929
|
-
'
|
|
4930
|
-
const checkboxClasses = `tw
|
|
4931
|
-
const radioClasses = `tw
|
|
4924
|
+
const alignment = 'tw-flex';
|
|
4925
|
+
const labelClasses = 'tw-ml-1.5 tw-text-sm tw--mt-0.5';
|
|
4926
|
+
const baseClasses$5 = 'tw-border-1 tw-h-3.5 tw-w-3.5 focus:tw-ring-0 focus:tw-ring-offset-0 tw-outline-none focus:tw-outline-none' +
|
|
4927
|
+
' dark:tw-bg-sq-dark-background dark:tw-border-sq-dark-text dark:hover:tw-bg-sq-dark-background' +
|
|
4928
|
+
' checked:tw-text-white checked:tw-border-sq-text-color checked:hover:tw-border-sq-color-dark' +
|
|
4929
|
+
' checked:active:tw-border-sq-color-dark checked:focus:tw-border-sq-color-dark disabled:tw-border-sq-disabled-gray' +
|
|
4930
|
+
' dark:disabled:tw-border-sq-fairly-dark-gray dark:checked:focus:tw-bg-sq-dark-background';
|
|
4931
|
+
const checkboxClasses = `tw-form-checkbox tw-rounded ${baseClasses$5}`;
|
|
4932
|
+
const radioClasses = `tw-form-radio ${baseClasses$5}`;
|
|
4932
4933
|
/**
|
|
4933
4934
|
* Checkbox and Radio Box Component.
|
|
4934
4935
|
*/
|
|
@@ -4936,25 +4937,26 @@ const Checkbox = (props) => {
|
|
|
4936
4937
|
const { type = 'checkbox', value, disabled = false, label, onChange, onClick, onKeyDown, checked, defaultChecked, id, name, extraClassNames, extraLabelClassNames, testId, ...tooltipProps } = props;
|
|
4937
4938
|
const assignedId = id ?? 'checkbox_' + Math.random();
|
|
4938
4939
|
const tooltipData = getQTipData(tooltipProps);
|
|
4939
|
-
return (jsxs("span", { className: `${alignment} ${extraClassNames}`, children: [jsx$1("input", { value: value, type: type, "data-testid": testId, name: name, id: assignedId, readOnly: !onChange, checked: checked, defaultChecked: defaultChecked, className: `${type === 'checkbox' ? checkboxClasses : radioClasses} ${disabled ? 'tw
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
};
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
'
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
const
|
|
4940
|
+
return (jsxs("span", { className: `${alignment} ${extraClassNames}`, children: [jsx$1("input", { value: value, type: type, "data-testid": testId, name: name, id: assignedId, readOnly: !onChange, checked: checked, defaultChecked: defaultChecked, className: `${type === 'checkbox' ? checkboxClasses : radioClasses} ${disabled ? 'tw-cursor-not-allowed' : 'tw-cursor-pointer'}`, disabled: disabled, onClick: onClick, onChange: onChange, onKeyDown: onKeyDown, ...tooltipData }), label &&
|
|
4941
|
+
jsx$1("label", { htmlFor: assignedId, className: `${labelClasses} ${extraLabelClassNames} ${disabled
|
|
4942
|
+
? 'tw-cursor-not-allowed dark:tw-text-sq-fairly-dark-gray tw-text-sq-fairly-dark-gray'
|
|
4943
|
+
: 'tw-cursor-pointer tw-text-sq-text-color dark:tw-text-sq-dark-text'}`, children: label })] }));
|
|
4944
|
+
};
|
|
4945
|
+
|
|
4946
|
+
const baseClasses$4 = 'tw-leading-normal tw-outline-none tw-py-1 tw-px-3 tw-rounded-md tw-w-full' +
|
|
4947
|
+
' disabled:tw-pointer-events-none disabled:tw-bg-sq-light-gray disabled:dark:tw-bg-sq-dark-disabled-gray' +
|
|
4948
|
+
' disabled:tw-cursor-not-allowed tw-p-1 tw-border-solid tw-border tw-text-sm';
|
|
4949
|
+
const darkTheme$2 = 'dark:tw-bg-sq-dark-background dark:tw-text-sq-dark-text ' +
|
|
4950
|
+
'dark:tw-placeholder-sq-dark-text-lighter disabled:dark:tw-text-sq-dark-text-lighter';
|
|
4951
|
+
const lightTheme$2 = 'tw-text-sq-text-color tw-placeholder-gray-400 disabled:tw-text-sq-darkish-gray';
|
|
4952
|
+
const errorClasses$3 = 'tw-border-sq-danger-color';
|
|
4951
4953
|
const borderColorClasses$3 = [
|
|
4952
|
-
'tw
|
|
4953
|
-
'
|
|
4954
|
-
'
|
|
4955
|
-
'
|
|
4956
|
-
'
|
|
4957
|
-
'
|
|
4954
|
+
'tw-border-sq-disabled-gray',
|
|
4955
|
+
'dark:tw-border-sq-dark-disabled-gray',
|
|
4956
|
+
'dark:focus:tw-border-sq-color-dark-dark',
|
|
4957
|
+
'dark:active:tw-border-sq-color-dark-dark',
|
|
4958
|
+
'focus:tw-border-sq-color-dark',
|
|
4959
|
+
'active:tw-border-sq-color-dark',
|
|
4958
4960
|
].join(' ');
|
|
4959
4961
|
/**
|
|
4960
4962
|
* TextArea.
|
|
@@ -5003,25 +5005,25 @@ const TextArea = React__default.forwardRef(({ readonly = false, disabled = false
|
|
|
5003
5005
|
* display correctly.
|
|
5004
5006
|
*/
|
|
5005
5007
|
const Tooltip = ({ position = 'bottom', children, text, delay = DEFAULT_TOOL_TIP_DELAY, }) => {
|
|
5006
|
-
const arrowBaseClasses =
|
|
5007
|
-
const centerArrowVertically = '
|
|
5008
|
-
const centerArrowHorizontally = '
|
|
5009
|
-
const arrowRight = `${arrowBaseClasses} ${centerArrowVertically}
|
|
5010
|
-
|
|
5011
|
-
const arrowLeft = `${arrowBaseClasses} ${centerArrowVertically}
|
|
5012
|
-
|
|
5013
|
-
const arrowBottom = `${arrowBaseClasses} ${centerArrowHorizontally}
|
|
5014
|
-
|
|
5015
|
-
const arrowTop = `${arrowBaseClasses} ${centerArrowHorizontally}
|
|
5016
|
-
|
|
5008
|
+
const arrowBaseClasses = 'before:tw-content-[\'\'] before:tw-absolute before:tw-border-8';
|
|
5009
|
+
const centerArrowVertically = 'before:tw-top-1/2 before:-tw-translate-y-1/2';
|
|
5010
|
+
const centerArrowHorizontally = 'before:tw-left-1/2 before:-tw-translate-x-1/2';
|
|
5011
|
+
const arrowRight = `${arrowBaseClasses} ${centerArrowVertically} before:tw-right-[100%] before:tw-border-y-transparent
|
|
5012
|
+
before:tw-border-l-transparent before:tw-border-r-black`;
|
|
5013
|
+
const arrowLeft = `${arrowBaseClasses} ${centerArrowVertically} before:tw-left-[100%] before:tw-border-y-transparent
|
|
5014
|
+
before:tw-border-l-black before:tw-border-r-transparent`;
|
|
5015
|
+
const arrowBottom = `${arrowBaseClasses} ${centerArrowHorizontally} before:-tw-top-4 before:tw-border-b-black
|
|
5016
|
+
before:tw-border-r-transparent before:tw-border-l-transparent before:tw-border-t-transparent`;
|
|
5017
|
+
const arrowTop = `${arrowBaseClasses} ${centerArrowHorizontally} before:-tw-bottom-4 before:tw-border-b-transparent
|
|
5018
|
+
before:tw-border-t-black before:tw-border-l-transparent before:tw-border-r-transparent`;
|
|
5017
5019
|
const placements = {
|
|
5018
|
-
top:
|
|
5019
|
-
left:
|
|
5020
|
-
right: `tw
|
|
5021
|
-
bottom:
|
|
5020
|
+
top: `-tw-top-2 -tw-translate-y-full tw-left-1/2 -tw-translate-x-1/2 ${arrowTop}`,
|
|
5021
|
+
left: `-tw-translate-x-full -tw-left-3 -tw-translate-y-1/2 tw-top-1/2 ${arrowLeft}`,
|
|
5022
|
+
right: `tw-translate-x-full -tw-right-3 -tw-translate-y-1/2 tw-top-1/2 ${arrowRight}`,
|
|
5023
|
+
bottom: `-tw-bottom-2 tw-translate-y-full tw-left-1/2 -tw-translate-x-1/2 ${arrowBottom}`,
|
|
5022
5024
|
};
|
|
5023
|
-
return (jsxs("div", { className: "tw
|
|
5024
|
-
tw
|
|
5025
|
+
return (jsxs("div", { className: "tw-group tw-relative tw-inline-block", children: [children, jsx$1("div", { className: `tw-z-50 tw-whitespace-nowrap tw-hidden group-hover:tw-inline-block group-hover:tw-delay-[${delay}ms]
|
|
5026
|
+
tw-absolute tw-opacity-0 group-hover:tw-opacity-100 tw-rounded tw-bg-black tw-p-2 tw-text-xs tw-text-white ${placements[position]}`, children: text })] }));
|
|
5025
5027
|
};
|
|
5026
5028
|
|
|
5027
5029
|
/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */
|
|
@@ -7507,8 +7509,8 @@ const QTip = () => {
|
|
|
7507
7509
|
: positionTooltip();
|
|
7508
7510
|
}
|
|
7509
7511
|
};
|
|
7510
|
-
return (jsx$1(Fragment, { children: jsxs("div", { onMouseEnter: () => setOverTooltip(true), onMouseLeave: () => setOverTooltip(false), "data-testid": tooltipTestId, ref: tooltipRef, className: 'tw
|
|
7511
|
-
(show ? 'tw
|
|
7512
|
+
return (jsx$1(Fragment, { children: jsxs("div", { onMouseEnter: () => setOverTooltip(true), onMouseLeave: () => setOverTooltip(false), "data-testid": tooltipTestId, ref: tooltipRef, className: 'tw-absolute tw-rounded tw-bg-black tw-max-w-96 tw-p-2 tw-text-xs tw-text-white tw-z-[9999] fade-in ' +
|
|
7513
|
+
(show ? 'tw-visible' : 'tw-invisible tw-pointer-events-none'), children: [html ? jsx$1(HTMLTip, { text: tooltipText }) : tooltipText, jsx$1("div", { className: "tw-absolute tw-w-[10px] tw-h-[10px] tw-rotate-45 tw-bg-black", ref: tooltipArrowRef })] }) }));
|
|
7512
7514
|
};
|
|
7513
7515
|
|
|
7514
7516
|
function _typeof$1(o) {
|
|
@@ -13923,77 +13925,70 @@ var CreatableSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
13923
13925
|
});
|
|
13924
13926
|
var CreatableSelect$1 = CreatableSelect;
|
|
13925
13927
|
|
|
13926
|
-
const baseClasses$3 = ['
|
|
13927
|
-
const containerStyles = ['tw
|
|
13928
|
-
const errorClasses$2 = 'tw
|
|
13929
|
-
const borderColorClasses$2 = ['tw
|
|
13930
|
-
const borderStyles$3 = ['tw
|
|
13928
|
+
const baseClasses$3 = ['focus:tw-ring-0', 'disabled:tw-cursor-not-allowed'].join(' ');
|
|
13929
|
+
const containerStyles = ['tw-bg-white', 'dark:tw-bg-sq-dark-background'].join(' ');
|
|
13930
|
+
const errorClasses$2 = 'tw-border-sq-danger-color';
|
|
13931
|
+
const borderColorClasses$2 = ['tw-border-sq-disabled-gray', 'dark:tw-border-sq-dark-disabled-gray'].join(' ');
|
|
13932
|
+
const borderStyles$3 = ['tw-border-solid', 'tw-border'].join(' ');
|
|
13931
13933
|
const borderActiveClasses = [
|
|
13932
|
-
'
|
|
13933
|
-
'
|
|
13934
|
-
'
|
|
13935
|
-
'
|
|
13936
|
-
'
|
|
13937
|
-
'
|
|
13934
|
+
'hover:tw-border-sq-color-dark',
|
|
13935
|
+
'focus-within:tw-border-sq-color-dark',
|
|
13936
|
+
'active:tw-border-sq-color-dark',
|
|
13937
|
+
'dark:hover:tw-border-sq-color-dark-dark',
|
|
13938
|
+
'dark:focus-within:tw-border-sq-color-dark-dark',
|
|
13939
|
+
'dark:active:tw-border-sq-color-dark-dark',
|
|
13938
13940
|
].join(' ');
|
|
13939
|
-
const textStyles = ['tw
|
|
13941
|
+
const textStyles = ['tw-text-sq-text-color', 'dark:tw-text-sq-dark-text', 'tw-text-sm'].join(' ');
|
|
13940
13942
|
const textActiveStyles = [
|
|
13941
|
-
'
|
|
13942
|
-
'tw
|
|
13943
|
-
'
|
|
13944
|
-
'tw:dark:text-sq-dark-disabled-gray',
|
|
13945
|
-
'tw:dark:hover:text-sq-theme-dark-dark',
|
|
13946
|
-
'tw:dark:focus:text-sq-theme-dark-dark',
|
|
13947
|
-
'tw:dark:active:text-sq-theme-dark-dark',
|
|
13948
|
-
'tw:hover:text-sq-color-dark',
|
|
13949
|
-
'tw:dark:text-sq-dark-disabled-gray',
|
|
13950
|
-
'tw:dark:hover:text-sq-color-dark-dark',
|
|
13943
|
+
'hover:tw-text-sq-color-dark',
|
|
13944
|
+
'dark:tw-text-sq-dark-disabled-gray',
|
|
13945
|
+
'dark:hover:tw-text-sq-color-dark-dark',
|
|
13951
13946
|
].join(' ');
|
|
13952
13947
|
const menuStyles = [
|
|
13953
|
-
'tw
|
|
13954
|
-
'tw
|
|
13955
|
-
'tw
|
|
13956
|
-
'tw
|
|
13957
|
-
'
|
|
13958
|
-
'tw
|
|
13959
|
-
'tw
|
|
13960
|
-
'tw
|
|
13948
|
+
'tw-border-solid',
|
|
13949
|
+
'tw-border',
|
|
13950
|
+
'tw-rounded-b',
|
|
13951
|
+
'tw-border-sq-disabled-gray',
|
|
13952
|
+
'dark:tw-border-sq-dark-disabled-gray',
|
|
13953
|
+
'tw-whitespace-nowrap',
|
|
13954
|
+
'tw-min-w-fit',
|
|
13955
|
+
'!tw-z-[9999]',
|
|
13961
13956
|
].join(' ');
|
|
13962
13957
|
const menuListStyles = [
|
|
13963
|
-
'tw
|
|
13964
|
-
'tw
|
|
13965
|
-
'
|
|
13966
|
-
'tw
|
|
13967
|
-
'tw
|
|
13958
|
+
'tw-rounded-b',
|
|
13959
|
+
'tw-bg-white',
|
|
13960
|
+
'dark:tw-bg-sq-dark-background',
|
|
13961
|
+
'tw-min-w-fit',
|
|
13962
|
+
'!tw-z-[9999]',
|
|
13968
13963
|
'specSelectMenu',
|
|
13969
13964
|
].join(' ');
|
|
13970
13965
|
const groupHeadingStyles = [
|
|
13971
|
-
'tw
|
|
13972
|
-
'
|
|
13973
|
-
'tw
|
|
13974
|
-
'tw
|
|
13975
|
-
'tw
|
|
13966
|
+
'tw-bg-sq-light-gray',
|
|
13967
|
+
'dark:tw-bg-sq-dark-disabled-gray',
|
|
13968
|
+
'tw-text-sq-darkish-gray',
|
|
13969
|
+
'tw-py-1',
|
|
13970
|
+
'tw-px-2.5',
|
|
13976
13971
|
'specSelectGroupHeading',
|
|
13977
13972
|
].join(' ');
|
|
13978
13973
|
const optionStyles = [
|
|
13979
|
-
'
|
|
13980
|
-
'
|
|
13981
|
-
'
|
|
13982
|
-
'tw
|
|
13983
|
-
'tw
|
|
13974
|
+
'hover:tw-bg-sq-gray-highlight',
|
|
13975
|
+
'hover:tw-cursor-pointer',
|
|
13976
|
+
'dark:hover:tw-bg-sq-gray-highlight-dark',
|
|
13977
|
+
'tw-py-1',
|
|
13978
|
+
'tw-px-2.5',
|
|
13984
13979
|
'specSelectOption',
|
|
13985
13980
|
].join(' ');
|
|
13986
|
-
const disabledClasses$3 = ['tw
|
|
13987
|
-
const dropDownIndicatorStyles = `tw
|
|
13988
|
-
const placeholderStyles = ['tw
|
|
13981
|
+
const disabledClasses$3 = ['tw-bg-sq-field-disabled-gray', '!tw-cursor-not-allowed', 'tw-opacity-50'].join(' ');
|
|
13982
|
+
const dropDownIndicatorStyles = `tw-text-sq-disabled-gray ${textActiveStyles} specOpenIt`;
|
|
13983
|
+
const placeholderStyles = ['tw-text-gray-400', 'dark:tw-text-sq-dark-text-lighter', 'specOpenSelect'].join(' ');
|
|
13989
13984
|
const multiValueStyles = [
|
|
13990
|
-
'tw
|
|
13991
|
-
'
|
|
13992
|
-
'tw
|
|
13993
|
-
'tw
|
|
13994
|
-
'tw
|
|
13995
|
-
'tw
|
|
13996
|
-
'tw
|
|
13985
|
+
'tw-bg-sq-disabled-gray',
|
|
13986
|
+
'dark:tw-bg-sq-multi-gray-dark',
|
|
13987
|
+
'tw-text-sm',
|
|
13988
|
+
'tw-py-0.5',
|
|
13989
|
+
'tw-px-1',
|
|
13990
|
+
'tw-m-0.5',
|
|
13991
|
+
'tw-rounded-sm',
|
|
13997
13992
|
'specOpenSelect',
|
|
13998
13993
|
].join(' ');
|
|
13999
13994
|
/**
|
|
@@ -14058,38 +14053,38 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
|
|
|
14058
14053
|
filterOption: filterOption ? filterOption : filterConfig ? createFilter(filterConfig) : undefined,
|
|
14059
14054
|
classNames: {
|
|
14060
14055
|
control: ({ menuIsOpen }) => {
|
|
14061
|
-
let border = menuIsOpen ? 'tw
|
|
14056
|
+
let border = menuIsOpen ? 'tw-rounded-t-md' : 'tw-rounded-md';
|
|
14062
14057
|
// if it's on the left side of the input group make sure the right side is straight and not curved
|
|
14063
14058
|
if (inputGroup === 'left') {
|
|
14064
|
-
border = menuIsOpen ? 'tw
|
|
14059
|
+
border = menuIsOpen ? 'tw-rounded-tl-md' : 'tw-rounded-l-md';
|
|
14065
14060
|
}
|
|
14066
14061
|
else if (inputGroup === 'right') {
|
|
14067
|
-
border = menuIsOpen ? 'tw
|
|
14062
|
+
border = menuIsOpen ? 'tw-rounded-tr-md' : 'tw-rounded-r-md';
|
|
14068
14063
|
}
|
|
14069
14064
|
const appliedClasses = `${borderStyles$3} ${isDisabled ? '' : borderActiveClasses} ${border} ${showError ? errorClasses$2 : borderColorClasses$2} ${small ? 'reactSelectMinHeightSmall' : 'reactSelectMinHeight'} ${controlClassNames}`;
|
|
14070
|
-
return `${appliedClasses} ${baseClasses$3} ${containerStyles} specSelectControl ${isDisabled ? disabledClasses$3 : ''} ${small ? 'tw
|
|
14065
|
+
return `${appliedClasses} ${baseClasses$3} ${containerStyles} specSelectControl ${isDisabled ? disabledClasses$3 : ''} ${small ? 'tw-pl-2 tw-pr-1' : 'tw-pl-2.5 tw-pr-1.5'}`;
|
|
14071
14066
|
},
|
|
14072
14067
|
placeholder: () => placeholderStyles,
|
|
14073
14068
|
container: ({ selectProps }) => {
|
|
14074
|
-
const containerBorderStyles = selectProps?.menuIsOpen ? 'tw
|
|
14075
|
-
return `${textStyles} ${extraClassNames} ${containerBorderStyles} tw
|
|
14069
|
+
const containerBorderStyles = selectProps?.menuIsOpen ? 'tw-rounded-t-md' : 'tw-rounded-md';
|
|
14070
|
+
return `${textStyles} ${extraClassNames} ${containerBorderStyles} !tw-pointer-events-auto`;
|
|
14076
14071
|
},
|
|
14077
14072
|
input: () => textStyles + ' specSelectInput',
|
|
14078
14073
|
menuList: () => menuListStyles,
|
|
14079
14074
|
menu: () => menuStyles,
|
|
14080
|
-
menuPortal: () => 'tw
|
|
14075
|
+
menuPortal: () => '!tw-z-[9000]',
|
|
14081
14076
|
dropdownIndicator: () => dropDownIndicatorStyles,
|
|
14082
14077
|
option: ({ isSelected, isDisabled }) => {
|
|
14083
14078
|
let classes = optionStyles;
|
|
14084
14079
|
if (isDisabled) {
|
|
14085
14080
|
classes += ' specDisabledOption ';
|
|
14086
14081
|
}
|
|
14087
|
-
return isSelected ? classes + ' tw
|
|
14082
|
+
return isSelected ? classes + ' tw-bg-sq-colored-hover dark:tw-bg-sq-colored-hover-dark' : classes;
|
|
14088
14083
|
},
|
|
14089
14084
|
singleValue: () => 'specOpenSelect',
|
|
14090
14085
|
multiValue: () => multiValueStyles,
|
|
14091
|
-
multiValueRemove: () => '
|
|
14092
|
-
clearIndicator: () => 'tw
|
|
14086
|
+
multiValueRemove: () => 'hover:tw-text-sq-danger-color specSelectMultiValueRemove',
|
|
14087
|
+
clearIndicator: () => 'tw-text-sq-disabled-gray hover:tw-text-sq-danger-color specClearSelect',
|
|
14093
14088
|
group: () => 'specSelectGroup',
|
|
14094
14089
|
groupHeading: () => groupHeadingStyles,
|
|
14095
14090
|
},
|
|
@@ -14479,11 +14474,11 @@ var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
|
14479
14474
|
const Dialog = Root$4;
|
|
14480
14475
|
const DialogPortal = Portal$1;
|
|
14481
14476
|
const DialogClose = Close;
|
|
14482
|
-
const DialogContent = React__default.forwardRef(({ className, children, ...props }, ref) => (jsxs(DialogPortal, { children: [jsx$1("div", { className: "tw
|
|
14483
|
-
tw
|
|
14484
|
-
tw
|
|
14477
|
+
const DialogContent = React__default.forwardRef(({ className, children, ...props }, ref) => (jsxs(DialogPortal, { children: [jsx$1("div", { className: "tw-select-none tw-fixed tw-w-full tw-h-full tw-opacity-50 tw-inset-0 tw-z-[1009] tw-bg-sq-dark-background\n data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0\n data-[state=open]:fade-in-0 " }), jsxs(Content$2, { ref: ref, className: `tw-fixed tw-left-[50%] tw-top-0 tw-my-6 tw-translate-x-[-50%] tw-z-[1010] tw-grid
|
|
14478
|
+
tw-gap-4 tw-border tw-bg-sq-white dark:tw-bg-sq-dark-background tw-p-6 tw-shadow-lg tw-duration-200
|
|
14479
|
+
tw-rounded-lg ${className}`, ...props, children: [jsx$1(DialogTitle$1, { className: "tw-hidden" }), children] })] })));
|
|
14485
14480
|
DialogContent.displayName = Content$2.displayName;
|
|
14486
|
-
const DialogHeader = (props) => (jsx$1("div", { className: "tw
|
|
14481
|
+
const DialogHeader = (props) => (jsx$1("div", { className: "tw-w-full tw-justify-between", children: jsx$1("div", { ...props }) }));
|
|
14487
14482
|
DialogHeader.displayName = 'DialogHeader';
|
|
14488
14483
|
const DialogFooter = (props) => jsx$1("div", { ...props });
|
|
14489
14484
|
DialogFooter.displayName = 'DialogFooter';
|
|
@@ -14521,26 +14516,26 @@ const Modal = ({ titleIcon, title = 'Modal title example', titleSuffixLabel, sub
|
|
|
14521
14516
|
let titleIconElement = jsx$1(Fragment, {});
|
|
14522
14517
|
if (titleIcon) {
|
|
14523
14518
|
if (typeof titleIcon === 'string') {
|
|
14524
|
-
titleIconElement = (jsx$1(Icon, { icon: titleIcon, testId: "modalTitleIcon", extraClassNames: "tw
|
|
14519
|
+
titleIconElement = (jsx$1(Icon, { icon: titleIcon, testId: "modalTitleIcon", extraClassNames: "tw-flex tw-text-xl tw-mt-1" }));
|
|
14525
14520
|
}
|
|
14526
14521
|
else {
|
|
14527
|
-
titleIconElement = jsx$1("div", { className: "tw
|
|
14522
|
+
titleIconElement = jsx$1("div", { className: "tw-mt-1.5", children: titleIcon });
|
|
14528
14523
|
}
|
|
14529
14524
|
}
|
|
14530
|
-
return (jsxs(Fragment, { children: [titleIcon && titleIconPosition === 'left' ? jsx$1("div", { className: "tw
|
|
14525
|
+
return (jsxs(Fragment, { children: [titleIcon && titleIconPosition === 'left' ? jsx$1("div", { className: "tw-flex tw-mr-2", children: titleIconElement }) : jsx$1(Fragment, {}), jsx$1(DialogTitle, { asChild: true, children: isTitleEditable ? (jsxs("div", { className: "tw-flex tw-w-full tw-items-center", children: [jsx$1(TextField, { extraClassNames: inputExtraClassNames, value: title, type: "text", testId: "modalTitle", onChange: onTitleChanged, placeholder: titlePlaceholder, required: titleRequired, showError: !!titleError }), titleError && jsx$1("p", { className: "tw-text-sq-danger-color tw-min-w-fit tw-pl-2 tw-mb-0", children: titleError })] })) : (customHeader ?? (jsxs("div", { "data-testid": "modalTitle", className: "modal-title", children: [jsxs("div", { className: "tw-flex tw-items-center", children: [jsx$1("h3", { children: title }), titleSuffixLabel && jsx$1("span", { className: "tw-text-xl tw-pl-0.5", children: titleSuffixLabel })] }), subtitle && (jsx$1("div", { className: "tw-italic tw-text-sm tw-text-left tw-mt-1", "data-testid": "modal-subtitle", children: subtitle }))] }))) }), titleIcon && titleIconPosition === 'right' ? jsx$1("div", { className: "tw-flex tw-ml-4", children: titleIconElement }) : jsx$1(Fragment, {})] }));
|
|
14531
14526
|
};
|
|
14532
|
-
return open ? (jsx$1(Dialog, { open: true, onOpenChange: onClose, modal: keepFocusInsideModal, children: jsxs(DialogContent, { onPointerDownOutside: (e) => (onPointerDownOutside ? onPointerDownOutside(e) : e.preventDefault()), onInteractOutside: (e) => (onInteractOutside ? onInteractOutside(e) : e.preventDefault()), "data-testid": testId, className: classNames(`modalContent tw
|
|
14533
|
-
'tw
|
|
14534
|
-
'tw
|
|
14535
|
-
'tw
|
|
14536
|
-
'tw
|
|
14537
|
-
'tw
|
|
14538
|
-
'tw
|
|
14539
|
-
'tw
|
|
14540
|
-
'tw
|
|
14541
|
-
'tw
|
|
14542
|
-
'tw
|
|
14543
|
-
}, dialogClassName), children: [jsxs(DialogHeader, { className: "modal-header tw
|
|
14527
|
+
return open ? (jsx$1(Dialog, { open: true, onOpenChange: onClose, modal: keepFocusInsideModal, children: jsxs(DialogContent, { onPointerDownOutside: (e) => (onPointerDownOutside ? onPointerDownOutside(e) : e.preventDefault()), onInteractOutside: (e) => (onInteractOutside ? onInteractOutside(e) : e.preventDefault()), "data-testid": testId, className: classNames(`modalContent tw-w-full !tw-p-0 tw-border-none tw-shadow-none dark:tw-text-sq-dark-text !tw-gap-0`, {
|
|
14528
|
+
'tw-max-w-xs': size === 'xs',
|
|
14529
|
+
'tw-max-w-sm': size === 'sm',
|
|
14530
|
+
'tw-max-w-md': size === 'md',
|
|
14531
|
+
'tw-max-w-lg': size === 'lg',
|
|
14532
|
+
'tw-max-w-xl': size === 'xl',
|
|
14533
|
+
'tw-max-w-2xl': size === '2xl',
|
|
14534
|
+
'tw-max-w-3xl': size === '3xl',
|
|
14535
|
+
'tw-max-w-4xl': size === '4xl',
|
|
14536
|
+
'tw-max-w-5xl': size === '5xl',
|
|
14537
|
+
'tw-max-w-6xl': size === '6xl',
|
|
14538
|
+
}, dialogClassName), children: [jsxs(DialogHeader, { className: "modal-header tw-flex tw-w-full tw-justify-between tw-border-sq-disabled-gray\n dark:tw-border-sq-dark-disabled-gray tw-border-0 tw-border-b tw-px-6 tw-py-4", children: [jsx$1("div", { className: "tw-flex tw-w-full", children: renderTitle() }), !hideCloseIcon && (jsx$1(DialogClose, { autoFocus: false, className: "[&:has(:focus-visible)]:none tw-opacity-70 tw-bg-transparent hover:tw-opacity-100 close tw-text-base tw-cursor-pointer tw-ml-4", "data-testid": "closeButton", children: jsx$1("span", { className: "tw-cursor-pointer", children: "\u00D7" }) }))] }), jsx$1(DialogDescription, { className: "modal-body tw-px-6 tw-py-4 tw-overflow-y-auto", asChild: true, children: children }), !hideFooterButtons && (jsx$1(DialogFooter, { className: "modal-footer tw-px-6 tw-py-4", children: modalFooter ?? (jsxs("div", { className: "tw-flex tw-w-full tw-justify-between", "data-testid": "modalFooter", children: [jsx$1("div", { className: "tw-flex tw-justify-start", children: customButton && (jsx$1(Button, { label: customButtonLabel, onClick: onClickCustomButton, disabled: disableCustomButton, extraClassNames: "tw-justify-start tw-min-w-[100px]", testId: "customButton", variant: customButtonVariant })) }), jsxs("div", { className: "tw-flex tw-justify-end", children: [jsx$1("div", { className: "tw-flex tw-items-center", children: middleFooterSection }), !hideCancelButton && (jsx$1(DialogClose, { asChild: true, children: jsx$1(Button, { label: cancelButtonLabel, extraClassNames: "tw-mr-5 tw-min-w-[100px]", tooltip: cancelButtonTooltip, variant: "outline", stopPropagation: false, testId: "cancelButton" }) })), !hideSubmitButton && (jsx$1(Button, { label: submitButtonLabel, onClick: handleSubmit, disabled: disableSubmitButton || isLoading, variant: submitButtonVariant, stopPropagation: stopPropagationSubmitButton, tooltip: submitButtonTooltip, icon: isLoading ? 'fc-loading-notch tw-animate-spin' : undefined, iconPosition: "left", testId: "submitButton", extraClassNames: "tw-min-w-[100px]" }))] })] })) }))] }) })) : (jsx$1(Fragment, {}));
|
|
14544
14539
|
};
|
|
14545
14540
|
|
|
14546
14541
|
function createCollection(name) {
|
|
@@ -14998,11 +14993,11 @@ const Tabs = ({ tabs, defaultActiveTab, activeTab, onTabSelect, extraClassNames,
|
|
|
14998
14993
|
return;
|
|
14999
14994
|
onTabSelect && onTabSelect(tabId);
|
|
15000
14995
|
};
|
|
15001
|
-
return (jsxs(Root2$2, { className: `tw
|
|
15002
|
-
? 'tw
|
|
15003
|
-
: '
|
|
15004
|
-
? '
|
|
15005
|
-
: '
|
|
14996
|
+
return (jsxs(Root2$2, { className: `tw-flex tw-flex-col tw-min-w-[300px] tw-max-w-full tw-flex-grow focus-visible:tw-outline-none ${extraClassNames || ''}`, defaultValue: defaultActiveTab, "data-testid": testId, id: id, value: activeTab, onValueChange: handleTabSelect, children: [jsx$1(List, { className: `tw-flex tw-flex-row tw-flex-wrap tw-z-[1001]`, children: tabs.map(({ id, icon, label, tabExtraClassNames, testId: tabsTestId, disabled, tabLabelExtraClassNames = '' }, index) => (jsx$1(Trigger$2, { className: `tw-bg-sq-white dark:tw-bg-sq-dark-background tw-h-[25px] focus-visible:tw-outline-none tw-min-w-[100px] tw-px-4 tw-border-solid dark:tw-border-gray-700 tw-flex tw-flex-1 tw-justify-center tw-items-center tw-border-r-[2px] last:tw-border-r-0 ${stretchTabs ? '' : 'tw-max-w-max tw-min-w-fit'} ${tabExtraClassNames || ''} ${activeTab === id
|
|
14997
|
+
? 'tw-border-b-sq-color-dark dark:tw-border-b-sq-color-dark tw-border-b-[3px]'
|
|
14998
|
+
: 'hover:tw-bg-sq-light-gray tw-border-b-[1px] hover:dark:tw-bg-gray-700'}`, "data-testid": tabsTestId, disabled: disabled, value: id, children: jsxs("span", { className: "tw-flex tw-items-center tw-overflow-hidden tw-pb-[3px]", children: [icon && jsx$1(Icon, { icon: icon, testId: `${id}_tab-icon`, extraClassNames: "tw-text-[0.9375rem] tw-mr-[7px] tw-flex-shrink-0" }), jsx$1("span", { className: `tw-text-[0.875rem] tw-font-medium tw-whitespace-nowrap tw-overflow-hidden tw-text-ellipsis ${activeTab === id
|
|
14999
|
+
? 'dark:tw-text-sq-dark-text tw-text-gray-500'
|
|
15000
|
+
: 'dark:tw-text-sq-color-dark-dark tw-text-sq-color-dark'} ${tabLabelExtraClassNames}`, children: label })] }) }, `${label}-${id}-${index}`))) }), tabs.map((tab, index) => (jsx$1(Content$1, { className: `tw-bg-sq-white dark:tw-bg-sq-dark-background tw-overflow-y-auto -tw-mt-[1px] tw-border-t-[1px] dark:tw-border-gray-700 tw-z-[500] tw-flex tw-flex-col tw-flex-grow focus-visible:tw-outline-none ${tab.tabContentExtraClassNames || ''}`, value: tab.id, children: tab.content }, `${tab.label}_${index}_content`)))] }));
|
|
15006
15001
|
};
|
|
15007
15002
|
|
|
15008
15003
|
var COLLAPSIBLE_NAME = "Collapsible";
|
|
@@ -15427,18 +15422,18 @@ var Trigger2 = AccordionTrigger;
|
|
|
15427
15422
|
var Content2$2 = AccordionContent;
|
|
15428
15423
|
|
|
15429
15424
|
const Accordion = ({ accordionItems, defaultValue, value, onItemSelect, disabled, extraClassNames, testId, }) => {
|
|
15430
|
-
return (jsx$1(Root2$1, { className: `tw
|
|
15425
|
+
return (jsx$1(Root2$1, { className: `tw-rounded-md tw-w-full focus-visible:tw-outline-none ${extraClassNames || ''}`, type: "single", defaultValue: defaultValue, value: value, collapsible: true, "data-testid": testId, onValueChange: (_value) => onItemSelect(_value), children: accordionItems.map((item) => (jsxs(Item, { className: `tw-bg-transparent tw-p-0 tw-flex tw-flex-col tw-w-full`, disabled: disabled, value: item.value, children: [jsx$1(Trigger2, { disabled: disabled, className: `tw-w-full tw-cursor-default focus-visible:tw-outline-none`, children: item.trigger }), jsx$1(Content2$2, { className: `data-[state=open]:tw-animate-slideDown data-[state=closed]:tw-animate-slideUp tw-overflow-hidden focus-visible:tw-outline-none ${item.contentClassNames || ''}`, children: item.content })] }, item.value))) }));
|
|
15431
15426
|
};
|
|
15432
15427
|
|
|
15433
|
-
const bgStyles$2 = ['tw
|
|
15428
|
+
const bgStyles$2 = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
|
|
15434
15429
|
const borderStyles$2 = [
|
|
15435
|
-
'tw
|
|
15436
|
-
'tw
|
|
15437
|
-
'tw
|
|
15438
|
-
'tw
|
|
15439
|
-
'
|
|
15430
|
+
'tw-border-solid',
|
|
15431
|
+
'tw-border',
|
|
15432
|
+
'tw-rounded-popover',
|
|
15433
|
+
'tw-border-sq-disabled-gray',
|
|
15434
|
+
'dark:tw-border-gray-500',
|
|
15440
15435
|
].join(' ');
|
|
15441
|
-
const disabledClasses$2 = ['tw
|
|
15436
|
+
const disabledClasses$2 = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
|
|
15442
15437
|
const ButtonWithPopover = ({ children, trigger, id, hasArrow, extraTriggerClassNames, extraPopoverClassNames, containerTestId, onInteractOutside, onPointerDownOutside, isTriggerAsChild = false, shouldTriggerFullWidth = false, disabled = false, align = 'end', alignOffset = -35, placement = 'bottom', placementOffset = 2, isHoverEnabled = false, hoverOpenDelay = 300, onOpenChange, isOpen, isCloseOnContentClick = false, isPortal = false, ...tooltipProps }) => {
|
|
15443
15438
|
const tooltipData = getQTipData(tooltipProps);
|
|
15444
15439
|
const timeout = useRef(null);
|
|
@@ -15469,12 +15464,12 @@ const ButtonWithPopover = ({ children, trigger, id, hasArrow, extraTriggerClassN
|
|
|
15469
15464
|
};
|
|
15470
15465
|
React.useEffect(() => clearHoverTimeout, []);
|
|
15471
15466
|
const renderContent = () => {
|
|
15472
|
-
return (jsx$1(Content2$3, { sideOffset: placementOffset, align: align, side: placement, onInteractOutside: onInteractOutside, onPointerDownOutside: onPointerDownOutside, alignOffset: isHoverEnabled ? -10 : alignOffset, asChild: true, onClick: () => isCloseOnContentClick && onOpenChange && onOpenChange(false), className: "focus-visible:tw
|
|
15473
|
-
|
|
15474
|
-
${extraPopoverClassNames || ''}`, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: "tw
|
|
15467
|
+
return (jsx$1(Content2$3, { sideOffset: placementOffset, align: align, side: placement, onInteractOutside: onInteractOutside, onPointerDownOutside: onPointerDownOutside, alignOffset: isHoverEnabled ? -10 : alignOffset, asChild: true, onClick: () => isCloseOnContentClick && onOpenChange && onOpenChange(false), className: "focus-visible:tw-outline-none tw-outline-none tw-w-full tw-h-full", children: jsxs("div", { "data-testid": containerTestId, className: `${bgStyles$2} ${borderStyles$2} tw-relative tw-z-[1200] tw-min-w-6 focus-visible:tw-outline-none tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out
|
|
15468
|
+
data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade tw-text-sq-text-color
|
|
15469
|
+
${extraPopoverClassNames || ''}`, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: "tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-mt-[-7px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500" }) })), children] }) }));
|
|
15475
15470
|
};
|
|
15476
15471
|
const renderPopover = (popoverOpenState) => {
|
|
15477
|
-
return (jsxs(Root2$3, { open: popoverOpenState, defaultOpen: false, onOpenChange: onOpenChange, children: [trigger ? (jsx$1(Trigger$3, { id: id, asChild: isTriggerAsChild, className: `
|
|
15472
|
+
return (jsxs(Root2$3, { open: popoverOpenState, defaultOpen: false, onOpenChange: onOpenChange, children: [trigger ? (jsx$1(Trigger$3, { id: id, asChild: isTriggerAsChild, className: `focus-visible:tw-outline-none tw-outline-none ${shouldTriggerFullWidth ? 'tw-w-full tw-h-full' : ''}`, disabled: disabled, children: jsx$1("div", { ...tooltipData, onMouseOver: onHoverStart, onMouseOut: onHoverEnd, className: `tw-bg-transparent focus-visible:tw-outline-none tw-outline-none ${disabled ? disabledClasses$2 : ''} ${shouldTriggerFullWidth ? 'tw-flex tw-flex-col tw-items-center tw-justify-center' : 'tw-inline'} ${extraTriggerClassNames || ''}`, children: trigger }) })) : (jsx$1(Trigger$3, { asChild: true, children: jsx$1("div", {}) })), isPortal ? jsx$1(Portal$2, { children: renderContent() }) : renderContent()] }));
|
|
15478
15473
|
};
|
|
15479
15474
|
return isHoverEnabled ? renderPopover(isHoveredOpen) : renderPopover(isOpen);
|
|
15480
15475
|
};
|
|
@@ -16539,65 +16534,65 @@ var SubTrigger2 = DropdownMenuSubTrigger;
|
|
|
16539
16534
|
var SubContent2 = DropdownMenuSubContent;
|
|
16540
16535
|
|
|
16541
16536
|
const borderStyles$1 = [
|
|
16542
|
-
'tw
|
|
16543
|
-
'tw
|
|
16544
|
-
'tw
|
|
16545
|
-
'tw
|
|
16546
|
-
'
|
|
16537
|
+
'tw-border-solid',
|
|
16538
|
+
'tw-border',
|
|
16539
|
+
'tw-rounded-popover',
|
|
16540
|
+
'tw-border-sq-disabled-gray',
|
|
16541
|
+
'dark:tw-border-gray-500',
|
|
16547
16542
|
].join(' ');
|
|
16548
|
-
const bgStyles$1 = ['tw
|
|
16549
|
-
const disabledClasses$1 = ['tw
|
|
16543
|
+
const bgStyles$1 = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
|
|
16544
|
+
const disabledClasses$1 = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
|
|
16550
16545
|
const ButtonWithDropdown = ({ dropdownItems, triggerIcon, id, extraClassNames = '', contentExtraClassNames = '', containerTestId, disabled = false, align = 'end', placement = 'bottom', placementOffset = 5, alignOffset = -35, hasArrow = false, onOpenChange, isOpen, setFocusOnTriggerOnClose = true, keepFocusInsideDropdown = true, onContainerClick, ...tooltipProps }) => {
|
|
16551
16546
|
const tooltipData = getQTipData(tooltipProps);
|
|
16552
|
-
return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, className: `tw
|
|
16547
|
+
return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, className: `tw-border-none focus-visible:tw-outline-none focus:tw-outline-none focus-within:tw-outline-none`, disabled: disabled, children: jsx$1("div", { ...tooltipData, className: `tw-bg-transparent tw-flex tw-flex-col tw-items-center focus-visible:tw-outline-none focus:tw-outline-none focus-within:tw-outline-none ${disabled ? disabledClasses$1 : ''} ${extraClassNames}`, children: triggerIcon }) }), jsx$1(Portal2, { children: jsx$1(Content2, { onClick: onContainerClick, sideOffset: placementOffset, side: placement, align: align, alignOffset: alignOffset, asChild: true, onCloseAutoFocus: (e) => !setFocusOnTriggerOnClose && e.preventDefault(), className: "focus-visible:tw-outline-none tw-outline-none", children: jsxs("div", { "data-testid": containerTestId, className: `${bgStyles$1} tw-relative tw-z-[1200] tw-min-w-6 tw-py-2 focus-visible:tw-outline-none tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out forceFont data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade ${borderStyles$1} ${contentExtraClassNames}`, children: [hasArrow && (jsx$1(Arrow2, { asChild: true, children: jsx$1("div", { className: " tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500 tw-mt-[-7px]" }) })), dropdownItems.map((item, index) => {
|
|
16553
16548
|
const tooltipData = getQTipData(item);
|
|
16554
16549
|
if (item.isLabel) {
|
|
16555
|
-
return (jsxs(Label2, { className: item.itemExtraClassNames, ...tooltipData, children: [item.icon && (jsx$1(Icon, { icon: item.icon, testId: item.iconTestId, type: "text", color: item.iconColor, extraClassNames: "tw
|
|
16550
|
+
return (jsxs(Label2, { className: item.itemExtraClassNames, ...tooltipData, children: [item.icon && (jsx$1(Icon, { icon: item.icon, testId: item.iconTestId, type: "text", color: item.iconColor, extraClassNames: "tw-text-sq-text-color dark:tw-text-sq-white tw-w-[18px]" })), jsx$1("div", { "data-testid": item.labelTestId, className: `tw-text-[0.8125rem] tw-ml-1 ${item.disabled ? 'tw-text-sq-disabled-gray' : 'tw-text-sq-text-color dark:tw-text-sq-white'} tw-not-italic tw-font-normal ${item.labelClasses}`, children: item.label })] }, (item.id || '') + index));
|
|
16556
16551
|
}
|
|
16557
16552
|
if (Array.isArray(item.subMenuItems) && item.subMenuItems.length > 0) {
|
|
16558
|
-
return (jsxs(Sub2, { children: [jsxs(SubTrigger2, { id: id, className: `tw
|
|
16559
|
-
? 'tw
|
|
16560
|
-
: 'tw
|
|
16561
|
-
return (jsxs(Item2, { onSelect: subItem.onClick, "data-qtip-text": subItem.tooltip, className: "tw
|
|
16562
|
-
? 'tw
|
|
16563
|
-
: 'tw
|
|
16553
|
+
return (jsxs(Sub2, { children: [jsxs(SubTrigger2, { id: id, className: `tw-cursor-pointer tw-flex tw-justify-between dark:tw-text-sq-white hover:tw-bg-sq-gray-highlight dark:hover:tw-bg-sq-gray-highlight-dark tw-leading-none tw-items-center tw-h-[27px] tw-pl-[19px] tw-relative tw-select-none tw-outline-none data-[disabled]:tw-pointer-events-none ${item.itemExtraClassNames || ''}`, "data-testid": item.testId, disabled: item.disabled, ...tooltipData, children: [jsxs("div", { className: "tw-flex", children: [item.icon && (jsx$1(Icon, { icon: item.icon, extraClassNames: `tw-w-[18px] ${item.disabled
|
|
16554
|
+
? '!tw-text-sq-disabled-gray'
|
|
16555
|
+
: 'tw-text-sq-text-color dark:tw-text-sq-white'} ${item.iconExtraClassNames || ''}` })), jsx$1("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw-text-[0.8125rem] tw-ml-1 ${item.disabled && '!tw-opacity-30'} tw-not-italic tw-font-semibold ${item.labelClasses}`, children: item.label })] }), jsx$1(Icon, { small: true, icon: "fc-arrow-dropdown -tw-rotate-90", extraClassNames: `${item.disabled ? 'tw-text-sq-disabled-gray' : 'tw-text-sq-text-color dark:tw-text-sq-white'} tw-w-[18px] tw-ml-4 tw-text-[0.5rem] tw-justify-center tw-flex` })] }), jsx$1(Portal2, { children: jsx$1(SubContent2, { className: "focus-visible:tw-outline-none tw-outline-none", children: jsx$1("div", { "data-testid": containerTestId, className: `${bgStyles$1} tw-relative tw-z-[1000] tw-min-w-6 tw-py-2 focus-visible:tw-outline-none tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out forceFont data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade ${borderStyles$1}`, children: item.subMenuItems.map((subItem, subIndex) => {
|
|
16556
|
+
return (jsxs(Item2, { onSelect: subItem.onClick, "data-qtip-text": subItem.tooltip, className: "tw-cursor-pointer tw-flex dark:tw-text-sq-white hover:tw-bg-sq-gray-highlight dark:hover:tw-bg-sq-gray-highlight-dark tw-leading-none tw-items-center tw-h-[27px] tw-px-[19px] tw-relative tw-select-none tw-outline-none data-[disabled]:tw-pointer-events-none", disabled: subItem.disabled, children: [subItem.iconClass && (jsx$1(Icon, { icon: subItem.iconClass, type: "text", extraClassNames: `tw-w-[18px] ${item.disabled && '!tw-opacity-30'}` })), jsx$1("div", { className: `tw-text-[0.8125rem] tw-ml-1 ${subItem.disabled
|
|
16557
|
+
? 'tw-text-sq-disabled-gray'
|
|
16558
|
+
: 'tw-text-sq-text-color dark:tw-text-sq-white'} tw-not-italic tw-font-normal ${item.labelClasses}`, children: subItem.label })] }, subItem.label + subIndex));
|
|
16564
16559
|
}) }) }) })] }, (item.id || item.icon || '') + index));
|
|
16565
16560
|
}
|
|
16566
16561
|
return (jsxs("div", { ...tooltipData, children: [jsxs(Item2, { "data-customid": item.itemCustomId, onSelect: (e) => {
|
|
16567
16562
|
item.onClick(e);
|
|
16568
|
-
}, className: `tw
|
|
16563
|
+
}, className: `tw-cursor-pointer tw-flex dark:tw-text-sq-white hover:tw-bg-sq-gray-highlight dark:hover:tw-bg-sq-gray-highlight-dark tw-leading-none tw-items-center tw-min-h-[27px] tw-px-[19px] tw-relative tw-select-none tw-outline-none data-[disabled]:tw-pointer-events-none ${item.itemExtraClassNames || ''}`, "data-testid": item.testId, disabled: item.disabled, children: [item.icon && (jsx$1(Icon, { icon: item.icon, testId: item.iconTestId, type: (item.iconType || 'text'), color: item.iconColor, customId: item.iconCustomId, extraClassNames: `tw-w-[18px] ${item.disabled && '!tw-opacity-30'} ${item.iconExtraClassNames || ''}` })), jsx$1("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw-text-[0.8125rem] tw-ml-1 ${item.disabled ? 'tw-text-sq-disabled-gray' : 'tw-text-sq-text-color dark:tw-text-sq-white'} tw-not-italic tw-font-normal ${item.labelClasses || ''}`, children: item.label })] }, (item.id || item.icon || '') + index), item.hasDivider && (jsx$1(Separator2, { "data-testid": `dropdown-divider-${index}`, className: "tw-h-[1px] tw-bg-sq-disabled-gray dark:tw-bg-gray-500 tw-my-[8px]" }))] }, (item.id || '') + index));
|
|
16569
16564
|
})] }) }) })] }));
|
|
16570
16565
|
};
|
|
16571
16566
|
|
|
16572
|
-
const baseClasses$2 = 'tw
|
|
16573
|
-
' tw
|
|
16574
|
-
const darkTheme$1 = '
|
|
16575
|
-
const lightTheme$1 = 'tw
|
|
16576
|
-
const errorClasses$1 = 'tw
|
|
16577
|
-
const borderColorClasses$1 = 'tw
|
|
16567
|
+
const baseClasses$2 = 'tw-mx-auto tw-p-4 tw-leading-normal tw-outline-none tw-py-2 tw-px-3 tw-rounded-[10px] tw-w-full tw-relative' +
|
|
16568
|
+
' tw-border-solid tw-border tw-text-sm tw-flex tw-flex-col tw-justify-center tw-items-center';
|
|
16569
|
+
const darkTheme$1 = 'dark:tw-bg-sq-colored-hover-dark dark:tw-text-sq-dark-text';
|
|
16570
|
+
const lightTheme$1 = 'tw-text-sq-text-color tw-bg-sq-colored-hover';
|
|
16571
|
+
const errorClasses$1 = 'tw-border-sq-danger-color';
|
|
16572
|
+
const borderColorClasses$1 = 'tw-border-sq-color-dark';
|
|
16578
16573
|
/**
|
|
16579
16574
|
* Alert.
|
|
16580
16575
|
*/
|
|
16581
16576
|
const Alert = ({ children, dismissible = true, onClose, show = true, variant, testId = 'alert-id', id, extraClassNames, ...tooltipProps }) => {
|
|
16582
16577
|
const appliedTheme = {
|
|
16583
16578
|
theme: `${lightTheme$1} ${darkTheme$1}`,
|
|
16584
|
-
formulaError: 'tw
|
|
16585
|
-
danger: 'tw
|
|
16586
|
-
warning: 'tw
|
|
16587
|
-
gray: 'tw
|
|
16579
|
+
formulaError: 'tw-text-red-800 tw-bg-red-200 !tw-rounded-[4px]',
|
|
16580
|
+
danger: 'tw-text-sq-text-color tw-bg-sq-danger-color',
|
|
16581
|
+
warning: 'tw-bg-sq-bg-warning-color tw-text-sq-text-color',
|
|
16582
|
+
gray: 'tw-bg-sq-light-gray tw-text-sq-text-color dark:tw-bg-sq-worksheetspanel-gray-dark dark:tw-text-sq-dark-text',
|
|
16588
16583
|
};
|
|
16589
16584
|
const appliedBorderTheme = {
|
|
16590
16585
|
theme: borderColorClasses$1,
|
|
16591
16586
|
danger: errorClasses$1,
|
|
16592
|
-
warning: 'tw
|
|
16593
|
-
gray: 'tw
|
|
16594
|
-
formulaError: 'tw
|
|
16587
|
+
warning: 'tw-border-none',
|
|
16588
|
+
gray: 'tw-border-sq-darkish-gray',
|
|
16589
|
+
formulaError: 'tw-border-red-100',
|
|
16595
16590
|
};
|
|
16596
16591
|
const appliedClasses = `${baseClasses$2} ${appliedTheme[variant]} ${extraClassNames} ${appliedBorderTheme[variant]}`;
|
|
16597
16592
|
if (!show) {
|
|
16598
16593
|
return jsx$1("div", {});
|
|
16599
16594
|
}
|
|
16600
|
-
return (jsxs("div", { "data-testid": testId, id: id, className: appliedClasses, children: [children, dismissible && (jsx$1(Icon, { icon: "fc-delete", type: variant.match(/danger|warning|formulaError/) ? 'color' : 'theme', color: variant.match(/danger|warning|formulaError/) ? 'inherit' : undefined, extraClassNames: `tw
|
|
16595
|
+
return (jsxs("div", { "data-testid": testId, id: id, className: appliedClasses, children: [children, dismissible && (jsx$1(Icon, { icon: "fc-delete", type: variant.match(/danger|warning|formulaError/) ? 'color' : 'theme', color: variant.match(/danger|warning|formulaError/) ? 'inherit' : undefined, extraClassNames: `tw-self-end tw-text-[0.6875rem] tw-cursor-pointer tw-absolute tw-right-[10px] tw-top-[10px] ${variant.match(/danger|warning|gray|formulaError/) ? 'tw-text-sq-text-color dark:tw-text-sq-dark-text' : ''}`, testId: `${testId}-close-btn`, onClick: onClose, ...tooltipProps }))] }));
|
|
16601
16596
|
};
|
|
16602
16597
|
|
|
16603
16598
|
/**
|
|
@@ -16616,40 +16611,47 @@ const Alert = ({ children, dismissible = true, onClose, show = true, variant, te
|
|
|
16616
16611
|
* @param tooltipProps - props to pass to the tooltip
|
|
16617
16612
|
*/
|
|
16618
16613
|
const SvgIcon = ({ onClick, icon, color, type = 'default', extraClassNames, viewBox = '0 0 19 19', id, testId, customId, ...tooltipProps }) => {
|
|
16619
|
-
const appliedClassNames = `${onClick ? 'tw
|
|
16620
|
-
tw
|
|
16614
|
+
const appliedClassNames = `${onClick ? 'tw-cursor-pointer' : ''} ${extraClassNames} focus:tw-outline-none focus-visible:tw-outline-none
|
|
16615
|
+
tw-outline-none`;
|
|
16621
16616
|
const tooltipData = getQTipData(tooltipProps);
|
|
16622
16617
|
const appliedType = type === 'default' ? 'currentColor' : 'rgb(var(--sq-icon))';
|
|
16623
|
-
return (jsx$1("div", { onClick: onClick, ...tooltipData, className: `svgContainer ${appliedClassNames}`, children: jsx$1("svg", { xmlns: "http://www.w3.org/2000/svg", className: `tw
|
|
16618
|
+
return (jsx$1("div", { onClick: onClick, ...tooltipData, className: `svgContainer ${appliedClassNames}`, children: jsx$1("svg", { xmlns: "http://www.w3.org/2000/svg", className: `tw-sq-icon dark:tw-text-white`, viewBox: viewBox, fill: color ? color : appliedType, "data-testid": testId, children: jsx$1("path", { d: getSvgIconPath(icon) }) }) }));
|
|
16624
16619
|
};
|
|
16625
16620
|
|
|
16626
16621
|
const SeeqActionDropdownItem = (item) => {
|
|
16627
16622
|
let renderIcon = jsx$1(Fragment, {});
|
|
16628
16623
|
if (item.icon) {
|
|
16629
|
-
renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames:
|
|
16624
|
+
renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: 'tw-rounded-[3px] tw-h-8 tw-w-8 tw-p-1 tw-flex tw-justify-center tw-items-center tw-bg-sq-color-dark' +
|
|
16625
|
+
' dark:tw-text-sq-white tw-text-[22px] tw-text-sq-white ' +
|
|
16626
|
+
item.iconExtraClassNames, ...item })) : (jsx$1(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw-rounded-[3px] tw-h-8 tw-w-8 tw-flex tw-justify-center tw-items-center tw-bg-sq-color-dark dark:tw-text-sq-white tw-text-[1.375rem] tw-text-sq-white ' +
|
|
16627
|
+
item.iconExtraClassNames }));
|
|
16630
16628
|
}
|
|
16631
|
-
return (jsxs("div", { className: "tw
|
|
16629
|
+
return (jsxs("div", { className: "tw-flex-col tw-flex tw-p-[10px] tw-pl-5 tw-w-[600px]", children: [jsxs("div", { className: "tw-flex tw-flex-row tw-gap-2 tw-items-end", children: [renderIcon, jsx$1("h4", { className: "tw-text-base tw-font-[600] tw-leading-[20px] mb-0", children: item.display })] }), jsx$1("div", { className: "tw-text-[0.8125rem] tw-font-normal", children: item.text })] }));
|
|
16632
16630
|
};
|
|
16633
16631
|
const ViewWorkbench = (item) => {
|
|
16634
16632
|
let renderIcon = jsx$1(Fragment, {});
|
|
16635
16633
|
if (item.icon) {
|
|
16636
|
-
renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: 'tw
|
|
16634
|
+
renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: 'tw-flex tw-w-5 tw-justify-center tw-items-center tw-text-[1.25rem] dark:tw-text-sq-white' +
|
|
16635
|
+
' tw-text-sq-text-color ' +
|
|
16636
|
+
item.iconExtraClassNames, type: "default", ...item })) : (jsx$1(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw-flex tw-justify-center tw-items-center tw-text-[1.25rem] dark:tw-text-sq-white' +
|
|
16637
|
+
' tw-text-sq-text-color ' +
|
|
16638
|
+
item.iconExtraClassNames }));
|
|
16637
16639
|
}
|
|
16638
|
-
return (jsx$1("div", { className: "tw
|
|
16640
|
+
return (jsx$1("div", { className: "tw-flex-col tw-flex tw-p-[10px]", children: jsxs("div", { className: "tw-flex tw-flex-row tw-gap-2 tw-items-end", children: [renderIcon, jsx$1("div", { className: "tw-text-[0.8125rem]", children: item.display })] }) }));
|
|
16639
16641
|
};
|
|
16640
16642
|
const InsertSeeqContent = (item) => {
|
|
16641
|
-
return (jsxs("div", { className: "tw
|
|
16643
|
+
return (jsxs("div", { className: "tw-flex-col tw-flex tw-justify-start tw-p-[10px] tw-font-normal tw-text-left tw-text-sq-text-color dark:tw-text-sq-dark-text", children: [jsx$1("h5", { className: "tw-text-[1rem] tw-font-medium tw-text-sq-color-dark tw-leading-[18px]", children: item.display }), jsx$1("div", { className: "tw-text-[0.8125rem] tw-text-sq-text-color dark:tw-text-sq-dark-text !tw-mt-1", children: item.text })] }));
|
|
16642
16644
|
};
|
|
16643
16645
|
|
|
16644
16646
|
const borderStyles = [
|
|
16645
|
-
'tw
|
|
16646
|
-
'tw
|
|
16647
|
-
'tw
|
|
16648
|
-
'tw
|
|
16649
|
-
'
|
|
16647
|
+
'tw-border-solid',
|
|
16648
|
+
'tw-border',
|
|
16649
|
+
'tw-rounded-md',
|
|
16650
|
+
'tw-border-sq-disabled-gray',
|
|
16651
|
+
'dark:tw-border-gray-500',
|
|
16650
16652
|
].join(' ');
|
|
16651
|
-
const bgStyles = ['tw
|
|
16652
|
-
const disabledClasses = ['tw
|
|
16653
|
+
const bgStyles = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
|
|
16654
|
+
const disabledClasses = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
|
|
16653
16655
|
const renderItem = (variant, item) => {
|
|
16654
16656
|
switch (variant) {
|
|
16655
16657
|
case 'create-workbench':
|
|
@@ -16664,31 +16666,31 @@ const renderItem = (variant, item) => {
|
|
|
16664
16666
|
};
|
|
16665
16667
|
const SeeqActionDropdown = ({ seeqActionDropdownItems, trigger, id, extraClassNames, containerTestId, disabled = false, align = 'end', placement = 'bottom', placementOffset = 5, alignOffset = -35, hasArrow = false, onOpenChange, isOpen, setFocusOnTriggerOnClose = true, keepFocusInsideDropdown = true, variant, ...tooltipProps }) => {
|
|
16666
16668
|
const tooltipData = getQTipData(tooltipProps);
|
|
16667
|
-
return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, "data-testid": id, className: `tw
|
|
16668
|
-
' tw
|
|
16669
|
-
'
|
|
16670
|
-
' forceFont
|
|
16671
|
-
borderStyles, children: [hasArrow && (jsx$1(Arrow2, { asChild: true, children: jsx$1("div", { className: " tw
|
|
16669
|
+
return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, "data-testid": id, className: `tw-border-none focus-visible:tw-outline-none focus:tw-outline-none focus-within:tw-outline-none`, asChild: true, disabled: disabled, children: jsx$1("div", { ...tooltipData, className: `tw-bg-transparent tw-flex tw-flex-col tw-items-center focus-visible:tw-outline-none focus:tw-outline-none focus-within:tw-outline-none ${disabled ? disabledClasses : ''} ${extraClassNames || ''}`, children: trigger }) }), jsx$1(Content2, { sideOffset: placementOffset, side: placement, align: align, alignOffset: alignOffset, asChild: true, onCloseAutoFocus: (e) => !setFocusOnTriggerOnClose && e.preventDefault(), className: "focus-visible:tw-outline-none tw-outline-none", children: jsxs("div", { "data-testid": containerTestId, className: bgStyles +
|
|
16670
|
+
' tw-relative tw-z-[1200] tw-min-w-6 tw-py-2 focus-visible:tw-outline-none tw-outline-none' +
|
|
16671
|
+
' data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out' +
|
|
16672
|
+
' forceFont data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade ' +
|
|
16673
|
+
borderStyles, children: [hasArrow && (jsx$1(Arrow2, { asChild: true, children: jsx$1("div", { className: " tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500 tw-mt-[-7px]" }) })), seeqActionDropdownItems.map((item, index) => {
|
|
16672
16674
|
return (jsxs("div", { children: [jsx$1(Item2, { onSelect: (e) => {
|
|
16673
16675
|
item.action(e);
|
|
16674
|
-
}, className: `tw
|
|
16676
|
+
}, className: `tw-cursor-pointer tw-flex dark:tw-text-sq-white hover:tw-bg-sq-gray-highlight dark:hover:tw-bg-sq-gray-highlight-dark tw-relative tw-select-none tw-outline-none data-[disabled]:tw-text-sq-disabled-gray data-[disabled]:tw-pointer-events-none`, "data-testid": item.testId, disabled: !item.enabled, children: renderItem(variant, item) }), item.divider && (jsx$1(Separator2, { "data-testid": `dropdown-divider-${index}`, className: "tw-h-[1px] tw-bg-sq-disabled-gray dark:tw-bg-gray-500 tw-my-[8px]" }))] }, item.display + index));
|
|
16675
16677
|
})] }) })] }));
|
|
16676
16678
|
};
|
|
16677
16679
|
|
|
16678
|
-
const baseClasses$1 = 'tw
|
|
16679
|
-
const errorClasses = 'tw
|
|
16680
|
+
const baseClasses$1 = 'tw-flex tw-outline-none tw-rounded-md tw-w-full tw-relative tw-flex-wrap';
|
|
16681
|
+
const errorClasses = 'tw-border-sq-danger-color';
|
|
16680
16682
|
const borderColorClasses = [
|
|
16681
|
-
'tw
|
|
16682
|
-
'
|
|
16683
|
-
'
|
|
16684
|
-
'
|
|
16685
|
-
'
|
|
16686
|
-
'
|
|
16683
|
+
'tw-border-sq-disabled-gray',
|
|
16684
|
+
'dark:tw-border-sq-dark-disabled-gray',
|
|
16685
|
+
'dark:focus:tw-border-sq-color-dark-dark',
|
|
16686
|
+
'dark:active:tw-border-sq-color-dark-dark',
|
|
16687
|
+
'focus:tw-border-sq-color-dark',
|
|
16688
|
+
'active:tw-border-sq-color-dark',
|
|
16687
16689
|
].join(' ');
|
|
16688
|
-
const fieldBorderRadius = 'tw
|
|
16689
|
-
const fieldClasses = 'tw
|
|
16690
|
-
const darkTheme = '
|
|
16691
|
-
const lightTheme = 'tw
|
|
16690
|
+
const fieldBorderRadius = 'tw-rounded-l-md tw-rounded-r-none';
|
|
16691
|
+
const fieldClasses = 'tw-leading-normal tw-outline-none tw-py-1 tw-px-3' + 'tw-p-1 tw-border-solid tw-border';
|
|
16692
|
+
const darkTheme = 'dark:tw-bg-sq-dark-background dark:tw-text-sq-dark-text disabled:dark:tw-text-sq-dark-text-lighter';
|
|
16693
|
+
const lightTheme = 'tw-text-sq-text-color disabled:tw-text-sq-darkish-gray';
|
|
16692
16694
|
/**
|
|
16693
16695
|
* InputGroup.
|
|
16694
16696
|
*/
|
|
@@ -16698,10 +16700,8 @@ const InputGroup = React__default.forwardRef((props, ref) => {
|
|
|
16698
16700
|
const appliedClasses = `${baseClasses$1} ${extraClassNames}`;
|
|
16699
16701
|
const fieldAppliedClasses = `${fieldClasses} ${extraClassNames} ${lightTheme} ${darkTheme} ${fieldBorderRadius} ${showError ? errorClasses : borderColorClasses} `;
|
|
16700
16702
|
const elementsToAppend = append.filter(Boolean);
|
|
16701
|
-
return (jsxs("div", { id: `input-group-${id}`, className: appliedClasses, children: [field ? (jsx$1("div", { "data-testid": testId, className: `tw
|
|
16702
|
-
return item?.variant === 'button' ? (jsx$1(Button, { extraClassNames: `$
|
|
16703
|
-
index ? 'tw:-ml-px' : 'tw:ml-0'
|
|
16704
|
-
} tw:focus:z-40 tw:focus:border tw:rounded-none tw:last:rounded-r-md`, ...item.buttonProps }, index)) : (jsx$1("div", { className: `${borderColorClasses} ${index ? 'tw:-ml-px' : 'tw:ml-0'} tw:flex tw:items-center tw:justify-center tw:rounded-none tw:last:rounded-r-md tw:active:z-30 tw:active:border tw:border`, children: item?.element }, index));
|
|
16703
|
+
return (jsxs("div", { id: `input-group-${id}`, className: appliedClasses, children: [field ? (jsx$1("div", { "data-testid": testId, className: `tw-flex tw-flex-1 tw-cursor-pointer active:tw-z-50 ${fieldAppliedClasses}`, children: field })) : (jsx$1(TextField, { testId: testId, readonly: readonly, onChange: onChange, onKeyUp: onKeyUp, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, name: name, ref: ref, showError: showError, value: value, required: required, placeholder: placeholder, autoComplete: autoComplete, autoFocus: autoFocus, id: id, type: type, disabled: disabled, step: step, min: min, max: max, maxLength: maxLength, minLength: minLength, extraClassNames: `tw-flex tw-flex-1 tw-w-full focus:tw-z-30 tw-rounded-r-none last:tw-rounded-r-md ${extraClassNames}`, ...tooltipData })), elementsToAppend.map((item, index) => {
|
|
16704
|
+
return item?.variant === 'button' ? (jsx$1(Button, { extraClassNames: `${index ? 'tw-ml-[-1px]' : 'tw-ml-0'} focus:tw-z-40 focus:tw-border tw-rounded-none last:tw-rounded-r-md`, ...item.buttonProps }, index)) : (jsx$1("div", { className: `${borderColorClasses} ${index ? 'tw-ml-[-1px]' : 'tw-ml-0'} tw-flex tw-items-center tw-justify-center tw-rounded-none last:tw-rounded-r-md active:tw-z-30 active:tw-border tw-border`, children: item?.element }, index));
|
|
16705
16705
|
})] }));
|
|
16706
16706
|
});
|
|
16707
16707
|
|
|
@@ -27575,7 +27575,7 @@ var Thumb = SliderThumb;
|
|
|
27575
27575
|
*/
|
|
27576
27576
|
const Slider = (props) => {
|
|
27577
27577
|
const { onValueChange, onPointerUp, id, value, name, disabled = false, rootExtraClassNames = '', trackExtraClassNames = '', rangeExtraClassNames = '', thumbExtraClassNames = '', step, min, max, } = props;
|
|
27578
|
-
return (jsxs(Root$1, { className: `tw
|
|
27578
|
+
return (jsxs(Root$1, { className: `tw-relative tw-flex tw-h-5 tw-w-full tw-touch-none tw-select-none tw-items-center ${rootExtraClassNames}`, defaultValue: [value], value: [value], onValueChange: (value) => onValueChange && onValueChange(value), onPointerUp: (e) => onPointerUp && onPointerUp(e), name: name, id: id, max: max, min: min, disabled: disabled, step: step, children: [jsx$1(Track, { className: `tw-relative tw-h-[5px] tw-grow tw-rounded-[4px] tw-bg-sq-dark-gray dark:tw-bg-sq-dark-disabled-gray ${trackExtraClassNames}`, children: jsx$1(Range, { className: `tw-absolute tw-h-full tw-rounded-full ${rangeExtraClassNames}` }) }), jsx$1(Thumb, { className: `tw-block tw-h-[15px] tw-w-[15px] tw-rounded-full tw-bg-sq-color-dark active:tw-bg-sq-color-dark-dark focus:outline-none focus-visible:tw-outline-none aria-disabled:tw-bg-sq-dark-gray dark:aria-disabled:tw-bg-sq-dark-disabled-gray tw-transition tw-ease-in-out ${thumbExtraClassNames}`, "aria-disabled": disabled })] }));
|
|
27579
27579
|
};
|
|
27580
27580
|
|
|
27581
27581
|
var PROGRESS_NAME = "Progress";
|
|
@@ -28844,7 +28844,7 @@ function validateWCAG2Parms(parms) {
|
|
|
28844
28844
|
};
|
|
28845
28845
|
}
|
|
28846
28846
|
|
|
28847
|
-
const baseLabelClasses = 'tw
|
|
28847
|
+
const baseLabelClasses = 'tw-left-1 tw-text-xs tw-text-sq-text-color dark:tw-text-sq-dark-text tw-items-center tw-h-[18px]';
|
|
28848
28848
|
const ProgressIndicator = (props) => {
|
|
28849
28849
|
const { value, color = undefined, testId, label, extraClasses = '', labelClasses = '', valuesLength, max, index, totalValue, ...tooltipProps } = props;
|
|
28850
28850
|
const tooltipData = getQTipData(tooltipProps);
|
|
@@ -28857,19 +28857,19 @@ const ProgressIndicator = (props) => {
|
|
|
28857
28857
|
if (totalValue >= max) {
|
|
28858
28858
|
// If progress is 100%, round both ends
|
|
28859
28859
|
if (index === 0 && valuesLength === 1) {
|
|
28860
|
-
roundedCorners = 'tw
|
|
28860
|
+
roundedCorners = 'tw-rounded-[15px]';
|
|
28861
28861
|
}
|
|
28862
28862
|
else if (index === 0) {
|
|
28863
|
-
roundedCorners = 'tw
|
|
28863
|
+
roundedCorners = 'tw-rounded-l-[15px]';
|
|
28864
28864
|
}
|
|
28865
28865
|
else if (index === valuesLength - 1) {
|
|
28866
|
-
roundedCorners = 'tw
|
|
28866
|
+
roundedCorners = 'tw-rounded-r-[15px]';
|
|
28867
28867
|
}
|
|
28868
28868
|
}
|
|
28869
28869
|
else {
|
|
28870
28870
|
// Otherwise, only round the leftmost indicator
|
|
28871
28871
|
if (index === 0) {
|
|
28872
|
-
roundedCorners = 'tw
|
|
28872
|
+
roundedCorners = 'tw-rounded-l-[15px]';
|
|
28873
28873
|
}
|
|
28874
28874
|
}
|
|
28875
28875
|
useEffect(() => {
|
|
@@ -28881,13 +28881,13 @@ const ProgressIndicator = (props) => {
|
|
|
28881
28881
|
return () => clearTimeout(timeout);
|
|
28882
28882
|
}, [value]);
|
|
28883
28883
|
const bgColor = color || undefined;
|
|
28884
|
-
const bgClass = color ? '' : 'tw
|
|
28884
|
+
const bgClass = color ? '' : 'tw-bg-sq-color-dark';
|
|
28885
28885
|
const computeTextClass = (elem) => {
|
|
28886
28886
|
const computedStyle = getComputedStyle(elem);
|
|
28887
28887
|
const backgroundColor = computedStyle.backgroundColor;
|
|
28888
28888
|
const textColorClass = tinycolor(backgroundColor).isDark()
|
|
28889
|
-
? 'tw
|
|
28890
|
-
: 'tw
|
|
28889
|
+
? 'tw-text-sq-white dark:tw-text-sq-white'
|
|
28890
|
+
: 'tw-text-sq-text-color dark:tw-text-sq-text-color';
|
|
28891
28891
|
setTextColorClass(textColorClass);
|
|
28892
28892
|
};
|
|
28893
28893
|
useEffect(() => {
|
|
@@ -28895,35 +28895,35 @@ const ProgressIndicator = (props) => {
|
|
|
28895
28895
|
computeTextClass(indicatorElementRef.current);
|
|
28896
28896
|
}
|
|
28897
28897
|
}, [!!indicatorElementRef.current]);
|
|
28898
|
-
return (createElement(Indicator, { className: `tw
|
|
28898
|
+
return (createElement(Indicator, { className: `tw-ease-[cubic-bezier(0.65, 0, 0.35, 1)] tw-w-full tw-h-[18px] tw-duration-[660ms] tw-flex tw-justify-center tw-items-center ${valuesLength === 1 ? '' : 'tw-overflow-hidden'} ${roundedCorners} ${bgClass} ${extraClasses}`, ...tooltipData, "data-qtip-text": tooltipProps.tooltip ? tooltipProps.tooltip : `${value}%`, "data-testid": `progress-bar-indicator-${testId ? testId : value}`, key: `${index}-${value}`, ref: indicatorElementRef, style: {
|
|
28899
28899
|
// Background color will default to the theme color if undefined
|
|
28900
28900
|
backgroundColor: bgColor,
|
|
28901
28901
|
animation: 'width 660ms forwards',
|
|
28902
28902
|
width: `${animatedWidth}%`,
|
|
28903
|
-
} }, label ? (jsx$1("span", { className: `${baseLabelClasses} ${labelClasses} ${textColorClass} ${valuesLength === 1 ? 'tw
|
|
28903
|
+
} }, label ? (jsx$1("span", { className: `${baseLabelClasses} ${labelClasses} ${textColorClass} ${valuesLength === 1 ? 'tw-absolute tw-z-50' : ''}`, children: label })) : undefined));
|
|
28904
28904
|
};
|
|
28905
28905
|
const ProgressBar = ({ values = [], max = 100, containerExtraClasses = '', zeroValueLabel = 'No progress yet', }) => {
|
|
28906
28906
|
const totalValue = values.reduce((acc, { value }) => acc + value, 0);
|
|
28907
|
-
return (jsx$1(Root, { className: `tw
|
|
28908
|
-
return
|
|
28909
|
-
})) : (jsx$1("div", { className: `${baseLabelClasses} tw
|
|
28907
|
+
return (jsx$1(Root, { className: `tw-relative tw-h-[18px] tw-w-full tw-overflow-hidden tw-rounded-[15px] tw-bg-sq-dark-gray dark:tw-bg-sq-dark-disabled-gray tw-flex tw-flex-1 ${containerExtraClasses}`, max: max, value: totalValue, children: totalValue > 0 ? (values.map((props, i) => {
|
|
28908
|
+
return createElement(ProgressIndicator, { ...props, max: max, valuesLength: values.length, index: i, totalValue: totalValue, key: i });
|
|
28909
|
+
})) : (jsx$1("div", { className: `${baseLabelClasses} tw-mx-auto tw-overflow-hidden`, children: zeroValueLabel })) }));
|
|
28910
28910
|
};
|
|
28911
28911
|
|
|
28912
|
-
const baseClasses = 'tw
|
|
28912
|
+
const baseClasses = 'tw-flex tw-outline-none tw-w-full tw-relative tw-flex-wrap';
|
|
28913
28913
|
const activeClassesByVariantLightTheme = {
|
|
28914
|
-
'outline': 'tw
|
|
28915
|
-
'theme': 'tw
|
|
28914
|
+
'outline': '!tw-bg-sq-disabled-gray tw-border-sq-color-dark',
|
|
28915
|
+
'theme': 'tw-bg-sq-color-highlight',
|
|
28916
28916
|
'danger': '',
|
|
28917
28917
|
'theme-light': '',
|
|
28918
|
-
'no-border': 'tw
|
|
28918
|
+
'no-border': '!tw-bg-sq-disabled-gray',
|
|
28919
28919
|
'warning': '',
|
|
28920
28920
|
};
|
|
28921
28921
|
const activeClassesByVariantDarkTheme = {
|
|
28922
|
-
'outline': 'tw
|
|
28923
|
-
'theme': '
|
|
28922
|
+
'outline': 'dark:!tw-bg-sq-multi-gray-dark dark:tw-border-sq-color-dark',
|
|
28923
|
+
'theme': 'dark:tw-bg-sq-color-highlight',
|
|
28924
28924
|
'danger': '',
|
|
28925
28925
|
'theme-light': '',
|
|
28926
|
-
'no-border': 'tw
|
|
28926
|
+
'no-border': 'dark:!tw-bg-sq-multi-gray-dark',
|
|
28927
28927
|
'warning': '',
|
|
28928
28928
|
};
|
|
28929
28929
|
/**
|
|
@@ -28935,7 +28935,7 @@ const ButtonGroup = (props) => {
|
|
|
28935
28935
|
const appliedClasses = `${baseClasses} ${extraClassNames}`;
|
|
28936
28936
|
return (jsx$1("div", { id: id ? `button-group-${id}` : undefined, "data-testid": testId, className: appliedClasses, ...tooltipData, children: buttons
|
|
28937
28937
|
.filter(Boolean)
|
|
28938
|
-
.map((item, index) => item?.variant === 'button' ? (jsx$1(Button, { ...item.buttonProps, extraClassNames: `tw
|
|
28938
|
+
.map((item, index) => item?.variant === 'button' ? (jsx$1(Button, { ...item.buttonProps, extraClassNames: `tw-ml-[-1px] focus:tw-z-40 tw-outline-none focus:tw-border tw-rounded-none first:tw-rounded-l-md last:tw-rounded-r-md ${item.buttonProps?.isActive
|
|
28939
28939
|
? `${activeClassesByVariantLightTheme[item?.buttonProps?.variant ?? 'outline']} ${activeClassesByVariantDarkTheme[item?.buttonProps?.variant ?? 'outline']} `
|
|
28940
28940
|
: ''} ${item.buttonProps.extraClassNames}`, onClick: () => onChange && onChange(item?.buttonProps?.value) }, index)) : (item?.element)) }));
|
|
28941
28941
|
};
|
|
@@ -28945,7 +28945,7 @@ const ButtonGroup = (props) => {
|
|
|
28945
28945
|
* - Easily create a carousel with custom slides.
|
|
28946
28946
|
* - Supports automatic sliding, navigation arrows, and slide indicators.
|
|
28947
28947
|
*/
|
|
28948
|
-
const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '', onSlide = () => { }, autoSlide, showIndicators = true, continuous = true, interval = 4000, prevIcon = 'fc-arrow-dropdown tw
|
|
28948
|
+
const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '', onSlide = () => { }, autoSlide, showIndicators = true, continuous = true, interval = 4000, prevIcon = 'fc-arrow-dropdown tw-rotate-90', nextIcon = 'fc-arrow-dropdown -tw-rotate-90', showArrows = true, iconExtraClassNames = '', carouselItems = [], }) => {
|
|
28949
28949
|
const [currentIndex, setCurrentIndex] = useState(activeIndex);
|
|
28950
28950
|
const changeSlide = (nextIndex) => {
|
|
28951
28951
|
const newIndex = (nextIndex + carouselItems.length) % carouselItems.length;
|
|
@@ -28991,7 +28991,11 @@ const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '
|
|
|
28991
28991
|
changeSlide(currentIndex + 1);
|
|
28992
28992
|
}
|
|
28993
28993
|
};
|
|
28994
|
-
const springTransition = {
|
|
28994
|
+
const springTransition = {
|
|
28995
|
+
type: 'spring',
|
|
28996
|
+
damping: 20,
|
|
28997
|
+
stiffness: 100,
|
|
28998
|
+
};
|
|
28995
28999
|
const slideVariants = {
|
|
28996
29000
|
initial: (direction) => ({
|
|
28997
29001
|
x: direction > 0 ? '100%' : '-100%',
|
|
@@ -29008,7 +29012,7 @@ const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '
|
|
|
29008
29012
|
transition: springTransition,
|
|
29009
29013
|
}),
|
|
29010
29014
|
};
|
|
29011
|
-
return (jsxs("div", { "data-testid": testId, className: `tw
|
|
29015
|
+
return (jsxs("div", { "data-testid": testId, className: `tw-flex tw-flex-col tw-items-center tw-justify-center tw-w-full tw-overflow-hidden ${extraClassNames}`, children: [jsxs("div", { className: "tw-flex tw-items-center tw-w-full tw-h-max tw-gap-1", children: [showArrows && (jsx$1(Button, { icon: prevIcon, size: "lg", variant: "no-border", testId: "carousel-prev", extraClassNames: `${currentIndex === 0 && !continuous ? 'tw-invisible' : ''} ${iconExtraClassNames} tw-animate-fadeIn`, onClick: onBackClick })), jsx$1("div", { className: "tw-h-full tw-w-full tw-overflow-hidden", children: jsx$1(motion.div, { custom: 1, initial: "initial", animate: "animate", exit: "exit", variants: slideVariants, className: "tw-w-full", children: carouselItems[currentIndex] }, currentIndex) }), showArrows && (jsx$1(Button, { icon: nextIcon, testId: "carousel-next", size: "lg", variant: "no-border", extraClassNames: `${currentIndex === carouselItems.length - 1 && !continuous ? 'tw-invisible' : ''} ${iconExtraClassNames} tw-animate-fadeIn`, onClick: onForwardClick }))] }), showIndicators && (jsx$1("div", { className: "tw-flex tw-gap-1 tw-mt-2", children: carouselItems.map((_, i) => (jsx$1("div", { className: `tw-w-2 tw-h-2 tw-rounded-full tw-cursor-pointer ${i === currentIndex ? 'tw-bg-sq-color-dark' : 'tw-bg-sq-darkish-gray'}`, onClick: () => changeSlide(i) }, i))) }))] }));
|
|
29012
29016
|
};
|
|
29013
29017
|
|
|
29014
29018
|
const buttonTypes = ['button', 'reset', 'submit', 'link'];
|