@seeqdev/qomponents 0.0.138 → 0.0.140

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
@@ -101,7 +101,7 @@ const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClas
101
101
  * - include tooltips and/or icons
102
102
  */
103
103
  const Button = ({ onClick, label, variant = 'outline', type = 'button', size = 'sm', disabled, extraClassNames, id, testId, stopPropagation = true, tooltip, tooltipOptions, iconStyle = 'text', icon, iconColor, iconPosition = 'left', iconPrefix = undefined, preventBlur = false, isHtmlTooltip = false, tooltipTestId, }) => {
104
- const baseClasses = 'tw-py-1 tw-px-2.5 tw-rounded-sm focus:tw-ring-0 focus-visible:tw-outline-none disabled:tw-pointer-events-none';
104
+ const baseClasses = 'tw-py-1 tw-px-2.5 tw-rounded-md focus:tw-ring-0 focus-visible:tw-outline-none disabled:tw-pointer-events-none';
105
105
  const baseClassesByVariant = {
106
106
  'outline': 'disabled:tw-opacity-50 tw-border-solid tw-border',
107
107
  'theme': 'disabled:tw-opacity-50 tw-border-solid tw-border',
@@ -4542,18 +4542,18 @@ function getSvgIconPath(icon) {
4542
4542
  const borderStyles$4 = [
4543
4543
  'tw-border-solid',
4544
4544
  'tw-border',
4545
- 'tw-rounded-sm',
4545
+ 'tw-rounded-[10px]',
4546
4546
  'tw-border-sq-disabled-gray',
4547
4547
  'dark:tw-border-gray-500',
4548
4548
  ].join(' ');
4549
4549
  const triggerBorderStyles = [
4550
4550
  'tw-border-solid',
4551
4551
  'tw-border',
4552
- 'tw-rounded-sm',
4552
+ 'tw-rounded-[10px]',
4553
4553
  'tw-border-transparent',
4554
4554
  'hover:tw-border-solid',
4555
4555
  'hover:tw-border',
4556
- 'hover:tw-rounded-sm',
4556
+ 'hover:tw-rounded-[10px]',
4557
4557
  'hover:tw-border-sq-darkish-gray',
4558
4558
  'active:tw-border-sq-color-dark',
4559
4559
  'dark:hover:tw-border-sq-color-dark-dark',
@@ -4564,7 +4564,7 @@ const activeBorderStyles = [
4564
4564
  'active',
4565
4565
  'tw-border-solid',
4566
4566
  'tw-border',
4567
- 'tw-rounded-sm',
4567
+ 'tw-rounded-[10px]',
4568
4568
  'tw-border-sq-color-dark',
4569
4569
  'active:tw-border-sq-color-dark',
4570
4570
  'dark:hover:tw-border-sq-color-dark-dark',
@@ -4675,12 +4675,12 @@ const TextField = React__default.forwardRef((props, ref) => {
4675
4675
  internalRef.current.value = `${value}`;
4676
4676
  }
4677
4677
  }, [value]);
4678
- let borderRadius = 'tw-rounded-sm';
4678
+ let borderRadius = 'tw-rounded-md';
4679
4679
  if (inputGroup === 'left') {
4680
- borderRadius = 'tw-rounded-l-sm tw-border-r-0 focus:tw-border-r' + ' active:tw-border-r';
4680
+ borderRadius = 'tw-rounded-l-md tw-border-r-0 focus:tw-border-r' + ' active:tw-border-r';
4681
4681
  }
4682
4682
  else if (inputGroup === 'right') {
4683
- borderRadius = 'tw-rounded-r-sm tw-border-l-0 focus:tw-border-l active:tw-border-l';
4683
+ borderRadius = 'tw-rounded-r-md tw-border-l-0 focus:tw-border-l active:tw-border-l';
4684
4684
  }
4685
4685
  const appliedClasses = `${baseClasses$6} ${sizeClasses[size]} ${extraClassNames} ${lightTheme$3} ${darkTheme$3} ${borderRadius} ${showError ? errorClasses$4 : borderColorClasses$4} `;
4686
4686
  const inputProp = setValidInputDimension(inputWidth, inputHeight)
@@ -4721,7 +4721,7 @@ const Checkbox = (props) => {
4721
4721
  : 'tw-cursor-pointer tw-text-sq-text-color dark:tw-text-sq-dark-text'}` }, label)));
4722
4722
  };
4723
4723
 
4724
- const baseClasses$4 = 'tw-leading-normal tw-outline-none tw-py-1 tw-px-3 tw-rounded-sm tw-w-full' +
4724
+ const baseClasses$4 = 'tw-leading-normal tw-outline-none tw-py-1 tw-px-3 tw-rounded-md tw-w-full' +
4725
4725
  ' disabled:tw-pointer-events-none disabled:tw-bg-sq-light-gray disabled:dark:tw-bg-sq-dark-disabled-gray' +
4726
4726
  ' disabled:tw-cursor-not-allowed tw-p-1 tw-border-solid tw-border tw-text-sm';
4727
4727
  const darkTheme$2 = 'dark:tw-bg-sq-dark-background dark:tw-text-sq-dark-text ' +
@@ -11573,7 +11573,7 @@ var colors$1 = {
11573
11573
  neutral80: 'hsl(0, 0%, 20%)',
11574
11574
  neutral90: 'hsl(0, 0%, 10%)'
11575
11575
  };
11576
- var borderRadius$1 = 4;
11576
+ var borderRadius = 4;
11577
11577
  // Used to calculate consistent margin/padding on elements
11578
11578
  var baseUnit = 4;
11579
11579
  // The minimum height of the control
@@ -11586,7 +11586,7 @@ var spacing = {
11586
11586
  menuGutter: menuGutter
11587
11587
  };
11588
11588
  var defaultTheme = {
11589
- borderRadius: borderRadius$1,
11589
+ borderRadius: borderRadius,
11590
11590
  colors: colors$1,
11591
11591
  spacing: spacing
11592
11592
  };
@@ -13450,13 +13450,13 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
13450
13450
  filterOption: filterOption ? filterOption : filterConfig ? createFilter(filterConfig) : undefined,
13451
13451
  classNames: {
13452
13452
  control: ({ menuIsOpen }) => {
13453
- let border = menuIsOpen ? 'tw-rounded-t-sm' : 'tw-rounded-sm';
13453
+ let border = menuIsOpen ? 'tw-rounded-t-md' : 'tw-rounded-md';
13454
13454
  // if it's on the left side of the input group make sure the right side is straight and not curved
13455
13455
  if (inputGroup === 'left') {
13456
- border = menuIsOpen ? 'tw-rounded-tl-sm' : 'tw-rounded-l-sm';
13456
+ border = menuIsOpen ? 'tw-rounded-tl-md' : 'tw-rounded-l-md';
13457
13457
  }
13458
13458
  else if (inputGroup === 'right') {
13459
- border = menuIsOpen ? 'tw-rounded-tr-sm' : 'tw-rounded-r-sm';
13459
+ border = menuIsOpen ? 'tw-rounded-tr-md' : 'tw-rounded-r-md';
13460
13460
  }
13461
13461
  const appliedClasses = `${borderStyles$3} ${border} ${showError ? errorClasses$2 : borderColorClasses$2} ${small ? 'reactSelectMinHeightSmall' : 'reactSelectMinHeight'} `;
13462
13462
  return `${appliedClasses} ${baseClasses$3} specSelectControl ${isDisabled ? disabledClasses$3 : ''} ${small ? 'tw-pl-2 tw-pr-1' : 'tw-pl-2.5 tw-pr-1.5'}`;
@@ -14316,12 +14316,12 @@ const Tabs = ({ tabs, defaultActiveTab, activeTab, onTabSelect, extraClassNames,
14316
14316
  onTabSelect && onTabSelect(tabId);
14317
14317
  };
14318
14318
  return (React__default.createElement($69cb30bb0017df05$export$be92b6f5f03c0fe9, { className: `tw-flex tw-flex-col tw-min-w-[300px] tw-max-w-full tw-flex-grow focus-visible:tw-outline-none ${extraClassNames || ''}`, defaultValue: defaultActiveTab, "data-testid": testId, id: id, value: activeTab, onValueChange: handleTabSelect },
14319
- React__default.createElement($69cb30bb0017df05$export$54c2e3dc7acea9f5, { className: `tw-flex tw-flex-row tw-flex-wrap tw-z-[1001]` }, tabs.map(({ id, icon, label, tabExtraClassNames, testId: tabsTestId, disabled }, index) => (React__default.createElement($69cb30bb0017df05$export$41fb9f06171c75f4, { className: `tw-bg-sq-white dark:tw-bg-sq-dark-background tw-h-[45px] focus-visible:tw-outline-none tw-min-w-[100px] tw-px-4 tw-border-solid dark:tw-border-gray-700 tw-flex tw-flex-1 tw-justify-center tw-items-center tw-border-r-[2px] last:tw-border-r-0 ${stretchTabs ? '' : 'tw-max-w-max tw-min-w-fit'} ${tabExtraClassNames || ''} ${activeTab === id
14319
+ React__default.createElement($69cb30bb0017df05$export$54c2e3dc7acea9f5, { className: `tw-flex tw-flex-row tw-flex-wrap tw-z-[1001]` }, tabs.map(({ id, icon, label, tabExtraClassNames, testId: tabsTestId, disabled }, index) => (React__default.createElement($69cb30bb0017df05$export$41fb9f06171c75f4, { className: `tw-bg-sq-white dark:tw-bg-sq-dark-background tw-h-[25px] focus-visible:tw-outline-none tw-min-w-[100px] tw-px-4 tw-border-solid dark:tw-border-gray-700 tw-flex tw-flex-1 tw-justify-center tw-items-center tw-border-r-[2px] last:tw-border-r-0 ${stretchTabs ? '' : 'tw-max-w-max tw-min-w-fit'} ${tabExtraClassNames || ''} ${activeTab === id
14320
14320
  ? 'tw-border-b-sq-color-dark dark:tw-border-b-sq-color-dark tw-border-b-[3px]'
14321
14321
  : 'hover:tw-bg-sq-light-gray tw-border-b-[1px] hover:dark:tw-bg-gray-700'}`, "data-testid": tabsTestId, disabled: disabled, key: `${label}-${id}-${index}`, value: id },
14322
- React__default.createElement("span", null,
14323
- icon && React__default.createElement(Icon, { icon: icon, testId: `${id}_tab-icon`, extraClassNames: "tw-text-[15px] tw-mr-[7px]" }),
14324
- React__default.createElement("span", { className: `tw-text-[14px] tw-font-medium ${activeTab === id
14322
+ React__default.createElement("span", { className: "tw-flex tw-items-center tw-overflow-hidden tw-pb-[3px]" },
14323
+ icon && React__default.createElement(Icon, { icon: icon, testId: `${id}_tab-icon`, extraClassNames: "tw-text-[15px] tw-mr-[7px] tw-flex-shrink-0" }),
14324
+ React__default.createElement("span", { className: `tw-text-[14px] tw-font-medium tw-whitespace-nowrap tw-overflow-hidden tw-text-ellipsis ${activeTab === id
14325
14325
  ? 'dark:tw-text-sq-dark-text tw-text-gray-500'
14326
14326
  : 'dark:tw-text-sq-color-dark-dark tw-text-sq-color-dark'}` }, label)))))),
14327
14327
  tabs.map((tab, index) => (React__default.createElement($69cb30bb0017df05$export$7c6e2c02157bb7d2, { className: `tw-bg-sq-white dark:tw-bg-sq-dark-background tw-overflow-y-auto -tw-mt-[1px] tw-border-t-[1px] dark:tw-border-gray-700 tw-z-[500] tw-flex tw-flex-col tw-flex-grow focus-visible:tw-outline-none ${tab.tabContentExtraClassNames || ''}`, key: `${tab.label}_${index}_content`, value: tab.id }, tab.content)))));
@@ -15830,7 +15830,7 @@ const ButtonWithDropdown = ({ dropdownItems, triggerIcon, id, extraClassNames =
15830
15830
  }))))));
15831
15831
  };
15832
15832
 
15833
- const baseClasses$2 = 'tw-mx-auto tw-p-4 tw-leading-normal tw-outline-none tw-py-2 tw-px-3 tw-rounded-sm tw-w-full tw-relative' +
15833
+ const baseClasses$2 = 'tw-mx-auto tw-p-4 tw-leading-normal tw-outline-none tw-py-2 tw-px-3 tw-rounded-[15px] tw-w-full tw-relative' +
15834
15834
  ' tw-border-solid tw-border tw-text-sm tw-flex tw-flex-col tw-justify-center tw-items-center';
15835
15835
  const darkTheme$1 = 'dark:tw-bg-sq-colored-hover-dark dark:tw-text-sq-dark-text';
15836
15836
  const lightTheme$1 = 'tw-text-sq-text-color tw-bg-sq-colored-hover';
@@ -15923,7 +15923,7 @@ const InsertSeeqContent = (item) => {
15923
15923
  const borderStyles = [
15924
15924
  'tw-border-solid',
15925
15925
  'tw-border',
15926
- 'tw-rounded-sm',
15926
+ 'tw-rounded-md',
15927
15927
  'tw-border-sq-disabled-gray',
15928
15928
  'dark:tw-border-gray-500',
15929
15929
  ].join(' ');
@@ -15963,7 +15963,7 @@ const SeeqActionDropdown = ({ seeqActionDropdownItems, trigger, id, extraClassNa
15963
15963
  })))));
15964
15964
  };
15965
15965
 
15966
- const baseClasses$1 = 'tw-flex tw-outline-none tw-rounded-sm tw-w-full tw-relative tw-flex-wrap';
15966
+ const baseClasses$1 = 'tw-flex tw-outline-none tw-rounded-md tw-w-full tw-relative tw-flex-wrap';
15967
15967
  const errorClasses = 'tw-border-sq-danger-color';
15968
15968
  const borderColorClasses = [
15969
15969
  'tw-border-sq-disabled-gray',
@@ -15973,7 +15973,7 @@ const borderColorClasses = [
15973
15973
  'focus:tw-border-sq-color-dark',
15974
15974
  'active:tw-border-sq-color-dark',
15975
15975
  ].join(' ');
15976
- const borderRadius = 'tw-rounded-sm tw-rounded-r-none';
15976
+ const fieldBorderRadius = 'tw-rounded-l-md tw-rounded-r-none';
15977
15977
  const fieldClasses = 'tw-leading-normal tw-outline-none tw-py-1 tw-px-3' + 'tw-p-1 tw-border-solid tw-border';
15978
15978
  const darkTheme = 'dark:tw-bg-sq-dark-background dark:tw-text-sq-dark-text disabled:dark:tw-text-sq-dark-text-lighter';
15979
15979
  const lightTheme = 'tw-text-sq-text-color disabled:tw-text-sq-darkish-gray';
@@ -15984,10 +15984,13 @@ const InputGroup = React__default.forwardRef((props, ref) => {
15984
15984
  const { readonly = false, onChange, onKeyUp, onFocus, onBlur, onKeyDown, name, value, placeholder, append = [], extraClassNames = '', id, testId, showError, required, autoComplete, autoFocus, disabled, type, step, min, max, field, maxLength, minLength, ...tooltipProps } = props;
15985
15985
  const tooltipData = getQTipData(tooltipProps);
15986
15986
  const appliedClasses = `${baseClasses$1} ${extraClassNames}`;
15987
- const fieldAppliedClasses = `${fieldClasses} ${extraClassNames} ${lightTheme} ${darkTheme} ${borderRadius} ${showError ? errorClasses : borderColorClasses} `;
15987
+ const fieldAppliedClasses = `${fieldClasses} ${extraClassNames} ${lightTheme} ${darkTheme} ${fieldBorderRadius} ${showError ? errorClasses : borderColorClasses} `;
15988
15988
  return (React__default.createElement("div", { id: `input-group-${id}`, className: appliedClasses },
15989
15989
  field ? (React__default.createElement("div", { "data-testid": testId, className: `tw-flex tw-flex-1 tw-cursor-pointer active:tw-z-50 ${fieldAppliedClasses}` }, field)) : (React__default.createElement(TextField, { testId: testId, readonly: readonly, onChange: onChange, onKeyUp: onKeyUp, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, name: name, ref: ref, showError: showError, value: value, required: required, placeholder: placeholder, autoComplete: autoComplete, autoFocus: autoFocus, id: id, type: type, disabled: disabled, step: step, min: min, max: max, maxLength: maxLength, minLength: minLength, extraClassNames: `tw-flex tw-flex-1 tw-w-full tw-rounded-r-none focus:tw-z-30 ${extraClassNames}`, ...tooltipData })),
15990
- append.filter(Boolean).map((item, index) => item?.variant === 'button' ? (React__default.createElement(Button, { key: index, extraClassNames: "tw-ml-[-1px] focus:tw-z-40 focus:tw-border tw-rounded-l-none tw-rounded-r-none last:tw-rounded-r-sm", ...item.buttonProps })) : (React__default.createElement("div", { key: index, className: `${borderColorClasses} tw-flex tw-items-center tw-justify-center tw-rounded-none tw-ml-[-1px] active:tw-z-30 active:tw-border tw-border last:tw-rounded-r-sm` }, item?.element)))));
15990
+ append.filter(Boolean).map((item, index, array) => {
15991
+ const isLast = index === array.length - 1;
15992
+ return item?.variant === 'button' ? (React__default.createElement(Button, { key: index, extraClassNames: `tw-ml-[-1px] focus:tw-z-40 focus:tw-border tw-rounded-l-none tw-rounded-r-none ${isLast ? 'tw-rounded-r-md' : ''}`, ...item.buttonProps })) : (React__default.createElement("div", { key: index, className: `${borderColorClasses} tw-flex tw-items-center tw-justify-center tw-rounded-none tw-ml-[-1px] active:tw-z-30 active:tw-border tw-border ${isLast ? 'tw-rounded-r-md' : ''}` }, item?.element));
15993
+ })));
15991
15994
  });
15992
15995
 
15993
15996
  // src/index.ts
@@ -22139,12 +22142,32 @@ function validateWCAG2Parms(parms) {
22139
22142
 
22140
22143
  const baseLabelClasses = 'tw-left-1 tw-text-xs tw-text-sq-text-color dark:tw-text-sq-dark-text tw-items-center tw-h-[18px]';
22141
22144
  const ProgressIndicator = (props) => {
22142
- const { value, color = undefined, testId, label, extraClasses = '', labelClasses = '', valuesLength, max, index, ...tooltipProps } = props;
22145
+ const { value, color = undefined, testId, label, extraClasses = '', labelClasses = '', valuesLength, max, index, totalValue, ...tooltipProps } = props;
22143
22146
  const tooltipData = getQTipData(tooltipProps);
22144
22147
  const previousWidth = useRef(0);
22145
22148
  const indicatorElementRef = useRef(null);
22146
22149
  const [textColorClass, setTextColorClass] = React__default.useState('');
22147
22150
  const [animatedWidth, setAnimatedWidth] = React__default.useState(previousWidth.current);
22151
+ // Determine which corners to round based on position and total value
22152
+ let roundedCorners = '';
22153
+ if (totalValue >= max) {
22154
+ // If progress is 100%, round both ends
22155
+ if (index === 0 && valuesLength === 1) {
22156
+ roundedCorners = 'tw-rounded-[15px]';
22157
+ }
22158
+ else if (index === 0) {
22159
+ roundedCorners = 'tw-rounded-l-[15px]';
22160
+ }
22161
+ else if (index === valuesLength - 1) {
22162
+ roundedCorners = 'tw-rounded-r-[15px]';
22163
+ }
22164
+ }
22165
+ else {
22166
+ // Otherwise, only round the leftmost indicator
22167
+ if (index === 0) {
22168
+ roundedCorners = 'tw-rounded-l-[15px]';
22169
+ }
22170
+ }
22148
22171
  useEffect(() => {
22149
22172
  const timeout = setTimeout(() => {
22150
22173
  const newWidth = (Number(value) / Number(max)) * 100;
@@ -22168,7 +22191,7 @@ const ProgressIndicator = (props) => {
22168
22191
  computeTextClass(indicatorElementRef.current);
22169
22192
  }
22170
22193
  }, [!!indicatorElementRef.current]);
22171
- return (React__default.createElement(Indicator, { className: `tw-ease-[cubic-bezier(0.65, 0, 0.35, 1)] tw-w-full tw-h-[18px] tw-duration-[660ms] tw-flex tw-justify-center tw-items-center tw-overflow-hidden ${bgClass} ${extraClasses}`, ...tooltipData, "data-qtip-text": tooltipProps.tooltip ? tooltipProps.tooltip : `${value}%`, "data-testid": `progress-bar-indicator-${testId ? testId : value}`, key: `${index}-${value}`, ref: indicatorElementRef, style: {
22194
+ return (React__default.createElement(Indicator, { className: `tw-ease-[cubic-bezier(0.65, 0, 0.35, 1)] tw-w-full tw-h-[18px] tw-duration-[660ms] tw-flex tw-justify-center tw-items-center tw-overflow-hidden ${roundedCorners} ${bgClass} ${extraClasses}`, ...tooltipData, "data-qtip-text": tooltipProps.tooltip ? tooltipProps.tooltip : `${value}%`, "data-testid": `progress-bar-indicator-${testId ? testId : value}`, key: `${index}-${value}`, ref: indicatorElementRef, style: {
22172
22195
  // Background color will default to the theme color if undefined
22173
22196
  backgroundColor: bgColor,
22174
22197
  animation: 'width 660ms forwards',
@@ -22177,12 +22200,12 @@ const ProgressIndicator = (props) => {
22177
22200
  };
22178
22201
  const ProgressBar = ({ values = [], max = 100, containerExtraClasses = '', zeroValueLabel = 'No progress yet', }) => {
22179
22202
  const totalValue = values.reduce((acc, { value }) => acc + value, 0);
22180
- return (React__default.createElement(Root, { className: `tw-relative tw-h-[18px] tw-w-full tw-overflow-hidden tw-rounded-[2.5px] tw-bg-sq-dark-gray dark:tw-bg-sq-dark-disabled-gray tw-flex tw-flex-1 ${containerExtraClasses}`, max: max, value: totalValue }, totalValue > 0 ? (values.map((props, i) => {
22181
- return React__default.createElement(ProgressIndicator, { ...props, max: max, valuesLength: values.length, index: i, key: i });
22203
+ return (React__default.createElement(Root, { className: `tw-relative tw-h-[18px] tw-w-full tw-overflow-hidden tw-rounded-[15px] tw-bg-sq-dark-gray dark:tw-bg-sq-dark-disabled-gray tw-flex tw-flex-1 ${containerExtraClasses}`, max: max, value: totalValue }, totalValue > 0 ? (values.map((props, i) => {
22204
+ return React__default.createElement(ProgressIndicator, { ...props, max: max, valuesLength: values.length, index: i, totalValue: totalValue, key: i });
22182
22205
  })) : (React__default.createElement("div", { className: `${baseLabelClasses} tw-mx-auto tw-overflow-hidden` }, zeroValueLabel))));
22183
22206
  };
22184
22207
 
22185
- const baseClasses = 'tw-flex tw-outline-none tw-rounded-sm tw-w-full tw-relative tw-flex-wrap';
22208
+ const baseClasses = 'tw-flex tw-outline-none tw-w-full tw-relative tw-flex-wrap';
22186
22209
  const activeClassesByVariantLightTheme = {
22187
22210
  'outline': '!tw-bg-sq-disabled-gray tw-border-sq-color-dark',
22188
22211
  'theme': 'tw-bg-sq-color-highlight',
@@ -22206,7 +22229,7 @@ const ButtonGroup = (props) => {
22206
22229
  const { id, extraClassNames, testId, onChange, buttons = [], ...tooltipProps } = props;
22207
22230
  const tooltipData = getQTipData(tooltipProps);
22208
22231
  const appliedClasses = `${baseClasses} ${extraClassNames}`;
22209
- return (React__default.createElement("div", { id: id ? `button-group-${id}` : undefined, "data-testid": testId, className: appliedClasses, ...tooltipData }, buttons.filter(Boolean).map((item, index) => item?.variant === 'button' ? (React__default.createElement(Button, { key: index, ...item.buttonProps, extraClassNames: `tw-ml-[-1px] focus:tw-z-40 tw-outline-none focus:tw-border tw-rounded-r-none tw-rounded-l-none last:tw-rounded-r-sm first:tw-rounded-l-sm ${item.buttonProps?.isActive
22232
+ return (React__default.createElement("div", { id: id ? `button-group-${id}` : undefined, "data-testid": testId, className: appliedClasses, ...tooltipData }, buttons.filter(Boolean).map((item, index) => item?.variant === 'button' ? (React__default.createElement(Button, { key: index, ...item.buttonProps, extraClassNames: `tw-ml-[-1px] focus:tw-z-40 tw-outline-none focus:tw-border tw-rounded-none first:tw-rounded-l-md last:tw-rounded-r-md ${item.buttonProps?.isActive
22210
22233
  ? `${activeClassesByVariantLightTheme[item?.buttonProps?.variant ?? 'outline']} ${activeClassesByVariantDarkTheme[item?.buttonProps?.variant ?? 'outline']} `
22211
22234
  : ''} ${item.buttonProps.extraClassNames}`, onClick: () => onChange && onChange(item?.buttonProps?.value) })) : (React__default.createElement("div", { key: index, className: ` tw-flex tw-items-center tw-justify-center tw-rounded-none tw-ml-[-1px] active:tw-z-30 ${item?.extraClassNames || ''}` }, item?.element)))));
22212
22235
  };