@seeqdev/qomponents 0.0.159 → 0.0.160

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 CHANGED
@@ -33,6 +33,7 @@ browserId && parseInt(browserId.split(' ', 2)[1], 10);
33
33
  const browserIsFirefox = browserId && browserName === 'Firefox';
34
34
 
35
35
  const DEFAULT_TOOL_TIP_DELAY = 500;
36
+ const tooltipPositions = ['top', 'left', 'right', 'bottom'];
36
37
 
37
38
  const getQTipData = ({ tooltip, tooltipPlacement, isHtmlTooltip, tooltipTestId, tooltipDelay = DEFAULT_TOOL_TIP_DELAY, }) => tooltip
38
39
  ? {
@@ -28781,5 +28782,30 @@ const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '
28781
28782
  return (jsxs("div", { "data-testid": testId, className: `tw-flex tw-flex-col tw-items-center tw-justify-center tw-w-full tw-overflow-hidden ${extraClassNames}`, children: [jsxs("div", { className: "tw-flex tw-items-center tw-w-full tw-h-max tw-gap-1", children: [showArrows && (jsx$1(Button, { icon: prevIcon, size: "lg", variant: "no-border", testId: "carousel-prev", extraClassNames: `${currentIndex === 0 && !continuous ? 'tw-invisible' : ''} ${iconExtraClassNames} tw-animate-fadeIn`, onClick: onBackClick })), jsx$1(motion.div, { custom: 1, initial: "initial", animate: "animate", exit: "exit", variants: slideVariants, className: "tw-w-full", children: carouselItems[currentIndex] }, currentIndex), showArrows && (jsx$1(Button, { icon: nextIcon, testId: "carousel-next", size: "lg", variant: "no-border", extraClassNames: `${currentIndex === carouselItems.length - 1 && !continuous ? 'tw-invisible' : ''} ${iconExtraClassNames} tw-animate-fadeIn`, onClick: onForwardClick }))] }), showIndicators && (jsx$1("div", { className: "tw-flex tw-gap-1 tw-mt-2", children: carouselItems.map((_, i) => (jsx$1("div", { className: `tw-w-2 tw-h-2 tw-rounded-full tw-cursor-pointer ${i === currentIndex ? 'tw-bg-sq-color-dark' : 'tw-bg-sq-darkish-gray'}`, onClick: () => changeSlide(i) }, i))) }))] }));
28782
28783
  };
28783
28784
 
28784
- export { Accordion, Alert, Button, ButtonGroup, ButtonWithDropdown, ButtonWithPopover, Carousel, Checkbox, Collapse, Icon, InputGroup, Modal, ProgressBar, QTip, SeeqActionDropdown, Select, components as SelectCompoents, Slider, Tabs, TextArea, TextField, ToolbarButton, Tooltip };
28785
+ const buttonTypes = ['button', 'reset', 'submit', 'link'];
28786
+ const buttonSizes = ['sm', 'lg'];
28787
+ const buttonVariants = ['outline', 'theme', 'theme-light', 'warning', 'danger', 'no-border'];
28788
+ const iconPositions = ['left', 'right'];
28789
+
28790
+ const iconTypes = [
28791
+ 'theme',
28792
+ 'white',
28793
+ 'dark-gray',
28794
+ 'darkish-gray',
28795
+ 'gray',
28796
+ 'color',
28797
+ 'info',
28798
+ 'text',
28799
+ 'warning',
28800
+ 'inherit',
28801
+ 'danger',
28802
+ 'theme-light',
28803
+ 'success',
28804
+ ];
28805
+
28806
+ const svgIconTypes = [...iconTypes, 'default'];
28807
+
28808
+ const toolbarButtonVariants = ['outline', 'theme', 'theme-light', 'warning', 'danger', 'no-border'];
28809
+
28810
+ export { Accordion, Alert, Button, ButtonGroup, ButtonWithDropdown, ButtonWithPopover, Carousel, Checkbox, Collapse, DEFAULT_TOOL_TIP_DELAY, Icon, InputGroup, Modal, ProgressBar, QTip, SeeqActionDropdown, Select, components as SelectCompoents, Slider, Tabs, TextArea, TextField, ToolbarButton, Tooltip, buttonSizes, buttonTypes, buttonVariants, iconPositions, iconTypes, svgIconTypes, toolbarButtonVariants, tooltipPositions };
28785
28811
  //# sourceMappingURL=index.esm.js.map