@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/dist/index.js CHANGED
@@ -3863,7 +3863,7 @@ var removedBarSizeVariable = '--removed-body-scroll-bar-size';
3863
3863
  * assignRef(refObject, "refValue");
3864
3864
  * assignRef(refFn, "refValue");
3865
3865
  */
3866
- function assignRef(ref, value) {
3866
+ function assignRef$1(ref, value) {
3867
3867
  if (typeof ref === 'function') {
3868
3868
  ref(value);
3869
3869
  }
@@ -3930,7 +3930,7 @@ var currentValues = new WeakMap();
3930
3930
  */
3931
3931
  function useMergeRefs(refs, defaultValue) {
3932
3932
  var callbackRef = useCallbackRef(null, function (newValue) {
3933
- return refs.forEach(function (ref) { return assignRef(ref, newValue); });
3933
+ return refs.forEach(function (ref) { return assignRef$1(ref, newValue); });
3934
3934
  });
3935
3935
  // handle refs changes - added or removed
3936
3936
  useIsomorphicLayoutEffect$1(function () {
@@ -3941,12 +3941,12 @@ function useMergeRefs(refs, defaultValue) {
3941
3941
  var current_1 = callbackRef.current;
3942
3942
  prevRefs_1.forEach(function (ref) {
3943
3943
  if (!nextRefs_1.has(ref)) {
3944
- assignRef(ref, null);
3944
+ assignRef$1(ref, null);
3945
3945
  }
3946
3946
  });
3947
3947
  nextRefs_1.forEach(function (ref) {
3948
3948
  if (!prevRefs_1.has(ref)) {
3949
- assignRef(ref, current_1);
3949
+ assignRef$1(ref, current_1);
3950
3950
  }
3951
3951
  });
3952
3952
  }
@@ -4908,6 +4908,41 @@ const setValidInputDimension = (width, height) => {
4908
4908
  return inputStyle;
4909
4909
  };
4910
4910
 
4911
+ function assignRef(ref, value) {
4912
+ if (typeof ref === "function") {
4913
+ return ref(value);
4914
+ } else if (typeof ref === "object" && ref !== null && "current" in ref) {
4915
+ ref.current = value;
4916
+ }
4917
+ }
4918
+ function mergeRefs(...refs) {
4919
+ const cleanupMap = /* @__PURE__ */ new Map();
4920
+ return (node) => {
4921
+ refs.forEach((ref) => {
4922
+ const cleanup = assignRef(ref, node);
4923
+ if (cleanup) {
4924
+ cleanupMap.set(ref, cleanup);
4925
+ }
4926
+ });
4927
+ if (cleanupMap.size > 0) {
4928
+ return () => {
4929
+ refs.forEach((ref) => {
4930
+ const cleanup = cleanupMap.get(ref);
4931
+ if (cleanup && typeof cleanup === "function") {
4932
+ cleanup();
4933
+ } else {
4934
+ assignRef(ref, null);
4935
+ }
4936
+ });
4937
+ cleanupMap.clear();
4938
+ };
4939
+ }
4940
+ };
4941
+ }
4942
+ function useMergedRef(...refs) {
4943
+ return React.useCallback(mergeRefs(...refs), refs);
4944
+ }
4945
+
4911
4946
  const errorClasses$4 = 'tw:border-sq-danger';
4912
4947
  const borderColorClasses$4 = [
4913
4948
  'tw:border-sq-disabled-gray',
@@ -4933,13 +4968,9 @@ const sizeClasses = {
4933
4968
  const TextField = React.forwardRef((props, ref) => {
4934
4969
  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;
4935
4970
  const internalRef = React.useRef(null);
4971
+ const mergedRef = useMergedRef(ref, internalRef);
4936
4972
  const [cursor, setCursor] = React.useState(null);
4937
4973
  const tooltipData = getQTipData(tooltipProps);
4938
- const setAllRefs = (receivedRef) => {
4939
- if (ref)
4940
- ref.current = receivedRef;
4941
- internalRef.current = receivedRef;
4942
- };
4943
4974
  React.useEffect(() => {
4944
4975
  if (autoFocus) {
4945
4976
  setTimeout(() => {
@@ -4985,7 +5016,7 @@ const TextField = React.forwardRef((props, ref) => {
4985
5016
  inputLenghtProp.maxLength = maxLength;
4986
5017
  if (minLength)
4987
5018
  inputLenghtProp.minLength = minLength;
4988
- 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 })] }));
5019
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("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 && jsxRuntime.jsx("div", { className: "tw:text-sq-danger tw:text-xs tw:mt-1", children: errorText })] }));
4989
5020
  });
4990
5021
 
4991
5022
  const alignment = 'tw:flex';
@@ -5030,6 +5061,7 @@ const borderColorClasses$3 = [
5030
5061
  const TextArea = React.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) => {
5031
5062
  const appliedClasses = `${baseClasses$4} ${extraClassNames} ${lightTheme$2} ${darkTheme$2} ${showError ? errorClasses$3 : borderColorClasses$3}`;
5032
5063
  const textareaRef = React.useRef(null);
5064
+ const mergedRef = useMergedRef(ref, textareaRef);
5033
5065
  // Handle selection change events
5034
5066
  React.useEffect(() => {
5035
5067
  if (!onSelectionChange || !textareaRef.current) {
@@ -5050,15 +5082,7 @@ const TextArea = React.forwardRef(({ readonly = false, disabled = false, onChang
5050
5082
  textarea.removeEventListener('keyup', handleSelectionChange);
5051
5083
  };
5052
5084
  }, [onSelectionChange]);
5053
- return (jsxRuntime.jsx("textarea", { ref: (element) => {
5054
- textareaRef.current = element;
5055
- if (typeof ref === 'function') {
5056
- ref(element);
5057
- }
5058
- else if (ref) {
5059
- ref.current = element;
5060
- }
5061
- }, "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 }));
5085
+ return (jsxRuntime.jsx("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 }));
5062
5086
  });
5063
5087
 
5064
5088
  /**
@@ -7590,7 +7614,7 @@ const QTip = () => {
7590
7614
  }
7591
7615
  };
7592
7616
  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 ' +
7593
- (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 tw:dark:bg-sq-black", ref: tooltipArrowRef })] }) }));
7617
+ (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-black", ref: tooltipArrowRef })] }) }));
7594
7618
  };
7595
7619
 
7596
7620
  function _typeof(o) {
@@ -14039,14 +14063,14 @@ const menuStyles = [
14039
14063
  'tw:dark:border-sq-dark-disabled-gray',
14040
14064
  'tw:whitespace-nowrap',
14041
14065
  'tw:min-w-fit',
14042
- 'tw:!z-[9999]',
14066
+ 'tw:z-[9999]!',
14043
14067
  ].join(' ');
14044
14068
  const menuListStyles = [
14045
14069
  'tw:rounded-b',
14046
14070
  'tw:bg-sq-white',
14047
14071
  'tw:dark:bg-sq-dark-background',
14048
14072
  'tw:min-w-fit',
14049
- 'tw:!z-[9999]',
14073
+ 'tw:z-[9999]!',
14050
14074
  'specSelectMenu',
14051
14075
  ].join(' ');
14052
14076
  const groupHeadingStyles = [
@@ -14065,7 +14089,7 @@ const optionStyles = [
14065
14089
  'tw:px-2.5',
14066
14090
  'specSelectOption',
14067
14091
  ].join(' ');
14068
- const disabledClasses$3 = ['tw:bg-sq-field-disabled-gray', 'tw:!cursor-not-allowed', 'tw:opacity-50'].join(' ');
14092
+ const disabledClasses$3 = ['tw:bg-sq-field-disabled-gray', 'tw:cursor-not-allowed!', 'tw:opacity-50'].join(' ');
14069
14093
  const dropDownIndicatorStyles = `tw:text-sq-disabled-gray ${textActiveStyles} specOpenIt`;
14070
14094
  const placeholderStyles = ['tw:text-gray-400', 'tw:dark:text-sq-dark-text-lighter', 'specOpenSelect'].join(' ');
14071
14095
  const multiValueStyles = [
@@ -14154,12 +14178,12 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
14154
14178
  placeholder: () => placeholderStyles,
14155
14179
  container: ({ selectProps }) => {
14156
14180
  const containerBorderStyles = selectProps?.menuIsOpen ? 'tw:rounded-t-md' : 'tw:rounded-md';
14157
- return `${textStyles} ${extraClassNames} ${containerBorderStyles} tw:!pointer-events-auto`;
14181
+ return `${textStyles} ${extraClassNames} ${containerBorderStyles} tw:pointer-events-auto!`;
14158
14182
  },
14159
14183
  input: () => textStyles + ' specSelectInput',
14160
14184
  menuList: () => menuListStyles,
14161
14185
  menu: () => menuStyles,
14162
- menuPortal: () => 'tw:!z-[9000]',
14186
+ menuPortal: () => 'tw:z-[9000]!',
14163
14187
  dropdownIndicator: () => dropDownIndicatorStyles,
14164
14188
  option: ({ isSelected, isDisabled }) => {
14165
14189
  let classes = optionStyles;
@@ -14613,7 +14637,7 @@ const Modal = ({ titleIcon, title = 'Modal title example', titleSuffixLabel, sub
14613
14637
  }
14614
14638
  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, {})] }));
14615
14639
  };
14616
- 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:border-none tw:shadow-none tw:dark:text-sq-dark-text tw:!gap-0`, {
14640
+ 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:border-none tw:shadow-none tw:dark:text-sq-dark-text tw:gap-0!`, {
14617
14641
  'tw:max-w-xs': size === 'xs',
14618
14642
  'tw:max-w-sm': size === 'sm',
14619
14643
  'tw:max-w-md': size === 'md',
@@ -16654,16 +16678,16 @@ const ButtonWithDropdown = ({ dropdownItems, triggerIcon, id, extraClassNames =
16654
16678
  }
16655
16679
  if (Array.isArray(item.subMenuItems) && item.subMenuItems.length > 0) {
16656
16680
  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
16657
- ? 'tw:!text-sq-disabled-gray'
16658
- : '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) => {
16659
- 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
16681
+ ? 'tw:text-sq-disabled-gray!'
16682
+ : '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) => {
16683
+ 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
16660
16684
  ? 'tw:text-sq-disabled-gray'
16661
16685
  : 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:not-italic tw:font-normal ${item.labelClasses}`, children: subItem.label })] }, subItem.label + subIndex));
16662
16686
  }) }) }) })] }, (item.id || item.icon || '') + index));
16663
16687
  }
16664
16688
  return (jsxRuntime.jsxs("div", { ...tooltipData, children: [jsxRuntime.jsxs(Item2, { "data-customid": item.itemCustomId, onSelect: (e) => {
16665
16689
  item.onClick(e);
16666
- }, 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));
16690
+ }, 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));
16667
16691
  })] }) }) })] }));
16668
16692
  };
16669
16693
 
@@ -16679,7 +16703,7 @@ const borderColorClasses$1 = 'tw:border-sq-theme-dark';
16679
16703
  const Alert = ({ children, dismissible = true, onClose, show = true, variant, testId = 'alert-id', id, extraClassNames, ...tooltipProps }) => {
16680
16704
  const appliedTheme = {
16681
16705
  theme: `${lightTheme$1} ${darkTheme$1}`,
16682
- formulaError: 'tw:text-red-800 tw:bg-red-200 tw:!rounded-[0.25rem]',
16706
+ formulaError: 'tw:text-red-800 tw:bg-red-200 tw:rounded-[0.25rem]!',
16683
16707
  danger: 'tw:text-sq-text-color tw:bg-sq-danger',
16684
16708
  warning: 'tw:bg-sq-bg-warning tw:text-sq-text-color',
16685
16709
  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',
@@ -16724,7 +16748,7 @@ const SvgIcon = ({ onClick, icon, color, type = 'default', extraClassNames, view
16724
16748
  const SeeqActionDropdownItem = (item) => {
16725
16749
  let renderIcon = jsxRuntime.jsx(jsxRuntime.Fragment, {});
16726
16750
  if (item.icon) {
16727
- renderIcon = isSvgIcon(item.icon) ? (jsxRuntime.jsx(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 })) : (jsxRuntime.jsx(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw:dark:text-sq-white tw:!text-5.5 tw:text-sq-white ' + item.iconExtraClassNames }));
16751
+ renderIcon = isSvgIcon(item.icon) ? (jsxRuntime.jsx(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 })) : (jsxRuntime.jsx(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw:dark:text-sq-white tw:text-5.5! tw:text-sq-white ' + item.iconExtraClassNames }));
16728
16752
  }
16729
16753
  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: 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 }), 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 })] }));
16730
16754
  };
@@ -16736,7 +16760,7 @@ const ViewWorkbench = (item) => {
16736
16760
  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 })] }) }));
16737
16761
  };
16738
16762
  const InsertSeeqContent = (item) => {
16739
- 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 })] }));
16763
+ 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 })] }));
16740
16764
  };
16741
16765
 
16742
16766
  const borderStyles = [
@@ -29297,19 +29321,19 @@ const ProgressBar = ({ values = [], max = 100, containerExtraClasses = '', zeroV
29297
29321
 
29298
29322
  const baseClasses = 'tw:flex tw:outline-none tw:w-full tw:relative tw:flex-wrap';
29299
29323
  const activeClassesByVariantLightTheme = {
29300
- 'outline': 'tw:!bg-sq-disabled-gray tw:border-sq-theme-dark',
29324
+ 'outline': 'tw:bg-sq-disabled-gray tw:border-sq-theme-dark',
29301
29325
  'theme': 'tw:bg-sq-theme-highlight',
29302
29326
  'danger': '',
29303
29327
  'theme-light': '',
29304
- 'no-border': 'tw:!bg-sq-disabled-gray',
29328
+ 'no-border': 'tw:bg-sq-disabled-gray!',
29305
29329
  'warning': '',
29306
29330
  };
29307
29331
  const activeClassesByVariantDarkTheme = {
29308
- 'outline': 'tw:!dark:bg-sq-multi-gray-dark tw:dark:border-sq-theme-dark',
29332
+ 'outline': 'tw:dark:bg-sq-multi-gray-dark tw:dark:border-sq-theme-dark',
29309
29333
  'theme': 'tw:dark:bg-sq-theme-highlight',
29310
29334
  'danger': '',
29311
29335
  'theme-light': '',
29312
- 'no-border': 'tw:!dark:bg-sq-multi-gray-dark',
29336
+ 'no-border': 'tw:dark:bg-sq-multi-gray-dark!',
29313
29337
  'warning': '',
29314
29338
  };
29315
29339
  /**
@@ -29443,7 +29467,7 @@ exports.ProgressBar = ProgressBar;
29443
29467
  exports.QTip = QTip;
29444
29468
  exports.SeeqActionDropdown = SeeqActionDropdown;
29445
29469
  exports.Select = Select;
29446
- exports.SelectCompoents = components;
29470
+ exports.SelectComponents = components;
29447
29471
  exports.Slider = Slider;
29448
29472
  exports.Tabs = Tabs;
29449
29473
  exports.TextArea = TextArea;