@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.js
CHANGED
|
@@ -66,34 +66,34 @@ const getQTipData = ({ tooltip, tooltipPlacement, isHtmlTooltip, tooltipTestId,
|
|
|
66
66
|
: undefined;
|
|
67
67
|
|
|
68
68
|
const colorClassesThemeLight = {
|
|
69
|
-
'theme': 'tw
|
|
70
|
-
'white': 'tw
|
|
71
|
-
'dark-gray': 'tw
|
|
72
|
-
'warning': 'tw
|
|
73
|
-
'darkish-gray': 'tw
|
|
74
|
-
'gray': 'tw
|
|
69
|
+
'theme': 'tw:text-sq-theme-dark',
|
|
70
|
+
'white': 'tw:text-sq-white',
|
|
71
|
+
'dark-gray': 'tw:text-sq-fairly-dark-gray',
|
|
72
|
+
'warning': 'tw:text-sq-warning',
|
|
73
|
+
'darkish-gray': 'tw:text-sq-darkish-gray',
|
|
74
|
+
'gray': 'tw:text-sq-disabled-gray',
|
|
75
75
|
'color': '',
|
|
76
|
-
'info': 'tw
|
|
77
|
-
'text': 'tw
|
|
76
|
+
'info': 'tw:text-sq-theme-link',
|
|
77
|
+
'text': 'tw:text-sq-text-color',
|
|
78
78
|
'inherit': '',
|
|
79
|
-
'danger': 'tw
|
|
80
|
-
'theme-light': 'tw
|
|
81
|
-
'success': 'tw
|
|
79
|
+
'danger': 'tw:text-sq-danger',
|
|
80
|
+
'theme-light': 'tw:text-sq-theme-light',
|
|
81
|
+
'success': 'tw:text-sq-success',
|
|
82
82
|
};
|
|
83
83
|
const colorClassesThemeDark = {
|
|
84
|
-
'theme': 'dark:
|
|
84
|
+
'theme': 'tw:dark:text-sq-theme-darker',
|
|
85
85
|
'white': '',
|
|
86
|
-
'dark-gray': 'tw
|
|
86
|
+
'dark-gray': 'tw:text-sq-fairly-dark-gray',
|
|
87
87
|
'warning': '',
|
|
88
|
-
'darkish-gray': 'tw
|
|
89
|
-
'gray': 'dark:
|
|
88
|
+
'darkish-gray': 'tw:text-sq-darkish-gray',
|
|
89
|
+
'gray': 'tw:dark:text-sq-dark-disabled-gray',
|
|
90
90
|
'color': '',
|
|
91
|
-
'info': 'dark:
|
|
92
|
-
'text': 'dark:
|
|
91
|
+
'info': 'tw:dark:text-sq-theme-link',
|
|
92
|
+
'text': 'tw:dark:text-sq-dark-text',
|
|
93
93
|
'inherit': '',
|
|
94
|
-
'danger': 'tw
|
|
95
|
-
'theme-light': 'tw
|
|
96
|
-
'success': 'tw
|
|
94
|
+
'danger': 'tw:text-sq-danger',
|
|
95
|
+
'theme-light': 'tw:text-sq-theme-light',
|
|
96
|
+
'success': 'tw:text-sq-success',
|
|
97
97
|
};
|
|
98
98
|
/**
|
|
99
99
|
* Icon:
|
|
@@ -105,14 +105,14 @@ const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClas
|
|
|
105
105
|
const errorMessage = color === undefined || color === ''
|
|
106
106
|
? 'Icon with type="color" must have prop color specified.'
|
|
107
107
|
: 'Icon with prop color must have type="color".';
|
|
108
|
-
return jsxRuntime.jsx("div", { className: "tw
|
|
108
|
+
return jsxRuntime.jsx("div", { className: "tw:text-sq-danger-color", children: errorMessage });
|
|
109
109
|
}
|
|
110
110
|
const fontAwesomePrefix = iconPrefix ? iconPrefix : 'fa-sharp fa-regular';
|
|
111
111
|
const iconPrefixString = icon.startsWith('fc') ? 'fc' : fontAwesomePrefix;
|
|
112
112
|
const style = type === 'color' && color ? { color } : {};
|
|
113
113
|
const sizeClass = size ? `fa-${size}` : small ? 'fa-sm' : large ? 'fa-lg' : '';
|
|
114
114
|
const appliedClassNames = `${iconPrefixString} ${icon} ${sizeClass}
|
|
115
|
-
${colorClassesThemeLight[type]} ${colorClassesThemeDark[type]} ${onClick ? 'tw
|
|
115
|
+
${colorClassesThemeLight[type]} ${colorClassesThemeDark[type]} ${onClick ? 'tw:cursor-pointer' : ''} ${extraClassNames} tw:focus:outline-none tw:focus-visible:outline-none tw:outline-none`;
|
|
116
116
|
const tooltipData = getQTipData(tooltipProps);
|
|
117
117
|
return (jsxRuntime.jsx("i", { className: appliedClassNames, style: style, onClick: onClick, "data-testid": testId, "data-customid": customId, id: id, "data-number": number, ...tooltipData }));
|
|
118
118
|
};
|
|
@@ -123,58 +123,58 @@ const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClas
|
|
|
123
123
|
* - include tooltips and/or icons
|
|
124
124
|
*/
|
|
125
125
|
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, }) => {
|
|
126
|
-
const baseClasses = 'tw
|
|
126
|
+
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';
|
|
127
127
|
const baseClassesByVariant = {
|
|
128
|
-
'outline': 'disabled:
|
|
129
|
-
'theme': 'disabled:
|
|
130
|
-
'danger': 'tw
|
|
131
|
-
'tw
|
|
132
|
-
'theme-light': 'disabled:
|
|
133
|
-
'no-border': 'disabled:
|
|
134
|
-
'warning': 'tw
|
|
128
|
+
'outline': 'tw:disabled:opacity-50 tw:border-solid tw:border',
|
|
129
|
+
'theme': 'tw:disabled:opacity-50 tw:border-solid tw:border',
|
|
130
|
+
'danger': 'tw:bg-sq-danger tw:hover:bg-sq-danger-hover/80 tw:disabled:opacity-50 tw:border-solid tw:border ' +
|
|
131
|
+
'tw:border-sq-danger tw:hover:border-sq-danger-hover/80',
|
|
132
|
+
'theme-light': 'tw:disabled:opacity-50 tw:border-solid tw:border',
|
|
133
|
+
'no-border': 'tw:bg-transparent tw:disabled:opacity-50',
|
|
134
|
+
'warning': 'tw:bg-sq-warning tw:border-solid tw:border tw:border-sq-warning',
|
|
135
135
|
};
|
|
136
136
|
const textClassesByVariantLightTheme = {
|
|
137
|
-
'outline': 'tw
|
|
138
|
-
'theme': 'tw
|
|
139
|
-
'theme-light': 'tw
|
|
140
|
-
'danger': 'tw
|
|
141
|
-
'no-border': 'tw
|
|
142
|
-
'warning': 'tw
|
|
137
|
+
'outline': 'tw:text-sq-text-color',
|
|
138
|
+
'theme': 'tw:text-sq-white',
|
|
139
|
+
'theme-light': 'tw:text-sq-white',
|
|
140
|
+
'danger': 'tw:text-sq-white',
|
|
141
|
+
'no-border': 'tw:text-sq-text-color',
|
|
142
|
+
'warning': 'tw:text-sq-white',
|
|
143
143
|
};
|
|
144
144
|
const textClassesByVariantDarkTheme = {
|
|
145
|
-
'outline': 'dark:
|
|
146
|
-
'theme': 'dark:
|
|
147
|
-
'theme-light': 'dark:
|
|
148
|
-
'danger': 'dark:
|
|
149
|
-
'no-border': 'dark:
|
|
150
|
-
'warning': 'dark:
|
|
145
|
+
'outline': 'tw:dark:text-sq-dark-text',
|
|
146
|
+
'theme': 'tw:dark:text-sq-white',
|
|
147
|
+
'theme-light': 'tw:dark:text-sq-white',
|
|
148
|
+
'danger': 'tw:dark:text-sq-white',
|
|
149
|
+
'no-border': 'tw:dark:text-sq-dark-text',
|
|
150
|
+
'warning': 'tw:dark:text-sq-white',
|
|
151
151
|
};
|
|
152
152
|
const classesByVariantLightTheme = {
|
|
153
|
-
'outline': 'tw
|
|
154
|
-
' focus:
|
|
155
|
-
'theme': 'tw
|
|
156
|
-
' hover:
|
|
153
|
+
'outline': 'tw:bg-sq-white tw:dark:bg-sq-dark-background tw:border-sq-disabled-gray tw:hover:bg-sq-light-gray' +
|
|
154
|
+
' tw:focus:bg-sq-dark-gray tw:active:bg-sq-dark-gray tw:focus:border-sq-color-dark tw:active:border-sq-color-dark',
|
|
155
|
+
'theme': 'tw:bg-sq-theme-dark tw:hover:bg-sq-theme-highlight tw:border-sq-theme-dark' +
|
|
156
|
+
' tw:hover:border-sq-theme-highlight',
|
|
157
157
|
'danger': '',
|
|
158
|
-
'theme-light': 'tw
|
|
158
|
+
'theme-light': 'tw:bg-sq-theme-icon tw:hover:bg-sq-theme-link tw:border-sq-theme-icon tw:hover:border-sq-theme-link',
|
|
159
159
|
'no-border': '',
|
|
160
160
|
'warning': '',
|
|
161
161
|
};
|
|
162
162
|
const classesByVariantDarkTheme = {
|
|
163
|
-
'outline': 'dark:
|
|
164
|
-
' dark:focus:
|
|
165
|
-
' dark:active:
|
|
166
|
-
'theme': 'dark:
|
|
167
|
-
' dark:hover:
|
|
163
|
+
'outline': 'tw:dark:border-sq-dark-disabled-gray tw:dark:hover:bg-sq-highlight-color-dark' +
|
|
164
|
+
' tw:dark:focus:bg-sq-multi-gray-dark tw:dark:active:bg-sq-multi-gray-dark tw:dark:focus:border-sq-theme-dark' +
|
|
165
|
+
' tw:dark:active:border-sq-theme-dark',
|
|
166
|
+
'theme': 'tw:dark:bg-sq-theme-dark tw:dark:hover:bg-sq-theme-highlight tw:dark:border-sq-theme-dark' +
|
|
167
|
+
' tw:dark:hover:border-sq-theme-highlight',
|
|
168
168
|
'danger': '',
|
|
169
|
-
'theme-light': 'dark:
|
|
170
|
-
' dark:hover:
|
|
169
|
+
'theme-light': 'tw:dark:bg-sq-theme-icon tw:dark:hover:bg-sq-link-dark tw:dark:border-sq-icon-dark' +
|
|
170
|
+
' tw:dark:hover:border-sq-link-dark',
|
|
171
171
|
'no-border': '',
|
|
172
172
|
'warning': '',
|
|
173
173
|
};
|
|
174
174
|
const sizeClasses = {
|
|
175
|
-
xs: 'tw
|
|
176
|
-
sm: 'tw
|
|
177
|
-
lg: 'tw
|
|
175
|
+
xs: 'tw:text-xs tw:py-0.5',
|
|
176
|
+
sm: 'tw:text-sm tw:py-1',
|
|
177
|
+
lg: 'tw:text-xl tw:py-1',
|
|
178
178
|
};
|
|
179
179
|
const appliedClasses = `${baseClasses} ${baseClassesByVariant[variant]} ${sizeClasses[size]} ${classesByVariantLightTheme[variant]} ${classesByVariantDarkTheme[variant]} ${textClassesByVariantLightTheme[variant]} ${textClassesByVariantDarkTheme[variant]} ${extraClassNames}`;
|
|
180
180
|
let tooltipData = undefined;
|
|
@@ -187,7 +187,7 @@ const Button = ({ onClick, label, variant = 'outline', type = 'button', size = '
|
|
|
187
187
|
'data-qtip-delay': tooltipOptions?.delay ?? DEFAULT_TOOL_TIP_DELAY,
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
const iconClass = iconPosition === 'left' ? 'tw
|
|
190
|
+
const iconClass = iconPosition === 'left' ? 'tw:mr-1' : 'tw:ml-1';
|
|
191
191
|
const iconElement = icon && (jsxRuntime.jsx(Icon, { icon: icon, iconPrefix: iconPrefix, type: iconStyle, color: iconColor, extraClassNames: label
|
|
192
192
|
? `${iconClass} ${textClassesByVariantLightTheme[variant]} ${textClassesByVariantDarkTheme[variant]}`
|
|
193
193
|
: '', testId: `${id}_spinner` }));
|
|
@@ -1404,7 +1404,7 @@ const flip$4 = function (options) {
|
|
|
1404
1404
|
if (!ignoreCrossAxisOverflow ||
|
|
1405
1405
|
// We leave the current main axis only if every placement on that axis
|
|
1406
1406
|
// overflows the main axis.
|
|
1407
|
-
overflowsData.every(d => d.overflows[0] > 0
|
|
1407
|
+
overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
1408
1408
|
// Try next placement and re-run the lifecycle.
|
|
1409
1409
|
return {
|
|
1410
1410
|
data: {
|
|
@@ -2143,14 +2143,9 @@ function getWindowScrollBarX$1(element, rect) {
|
|
|
2143
2143
|
return rect.left + leftScroll;
|
|
2144
2144
|
}
|
|
2145
2145
|
|
|
2146
|
-
function getHTMLOffset(documentElement, scroll
|
|
2147
|
-
if (ignoreScrollbarX === void 0) {
|
|
2148
|
-
ignoreScrollbarX = false;
|
|
2149
|
-
}
|
|
2146
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
2150
2147
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
2151
|
-
const x = htmlRect.left + scroll.scrollLeft - (
|
|
2152
|
-
// RTL <body> scrollbar.
|
|
2153
|
-
getWindowScrollBarX$1(documentElement, htmlRect));
|
|
2148
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX$1(documentElement, htmlRect);
|
|
2154
2149
|
const y = htmlRect.top + scroll.scrollTop;
|
|
2155
2150
|
return {
|
|
2156
2151
|
x,
|
|
@@ -2189,7 +2184,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect$1(_ref) {
|
|
|
2189
2184
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
2190
2185
|
}
|
|
2191
2186
|
}
|
|
2192
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll
|
|
2187
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
2193
2188
|
return {
|
|
2194
2189
|
width: rect.width * scale.x,
|
|
2195
2190
|
height: rect.height * scale.y,
|
|
@@ -2223,6 +2218,10 @@ function getDocumentRect$1(element) {
|
|
|
2223
2218
|
};
|
|
2224
2219
|
}
|
|
2225
2220
|
|
|
2221
|
+
// Safety check: ensure the scrollbar space is reasonable in case this
|
|
2222
|
+
// calculation is affected by unusual styles.
|
|
2223
|
+
// Most scrollbars leave 15-18px of space.
|
|
2224
|
+
const SCROLLBAR_MAX = 25;
|
|
2226
2225
|
function getViewportRect$1(element, strategy) {
|
|
2227
2226
|
const win = getWindow(element);
|
|
2228
2227
|
const html = getDocumentElement(element);
|
|
@@ -2240,6 +2239,24 @@ function getViewportRect$1(element, strategy) {
|
|
|
2240
2239
|
y = visualViewport.offsetTop;
|
|
2241
2240
|
}
|
|
2242
2241
|
}
|
|
2242
|
+
const windowScrollbarX = getWindowScrollBarX$1(html);
|
|
2243
|
+
// <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
|
|
2244
|
+
// visual width of the <html> but this is not considered in the size
|
|
2245
|
+
// of `html.clientWidth`.
|
|
2246
|
+
if (windowScrollbarX <= 0) {
|
|
2247
|
+
const doc = html.ownerDocument;
|
|
2248
|
+
const body = doc.body;
|
|
2249
|
+
const bodyStyles = getComputedStyle(body);
|
|
2250
|
+
const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
2251
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
2252
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
2253
|
+
width -= clippingStableScrollbarWidth;
|
|
2254
|
+
}
|
|
2255
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
2256
|
+
// If the <body> scrollbar is on the left, the width needs to be extended
|
|
2257
|
+
// by the scrollbar amount so there isn't extra space on the right.
|
|
2258
|
+
width += windowScrollbarX;
|
|
2259
|
+
}
|
|
2243
2260
|
return {
|
|
2244
2261
|
width,
|
|
2245
2262
|
height,
|
|
@@ -4762,31 +4779,30 @@ function getSvgIconPath(icon) {
|
|
|
4762
4779
|
}
|
|
4763
4780
|
|
|
4764
4781
|
const popoverBorderStyles = [
|
|
4765
|
-
'tw
|
|
4766
|
-
'tw
|
|
4767
|
-
'tw
|
|
4768
|
-
'tw
|
|
4769
|
-
'dark:
|
|
4782
|
+
'tw:border-solid',
|
|
4783
|
+
'tw:border',
|
|
4784
|
+
'tw:rounded-md',
|
|
4785
|
+
'tw:border-sq-disabled-gray',
|
|
4786
|
+
'tw:dark:border-gray-500',
|
|
4770
4787
|
].join(' ');
|
|
4771
4788
|
const triggerBackgroundStyles = [
|
|
4772
|
-
'tw
|
|
4773
|
-
'hover:
|
|
4774
|
-
'active:
|
|
4775
|
-
'dark:
|
|
4776
|
-
'dark:hover:
|
|
4777
|
-
'dark:active:
|
|
4789
|
+
'tw:bg-transparent',
|
|
4790
|
+
'tw:hover:bg-sq-worksheetspanel-gray',
|
|
4791
|
+
'tw:active:bg-sq-worksheetspanel-gray',
|
|
4792
|
+
'tw:dark:bg-transparent',
|
|
4793
|
+
'tw:dark:hover:bg-sq-field-disabled-gray/30',
|
|
4794
|
+
'tw:dark:active:bg-sq-field-disabled-gray/30',
|
|
4778
4795
|
].join(' ');
|
|
4779
4796
|
const activeBackgroundStyles = [
|
|
4780
4797
|
'active',
|
|
4781
|
-
'tw
|
|
4782
|
-
'
|
|
4783
|
-
'
|
|
4784
|
-
'dark:
|
|
4785
|
-
'dark:
|
|
4786
|
-
'dark:active:tw-bg-sq-dark-disabled-gray',
|
|
4798
|
+
'tw:bg-sq-overlay',
|
|
4799
|
+
'tw:active:bg-sq-overlay',
|
|
4800
|
+
'tw:dark:bg-sq-dark-disabled-gray',
|
|
4801
|
+
'tw:dark:hover:border-sq-dark-disabled-gray/30',
|
|
4802
|
+
'tw:dark:active:bg-sq-dark-disabled-gray/30',
|
|
4787
4803
|
].join(' ');
|
|
4788
|
-
const bgStyles$3 = ['tw
|
|
4789
|
-
const disabledClasses$4 = ['tw
|
|
4804
|
+
const bgStyles$3 = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
|
|
4805
|
+
const disabledClasses$4 = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
|
|
4790
4806
|
const PopoverContent = React__namespace.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (jsxRuntime.jsx(Content2$3, { ref: ref, align: align, sideOffset: sideOffset, ...props, asChild: true })));
|
|
4791
4807
|
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, }) => {
|
|
4792
4808
|
let tooltipData = undefined;
|
|
@@ -4804,12 +4820,12 @@ const ToolbarButton = ({ isSmall = false, label, icon, secondIcon, forceSmallIco
|
|
|
4804
4820
|
onHide && onHide();
|
|
4805
4821
|
}
|
|
4806
4822
|
};
|
|
4807
|
-
return (jsxRuntime.jsxs(Root2$3, { defaultOpen: false, onOpenChange: onOpenChange, children: [jsxRuntime.jsx(Trigger$3, { id: id, className: `tw-border-none tw
|
|
4823
|
+
return (jsxRuntime.jsxs(Root2$3, { defaultOpen: false, onOpenChange: onOpenChange, children: [jsxRuntime.jsx(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) => {
|
|
4808
4824
|
onClick && onClick(e);
|
|
4809
|
-
}, children: jsxRuntime.jsxs("div", { ...tooltipData, className: `tw
|
|
4810
|
-
' tw
|
|
4811
|
-
' 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' +
|
|
4812
|
-
popoverBorderStyles, children: [hasArrow && (jsxRuntime.jsx(Arrow2$2, { asChild: true, children: jsxRuntime.jsx("div", { className: " tw
|
|
4825
|
+
}, children: jsxRuntime.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: [jsxRuntime.jsxs("span", { className: "tw:nowrap", children: [isPrimaryAnSvg ? (jsxRuntime.jsx("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: jsxRuntime.jsx("path", { d: getSvgIconPath(icon) }) })) : (jsxRuntime.jsx(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 && jsxRuntime.jsx(Icon, { icon: secondIcon, type: "text", testId: "secondIcon" }), popoverContent ? (jsxRuntime.jsx(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 && jsxRuntime.jsx("small", { className: "tw:text-sq-text-color tw:dark:text-sq-dark-text tw:text-2.5", children: label })] }) }), !!popoverContent ? (jsxRuntime.jsx(PopoverContent, { sideOffset: 2, align: "start", children: jsxRuntime.jsxs("div", { className: bgStyles$3 +
|
|
4826
|
+
' 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' +
|
|
4827
|
+
' 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' +
|
|
4828
|
+
popoverBorderStyles, children: [hasArrow && (jsxRuntime.jsx(Arrow2$2, { asChild: true, children: jsxRuntime.jsx("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] }));
|
|
4813
4829
|
};
|
|
4814
4830
|
|
|
4815
4831
|
const setValidInputDimension = (width, height) => {
|
|
@@ -4826,24 +4842,24 @@ const setValidInputDimension = (width, height) => {
|
|
|
4826
4842
|
return inputStyle;
|
|
4827
4843
|
};
|
|
4828
4844
|
|
|
4829
|
-
const errorClasses$4 = 'tw
|
|
4845
|
+
const errorClasses$4 = 'tw:border-sq-danger';
|
|
4830
4846
|
const borderColorClasses$4 = [
|
|
4831
|
-
'tw
|
|
4832
|
-
'dark:
|
|
4833
|
-
'dark:focus:
|
|
4834
|
-
'dark:active:
|
|
4835
|
-
'focus:
|
|
4836
|
-
'active:
|
|
4847
|
+
'tw:border-sq-disabled-gray',
|
|
4848
|
+
'tw:dark:border-sq-dark-disabled-gray',
|
|
4849
|
+
'tw:dark:focus:border-sq-theme-dark-dark',
|
|
4850
|
+
'tw:dark:active:border-sq-theme-darker',
|
|
4851
|
+
'tw:focus:border-sq-theme-dark',
|
|
4852
|
+
'tw:active:border-sq-theme-dark',
|
|
4837
4853
|
].join(' ');
|
|
4838
|
-
const baseClasses$6 = 'tw
|
|
4839
|
-
' disabled:
|
|
4840
|
-
' disabled:
|
|
4841
|
-
' dark:
|
|
4842
|
-
const darkTheme$3 = 'dark:
|
|
4843
|
-
const lightTheme$3 = 'tw
|
|
4854
|
+
const baseClasses$6 = 'tw:h-8.5 tw:leading-normal tw:outline-none tw:py-1 tw:px-3' +
|
|
4855
|
+
' tw:disabled:pointer-events-none tw:disabled:bg-sq-light-gray tw:disabled:dark:bg-sq-dark-disabled-gray' +
|
|
4856
|
+
' tw:disabled:cursor-not-allowed tw:p-1 tw:border-solid tw:border tw:placeholder-gray-400' +
|
|
4857
|
+
' tw:dark:placeholder-sq-dark-text/30 specTextField';
|
|
4858
|
+
const darkTheme$3 = 'tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-dark-text/30';
|
|
4859
|
+
const lightTheme$3 = 'tw:text-sq-text-color tw:disabled:text-sq-darkish-gray';
|
|
4844
4860
|
const sizeClasses = {
|
|
4845
|
-
sm: 'tw
|
|
4846
|
-
lg: 'tw
|
|
4861
|
+
sm: 'tw:text-sm',
|
|
4862
|
+
lg: 'tw:text-xl',
|
|
4847
4863
|
};
|
|
4848
4864
|
/**
|
|
4849
4865
|
* Textfield.
|
|
@@ -4885,12 +4901,12 @@ const TextField = React.forwardRef((props, ref) => {
|
|
|
4885
4901
|
internalRef.current.value = `${value}`;
|
|
4886
4902
|
}
|
|
4887
4903
|
}, [value]);
|
|
4888
|
-
let borderRadius = 'tw
|
|
4904
|
+
let borderRadius = 'tw:rounded-md';
|
|
4889
4905
|
if (inputGroup === 'left') {
|
|
4890
|
-
borderRadius = 'tw
|
|
4906
|
+
borderRadius = 'tw:rounded-l-md tw:border-r-0 tw:focus:border-r' + ' tw:active:border-r';
|
|
4891
4907
|
}
|
|
4892
4908
|
else if (inputGroup === 'right') {
|
|
4893
|
-
borderRadius = 'tw
|
|
4909
|
+
borderRadius = 'tw:rounded-r-md tw:border-l-0 tw:focus:border-l tw:active:border-l';
|
|
4894
4910
|
}
|
|
4895
4911
|
const appliedClasses = `${baseClasses$6} ${sizeClasses[size]} ${extraClassNames} ${lightTheme$3} ${darkTheme$3} ${borderRadius} ${showError ? errorClasses$4 : borderColorClasses$4} `;
|
|
4896
4912
|
const inputProp = setValidInputDimension(inputWidth, inputHeight)
|
|
@@ -4903,18 +4919,18 @@ const TextField = React.forwardRef((props, ref) => {
|
|
|
4903
4919
|
inputLenghtProp.maxLength = maxLength;
|
|
4904
4920
|
if (minLength)
|
|
4905
4921
|
inputLenghtProp.minLength = minLength;
|
|
4906
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("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 && jsxRuntime.jsx("div", { className: "tw
|
|
4922
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("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 && jsxRuntime.jsx("div", { className: "tw:text-sq-danger tw:text-xs tw:mt-1", children: errorText })] }));
|
|
4907
4923
|
});
|
|
4908
4924
|
|
|
4909
|
-
const alignment = 'tw
|
|
4910
|
-
const labelClasses = 'tw
|
|
4911
|
-
const baseClasses$5 = 'tw-border
|
|
4912
|
-
' dark:
|
|
4913
|
-
' checked:
|
|
4914
|
-
' checked:active:
|
|
4915
|
-
' dark:disabled:
|
|
4916
|
-
const checkboxClasses = `tw
|
|
4917
|
-
const radioClasses = `tw
|
|
4925
|
+
const alignment = 'tw:flex';
|
|
4926
|
+
const labelClasses = 'tw:ml-1.5 tw:text-sm tw:-mt-0.5';
|
|
4927
|
+
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' +
|
|
4928
|
+
' tw:dark:bg-sq-dark-background tw:dark:border-sq-dark-text tw:dark:hover:bg-sq-dark-background' +
|
|
4929
|
+
' tw:checked:text-white tw:checked:border-sq-text-color tw:checked:hover:border-sq-theme-dark' +
|
|
4930
|
+
' tw:checked:active:border-sq-theme-darker tw:checked:focus:border-sq-theme-dark tw:disabled:border-sq-disabled-gray' +
|
|
4931
|
+
' tw:dark:disabled:border-sq-fairly-dark-gray tw:dark:checked:focus:bg-sq-dark-background';
|
|
4932
|
+
const checkboxClasses = `tw:form-checkbox tw:rounded ${baseClasses$5}`;
|
|
4933
|
+
const radioClasses = `tw:form-radio tw:rounded-full ${baseClasses$5}`;
|
|
4918
4934
|
/**
|
|
4919
4935
|
* Checkbox and Radio Box Component.
|
|
4920
4936
|
*/
|
|
@@ -4922,26 +4938,25 @@ const Checkbox = (props) => {
|
|
|
4922
4938
|
const { type = 'checkbox', value, disabled = false, label, onChange, onClick, onKeyDown, checked, defaultChecked, id, name, extraClassNames, extraLabelClassNames, testId, ...tooltipProps } = props;
|
|
4923
4939
|
const assignedId = id ?? 'checkbox_' + Math.random();
|
|
4924
4940
|
const tooltipData = getQTipData(tooltipProps);
|
|
4925
|
-
return (jsxRuntime.jsxs("span", { className: `${alignment} ${extraClassNames}`, children: [jsxRuntime.jsx("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
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
' disabled:
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
const
|
|
4937
|
-
const errorClasses$3 = 'tw-border-sq-danger-color';
|
|
4941
|
+
return (jsxRuntime.jsxs("span", { className: `${alignment} ${extraClassNames}`, children: [jsxRuntime.jsx("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 && (jsxRuntime.jsx("label", { htmlFor: assignedId, className: `${labelClasses} ${extraLabelClassNames} ${disabled
|
|
4942
|
+
? 'tw:cursor-not-allowed tw:dark:text-sq-fairly-dark-gray tw:text-sq-fairly-dark-gray'
|
|
4943
|
+
: 'tw:cursor-pointer tw:text-sq-text-color tw:dark:text-sq-dark-text'}`, children: label }))] }));
|
|
4944
|
+
};
|
|
4945
|
+
|
|
4946
|
+
const baseClasses$4 = 'tw:leading-normal tw:outline-none tw:py-1 tw:px-3 tw:rounded-md tw:w-full' +
|
|
4947
|
+
' tw:disabled:pointer-events-none tw:disabled:bg-sq-light-gray tw:disabled:dark:bg-sq-dark-disabled-gray' +
|
|
4948
|
+
' tw:disabled:cursor-not-allowed tw:p-1 tw:border-solid tw:border tw:text-sm';
|
|
4949
|
+
const darkTheme$2 = 'tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text ' +
|
|
4950
|
+
'tw:dark:placeholder-sq-dark-text/30 tw:disabled:dark:text-sq-dark-text/30';
|
|
4951
|
+
const lightTheme$2 = 'tw:text-sq-text-color tw:placeholder-gray-400 tw:disabled:text-sq-darkish-gray';
|
|
4952
|
+
const errorClasses$3 = 'tw:border-sq-danger';
|
|
4938
4953
|
const borderColorClasses$3 = [
|
|
4939
|
-
'tw
|
|
4940
|
-
'dark:
|
|
4941
|
-
'dark:focus:
|
|
4942
|
-
'dark:active:
|
|
4943
|
-
'focus:
|
|
4944
|
-
'active:
|
|
4954
|
+
'tw:border-sq-disabled-gray',
|
|
4955
|
+
'tw:dark:border-sq-dark-disabled-gray',
|
|
4956
|
+
'tw:dark:focus:border-sq-theme-darker',
|
|
4957
|
+
'tw:dark:active:border-sq-theme-darker',
|
|
4958
|
+
'tw:focus:border-sq-theme-dark',
|
|
4959
|
+
'tw:active:border-sq-theme-dark',
|
|
4945
4960
|
].join(' ');
|
|
4946
4961
|
/**
|
|
4947
4962
|
* TextArea.
|
|
@@ -4990,25 +5005,25 @@ const TextArea = React.forwardRef(({ readonly = false, disabled = false, onChang
|
|
|
4990
5005
|
* display correctly.
|
|
4991
5006
|
*/
|
|
4992
5007
|
const Tooltip = ({ position = 'bottom', children, text, delay = DEFAULT_TOOL_TIP_DELAY, }) => {
|
|
4993
|
-
const arrowBaseClasses =
|
|
4994
|
-
const centerArrowVertically = 'before:
|
|
4995
|
-
const centerArrowHorizontally = 'before:
|
|
4996
|
-
const arrowRight = `${arrowBaseClasses} ${centerArrowVertically} before:
|
|
4997
|
-
before:
|
|
4998
|
-
const arrowLeft = `${arrowBaseClasses} ${centerArrowVertically} before:
|
|
4999
|
-
before:
|
|
5000
|
-
const arrowBottom = `${arrowBaseClasses} ${centerArrowHorizontally} before:-
|
|
5001
|
-
before:
|
|
5002
|
-
const arrowTop = `${arrowBaseClasses} ${centerArrowHorizontally} before:-
|
|
5003
|
-
before:
|
|
5008
|
+
const arrowBaseClasses = "tw:before:content-[''] tw:before:absolute tw:before:border-8";
|
|
5009
|
+
const centerArrowVertically = 'tw:before:top-1/2 tw:before:-translate-y-1/2';
|
|
5010
|
+
const centerArrowHorizontally = 'tw:before:left-1/2 tw:before:-translate-x-1/2';
|
|
5011
|
+
const arrowRight = `${arrowBaseClasses} ${centerArrowVertically} tw:before:right-full tw:before:border-y-transparent
|
|
5012
|
+
tw:before:border-l-transparent tw:before:border-r-sq-black`;
|
|
5013
|
+
const arrowLeft = `${arrowBaseClasses} ${centerArrowVertically} tw:before:left-full tw:before:border-y-transparent
|
|
5014
|
+
tw:before:border-l-sq-black tw:before:border-r-transparent`;
|
|
5015
|
+
const arrowBottom = `${arrowBaseClasses} ${centerArrowHorizontally} tw:before:-top-4 tw:before:border-b-sq-black
|
|
5016
|
+
tw:before:border-r-transparent tw:before:border-l-transparent tw:before:border-t-transparent`;
|
|
5017
|
+
const arrowTop = `${arrowBaseClasses} ${centerArrowHorizontally} tw:before:-bottom-4 tw:before:border-b-transparent
|
|
5018
|
+
tw:before:border-t-sq-black tw:before:border-l-transparent tw:before:border-r-transparent`;
|
|
5004
5019
|
const placements = {
|
|
5005
|
-
top:
|
|
5006
|
-
left:
|
|
5007
|
-
right: `tw
|
|
5008
|
-
bottom:
|
|
5020
|
+
top: `tw:-top-2 tw:-translate-y-full tw:left-1/2 tw:-translate-x-1/2 ${arrowTop}`,
|
|
5021
|
+
left: `tw:-translate-x-full tw:-left-3 tw:-translate-y-1/2 tw:top-1/2 ${arrowLeft}`,
|
|
5022
|
+
right: `tw:translate-x-full tw:-right-3 tw:-translate-y-1/2 tw:top-1/2 ${arrowRight}`,
|
|
5023
|
+
bottom: `tw:-bottom-2 tw:translate-y-full tw:left-1/2 tw:-translate-x-1/2 ${arrowBottom}`,
|
|
5009
5024
|
};
|
|
5010
|
-
return (jsxRuntime.jsxs("div", { className: "tw
|
|
5011
|
-
tw
|
|
5025
|
+
return (jsxRuntime.jsxs("div", { className: "tw:group tw:relative tw:inline-block", children: [children, jsxRuntime.jsx("div", { className: `tw:z-50 tw:whitespace-nowrap tw:hidden tw:group-hover:inline-block tw:group-hover:delay-[${delay}ms]
|
|
5026
|
+
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 })] }));
|
|
5012
5027
|
};
|
|
5013
5028
|
|
|
5014
5029
|
/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */
|
|
@@ -7494,8 +7509,8 @@ const QTip = () => {
|
|
|
7494
7509
|
: positionTooltip();
|
|
7495
7510
|
}
|
|
7496
7511
|
};
|
|
7497
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("div", { onMouseEnter: () => setOverTooltip(true), onMouseLeave: () => setOverTooltip(false), "data-testid": tooltipTestId, ref: tooltipRef, className: 'tw
|
|
7498
|
-
(show ? 'tw
|
|
7512
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.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 ' +
|
|
7513
|
+
(show ? 'tw:visible' : 'tw:invisible tw:pointer-events-none'), children: [html ? jsxRuntime.jsx(HTMLTip, { text: tooltipText }) : tooltipText, jsxRuntime.jsx("div", { className: "tw:absolute tw:w-2.5 tw:h-2.5 tw:rotate-45 tw:bg-sq-black", ref: tooltipArrowRef })] }) }));
|
|
7499
7514
|
};
|
|
7500
7515
|
|
|
7501
7516
|
function _typeof$1(o) {
|
|
@@ -13910,75 +13925,77 @@ var CreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
13910
13925
|
});
|
|
13911
13926
|
var CreatableSelect$1 = CreatableSelect;
|
|
13912
13927
|
|
|
13913
|
-
const baseClasses$3 = ['focus:
|
|
13914
|
-
const containerStyles = ['tw
|
|
13915
|
-
const errorClasses$2 = 'tw
|
|
13916
|
-
const borderColorClasses$2 = ['tw
|
|
13917
|
-
const borderStyles$3 = [
|
|
13918
|
-
|
|
13919
|
-
'tw-
|
|
13920
|
-
'
|
|
13921
|
-
'
|
|
13922
|
-
'
|
|
13923
|
-
'dark:
|
|
13924
|
-
'dark:
|
|
13925
|
-
'dark:active:tw-border-sq-color-dark-dark',
|
|
13928
|
+
const baseClasses$3 = ['tw:focus:ring-0', 'tw:disabled:cursor-not-allowed'].join(' ');
|
|
13929
|
+
const containerStyles = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
|
|
13930
|
+
const errorClasses$2 = 'tw:border-sq-danger-color';
|
|
13931
|
+
const borderColorClasses$2 = ['tw:border-sq-disabled-gray', 'tw:dark:border-sq-dark-disabled-gray'].join(' ');
|
|
13932
|
+
const borderStyles$3 = ['tw:border-solid', 'tw:border'].join(' ');
|
|
13933
|
+
const borderActiveClasses = [
|
|
13934
|
+
'tw:hover:border-sq-color-dark',
|
|
13935
|
+
'tw:focus-within:border-sq-color-dark',
|
|
13936
|
+
'tw:active:border-sq-color-dark',
|
|
13937
|
+
'tw:dark:hover:border-sq-color-dark-dark',
|
|
13938
|
+
'tw:dark:focus-within:border-sq-color-dark-dark',
|
|
13939
|
+
'tw:dark:active:border-sq-color-dark-dark',
|
|
13926
13940
|
].join(' ');
|
|
13927
|
-
const textStyles = ['tw
|
|
13941
|
+
const textStyles = ['tw:text-sq-text-color', 'tw:dark:text-sq-dark-text', 'tw:text-sm'].join(' ');
|
|
13928
13942
|
const textActiveStyles = [
|
|
13929
|
-
'hover:
|
|
13930
|
-
'focus:
|
|
13931
|
-
'active:
|
|
13932
|
-
'dark:
|
|
13933
|
-
'dark:hover:
|
|
13934
|
-
'dark:focus:
|
|
13935
|
-
'dark:active:
|
|
13943
|
+
'tw:hover:text-sq-theme-dark',
|
|
13944
|
+
'tw:focus:text-sq-theme-dark',
|
|
13945
|
+
'tw:active:text-sq-theme-dark',
|
|
13946
|
+
'tw:dark:text-sq-dark-disabled-gray',
|
|
13947
|
+
'tw:dark:hover:text-sq-theme-dark-dark',
|
|
13948
|
+
'tw:dark:focus:text-sq-theme-dark-dark',
|
|
13949
|
+
'tw:dark:active:text-sq-theme-dark-dark',
|
|
13950
|
+
'tw:hover:text-sq-color-dark',
|
|
13951
|
+
'tw:dark:text-sq-dark-disabled-gray',
|
|
13952
|
+
'tw:dark:hover:text-sq-color-dark-dark',
|
|
13936
13953
|
].join(' ');
|
|
13937
13954
|
const menuStyles = [
|
|
13938
|
-
'tw
|
|
13939
|
-
'tw
|
|
13940
|
-
'tw
|
|
13941
|
-
'tw
|
|
13942
|
-
'dark:
|
|
13943
|
-
'tw
|
|
13944
|
-
'tw
|
|
13945
|
-
'!tw
|
|
13955
|
+
'tw:border-solid',
|
|
13956
|
+
'tw:border',
|
|
13957
|
+
'tw:rounded-b',
|
|
13958
|
+
'tw:border-sq-disabled-gray',
|
|
13959
|
+
'tw:dark:border-sq-dark-disabled-gray',
|
|
13960
|
+
'tw:whitespace-nowrap',
|
|
13961
|
+
'tw:min-w-fit',
|
|
13962
|
+
'!tw:z-[9999]',
|
|
13946
13963
|
].join(' ');
|
|
13947
13964
|
const menuListStyles = [
|
|
13948
|
-
'tw
|
|
13949
|
-
'tw
|
|
13950
|
-
'dark:
|
|
13951
|
-
'tw
|
|
13952
|
-
'!tw
|
|
13965
|
+
'tw:rounded-b',
|
|
13966
|
+
'tw:bg-sq-white',
|
|
13967
|
+
'tw:dark:bg-sq-dark-background',
|
|
13968
|
+
'tw:min-w-fit',
|
|
13969
|
+
'!tw:z-[9999]',
|
|
13953
13970
|
'specSelectMenu',
|
|
13954
13971
|
].join(' ');
|
|
13955
13972
|
const groupHeadingStyles = [
|
|
13956
|
-
'tw
|
|
13957
|
-
'dark:
|
|
13958
|
-
'tw
|
|
13959
|
-
'tw
|
|
13960
|
-
'tw
|
|
13973
|
+
'tw:bg-sq-light-gray',
|
|
13974
|
+
'tw:dark:bg-sq-dark-disabled-gray',
|
|
13975
|
+
'tw:text-sq-darkish-gray',
|
|
13976
|
+
'tw:py-1',
|
|
13977
|
+
'tw:px-2.5',
|
|
13961
13978
|
'specSelectGroupHeading',
|
|
13962
13979
|
].join(' ');
|
|
13963
13980
|
const optionStyles = [
|
|
13964
|
-
'hover:
|
|
13965
|
-
'hover:
|
|
13966
|
-
'dark:hover:
|
|
13967
|
-
'tw
|
|
13968
|
-
'tw
|
|
13981
|
+
'tw:hover:bg-sq-gray-highlight',
|
|
13982
|
+
'tw:hover:cursor-pointer',
|
|
13983
|
+
'tw:dark:hover:bg-sq-gray-highlight-dark',
|
|
13984
|
+
'tw:py-1',
|
|
13985
|
+
'tw:px-2.5',
|
|
13969
13986
|
'specSelectOption',
|
|
13970
13987
|
].join(' ');
|
|
13971
|
-
const disabledClasses$3 = ['tw
|
|
13972
|
-
const dropDownIndicatorStyles = `tw
|
|
13973
|
-
const placeholderStyles = ['tw
|
|
13988
|
+
const disabledClasses$3 = ['tw:bg-sq-field-disabled-gray', '!tw:cursor-not-allowed', 'tw:opacity-50'].join(' ');
|
|
13989
|
+
const dropDownIndicatorStyles = `tw:text-sq-disabled-gray ${textActiveStyles} specOpenIt`;
|
|
13990
|
+
const placeholderStyles = ['tw:text-gray-400', 'tw:dark:text-sq-dark-text-lighter', 'specOpenSelect'].join(' ');
|
|
13974
13991
|
const multiValueStyles = [
|
|
13975
|
-
'tw
|
|
13976
|
-
'dark:
|
|
13977
|
-
'tw
|
|
13978
|
-
'tw
|
|
13979
|
-
'tw
|
|
13980
|
-
'tw
|
|
13981
|
-
'tw
|
|
13992
|
+
'tw:bg-sq-disabled-gray',
|
|
13993
|
+
'tw:dark:bg-sq-multi-gray-dark',
|
|
13994
|
+
'tw:text-sm',
|
|
13995
|
+
'tw:py-0.5',
|
|
13996
|
+
'tw:px-1',
|
|
13997
|
+
'tw:m-0.5',
|
|
13998
|
+
'tw:rounded-sm',
|
|
13982
13999
|
'specOpenSelect',
|
|
13983
14000
|
].join(' ');
|
|
13984
14001
|
/**
|
|
@@ -14043,38 +14060,38 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
|
|
|
14043
14060
|
filterOption: filterOption ? filterOption : filterConfig ? createFilter(filterConfig) : undefined,
|
|
14044
14061
|
classNames: {
|
|
14045
14062
|
control: ({ menuIsOpen }) => {
|
|
14046
|
-
let border = menuIsOpen ? 'tw
|
|
14063
|
+
let border = menuIsOpen ? 'tw:rounded-t-md' : 'tw:rounded-md';
|
|
14047
14064
|
// if it's on the left side of the input group make sure the right side is straight and not curved
|
|
14048
14065
|
if (inputGroup === 'left') {
|
|
14049
|
-
border = menuIsOpen ? 'tw
|
|
14066
|
+
border = menuIsOpen ? 'tw:rounded-tl-md' : 'tw:rounded-l-md';
|
|
14050
14067
|
}
|
|
14051
14068
|
else if (inputGroup === 'right') {
|
|
14052
|
-
border = menuIsOpen ? 'tw
|
|
14069
|
+
border = menuIsOpen ? 'tw:rounded-tr-md' : 'tw:rounded-r-md';
|
|
14053
14070
|
}
|
|
14054
|
-
const appliedClasses = `${borderStyles$3} ${border} ${showError ? errorClasses$2 : borderColorClasses$2} ${small ? 'reactSelectMinHeightSmall' : 'reactSelectMinHeight'} ${controlClassNames}`;
|
|
14055
|
-
return `${appliedClasses} ${baseClasses$3} ${containerStyles} specSelectControl ${isDisabled ? disabledClasses$3 : ''} ${small ? 'tw
|
|
14071
|
+
const appliedClasses = `${borderStyles$3} ${isDisabled ? '' : borderActiveClasses} ${border} ${showError ? errorClasses$2 : borderColorClasses$2} ${small ? 'reactSelectMinHeightSmall' : 'reactSelectMinHeight'} ${controlClassNames}`;
|
|
14072
|
+
return `${appliedClasses} ${baseClasses$3} ${containerStyles} specSelectControl ${isDisabled ? disabledClasses$3 : ''} ${small ? 'tw:pl-2 tw:pr-1' : 'tw:pl-2.5 tw:pr-1.5'}`;
|
|
14056
14073
|
},
|
|
14057
14074
|
placeholder: () => placeholderStyles,
|
|
14058
14075
|
container: ({ selectProps }) => {
|
|
14059
|
-
const containerBorderStyles = selectProps?.menuIsOpen ? 'tw
|
|
14060
|
-
return `${textStyles} ${extraClassNames} ${containerBorderStyles}`;
|
|
14076
|
+
const containerBorderStyles = selectProps?.menuIsOpen ? 'tw:rounded-t-md' : 'tw:rounded-md';
|
|
14077
|
+
return `${textStyles} ${extraClassNames} ${containerBorderStyles} !tw:pointer-events-auto`;
|
|
14061
14078
|
},
|
|
14062
14079
|
input: () => textStyles + ' specSelectInput',
|
|
14063
14080
|
menuList: () => menuListStyles,
|
|
14064
14081
|
menu: () => menuStyles,
|
|
14065
|
-
menuPortal: () => '!tw
|
|
14082
|
+
menuPortal: () => '!tw:z-[9000]',
|
|
14066
14083
|
dropdownIndicator: () => dropDownIndicatorStyles,
|
|
14067
14084
|
option: ({ isSelected, isDisabled }) => {
|
|
14068
14085
|
let classes = optionStyles;
|
|
14069
14086
|
if (isDisabled) {
|
|
14070
14087
|
classes += ' specDisabledOption ';
|
|
14071
14088
|
}
|
|
14072
|
-
return isSelected ? classes + ' tw
|
|
14089
|
+
return isSelected ? classes + ' tw:bg-sq-colored-hover tw:dark:bg-sq-colored-hover-dark' : classes;
|
|
14073
14090
|
},
|
|
14074
14091
|
singleValue: () => 'specOpenSelect',
|
|
14075
14092
|
multiValue: () => multiValueStyles,
|
|
14076
|
-
multiValueRemove: () => 'hover:
|
|
14077
|
-
clearIndicator: () => 'tw
|
|
14093
|
+
multiValueRemove: () => 'tw:hover:text-sq-danger-color specSelectMultiValueRemove',
|
|
14094
|
+
clearIndicator: () => 'tw:text-sq-disabled-gray tw:hover:text-sq-danger-color specClearSelect',
|
|
14078
14095
|
group: () => 'specSelectGroup',
|
|
14079
14096
|
groupHeading: () => groupHeadingStyles,
|
|
14080
14097
|
},
|
|
@@ -14464,11 +14481,11 @@ var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
|
|
|
14464
14481
|
const Dialog = Root$4;
|
|
14465
14482
|
const DialogPortal = Portal$1;
|
|
14466
14483
|
const DialogClose = Close;
|
|
14467
|
-
const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (jsxRuntime.jsxs(DialogPortal, { children: [jsxRuntime.jsx("div", { className: "tw
|
|
14468
|
-
tw
|
|
14469
|
-
tw
|
|
14484
|
+
const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (jsxRuntime.jsxs(DialogPortal, { children: [jsxRuntime.jsx("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 " }), jsxRuntime.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
|
|
14485
|
+
tw:gap-4 tw:border tw:bg-sq-white tw:dark:bg-sq-dark-background tw:p-6 tw:shadow-lg tw:duration-200
|
|
14486
|
+
tw:rounded-lg ${className}`, ...props, children: [jsxRuntime.jsx(DialogTitle$1, { className: "tw:hidden" }), children] })] })));
|
|
14470
14487
|
DialogContent.displayName = Content$2.displayName;
|
|
14471
|
-
const DialogHeader = (props) => (jsxRuntime.jsx("div", { className: "tw
|
|
14488
|
+
const DialogHeader = (props) => (jsxRuntime.jsx("div", { className: "tw:w-full tw:justify-between", children: jsxRuntime.jsx("div", { ...props }) }));
|
|
14472
14489
|
DialogHeader.displayName = 'DialogHeader';
|
|
14473
14490
|
const DialogFooter = (props) => jsxRuntime.jsx("div", { ...props });
|
|
14474
14491
|
DialogFooter.displayName = 'DialogFooter';
|
|
@@ -14506,26 +14523,26 @@ const Modal = ({ titleIcon, title = 'Modal title example', titleSuffixLabel, sub
|
|
|
14506
14523
|
let titleIconElement = jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
14507
14524
|
if (titleIcon) {
|
|
14508
14525
|
if (typeof titleIcon === 'string') {
|
|
14509
|
-
titleIconElement = (jsxRuntime.jsx(Icon, { icon: titleIcon, testId: "modalTitleIcon", extraClassNames: "tw
|
|
14526
|
+
titleIconElement = (jsxRuntime.jsx(Icon, { icon: titleIcon, testId: "modalTitleIcon", extraClassNames: "tw:flex tw:text-xl tw:mt-1" }));
|
|
14510
14527
|
}
|
|
14511
14528
|
else {
|
|
14512
|
-
titleIconElement = jsxRuntime.jsx("div", { className: "tw
|
|
14529
|
+
titleIconElement = jsxRuntime.jsx("div", { className: "tw:mt-1.5", children: titleIcon });
|
|
14513
14530
|
}
|
|
14514
14531
|
}
|
|
14515
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [titleIcon && titleIconPosition === 'left' ? jsxRuntime.jsx("div", { className: "tw
|
|
14532
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [titleIcon && titleIconPosition === 'left' ? jsxRuntime.jsx("div", { className: "tw:flex tw:mr-2", children: titleIconElement }) : jsxRuntime.jsx(jsxRuntime.Fragment, {}), jsxRuntime.jsx(DialogTitle, { asChild: true, children: isTitleEditable ? (jsxRuntime.jsxs("div", { className: "tw:flex tw:w-full tw:items-center", children: [jsxRuntime.jsx(TextField, { extraClassNames: inputExtraClassNames, value: title, type: "text", testId: "modalTitle", onChange: onTitleChanged, placeholder: titlePlaceholder, required: titleRequired, showError: !!titleError }), titleError && jsxRuntime.jsx("p", { className: "tw:text-sq-danger tw:min-w-fit tw:pl-2 tw:mb-0", children: titleError })] })) : (customHeader ?? (jsxRuntime.jsxs("div", { "data-testid": "modalTitle", className: "modal-title", children: [jsxRuntime.jsxs("div", { className: "tw:flex tw:items-center", children: [jsxRuntime.jsx("h3", { children: title }), titleSuffixLabel && jsxRuntime.jsx("span", { className: "tw:text-xl tw:pl-0.5", children: titleSuffixLabel })] }), subtitle && (jsxRuntime.jsx("div", { className: "tw:italic tw:text-sm tw:text-left tw:mt-1", "data-testid": "modal-subtitle", children: subtitle }))] }))) }), titleIcon && titleIconPosition === 'right' ? jsxRuntime.jsx("div", { className: "tw:flex tw:ml-4", children: titleIconElement }) : jsxRuntime.jsx(jsxRuntime.Fragment, {})] }));
|
|
14516
14533
|
};
|
|
14517
|
-
return open ? (jsxRuntime.jsx(Dialog, { open: true, onOpenChange: onClose, modal: keepFocusInsideModal, children: jsxRuntime.jsxs(DialogContent, { onPointerDownOutside: (e) => (onPointerDownOutside ? onPointerDownOutside(e) : e.preventDefault()), onInteractOutside: (e) => (onInteractOutside ? onInteractOutside(e) : e.preventDefault()), "data-testid": testId, className: classNames(`modalContent tw
|
|
14518
|
-
'tw
|
|
14519
|
-
'tw
|
|
14520
|
-
'tw
|
|
14521
|
-
'tw
|
|
14522
|
-
'tw
|
|
14523
|
-
'tw
|
|
14524
|
-
'tw
|
|
14525
|
-
'tw
|
|
14526
|
-
'tw
|
|
14527
|
-
'tw
|
|
14528
|
-
}, dialogClassName), children: [jsxRuntime.jsxs(DialogHeader, { className: "modal-header tw
|
|
14534
|
+
return open ? (jsxRuntime.jsx(Dialog, { open: true, onOpenChange: onClose, modal: keepFocusInsideModal, children: jsxRuntime.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`, {
|
|
14535
|
+
'tw:max-w-xs': size === 'xs',
|
|
14536
|
+
'tw:max-w-sm': size === 'sm',
|
|
14537
|
+
'tw:max-w-md': size === 'md',
|
|
14538
|
+
'tw:max-w-lg': size === 'lg',
|
|
14539
|
+
'tw:max-w-xl': size === 'xl',
|
|
14540
|
+
'tw:max-w-2xl': size === '2xl',
|
|
14541
|
+
'tw:max-w-3xl': size === '3xl',
|
|
14542
|
+
'tw:max-w-4xl': size === '4xl',
|
|
14543
|
+
'tw:max-w-5xl': size === '5xl',
|
|
14544
|
+
'tw:max-w-6xl': size === '6xl',
|
|
14545
|
+
}, dialogClassName), children: [jsxRuntime.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: [jsxRuntime.jsx("div", { className: "tw:flex tw:w-full", children: renderTitle() }), !hideCloseIcon && (jsxRuntime.jsx(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: jsxRuntime.jsx("span", { className: "tw:cursor-pointer", children: "\u00D7" }) }))] }), jsxRuntime.jsx(DialogDescription, { className: "modal-body tw:px-6 tw:py-4 tw:overflow-y-auto", asChild: true, children: children }), !hideFooterButtons && (jsxRuntime.jsx(DialogFooter, { className: "modal-footer tw:px-6 tw:py-4", children: modalFooter ?? (jsxRuntime.jsxs("div", { className: "tw:flex tw:w-full tw:justify-between", "data-testid": "modalFooter", children: [jsxRuntime.jsx("div", { className: "tw:flex tw:justify-start", children: customButton && (jsxRuntime.jsx(Button, { label: customButtonLabel, onClick: onClickCustomButton, disabled: disableCustomButton, extraClassNames: "tw:justify-start tw:min-w-25", testId: "customButton", variant: customButtonVariant })) }), jsxRuntime.jsxs("div", { className: "tw:flex tw:justify-end", children: [jsxRuntime.jsx("div", { className: "tw:flex tw:items-center", children: middleFooterSection }), !hideCancelButton && (jsxRuntime.jsx(DialogClose, { asChild: true, children: jsxRuntime.jsx(Button, { label: cancelButtonLabel, extraClassNames: "tw:mr-5 tw:min-w-25", tooltip: cancelButtonTooltip, variant: "outline", stopPropagation: false, testId: "cancelButton" }) })), !hideSubmitButton && (jsxRuntime.jsx(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" }))] })] })) }))] }) })) : (jsxRuntime.jsx(jsxRuntime.Fragment, {}));
|
|
14529
14546
|
};
|
|
14530
14547
|
|
|
14531
14548
|
function createCollection(name) {
|
|
@@ -14983,11 +15000,11 @@ const Tabs = ({ tabs, defaultActiveTab, activeTab, onTabSelect, extraClassNames,
|
|
|
14983
15000
|
return;
|
|
14984
15001
|
onTabSelect && onTabSelect(tabId);
|
|
14985
15002
|
};
|
|
14986
|
-
return (jsxRuntime.jsxs(Root2$2, { className: `tw
|
|
14987
|
-
? 'tw
|
|
14988
|
-
: 'hover:
|
|
14989
|
-
? 'dark:
|
|
14990
|
-
: 'dark:
|
|
15003
|
+
return (jsxRuntime.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: [jsxRuntime.jsx(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) => (jsxRuntime.jsx(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
|
|
15004
|
+
? 'tw:border-b-sq-theme-dark tw:dark:border-b-sq-theme-dark tw:border-b-sq-3'
|
|
15005
|
+
: '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: jsxRuntime.jsxs("span", { className: "tw:flex tw:items-center tw:overflow-hidden", children: [icon && (jsxRuntime.jsx(Icon, { icon: icon, testId: `${id}_tab-icon`, extraClassNames: "tw:text-sq-15 tw:mr-sq-7 tw:flex-shrink-0" })), jsxRuntime.jsx("span", { className: `tw:text-sq-13 tw:font-medium tw:whitespace-nowrap tw:overflow-hidden tw:text-ellipsis ${activeTab === id
|
|
15006
|
+
? 'tw:dark:text-sq-dark-text tw:text-gray-500'
|
|
15007
|
+
: 'tw:dark:text-sq-theme-darker tw:text-sq-theme-dark'} ${tabLabelExtraClassNames}`, children: label })] }) }, `${label}-${id}-${index}`))) }), tabs.map((tab, index) => (jsxRuntime.jsx(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`)))] }));
|
|
14991
15008
|
};
|
|
14992
15009
|
|
|
14993
15010
|
var COLLAPSIBLE_NAME = "Collapsible";
|
|
@@ -15412,18 +15429,18 @@ var Trigger2 = AccordionTrigger;
|
|
|
15412
15429
|
var Content2$2 = AccordionContent;
|
|
15413
15430
|
|
|
15414
15431
|
const Accordion = ({ accordionItems, defaultValue, value, onItemSelect, disabled, extraClassNames, testId, }) => {
|
|
15415
|
-
return (jsxRuntime.jsx(Root2$1, { className: `tw
|
|
15432
|
+
return (jsxRuntime.jsx(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) => (jsxRuntime.jsxs(Item, { className: `tw:p-0 tw:flex tw:flex-col tw:w-full`, disabled: disabled, value: item.value, children: [jsxRuntime.jsx(Trigger2, { disabled: disabled, className: `tw:w-full tw:cursor-default tw:focus-visible:outline-none tw:bg-transparent`, children: item.trigger }), jsxRuntime.jsx(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))) }));
|
|
15416
15433
|
};
|
|
15417
15434
|
|
|
15418
|
-
const bgStyles$2 = ['tw
|
|
15435
|
+
const bgStyles$2 = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
|
|
15419
15436
|
const borderStyles$2 = [
|
|
15420
|
-
'tw
|
|
15421
|
-
'tw
|
|
15422
|
-
'tw
|
|
15423
|
-
'tw
|
|
15424
|
-
'dark:
|
|
15437
|
+
'tw:border-solid',
|
|
15438
|
+
'tw:border',
|
|
15439
|
+
'tw:rounded-popover',
|
|
15440
|
+
'tw:border-sq-disabled-gray',
|
|
15441
|
+
'tw:dark:border-gray-500',
|
|
15425
15442
|
].join(' ');
|
|
15426
|
-
const disabledClasses$2 = ['tw
|
|
15443
|
+
const disabledClasses$2 = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
|
|
15427
15444
|
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 }) => {
|
|
15428
15445
|
const tooltipData = getQTipData(tooltipProps);
|
|
15429
15446
|
const timeout = React.useRef(null);
|
|
@@ -15454,12 +15471,12 @@ const ButtonWithPopover = ({ children, trigger, id, hasArrow, extraTriggerClassN
|
|
|
15454
15471
|
};
|
|
15455
15472
|
React__namespace.useEffect(() => clearHoverTimeout, []);
|
|
15456
15473
|
const renderContent = () => {
|
|
15457
|
-
return (jsxRuntime.jsx(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
|
|
15458
|
-
data-[side=top]:
|
|
15459
|
-
${extraPopoverClassNames || ''}`, children: [hasArrow && (jsxRuntime.jsx(Arrow2$2, { asChild: true, children: jsxRuntime.jsx("div", { className: "tw
|
|
15474
|
+
return (jsxRuntime.jsx(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: jsxRuntime.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
|
|
15475
|
+
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
|
|
15476
|
+
${extraPopoverClassNames || ''}`, children: [hasArrow && (jsxRuntime.jsx(Arrow2$2, { asChild: true, children: jsxRuntime.jsx("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] }) }));
|
|
15460
15477
|
};
|
|
15461
15478
|
const renderPopover = (popoverOpenState) => {
|
|
15462
|
-
return (jsxRuntime.jsxs(Root2$3, { open: popoverOpenState, defaultOpen: false, onOpenChange: onOpenChange, children: [trigger ? (jsxRuntime.jsx(Trigger$3, { id: id, asChild: isTriggerAsChild, className: `focus-visible:
|
|
15479
|
+
return (jsxRuntime.jsxs(Root2$3, { open: popoverOpenState, defaultOpen: false, onOpenChange: onOpenChange, children: [trigger ? (jsxRuntime.jsx(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: jsxRuntime.jsx("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 }) })) : (jsxRuntime.jsx(Trigger$3, { asChild: true, children: jsxRuntime.jsx("div", {}) })), isPortal ? jsxRuntime.jsx(Portal$2, { children: renderContent() }) : renderContent()] }));
|
|
15463
15480
|
};
|
|
15464
15481
|
return isHoverEnabled ? renderPopover(isHoveredOpen) : renderPopover(isOpen);
|
|
15465
15482
|
};
|
|
@@ -16524,65 +16541,65 @@ var SubTrigger2 = DropdownMenuSubTrigger;
|
|
|
16524
16541
|
var SubContent2 = DropdownMenuSubContent;
|
|
16525
16542
|
|
|
16526
16543
|
const borderStyles$1 = [
|
|
16527
|
-
'tw
|
|
16528
|
-
'tw
|
|
16529
|
-
'tw
|
|
16530
|
-
'tw
|
|
16531
|
-
'dark:
|
|
16544
|
+
'tw:border-solid',
|
|
16545
|
+
'tw:border',
|
|
16546
|
+
'tw:rounded-popover',
|
|
16547
|
+
'tw:border-sq-disabled-gray',
|
|
16548
|
+
'tw:dark:border-gray-500',
|
|
16532
16549
|
].join(' ');
|
|
16533
|
-
const bgStyles$1 = ['tw
|
|
16534
|
-
const disabledClasses$1 = ['tw
|
|
16550
|
+
const bgStyles$1 = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
|
|
16551
|
+
const disabledClasses$1 = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
|
|
16535
16552
|
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 }) => {
|
|
16536
16553
|
const tooltipData = getQTipData(tooltipProps);
|
|
16537
|
-
return (jsxRuntime.jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsxRuntime.jsx(Trigger, { id: id, className: `tw-border-none focus-visible:
|
|
16554
|
+
return (jsxRuntime.jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsxRuntime.jsx(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: jsxRuntime.jsx("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 }) }), jsxRuntime.jsx(Portal2, { children: jsxRuntime.jsx(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: jsxRuntime.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 && (jsxRuntime.jsx(Arrow2, { asChild: true, children: jsxRuntime.jsx("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) => {
|
|
16538
16555
|
const tooltipData = getQTipData(item);
|
|
16539
16556
|
if (item.isLabel) {
|
|
16540
|
-
return (jsxRuntime.jsxs(Label2, { className: item.itemExtraClassNames, ...tooltipData, children: [item.icon && (jsxRuntime.jsx(Icon, { icon: item.icon, testId: item.iconTestId, type: "text", color: item.iconColor, extraClassNames: "tw
|
|
16557
|
+
return (jsxRuntime.jsxs(Label2, { className: item.itemExtraClassNames, ...tooltipData, children: [item.icon && (jsxRuntime.jsx(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" })), jsxRuntime.jsx("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));
|
|
16541
16558
|
}
|
|
16542
16559
|
if (Array.isArray(item.subMenuItems) && item.subMenuItems.length > 0) {
|
|
16543
|
-
return (jsxRuntime.jsxs(Sub2, { children: [jsxRuntime.jsxs(SubTrigger2, { id: id, className: `tw
|
|
16544
|
-
? '!tw
|
|
16545
|
-
: 'tw
|
|
16546
|
-
return (jsxRuntime.jsxs(Item2, { onSelect: subItem.onClick, "data-qtip-text": subItem.tooltip, className: "tw
|
|
16547
|
-
? 'tw
|
|
16548
|
-
: 'tw
|
|
16560
|
+
return (jsxRuntime.jsxs(Sub2, { children: [jsxRuntime.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: [jsxRuntime.jsxs("div", { className: "tw:flex", children: [item.icon && (jsxRuntime.jsx(Icon, { icon: item.icon, extraClassNames: `tw:w-4.5 ${item.disabled
|
|
16561
|
+
? '!tw:text-sq-disabled-gray'
|
|
16562
|
+
: 'tw:text-sq-text-color tw:dark:text-sq-white'} ${item.iconExtraClassNames || ''}` })), jsxRuntime.jsx("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 })] }), jsxRuntime.jsx(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` })] }), jsxRuntime.jsx(Portal2, { children: jsxRuntime.jsx(SubContent2, { className: "tw:focus-visible:outline-none tw:outline-none", children: jsxRuntime.jsx("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) => {
|
|
16563
|
+
return (jsxRuntime.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 && (jsxRuntime.jsx(Icon, { icon: subItem.iconClass, type: "text", extraClassNames: `tw:w-4.5 ${item.disabled && '!tw:opacity-30'}` })), jsxRuntime.jsx("div", { className: `tw:text-sq-13 tw:ml-1 ${subItem.disabled
|
|
16564
|
+
? 'tw:text-sq-disabled-gray'
|
|
16565
|
+
: 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:not-italic tw:font-normal ${item.labelClasses}`, children: subItem.label })] }, subItem.label + subIndex));
|
|
16549
16566
|
}) }) }) })] }, (item.id || item.icon || '') + index));
|
|
16550
16567
|
}
|
|
16551
16568
|
return (jsxRuntime.jsxs("div", { ...tooltipData, children: [jsxRuntime.jsxs(Item2, { "data-customid": item.itemCustomId, onSelect: (e) => {
|
|
16552
16569
|
item.onClick(e);
|
|
16553
|
-
}, className: `tw
|
|
16570
|
+
}, 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 && (jsxRuntime.jsx(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 || ''}` })), jsxRuntime.jsx("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 && (jsxRuntime.jsx(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));
|
|
16554
16571
|
})] }) }) })] }));
|
|
16555
16572
|
};
|
|
16556
16573
|
|
|
16557
|
-
const baseClasses$2 = 'tw
|
|
16558
|
-
' tw
|
|
16559
|
-
const darkTheme$1 = 'dark:
|
|
16560
|
-
const lightTheme$1 = 'tw
|
|
16561
|
-
const errorClasses$1 = 'tw
|
|
16562
|
-
const borderColorClasses$1 = 'tw
|
|
16574
|
+
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' +
|
|
16575
|
+
' tw:border-solid tw:border tw:text-sm tw:flex tw:flex-col tw:justify-center tw:items-center';
|
|
16576
|
+
const darkTheme$1 = 'tw:dark:bg-sq-theme-hover-dark tw:dark:text-sq-text-color-dark';
|
|
16577
|
+
const lightTheme$1 = 'tw:text-sq-text-color tw:bg-sq-theme-highlight/10';
|
|
16578
|
+
const errorClasses$1 = 'tw:border-sq-danger';
|
|
16579
|
+
const borderColorClasses$1 = 'tw:border-sq-theme-dark';
|
|
16563
16580
|
/**
|
|
16564
16581
|
* Alert.
|
|
16565
16582
|
*/
|
|
16566
16583
|
const Alert = ({ children, dismissible = true, onClose, show = true, variant, testId = 'alert-id', id, extraClassNames, ...tooltipProps }) => {
|
|
16567
16584
|
const appliedTheme = {
|
|
16568
16585
|
theme: `${lightTheme$1} ${darkTheme$1}`,
|
|
16569
|
-
formulaError: 'tw
|
|
16570
|
-
danger: 'tw
|
|
16571
|
-
warning: 'tw
|
|
16572
|
-
gray: 'tw
|
|
16586
|
+
formulaError: 'tw:text-red-800 tw:bg-red-200 !tw:rounded-[0.25rem]',
|
|
16587
|
+
danger: 'tw:text-sq-text-color tw:bg-sq-danger',
|
|
16588
|
+
warning: 'tw:bg-sq-bg-warning tw:text-sq-text-color',
|
|
16589
|
+
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',
|
|
16573
16590
|
};
|
|
16574
16591
|
const appliedBorderTheme = {
|
|
16575
16592
|
theme: borderColorClasses$1,
|
|
16576
16593
|
danger: errorClasses$1,
|
|
16577
|
-
warning: 'tw
|
|
16578
|
-
gray: 'tw
|
|
16579
|
-
formulaError: 'tw
|
|
16594
|
+
warning: 'tw:border-none',
|
|
16595
|
+
gray: 'tw:border-sq-darkish-gray',
|
|
16596
|
+
formulaError: 'tw:border-red-100',
|
|
16580
16597
|
};
|
|
16581
16598
|
const appliedClasses = `${baseClasses$2} ${appliedTheme[variant]} ${extraClassNames} ${appliedBorderTheme[variant]}`;
|
|
16582
16599
|
if (!show) {
|
|
16583
16600
|
return jsxRuntime.jsx("div", {});
|
|
16584
16601
|
}
|
|
16585
|
-
return (jsxRuntime.jsxs("div", { "data-testid": testId, id: id, className: appliedClasses, children: [children, dismissible && (jsxRuntime.jsx(Icon, { icon: "fc-delete", type: variant.match(/danger|warning|formulaError/) ? 'color' : 'theme', color: variant.match(/danger|warning|formulaError/) ? 'inherit' : undefined, extraClassNames: `tw
|
|
16602
|
+
return (jsxRuntime.jsxs("div", { "data-testid": testId, id: id, className: appliedClasses, children: [children, dismissible && (jsxRuntime.jsx(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 }))] }));
|
|
16586
16603
|
};
|
|
16587
16604
|
|
|
16588
16605
|
/**
|
|
@@ -16601,47 +16618,40 @@ const Alert = ({ children, dismissible = true, onClose, show = true, variant, te
|
|
|
16601
16618
|
* @param tooltipProps - props to pass to the tooltip
|
|
16602
16619
|
*/
|
|
16603
16620
|
const SvgIcon = ({ onClick, icon, color, type = 'default', extraClassNames, viewBox = '0 0 19 19', id, testId, customId, ...tooltipProps }) => {
|
|
16604
|
-
const appliedClassNames = `${onClick ? 'tw
|
|
16605
|
-
tw
|
|
16621
|
+
const appliedClassNames = `${onClick ? 'tw:cursor-pointer' : ''} ${extraClassNames} focus:tw:outline-none focus-visible:tw:outline-none
|
|
16622
|
+
tw:outline-none`;
|
|
16606
16623
|
const tooltipData = getQTipData(tooltipProps);
|
|
16607
16624
|
const appliedType = type === 'default' ? 'currentColor' : 'rgb(var(--sq-icon))';
|
|
16608
|
-
return (jsxRuntime.jsx("div", { onClick: onClick, ...tooltipData, className: `svgContainer ${appliedClassNames}`, children: jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: `tw
|
|
16625
|
+
return (jsxRuntime.jsx("div", { onClick: onClick, ...tooltipData, className: `svgContainer ${appliedClassNames}`, children: jsxRuntime.jsx("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: jsxRuntime.jsx("path", { d: getSvgIconPath(icon) }) }) }));
|
|
16609
16626
|
};
|
|
16610
16627
|
|
|
16611
16628
|
const SeeqActionDropdownItem = (item) => {
|
|
16612
16629
|
let renderIcon = jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
16613
16630
|
if (item.icon) {
|
|
16614
|
-
renderIcon = isSvgIcon(item.icon) ? (jsxRuntime.jsx(SvgIcon, { icon: item.icon, extraClassNames: 'tw-
|
|
16615
|
-
' dark:tw-text-sq-white tw-text-[22px] tw-text-sq-white ' +
|
|
16616
|
-
item.iconExtraClassNames, ...item })) : (jsxRuntime.jsx(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 ' +
|
|
16617
|
-
item.iconExtraClassNames }));
|
|
16631
|
+
renderIcon = isSvgIcon(item.icon) ? (jsxRuntime.jsx(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 })) : (jsxRuntime.jsx(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw:dark:text-sq-white tw:!text-5.5 tw:text-sq-white ' + item.iconExtraClassNames }));
|
|
16618
16632
|
}
|
|
16619
|
-
return (jsxRuntime.jsxs("div", { className: "tw
|
|
16633
|
+
return (jsxRuntime.jsxs("div", { className: "tw:flex-col tw:flex tw:p-2.5 tw:pl-5 tw:w-150", children: [jsxRuntime.jsxs("div", { className: "tw:flex tw:flex-row tw:gap-2 tw:items-end", children: [jsxRuntime.jsx("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 }), jsxRuntime.jsx("h4", { className: "tw:text-base tw:font-[600] tw:leading-5 mb-0", children: item.display })] }), jsxRuntime.jsx("div", { className: "tw:text-sq-13 tw:font-normal", children: item.text })] }));
|
|
16620
16634
|
};
|
|
16621
16635
|
const ViewWorkbench = (item) => {
|
|
16622
16636
|
let renderIcon = jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
|
16623
16637
|
if (item.icon) {
|
|
16624
|
-
renderIcon = isSvgIcon(item.icon) ? (jsxRuntime.jsx(SvgIcon, { icon: item.icon, extraClassNames: 'tw-
|
|
16625
|
-
' tw-text-sq-text-color ' +
|
|
16626
|
-
item.iconExtraClassNames, type: "default", ...item })) : (jsxRuntime.jsx(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw-flex tw-justify-center tw-items-center tw-text-[1.25rem] dark:tw-text-sq-white' +
|
|
16627
|
-
' tw-text-sq-text-color ' +
|
|
16628
|
-
item.iconExtraClassNames }));
|
|
16638
|
+
renderIcon = isSvgIcon(item.icon) ? (jsxRuntime.jsx(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 })) : (jsxRuntime.jsx(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ' + item.iconExtraClassNames }));
|
|
16629
16639
|
}
|
|
16630
|
-
return (jsxRuntime.jsx("div", { className: "tw
|
|
16640
|
+
return (jsxRuntime.jsx("div", { className: "tw:flex-col tw:flex tw:p-2.5", children: jsxRuntime.jsxs("div", { className: "tw:flex tw:flex-row tw:gap-2 tw:items-end", children: [jsxRuntime.jsx("div", { className: "tw:rounded-[0.1875rem] tw:h-5 tw:w-5 tw:flex tw:justify-center tw:items-center ", children: renderIcon }), jsxRuntime.jsx("div", { className: "tw:text-sq-13", children: item.display })] }) }));
|
|
16631
16641
|
};
|
|
16632
16642
|
const InsertSeeqContent = (item) => {
|
|
16633
|
-
return (jsxRuntime.jsxs("div", { className: "tw
|
|
16643
|
+
return (jsxRuntime.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: [jsxRuntime.jsx("h5", { className: "tw:text-4 tw:font-medium tw:text-sq-theme-dark tw:leading-4.5", children: item.display }), jsxRuntime.jsx("div", { className: "tw:text-sq-13 tw:text-sq-text-color tw:dark:text-sq-dark-text !tw:mt-1", children: item.text })] }));
|
|
16634
16644
|
};
|
|
16635
16645
|
|
|
16636
16646
|
const borderStyles = [
|
|
16637
|
-
'tw
|
|
16638
|
-
'tw
|
|
16639
|
-
'tw
|
|
16640
|
-
'tw
|
|
16641
|
-
'dark:
|
|
16647
|
+
'tw:border-solid',
|
|
16648
|
+
'tw:border',
|
|
16649
|
+
'tw:rounded-md',
|
|
16650
|
+
'tw:border-sq-disabled-gray',
|
|
16651
|
+
'tw:dark:border-gray-500',
|
|
16642
16652
|
].join(' ');
|
|
16643
|
-
const bgStyles = ['tw
|
|
16644
|
-
const disabledClasses = ['tw
|
|
16653
|
+
const bgStyles = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
|
|
16654
|
+
const disabledClasses = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
|
|
16645
16655
|
const renderItem = (variant, item) => {
|
|
16646
16656
|
switch (variant) {
|
|
16647
16657
|
case 'create-workbench':
|
|
@@ -16656,31 +16666,31 @@ const renderItem = (variant, item) => {
|
|
|
16656
16666
|
};
|
|
16657
16667
|
const SeeqActionDropdown = ({ seeqActionDropdownItems, trigger, id, extraClassNames, containerTestId, disabled = false, align = 'end', placement = 'bottom', placementOffset = 5, alignOffset = -35, hasArrow = false, onOpenChange, isOpen, setFocusOnTriggerOnClose = true, keepFocusInsideDropdown = true, variant, ...tooltipProps }) => {
|
|
16658
16668
|
const tooltipData = getQTipData(tooltipProps);
|
|
16659
|
-
return (jsxRuntime.jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsxRuntime.jsx(Trigger, { id: id, "data-testid": id, className: `tw
|
|
16660
|
-
' tw
|
|
16661
|
-
' data-[state=open]:
|
|
16662
|
-
' forceFont data-[side=top]:
|
|
16663
|
-
borderStyles, children: [hasArrow && (jsxRuntime.jsx(Arrow2, { asChild: true, children: jsxRuntime.jsx("div", { className: " tw
|
|
16669
|
+
return (jsxRuntime.jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsxRuntime.jsx(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: jsxRuntime.jsx("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 }) }), jsxRuntime.jsx(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: jsxRuntime.jsxs("div", { "data-testid": containerTestId, className: bgStyles +
|
|
16670
|
+
' tw:relative tw:z-[1200] tw:min-w-6 tw:py-2 tw:focus-visible:outline-none tw:outline-none' +
|
|
16671
|
+
' tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out' +
|
|
16672
|
+
' 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 ' +
|
|
16673
|
+
borderStyles, children: [hasArrow && (jsxRuntime.jsx(Arrow2, { asChild: true, children: jsxRuntime.jsx("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) => {
|
|
16664
16674
|
return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Item2, { onSelect: (e) => {
|
|
16665
16675
|
item.action(e);
|
|
16666
|
-
}, className: `tw
|
|
16676
|
+
}, 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 && (jsxRuntime.jsx(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));
|
|
16667
16677
|
})] }) })] }));
|
|
16668
16678
|
};
|
|
16669
16679
|
|
|
16670
|
-
const baseClasses$1 = 'tw
|
|
16671
|
-
const errorClasses = 'tw
|
|
16680
|
+
const baseClasses$1 = 'tw:flex tw:outline-none tw:rounded-md tw:w-full tw:relative tw:flex-wrap';
|
|
16681
|
+
const errorClasses = 'tw:border-sq-danger';
|
|
16672
16682
|
const borderColorClasses = [
|
|
16673
|
-
'tw
|
|
16674
|
-
'dark:
|
|
16675
|
-
'dark:focus:
|
|
16676
|
-
'dark:active:
|
|
16677
|
-
'focus:
|
|
16678
|
-
'active:
|
|
16683
|
+
'tw:border-sq-disabled-gray',
|
|
16684
|
+
'tw:dark:border-sq-dark-disabled-gray',
|
|
16685
|
+
'tw:dark:focus:border-sq-theme-darker',
|
|
16686
|
+
'tw:dark:active:border-sq-theme-darker',
|
|
16687
|
+
'tw:focus:border-sq-theme-dark',
|
|
16688
|
+
'tw:active:border-sq-theme-dark',
|
|
16679
16689
|
].join(' ');
|
|
16680
|
-
const fieldBorderRadius = 'tw
|
|
16681
|
-
const fieldClasses = 'tw
|
|
16682
|
-
const darkTheme = 'dark:
|
|
16683
|
-
const lightTheme = 'tw
|
|
16690
|
+
const fieldBorderRadius = 'tw:rounded-l-md tw:rounded-r-none';
|
|
16691
|
+
const fieldClasses = 'tw:leading-normal tw:outline-none tw:py-1 tw:px-3' + 'tw:p-1 tw:border-solid tw:border';
|
|
16692
|
+
const darkTheme = 'tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-disabled-gray';
|
|
16693
|
+
const lightTheme = 'tw:text-sq-text-color tw:disabled:text-sq-darkish-gray';
|
|
16684
16694
|
/**
|
|
16685
16695
|
* InputGroup.
|
|
16686
16696
|
*/
|
|
@@ -16690,8 +16700,10 @@ const InputGroup = React.forwardRef((props, ref) => {
|
|
|
16690
16700
|
const appliedClasses = `${baseClasses$1} ${extraClassNames}`;
|
|
16691
16701
|
const fieldAppliedClasses = `${fieldClasses} ${extraClassNames} ${lightTheme} ${darkTheme} ${fieldBorderRadius} ${showError ? errorClasses : borderColorClasses} `;
|
|
16692
16702
|
const elementsToAppend = append.filter(Boolean);
|
|
16693
|
-
return (jsxRuntime.jsxs("div", { id: `input-group-${id}`, className: appliedClasses, children: [field ? (jsxRuntime.jsx("div", { "data-testid": testId, className: `tw
|
|
16694
|
-
return item?.variant === 'button' ? (jsxRuntime.jsx(Button, { extraClassNames: `$
|
|
16703
|
+
return (jsxRuntime.jsxs("div", { id: `input-group-${id}`, className: appliedClasses, children: [field ? (jsxRuntime.jsx("div", { "data-testid": testId, className: `tw:flex tw:flex-1 tw:cursor-pointer tw:active:z-50 ${fieldAppliedClasses}`, children: field })) : (jsxRuntime.jsx(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) => {
|
|
16704
|
+
return item?.variant === 'button' ? (jsxRuntime.jsx(Button, { extraClassNames: `$
|
|
16705
|
+
index ? 'tw:-ml-px' : 'tw:ml-0'
|
|
16706
|
+
} tw:focus:z-40 tw:focus:border tw:rounded-none tw:last:rounded-r-md`, ...item.buttonProps }, index)) : (jsxRuntime.jsx("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));
|
|
16695
16707
|
})] }));
|
|
16696
16708
|
});
|
|
16697
16709
|
|
|
@@ -16740,22 +16752,23 @@ const clamp$1 = (min, max, v) => {
|
|
|
16740
16752
|
return v;
|
|
16741
16753
|
};
|
|
16742
16754
|
|
|
16755
|
+
function formatErrorMessage(message, errorCode) {
|
|
16756
|
+
return errorCode
|
|
16757
|
+
? `${message}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${errorCode}`
|
|
16758
|
+
: message;
|
|
16759
|
+
}
|
|
16760
|
+
|
|
16743
16761
|
let warning = () => { };
|
|
16744
16762
|
let invariant = () => { };
|
|
16745
16763
|
if (process.env.NODE_ENV !== "production") {
|
|
16746
|
-
const formatMessage = (message, errorCode) => {
|
|
16747
|
-
return errorCode
|
|
16748
|
-
? `${message}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${errorCode}`
|
|
16749
|
-
: message;
|
|
16750
|
-
};
|
|
16751
16764
|
warning = (check, message, errorCode) => {
|
|
16752
16765
|
if (!check && typeof console !== "undefined") {
|
|
16753
|
-
console.warn(
|
|
16766
|
+
console.warn(formatErrorMessage(message, errorCode));
|
|
16754
16767
|
}
|
|
16755
16768
|
};
|
|
16756
16769
|
invariant = (check, message, errorCode) => {
|
|
16757
16770
|
if (!check) {
|
|
16758
|
-
throw new Error(
|
|
16771
|
+
throw new Error(formatErrorMessage(message, errorCode));
|
|
16759
16772
|
}
|
|
16760
16773
|
};
|
|
16761
16774
|
}
|
|
@@ -16876,10 +16889,10 @@ function velocityPerSecond(velocity, frameDuration) {
|
|
|
16876
16889
|
}
|
|
16877
16890
|
|
|
16878
16891
|
const warned = new Set();
|
|
16879
|
-
function warnOnce(condition, message,
|
|
16892
|
+
function warnOnce(condition, message, errorCode) {
|
|
16880
16893
|
if (condition || warned.has(message))
|
|
16881
16894
|
return;
|
|
16882
|
-
console.warn(message);
|
|
16895
|
+
console.warn(formatErrorMessage(message, errorCode));
|
|
16883
16896
|
warned.add(message);
|
|
16884
16897
|
}
|
|
16885
16898
|
|
|
@@ -18484,6 +18497,10 @@ class JSAnimation extends WithPromise {
|
|
|
18484
18497
|
get duration() {
|
|
18485
18498
|
return millisecondsToSeconds(this.calculatedDuration);
|
|
18486
18499
|
}
|
|
18500
|
+
get iterationDuration() {
|
|
18501
|
+
const { delay = 0 } = this.options || {};
|
|
18502
|
+
return this.duration + millisecondsToSeconds(delay);
|
|
18503
|
+
}
|
|
18487
18504
|
get time() {
|
|
18488
18505
|
return millisecondsToSeconds(this.currentTime);
|
|
18489
18506
|
}
|
|
@@ -19086,6 +19103,10 @@ class NativeAnimation extends WithPromise {
|
|
|
19086
19103
|
const duration = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
19087
19104
|
return millisecondsToSeconds(Number(duration));
|
|
19088
19105
|
}
|
|
19106
|
+
get iterationDuration() {
|
|
19107
|
+
const { delay = 0 } = this.options || {};
|
|
19108
|
+
return this.duration + millisecondsToSeconds(delay);
|
|
19109
|
+
}
|
|
19089
19110
|
get time() {
|
|
19090
19111
|
return millisecondsToSeconds(Number(this.animation.currentTime) || 0);
|
|
19091
19112
|
}
|
|
@@ -19272,12 +19293,9 @@ function canAnimate(keyframes, name, type, velocity) {
|
|
|
19272
19293
|
((type === "spring" || isGenerator(type)) && velocity));
|
|
19273
19294
|
}
|
|
19274
19295
|
|
|
19275
|
-
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
*/
|
|
19279
|
-
function isHTMLElement(element) {
|
|
19280
|
-
return isObject(element) && "offsetHeight" in element;
|
|
19296
|
+
function makeAnimationInstant(options) {
|
|
19297
|
+
options.duration = 0;
|
|
19298
|
+
options.type = "keyframes";
|
|
19281
19299
|
}
|
|
19282
19300
|
|
|
19283
19301
|
/**
|
|
@@ -19294,7 +19312,14 @@ const acceleratedValues = new Set([
|
|
|
19294
19312
|
const supportsWaapi = /*@__PURE__*/ memo(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
19295
19313
|
function supportsBrowserAnimation(options) {
|
|
19296
19314
|
const { motionValue, name, repeatDelay, repeatType, damping, type } = options;
|
|
19297
|
-
|
|
19315
|
+
const subject = motionValue?.owner?.current;
|
|
19316
|
+
/**
|
|
19317
|
+
* We use this check instead of isHTMLElement() because we explicitly
|
|
19318
|
+
* **don't** want elements in different timing contexts (i.e. popups)
|
|
19319
|
+
* to be accelerated, as it's not possible to sync these animations
|
|
19320
|
+
* properly with those driven from the main window frameloop.
|
|
19321
|
+
*/
|
|
19322
|
+
if (!(subject instanceof HTMLElement)) {
|
|
19298
19323
|
return false;
|
|
19299
19324
|
}
|
|
19300
19325
|
const { onUpdate, transformTemplate } = motionValue.owner.getProps();
|
|
@@ -19365,7 +19390,7 @@ class AsyncMotionValueAnimation extends WithPromise {
|
|
|
19365
19390
|
onUpdate?.(getFinalKeyframe$1(keyframes, options, finalKeyframe));
|
|
19366
19391
|
}
|
|
19367
19392
|
keyframes[0] = keyframes[keyframes.length - 1];
|
|
19368
|
-
options
|
|
19393
|
+
makeAnimationInstant(options);
|
|
19369
19394
|
options.repeat = 0;
|
|
19370
19395
|
}
|
|
19371
19396
|
/**
|
|
@@ -19432,6 +19457,9 @@ class AsyncMotionValueAnimation extends WithPromise {
|
|
|
19432
19457
|
get duration() {
|
|
19433
19458
|
return this.animation.duration;
|
|
19434
19459
|
}
|
|
19460
|
+
get iterationDuration() {
|
|
19461
|
+
return this.animation.iterationDuration;
|
|
19462
|
+
}
|
|
19435
19463
|
get time() {
|
|
19436
19464
|
return this.animation.time;
|
|
19437
19465
|
}
|
|
@@ -19868,6 +19896,14 @@ const getValueAsType = (value, type) => {
|
|
|
19868
19896
|
: value;
|
|
19869
19897
|
};
|
|
19870
19898
|
|
|
19899
|
+
/**
|
|
19900
|
+
* Checks if an element is an HTML element in a way
|
|
19901
|
+
* that works across iframes
|
|
19902
|
+
*/
|
|
19903
|
+
function isHTMLElement(element) {
|
|
19904
|
+
return isObject(element) && "offsetHeight" in element;
|
|
19905
|
+
}
|
|
19906
|
+
|
|
19871
19907
|
/**
|
|
19872
19908
|
* Maximum time between the value of two frames, beyond which we
|
|
19873
19909
|
* assume the velocity has since been 0.
|
|
@@ -19901,7 +19937,7 @@ class MotionValue {
|
|
|
19901
19937
|
* An object containing a SubscriptionManager for each active event.
|
|
19902
19938
|
*/
|
|
19903
19939
|
this.events = {};
|
|
19904
|
-
this.updateAndNotify = (v
|
|
19940
|
+
this.updateAndNotify = (v) => {
|
|
19905
19941
|
const currentTime = time.now();
|
|
19906
19942
|
/**
|
|
19907
19943
|
* If we're updating the value during another frame or eventloop
|
|
@@ -19922,10 +19958,6 @@ class MotionValue {
|
|
|
19922
19958
|
}
|
|
19923
19959
|
}
|
|
19924
19960
|
}
|
|
19925
|
-
// Update render subscribers
|
|
19926
|
-
if (render) {
|
|
19927
|
-
this.events.renderRequest?.notify(this.current);
|
|
19928
|
-
}
|
|
19929
19961
|
};
|
|
19930
19962
|
this.hasAnimated = false;
|
|
19931
19963
|
this.setCurrent(init);
|
|
@@ -20036,9 +20068,9 @@ class MotionValue {
|
|
|
20036
20068
|
*
|
|
20037
20069
|
* @public
|
|
20038
20070
|
*/
|
|
20039
|
-
set(v
|
|
20040
|
-
if (!
|
|
20041
|
-
this.updateAndNotify(v
|
|
20071
|
+
set(v) {
|
|
20072
|
+
if (!this.passiveEffect) {
|
|
20073
|
+
this.updateAndNotify(v);
|
|
20042
20074
|
}
|
|
20043
20075
|
else {
|
|
20044
20076
|
this.passiveEffect(v, this.updateAndNotify);
|
|
@@ -27401,7 +27433,7 @@ var Thumb = SliderThumb;
|
|
|
27401
27433
|
*/
|
|
27402
27434
|
const Slider = (props) => {
|
|
27403
27435
|
const { onValueChange, onPointerUp, id, value, name, disabled = false, rootExtraClassNames = '', trackExtraClassNames = '', rangeExtraClassNames = '', thumbExtraClassNames = '', step, min, max, } = props;
|
|
27404
|
-
return (jsxRuntime.jsxs(Root$1, { className: `tw
|
|
27436
|
+
return (jsxRuntime.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: [jsxRuntime.jsx(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: jsxRuntime.jsx(Range, { className: `tw:absolute tw:h-full tw:rounded-full ${rangeExtraClassNames}` }) }), jsxRuntime.jsx(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 })] }));
|
|
27405
27437
|
};
|
|
27406
27438
|
|
|
27407
27439
|
var PROGRESS_NAME = "Progress";
|
|
@@ -28670,7 +28702,7 @@ function validateWCAG2Parms(parms) {
|
|
|
28670
28702
|
};
|
|
28671
28703
|
}
|
|
28672
28704
|
|
|
28673
|
-
const baseLabelClasses = 'tw
|
|
28705
|
+
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';
|
|
28674
28706
|
const ProgressIndicator = (props) => {
|
|
28675
28707
|
const { value, color = undefined, testId, label, extraClasses = '', labelClasses = '', valuesLength, max, index, totalValue, ...tooltipProps } = props;
|
|
28676
28708
|
const tooltipData = getQTipData(tooltipProps);
|
|
@@ -28683,19 +28715,19 @@ const ProgressIndicator = (props) => {
|
|
|
28683
28715
|
if (totalValue >= max) {
|
|
28684
28716
|
// If progress is 100%, round both ends
|
|
28685
28717
|
if (index === 0 && valuesLength === 1) {
|
|
28686
|
-
roundedCorners = 'tw
|
|
28718
|
+
roundedCorners = 'tw:rounded-[0.9375rem]';
|
|
28687
28719
|
}
|
|
28688
28720
|
else if (index === 0) {
|
|
28689
|
-
roundedCorners = 'tw
|
|
28721
|
+
roundedCorners = 'tw:rounded-l-[0.9375rem]';
|
|
28690
28722
|
}
|
|
28691
28723
|
else if (index === valuesLength - 1) {
|
|
28692
|
-
roundedCorners = 'tw
|
|
28724
|
+
roundedCorners = 'tw:rounded-r-[0.9375rem]';
|
|
28693
28725
|
}
|
|
28694
28726
|
}
|
|
28695
28727
|
else {
|
|
28696
28728
|
// Otherwise, only round the leftmost indicator
|
|
28697
28729
|
if (index === 0) {
|
|
28698
|
-
roundedCorners = 'tw
|
|
28730
|
+
roundedCorners = 'tw:rounded-l-[0.9375rem]';
|
|
28699
28731
|
}
|
|
28700
28732
|
}
|
|
28701
28733
|
React.useEffect(() => {
|
|
@@ -28707,13 +28739,13 @@ const ProgressIndicator = (props) => {
|
|
|
28707
28739
|
return () => clearTimeout(timeout);
|
|
28708
28740
|
}, [value]);
|
|
28709
28741
|
const bgColor = color || undefined;
|
|
28710
|
-
const bgClass = color ? '' : 'tw
|
|
28742
|
+
const bgClass = color ? '' : 'tw:bg-sq-theme-dark';
|
|
28711
28743
|
const computeTextClass = (elem) => {
|
|
28712
28744
|
const computedStyle = getComputedStyle(elem);
|
|
28713
28745
|
const backgroundColor = computedStyle.backgroundColor;
|
|
28714
28746
|
const textColorClass = tinycolor(backgroundColor).isDark()
|
|
28715
|
-
? 'tw
|
|
28716
|
-
: 'tw
|
|
28747
|
+
? 'tw:text-sq-white tw:dark:text-sq-white'
|
|
28748
|
+
: 'tw:text-sq-text-color tw:dark:text-sq-text-color';
|
|
28717
28749
|
setTextColorClass(textColorClass);
|
|
28718
28750
|
};
|
|
28719
28751
|
React.useEffect(() => {
|
|
@@ -28721,35 +28753,35 @@ const ProgressIndicator = (props) => {
|
|
|
28721
28753
|
computeTextClass(indicatorElementRef.current);
|
|
28722
28754
|
}
|
|
28723
28755
|
}, [!!indicatorElementRef.current]);
|
|
28724
|
-
return (React.createElement(Indicator, { className: `tw
|
|
28756
|
+
return (React.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: {
|
|
28725
28757
|
// Background color will default to the theme color if undefined
|
|
28726
28758
|
backgroundColor: bgColor,
|
|
28727
28759
|
animation: 'width 660ms forwards',
|
|
28728
28760
|
width: `${animatedWidth}%`,
|
|
28729
|
-
} }, label ? (jsxRuntime.jsx("span", { className: `${baseLabelClasses} ${labelClasses} ${textColorClass} ${valuesLength === 1 ? 'tw
|
|
28761
|
+
} }, label ? (jsxRuntime.jsx("span", { className: `${baseLabelClasses} ${labelClasses} ${textColorClass} ${valuesLength === 1 ? 'tw:absolute tw:z-50' : ''}`, children: label })) : undefined));
|
|
28730
28762
|
};
|
|
28731
28763
|
const ProgressBar = ({ values = [], max = 100, containerExtraClasses = '', zeroValueLabel = 'No progress yet', }) => {
|
|
28732
28764
|
const totalValue = values.reduce((acc, { value }) => acc + value, 0);
|
|
28733
|
-
return (jsxRuntime.jsx(Root, { className: `tw
|
|
28734
|
-
return React.createElement(ProgressIndicator, { ...props, max: max, valuesLength: values.length, index: i, totalValue: totalValue, key: i });
|
|
28735
|
-
})) : (jsxRuntime.jsx("div", { className: `${baseLabelClasses} tw
|
|
28765
|
+
return (jsxRuntime.jsx(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) => {
|
|
28766
|
+
return (React.createElement(ProgressIndicator, { ...props, max: max, valuesLength: values.length, index: i, totalValue: totalValue, key: i }));
|
|
28767
|
+
})) : (jsxRuntime.jsx("div", { className: `${baseLabelClasses} tw:mx-auto tw:overflow-hidden`, children: zeroValueLabel })) }));
|
|
28736
28768
|
};
|
|
28737
28769
|
|
|
28738
|
-
const baseClasses = 'tw
|
|
28770
|
+
const baseClasses = 'tw:flex tw:outline-none tw:w-full tw:relative tw:flex-wrap';
|
|
28739
28771
|
const activeClassesByVariantLightTheme = {
|
|
28740
|
-
'outline': '!tw
|
|
28741
|
-
'theme': 'tw
|
|
28772
|
+
'outline': '!tw:bg-sq-disabled-gray tw:border-sq-theme-dark',
|
|
28773
|
+
'theme': 'tw:bg-sq-theme-highlight',
|
|
28742
28774
|
'danger': '',
|
|
28743
28775
|
'theme-light': '',
|
|
28744
|
-
'no-border': '!tw
|
|
28776
|
+
'no-border': '!tw:bg-sq-disabled-gray',
|
|
28745
28777
|
'warning': '',
|
|
28746
28778
|
};
|
|
28747
28779
|
const activeClassesByVariantDarkTheme = {
|
|
28748
|
-
'outline': 'dark
|
|
28749
|
-
'theme': 'dark:
|
|
28780
|
+
'outline': '!tw:dark:bg-sq-multi-gray-dark tw:dark:border-sq-theme-dark',
|
|
28781
|
+
'theme': 'tw:dark:bg-sq-theme-highlight',
|
|
28750
28782
|
'danger': '',
|
|
28751
28783
|
'theme-light': '',
|
|
28752
|
-
'no-border': 'dark
|
|
28784
|
+
'no-border': '!tw:dark:bg-sq-multi-gray-dark',
|
|
28753
28785
|
'warning': '',
|
|
28754
28786
|
};
|
|
28755
28787
|
/**
|
|
@@ -28761,7 +28793,7 @@ const ButtonGroup = (props) => {
|
|
|
28761
28793
|
const appliedClasses = `${baseClasses} ${extraClassNames}`;
|
|
28762
28794
|
return (jsxRuntime.jsx("div", { id: id ? `button-group-${id}` : undefined, "data-testid": testId, className: appliedClasses, ...tooltipData, children: buttons
|
|
28763
28795
|
.filter(Boolean)
|
|
28764
|
-
.map((item, index) => item?.variant === 'button' ? (jsxRuntime.jsx(Button, { ...item.buttonProps, extraClassNames: `tw
|
|
28796
|
+
.map((item, index) => item?.variant === 'button' ? (jsxRuntime.jsx(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
|
|
28765
28797
|
? `${activeClassesByVariantLightTheme[item?.buttonProps?.variant ?? 'outline']} ${activeClassesByVariantDarkTheme[item?.buttonProps?.variant ?? 'outline']} `
|
|
28766
28798
|
: ''} ${item.buttonProps.extraClassNames}`, onClick: () => onChange && onChange(item?.buttonProps?.value) }, index)) : (item?.element)) }));
|
|
28767
28799
|
};
|
|
@@ -28771,7 +28803,7 @@ const ButtonGroup = (props) => {
|
|
|
28771
28803
|
* - Easily create a carousel with custom slides.
|
|
28772
28804
|
* - Supports automatic sliding, navigation arrows, and slide indicators.
|
|
28773
28805
|
*/
|
|
28774
|
-
const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '', onSlide = () => { }, autoSlide, showIndicators = true, continuous = true, interval = 4000, prevIcon = 'fc-arrow-dropdown tw
|
|
28806
|
+
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 = [], }) => {
|
|
28775
28807
|
const [currentIndex, setCurrentIndex] = React.useState(activeIndex);
|
|
28776
28808
|
const changeSlide = (nextIndex) => {
|
|
28777
28809
|
const newIndex = (nextIndex + carouselItems.length) % carouselItems.length;
|
|
@@ -28833,7 +28865,7 @@ const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '
|
|
|
28833
28865
|
transition: { type: 'spring', damping: 20, stiffness: 100 },
|
|
28834
28866
|
}),
|
|
28835
28867
|
};
|
|
28836
|
-
return (jsxRuntime.jsxs("div", { "data-testid": testId, className: `tw
|
|
28868
|
+
return (jsxRuntime.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: [jsxRuntime.jsxs("div", { className: "tw:flex tw:items-center tw:w-full tw:h-max tw:gap-1", children: [showArrows && (jsxRuntime.jsx(Button, { icon: prevIcon, size: "lg", variant: "no-border", testId: "carousel-prev", extraClassNames: `${currentIndex === 0 && !continuous ? 'tw:invisible' : ''} ${iconExtraClassNames} tw:animate-fadeIn`, onClick: onBackClick })), jsxRuntime.jsx("div", { className: "tw:h-full tw:w-full tw:overflow-hidden", children: jsxRuntime.jsx(motion.div, { custom: 1, initial: "initial", animate: "animate", exit: "exit", variants: slideVariants, className: "tw:w-full", children: carouselItems[currentIndex] }, currentIndex) }), showArrows && (jsxRuntime.jsx(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 && (jsxRuntime.jsx("div", { className: "tw:flex tw:gap-1 tw:mt-2", children: carouselItems.map((_, i) => (jsxRuntime.jsx("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))) }))] }));
|
|
28837
28869
|
};
|
|
28838
28870
|
|
|
28839
28871
|
const buttonTypes = ['button', 'reset', 'submit', 'link'];
|