@seeqdev/qomponents 0.0.189 → 0.0.191

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/README.md CHANGED
@@ -47,16 +47,10 @@ To make sure all styles are properly applied be sure to include the qomponents c
47
47
 
48
48
  ```css
49
49
  @import '@seeqdev/qomponents/dist/styles.css';
50
-
51
- @font-face {
52
- font-family: 'fontCustom';
53
- src: url('@seeqdev/qomponents/dist/FontCustom.woff2') format('woff2'), url('@seeqdev/qomponents/dist/FontCustom.woff')
54
- format('woff');
55
- font-weight: normal;
56
- font-style: normal;
57
- }
58
50
  ```
59
51
 
52
+ **Note:** The styles.css file already includes the icon font definitions, so you don't need to manually add `@font-face` declarations.
53
+
60
54
  <b>A note on CSS:</b> Seeq's qomponents come fully styled and ready to use. While it is tempting to use the
61
55
  available <i>extraClassNames</i> property to provide yet additional styling we strongly advise you to use this
62
56
  property to provide only width, margins and padding. This will ensure for a smooth upgrade experience when
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as jsx$1, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import React__default, { useLayoutEffect, useState, useRef, useEffect, useCallback, forwardRef, useContext, useMemo, createContext, Component, Fragment as Fragment$1, useId as useId$1, useInsertionEffect as useInsertionEffect$2, Children, isValidElement, createElement } from 'react';
3
+ import React__default, { useLayoutEffect, useState, useCallback, useRef, useEffect, forwardRef, useContext, useMemo, createContext, Component, Fragment as Fragment$1, useId as useId$1, useInsertionEffect as useInsertionEffect$2, Children, isValidElement, createElement } from 'react';
4
4
  import * as ReactDOM from 'react-dom';
5
5
  import ReactDOM__default, { createPortal } from 'react-dom';
6
6
 
@@ -3843,7 +3843,7 @@ var removedBarSizeVariable = '--removed-body-scroll-bar-size';
3843
3843
  * assignRef(refObject, "refValue");
3844
3844
  * assignRef(refFn, "refValue");
3845
3845
  */
3846
- function assignRef(ref, value) {
3846
+ function assignRef$1(ref, value) {
3847
3847
  if (typeof ref === 'function') {
3848
3848
  ref(value);
3849
3849
  }
@@ -3910,7 +3910,7 @@ var currentValues = new WeakMap();
3910
3910
  */
3911
3911
  function useMergeRefs(refs, defaultValue) {
3912
3912
  var callbackRef = useCallbackRef(null, function (newValue) {
3913
- return refs.forEach(function (ref) { return assignRef(ref, newValue); });
3913
+ return refs.forEach(function (ref) { return assignRef$1(ref, newValue); });
3914
3914
  });
3915
3915
  // handle refs changes - added or removed
3916
3916
  useIsomorphicLayoutEffect$1(function () {
@@ -3921,12 +3921,12 @@ function useMergeRefs(refs, defaultValue) {
3921
3921
  var current_1 = callbackRef.current;
3922
3922
  prevRefs_1.forEach(function (ref) {
3923
3923
  if (!nextRefs_1.has(ref)) {
3924
- assignRef(ref, null);
3924
+ assignRef$1(ref, null);
3925
3925
  }
3926
3926
  });
3927
3927
  nextRefs_1.forEach(function (ref) {
3928
3928
  if (!prevRefs_1.has(ref)) {
3929
- assignRef(ref, current_1);
3929
+ assignRef$1(ref, current_1);
3930
3930
  }
3931
3931
  });
3932
3932
  }
@@ -4888,6 +4888,41 @@ const setValidInputDimension = (width, height) => {
4888
4888
  return inputStyle;
4889
4889
  };
4890
4890
 
4891
+ function assignRef(ref, value) {
4892
+ if (typeof ref === "function") {
4893
+ return ref(value);
4894
+ } else if (typeof ref === "object" && ref !== null && "current" in ref) {
4895
+ ref.current = value;
4896
+ }
4897
+ }
4898
+ function mergeRefs(...refs) {
4899
+ const cleanupMap = /* @__PURE__ */ new Map();
4900
+ return (node) => {
4901
+ refs.forEach((ref) => {
4902
+ const cleanup = assignRef(ref, node);
4903
+ if (cleanup) {
4904
+ cleanupMap.set(ref, cleanup);
4905
+ }
4906
+ });
4907
+ if (cleanupMap.size > 0) {
4908
+ return () => {
4909
+ refs.forEach((ref) => {
4910
+ const cleanup = cleanupMap.get(ref);
4911
+ if (cleanup && typeof cleanup === "function") {
4912
+ cleanup();
4913
+ } else {
4914
+ assignRef(ref, null);
4915
+ }
4916
+ });
4917
+ cleanupMap.clear();
4918
+ };
4919
+ }
4920
+ };
4921
+ }
4922
+ function useMergedRef(...refs) {
4923
+ return useCallback(mergeRefs(...refs), refs);
4924
+ }
4925
+
4891
4926
  const errorClasses$4 = 'tw:border-sq-danger';
4892
4927
  const borderColorClasses$4 = [
4893
4928
  'tw:border-sq-disabled-gray',
@@ -4913,13 +4948,9 @@ const sizeClasses = {
4913
4948
  const TextField = React__default.forwardRef((props, ref) => {
4914
4949
  const { readonly = false, disabled = false, onChange, onKeyUp, onFocus, onBlur, onKeyDown, id, name, size = 'sm', value, placeholder, extraClassNames, testId, type = 'text', inputGroup, step, showError, errorText, min, max, maxLength, minLength, required = false, autoComplete = 'off', inputWidth = undefined, inputHeight = undefined, autoFocus = false, ...tooltipProps } = props;
4915
4950
  const internalRef = useRef(null);
4951
+ const mergedRef = useMergedRef(ref, internalRef);
4916
4952
  const [cursor, setCursor] = useState(null);
4917
4953
  const tooltipData = getQTipData(tooltipProps);
4918
- const setAllRefs = (receivedRef) => {
4919
- if (ref)
4920
- ref.current = receivedRef;
4921
- internalRef.current = receivedRef;
4922
- };
4923
4954
  useEffect(() => {
4924
4955
  if (autoFocus) {
4925
4956
  setTimeout(() => {
@@ -4965,7 +4996,7 @@ const TextField = React__default.forwardRef((props, ref) => {
4965
4996
  inputLenghtProp.maxLength = maxLength;
4966
4997
  if (minLength)
4967
4998
  inputLenghtProp.minLength = minLength;
4968
- return (jsxs(Fragment, { children: [jsx$1("input", { ref: setAllRefs, "data-testid": testId, name: name, id: id, type: type, value: value, className: appliedClasses, placeholder: placeholder, disabled: disabled, readOnly: readonly, autoComplete: autoComplete, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onKeyUp: onKeyUp, step: step, required: required, min: min, max: max, ...inputLenghtProp, ...inputProp, ...tooltipData }), errorText && showError && jsx$1("div", { className: "tw:text-sq-danger tw:text-xs tw:mt-1", children: errorText })] }));
4999
+ return (jsxs(Fragment, { children: [jsx$1("input", { ref: mergedRef, "data-testid": testId, name: name, id: id, type: type, value: value, className: appliedClasses, placeholder: placeholder, disabled: disabled, readOnly: readonly, autoComplete: autoComplete, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onKeyUp: onKeyUp, step: step, required: required, min: min, max: max, ...inputLenghtProp, ...inputProp, ...tooltipData }), errorText && showError && jsx$1("div", { className: "tw:text-sq-danger tw:text-xs tw:mt-1", children: errorText })] }));
4969
5000
  });
4970
5001
 
4971
5002
  const alignment = 'tw:flex';
@@ -5010,6 +5041,7 @@ const borderColorClasses$3 = [
5010
5041
  const TextArea = React__default.forwardRef(({ readonly = false, disabled = false, onChange, onKeyUp, onFocus, onBlur, onKeyDown, onSelectionChange, id, name, rows = 3, cols = undefined, value, placeholder, showError, extraClassNames, testId, autoFocus = false, }, ref) => {
5011
5042
  const appliedClasses = `${baseClasses$4} ${extraClassNames} ${lightTheme$2} ${darkTheme$2} ${showError ? errorClasses$3 : borderColorClasses$3}`;
5012
5043
  const textareaRef = useRef(null);
5044
+ const mergedRef = useMergedRef(ref, textareaRef);
5013
5045
  // Handle selection change events
5014
5046
  useEffect(() => {
5015
5047
  if (!onSelectionChange || !textareaRef.current) {
@@ -5030,15 +5062,7 @@ const TextArea = React__default.forwardRef(({ readonly = false, disabled = false
5030
5062
  textarea.removeEventListener('keyup', handleSelectionChange);
5031
5063
  };
5032
5064
  }, [onSelectionChange]);
5033
- return (jsx$1("textarea", { ref: (element) => {
5034
- textareaRef.current = element;
5035
- if (typeof ref === 'function') {
5036
- ref(element);
5037
- }
5038
- else if (ref) {
5039
- ref.current = element;
5040
- }
5041
- }, "data-testid": testId, name: name, id: id, value: value, className: appliedClasses, placeholder: placeholder, disabled: disabled, readOnly: readonly, onChange: onChange, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onKeyUp: onKeyUp, rows: rows, cols: cols, autoFocus: autoFocus }));
5065
+ return (jsx$1("textarea", { ref: mergedRef, "data-testid": testId, name: name, id: id, value: value, className: appliedClasses, placeholder: placeholder, disabled: disabled, readOnly: readonly, onChange: onChange, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, onKeyUp: onKeyUp, rows: rows, cols: cols, autoFocus: autoFocus }));
5042
5066
  });
5043
5067
 
5044
5068
  /**
@@ -7570,7 +7594,7 @@ const QTip = () => {
7570
7594
  }
7571
7595
  };
7572
7596
  return (jsx$1(Fragment, { children: jsxs("div", { onMouseEnter: () => setOverTooltip(true), onMouseLeave: () => setOverTooltip(false), "data-testid": tooltipTestId, ref: tooltipRef, className: 'tw:absolute tw:rounded tw:bg-black tw:max-w-96 tw:p-2 tw:text-xs tw:text-sq-white tw:z-[9999] tw:fade-in ' +
7573
- (show ? 'tw:visible' : 'tw:invisible tw:pointer-events-none'), children: [html ? jsx$1(HTMLTip, { text: tooltipText }) : tooltipText, jsx$1("div", { className: "tw:absolute tw:w-2.5 tw:h-2.5 tw:rotate-45 tw:bg-sq-black tw:dark:bg-sq-black", ref: tooltipArrowRef })] }) }));
7597
+ (show ? 'tw:visible' : 'tw:invisible tw:pointer-events-none'), children: [html ? jsx$1(HTMLTip, { text: tooltipText }) : tooltipText, jsx$1("div", { className: "tw:absolute tw:w-2.5 tw:h-2.5 tw:rotate-45 tw:bg-black", ref: tooltipArrowRef })] }) }));
7574
7598
  };
7575
7599
 
7576
7600
  function _typeof(o) {
@@ -14019,14 +14043,14 @@ const menuStyles = [
14019
14043
  'tw:dark:border-sq-dark-disabled-gray',
14020
14044
  'tw:whitespace-nowrap',
14021
14045
  'tw:min-w-fit',
14022
- 'tw:!z-[9999]',
14046
+ 'tw:z-[9999]!',
14023
14047
  ].join(' ');
14024
14048
  const menuListStyles = [
14025
14049
  'tw:rounded-b',
14026
14050
  'tw:bg-sq-white',
14027
14051
  'tw:dark:bg-sq-dark-background',
14028
14052
  'tw:min-w-fit',
14029
- 'tw:!z-[9999]',
14053
+ 'tw:z-[9999]!',
14030
14054
  'specSelectMenu',
14031
14055
  ].join(' ');
14032
14056
  const groupHeadingStyles = [
@@ -14045,7 +14069,7 @@ const optionStyles = [
14045
14069
  'tw:px-2.5',
14046
14070
  'specSelectOption',
14047
14071
  ].join(' ');
14048
- const disabledClasses$3 = ['tw:bg-sq-field-disabled-gray', 'tw:!cursor-not-allowed', 'tw:opacity-50'].join(' ');
14072
+ const disabledClasses$3 = ['tw:bg-sq-field-disabled-gray', 'tw:cursor-not-allowed!', 'tw:opacity-50'].join(' ');
14049
14073
  const dropDownIndicatorStyles = `tw:text-sq-disabled-gray ${textActiveStyles} specOpenIt`;
14050
14074
  const placeholderStyles = ['tw:text-gray-400', 'tw:dark:text-sq-dark-text-lighter', 'specOpenSelect'].join(' ');
14051
14075
  const multiValueStyles = [
@@ -14134,12 +14158,12 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
14134
14158
  placeholder: () => placeholderStyles,
14135
14159
  container: ({ selectProps }) => {
14136
14160
  const containerBorderStyles = selectProps?.menuIsOpen ? 'tw:rounded-t-md' : 'tw:rounded-md';
14137
- return `${textStyles} ${extraClassNames} ${containerBorderStyles} tw:!pointer-events-auto`;
14161
+ return `${textStyles} ${extraClassNames} ${containerBorderStyles} tw:pointer-events-auto!`;
14138
14162
  },
14139
14163
  input: () => textStyles + ' specSelectInput',
14140
14164
  menuList: () => menuListStyles,
14141
14165
  menu: () => menuStyles,
14142
- menuPortal: () => 'tw:!z-[9000]',
14166
+ menuPortal: () => 'tw:z-[9000]!',
14143
14167
  dropdownIndicator: () => dropDownIndicatorStyles,
14144
14168
  option: ({ isSelected, isDisabled }) => {
14145
14169
  let classes = optionStyles;
@@ -14593,7 +14617,7 @@ const Modal = ({ titleIcon, title = 'Modal title example', titleSuffixLabel, sub
14593
14617
  }
14594
14618
  return (jsxs(Fragment, { children: [titleIcon && titleIconPosition === 'left' ? jsx$1("div", { className: "tw:flex tw:mr-2", children: titleIconElement }) : jsx$1(Fragment, {}), jsx$1(DialogTitle, { asChild: true, children: isTitleEditable ? (jsxs("div", { className: "tw:flex tw:w-full tw:items-center", children: [jsx$1(TextField, { extraClassNames: inputExtraClassNames, value: title, type: "text", testId: "modalTitle", onChange: onTitleChanged, placeholder: titlePlaceholder, required: titleRequired, showError: !!titleError }), titleError && jsx$1("p", { className: "tw:text-sq-danger tw:min-w-fit tw:pl-2 tw:mb-0", children: titleError })] })) : (customHeader ?? (jsxs("div", { "data-testid": "modalTitle", className: "modal-title", children: [jsxs("div", { className: "tw:flex tw:items-center", children: [jsx$1("h3", { children: title }), titleSuffixLabel && jsx$1("span", { className: "tw:text-xl tw:pl-0.5", children: titleSuffixLabel })] }), subtitle && (jsx$1("div", { className: "tw:italic tw:text-sm tw:text-left tw:mt-1", "data-testid": "modal-subtitle", children: subtitle }))] }))) }), titleIcon && titleIconPosition === 'right' ? jsx$1("div", { className: "tw:flex tw:ml-4", children: titleIconElement }) : jsx$1(Fragment, {})] }));
14595
14619
  };
14596
- return open ? (jsx$1(Dialog, { open: true, onOpenChange: onClose, modal: keepFocusInsideModal, children: jsxs(DialogContent, { onPointerDownOutside: (e) => (onPointerDownOutside ? onPointerDownOutside(e) : e.preventDefault()), onInteractOutside: (e) => (onInteractOutside ? onInteractOutside(e) : e.preventDefault()), "data-testid": testId, className: classNames(`modalContent tw:w-full tw:border-none tw:shadow-none tw:dark:text-sq-dark-text tw:!gap-0`, {
14620
+ return open ? (jsx$1(Dialog, { open: true, onOpenChange: onClose, modal: keepFocusInsideModal, children: jsxs(DialogContent, { onPointerDownOutside: (e) => (onPointerDownOutside ? onPointerDownOutside(e) : e.preventDefault()), onInteractOutside: (e) => (onInteractOutside ? onInteractOutside(e) : e.preventDefault()), "data-testid": testId, className: classNames(`modalContent tw:w-full tw:border-none tw:shadow-none tw:dark:text-sq-dark-text tw:gap-0!`, {
14597
14621
  'tw:max-w-xs': size === 'xs',
14598
14622
  'tw:max-w-sm': size === 'sm',
14599
14623
  'tw:max-w-md': size === 'md',
@@ -16634,16 +16658,16 @@ const ButtonWithDropdown = ({ dropdownItems, triggerIcon, id, extraClassNames =
16634
16658
  }
16635
16659
  if (Array.isArray(item.subMenuItems) && item.subMenuItems.length > 0) {
16636
16660
  return (jsxs(Sub2, { children: [jsxs(SubTrigger2, { id: id, className: `tw:cursor-pointer tw:flex tw:justify-between tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:leading-none tw:items-center tw:h-sq-27 tw:pl-sq-19 tw:relative tw:select-none tw:outline-none tw:data-disabled:pointer-events-none ${item.itemExtraClassNames || ''}`, "data-testid": item.testId, disabled: item.disabled, ...tooltipData, children: [jsxs("div", { className: "tw:flex", children: [item.icon && (jsx$1(Icon, { icon: item.icon, extraClassNames: `tw:w-4.5 ${item.disabled
16637
- ? 'tw:!text-sq-disabled-gray'
16638
- : 'tw:text-sq-text-color tw:dark:text-sq-white'} ${item.iconExtraClassNames || ''}` })), jsx$1("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw:text-sq-13 tw:ml-1 ${item.disabled && 'tw:!opacity-30'} tw:not-italic tw:font-semibold ${item.labelClasses}`, children: item.label })] }), jsx$1(Icon, { size: "sm", icon: "fc-arrow-dropdown tw:rotate-270", extraClassNames: `${item.disabled ? 'tw:text-sq-disabled-gray' : 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:w-4.5 tw:ml-4 tw:text-2 tw:justify-center tw:flex` })] }), jsx$1(Portal2, { children: jsx$1(SubContent2, { className: "tw:focus-visible:outline-none tw:outline-none", children: jsx$1("div", { "data-testid": containerTestId, className: `${bgStyles$1} tw:relative tw:z-[1000] tw:min-w-6 tw:py-2 tw:focus-visible:outline-none tw:outline-none tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out forceFont tw:data-[side=top]:animate-slideDownAndFade tw:data-[side=right]:animate-slideLeftAndFade tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade ${borderStyles$1}`, children: item.subMenuItems.map((subItem, subIndex) => {
16639
- return (jsxs(Item2, { onSelect: subItem.onClick, "data-qtip-text": subItem.tooltip, className: "tw:cursor-pointer tw:flex tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:leading-none tw:items-center tw:h-sq-27 tw:px-sq-19 tw:relative tw:select-none tw:outline-none tw:data-disabled:pointer-events-none", disabled: subItem.disabled, children: [subItem.iconClass && (jsx$1(Icon, { icon: subItem.iconClass, type: "text", extraClassNames: `tw:w-4.5 ${item.disabled && 'tw:!opacity-30'}` })), jsx$1("div", { className: `tw:text-sq-13 tw:ml-1 ${subItem.disabled
16661
+ ? 'tw:text-sq-disabled-gray!'
16662
+ : 'tw:text-sq-text-color tw:dark:text-sq-white'} ${item.iconExtraClassNames || ''}` })), jsx$1("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw:text-sq-13 tw:ml-1 ${item.disabled && 'tw:opacity-30!'} tw:not-italic tw:font-semibold ${item.labelClasses}`, children: item.label })] }), jsx$1(Icon, { size: "sm", icon: "fc-arrow-dropdown tw:rotate-270", extraClassNames: `${item.disabled ? 'tw:text-sq-disabled-gray' : 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:w-4.5 tw:ml-4 tw:text-2 tw:justify-center tw:flex` })] }), jsx$1(Portal2, { children: jsx$1(SubContent2, { className: "tw:focus-visible:outline-none tw:outline-none", children: jsx$1("div", { "data-testid": containerTestId, className: `${bgStyles$1} tw:relative tw:z-[1000] tw:min-w-6 tw:py-2 tw:focus-visible:outline-none tw:outline-none tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out forceFont tw:data-[side=top]:animate-slideDownAndFade tw:data-[side=right]:animate-slideLeftAndFade tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade ${borderStyles$1}`, children: item.subMenuItems.map((subItem, subIndex) => {
16663
+ return (jsxs(Item2, { onSelect: subItem.onClick, "data-qtip-text": subItem.tooltip, className: "tw:cursor-pointer tw:flex tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:leading-none tw:items-center tw:h-sq-27 tw:px-sq-19 tw:relative tw:select-none tw:outline-none tw:data-disabled:pointer-events-none", disabled: subItem.disabled, children: [subItem.iconClass && (jsx$1(Icon, { icon: subItem.iconClass, type: "text", extraClassNames: `tw:w-4.5 ${item.disabled && 'tw:opacity-30!'}` })), jsx$1("div", { className: `tw:text-sq-13 tw:ml-1 ${subItem.disabled
16640
16664
  ? 'tw:text-sq-disabled-gray'
16641
16665
  : 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:not-italic tw:font-normal ${item.labelClasses}`, children: subItem.label })] }, subItem.label + subIndex));
16642
16666
  }) }) }) })] }, (item.id || item.icon || '') + index));
16643
16667
  }
16644
16668
  return (jsxs("div", { ...tooltipData, children: [jsxs(Item2, { "data-customid": item.itemCustomId, onSelect: (e) => {
16645
16669
  item.onClick(e);
16646
- }, className: `tw:cursor-pointer tw:flex tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:leading-none tw:items-center tw:min-h-sq-27 tw:px-sq-19 tw:relative tw:select-none tw:outline-none tw:data-disabled:pointer-events-none ${item.itemExtraClassNames || ''}`, "data-testid": item.testId, disabled: item.disabled, children: [item.icon && (jsx$1(Icon, { icon: item.icon, testId: item.iconTestId, type: (item.iconType || 'text'), color: item.iconColor, customId: item.iconCustomId, extraClassNames: `tw:w-sq-4.5 ${item.disabled && 'tw:!opacity-30'} ${item.iconExtraClassNames || ''}` })), jsx$1("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw:text-sq-13 tw:ml-1 ${item.disabled ? 'tw:text-sq-disabled-gray' : 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:not-italic tw:font-normal ${item.labelClasses || ''}`, children: item.label })] }, (item.id || item.icon || '') + index), item.hasDivider && (jsx$1(Separator2, { "data-testid": `dropdown-divider-${index}`, className: "tw:h-px tw:bg-sq-disabled-gray tw:dark:bg-gray-500 tw:my-2" }))] }, (item.id || '') + index));
16670
+ }, className: `tw:cursor-pointer tw:flex tw:dark:text-sq-white tw:hover:bg-sq-gray-highlight tw:dark:hover:bg-sq-gray-highlight-dark tw:leading-none tw:items-center tw:min-h-sq-27 tw:px-sq-19 tw:relative tw:select-none tw:outline-none tw:data-disabled:pointer-events-none ${item.itemExtraClassNames || ''}`, "data-testid": item.testId, disabled: item.disabled, children: [item.icon && (jsx$1(Icon, { icon: item.icon, testId: item.iconTestId, type: (item.iconType || 'text'), color: item.iconColor, customId: item.iconCustomId, extraClassNames: `tw:w-sq-4.5 ${item.disabled && 'tw:opacity-30!'} ${item.iconExtraClassNames || ''}` })), jsx$1("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw:text-sq-13 tw:ml-1 ${item.disabled ? 'tw:text-sq-disabled-gray' : 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:not-italic tw:font-normal ${item.labelClasses || ''}`, children: item.label })] }, (item.id || item.icon || '') + index), item.hasDivider && (jsx$1(Separator2, { "data-testid": `dropdown-divider-${index}`, className: "tw:h-px tw:bg-sq-disabled-gray tw:dark:bg-gray-500 tw:my-2" }))] }, (item.id || '') + index));
16647
16671
  })] }) }) })] }));
16648
16672
  };
16649
16673
 
@@ -16659,7 +16683,7 @@ const borderColorClasses$1 = 'tw:border-sq-theme-dark';
16659
16683
  const Alert = ({ children, dismissible = true, onClose, show = true, variant, testId = 'alert-id', id, extraClassNames, ...tooltipProps }) => {
16660
16684
  const appliedTheme = {
16661
16685
  theme: `${lightTheme$1} ${darkTheme$1}`,
16662
- formulaError: 'tw:text-red-800 tw:bg-red-200 tw:!rounded-[0.25rem]',
16686
+ formulaError: 'tw:text-red-800 tw:bg-red-200 tw:rounded-[0.25rem]!',
16663
16687
  danger: 'tw:text-sq-text-color tw:bg-sq-danger',
16664
16688
  warning: 'tw:bg-sq-bg-warning tw:text-sq-text-color',
16665
16689
  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',
@@ -16704,7 +16728,7 @@ const SvgIcon = ({ onClick, icon, color, type = 'default', extraClassNames, view
16704
16728
  const SeeqActionDropdownItem = (item) => {
16705
16729
  let renderIcon = jsx$1(Fragment, {});
16706
16730
  if (item.icon) {
16707
- renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: item.iconExtraClassNames + 'tw:p-1 tw:h-8 tw:w-8 tw:dark:text-sq-white tw:!text-5.5 tw:text-sq-white', ...item })) : (jsx$1(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw:dark:text-sq-white tw:!text-5.5 tw:text-sq-white ' + item.iconExtraClassNames }));
16731
+ renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: item.iconExtraClassNames + 'tw:p-1 tw:h-8 tw:w-8 tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white', ...item })) : (jsx$1(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white ' + item.iconExtraClassNames }));
16708
16732
  }
16709
16733
  return (jsxs("div", { className: "tw:flex-col tw:flex tw:p-2.5 tw:pl-5 tw:w-150", children: [jsxs("div", { className: "tw:flex tw:flex-row tw:gap-2 tw:items-end", children: [jsx$1("div", { className: classNames('tw:rounded-[0.1875rem] tw:h-8 tw:w-8 tw:bg-sq-theme-dark tw:flex tw:justify-center tw:items-center ', item.iconContainerExtraClassNames), children: renderIcon }), jsx$1("h4", { className: "tw:text-base tw:font-[600] tw:leading-5 mb-0", children: item.display })] }), jsx$1("div", { className: "tw:text-sq-13 tw:font-normal", children: item.text })] }));
16710
16734
  };
@@ -16716,7 +16740,7 @@ const ViewWorkbench = (item) => {
16716
16740
  return (jsx$1("div", { className: "tw:flex-col tw:flex tw:p-2.5", children: jsxs("div", { className: "tw:flex tw:flex-row tw:gap-2 tw:items-end", children: [jsx$1("div", { className: "tw:rounded-[0.1875rem] tw:h-5 tw:w-5 tw:flex tw:justify-center tw:items-center ", children: renderIcon }), jsx$1("div", { className: "tw:text-sq-13", children: item.display })] }) }));
16717
16741
  };
16718
16742
  const InsertSeeqContent = (item) => {
16719
- return (jsxs("div", { className: "tw:flex-col tw:flex tw:justify-start tw:p-2.5 tw:font-normal tw:text-left tw:text-sq-text-color tw:dark:text-sq-dark-text", children: [jsx$1("h5", { className: "tw:text-4 tw:font-medium tw:text-sq-theme-dark tw:leading-4.5", children: item.display }), jsx$1("div", { className: "tw:text-sq-13 tw:text-sq-text-color tw:dark:text-sq-dark-text tw:!mt-1", children: item.text })] }));
16743
+ return (jsxs("div", { className: "tw:flex-col tw:flex tw:justify-start tw:p-2.5 tw:font-normal tw:text-left tw:text-sq-text-color tw:dark:text-sq-dark-text", children: [jsx$1("h5", { className: "tw:text-4 tw:font-medium tw:text-sq-theme-dark tw:leading-4.5", children: item.display }), jsx$1("div", { className: "tw:text-sq-13 tw:text-sq-text-color tw:dark:text-sq-dark-text tw:mt-1!", children: item.text })] }));
16720
16744
  };
16721
16745
 
16722
16746
  const borderStyles = [
@@ -29277,19 +29301,19 @@ const ProgressBar = ({ values = [], max = 100, containerExtraClasses = '', zeroV
29277
29301
 
29278
29302
  const baseClasses = 'tw:flex tw:outline-none tw:w-full tw:relative tw:flex-wrap';
29279
29303
  const activeClassesByVariantLightTheme = {
29280
- 'outline': 'tw:!bg-sq-disabled-gray tw:border-sq-theme-dark',
29304
+ 'outline': 'tw:bg-sq-disabled-gray tw:border-sq-theme-dark',
29281
29305
  'theme': 'tw:bg-sq-theme-highlight',
29282
29306
  'danger': '',
29283
29307
  'theme-light': '',
29284
- 'no-border': 'tw:!bg-sq-disabled-gray',
29308
+ 'no-border': 'tw:bg-sq-disabled-gray!',
29285
29309
  'warning': '',
29286
29310
  };
29287
29311
  const activeClassesByVariantDarkTheme = {
29288
- 'outline': 'tw:!dark:bg-sq-multi-gray-dark tw:dark:border-sq-theme-dark',
29312
+ 'outline': 'tw:dark:bg-sq-multi-gray-dark tw:dark:border-sq-theme-dark',
29289
29313
  'theme': 'tw:dark:bg-sq-theme-highlight',
29290
29314
  'danger': '',
29291
29315
  'theme-light': '',
29292
- 'no-border': 'tw:!dark:bg-sq-multi-gray-dark',
29316
+ 'no-border': 'tw:dark:bg-sq-multi-gray-dark!',
29293
29317
  'warning': '',
29294
29318
  };
29295
29319
  /**
@@ -29406,5 +29430,5 @@ const svgIconTypes = [...iconTypes, 'default'];
29406
29430
 
29407
29431
  const toolbarButtonVariants = ['outline', 'theme', 'theme-light', 'warning', 'danger', 'no-border'];
29408
29432
 
29409
- 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 };
29433
+ export { Accordion, Alert, Button, ButtonGroup, ButtonWithDropdown, ButtonWithPopover, Carousel, Checkbox, Collapse, DEFAULT_TOOL_TIP_DELAY, Icon, InputGroup, Modal, ProgressBar, QTip, SeeqActionDropdown, Select, components as SelectComponents, Slider, Tabs, TextArea, TextField, ToolbarButton, Tooltip, buttonSizes, buttonTypes, buttonVariants, iconPositions, iconTypes, svgIconTypes, toolbarButtonVariants, tooltipPositions };
29410
29434
  //# sourceMappingURL=index.esm.js.map