@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.js CHANGED
@@ -53,6 +53,7 @@ browserId && parseInt(browserId.split(' ', 2)[1], 10);
53
53
  const browserIsFirefox = browserId && browserName === 'Firefox';
54
54
 
55
55
  const DEFAULT_TOOL_TIP_DELAY = 500;
56
+ const tooltipPositions = ['top', 'left', 'right', 'bottom'];
56
57
 
57
58
  const getQTipData = ({ tooltip, tooltipPlacement, isHtmlTooltip, tooltipTestId, tooltipDelay = DEFAULT_TOOL_TIP_DELAY, }) => tooltip
58
59
  ? {
@@ -28801,6 +28802,31 @@ const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '
28801
28802
  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(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-color-dark' : 'tw-bg-sq-darkish-gray'}`, onClick: () => changeSlide(i) }, i))) }))] }));
28802
28803
  };
28803
28804
 
28805
+ const buttonTypes = ['button', 'reset', 'submit', 'link'];
28806
+ const buttonSizes = ['sm', 'lg'];
28807
+ const buttonVariants = ['outline', 'theme', 'theme-light', 'warning', 'danger', 'no-border'];
28808
+ const iconPositions = ['left', 'right'];
28809
+
28810
+ const iconTypes = [
28811
+ 'theme',
28812
+ 'white',
28813
+ 'dark-gray',
28814
+ 'darkish-gray',
28815
+ 'gray',
28816
+ 'color',
28817
+ 'info',
28818
+ 'text',
28819
+ 'warning',
28820
+ 'inherit',
28821
+ 'danger',
28822
+ 'theme-light',
28823
+ 'success',
28824
+ ];
28825
+
28826
+ const svgIconTypes = [...iconTypes, 'default'];
28827
+
28828
+ const toolbarButtonVariants = ['outline', 'theme', 'theme-light', 'warning', 'danger', 'no-border'];
28829
+
28804
28830
  exports.Accordion = Accordion;
28805
28831
  exports.Alert = Alert;
28806
28832
  exports.Button = Button;
@@ -28810,6 +28836,7 @@ exports.ButtonWithPopover = ButtonWithPopover;
28810
28836
  exports.Carousel = Carousel;
28811
28837
  exports.Checkbox = Checkbox;
28812
28838
  exports.Collapse = Collapse;
28839
+ exports.DEFAULT_TOOL_TIP_DELAY = DEFAULT_TOOL_TIP_DELAY;
28813
28840
  exports.Icon = Icon;
28814
28841
  exports.InputGroup = InputGroup;
28815
28842
  exports.Modal = Modal;
@@ -28824,4 +28851,12 @@ exports.TextArea = TextArea;
28824
28851
  exports.TextField = TextField;
28825
28852
  exports.ToolbarButton = ToolbarButton;
28826
28853
  exports.Tooltip = Tooltip;
28854
+ exports.buttonSizes = buttonSizes;
28855
+ exports.buttonTypes = buttonTypes;
28856
+ exports.buttonVariants = buttonVariants;
28857
+ exports.iconPositions = iconPositions;
28858
+ exports.iconTypes = iconTypes;
28859
+ exports.svgIconTypes = svgIconTypes;
28860
+ exports.toolbarButtonVariants = toolbarButtonVariants;
28861
+ exports.tooltipPositions = tooltipPositions;
28827
28862
  //# sourceMappingURL=index.js.map