@seeqdev/qomponents 0.0.214 → 0.0.215
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/index.esm.js +76 -29429
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +78 -29481
- package/dist/index.js.map +1 -1
- package/dist/src/Accordion/Accordion.d.ts +6 -3
- package/dist/src/Accordion/Accordion.types.d.ts +86 -83
- package/dist/src/Accordion/index.d.ts +2 -1
- package/dist/src/Alert/Alert.d.ts +8 -3
- package/dist/src/Alert/Alert.types.d.ts +58 -55
- package/dist/src/Alert/index.d.ts +2 -1
- package/dist/src/Button/Button.d.ts +6 -3
- package/dist/src/Button/Button.types.d.ts +151 -147
- package/dist/src/Button/index.d.ts +2 -1
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +8 -3
- package/dist/src/ButtonGroup/ButtonGroup.types.d.ts +66 -62
- package/dist/src/ButtonGroup/index.d.ts +2 -1
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +8 -5
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.d.ts +209 -204
- package/dist/src/ButtonWithDropdown/index.d.ts +2 -1
- package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +7 -4
- package/dist/src/ButtonWithPopover/ButtonWithPopover.types.d.ts +134 -129
- package/dist/src/ButtonWithPopover/index.d.ts +2 -1
- package/dist/src/Carousel/Carousel.d.ts +7 -3
- package/dist/src/Carousel/Carousel.types.d.ts +84 -81
- package/dist/src/Carousel/index.d.ts +2 -1
- package/dist/src/Checkbox/Checkbox.d.ts +8 -3
- package/dist/src/Checkbox/Checkbox.types.d.ts +92 -89
- package/dist/src/Checkbox/index.d.ts +2 -1
- package/dist/src/Collapse/Collapse.d.ts +6 -3
- package/dist/src/Collapse/Collapse.types.d.ts +17 -14
- package/dist/src/Collapse/index.d.ts +2 -1
- package/dist/src/Icon/Icon.d.ts +7 -3
- package/dist/src/Icon/Icon.types.d.ts +89 -85
- package/dist/src/Icon/index.d.ts +2 -1
- package/dist/src/InputGroup/InputGroup.d.ts +8 -3
- package/dist/src/InputGroup/InputGroup.types.d.ts +42 -38
- package/dist/src/InputGroup/index.d.ts +3 -2
- package/dist/src/Modal/Modal.d.ts +8 -3
- package/dist/src/Modal/Modal.types.d.ts +253 -249
- package/dist/src/Modal/index.d.ts +2 -1
- package/dist/src/ProgressBar/ProgressBar.d.ts +6 -3
- package/dist/src/ProgressBar/ProgressBar.types.d.ts +71 -66
- package/dist/src/ProgressBar/index.d.ts +2 -1
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +7 -4
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +159 -154
- package/dist/src/SeeqActionDropdown/index.d.ts +2 -1
- package/dist/src/SeeqActionDropdown/variants.d.ts +9 -5
- package/dist/src/Select/Select.d.ts +9 -6
- package/dist/src/Select/Select.types.d.ts +219 -213
- package/dist/src/Select/index.d.ts +3 -2
- package/dist/src/Slider/Slider.d.ts +8 -3
- package/dist/src/Slider/Slider.types.d.ts +83 -80
- package/dist/src/Slider/index.d.ts +2 -1
- package/dist/src/SvgIcon/SvgIcon.d.ts +7 -3
- package/dist/src/SvgIcon/SvgIcon.types.d.ts +73 -69
- package/dist/src/SvgIcon/index.d.ts +2 -1
- package/dist/src/Tabs/Tabs.d.ts +6 -3
- package/dist/src/Tabs/Tabs.types.d.ts +83 -78
- package/dist/src/Tabs/index.d.ts +2 -1
- package/dist/src/TextArea/TextArea.d.ts +8 -3
- package/dist/src/TextArea/TextArea.types.d.ts +116 -111
- package/dist/src/TextArea/index.d.ts +2 -1
- package/dist/src/TextField/TextField.d.ts +8 -3
- package/dist/src/TextField/TextField.types.d.ts +198 -194
- package/dist/src/TextField/index.d.ts +2 -1
- package/dist/src/ToolbarButton/ToolbarButton.d.ts +7 -3
- package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +121 -117
- package/dist/src/ToolbarButton/index.d.ts +2 -1
- package/dist/src/Tooltip/QTip.types.d.ts +16 -12
- package/dist/src/Tooltip/Qtip.d.ts +7 -2
- package/dist/src/Tooltip/Tooltip.d.ts +8 -3
- package/dist/src/Tooltip/Tooltip.types.d.ts +24 -20
- package/dist/src/Tooltip/index.d.ts +3 -2
- package/dist/src/Tooltip/qTip.utilities.d.ts +13 -3
- package/dist/src/TriggerWithDropdown/TriggerWithDropdown.d.ts +7 -4
- package/dist/src/TriggerWithDropdown/TriggerWithDropdown.types.d.ts +99 -94
- package/dist/src/TriggerWithDropdown/index.d.ts +2 -1
- package/dist/src/index.build.d.ts +50 -6
- package/dist/src/index.d.ts +50 -46
- package/dist/src/test-utils/is-browser-mode.d.ts +7 -4
- package/dist/src/types.d.ts +30 -28
- package/dist/src/utils/browserId.d.ts +8 -5
- package/dist/src/utils/svg.d.ts +6 -3
- package/dist/src/utils/validateStyleDimension.d.ts +6 -2
- package/package.json +9 -8
- package/dist/src/styles.build.css.d.ts +0 -1
|
@@ -1,6 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { AccordionProps } from "./Accordion/Accordion.types.js";
|
|
2
|
+
import Accordion from "./Accordion/Accordion.js";
|
|
3
|
+
import { DEFAULT_TOOL_TIP_DELAY, TooltipComponentProps, TooltipPosition, TooltipProps, tooltipPositions } from "./Tooltip/Tooltip.types.js";
|
|
4
|
+
import { AlertProps } from "./Alert/Alert.types.js";
|
|
5
|
+
import { Alert } from "./Alert/Alert.js";
|
|
6
|
+
import { IconProps, IconSize, IconType, iconTypes } from "./Icon/Icon.types.js";
|
|
7
|
+
import { ButtonProps, ButtonSize, ButtonType, ButtonVariant, IconPosition, buttonSizes, buttonTypes, buttonVariants, iconPositions } from "./Button/Button.types.js";
|
|
8
|
+
import Button from "./Button/Button.js";
|
|
9
|
+
import { ButtonGroupProps } from "./ButtonGroup/ButtonGroup.types.js";
|
|
10
|
+
import { ButtonGroup } from "./ButtonGroup/ButtonGroup.js";
|
|
11
|
+
import { ToolbarButtonProps, ToolbarButtonVariant, toolbarButtonVariants } from "./ToolbarButton/ToolbarButton.types.js";
|
|
12
|
+
import { ToolbarButton } from "./ToolbarButton/ToolbarButton.js";
|
|
13
|
+
import { TriggerWithDropdownProps } from "./TriggerWithDropdown/TriggerWithDropdown.types.js";
|
|
14
|
+
import { ButtonWithPopoverProps } from "./ButtonWithPopover/ButtonWithPopover.types.js";
|
|
15
|
+
import { CarouselProps } from "./Carousel/Carousel.types.js";
|
|
16
|
+
import { CheckboxProps } from "./Checkbox/Checkbox.types.js";
|
|
17
|
+
import { CollapseProps } from "./Collapse/Collapse.types.js";
|
|
18
|
+
import { AppendedProps, InputGroupProps } from "./InputGroup/InputGroup.types.js";
|
|
19
|
+
import { ModalProps, ModalSize, TitleIconPosition } from "./Modal/Modal.types.js";
|
|
20
|
+
import { ProgressBarProps, ProgressIndicatorProps } from "./ProgressBar/ProgressBar.types.js";
|
|
21
|
+
import { SeeqActionDropdownItems, SeeqActionDropdownProps } from "./SeeqActionDropdown/SeeqActionDropdown.types.js";
|
|
22
|
+
import { GroupedOption, Option, SelectProps } from "./Select/Select.types.js";
|
|
23
|
+
import { SliderProps } from "./Slider/Slider.types.js";
|
|
24
|
+
import { SvgIconProps, SvgIconType, svgIconTypes } from "./SvgIcon/SvgIcon.types.js";
|
|
25
|
+
import { TabsProps } from "./Tabs/Tabs.types.js";
|
|
26
|
+
import { TextAreaProps } from "./TextArea/TextArea.types.js";
|
|
27
|
+
import { QTipDataAttributes } from "./Tooltip/QTip.types.js";
|
|
28
|
+
import { FormControlElement, InputGroupPlacement } from "./types.js";
|
|
29
|
+
import { DimensionStyle, InputLengthStyleProps, TextFieldProps } from "./TextField/TextField.types.js";
|
|
30
|
+
import { TextField } from "./TextField/TextField.js";
|
|
31
|
+
import { Checkbox } from "./Checkbox/Checkbox.js";
|
|
32
|
+
import { TextArea } from "./TextArea/TextArea.js";
|
|
33
|
+
import { Tooltip } from "./Tooltip/Tooltip.js";
|
|
34
|
+
import { QTip } from "./Tooltip/Qtip.js";
|
|
35
|
+
import Icon from "./Icon/Icon.js";
|
|
36
|
+
import Select from "./Select/Select.js";
|
|
37
|
+
import { GroupBase, OptionProps, SelectComponents } from "./Select/index.js";
|
|
38
|
+
import Modal from "./Modal/Modal.js";
|
|
39
|
+
import Tabs from "./Tabs/Tabs.js";
|
|
40
|
+
import ButtonWithPopover from "./ButtonWithPopover/ButtonWithPopover.js";
|
|
41
|
+
import TriggerWithDropdown from "./TriggerWithDropdown/TriggerWithDropdown.js";
|
|
42
|
+
import SeeqActionDropdown from "./SeeqActionDropdown/SeeqActionDropdown.js";
|
|
43
|
+
import { InputGroup } from "./InputGroup/InputGroup.js";
|
|
44
|
+
import Collapse from "./Collapse/Collapse.js";
|
|
45
|
+
import { Slider } from "./Slider/Slider.js";
|
|
46
|
+
import ProgressBar from "./ProgressBar/ProgressBar.js";
|
|
47
|
+
import Carousel from "./Carousel/Carousel.js";
|
|
48
|
+
import { ButtonWithDropdownProps, DropdownItems, DropdownProps, DropdownSubItem } from "./ButtonWithDropdown/ButtonWithDropdown.types.js";
|
|
49
|
+
import ButtonWithDropdown from "./ButtonWithDropdown/ButtonWithDropdown.js";
|
|
50
|
+
export { Accordion, AccordionProps, Alert, AlertProps, AppendedProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonType, ButtonVariant, ButtonWithDropdown, ButtonWithDropdownProps, ButtonWithPopover, ButtonWithPopoverProps, Carousel, CarouselProps, Checkbox, CheckboxProps, Collapse, CollapseProps, DEFAULT_TOOL_TIP_DELAY, DimensionStyle, DropdownItems, DropdownProps, DropdownSubItem, FormControlElement, GroupBase, GroupedOption, Icon, IconPosition, IconProps, IconSize, IconType, InputGroup, InputGroupPlacement, InputGroupProps, InputLengthStyleProps, Modal, ModalProps, ModalSize, Option, OptionProps, ProgressBar, ProgressBarProps, ProgressIndicatorProps, QTip, QTipDataAttributes, SeeqActionDropdown, SeeqActionDropdownItems, SeeqActionDropdownProps, Select, SelectComponents, SelectProps, Slider, SliderProps, SvgIconProps, SvgIconType, Tabs, TabsProps, TextArea, TextAreaProps, TextField, TextFieldProps, TitleIconPosition, ToolbarButton, ToolbarButtonProps, ToolbarButtonVariant, Tooltip, TooltipComponentProps, TooltipPosition, TooltipProps, TriggerWithDropdown, TriggerWithDropdownProps, buttonSizes, buttonTypes, buttonVariants, iconPositions, iconTypes, svgIconTypes, toolbarButtonVariants, tooltipPositions };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,46 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
import { AccordionProps } from "./Accordion/Accordion.types.js";
|
|
2
|
+
import Accordion from "./Accordion/Accordion.js";
|
|
3
|
+
import { DEFAULT_TOOL_TIP_DELAY, TooltipComponentProps, TooltipPosition, TooltipProps, tooltipPositions } from "./Tooltip/Tooltip.types.js";
|
|
4
|
+
import { AlertProps } from "./Alert/Alert.types.js";
|
|
5
|
+
import { Alert } from "./Alert/Alert.js";
|
|
6
|
+
import { IconProps, IconSize, IconType, iconTypes } from "./Icon/Icon.types.js";
|
|
7
|
+
import { ButtonProps, ButtonSize, ButtonType, ButtonVariant, IconPosition, buttonSizes, buttonTypes, buttonVariants, iconPositions } from "./Button/Button.types.js";
|
|
8
|
+
import Button from "./Button/Button.js";
|
|
9
|
+
import { ButtonGroupProps } from "./ButtonGroup/ButtonGroup.types.js";
|
|
10
|
+
import { ButtonGroup } from "./ButtonGroup/ButtonGroup.js";
|
|
11
|
+
import { ToolbarButtonProps, ToolbarButtonVariant, toolbarButtonVariants } from "./ToolbarButton/ToolbarButton.types.js";
|
|
12
|
+
import { ToolbarButton } from "./ToolbarButton/ToolbarButton.js";
|
|
13
|
+
import { TriggerWithDropdownProps } from "./TriggerWithDropdown/TriggerWithDropdown.types.js";
|
|
14
|
+
import { ButtonWithPopoverProps } from "./ButtonWithPopover/ButtonWithPopover.types.js";
|
|
15
|
+
import { CarouselProps } from "./Carousel/Carousel.types.js";
|
|
16
|
+
import { CheckboxProps } from "./Checkbox/Checkbox.types.js";
|
|
17
|
+
import { CollapseProps } from "./Collapse/Collapse.types.js";
|
|
18
|
+
import { AppendedProps, InputGroupProps } from "./InputGroup/InputGroup.types.js";
|
|
19
|
+
import { ModalProps, ModalSize, TitleIconPosition } from "./Modal/Modal.types.js";
|
|
20
|
+
import { ProgressBarProps, ProgressIndicatorProps } from "./ProgressBar/ProgressBar.types.js";
|
|
21
|
+
import { SeeqActionDropdownItems, SeeqActionDropdownProps } from "./SeeqActionDropdown/SeeqActionDropdown.types.js";
|
|
22
|
+
import { GroupedOption, Option, SelectProps } from "./Select/Select.types.js";
|
|
23
|
+
import { SliderProps } from "./Slider/Slider.types.js";
|
|
24
|
+
import { SvgIconProps, SvgIconType, svgIconTypes } from "./SvgIcon/SvgIcon.types.js";
|
|
25
|
+
import { TabsProps } from "./Tabs/Tabs.types.js";
|
|
26
|
+
import { TextAreaProps } from "./TextArea/TextArea.types.js";
|
|
27
|
+
import { QTipDataAttributes } from "./Tooltip/QTip.types.js";
|
|
28
|
+
import { FormControlElement, InputGroupPlacement } from "./types.js";
|
|
29
|
+
import { DimensionStyle, InputLengthStyleProps, TextFieldProps } from "./TextField/TextField.types.js";
|
|
30
|
+
import { TextField } from "./TextField/TextField.js";
|
|
31
|
+
import { Checkbox } from "./Checkbox/Checkbox.js";
|
|
32
|
+
import { TextArea } from "./TextArea/TextArea.js";
|
|
33
|
+
import { Tooltip } from "./Tooltip/Tooltip.js";
|
|
34
|
+
import { QTip } from "./Tooltip/Qtip.js";
|
|
35
|
+
import Icon from "./Icon/Icon.js";
|
|
36
|
+
import Select from "./Select/Select.js";
|
|
37
|
+
import { GroupBase, OptionProps, SelectComponents } from "./Select/index.js";
|
|
38
|
+
import Modal from "./Modal/Modal.js";
|
|
39
|
+
import Tabs from "./Tabs/Tabs.js";
|
|
40
|
+
import ButtonWithPopover from "./ButtonWithPopover/ButtonWithPopover.js";
|
|
41
|
+
import TriggerWithDropdown from "./TriggerWithDropdown/TriggerWithDropdown.js";
|
|
42
|
+
import SeeqActionDropdown from "./SeeqActionDropdown/SeeqActionDropdown.js";
|
|
43
|
+
import { InputGroup } from "./InputGroup/InputGroup.js";
|
|
44
|
+
import Collapse from "./Collapse/Collapse.js";
|
|
45
|
+
import { Slider } from "./Slider/Slider.js";
|
|
46
|
+
import ProgressBar from "./ProgressBar/ProgressBar.js";
|
|
47
|
+
import Carousel from "./Carousel/Carousel.js";
|
|
48
|
+
import { ButtonWithDropdownProps, DropdownItems, DropdownProps, DropdownSubItem } from "./ButtonWithDropdown/ButtonWithDropdown.types.js";
|
|
49
|
+
import ButtonWithDropdown from "./ButtonWithDropdown/ButtonWithDropdown.js";
|
|
50
|
+
export { Accordion, AccordionProps, Alert, AlertProps, AppendedProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonType, ButtonVariant, ButtonWithDropdown, ButtonWithDropdownProps, ButtonWithPopover, ButtonWithPopoverProps, Carousel, CarouselProps, Checkbox, CheckboxProps, Collapse, CollapseProps, DEFAULT_TOOL_TIP_DELAY, DimensionStyle, DropdownItems, DropdownProps, DropdownSubItem, FormControlElement, type GroupBase, GroupedOption, Icon, IconPosition, IconProps, IconSize, IconType, InputGroup, InputGroupPlacement, InputGroupProps, InputLengthStyleProps, Modal, ModalProps, ModalSize, Option, type OptionProps, ProgressBar, ProgressBarProps, ProgressIndicatorProps, QTip, QTipDataAttributes, SeeqActionDropdown, SeeqActionDropdownItems, SeeqActionDropdownProps, Select, SelectComponents, SelectProps, Slider, SliderProps, SvgIconProps, SvgIconType, Tabs, TabsProps, TextArea, TextAreaProps, TextField, TextFieldProps, TitleIconPosition, ToolbarButton, ToolbarButtonProps, ToolbarButtonVariant, Tooltip, TooltipComponentProps, TooltipPosition, TooltipProps, TriggerWithDropdown, TriggerWithDropdownProps, buttonSizes, buttonTypes, buttonVariants, iconPositions, iconTypes, svgIconTypes, toolbarButtonVariants, tooltipPositions };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
//#region src/test-utils/is-browser-mode.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Check if tests are running in Playwright browser mode vs happy-dom/Node mode.
|
|
3
4
|
*
|
|
4
5
|
* Vitest 4.0.x doesn't reliably support import.meta.env in browser projects,
|
|
5
6
|
* so this uses user agent detection for now.
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
declare function isBrowserMode(): boolean;
|
|
9
|
+
declare function isHappyDomMode(): boolean;
|
|
10
|
+
declare function isNodeMode(): boolean;
|
|
11
|
+
declare function isHeadlessBrowserMode(): boolean;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { isBrowserMode, isHappyDomMode, isHeadlessBrowserMode, isNodeMode };
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import { AccordionProps } from "./Accordion/Accordion.types.js";
|
|
2
|
+
import { DEFAULT_TOOL_TIP_DELAY, TooltipComponentProps, TooltipPosition, TooltipProps, tooltipPositions } from "./Tooltip/Tooltip.types.js";
|
|
3
|
+
import { AlertProps } from "./Alert/Alert.types.js";
|
|
4
|
+
import { IconProps, IconSize, IconType, iconTypes } from "./Icon/Icon.types.js";
|
|
5
|
+
import { ButtonProps, ButtonSize, ButtonType, ButtonVariant, IconPosition, buttonSizes, buttonTypes, buttonVariants, iconPositions } from "./Button/Button.types.js";
|
|
6
|
+
import { ButtonGroupProps } from "./ButtonGroup/ButtonGroup.types.js";
|
|
7
|
+
import { ToolbarButtonProps, ToolbarButtonVariant, toolbarButtonVariants } from "./ToolbarButton/ToolbarButton.types.js";
|
|
8
|
+
import { TriggerWithDropdownProps } from "./TriggerWithDropdown/TriggerWithDropdown.types.js";
|
|
9
|
+
import { ButtonWithPopoverProps } from "./ButtonWithPopover/ButtonWithPopover.types.js";
|
|
10
|
+
import { CarouselProps } from "./Carousel/Carousel.types.js";
|
|
11
|
+
import { CheckboxProps } from "./Checkbox/Checkbox.types.js";
|
|
12
|
+
import { CollapseProps } from "./Collapse/Collapse.types.js";
|
|
13
|
+
import { AppendedProps, InputGroupProps } from "./InputGroup/InputGroup.types.js";
|
|
14
|
+
import { ModalProps, ModalSize, TitleIconPosition } from "./Modal/Modal.types.js";
|
|
15
|
+
import { ProgressBarProps, ProgressIndicatorProps } from "./ProgressBar/ProgressBar.types.js";
|
|
16
|
+
import { SeeqActionDropdownItems, SeeqActionDropdownProps } from "./SeeqActionDropdown/SeeqActionDropdown.types.js";
|
|
17
|
+
import { GroupedOption, Option, SelectProps } from "./Select/Select.types.js";
|
|
18
|
+
import { SliderProps } from "./Slider/Slider.types.js";
|
|
19
|
+
import { SvgIconProps, SvgIconType, svgIconTypes } from "./SvgIcon/SvgIcon.types.js";
|
|
20
|
+
import { TabsProps } from "./Tabs/Tabs.types.js";
|
|
21
|
+
import { TextAreaProps } from "./TextArea/TextArea.types.js";
|
|
22
|
+
import { QTipDataAttributes } from "./Tooltip/QTip.types.js";
|
|
23
|
+
import { DimensionStyle, InputLengthStyleProps, TextFieldProps } from "./TextField/TextField.types.js";
|
|
24
|
+
import { ButtonWithDropdownProps, DropdownItems, DropdownProps, DropdownSubItem } from "./ButtonWithDropdown/ButtonWithDropdown.types.js";
|
|
25
|
+
|
|
26
|
+
//#region src/types.d.ts
|
|
27
|
+
type InputGroupPlacement = 'left' | 'right' | undefined;
|
|
28
|
+
type FormControlElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { AccordionProps, AlertProps, AppendedProps, ButtonGroupProps, ButtonProps, ButtonSize, ButtonType, ButtonVariant, ButtonWithDropdownProps, ButtonWithPopoverProps, CarouselProps, CheckboxProps, CollapseProps, DEFAULT_TOOL_TIP_DELAY, DimensionStyle, DropdownItems, DropdownProps, DropdownSubItem, FormControlElement, GroupedOption, IconPosition, IconProps, IconSize, IconType, InputGroupPlacement, InputGroupProps, InputLengthStyleProps, ModalProps, ModalSize, Option, ProgressBarProps, ProgressIndicatorProps, QTipDataAttributes, SeeqActionDropdownItems, SeeqActionDropdownProps, SelectProps, SliderProps, SvgIconProps, SvgIconType, TabsProps, TextAreaProps, TextFieldProps, TitleIconPosition, type ToolbarButtonProps, type ToolbarButtonVariant, TooltipComponentProps, TooltipPosition, TooltipProps, TriggerWithDropdownProps, buttonSizes, buttonTypes, buttonVariants, iconPositions, iconTypes, svgIconTypes, toolbarButtonVariants, tooltipPositions };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
//#region src/utils/browserId.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* @exports the browser id (i.e., 'IE 11' 'Chrome 90')
|
|
3
4
|
* @see http://stackoverflow.com/questions/2400935/browser-detection-in-javascript
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
declare const browserId: string;
|
|
7
|
+
declare const browserName: string;
|
|
8
|
+
declare const browserVersion: number | "";
|
|
9
|
+
declare const browserIsFirefox: "" | boolean;
|
|
10
|
+
declare const browserIsEdgeBeforeChromium: "" | 0 | boolean;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { browserId, browserIsEdgeBeforeChromium, browserIsFirefox, browserName, browserVersion };
|
package/dist/src/utils/svg.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/utils/svg.d.ts
|
|
2
|
+
declare const SVG_PATH = "svgpath:";
|
|
2
3
|
/**
|
|
3
4
|
* Determines if an icon is SVG
|
|
4
5
|
*
|
|
5
6
|
* @param icon - an icon string that will either be an icon class or an SVG path definition (e.g. "fa fa-wrench" or
|
|
6
7
|
* "svgpath:M 17.0181 0 ...")
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
declare function isSvgIcon(icon: string): boolean;
|
|
9
10
|
/**
|
|
10
11
|
* Retrieves the SVG path from an SVG icon
|
|
11
12
|
*
|
|
12
13
|
* @param icon - an SVG icon string including path definition (e.g. "svgpath:M 17.0181 0 ...")
|
|
13
14
|
* @returns the SVG icon path or an empty string if the supplied icon is not SVG
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
declare function getSvgIconPath(icon: string): string;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { SVG_PATH, getSvgIconPath, isSvgIcon };
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import { DimensionStyle } from
|
|
2
|
-
|
|
1
|
+
import { DimensionStyle } from "../TextField/TextField.types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/validateStyleDimension.d.ts
|
|
4
|
+
declare const setValidInputDimension: (width?: number | undefined, height?: number | undefined) => DimensionStyle | undefined;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { setValidInputDimension };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seeqdev/qomponents",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.215",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -32,8 +32,6 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@ladle/react": "5.0.3",
|
|
34
34
|
"@react-types/shared": "3.30.0",
|
|
35
|
-
"@rollup/plugin-commonjs": "25.0.7",
|
|
36
|
-
"@rollup/plugin-node-resolve": "16.0.0",
|
|
37
35
|
"@tailwindcss/forms": "0.5.3",
|
|
38
36
|
"@tailwindcss/postcss": "4.1.18",
|
|
39
37
|
"@tailwindcss/vite": "4.1.12",
|
|
@@ -59,11 +57,12 @@
|
|
|
59
57
|
"prettier": "^3.8.1",
|
|
60
58
|
"react": "19.2.0",
|
|
61
59
|
"react-dom": "19.2.0",
|
|
62
|
-
"rollup": "4.22.4",
|
|
63
60
|
"rollup-plugin-copy": "3.5.0",
|
|
64
|
-
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
65
61
|
"rollup-plugin-postcss": "4.0.2",
|
|
66
|
-
"
|
|
62
|
+
"rimraf": "6.0.1",
|
|
63
|
+
"glob": "13.0.3",
|
|
64
|
+
"rolldown": "1.0.0-beta.35",
|
|
65
|
+
"rolldown-plugin-dts": "0.16.1",
|
|
67
66
|
"tailwindcss": "4.1.16",
|
|
68
67
|
"ts-node": "10.9.2",
|
|
69
68
|
"typescript": "5.9.3",
|
|
@@ -92,12 +91,14 @@
|
|
|
92
91
|
"tinycolor2": "1.4.1"
|
|
93
92
|
},
|
|
94
93
|
"scripts": {
|
|
95
|
-
"
|
|
96
|
-
"
|
|
94
|
+
"clean": "rimraf dist",
|
|
95
|
+
"build": "pnpm clean && rolldown -c rolldown.config.js",
|
|
96
|
+
"test": "cross-env TZ=UTC LANG=en-US vitest run && pnpm test:build",
|
|
97
97
|
"test:unit": "cross-env TZ=UTC LANG=en-US vitest run --project=unit",
|
|
98
98
|
"test:component": "cross-env TZ=UTC LANG=en-US vitest run --project=component",
|
|
99
99
|
"test:browser": "cross-env TZ=UTC LANG=en-US vitest run --project=browser",
|
|
100
100
|
"test:browser:ui": "cross-env TZ=UTC LANG=en-US vitest --project=browser --browser.headless=false",
|
|
101
|
+
"test:build": "pnpm build && cross-env TZ=UTC LANG=en-US vitest run -c vitest.build.config.ts",
|
|
101
102
|
"test:watch": "cross-env TZ=UTC LANG=en-US vitest watch",
|
|
102
103
|
"test:coverage": "cross-env TZ=UTC LANG=en-US vitest run --coverage",
|
|
103
104
|
"dev": "ladle serve",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default undefined;
|