@seeqdev/qomponents 0.0.173 → 0.0.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iconFont/FontCustom.woff +0 -0
- package/dist/iconFont/FontCustom.woff2 +0 -0
- package/dist/index.esm.js +411 -379
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +411 -379
- package/dist/index.js.map +1 -1
- package/dist/src/Alert/Alert.types.d.ts +0 -1
- package/dist/src/ButtonGroup/ButtonGroup.types.d.ts +0 -1
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +0 -1
- package/dist/src/Carousel/Carousel.types.d.ts +0 -1
- package/dist/src/Checkbox/Checkbox.types.d.ts +0 -1
- package/dist/src/Collapse/Collapse.types.d.ts +0 -1
- package/dist/src/Icon/Icon.types.d.ts +0 -1
- package/dist/src/InputGroup/InputGroup.types.d.ts +0 -1
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +0 -1
- package/dist/src/Slider/Slider.types.d.ts +0 -1
- package/dist/src/SvgIcon/SvgIcon.types.d.ts +0 -1
- package/dist/src/TextArea/TextArea.types.d.ts +0 -1
- package/dist/src/TextField/TextField.types.d.ts +0 -1
- package/dist/styles.css +2823 -3522
- package/package.json +16 -13
- 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 -32
- package/dist/Alert/Alert.js.map +0 -1
- package/dist/Alert/Alert.stories.d.ts +0 -5
- package/dist/Alert/Alert.stories.js +0 -57
- 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 -63
- 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 -81
- 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 -233
- 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 -75
- 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 -86
- 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 -25
- 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 -92
- 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 -19
- 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 -91
- 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 -34
- 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 -62
- 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 -56
- 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 -160
- 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 -29
- package/dist/SeeqActionDropdown/variants.js.map +0 -1
- package/dist/Select/Select.d.ts +0 -15
- package/dist/Select/Select.js +0 -177
- 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 -85
- 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 -76
- 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 -95
- 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 -116
- 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 -199
- 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 -57
- 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-theme-dark',
|
|
50
|
+
'white': 'tw:text-sq-white',
|
|
51
|
+
'dark-gray': 'tw:text-sq-fairly-dark-gray',
|
|
52
|
+
'warning': 'tw:text-sq-warning',
|
|
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-theme-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',
|
|
60
|
+
'theme-light': 'tw:text-sq-theme-light',
|
|
61
|
+
'success': 'tw:text-sq-success',
|
|
62
62
|
};
|
|
63
63
|
const colorClassesThemeDark = {
|
|
64
|
-
'theme': 'dark:
|
|
64
|
+
'theme': 'tw:dark:text-sq-theme-darker',
|
|
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': 'dark:
|
|
68
|
+
'darkish-gray': 'tw:text-sq-darkish-gray',
|
|
69
|
+
'gray': 'tw:dark:text-sq-dark-disabled-gray',
|
|
70
70
|
'color': '',
|
|
71
|
-
'info': 'dark:
|
|
72
|
-
'text': 'dark:
|
|
71
|
+
'info': 'tw:dark:text-sq-theme-link',
|
|
72
|
+
'text': 'tw:dark:text-sq-dark-text',
|
|
73
73
|
'inherit': '',
|
|
74
|
-
'danger': 'tw
|
|
75
|
-
'theme-light': 'tw
|
|
76
|
-
'success': 'tw
|
|
74
|
+
'danger': 'tw:text-sq-danger',
|
|
75
|
+
'theme-light': 'tw:text-sq-theme-light',
|
|
76
|
+
'success': 'tw:text-sq-success',
|
|
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} tw:focus:outline-none tw:focus-visible: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,58 +103,58 @@ 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 tw:focus:ring-0 tw:focus-visible:outline-none tw:cursor-pointer tw:disabled:pointer-events-none';
|
|
107
107
|
const baseClassesByVariant = {
|
|
108
|
-
'outline': 'disabled:
|
|
109
|
-
'theme': 'disabled:
|
|
110
|
-
'danger': 'tw
|
|
111
|
-
'tw
|
|
112
|
-
'theme-light': 'disabled:
|
|
113
|
-
'no-border': 'disabled:
|
|
114
|
-
'warning': 'tw
|
|
108
|
+
'outline': 'tw:disabled:opacity-50 tw:border-solid tw:border',
|
|
109
|
+
'theme': 'tw:disabled:opacity-50 tw:border-solid tw:border',
|
|
110
|
+
'danger': 'tw:bg-sq-danger tw:hover:bg-sq-danger-hover/80 tw:disabled:opacity-50 tw:border-solid tw:border ' +
|
|
111
|
+
'tw:border-sq-danger tw:hover:border-sq-danger-hover/80',
|
|
112
|
+
'theme-light': 'tw:disabled:opacity-50 tw:border-solid tw:border',
|
|
113
|
+
'no-border': 'tw:bg-transparent tw:disabled:opacity-50',
|
|
114
|
+
'warning': 'tw:bg-sq-warning tw:border-solid tw:border tw:border-sq-warning',
|
|
115
115
|
};
|
|
116
116
|
const textClassesByVariantLightTheme = {
|
|
117
|
-
'outline': 'tw
|
|
118
|
-
'theme': 'tw
|
|
119
|
-
'theme-light': 'tw
|
|
120
|
-
'danger': 'tw
|
|
121
|
-
'no-border': 'tw
|
|
122
|
-
'warning': 'tw
|
|
117
|
+
'outline': 'tw:text-sq-text-color',
|
|
118
|
+
'theme': 'tw:text-sq-white',
|
|
119
|
+
'theme-light': 'tw:text-sq-white',
|
|
120
|
+
'danger': 'tw:text-sq-white',
|
|
121
|
+
'no-border': 'tw:text-sq-text-color',
|
|
122
|
+
'warning': 'tw:text-sq-white',
|
|
123
123
|
};
|
|
124
124
|
const textClassesByVariantDarkTheme = {
|
|
125
|
-
'outline': 'dark:
|
|
126
|
-
'theme': 'dark:
|
|
127
|
-
'theme-light': 'dark:
|
|
128
|
-
'danger': 'dark:
|
|
129
|
-
'no-border': 'dark:
|
|
130
|
-
'warning': 'dark:
|
|
125
|
+
'outline': 'tw:dark:text-sq-dark-text',
|
|
126
|
+
'theme': 'tw:dark:text-sq-white',
|
|
127
|
+
'theme-light': 'tw:dark:text-sq-white',
|
|
128
|
+
'danger': 'tw:dark:text-sq-white',
|
|
129
|
+
'no-border': 'tw:dark:text-sq-dark-text',
|
|
130
|
+
'warning': 'tw:dark:text-sq-white',
|
|
131
131
|
};
|
|
132
132
|
const classesByVariantLightTheme = {
|
|
133
|
-
'outline': 'tw
|
|
134
|
-
' focus:
|
|
135
|
-
'theme': 'tw
|
|
136
|
-
' hover:
|
|
133
|
+
'outline': 'tw:bg-sq-white tw:dark:bg-sq-dark-background tw:border-sq-disabled-gray tw:hover:bg-sq-light-gray' +
|
|
134
|
+
' tw:focus:bg-sq-dark-gray tw:active:bg-sq-dark-gray tw:focus:border-sq-color-dark tw:active:border-sq-color-dark',
|
|
135
|
+
'theme': 'tw:bg-sq-theme-dark tw:hover:bg-sq-theme-highlight tw:border-sq-theme-dark' +
|
|
136
|
+
' tw:hover:border-sq-theme-highlight',
|
|
137
137
|
'danger': '',
|
|
138
|
-
'theme-light': 'tw
|
|
138
|
+
'theme-light': 'tw:bg-sq-theme-icon tw:hover:bg-sq-theme-link tw:border-sq-theme-icon tw:hover:border-sq-theme-link',
|
|
139
139
|
'no-border': '',
|
|
140
140
|
'warning': '',
|
|
141
141
|
};
|
|
142
142
|
const classesByVariantDarkTheme = {
|
|
143
|
-
'outline': 'dark:
|
|
144
|
-
' dark:focus:
|
|
145
|
-
' dark:active:
|
|
146
|
-
'theme': 'dark:
|
|
147
|
-
' dark:hover:
|
|
143
|
+
'outline': 'tw:dark:border-sq-dark-disabled-gray tw:dark:hover:bg-sq-highlight-color-dark' +
|
|
144
|
+
' tw:dark:focus:bg-sq-multi-gray-dark tw:dark:active:bg-sq-multi-gray-dark tw:dark:focus:border-sq-theme-dark' +
|
|
145
|
+
' tw:dark:active:border-sq-theme-dark',
|
|
146
|
+
'theme': 'tw:dark:bg-sq-theme-dark tw:dark:hover:bg-sq-theme-highlight tw:dark:border-sq-theme-dark' +
|
|
147
|
+
' tw:dark:hover:border-sq-theme-highlight',
|
|
148
148
|
'danger': '',
|
|
149
|
-
'theme-light': 'dark:
|
|
150
|
-
' dark:hover:
|
|
149
|
+
'theme-light': 'tw:dark:bg-sq-theme-icon tw:dark:hover:bg-sq-link-dark tw:dark:border-sq-icon-dark' +
|
|
150
|
+
' tw:dark:hover:border-sq-link-dark',
|
|
151
151
|
'no-border': '',
|
|
152
152
|
'warning': '',
|
|
153
153
|
};
|
|
154
154
|
const sizeClasses = {
|
|
155
|
-
xs: 'tw
|
|
156
|
-
sm: 'tw
|
|
157
|
-
lg: 'tw
|
|
155
|
+
xs: 'tw:text-xs tw:py-0.5',
|
|
156
|
+
sm: 'tw:text-sm tw:py-1',
|
|
157
|
+
lg: 'tw:text-xl tw:py-1',
|
|
158
158
|
};
|
|
159
159
|
const appliedClasses = `${baseClasses} ${baseClassesByVariant[variant]} ${sizeClasses[size]} ${classesByVariantLightTheme[variant]} ${classesByVariantDarkTheme[variant]} ${textClassesByVariantLightTheme[variant]} ${textClassesByVariantDarkTheme[variant]} ${extraClassNames}`;
|
|
160
160
|
let tooltipData = undefined;
|
|
@@ -167,7 +167,7 @@ const Button = ({ onClick, label, variant = 'outline', type = 'button', size = '
|
|
|
167
167
|
'data-qtip-delay': tooltipOptions?.delay ?? DEFAULT_TOOL_TIP_DELAY,
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
const iconClass = iconPosition === 'left' ? 'tw
|
|
170
|
+
const iconClass = iconPosition === 'left' ? 'tw:mr-1' : 'tw:ml-1';
|
|
171
171
|
const iconElement = icon && (jsx$1(Icon, { icon: icon, iconPrefix: iconPrefix, type: iconStyle, color: iconColor, extraClassNames: label
|
|
172
172
|
? `${iconClass} ${textClassesByVariantLightTheme[variant]} ${textClassesByVariantDarkTheme[variant]}`
|
|
173
173
|
: '', testId: `${id}_spinner` }));
|
|
@@ -1384,7 +1384,7 @@ const flip$4 = function (options) {
|
|
|
1384
1384
|
if (!ignoreCrossAxisOverflow ||
|
|
1385
1385
|
// We leave the current main axis only if every placement on that axis
|
|
1386
1386
|
// overflows the main axis.
|
|
1387
|
-
overflowsData.every(d => d.overflows[0] > 0
|
|
1387
|
+
overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
1388
1388
|
// Try next placement and re-run the lifecycle.
|
|
1389
1389
|
return {
|
|
1390
1390
|
data: {
|
|
@@ -2123,14 +2123,9 @@ function getWindowScrollBarX$1(element, rect) {
|
|
|
2123
2123
|
return rect.left + leftScroll;
|
|
2124
2124
|
}
|
|
2125
2125
|
|
|
2126
|
-
function getHTMLOffset(documentElement, scroll
|
|
2127
|
-
if (ignoreScrollbarX === void 0) {
|
|
2128
|
-
ignoreScrollbarX = false;
|
|
2129
|
-
}
|
|
2126
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
2130
2127
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
2131
|
-
const x = htmlRect.left + scroll.scrollLeft - (
|
|
2132
|
-
// RTL <body> scrollbar.
|
|
2133
|
-
getWindowScrollBarX$1(documentElement, htmlRect));
|
|
2128
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX$1(documentElement, htmlRect);
|
|
2134
2129
|
const y = htmlRect.top + scroll.scrollTop;
|
|
2135
2130
|
return {
|
|
2136
2131
|
x,
|
|
@@ -2169,7 +2164,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect$1(_ref) {
|
|
|
2169
2164
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
2170
2165
|
}
|
|
2171
2166
|
}
|
|
2172
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll
|
|
2167
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
2173
2168
|
return {
|
|
2174
2169
|
width: rect.width * scale.x,
|
|
2175
2170
|
height: rect.height * scale.y,
|
|
@@ -2203,6 +2198,10 @@ function getDocumentRect$1(element) {
|
|
|
2203
2198
|
};
|
|
2204
2199
|
}
|
|
2205
2200
|
|
|
2201
|
+
// Safety check: ensure the scrollbar space is reasonable in case this
|
|
2202
|
+
// calculation is affected by unusual styles.
|
|
2203
|
+
// Most scrollbars leave 15-18px of space.
|
|
2204
|
+
const SCROLLBAR_MAX = 25;
|
|
2206
2205
|
function getViewportRect$1(element, strategy) {
|
|
2207
2206
|
const win = getWindow(element);
|
|
2208
2207
|
const html = getDocumentElement(element);
|
|
@@ -2220,6 +2219,24 @@ function getViewportRect$1(element, strategy) {
|
|
|
2220
2219
|
y = visualViewport.offsetTop;
|
|
2221
2220
|
}
|
|
2222
2221
|
}
|
|
2222
|
+
const windowScrollbarX = getWindowScrollBarX$1(html);
|
|
2223
|
+
// <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
|
|
2224
|
+
// visual width of the <html> but this is not considered in the size
|
|
2225
|
+
// of `html.clientWidth`.
|
|
2226
|
+
if (windowScrollbarX <= 0) {
|
|
2227
|
+
const doc = html.ownerDocument;
|
|
2228
|
+
const body = doc.body;
|
|
2229
|
+
const bodyStyles = getComputedStyle(body);
|
|
2230
|
+
const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
2231
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
2232
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
2233
|
+
width -= clippingStableScrollbarWidth;
|
|
2234
|
+
}
|
|
2235
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
2236
|
+
// If the <body> scrollbar is on the left, the width needs to be extended
|
|
2237
|
+
// by the scrollbar amount so there isn't extra space on the right.
|
|
2238
|
+
width += windowScrollbarX;
|
|
2239
|
+
}
|
|
2223
2240
|
return {
|
|
2224
2241
|
width,
|
|
2225
2242
|
height,
|
|
@@ -4742,31 +4759,30 @@ function getSvgIconPath(icon) {
|
|
|
4742
4759
|
}
|
|
4743
4760
|
|
|
4744
4761
|
const popoverBorderStyles = [
|
|
4745
|
-
'tw
|
|
4746
|
-
'tw
|
|
4747
|
-
'tw
|
|
4748
|
-
'tw
|
|
4749
|
-
'dark:
|
|
4762
|
+
'tw:border-solid',
|
|
4763
|
+
'tw:border',
|
|
4764
|
+
'tw:rounded-md',
|
|
4765
|
+
'tw:border-sq-disabled-gray',
|
|
4766
|
+
'tw:dark:border-gray-500',
|
|
4750
4767
|
].join(' ');
|
|
4751
4768
|
const triggerBackgroundStyles = [
|
|
4752
|
-
'tw
|
|
4753
|
-
'hover:
|
|
4754
|
-
'active:
|
|
4755
|
-
'dark:
|
|
4756
|
-
'dark:hover:
|
|
4757
|
-
'dark:active:
|
|
4769
|
+
'tw:bg-transparent',
|
|
4770
|
+
'tw:hover:bg-sq-worksheetspanel-gray',
|
|
4771
|
+
'tw:active:bg-sq-worksheetspanel-gray',
|
|
4772
|
+
'tw:dark:bg-transparent',
|
|
4773
|
+
'tw:dark:hover:bg-sq-field-disabled-gray/30',
|
|
4774
|
+
'tw:dark:active:bg-sq-field-disabled-gray/30',
|
|
4758
4775
|
].join(' ');
|
|
4759
4776
|
const activeBackgroundStyles = [
|
|
4760
4777
|
'active',
|
|
4761
|
-
'tw
|
|
4762
|
-
'
|
|
4763
|
-
'
|
|
4764
|
-
'dark:
|
|
4765
|
-
'dark:
|
|
4766
|
-
'dark:active:tw-bg-sq-dark-disabled-gray',
|
|
4778
|
+
'tw:bg-sq-overlay',
|
|
4779
|
+
'tw:active:bg-sq-overlay',
|
|
4780
|
+
'tw:dark:bg-sq-dark-disabled-gray',
|
|
4781
|
+
'tw:dark:hover:border-sq-dark-disabled-gray/30',
|
|
4782
|
+
'tw:dark:active:bg-sq-dark-disabled-gray/30',
|
|
4767
4783
|
].join(' ');
|
|
4768
|
-
const bgStyles$3 = ['tw
|
|
4769
|
-
const disabledClasses$4 = ['tw
|
|
4784
|
+
const bgStyles$3 = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
|
|
4785
|
+
const disabledClasses$4 = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
|
|
4770
4786
|
const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (jsx$1(Content2$3, { ref: ref, align: align, sideOffset: sideOffset, ...props, asChild: true })));
|
|
4771
4787
|
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, }) => {
|
|
4772
4788
|
let tooltipData = undefined;
|
|
@@ -4784,12 +4800,12 @@ const ToolbarButton = ({ isSmall = false, label, icon, secondIcon, forceSmallIco
|
|
|
4784
4800
|
onHide && onHide();
|
|
4785
4801
|
}
|
|
4786
4802
|
};
|
|
4787
|
-
return (jsxs(Root2$3, { defaultOpen: false, onOpenChange: onOpenChange, children: [jsx$1(Trigger$3, { id: id, className: `tw-border-none tw
|
|
4803
|
+
return (jsxs(Root2$3, { defaultOpen: false, onOpenChange: onOpenChange, children: [jsx$1(Trigger$3, { id: id, className: `tw:bg-transparent tw:border-none tw:mx-sq-1.5 tw:first:ml-0 tw:last:mr-0 ${isActive ? 'active' : ''}`, disabled: disabled, "data-testid": testId, onClick: (e) => {
|
|
4788
4804
|
onClick && onClick(e);
|
|
4789
|
-
}, children: jsxs("div", { ...tooltipData, className: `tw
|
|
4790
|
-
' tw
|
|
4791
|
-
' 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' +
|
|
4792
|
-
popoverBorderStyles, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: " tw
|
|
4805
|
+
}, children: jsxs("div", { ...tooltipData, className: `tw:flex tw:flex-col tw:items-center tw:rounded-md ${isSmall ? 'tw:py-px tw:px-1' : 'tw:px-2 tw:py-sq-5'} ${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 tw:dark: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", size: !isSmall && !label && !secondIcon && !forceSmallIcon ? 'lg' : 'sm', extraClassNames: `tw:text-sq-text-color tw:dark: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 tw:dark:text-sq-dark-text tw:ml-sq-3 tw:text-2", type: "text", size: "sm" })) : undefined] }), !isSmall && jsx$1("small", { className: "tw:text-sq-text-color tw:dark:text-sq-dark-text tw:text-2.5", children: label })] }) }), !!popoverContent ? (jsx$1(PopoverContent, { sideOffset: 2, align: "start", children: jsxs("div", { className: bgStyles$3 +
|
|
4806
|
+
' tw:relative tw:z-[1000] tw:min-w-6 tw:p-2 tw:focus-visible:outline-none tw:outline-none tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out' +
|
|
4807
|
+
' tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:data-[state=closed]:zoom-out-95 tw:data-[state=open]:zoom-in-95 tw:data-[side=bottom]:slide-in-from-top-2 tw:data-[side=left]:slide-in-from-right-2 tw:data-[side=right]:slide-in-from-left-2 tw:data-[side=top]:slide-in-from-bottom-2' +
|
|
4808
|
+
popoverBorderStyles, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: " tw:fill-transparent tw:bg-sq-white tw:w-sq-15 tw:h-sq-15 tw:-mt-sq-7 tw:rotate-45 tw:dark:bg-sq-dark-background tw:border-b tw:border-r tw:border-sq-disabled-gray tw:dark:border-gray-500" }) })), popoverContent] }) })) : undefined] }));
|
|
4793
4809
|
};
|
|
4794
4810
|
|
|
4795
4811
|
const setValidInputDimension = (width, height) => {
|
|
@@ -4806,24 +4822,24 @@ const setValidInputDimension = (width, height) => {
|
|
|
4806
4822
|
return inputStyle;
|
|
4807
4823
|
};
|
|
4808
4824
|
|
|
4809
|
-
const errorClasses$4 = 'tw
|
|
4825
|
+
const errorClasses$4 = 'tw:border-sq-danger';
|
|
4810
4826
|
const borderColorClasses$4 = [
|
|
4811
|
-
'tw
|
|
4812
|
-
'dark:
|
|
4813
|
-
'dark:focus:
|
|
4814
|
-
'dark:active:
|
|
4815
|
-
'focus:
|
|
4816
|
-
'active:
|
|
4827
|
+
'tw:border-sq-disabled-gray',
|
|
4828
|
+
'tw:dark:border-sq-dark-disabled-gray',
|
|
4829
|
+
'tw:dark:focus:border-sq-theme-dark-dark',
|
|
4830
|
+
'tw:dark:active:border-sq-theme-darker',
|
|
4831
|
+
'tw:focus:border-sq-theme-dark',
|
|
4832
|
+
'tw:active:border-sq-theme-dark',
|
|
4817
4833
|
].join(' ');
|
|
4818
|
-
const baseClasses$6 = 'tw
|
|
4819
|
-
' disabled:
|
|
4820
|
-
' disabled:
|
|
4821
|
-
' dark:
|
|
4822
|
-
const darkTheme$3 = 'dark:
|
|
4823
|
-
const lightTheme$3 = 'tw
|
|
4834
|
+
const baseClasses$6 = 'tw:h-8.5 tw:leading-normal tw:outline-none tw:py-1 tw:px-3' +
|
|
4835
|
+
' tw:disabled:pointer-events-none tw:disabled:bg-sq-light-gray tw:disabled:dark:bg-sq-dark-disabled-gray' +
|
|
4836
|
+
' tw:disabled:cursor-not-allowed tw:p-1 tw:border-solid tw:border tw:placeholder-gray-400' +
|
|
4837
|
+
' tw:dark:placeholder-sq-dark-text/30 specTextField';
|
|
4838
|
+
const darkTheme$3 = 'tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-dark-text/30';
|
|
4839
|
+
const lightTheme$3 = 'tw:text-sq-text-color tw:disabled:text-sq-darkish-gray';
|
|
4824
4840
|
const sizeClasses = {
|
|
4825
|
-
sm: 'tw
|
|
4826
|
-
lg: 'tw
|
|
4841
|
+
sm: 'tw:text-sm',
|
|
4842
|
+
lg: 'tw:text-xl',
|
|
4827
4843
|
};
|
|
4828
4844
|
/**
|
|
4829
4845
|
* Textfield.
|
|
@@ -4865,12 +4881,12 @@ const TextField = React__default.forwardRef((props, ref) => {
|
|
|
4865
4881
|
internalRef.current.value = `${value}`;
|
|
4866
4882
|
}
|
|
4867
4883
|
}, [value]);
|
|
4868
|
-
let borderRadius = 'tw
|
|
4884
|
+
let borderRadius = 'tw:rounded-md';
|
|
4869
4885
|
if (inputGroup === 'left') {
|
|
4870
|
-
borderRadius = 'tw
|
|
4886
|
+
borderRadius = 'tw:rounded-l-md tw:border-r-0 tw:focus:border-r' + ' tw:active:border-r';
|
|
4871
4887
|
}
|
|
4872
4888
|
else if (inputGroup === 'right') {
|
|
4873
|
-
borderRadius = 'tw
|
|
4889
|
+
borderRadius = 'tw:rounded-r-md tw:border-l-0 tw:focus:border-l tw:active:border-l';
|
|
4874
4890
|
}
|
|
4875
4891
|
const appliedClasses = `${baseClasses$6} ${sizeClasses[size]} ${extraClassNames} ${lightTheme$3} ${darkTheme$3} ${borderRadius} ${showError ? errorClasses$4 : borderColorClasses$4} `;
|
|
4876
4892
|
const inputProp = setValidInputDimension(inputWidth, inputHeight)
|
|
@@ -4883,18 +4899,18 @@ const TextField = React__default.forwardRef((props, ref) => {
|
|
|
4883
4899
|
inputLenghtProp.maxLength = maxLength;
|
|
4884
4900
|
if (minLength)
|
|
4885
4901
|
inputLenghtProp.minLength = minLength;
|
|
4886
|
-
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
|
|
4902
|
+
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 tw:text-xs tw:mt-1", children: errorText })] }));
|
|
4887
4903
|
});
|
|
4888
4904
|
|
|
4889
|
-
const alignment = 'tw
|
|
4890
|
-
const labelClasses = 'tw
|
|
4891
|
-
const baseClasses$5 = 'tw-border
|
|
4892
|
-
' dark:
|
|
4893
|
-
' checked:
|
|
4894
|
-
' checked:active:
|
|
4895
|
-
' dark:disabled:
|
|
4896
|
-
const checkboxClasses = `tw
|
|
4897
|
-
const radioClasses = `tw
|
|
4905
|
+
const alignment = 'tw:flex';
|
|
4906
|
+
const labelClasses = 'tw:ml-1.5 tw:text-sm tw:-mt-0.5';
|
|
4907
|
+
const baseClasses$5 = 'tw:appearance-none tw:border tw:h-3.5 tw:w-3.5 tw:focus:ring-0 tw:focus:ring-offset-0 tw:outline-none tw:focus:outline-none' +
|
|
4908
|
+
' tw:dark:bg-sq-dark-background tw:dark:border-sq-dark-text tw:dark:hover:bg-sq-dark-background' +
|
|
4909
|
+
' tw:checked:text-white tw:checked:border-sq-text-color tw:checked:hover:border-sq-theme-dark' +
|
|
4910
|
+
' tw:checked:active:border-sq-theme-darker tw:checked:focus:border-sq-theme-dark tw:disabled:border-sq-disabled-gray' +
|
|
4911
|
+
' tw:dark:disabled:border-sq-fairly-dark-gray tw:dark:checked:focus:bg-sq-dark-background';
|
|
4912
|
+
const checkboxClasses = `tw:form-checkbox tw:rounded ${baseClasses$5}`;
|
|
4913
|
+
const radioClasses = `tw:form-radio tw:rounded-full ${baseClasses$5}`;
|
|
4898
4914
|
/**
|
|
4899
4915
|
* Checkbox and Radio Box Component.
|
|
4900
4916
|
*/
|
|
@@ -4902,26 +4918,25 @@ const Checkbox = (props) => {
|
|
|
4902
4918
|
const { type = 'checkbox', value, disabled = false, label, onChange, onClick, onKeyDown, checked, defaultChecked, id, name, extraClassNames, extraLabelClassNames, testId, ...tooltipProps } = props;
|
|
4903
4919
|
const assignedId = id ?? 'checkbox_' + Math.random();
|
|
4904
4920
|
const tooltipData = getQTipData(tooltipProps);
|
|
4905
|
-
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
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
' disabled:
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
const
|
|
4917
|
-
const errorClasses$3 = 'tw-border-sq-danger-color';
|
|
4921
|
+
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 && (jsx$1("label", { htmlFor: assignedId, className: `${labelClasses} ${extraLabelClassNames} ${disabled
|
|
4922
|
+
? 'tw:cursor-not-allowed tw:dark:text-sq-fairly-dark-gray tw:text-sq-fairly-dark-gray'
|
|
4923
|
+
: 'tw:cursor-pointer tw:text-sq-text-color tw:dark:text-sq-dark-text'}`, children: label }))] }));
|
|
4924
|
+
};
|
|
4925
|
+
|
|
4926
|
+
const baseClasses$4 = 'tw:leading-normal tw:outline-none tw:py-1 tw:px-3 tw:rounded-md tw:w-full' +
|
|
4927
|
+
' tw:disabled:pointer-events-none tw:disabled:bg-sq-light-gray tw:disabled:dark:bg-sq-dark-disabled-gray' +
|
|
4928
|
+
' tw:disabled:cursor-not-allowed tw:p-1 tw:border-solid tw:border tw:text-sm';
|
|
4929
|
+
const darkTheme$2 = 'tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text ' +
|
|
4930
|
+
'tw:dark:placeholder-sq-dark-text/30 tw:disabled:dark:text-sq-dark-text/30';
|
|
4931
|
+
const lightTheme$2 = 'tw:text-sq-text-color tw:placeholder-gray-400 tw:disabled:text-sq-darkish-gray';
|
|
4932
|
+
const errorClasses$3 = 'tw:border-sq-danger';
|
|
4918
4933
|
const borderColorClasses$3 = [
|
|
4919
|
-
'tw
|
|
4920
|
-
'dark:
|
|
4921
|
-
'dark:focus:
|
|
4922
|
-
'dark:active:
|
|
4923
|
-
'focus:
|
|
4924
|
-
'active:
|
|
4934
|
+
'tw:border-sq-disabled-gray',
|
|
4935
|
+
'tw:dark:border-sq-dark-disabled-gray',
|
|
4936
|
+
'tw:dark:focus:border-sq-theme-darker',
|
|
4937
|
+
'tw:dark:active:border-sq-theme-darker',
|
|
4938
|
+
'tw:focus:border-sq-theme-dark',
|
|
4939
|
+
'tw:active:border-sq-theme-dark',
|
|
4925
4940
|
].join(' ');
|
|
4926
4941
|
/**
|
|
4927
4942
|
* TextArea.
|
|
@@ -4970,25 +4985,25 @@ const TextArea = React__default.forwardRef(({ readonly = false, disabled = false
|
|
|
4970
4985
|
* display correctly.
|
|
4971
4986
|
*/
|
|
4972
4987
|
const Tooltip = ({ position = 'bottom', children, text, delay = DEFAULT_TOOL_TIP_DELAY, }) => {
|
|
4973
|
-
const arrowBaseClasses =
|
|
4974
|
-
const centerArrowVertically = 'before:
|
|
4975
|
-
const centerArrowHorizontally = 'before:
|
|
4976
|
-
const arrowRight = `${arrowBaseClasses} ${centerArrowVertically} before:
|
|
4977
|
-
before:
|
|
4978
|
-
const arrowLeft = `${arrowBaseClasses} ${centerArrowVertically} before:
|
|
4979
|
-
before:
|
|
4980
|
-
const arrowBottom = `${arrowBaseClasses} ${centerArrowHorizontally} before:-
|
|
4981
|
-
before:
|
|
4982
|
-
const arrowTop = `${arrowBaseClasses} ${centerArrowHorizontally} before:-
|
|
4983
|
-
before:
|
|
4988
|
+
const arrowBaseClasses = "tw:before:content-[''] tw:before:absolute tw:before:border-8";
|
|
4989
|
+
const centerArrowVertically = 'tw:before:top-1/2 tw:before:-translate-y-1/2';
|
|
4990
|
+
const centerArrowHorizontally = 'tw:before:left-1/2 tw:before:-translate-x-1/2';
|
|
4991
|
+
const arrowRight = `${arrowBaseClasses} ${centerArrowVertically} tw:before:right-full tw:before:border-y-transparent
|
|
4992
|
+
tw:before:border-l-transparent tw:before:border-r-sq-black`;
|
|
4993
|
+
const arrowLeft = `${arrowBaseClasses} ${centerArrowVertically} tw:before:left-full tw:before:border-y-transparent
|
|
4994
|
+
tw:before:border-l-sq-black tw:before:border-r-transparent`;
|
|
4995
|
+
const arrowBottom = `${arrowBaseClasses} ${centerArrowHorizontally} tw:before:-top-4 tw:before:border-b-sq-black
|
|
4996
|
+
tw:before:border-r-transparent tw:before:border-l-transparent tw:before:border-t-transparent`;
|
|
4997
|
+
const arrowTop = `${arrowBaseClasses} ${centerArrowHorizontally} tw:before:-bottom-4 tw:before:border-b-transparent
|
|
4998
|
+
tw:before:border-t-sq-black tw:before:border-l-transparent tw:before:border-r-transparent`;
|
|
4984
4999
|
const placements = {
|
|
4985
|
-
top:
|
|
4986
|
-
left:
|
|
4987
|
-
right: `tw
|
|
4988
|
-
bottom:
|
|
5000
|
+
top: `tw:-top-2 tw:-translate-y-full tw:left-1/2 tw:-translate-x-1/2 ${arrowTop}`,
|
|
5001
|
+
left: `tw:-translate-x-full tw:-left-3 tw:-translate-y-1/2 tw:top-1/2 ${arrowLeft}`,
|
|
5002
|
+
right: `tw:translate-x-full tw:-right-3 tw:-translate-y-1/2 tw:top-1/2 ${arrowRight}`,
|
|
5003
|
+
bottom: `tw:-bottom-2 tw:translate-y-full tw:left-1/2 tw:-translate-x-1/2 ${arrowBottom}`,
|
|
4989
5004
|
};
|
|
4990
|
-
return (jsxs("div", { className: "tw
|
|
4991
|
-
tw
|
|
5005
|
+
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 tw:group-hover:inline-block tw:group-hover:delay-[${delay}ms]
|
|
5006
|
+
tw:absolute tw:opacity-0 tw:group-hover:opacity-100 tw:rounded tw:bg-sq-black tw:p-2 tw:text-xs tw:text-sq-white ${placements[position]}`, children: text })] }));
|
|
4992
5007
|
};
|
|
4993
5008
|
|
|
4994
5009
|
/*! @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 */
|
|
@@ -7474,8 +7489,8 @@ const QTip = () => {
|
|
|
7474
7489
|
: positionTooltip();
|
|
7475
7490
|
}
|
|
7476
7491
|
};
|
|
7477
|
-
return (jsx$1(Fragment, { children: jsxs("div", { onMouseEnter: () => setOverTooltip(true), onMouseLeave: () => setOverTooltip(false), "data-testid": tooltipTestId, ref: tooltipRef, className: 'tw
|
|
7478
|
-
(show ? 'tw
|
|
7492
|
+
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-sq-white tw:z-[9999] tw:fade-in ' +
|
|
7493
|
+
(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-2.5 tw:h-2.5 tw:rotate-45 tw:bg-sq-black", ref: tooltipArrowRef })] }) }));
|
|
7479
7494
|
};
|
|
7480
7495
|
|
|
7481
7496
|
function _typeof$1(o) {
|
|
@@ -13890,75 +13905,77 @@ var CreatableSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
13890
13905
|
});
|
|
13891
13906
|
var CreatableSelect$1 = CreatableSelect;
|
|
13892
13907
|
|
|
13893
|
-
const baseClasses$3 = ['focus:
|
|
13894
|
-
const containerStyles = ['tw
|
|
13895
|
-
const errorClasses$2 = 'tw
|
|
13896
|
-
const borderColorClasses$2 = ['tw
|
|
13897
|
-
const borderStyles$3 = [
|
|
13898
|
-
|
|
13899
|
-
'tw-
|
|
13900
|
-
'
|
|
13901
|
-
'
|
|
13902
|
-
'
|
|
13903
|
-
'dark:
|
|
13904
|
-
'dark:
|
|
13905
|
-
'dark:active:tw-border-sq-color-dark-dark',
|
|
13908
|
+
const baseClasses$3 = ['tw:focus:ring-0', 'tw:disabled:cursor-not-allowed'].join(' ');
|
|
13909
|
+
const containerStyles = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
|
|
13910
|
+
const errorClasses$2 = 'tw:border-sq-danger-color';
|
|
13911
|
+
const borderColorClasses$2 = ['tw:border-sq-disabled-gray', 'tw:dark:border-sq-dark-disabled-gray'].join(' ');
|
|
13912
|
+
const borderStyles$3 = ['tw:border-solid', 'tw:border'].join(' ');
|
|
13913
|
+
const borderActiveClasses = [
|
|
13914
|
+
'tw:hover:border-sq-color-dark',
|
|
13915
|
+
'tw:focus-within:border-sq-color-dark',
|
|
13916
|
+
'tw:active:border-sq-color-dark',
|
|
13917
|
+
'tw:dark:hover:border-sq-color-dark-dark',
|
|
13918
|
+
'tw:dark:focus-within:border-sq-color-dark-dark',
|
|
13919
|
+
'tw:dark:active:border-sq-color-dark-dark',
|
|
13906
13920
|
].join(' ');
|
|
13907
|
-
const textStyles = ['tw
|
|
13921
|
+
const textStyles = ['tw:text-sq-text-color', 'tw:dark:text-sq-dark-text', 'tw:text-sm'].join(' ');
|
|
13908
13922
|
const textActiveStyles = [
|
|
13909
|
-
'hover:
|
|
13910
|
-
'focus:
|
|
13911
|
-
'active:
|
|
13912
|
-
'dark:
|
|
13913
|
-
'dark:hover:
|
|
13914
|
-
'dark:focus:
|
|
13915
|
-
'dark:active:
|
|
13923
|
+
'tw:hover:text-sq-theme-dark',
|
|
13924
|
+
'tw:focus:text-sq-theme-dark',
|
|
13925
|
+
'tw:active:text-sq-theme-dark',
|
|
13926
|
+
'tw:dark:text-sq-dark-disabled-gray',
|
|
13927
|
+
'tw:dark:hover:text-sq-theme-dark-dark',
|
|
13928
|
+
'tw:dark:focus:text-sq-theme-dark-dark',
|
|
13929
|
+
'tw:dark:active:text-sq-theme-dark-dark',
|
|
13930
|
+
'tw:hover:text-sq-color-dark',
|
|
13931
|
+
'tw:dark:text-sq-dark-disabled-gray',
|
|
13932
|
+
'tw:dark:hover:text-sq-color-dark-dark',
|
|
13916
13933
|
].join(' ');
|
|
13917
13934
|
const menuStyles = [
|
|
13918
|
-
'tw
|
|
13919
|
-
'tw
|
|
13920
|
-
'tw
|
|
13921
|
-
'tw
|
|
13922
|
-
'dark:
|
|
13923
|
-
'tw
|
|
13924
|
-
'tw
|
|
13925
|
-
'!tw
|
|
13935
|
+
'tw:border-solid',
|
|
13936
|
+
'tw:border',
|
|
13937
|
+
'tw:rounded-b',
|
|
13938
|
+
'tw:border-sq-disabled-gray',
|
|
13939
|
+
'tw:dark:border-sq-dark-disabled-gray',
|
|
13940
|
+
'tw:whitespace-nowrap',
|
|
13941
|
+
'tw:min-w-fit',
|
|
13942
|
+
'!tw:z-[9999]',
|
|
13926
13943
|
].join(' ');
|
|
13927
13944
|
const menuListStyles = [
|
|
13928
|
-
'tw
|
|
13929
|
-
'tw
|
|
13930
|
-
'dark:
|
|
13931
|
-
'tw
|
|
13932
|
-
'!tw
|
|
13945
|
+
'tw:rounded-b',
|
|
13946
|
+
'tw:bg-sq-white',
|
|
13947
|
+
'tw:dark:bg-sq-dark-background',
|
|
13948
|
+
'tw:min-w-fit',
|
|
13949
|
+
'!tw:z-[9999]',
|
|
13933
13950
|
'specSelectMenu',
|
|
13934
13951
|
].join(' ');
|
|
13935
13952
|
const groupHeadingStyles = [
|
|
13936
|
-
'tw
|
|
13937
|
-
'dark:
|
|
13938
|
-
'tw
|
|
13939
|
-
'tw
|
|
13940
|
-
'tw
|
|
13953
|
+
'tw:bg-sq-light-gray',
|
|
13954
|
+
'tw:dark:bg-sq-dark-disabled-gray',
|
|
13955
|
+
'tw:text-sq-darkish-gray',
|
|
13956
|
+
'tw:py-1',
|
|
13957
|
+
'tw:px-2.5',
|
|
13941
13958
|
'specSelectGroupHeading',
|
|
13942
13959
|
].join(' ');
|
|
13943
13960
|
const optionStyles = [
|
|
13944
|
-
'hover:
|
|
13945
|
-
'hover:
|
|
13946
|
-
'dark:hover:
|
|
13947
|
-
'tw
|
|
13948
|
-
'tw
|
|
13961
|
+
'tw:hover:bg-sq-gray-highlight',
|
|
13962
|
+
'tw:hover:cursor-pointer',
|
|
13963
|
+
'tw:dark:hover:bg-sq-gray-highlight-dark',
|
|
13964
|
+
'tw:py-1',
|
|
13965
|
+
'tw:px-2.5',
|
|
13949
13966
|
'specSelectOption',
|
|
13950
13967
|
].join(' ');
|
|
13951
|
-
const disabledClasses$3 = ['tw
|
|
13952
|
-
const dropDownIndicatorStyles = `tw
|
|
13953
|
-
const placeholderStyles = ['tw
|
|
13968
|
+
const disabledClasses$3 = ['tw:bg-sq-field-disabled-gray', '!tw:cursor-not-allowed', 'tw:opacity-50'].join(' ');
|
|
13969
|
+
const dropDownIndicatorStyles = `tw:text-sq-disabled-gray ${textActiveStyles} specOpenIt`;
|
|
13970
|
+
const placeholderStyles = ['tw:text-gray-400', 'tw:dark:text-sq-dark-text-lighter', 'specOpenSelect'].join(' ');
|
|
13954
13971
|
const multiValueStyles = [
|
|
13955
|
-
'tw
|
|
13956
|
-
'dark:
|
|
13957
|
-
'tw
|
|
13958
|
-
'tw
|
|
13959
|
-
'tw
|
|
13960
|
-
'tw
|
|
13961
|
-
'tw
|
|
13972
|
+
'tw:bg-sq-disabled-gray',
|
|
13973
|
+
'tw:dark:bg-sq-multi-gray-dark',
|
|
13974
|
+
'tw:text-sm',
|
|
13975
|
+
'tw:py-0.5',
|
|
13976
|
+
'tw:px-1',
|
|
13977
|
+
'tw:m-0.5',
|
|
13978
|
+
'tw:rounded-sm',
|
|
13962
13979
|
'specOpenSelect',
|
|
13963
13980
|
].join(' ');
|
|
13964
13981
|
/**
|
|
@@ -14023,38 +14040,38 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
|
|
|
14023
14040
|
filterOption: filterOption ? filterOption : filterConfig ? createFilter(filterConfig) : undefined,
|
|
14024
14041
|
classNames: {
|
|
14025
14042
|
control: ({ menuIsOpen }) => {
|
|
14026
|
-
let border = menuIsOpen ? 'tw
|
|
14043
|
+
let border = menuIsOpen ? 'tw:rounded-t-md' : 'tw:rounded-md';
|
|
14027
14044
|
// if it's on the left side of the input group make sure the right side is straight and not curved
|
|
14028
14045
|
if (inputGroup === 'left') {
|
|
14029
|
-
border = menuIsOpen ? 'tw
|
|
14046
|
+
border = menuIsOpen ? 'tw:rounded-tl-md' : 'tw:rounded-l-md';
|
|
14030
14047
|
}
|
|
14031
14048
|
else if (inputGroup === 'right') {
|
|
14032
|
-
border = menuIsOpen ? 'tw
|
|
14049
|
+
border = menuIsOpen ? 'tw:rounded-tr-md' : 'tw:rounded-r-md';
|
|
14033
14050
|
}
|
|
14034
|
-
const appliedClasses = `${borderStyles$3} ${border} ${showError ? errorClasses$2 : borderColorClasses$2} ${small ? 'reactSelectMinHeightSmall' : 'reactSelectMinHeight'} ${controlClassNames}`;
|
|
14035
|
-
return `${appliedClasses} ${baseClasses$3} ${containerStyles} specSelectControl ${isDisabled ? disabledClasses$3 : ''} ${small ? 'tw
|
|
14051
|
+
const appliedClasses = `${borderStyles$3} ${isDisabled ? '' : borderActiveClasses} ${border} ${showError ? errorClasses$2 : borderColorClasses$2} ${small ? 'reactSelectMinHeightSmall' : 'reactSelectMinHeight'} ${controlClassNames}`;
|
|
14052
|
+
return `${appliedClasses} ${baseClasses$3} ${containerStyles} specSelectControl ${isDisabled ? disabledClasses$3 : ''} ${small ? 'tw:pl-2 tw:pr-1' : 'tw:pl-2.5 tw:pr-1.5'}`;
|
|
14036
14053
|
},
|
|
14037
14054
|
placeholder: () => placeholderStyles,
|
|
14038
14055
|
container: ({ selectProps }) => {
|
|
14039
|
-
const containerBorderStyles = selectProps?.menuIsOpen ? 'tw
|
|
14040
|
-
return `${textStyles} ${extraClassNames} ${containerBorderStyles}`;
|
|
14056
|
+
const containerBorderStyles = selectProps?.menuIsOpen ? 'tw:rounded-t-md' : 'tw:rounded-md';
|
|
14057
|
+
return `${textStyles} ${extraClassNames} ${containerBorderStyles} !tw:pointer-events-auto`;
|
|
14041
14058
|
},
|
|
14042
14059
|
input: () => textStyles + ' specSelectInput',
|
|
14043
14060
|
menuList: () => menuListStyles,
|
|
14044
14061
|
menu: () => menuStyles,
|
|
14045
|
-
menuPortal: () => '!tw
|
|
14062
|
+
menuPortal: () => '!tw:z-[9000]',
|
|
14046
14063
|
dropdownIndicator: () => dropDownIndicatorStyles,
|
|
14047
14064
|
option: ({ isSelected, isDisabled }) => {
|
|
14048
14065
|
let classes = optionStyles;
|
|
14049
14066
|
if (isDisabled) {
|
|
14050
14067
|
classes += ' specDisabledOption ';
|
|
14051
14068
|
}
|
|
14052
|
-
return isSelected ? classes + ' tw
|
|
14069
|
+
return isSelected ? classes + ' tw:bg-sq-colored-hover tw:dark:bg-sq-colored-hover-dark' : classes;
|
|
14053
14070
|
},
|
|
14054
14071
|
singleValue: () => 'specOpenSelect',
|
|
14055
14072
|
multiValue: () => multiValueStyles,
|
|
14056
|
-
multiValueRemove: () => 'hover:
|
|
14057
|
-
clearIndicator: () => 'tw
|
|
14073
|
+
multiValueRemove: () => 'tw:hover:text-sq-danger-color specSelectMultiValueRemove',
|
|
14074
|
+
clearIndicator: () => 'tw:text-sq-disabled-gray tw:hover:text-sq-danger-color specClearSelect',
|
|
14058
14075
|
group: () => 'specSelectGroup',
|
|
14059
14076
|
groupHeading: () => groupHeadingStyles,
|
|
14060
14077
|
},
|
|
@@ -14444,11 +14461,11 @@ var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
|
14444
14461
|
const Dialog = Root$4;
|
|
14445
14462
|
const DialogPortal = Portal$1;
|
|
14446
14463
|
const DialogClose = Close;
|
|
14447
|
-
const DialogContent = React__default.forwardRef(({ className, children, ...props }, ref) => (jsxs(DialogPortal, { children: [jsx$1("div", { className: "tw
|
|
14448
|
-
tw
|
|
14449
|
-
tw
|
|
14464
|
+
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 tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0\n tw: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
|
|
14465
|
+
tw:gap-4 tw:border tw:bg-sq-white tw:dark:bg-sq-dark-background tw:p-6 tw:shadow-lg tw:duration-200
|
|
14466
|
+
tw:rounded-lg ${className}`, ...props, children: [jsx$1(DialogTitle$1, { className: "tw:hidden" }), children] })] })));
|
|
14450
14467
|
DialogContent.displayName = Content$2.displayName;
|
|
14451
|
-
const DialogHeader = (props) => (jsx$1("div", { className: "tw
|
|
14468
|
+
const DialogHeader = (props) => (jsx$1("div", { className: "tw:w-full tw:justify-between", children: jsx$1("div", { ...props }) }));
|
|
14452
14469
|
DialogHeader.displayName = 'DialogHeader';
|
|
14453
14470
|
const DialogFooter = (props) => jsx$1("div", { ...props });
|
|
14454
14471
|
DialogFooter.displayName = 'DialogFooter';
|
|
@@ -14486,26 +14503,26 @@ const Modal = ({ titleIcon, title = 'Modal title example', titleSuffixLabel, sub
|
|
|
14486
14503
|
let titleIconElement = jsx$1(Fragment, {});
|
|
14487
14504
|
if (titleIcon) {
|
|
14488
14505
|
if (typeof titleIcon === 'string') {
|
|
14489
|
-
titleIconElement = (jsx$1(Icon, { icon: titleIcon, testId: "modalTitleIcon", extraClassNames: "tw
|
|
14506
|
+
titleIconElement = (jsx$1(Icon, { icon: titleIcon, testId: "modalTitleIcon", extraClassNames: "tw:flex tw:text-xl tw:mt-1" }));
|
|
14490
14507
|
}
|
|
14491
14508
|
else {
|
|
14492
|
-
titleIconElement = jsx$1("div", { className: "tw
|
|
14509
|
+
titleIconElement = jsx$1("div", { className: "tw:mt-1.5", children: titleIcon });
|
|
14493
14510
|
}
|
|
14494
14511
|
}
|
|
14495
|
-
return (jsxs(Fragment, { children: [titleIcon && titleIconPosition === 'left' ? jsx$1("div", { className: "tw
|
|
14512
|
+
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 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, {})] }));
|
|
14496
14513
|
};
|
|
14497
|
-
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
|
|
14498
|
-
'tw
|
|
14499
|
-
'tw
|
|
14500
|
-
'tw
|
|
14501
|
-
'tw
|
|
14502
|
-
'tw
|
|
14503
|
-
'tw
|
|
14504
|
-
'tw
|
|
14505
|
-
'tw
|
|
14506
|
-
'tw
|
|
14507
|
-
'tw
|
|
14508
|
-
}, dialogClassName), children: [jsxs(DialogHeader, { className: "modal-header tw
|
|
14514
|
+
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 tw:dark:text-sq-dark-text !tw:gap-0`, {
|
|
14515
|
+
'tw:max-w-xs': size === 'xs',
|
|
14516
|
+
'tw:max-w-sm': size === 'sm',
|
|
14517
|
+
'tw:max-w-md': size === 'md',
|
|
14518
|
+
'tw:max-w-lg': size === 'lg',
|
|
14519
|
+
'tw:max-w-xl': size === 'xl',
|
|
14520
|
+
'tw:max-w-2xl': size === '2xl',
|
|
14521
|
+
'tw:max-w-3xl': size === '3xl',
|
|
14522
|
+
'tw:max-w-4xl': size === '4xl',
|
|
14523
|
+
'tw:max-w-5xl': size === '5xl',
|
|
14524
|
+
'tw:max-w-6xl': size === '6xl',
|
|
14525
|
+
}, dialogClassName), children: [jsxs(DialogHeader, { className: "modal-header tw:flex tw:w-full tw:justify-between tw:border-sq-disabled-gray\n tw:dark: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: "tw:[&:has(:focus-visible)]:none tw:opacity-70 tw:bg-transparent tw:hover: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-25", 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-25", 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-25" }))] })] })) }))] }) })) : (jsx$1(Fragment, {}));
|
|
14509
14526
|
};
|
|
14510
14527
|
|
|
14511
14528
|
function createCollection(name) {
|
|
@@ -14963,11 +14980,11 @@ const Tabs = ({ tabs, defaultActiveTab, activeTab, onTabSelect, extraClassNames,
|
|
|
14963
14980
|
return;
|
|
14964
14981
|
onTabSelect && onTabSelect(tabId);
|
|
14965
14982
|
};
|
|
14966
|
-
return (jsxs(Root2$2, { className: `tw
|
|
14967
|
-
? 'tw
|
|
14968
|
-
: 'hover:
|
|
14969
|
-
? 'dark:
|
|
14970
|
-
: 'dark:
|
|
14983
|
+
return (jsxs(Root2$2, { className: `tw:flex tw:flex-col tw:min-w-75 tw:max-w-full tw:flex-grow tw:focus-visible: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 tw:dark:bg-sq-dark-background tw:h-sq-25 tw:focus-visible:outline-none tw:min-w-25 tw:px-4 tw:border-solid tw:flex tw:flex-1 tw:justify-center tw:items-center tw:border-r-0.5 tw:last:border-r-0 tw:border-sq-overlay tw:dark:border-gray-700 ${stretchTabs ? '' : 'tw:max-w-max tw:min-w-fit'} ${tabExtraClassNames || ''} ${activeTab === id
|
|
14984
|
+
? 'tw:border-b-sq-theme-dark tw:dark:border-b-sq-theme-dark tw:border-b-sq-3'
|
|
14985
|
+
: 'tw:hover:bg-sq-light-gray tw:border-b-sq-1 tw:hover:dark:bg-gray-700'}`, "data-testid": tabsTestId, disabled: disabled, value: id, children: jsxs("span", { className: "tw:flex tw:items-center tw:overflow-hidden", children: [icon && (jsx$1(Icon, { icon: icon, testId: `${id}_tab-icon`, extraClassNames: "tw:text-sq-15 tw:mr-sq-7 tw:flex-shrink-0" })), jsx$1("span", { className: `tw:text-sq-13 tw:font-medium tw:whitespace-nowrap tw:overflow-hidden tw:text-ellipsis ${activeTab === id
|
|
14986
|
+
? 'tw:dark:text-sq-dark-text tw:text-gray-500'
|
|
14987
|
+
: 'tw:dark:text-sq-theme-darker tw:text-sq-theme-dark'} ${tabLabelExtraClassNames}`, children: label })] }) }, `${label}-${id}-${index}`))) }), tabs.map((tab, index) => (jsx$1(Content$1, { className: `tw:bg-sq-white tw:dark:bg-sq-dark-background tw:overflow-y-auto tw:-mt-sq-1 tw:border-t-sq-1 tw:border-t-sq-overlay tw:dark:border-t-gray-700 tw:z-[500] tw:flex tw:flex-col tw:flex-grow tw:focus-visible:outline-none ${tab.tabContentExtraClassNames || ''}`, value: tab.id, children: tab.content }, `${tab.label}_${index}_content`)))] }));
|
|
14971
14988
|
};
|
|
14972
14989
|
|
|
14973
14990
|
var COLLAPSIBLE_NAME = "Collapsible";
|
|
@@ -15392,18 +15409,18 @@ var Trigger2 = AccordionTrigger;
|
|
|
15392
15409
|
var Content2$2 = AccordionContent;
|
|
15393
15410
|
|
|
15394
15411
|
const Accordion = ({ accordionItems, defaultValue, value, onItemSelect, disabled, extraClassNames, testId, }) => {
|
|
15395
|
-
return (jsx$1(Root2$1, { className: `tw
|
|
15412
|
+
return (jsx$1(Root2$1, { className: `tw:rounded-md tw:w-full tw:focus-visible: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: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 tw:focus-visible:outline-none tw:bg-transparent`, children: item.trigger }), jsx$1(Content2$2, { className: `tw:data-[state=open]:animate-slideDown tw:data-[state=closed]:animate-slideUp tw:overflow-hidden tw:focus-visible:outline-none ${item.contentClassNames || ''}`, children: item.content })] }, item.value))) }));
|
|
15396
15413
|
};
|
|
15397
15414
|
|
|
15398
|
-
const bgStyles$2 = ['tw
|
|
15415
|
+
const bgStyles$2 = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
|
|
15399
15416
|
const borderStyles$2 = [
|
|
15400
|
-
'tw
|
|
15401
|
-
'tw
|
|
15402
|
-
'tw
|
|
15403
|
-
'tw
|
|
15404
|
-
'dark:
|
|
15417
|
+
'tw:border-solid',
|
|
15418
|
+
'tw:border',
|
|
15419
|
+
'tw:rounded-popover',
|
|
15420
|
+
'tw:border-sq-disabled-gray',
|
|
15421
|
+
'tw:dark:border-gray-500',
|
|
15405
15422
|
].join(' ');
|
|
15406
|
-
const disabledClasses$2 = ['tw
|
|
15423
|
+
const disabledClasses$2 = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
|
|
15407
15424
|
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 }) => {
|
|
15408
15425
|
const tooltipData = getQTipData(tooltipProps);
|
|
15409
15426
|
const timeout = useRef(null);
|
|
@@ -15434,12 +15451,12 @@ const ButtonWithPopover = ({ children, trigger, id, hasArrow, extraTriggerClassN
|
|
|
15434
15451
|
};
|
|
15435
15452
|
React.useEffect(() => clearHoverTimeout, []);
|
|
15436
15453
|
const renderContent = () => {
|
|
15437
|
-
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
|
|
15438
|
-
data-[side=top]:
|
|
15439
|
-
${extraPopoverClassNames || ''}`, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: "tw
|
|
15454
|
+
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 tw:focus-visible:outline-none tw:outline-none data-[state=open]:tw:animate-in data-[state=closed]:tw:animate-out
|
|
15455
|
+
tw:data-[side=top]:animate-slideDownAndFade data-[side=right]:tw:animate-slideLeftAndFade tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade tw:text-sq-text-color
|
|
15456
|
+
${extraPopoverClassNames || ''}`, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: "tw:fill-transparent tw:bg-sq-white tw:w-sq-15 tw:h-sq-15 tw:-mt-sq-7 tw:rotate-45 tw:dark:bg-sq-dark-background tw:border-b tw:border-r tw:border-sq-disabled-gray tw:dark:border-gray-500" }) })), children] }) }));
|
|
15440
15457
|
};
|
|
15441
15458
|
const renderPopover = (popoverOpenState) => {
|
|
15442
|
-
return (jsxs(Root2$3, { open: popoverOpenState, defaultOpen: false, onOpenChange: onOpenChange, children: [trigger ? (jsx$1(Trigger$3, { id: id, asChild: isTriggerAsChild, className: `focus-visible:
|
|
15459
|
+
return (jsxs(Root2$3, { open: popoverOpenState, defaultOpen: false, onOpenChange: onOpenChange, children: [trigger ? (jsx$1(Trigger$3, { id: id, asChild: isTriggerAsChild, className: `tw:focus-visible:outline-none tw:outline-none tw:bg-transparent ${shouldTriggerFullWidth ? 'tw:w-full tw:h-full' : ''}`, disabled: disabled, children: jsx$1("div", { ...tooltipData, onMouseOver: onHoverStart, onMouseOut: onHoverEnd, className: `tw:focus-visible:outline-none tw:outline-none tw:dark:text-sq-white ${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()] }));
|
|
15443
15460
|
};
|
|
15444
15461
|
return isHoverEnabled ? renderPopover(isHoveredOpen) : renderPopover(isOpen);
|
|
15445
15462
|
};
|
|
@@ -16504,65 +16521,65 @@ var SubTrigger2 = DropdownMenuSubTrigger;
|
|
|
16504
16521
|
var SubContent2 = DropdownMenuSubContent;
|
|
16505
16522
|
|
|
16506
16523
|
const borderStyles$1 = [
|
|
16507
|
-
'tw
|
|
16508
|
-
'tw
|
|
16509
|
-
'tw
|
|
16510
|
-
'tw
|
|
16511
|
-
'dark:
|
|
16524
|
+
'tw:border-solid',
|
|
16525
|
+
'tw:border',
|
|
16526
|
+
'tw:rounded-popover',
|
|
16527
|
+
'tw:border-sq-disabled-gray',
|
|
16528
|
+
'tw:dark:border-gray-500',
|
|
16512
16529
|
].join(' ');
|
|
16513
|
-
const bgStyles$1 = ['tw
|
|
16514
|
-
const disabledClasses$1 = ['tw
|
|
16530
|
+
const bgStyles$1 = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
|
|
16531
|
+
const disabledClasses$1 = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
|
|
16515
16532
|
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 }) => {
|
|
16516
16533
|
const tooltipData = getQTipData(tooltipProps);
|
|
16517
|
-
return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, className: `tw-border-none focus-visible:
|
|
16534
|
+
return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, className: `tw:bg-transparent tw:border-none tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within:outline-none`, disabled: disabled, children: jsx$1("div", { ...tooltipData, className: `tw:bg-transparent tw:flex tw:flex-col tw:items-center tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within: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: "tw:focus-visible: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 tw:focus-visible:outline-none tw:outline-none tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out forceFont tw:data-[side=top]:animate-slideDownAndFade tw:data-[side=right]:animate-slideLeftAndFade tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade ${borderStyles$1} ${contentExtraClassNames}`, children: [hasArrow && (jsx$1(Arrow2, { asChild: true, children: jsx$1("div", { className: "tw:fill-transparent tw:bg-sq-white tw:w-sq-15 tw:h-sq-15 tw:rotate-45 tw:dark:bg-sq-dark-background tw:border-b tw:border-r tw:border-sq-disabled-gray tw:dark:border-gray-500 tw:-mt-sq-7" }) })), dropdownItems.map((item, index) => {
|
|
16518
16535
|
const tooltipData = getQTipData(item);
|
|
16519
16536
|
if (item.isLabel) {
|
|
16520
|
-
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
|
|
16537
|
+
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 tw:dark:text-sq-white tw:w-4.5" })), jsx$1("div", { "data-testid": item.labelTestId, className: `tw:text-sq-13 tw:ml-1 ${item.disabled ? 'tw:text-sq-disabled-gray' : 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:not-italic tw:font-normal ${item.labelClasses}`, children: item.label })] }, (item.id || '') + index));
|
|
16521
16538
|
}
|
|
16522
16539
|
if (Array.isArray(item.subMenuItems) && item.subMenuItems.length > 0) {
|
|
16523
|
-
return (jsxs(Sub2, { children: [jsxs(SubTrigger2, { id: id, className: `tw
|
|
16524
|
-
? '!tw
|
|
16525
|
-
: 'tw
|
|
16526
|
-
return (jsxs(Item2, { onSelect: subItem.onClick, "data-qtip-text": subItem.tooltip, className: "tw
|
|
16527
|
-
? 'tw
|
|
16528
|
-
: 'tw
|
|
16540
|
+
return (jsxs(Sub2, { children: [jsxs(SubTrigger2, { id: id, className: `tw:cursor-pointer tw:flex tw:justify-between tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:leading-none tw:items-center tw:h-sq-27 tw:pl-sq-19 tw:relative tw:select-none tw:outline-none tw:data-disabled: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-4.5 ${item.disabled
|
|
16541
|
+
? '!tw:text-sq-disabled-gray'
|
|
16542
|
+
: 'tw:text-sq-text-color tw:dark:text-sq-white'} ${item.iconExtraClassNames || ''}` })), jsx$1("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw:text-sq-13 tw:ml-1 ${item.disabled && '!tw:opacity-30'} tw:not-italic tw:font-semibold ${item.labelClasses}`, children: item.label })] }), jsx$1(Icon, { size: "sm", icon: "fc-arrow-dropdown tw:rotate-270", extraClassNames: `${item.disabled ? 'tw:text-sq-disabled-gray' : 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:w-4.5 tw:ml-4 tw:text-2 tw:justify-center tw:flex` })] }), jsx$1(Portal2, { children: jsx$1(SubContent2, { className: "tw:focus-visible: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 tw:focus-visible:outline-none tw:outline-none tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out forceFont tw:data-[side=top]:animate-slideDownAndFade tw:data-[side=right]:animate-slideLeftAndFade tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade ${borderStyles$1}`, children: item.subMenuItems.map((subItem, subIndex) => {
|
|
16543
|
+
return (jsxs(Item2, { onSelect: subItem.onClick, "data-qtip-text": subItem.tooltip, className: "tw:cursor-pointer tw:flex tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:leading-none tw:items-center tw:h-sq-27 tw:px-sq-19 tw:relative tw:select-none tw:outline-none tw:data-disabled:pointer-events-none", disabled: subItem.disabled, children: [subItem.iconClass && (jsx$1(Icon, { icon: subItem.iconClass, type: "text", extraClassNames: `tw:w-4.5 ${item.disabled && '!tw:opacity-30'}` })), jsx$1("div", { className: `tw:text-sq-13 tw:ml-1 ${subItem.disabled
|
|
16544
|
+
? 'tw:text-sq-disabled-gray'
|
|
16545
|
+
: 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:not-italic tw:font-normal ${item.labelClasses}`, children: subItem.label })] }, subItem.label + subIndex));
|
|
16529
16546
|
}) }) }) })] }, (item.id || item.icon || '') + index));
|
|
16530
16547
|
}
|
|
16531
16548
|
return (jsxs("div", { ...tooltipData, children: [jsxs(Item2, { "data-customid": item.itemCustomId, onSelect: (e) => {
|
|
16532
16549
|
item.onClick(e);
|
|
16533
|
-
}, className: `tw
|
|
16550
|
+
}, className: `tw:cursor-pointer tw:flex tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:leading-none tw:items-center tw:min-h-sq-27 tw:px-sq-19 tw:relative tw:select-none tw:outline-none tw:data-disabled: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-sq-4.5 ${item.disabled && '!tw:opacity-30'} ${item.iconExtraClassNames || ''}` })), jsx$1("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw:text-sq-13 tw:ml-1 ${item.disabled ? 'tw:text-sq-disabled-gray' : 'tw:text-sq-text-color tw:dark: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-px tw:bg-sq-disabled-gray tw:dark:bg-gray-500 tw:my-2" }))] }, (item.id || '') + index));
|
|
16534
16551
|
})] }) }) })] }));
|
|
16535
16552
|
};
|
|
16536
16553
|
|
|
16537
|
-
const baseClasses$2 = 'tw
|
|
16538
|
-
' tw
|
|
16539
|
-
const darkTheme$1 = 'dark:
|
|
16540
|
-
const lightTheme$1 = 'tw
|
|
16541
|
-
const errorClasses$1 = 'tw
|
|
16542
|
-
const borderColorClasses$1 = 'tw
|
|
16554
|
+
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' +
|
|
16555
|
+
' tw:border-solid tw:border tw:text-sm tw:flex tw:flex-col tw:justify-center tw:items-center';
|
|
16556
|
+
const darkTheme$1 = 'tw:dark:bg-sq-theme-hover-dark tw:dark:text-sq-text-color-dark';
|
|
16557
|
+
const lightTheme$1 = 'tw:text-sq-text-color tw:bg-sq-theme-highlight/10';
|
|
16558
|
+
const errorClasses$1 = 'tw:border-sq-danger';
|
|
16559
|
+
const borderColorClasses$1 = 'tw:border-sq-theme-dark';
|
|
16543
16560
|
/**
|
|
16544
16561
|
* Alert.
|
|
16545
16562
|
*/
|
|
16546
16563
|
const Alert = ({ children, dismissible = true, onClose, show = true, variant, testId = 'alert-id', id, extraClassNames, ...tooltipProps }) => {
|
|
16547
16564
|
const appliedTheme = {
|
|
16548
16565
|
theme: `${lightTheme$1} ${darkTheme$1}`,
|
|
16549
|
-
formulaError: 'tw
|
|
16550
|
-
danger: 'tw
|
|
16551
|
-
warning: 'tw
|
|
16552
|
-
gray: 'tw
|
|
16566
|
+
formulaError: 'tw:text-red-800 tw:bg-red-200 !tw:rounded-[0.25rem]',
|
|
16567
|
+
danger: 'tw:text-sq-text-color tw:bg-sq-danger',
|
|
16568
|
+
warning: 'tw:bg-sq-bg-warning tw:text-sq-text-color',
|
|
16569
|
+
gray: 'tw:bg-sq-hover-gray tw:text-sq-text-color tw:dark:bg-sq-tools-background-dark tw:dark:text-sq-text-color-dark',
|
|
16553
16570
|
};
|
|
16554
16571
|
const appliedBorderTheme = {
|
|
16555
16572
|
theme: borderColorClasses$1,
|
|
16556
16573
|
danger: errorClasses$1,
|
|
16557
|
-
warning: 'tw
|
|
16558
|
-
gray: 'tw
|
|
16559
|
-
formulaError: 'tw
|
|
16574
|
+
warning: 'tw:border-none',
|
|
16575
|
+
gray: 'tw:border-sq-darkish-gray',
|
|
16576
|
+
formulaError: 'tw:border-red-100',
|
|
16560
16577
|
};
|
|
16561
16578
|
const appliedClasses = `${baseClasses$2} ${appliedTheme[variant]} ${extraClassNames} ${appliedBorderTheme[variant]}`;
|
|
16562
16579
|
if (!show) {
|
|
16563
16580
|
return jsx$1("div", {});
|
|
16564
16581
|
}
|
|
16565
|
-
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
|
|
16582
|
+
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-size-11 tw:cursor-pointer tw:absolute tw:right-2.5 tw:top-2.5 ${variant.match(/danger|warning|gray|formulaError/) ? 'tw:text-sq-text-color tw:dark:text-sq-dark-text' : ''}`, testId: `${testId}-close-btn`, onClick: onClose, ...tooltipProps }))] }));
|
|
16566
16583
|
};
|
|
16567
16584
|
|
|
16568
16585
|
/**
|
|
@@ -16581,47 +16598,40 @@ const Alert = ({ children, dismissible = true, onClose, show = true, variant, te
|
|
|
16581
16598
|
* @param tooltipProps - props to pass to the tooltip
|
|
16582
16599
|
*/
|
|
16583
16600
|
const SvgIcon = ({ onClick, icon, color, type = 'default', extraClassNames, viewBox = '0 0 19 19', id, testId, customId, ...tooltipProps }) => {
|
|
16584
|
-
const appliedClassNames = `${onClick ? 'tw
|
|
16585
|
-
tw
|
|
16601
|
+
const appliedClassNames = `${onClick ? 'tw:cursor-pointer' : ''} ${extraClassNames} focus:tw:outline-none focus-visible:tw:outline-none
|
|
16602
|
+
tw:outline-none`;
|
|
16586
16603
|
const tooltipData = getQTipData(tooltipProps);
|
|
16587
16604
|
const appliedType = type === 'default' ? 'currentColor' : 'rgb(var(--sq-icon))';
|
|
16588
|
-
return (jsx$1("div", { onClick: onClick, ...tooltipData, className: `svgContainer ${appliedClassNames}`, children: jsx$1("svg", { xmlns: "http://www.w3.org/2000/svg", className: `tw
|
|
16605
|
+
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 tw:dark:text-sq-white`, viewBox: viewBox, fill: color ? color : appliedType, "data-testid": testId, children: jsx$1("path", { d: getSvgIconPath(icon) }) }) }));
|
|
16589
16606
|
};
|
|
16590
16607
|
|
|
16591
16608
|
const SeeqActionDropdownItem = (item) => {
|
|
16592
16609
|
let renderIcon = jsx$1(Fragment, {});
|
|
16593
16610
|
if (item.icon) {
|
|
16594
|
-
renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: 'tw-
|
|
16595
|
-
' dark:tw-text-sq-white tw-text-[22px] tw-text-sq-white ' +
|
|
16596
|
-
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 ' +
|
|
16597
|
-
item.iconExtraClassNames }));
|
|
16611
|
+
renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: 'tw:p-1 tw:h-8 tw:w-8 tw:dark:text-sq-white tw:!text-5.5 tw:text-sq-white ' + item.iconExtraClassNames, ...item })) : (jsx$1(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw:dark:text-sq-white tw:!text-5.5 tw:text-sq-white ' + item.iconExtraClassNames }));
|
|
16598
16612
|
}
|
|
16599
|
-
return (jsxs("div", { className: "tw
|
|
16613
|
+
return (jsxs("div", { className: "tw:flex-col tw:flex tw:p-2.5 tw:pl-5 tw:w-150", children: [jsxs("div", { className: "tw:flex tw:flex-row tw:gap-2 tw:items-end", children: [jsx$1("div", { className: "tw:rounded-[0.1875rem] tw:h-8 tw:w-8 tw:bg-sq-theme-dark tw:flex tw:justify-center tw:items-center ", children: renderIcon }), jsx$1("h4", { className: "tw:text-base tw:font-[600] tw:leading-5 mb-0", children: item.display })] }), jsx$1("div", { className: "tw:text-sq-13 tw:font-normal", children: item.text })] }));
|
|
16600
16614
|
};
|
|
16601
16615
|
const ViewWorkbench = (item) => {
|
|
16602
16616
|
let renderIcon = jsx$1(Fragment, {});
|
|
16603
16617
|
if (item.icon) {
|
|
16604
|
-
renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: 'tw-
|
|
16605
|
-
' tw-text-sq-text-color ' +
|
|
16606
|
-
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' +
|
|
16607
|
-
' tw-text-sq-text-color ' +
|
|
16608
|
-
item.iconExtraClassNames }));
|
|
16618
|
+
renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: 'tw:w-4 tw:text-5 tw:dark:text-sq-white' + ' tw:text-sq-text-color ' + item.iconExtraClassNames, type: "default", ...item })) : (jsx$1(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ' + item.iconExtraClassNames }));
|
|
16609
16619
|
}
|
|
16610
|
-
return (jsx$1("div", { className: "tw
|
|
16620
|
+
return (jsx$1("div", { className: "tw:flex-col tw:flex tw:p-2.5", children: jsxs("div", { className: "tw:flex tw:flex-row tw:gap-2 tw:items-end", children: [jsx$1("div", { className: "tw:rounded-[0.1875rem] tw:h-5 tw:w-5 tw:flex tw:justify-center tw:items-center ", children: renderIcon }), jsx$1("div", { className: "tw:text-sq-13", children: item.display })] }) }));
|
|
16611
16621
|
};
|
|
16612
16622
|
const InsertSeeqContent = (item) => {
|
|
16613
|
-
return (jsxs("div", { className: "tw
|
|
16623
|
+
return (jsxs("div", { className: "tw:flex-col tw:flex tw:justify-start tw:p-2.5 tw:font-normal tw:text-left tw:text-sq-text-color tw:dark:text-sq-dark-text", children: [jsx$1("h5", { className: "tw:text-4 tw:font-medium tw:text-sq-theme-dark tw:leading-4.5", children: item.display }), jsx$1("div", { className: "tw:text-sq-13 tw:text-sq-text-color tw:dark:text-sq-dark-text !tw:mt-1", children: item.text })] }));
|
|
16614
16624
|
};
|
|
16615
16625
|
|
|
16616
16626
|
const borderStyles = [
|
|
16617
|
-
'tw
|
|
16618
|
-
'tw
|
|
16619
|
-
'tw
|
|
16620
|
-
'tw
|
|
16621
|
-
'dark:
|
|
16627
|
+
'tw:border-solid',
|
|
16628
|
+
'tw:border',
|
|
16629
|
+
'tw:rounded-md',
|
|
16630
|
+
'tw:border-sq-disabled-gray',
|
|
16631
|
+
'tw:dark:border-gray-500',
|
|
16622
16632
|
].join(' ');
|
|
16623
|
-
const bgStyles = ['tw
|
|
16624
|
-
const disabledClasses = ['tw
|
|
16633
|
+
const bgStyles = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
|
|
16634
|
+
const disabledClasses = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
|
|
16625
16635
|
const renderItem = (variant, item) => {
|
|
16626
16636
|
switch (variant) {
|
|
16627
16637
|
case 'create-workbench':
|
|
@@ -16636,31 +16646,31 @@ const renderItem = (variant, item) => {
|
|
|
16636
16646
|
};
|
|
16637
16647
|
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 }) => {
|
|
16638
16648
|
const tooltipData = getQTipData(tooltipProps);
|
|
16639
|
-
return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, "data-testid": id, className: `tw
|
|
16640
|
-
' tw
|
|
16641
|
-
' data-[state=open]:
|
|
16642
|
-
' forceFont data-[side=top]:
|
|
16643
|
-
borderStyles, children: [hasArrow && (jsx$1(Arrow2, { asChild: true, children: jsx$1("div", { className: " tw
|
|
16649
|
+
return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, "data-testid": id, className: `tw:border-none tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within:outline-none`, asChild: true, disabled: disabled, children: jsx$1("div", { ...tooltipData, className: `tw:bg-transparent tw:flex tw:flex-col tw:items-center tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within: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: "tw:focus-visible:outline-none tw:outline-none", children: jsxs("div", { "data-testid": containerTestId, className: bgStyles +
|
|
16650
|
+
' tw:relative tw:z-[1200] tw:min-w-6 tw:py-2 tw:focus-visible:outline-none tw:outline-none' +
|
|
16651
|
+
' tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out' +
|
|
16652
|
+
' forceFont tw:data-[side=top]:animate-slideDownAndFade tw:data-[side=right]:animate-slideLeftAndFade tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade ' +
|
|
16653
|
+
borderStyles, children: [hasArrow && (jsx$1(Arrow2, { asChild: true, children: jsx$1("div", { className: " tw:fill-transparent tw:bg-sq-white tw:w-sq-15 tw:h-sq-15 tw:rotate-45 tw:dark:bg-sq-dark-background tw:border-b tw:border-r tw:border-sq-disabled-gray tw:dark:border-gray-500 tw:-mt-sq-7" }) })), seeqActionDropdownItems.map((item, index) => {
|
|
16644
16654
|
return (jsxs("div", { children: [jsx$1(Item2, { onSelect: (e) => {
|
|
16645
16655
|
item.action(e);
|
|
16646
|
-
}, className: `tw
|
|
16656
|
+
}, className: `tw:cursor-pointer tw:flex tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:relative tw:select-none tw:outline-none tw:data-[disabled]:text-sq-disabled-gray tw:data-[disabled]: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-px tw:bg-sq-disabled-gray tw:dark:bg-gray-500 tw:my-2" }))] }, item.display + index));
|
|
16647
16657
|
})] }) })] }));
|
|
16648
16658
|
};
|
|
16649
16659
|
|
|
16650
|
-
const baseClasses$1 = 'tw
|
|
16651
|
-
const errorClasses = 'tw
|
|
16660
|
+
const baseClasses$1 = 'tw:flex tw:outline-none tw:rounded-md tw:w-full tw:relative tw:flex-wrap';
|
|
16661
|
+
const errorClasses = 'tw:border-sq-danger';
|
|
16652
16662
|
const borderColorClasses = [
|
|
16653
|
-
'tw
|
|
16654
|
-
'dark:
|
|
16655
|
-
'dark:focus:
|
|
16656
|
-
'dark:active:
|
|
16657
|
-
'focus:
|
|
16658
|
-
'active:
|
|
16663
|
+
'tw:border-sq-disabled-gray',
|
|
16664
|
+
'tw:dark:border-sq-dark-disabled-gray',
|
|
16665
|
+
'tw:dark:focus:border-sq-theme-darker',
|
|
16666
|
+
'tw:dark:active:border-sq-theme-darker',
|
|
16667
|
+
'tw:focus:border-sq-theme-dark',
|
|
16668
|
+
'tw:active:border-sq-theme-dark',
|
|
16659
16669
|
].join(' ');
|
|
16660
|
-
const fieldBorderRadius = 'tw
|
|
16661
|
-
const fieldClasses = 'tw
|
|
16662
|
-
const darkTheme = 'dark:
|
|
16663
|
-
const lightTheme = 'tw
|
|
16670
|
+
const fieldBorderRadius = 'tw:rounded-l-md tw:rounded-r-none';
|
|
16671
|
+
const fieldClasses = 'tw:leading-normal tw:outline-none tw:py-1 tw:px-3' + 'tw:p-1 tw:border-solid tw:border';
|
|
16672
|
+
const darkTheme = 'tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-disabled-gray';
|
|
16673
|
+
const lightTheme = 'tw:text-sq-text-color tw:disabled:text-sq-darkish-gray';
|
|
16664
16674
|
/**
|
|
16665
16675
|
* InputGroup.
|
|
16666
16676
|
*/
|
|
@@ -16670,8 +16680,10 @@ const InputGroup = React__default.forwardRef((props, ref) => {
|
|
|
16670
16680
|
const appliedClasses = `${baseClasses$1} ${extraClassNames}`;
|
|
16671
16681
|
const fieldAppliedClasses = `${fieldClasses} ${extraClassNames} ${lightTheme} ${darkTheme} ${fieldBorderRadius} ${showError ? errorClasses : borderColorClasses} `;
|
|
16672
16682
|
const elementsToAppend = append.filter(Boolean);
|
|
16673
|
-
return (jsxs("div", { id: `input-group-${id}`, className: appliedClasses, children: [field ? (jsx$1("div", { "data-testid": testId, className: `tw
|
|
16674
|
-
return item?.variant === 'button' ? (jsx$1(Button, { extraClassNames: `$
|
|
16683
|
+
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 tw:active: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 tw:focus:z-30 tw:rounded-r-none tw:last:rounded-r-md ${extraClassNames}`, ...tooltipData })), elementsToAppend.map((item, index) => {
|
|
16684
|
+
return item?.variant === 'button' ? (jsx$1(Button, { extraClassNames: `$
|
|
16685
|
+
index ? 'tw:-ml-px' : 'tw:ml-0'
|
|
16686
|
+
} 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));
|
|
16675
16687
|
})] }));
|
|
16676
16688
|
});
|
|
16677
16689
|
|
|
@@ -16720,22 +16732,23 @@ const clamp$1 = (min, max, v) => {
|
|
|
16720
16732
|
return v;
|
|
16721
16733
|
};
|
|
16722
16734
|
|
|
16735
|
+
function formatErrorMessage(message, errorCode) {
|
|
16736
|
+
return errorCode
|
|
16737
|
+
? `${message}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${errorCode}`
|
|
16738
|
+
: message;
|
|
16739
|
+
}
|
|
16740
|
+
|
|
16723
16741
|
let warning = () => { };
|
|
16724
16742
|
let invariant = () => { };
|
|
16725
16743
|
if (process.env.NODE_ENV !== "production") {
|
|
16726
|
-
const formatMessage = (message, errorCode) => {
|
|
16727
|
-
return errorCode
|
|
16728
|
-
? `${message}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${errorCode}`
|
|
16729
|
-
: message;
|
|
16730
|
-
};
|
|
16731
16744
|
warning = (check, message, errorCode) => {
|
|
16732
16745
|
if (!check && typeof console !== "undefined") {
|
|
16733
|
-
console.warn(
|
|
16746
|
+
console.warn(formatErrorMessage(message, errorCode));
|
|
16734
16747
|
}
|
|
16735
16748
|
};
|
|
16736
16749
|
invariant = (check, message, errorCode) => {
|
|
16737
16750
|
if (!check) {
|
|
16738
|
-
throw new Error(
|
|
16751
|
+
throw new Error(formatErrorMessage(message, errorCode));
|
|
16739
16752
|
}
|
|
16740
16753
|
};
|
|
16741
16754
|
}
|
|
@@ -16856,10 +16869,10 @@ function velocityPerSecond(velocity, frameDuration) {
|
|
|
16856
16869
|
}
|
|
16857
16870
|
|
|
16858
16871
|
const warned = new Set();
|
|
16859
|
-
function warnOnce(condition, message,
|
|
16872
|
+
function warnOnce(condition, message, errorCode) {
|
|
16860
16873
|
if (condition || warned.has(message))
|
|
16861
16874
|
return;
|
|
16862
|
-
console.warn(message);
|
|
16875
|
+
console.warn(formatErrorMessage(message, errorCode));
|
|
16863
16876
|
warned.add(message);
|
|
16864
16877
|
}
|
|
16865
16878
|
|
|
@@ -18464,6 +18477,10 @@ class JSAnimation extends WithPromise {
|
|
|
18464
18477
|
get duration() {
|
|
18465
18478
|
return millisecondsToSeconds(this.calculatedDuration);
|
|
18466
18479
|
}
|
|
18480
|
+
get iterationDuration() {
|
|
18481
|
+
const { delay = 0 } = this.options || {};
|
|
18482
|
+
return this.duration + millisecondsToSeconds(delay);
|
|
18483
|
+
}
|
|
18467
18484
|
get time() {
|
|
18468
18485
|
return millisecondsToSeconds(this.currentTime);
|
|
18469
18486
|
}
|
|
@@ -19066,6 +19083,10 @@ class NativeAnimation extends WithPromise {
|
|
|
19066
19083
|
const duration = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
19067
19084
|
return millisecondsToSeconds(Number(duration));
|
|
19068
19085
|
}
|
|
19086
|
+
get iterationDuration() {
|
|
19087
|
+
const { delay = 0 } = this.options || {};
|
|
19088
|
+
return this.duration + millisecondsToSeconds(delay);
|
|
19089
|
+
}
|
|
19069
19090
|
get time() {
|
|
19070
19091
|
return millisecondsToSeconds(Number(this.animation.currentTime) || 0);
|
|
19071
19092
|
}
|
|
@@ -19252,12 +19273,9 @@ function canAnimate(keyframes, name, type, velocity) {
|
|
|
19252
19273
|
((type === "spring" || isGenerator(type)) && velocity));
|
|
19253
19274
|
}
|
|
19254
19275
|
|
|
19255
|
-
|
|
19256
|
-
|
|
19257
|
-
|
|
19258
|
-
*/
|
|
19259
|
-
function isHTMLElement(element) {
|
|
19260
|
-
return isObject(element) && "offsetHeight" in element;
|
|
19276
|
+
function makeAnimationInstant(options) {
|
|
19277
|
+
options.duration = 0;
|
|
19278
|
+
options.type = "keyframes";
|
|
19261
19279
|
}
|
|
19262
19280
|
|
|
19263
19281
|
/**
|
|
@@ -19274,7 +19292,14 @@ const acceleratedValues = new Set([
|
|
|
19274
19292
|
const supportsWaapi = /*@__PURE__*/ memo(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
19275
19293
|
function supportsBrowserAnimation(options) {
|
|
19276
19294
|
const { motionValue, name, repeatDelay, repeatType, damping, type } = options;
|
|
19277
|
-
|
|
19295
|
+
const subject = motionValue?.owner?.current;
|
|
19296
|
+
/**
|
|
19297
|
+
* We use this check instead of isHTMLElement() because we explicitly
|
|
19298
|
+
* **don't** want elements in different timing contexts (i.e. popups)
|
|
19299
|
+
* to be accelerated, as it's not possible to sync these animations
|
|
19300
|
+
* properly with those driven from the main window frameloop.
|
|
19301
|
+
*/
|
|
19302
|
+
if (!(subject instanceof HTMLElement)) {
|
|
19278
19303
|
return false;
|
|
19279
19304
|
}
|
|
19280
19305
|
const { onUpdate, transformTemplate } = motionValue.owner.getProps();
|
|
@@ -19345,7 +19370,7 @@ class AsyncMotionValueAnimation extends WithPromise {
|
|
|
19345
19370
|
onUpdate?.(getFinalKeyframe$1(keyframes, options, finalKeyframe));
|
|
19346
19371
|
}
|
|
19347
19372
|
keyframes[0] = keyframes[keyframes.length - 1];
|
|
19348
|
-
options
|
|
19373
|
+
makeAnimationInstant(options);
|
|
19349
19374
|
options.repeat = 0;
|
|
19350
19375
|
}
|
|
19351
19376
|
/**
|
|
@@ -19412,6 +19437,9 @@ class AsyncMotionValueAnimation extends WithPromise {
|
|
|
19412
19437
|
get duration() {
|
|
19413
19438
|
return this.animation.duration;
|
|
19414
19439
|
}
|
|
19440
|
+
get iterationDuration() {
|
|
19441
|
+
return this.animation.iterationDuration;
|
|
19442
|
+
}
|
|
19415
19443
|
get time() {
|
|
19416
19444
|
return this.animation.time;
|
|
19417
19445
|
}
|
|
@@ -19848,6 +19876,14 @@ const getValueAsType = (value, type) => {
|
|
|
19848
19876
|
: value;
|
|
19849
19877
|
};
|
|
19850
19878
|
|
|
19879
|
+
/**
|
|
19880
|
+
* Checks if an element is an HTML element in a way
|
|
19881
|
+
* that works across iframes
|
|
19882
|
+
*/
|
|
19883
|
+
function isHTMLElement(element) {
|
|
19884
|
+
return isObject(element) && "offsetHeight" in element;
|
|
19885
|
+
}
|
|
19886
|
+
|
|
19851
19887
|
/**
|
|
19852
19888
|
* Maximum time between the value of two frames, beyond which we
|
|
19853
19889
|
* assume the velocity has since been 0.
|
|
@@ -19881,7 +19917,7 @@ class MotionValue {
|
|
|
19881
19917
|
* An object containing a SubscriptionManager for each active event.
|
|
19882
19918
|
*/
|
|
19883
19919
|
this.events = {};
|
|
19884
|
-
this.updateAndNotify = (v
|
|
19920
|
+
this.updateAndNotify = (v) => {
|
|
19885
19921
|
const currentTime = time.now();
|
|
19886
19922
|
/**
|
|
19887
19923
|
* If we're updating the value during another frame or eventloop
|
|
@@ -19902,10 +19938,6 @@ class MotionValue {
|
|
|
19902
19938
|
}
|
|
19903
19939
|
}
|
|
19904
19940
|
}
|
|
19905
|
-
// Update render subscribers
|
|
19906
|
-
if (render) {
|
|
19907
|
-
this.events.renderRequest?.notify(this.current);
|
|
19908
|
-
}
|
|
19909
19941
|
};
|
|
19910
19942
|
this.hasAnimated = false;
|
|
19911
19943
|
this.setCurrent(init);
|
|
@@ -20016,9 +20048,9 @@ class MotionValue {
|
|
|
20016
20048
|
*
|
|
20017
20049
|
* @public
|
|
20018
20050
|
*/
|
|
20019
|
-
set(v
|
|
20020
|
-
if (!
|
|
20021
|
-
this.updateAndNotify(v
|
|
20051
|
+
set(v) {
|
|
20052
|
+
if (!this.passiveEffect) {
|
|
20053
|
+
this.updateAndNotify(v);
|
|
20022
20054
|
}
|
|
20023
20055
|
else {
|
|
20024
20056
|
this.passiveEffect(v, this.updateAndNotify);
|
|
@@ -27381,7 +27413,7 @@ var Thumb = SliderThumb;
|
|
|
27381
27413
|
*/
|
|
27382
27414
|
const Slider = (props) => {
|
|
27383
27415
|
const { onValueChange, onPointerUp, id, value, name, disabled = false, rootExtraClassNames = '', trackExtraClassNames = '', rangeExtraClassNames = '', thumbExtraClassNames = '', step, min, max, } = props;
|
|
27384
|
-
return (jsxs(Root$1, { className: `tw
|
|
27416
|
+
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-sq-5 tw:grow tw:rounded-sm tw:bg-sq-dark-gray tw:dark: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-sq-15 tw:w-sq-15 tw:rounded-full tw:bg-sq-theme-dark active:tw:bg-sq-theme-darker tw:focus:outline-none tw:focus-visible:outline-none tw:aria-disabled:bg-sq-dark-gray tw:dark:aria-disabled:bg-sq-dark-disabled-gray tw:transition tw:ease-in-out ${thumbExtraClassNames}`, "aria-disabled": disabled })] }));
|
|
27385
27417
|
};
|
|
27386
27418
|
|
|
27387
27419
|
var PROGRESS_NAME = "Progress";
|
|
@@ -28650,7 +28682,7 @@ function validateWCAG2Parms(parms) {
|
|
|
28650
28682
|
};
|
|
28651
28683
|
}
|
|
28652
28684
|
|
|
28653
|
-
const baseLabelClasses = 'tw
|
|
28685
|
+
const baseLabelClasses = 'tw:left-1 tw:text-xs tw:text-sq-text-color tw:dark:text-sq-dark-text tw:items-center tw:h-4.5';
|
|
28654
28686
|
const ProgressIndicator = (props) => {
|
|
28655
28687
|
const { value, color = undefined, testId, label, extraClasses = '', labelClasses = '', valuesLength, max, index, totalValue, ...tooltipProps } = props;
|
|
28656
28688
|
const tooltipData = getQTipData(tooltipProps);
|
|
@@ -28663,19 +28695,19 @@ const ProgressIndicator = (props) => {
|
|
|
28663
28695
|
if (totalValue >= max) {
|
|
28664
28696
|
// If progress is 100%, round both ends
|
|
28665
28697
|
if (index === 0 && valuesLength === 1) {
|
|
28666
|
-
roundedCorners = 'tw
|
|
28698
|
+
roundedCorners = 'tw:rounded-[0.9375rem]';
|
|
28667
28699
|
}
|
|
28668
28700
|
else if (index === 0) {
|
|
28669
|
-
roundedCorners = 'tw
|
|
28701
|
+
roundedCorners = 'tw:rounded-l-[0.9375rem]';
|
|
28670
28702
|
}
|
|
28671
28703
|
else if (index === valuesLength - 1) {
|
|
28672
|
-
roundedCorners = 'tw
|
|
28704
|
+
roundedCorners = 'tw:rounded-r-[0.9375rem]';
|
|
28673
28705
|
}
|
|
28674
28706
|
}
|
|
28675
28707
|
else {
|
|
28676
28708
|
// Otherwise, only round the leftmost indicator
|
|
28677
28709
|
if (index === 0) {
|
|
28678
|
-
roundedCorners = 'tw
|
|
28710
|
+
roundedCorners = 'tw:rounded-l-[0.9375rem]';
|
|
28679
28711
|
}
|
|
28680
28712
|
}
|
|
28681
28713
|
useEffect(() => {
|
|
@@ -28687,13 +28719,13 @@ const ProgressIndicator = (props) => {
|
|
|
28687
28719
|
return () => clearTimeout(timeout);
|
|
28688
28720
|
}, [value]);
|
|
28689
28721
|
const bgColor = color || undefined;
|
|
28690
|
-
const bgClass = color ? '' : 'tw
|
|
28722
|
+
const bgClass = color ? '' : 'tw:bg-sq-theme-dark';
|
|
28691
28723
|
const computeTextClass = (elem) => {
|
|
28692
28724
|
const computedStyle = getComputedStyle(elem);
|
|
28693
28725
|
const backgroundColor = computedStyle.backgroundColor;
|
|
28694
28726
|
const textColorClass = tinycolor(backgroundColor).isDark()
|
|
28695
|
-
? 'tw
|
|
28696
|
-
: 'tw
|
|
28727
|
+
? 'tw:text-sq-white tw:dark:text-sq-white'
|
|
28728
|
+
: 'tw:text-sq-text-color tw:dark:text-sq-text-color';
|
|
28697
28729
|
setTextColorClass(textColorClass);
|
|
28698
28730
|
};
|
|
28699
28731
|
useEffect(() => {
|
|
@@ -28701,35 +28733,35 @@ const ProgressIndicator = (props) => {
|
|
|
28701
28733
|
computeTextClass(indicatorElementRef.current);
|
|
28702
28734
|
}
|
|
28703
28735
|
}, [!!indicatorElementRef.current]);
|
|
28704
|
-
return (createElement(Indicator, { className: `tw
|
|
28736
|
+
return (createElement(Indicator, { className: `tw:ease-[cubic-bezier(0.65, 0, 0.35, 1)] tw:w-full tw:h-4.5 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: {
|
|
28705
28737
|
// Background color will default to the theme color if undefined
|
|
28706
28738
|
backgroundColor: bgColor,
|
|
28707
28739
|
animation: 'width 660ms forwards',
|
|
28708
28740
|
width: `${animatedWidth}%`,
|
|
28709
|
-
} }, label ? (jsx$1("span", { className: `${baseLabelClasses} ${labelClasses} ${textColorClass} ${valuesLength === 1 ? 'tw
|
|
28741
|
+
} }, label ? (jsx$1("span", { className: `${baseLabelClasses} ${labelClasses} ${textColorClass} ${valuesLength === 1 ? 'tw:absolute tw:z-50' : ''}`, children: label })) : undefined));
|
|
28710
28742
|
};
|
|
28711
28743
|
const ProgressBar = ({ values = [], max = 100, containerExtraClasses = '', zeroValueLabel = 'No progress yet', }) => {
|
|
28712
28744
|
const totalValue = values.reduce((acc, { value }) => acc + value, 0);
|
|
28713
|
-
return (jsx$1(Root, { className: `tw
|
|
28714
|
-
return createElement(ProgressIndicator, { ...props, max: max, valuesLength: values.length, index: i, totalValue: totalValue, key: i });
|
|
28715
|
-
})) : (jsx$1("div", { className: `${baseLabelClasses} tw
|
|
28745
|
+
return (jsx$1(Root, { className: `tw:relative tw:h-4.5 tw:w-full tw:overflow-hidden tw:rounded-[0.9375rem] tw:bg-sq-dark-gray tw:dark:bg-sq-dark-disabled-gray tw:flex tw:flex-1 ${containerExtraClasses}`, max: max, value: totalValue, children: totalValue > 0 ? (values.map((props, i) => {
|
|
28746
|
+
return (createElement(ProgressIndicator, { ...props, max: max, valuesLength: values.length, index: i, totalValue: totalValue, key: i }));
|
|
28747
|
+
})) : (jsx$1("div", { className: `${baseLabelClasses} tw:mx-auto tw:overflow-hidden`, children: zeroValueLabel })) }));
|
|
28716
28748
|
};
|
|
28717
28749
|
|
|
28718
|
-
const baseClasses = 'tw
|
|
28750
|
+
const baseClasses = 'tw:flex tw:outline-none tw:w-full tw:relative tw:flex-wrap';
|
|
28719
28751
|
const activeClassesByVariantLightTheme = {
|
|
28720
|
-
'outline': '!tw
|
|
28721
|
-
'theme': 'tw
|
|
28752
|
+
'outline': '!tw:bg-sq-disabled-gray tw:border-sq-theme-dark',
|
|
28753
|
+
'theme': 'tw:bg-sq-theme-highlight',
|
|
28722
28754
|
'danger': '',
|
|
28723
28755
|
'theme-light': '',
|
|
28724
|
-
'no-border': '!tw
|
|
28756
|
+
'no-border': '!tw:bg-sq-disabled-gray',
|
|
28725
28757
|
'warning': '',
|
|
28726
28758
|
};
|
|
28727
28759
|
const activeClassesByVariantDarkTheme = {
|
|
28728
|
-
'outline': 'dark
|
|
28729
|
-
'theme': 'dark:
|
|
28760
|
+
'outline': '!tw:dark:bg-sq-multi-gray-dark tw:dark:border-sq-theme-dark',
|
|
28761
|
+
'theme': 'tw:dark:bg-sq-theme-highlight',
|
|
28730
28762
|
'danger': '',
|
|
28731
28763
|
'theme-light': '',
|
|
28732
|
-
'no-border': 'dark
|
|
28764
|
+
'no-border': '!tw:dark:bg-sq-multi-gray-dark',
|
|
28733
28765
|
'warning': '',
|
|
28734
28766
|
};
|
|
28735
28767
|
/**
|
|
@@ -28741,7 +28773,7 @@ const ButtonGroup = (props) => {
|
|
|
28741
28773
|
const appliedClasses = `${baseClasses} ${extraClassNames}`;
|
|
28742
28774
|
return (jsx$1("div", { id: id ? `button-group-${id}` : undefined, "data-testid": testId, className: appliedClasses, ...tooltipData, children: buttons
|
|
28743
28775
|
.filter(Boolean)
|
|
28744
|
-
.map((item, index) => item?.variant === 'button' ? (jsx$1(Button, { ...item.buttonProps, extraClassNames: `tw
|
|
28776
|
+
.map((item, index) => item?.variant === 'button' ? (jsx$1(Button, { ...item.buttonProps, extraClassNames: `tw:-ml-sq-1 tw:focus:z-40 tw:outline-none tw:focus:border tw:rounded-none tw:first:rounded-l-md tw:last:rounded-r-md ${item.buttonProps?.isActive
|
|
28745
28777
|
? `${activeClassesByVariantLightTheme[item?.buttonProps?.variant ?? 'outline']} ${activeClassesByVariantDarkTheme[item?.buttonProps?.variant ?? 'outline']} `
|
|
28746
28778
|
: ''} ${item.buttonProps.extraClassNames}`, onClick: () => onChange && onChange(item?.buttonProps?.value) }, index)) : (item?.element)) }));
|
|
28747
28779
|
};
|
|
@@ -28751,7 +28783,7 @@ const ButtonGroup = (props) => {
|
|
|
28751
28783
|
* - Easily create a carousel with custom slides.
|
|
28752
28784
|
* - Supports automatic sliding, navigation arrows, and slide indicators.
|
|
28753
28785
|
*/
|
|
28754
|
-
const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '', onSlide = () => { }, autoSlide, showIndicators = true, continuous = true, interval = 4000, prevIcon = 'fc-arrow-dropdown tw
|
|
28786
|
+
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-270', showArrows = true, iconExtraClassNames = '', carouselItems = [], }) => {
|
|
28755
28787
|
const [currentIndex, setCurrentIndex] = useState(activeIndex);
|
|
28756
28788
|
const changeSlide = (nextIndex) => {
|
|
28757
28789
|
const newIndex = (nextIndex + carouselItems.length) % carouselItems.length;
|
|
@@ -28813,7 +28845,7 @@ const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '
|
|
|
28813
28845
|
transition: { type: 'spring', damping: 20, stiffness: 100 },
|
|
28814
28846
|
}),
|
|
28815
28847
|
};
|
|
28816
|
-
return (jsxs("div", { "data-testid": testId, className: `tw
|
|
28848
|
+
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-theme-dark' : 'tw:bg-sq-darkish-gray'}`, onClick: () => changeSlide(i) }, i))) }))] }));
|
|
28817
28849
|
};
|
|
28818
28850
|
|
|
28819
28851
|
const buttonTypes = ['button', 'reset', 'submit', 'link'];
|