@seeqdev/qomponents 0.0.185 → 0.0.187

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.
Files changed (132) hide show
  1. package/README.md +8 -0
  2. package/dist/example/src/Example.tsx +7 -7
  3. package/dist/index.esm.js +423 -352
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.js +423 -352
  6. package/dist/index.js.map +1 -1
  7. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts +5 -0
  8. package/dist/styles.css +2514 -3133
  9. package/package.json +5 -4
  10. package/dist/src/Accordion/Accordion.js +0 -8
  11. package/dist/src/Accordion/Accordion.stories.js +0 -96
  12. package/dist/src/Accordion/Accordion.test.js +0 -54
  13. package/dist/src/Accordion/Accordion.types.js +0 -1
  14. package/dist/src/Accordion/index.js +0 -1
  15. package/dist/src/Alert/Alert.js +0 -33
  16. package/dist/src/Alert/Alert.stories.js +0 -72
  17. package/dist/src/Alert/Alert.test.js +0 -49
  18. package/dist/src/Alert/Alert.types.js +0 -1
  19. package/dist/src/Alert/index.js +0 -1
  20. package/dist/src/Button/Button.js +0 -107
  21. package/dist/src/Button/Button.stories.js +0 -74
  22. package/dist/src/Button/Button.test.js +0 -65
  23. package/dist/src/Button/Button.types.js +0 -4
  24. package/dist/src/Button/index.js +0 -1
  25. package/dist/src/ButtonGroup/ButtonGroup.js +0 -34
  26. package/dist/src/ButtonGroup/ButtonGroup.stories.js +0 -328
  27. package/dist/src/ButtonGroup/ButtonGroup.test.js +0 -65
  28. package/dist/src/ButtonGroup/ButtonGroup.types.js +0 -1
  29. package/dist/src/ButtonGroup/index.js +0 -1
  30. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.js +0 -46
  31. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.stories.js +0 -119
  32. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.test.js +0 -92
  33. package/dist/src/ButtonWithDropdown/ButtonWithDropdown.types.js +0 -1
  34. package/dist/src/ButtonWithDropdown/index.js +0 -1
  35. package/dist/src/ButtonWithPopover/ButtonWithPopover.js +0 -54
  36. package/dist/src/ButtonWithPopover/ButtonWithPopover.stories.js +0 -51
  37. package/dist/src/ButtonWithPopover/ButtonWithPopover.test.js +0 -80
  38. package/dist/src/ButtonWithPopover/ButtonWithPopover.types.js +0 -1
  39. package/dist/src/ButtonWithPopover/index.js +0 -1
  40. package/dist/src/Carousel/Carousel.js +0 -80
  41. package/dist/src/Carousel/Carousel.stories.js +0 -100
  42. package/dist/src/Carousel/Carousel.test.js +0 -47
  43. package/dist/src/Carousel/Carousel.types.js +0 -1
  44. package/dist/src/Carousel/index.js +0 -1
  45. package/dist/src/Checkbox/Checkbox.js +0 -24
  46. package/dist/src/Checkbox/Checkbox.stories.js +0 -21
  47. package/dist/src/Checkbox/Checkbox.test.js +0 -93
  48. package/dist/src/Checkbox/Checkbox.types.js +0 -1
  49. package/dist/src/Checkbox/index.js +0 -1
  50. package/dist/src/Collapse/Collapse.js +0 -16
  51. package/dist/src/Collapse/Collapse.stories.js +0 -28
  52. package/dist/src/Collapse/Collapse.test.js +0 -16
  53. package/dist/src/Collapse/Collapse.types.js +0 -1
  54. package/dist/src/Collapse/index.js +0 -1
  55. package/dist/src/Icon/Icon.js +0 -55
  56. package/dist/src/Icon/Icon.stories.js +0 -31
  57. package/dist/src/Icon/Icon.test.js +0 -54
  58. package/dist/src/Icon/Icon.types.js +0 -15
  59. package/dist/src/Icon/index.js +0 -1
  60. package/dist/src/InputGroup/InputGroup.js +0 -33
  61. package/dist/src/InputGroup/InputGroup.stories.js +0 -144
  62. package/dist/src/InputGroup/InputGroup.test.js +0 -41
  63. package/dist/src/InputGroup/InputGroup.types.js +0 -1
  64. package/dist/src/InputGroup/index.js +0 -1
  65. package/dist/src/Modal/Modal.js +0 -86
  66. package/dist/src/Modal/Modal.stories.js +0 -79
  67. package/dist/src/Modal/Modal.test.js +0 -107
  68. package/dist/src/Modal/Modal.types.js +0 -1
  69. package/dist/src/Modal/index.js +0 -1
  70. package/dist/src/ProgressBar/ProgressBar.js +0 -71
  71. package/dist/src/ProgressBar/ProgressBar.stories.js +0 -46
  72. package/dist/src/ProgressBar/ProgressBar.test.js +0 -42
  73. package/dist/src/ProgressBar/ProgressBar.types.js +0 -1
  74. package/dist/src/ProgressBar/index.js +0 -1
  75. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.js +0 -41
  76. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.stories.js +0 -73
  77. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.test.js +0 -72
  78. package/dist/src/SeeqActionDropdown/SeeqActionDropdown.types.js +0 -1
  79. package/dist/src/SeeqActionDropdown/index.js +0 -1
  80. package/dist/src/SeeqActionDropdown/variants.js +0 -34
  81. package/dist/src/Select/Select.js +0 -171
  82. package/dist/src/Select/Select.stories.js +0 -50
  83. package/dist/src/Select/Select.test.js +0 -176
  84. package/dist/src/Select/Select.types.js +0 -1
  85. package/dist/src/Select/index.js +0 -2
  86. package/dist/src/Slider/Slider.js +0 -11
  87. package/dist/src/Slider/Slider.stories.js +0 -37
  88. package/dist/src/Slider/Slider.test.js +0 -31
  89. package/dist/src/Slider/Slider.types.js +0 -1
  90. package/dist/src/Slider/index.js +0 -1
  91. package/dist/src/SvgIcon/SvgIcon.js +0 -27
  92. package/dist/src/SvgIcon/SvgIcon.stories.js +0 -26
  93. package/dist/src/SvgIcon/SvgIcon.test.js +0 -40
  94. package/dist/src/SvgIcon/SvgIcon.types.js +0 -2
  95. package/dist/src/SvgIcon/index.js +0 -1
  96. package/dist/src/Tabs/Tabs.js +0 -18
  97. package/dist/src/Tabs/Tabs.stories.js +0 -83
  98. package/dist/src/Tabs/Tabs.test.js +0 -91
  99. package/dist/src/Tabs/Tabs.types.js +0 -1
  100. package/dist/src/Tabs/index.js +0 -1
  101. package/dist/src/TextArea/TextArea.js +0 -54
  102. package/dist/src/TextArea/TextArea.stories.js +0 -21
  103. package/dist/src/TextArea/TextArea.test.js +0 -129
  104. package/dist/src/TextArea/TextArea.types.js +0 -1
  105. package/dist/src/TextArea/index.js +0 -1
  106. package/dist/src/TextField/TextField.js +0 -85
  107. package/dist/src/TextField/TextField.stories.js +0 -30
  108. package/dist/src/TextField/TextField.test.js +0 -40
  109. package/dist/src/TextField/TextField.types.js +0 -1
  110. package/dist/src/TextField/index.js +0 -1
  111. package/dist/src/ToolbarButton/ToolbarButton.js +0 -58
  112. package/dist/src/ToolbarButton/ToolbarButton.stories.js +0 -63
  113. package/dist/src/ToolbarButton/ToolbarButton.test.js +0 -89
  114. package/dist/src/ToolbarButton/ToolbarButton.types.js +0 -1
  115. package/dist/src/ToolbarButton/index.js +0 -1
  116. package/dist/src/Tooltip/QTip.stories.js +0 -22
  117. package/dist/src/Tooltip/QTip.types.js +0 -1
  118. package/dist/src/Tooltip/QTipPerformance.stories.js +0 -27
  119. package/dist/src/Tooltip/Qtip.js +0 -168
  120. package/dist/src/Tooltip/Tooltip.js +0 -34
  121. package/dist/src/Tooltip/Tooltip.stories.js +0 -20
  122. package/dist/src/Tooltip/Tooltip.types.js +0 -2
  123. package/dist/src/Tooltip/TooltipPerformance.stories.js +0 -25
  124. package/dist/src/Tooltip/index.js +0 -2
  125. package/dist/src/Tooltip/qTip.utilities.js +0 -10
  126. package/dist/src/index.js +0 -47
  127. package/dist/src/setupTests.js +0 -5
  128. package/dist/src/types.js +0 -25
  129. package/dist/src/utils/browserId.js +0 -28
  130. package/dist/src/utils/svg.js +0 -19
  131. package/dist/src/utils/validateStyleDimension.js +0 -13
  132. package/dist/src/utils/validateStyleDimension.test.js +0 -19
package/dist/index.esm.js CHANGED
@@ -46,34 +46,34 @@ const getQTipData = ({ tooltip, tooltipPlacement, isHtmlTooltip, tooltipTestId,
46
46
  : undefined;
47
47
 
48
48
  const colorClassesThemeLight = {
49
- 'theme': 'tw-text-sq-color-dark',
50
- 'white': 'tw-text-white',
51
- 'dark-gray': 'tw-text-sq-fairly-dark-gray',
52
- 'warning': 'tw-text-sq-warning-color',
53
- 'darkish-gray': 'tw-text-sq-darkish-gray',
54
- 'gray': 'tw-text-sq-disabled-gray',
49
+ 'theme': 'tw:text-sq-theme-dark',
50
+ 'white': 'tw:text-sq-white',
51
+ 'dark-gray': 'tw:text-sq-fairly-dark-gray',
52
+ 'warning': 'tw:text-sq-warning',
53
+ 'darkish-gray': 'tw:text-sq-darkish-gray',
54
+ 'gray': 'tw:text-sq-disabled-gray',
55
55
  'color': '',
56
- 'info': 'tw-text-sq-link',
57
- 'text': 'tw-text-sq-text-color',
56
+ 'info': 'tw:text-sq-theme-link',
57
+ 'text': 'tw:text-sq-text-color',
58
58
  'inherit': '',
59
- 'danger': 'tw-text-sq-danger-color',
60
- 'theme-light': 'tw-text-sq-color-light',
61
- 'success': 'tw-text-sq-success-color',
59
+ 'danger': 'tw:text-sq-danger',
60
+ 'theme-light': 'tw:text-sq-theme-light',
61
+ 'success': 'tw:text-sq-success',
62
62
  };
63
63
  const colorClassesThemeDark = {
64
- 'theme': 'dark:tw-text-sq-color-dark-dark',
64
+ 'theme': 'tw:dark:text-sq-theme-darker',
65
65
  'white': '',
66
- 'dark-gray': 'tw-text-sq-fairly-dark-gray',
66
+ 'dark-gray': 'tw:text-sq-fairly-dark-gray',
67
67
  'warning': '',
68
- 'darkish-gray': 'tw-text-sq-darkish-gray',
69
- 'gray': 'dark:tw-text-sq-dark-disabled-gray',
68
+ 'darkish-gray': 'tw:text-sq-darkish-gray',
69
+ 'gray': 'tw:dark:text-sq-dark-disabled-gray',
70
70
  'color': '',
71
- 'info': 'dark:tw-text-sq-link-dark',
72
- 'text': 'dark:tw-text-sq-dark-text',
71
+ 'info': 'tw:dark:text-sq-theme-link',
72
+ 'text': 'tw:dark:text-sq-dark-text',
73
73
  'inherit': '',
74
- 'danger': 'tw-text-sq-danger-color',
75
- 'theme-light': 'tw-text-sq-color-light',
76
- 'success': 'tw-text-sq-success-color',
74
+ 'danger': 'tw:text-sq-danger',
75
+ 'theme-light': 'tw:text-sq-theme-light',
76
+ 'success': 'tw:text-sq-success',
77
77
  };
78
78
  /**
79
79
  * Icon:
@@ -85,14 +85,14 @@ const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClas
85
85
  const errorMessage = color === undefined || color === ''
86
86
  ? 'Icon with type="color" must have prop color specified.'
87
87
  : 'Icon with prop color must have type="color".';
88
- return jsx$1("div", { className: "tw-text-sq-danger-color", children: errorMessage });
88
+ return jsx$1("div", { className: "tw:text-sq-danger", children: errorMessage });
89
89
  }
90
90
  const fontAwesomePrefix = iconPrefix ? iconPrefix : 'fa-sharp fa-regular';
91
91
  const iconPrefixString = icon.startsWith('fc') ? 'fc' : fontAwesomePrefix;
92
92
  const style = type === 'color' && color ? { color } : {};
93
93
  const sizeClass = size ? `fa-${size}` : small ? 'fa-sm' : large ? 'fa-lg' : '';
94
94
  const appliedClassNames = `${iconPrefixString} ${icon} ${sizeClass}
95
- ${colorClassesThemeLight[type]} ${colorClassesThemeDark[type]} ${onClick ? 'tw-cursor-pointer' : ''} ${extraClassNames} focus:tw-outline-none focus-visible:tw-outline-none tw-outline-none`;
95
+ ${colorClassesThemeLight[type]} ${colorClassesThemeDark[type]} ${onClick ? 'tw:cursor-pointer' : ''} ${extraClassNames} tw:focus:outline-none tw:focus-visible:outline-none tw:outline-none`;
96
96
  const tooltipData = getQTipData(tooltipProps);
97
97
  return (jsx$1("i", { className: appliedClassNames, style: style, onClick: onClick, "data-testid": testId, "data-customid": customId, id: id, "data-number": number, ...tooltipData }));
98
98
  };
@@ -103,71 +103,71 @@ const Icon = ({ onClick, icon, iconPrefix = undefined, type = 'theme', extraClas
103
103
  * - include tooltips and/or icons
104
104
  */
105
105
  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, }) => {
106
- const baseClasses = 'tw-px-2.5 tw-rounded-md focus:tw-ring-0 focus-visible:tw-outline-none aria-disabled:tw-cursor-not-allowed disabled:tw-pointer-events-none';
106
+ const baseClasses = 'tw:px-2.5 tw:rounded-md tw:focus:ring-0 tw:focus-visible:outline-none tw:aria-disabled:cursor-not-allowed tw:disabled:pointer-events-none';
107
107
  const baseClassesByVariant = {
108
- 'outline': 'disabled:tw-opacity-50 aria-disabled:tw-opacity-50 tw-border-solid tw-border',
109
- 'theme': 'disabled:tw-opacity-50 aria-disabled:tw-opacity-50 tw-border-solid tw-border',
110
- 'danger': 'tw-bg-sq-danger-color disabled:tw-opacity-50 aria-disabled:tw-opacity-50 ' +
111
- 'tw-border-solid tw-border tw-border-sq-danger-color',
112
- 'theme-light': 'disabled:tw-opacity-50 aria-disabled:tw-opacity-50 tw-border-solid tw-border',
113
- 'no-border': 'disabled:tw-opacity-50 aria-disabled:tw-opacity-50',
114
- 'warning': 'tw-bg-sq-warning-color tw-border-solid tw-border tw-border-sq-warning-color ' +
115
- 'disabled:tw-opacity-50 aria-disabled:tw-opacity-50',
108
+ 'outline': 'tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border',
109
+ 'theme': 'tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border',
110
+ 'danger': 'tw:bg-sq-danger tw:disabled:opacity-50 tw:aria-disabled:opacity-50 ' +
111
+ 'tw:border-solid tw:border tw:border-sq-danger',
112
+ 'theme-light': 'tw:disabled:opacity-50 tw:aria-disabled:opacity-50 tw:border-solid tw:border',
113
+ 'no-border': 'tw:disabled:opacity-50 tw:aria-disabled:opacity-50',
114
+ 'warning': 'tw:bg-sq-warning tw:border-solid tw:border tw:border-sq-warning ' +
115
+ 'tw:disabled:opacity-50 tw:aria-disabled:opacity-50',
116
116
  };
117
117
  const textClassesByVariantLightTheme = {
118
- 'outline': 'tw-text-sq-text-color',
119
- 'theme': 'tw-text-white',
120
- 'theme-light': 'tw-text-white',
121
- 'danger': 'tw-text-white',
122
- 'no-border': 'tw-text-sq-text-color',
123
- 'warning': 'tw-text-white',
118
+ 'outline': 'tw:text-sq-text-color',
119
+ 'theme': 'tw:text-sq-white',
120
+ 'theme-light': 'tw:text-sq-white',
121
+ 'danger': 'tw:text-sq-white',
122
+ 'no-border': 'tw:text-sq-text-color',
123
+ 'warning': 'tw:text-sq-white',
124
124
  };
125
125
  const textClassesByVariantDarkTheme = {
126
- 'outline': 'dark:tw-text-sq-dark-text',
127
- 'theme': 'dark:tw-text-white',
128
- 'theme-light': 'dark:tw-text-white',
129
- 'danger': 'dark:tw-text-white',
130
- 'no-border': 'dark:tw-text-sq-dark-text',
131
- 'warning': 'dark:tw-text-white',
126
+ 'outline': 'tw:dark:text-sq-dark-text',
127
+ 'theme': 'tw:dark:text-sq-white',
128
+ 'theme-light': 'tw:dark:text-sq-white',
129
+ 'danger': 'tw:dark:text-sq-white',
130
+ 'no-border': 'tw:dark:text-sq-dark-text',
131
+ 'warning': 'tw:dark:text-sq-white',
132
132
  };
133
133
  const classesByVariantLightTheme = {
134
- 'outline': 'tw-bg-white tw-border-sq-disabled-gray',
135
- 'theme': 'tw-bg-sq-color-dark tw-border-sq-color-dark',
134
+ 'outline': 'tw:bg-white tw:border-sq-disabled-gray',
135
+ 'theme': 'tw:bg-sq-theme-dark tw:border-sq-theme-dark',
136
136
  'danger': '',
137
- 'theme-light': 'tw-bg-sq-icon',
137
+ 'theme-light': 'tw:bg-sq-icon',
138
138
  'no-border': '',
139
139
  'warning': '',
140
140
  };
141
141
  const classesByVariantDarkTheme = {
142
- 'outline': 'dark:tw-bg-sq-dark-background dark:tw-border-sq-dark-disabled-gray',
143
- 'theme': 'dark:tw-bg-sq-color-dark dark:tw-border-sq-color-dark',
142
+ 'outline': 'tw:dark:bg-sq-dark-background tw:dark:border-sq-dark-disabled-gray',
143
+ 'theme': 'tw:dark:bg-sq-theme-dark tw:dark:border-sq-theme-dark',
144
144
  'danger': '',
145
- 'theme-light': 'dark:tw-bg-sq-icon-dark dark:tw-border-sq-icon-dark',
145
+ 'theme-light': 'tw:dark:bg-sq-icon-dark tw:dark:border-sq-icon-dark',
146
146
  'no-border': '',
147
147
  'warning': '',
148
148
  };
149
149
  const activeClassesByVariantLightTheme = {
150
- 'outline': 'hover:tw-bg-sq-light-gray focus:tw-bg-sq-dark-gray active:tw-bg-sq-dark-gray focus:tw-border-sq-color-dark' +
151
- ' active:tw-border-sq-color-dark',
152
- 'theme': 'hover:tw-bg-sq-color-highlight hover:tw-border-sq-color-highlight',
153
- 'danger': 'hover:tw-bg-sq-danger-color-hover hover:tw-border-sq-danger-color-hover',
154
- 'theme-light': 'hover:tw-bg-sq-link hover:tw-border-sq-link',
150
+ 'outline': 'tw:hover:bg-sq-light-gray tw:focus:bg-sq-dark-gray tw:active:bg-sq-dark-gray tw:focus:border-sq-theme-dark' +
151
+ ' tw:active:border-sq-theme-dark',
152
+ 'theme': 'tw:hover:bg-sq-theme-highlight tw:hover:border-sq-theme-highlight',
153
+ 'danger': 'tw:hover:bg-sq-bg-danger tw:hover:border-sq-bg-danger',
154
+ 'theme-light': 'tw:hover:bg-sq-link tw:hover:border-sq-link',
155
155
  'no-border': '',
156
156
  'warning': '',
157
157
  };
158
158
  const activeClassesByVariantDarkTheme = {
159
- 'outline': 'dark:hover:tw-bg-sq-highlight-color-dark dark:focus:tw-bg-sq-multi-gray-dark' +
160
- ' dark:active:tw-bg-sq-multi-gray-dark dark:focus:tw-border-sq-color-dark dark:active:tw-border-sq-color-dark',
161
- 'theme': 'dark:hover:tw-bg-sq-color-highlight dark:hover:tw-border-sq-color-highlight',
162
- 'danger': 'dark:hover:tw-bg-sq-danger-color-hover dark:hover:tw-border-sq-danger-color-hover',
163
- 'theme-light': 'dark:hover:tw-bg-sq-link-dark dark:hover:tw-border-sq-link-dark',
159
+ 'outline': 'tw:dark:hover:bg-sq-highlight-color-dark tw:dark:focus:bg-sq-multi-gray-dark' +
160
+ ' tw:dark:active:bg-sq-multi-gray-dark tw:dark:focus:border-sq-theme-dark tw:dark:active:border-sq-theme-dark',
161
+ 'theme': 'tw:dark:hover:bg-sq-theme-highlight tw:dark:hover:border-sq-theme-highlight',
162
+ 'danger': 'tw:dark:hover:bg-sq-bg-danger tw:dark:hover:border-sq-bg-danger',
163
+ 'theme-light': 'tw:dark:hover:bg-sq-link-dark tw:dark:hover:border-sq-link-dark',
164
164
  'no-border': '',
165
165
  'warning': '',
166
166
  };
167
167
  const sizeClasses = {
168
- xs: 'tw-text-xs tw-py-0.5',
169
- sm: 'tw-text-sm tw-py-1',
170
- lg: 'tw-text-xl tw-py-1',
168
+ xs: 'tw:text-xs tw:py-0.5',
169
+ sm: 'tw:text-sm tw:py-1',
170
+ lg: 'tw:text-xl tw:py-1',
171
171
  };
172
172
  let tooltipData = undefined;
173
173
  let appliedClasses = `${baseClasses} ${baseClassesByVariant[variant]} ${sizeClasses[size]} ${classesByVariantLightTheme[variant]} ${classesByVariantDarkTheme[variant]} ${textClassesByVariantLightTheme[variant]} ${textClassesByVariantDarkTheme[variant]} ${extraClassNames}`;
@@ -183,7 +183,7 @@ const Button = ({ onClick, label, variant = 'outline', type = 'button', size = '
183
183
  'data-qtip-delay': tooltipOptions?.delay ?? DEFAULT_TOOL_TIP_DELAY,
184
184
  };
185
185
  }
186
- const iconClass = iconPosition === 'left' ? 'tw-mr-1' : 'tw-ml-1';
186
+ const iconClass = iconPosition === 'left' ? 'tw:mr-1' : 'tw:ml-1';
187
187
  const iconElement = icon && (jsx$1(Icon, { icon: icon, iconPrefix: iconPrefix, type: iconStyle, color: iconColor, extraClassNames: label
188
188
  ? `${iconClass} ${textClassesByVariantLightTheme[variant]} ${textClassesByVariantDarkTheme[variant]}`
189
189
  : '', testId: `${id}_spinner` }));
@@ -4408,6 +4408,13 @@ function RemoveScrollSideCar(props) {
4408
4408
  if ('touches' in event && moveDirection === 'h' && target.type === 'range') {
4409
4409
  return false;
4410
4410
  }
4411
+ // allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target
4412
+ var selection = window.getSelection();
4413
+ var anchorNode = selection && selection.anchorNode;
4414
+ var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;
4415
+ if (isTouchingSelection) {
4416
+ return false;
4417
+ }
4411
4418
  var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
4412
4419
  if (!canBeScrolledInMainDirection) {
4413
4420
  return true;
@@ -4818,31 +4825,30 @@ function getSvgIconPath(icon) {
4818
4825
  }
4819
4826
 
4820
4827
  const popoverBorderStyles = [
4821
- 'tw-border-solid',
4822
- 'tw-border',
4823
- 'tw-rounded-md',
4824
- 'tw-border-sq-disabled-gray',
4825
- 'dark:tw-border-gray-500',
4828
+ 'tw:border-solid',
4829
+ 'tw:border',
4830
+ 'tw:rounded-md',
4831
+ 'tw:border-sq-disabled-gray',
4832
+ 'tw:dark:border-gray-500',
4826
4833
  ].join(' ');
4827
4834
  const triggerBackgroundStyles = [
4828
- 'tw-bg-transparent',
4829
- 'hover:tw-bg-sq-worksheetspanel-gray',
4830
- 'active:tw-bg-sq-worksheetspanel-gray',
4831
- 'dark:tw-bg-transparent',
4832
- 'dark:hover:tw-bg-sq-field-disabled-gray',
4833
- 'dark:active:tw-bg-sq-field-disabled-gray',
4835
+ 'tw:bg-transparent',
4836
+ 'tw:hover:bg-sq-worksheetspanel-gray',
4837
+ 'tw:active:bg-sq-worksheetspanel-gray',
4838
+ 'tw:dark:bg-transparent',
4839
+ 'tw:dark:hover:bg-sq-field-disabled-gray/30',
4840
+ 'tw:dark:active:bg-sq-field-disabled-gray/30',
4834
4841
  ].join(' ');
4835
4842
  const activeBackgroundStyles = [
4836
4843
  'active',
4837
- 'tw-bg-sq-overlay-gray',
4838
- 'hover:tw-bg-sq-overlay-gray',
4839
- 'active:tw-bg-sq-overlay-gray',
4840
- 'dark:tw-bg-sq-dark-disabled-gray',
4841
- 'dark:hover:tw-border-sq-dark-disabled-gray',
4842
- 'dark:active:tw-bg-sq-dark-disabled-gray',
4844
+ 'tw:bg-sq-overlay',
4845
+ 'tw:active:bg-sq-overlay',
4846
+ 'tw:dark:bg-sq-dark-disabled-gray',
4847
+ 'tw:dark:hover:border-sq-dark-disabled-gray/30',
4848
+ 'tw:dark:active:bg-sq-dark-disabled-gray/30',
4843
4849
  ].join(' ');
4844
- const bgStyles$3 = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
4845
- const disabledClasses$4 = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
4850
+ const bgStyles$3 = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
4851
+ const disabledClasses$4 = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
4846
4852
  const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (jsx$1(Content2$3, { ref: ref, align: align, sideOffset: sideOffset, ...props, asChild: true })));
4847
4853
  const ToolbarButton = ({ isSmall = false, label, icon, secondIcon, forceSmallIcon = false, tooltipText, id, popoverContent, extraClassNames, testId, tooltipTestId, tooltipOptions, isActive = false, isHtmlTooltip = false, hasArrow = false, disabled = false, isPrimaryAnSvg = false, primaryIconExtraClassNames = false, iconHeight = 24, iconWidth = 24, primaryIconViewbox = '0 0 24 24', onClick, onHide, }) => {
4848
4854
  let tooltipData = undefined;
@@ -4860,12 +4866,12 @@ const ToolbarButton = ({ isSmall = false, label, icon, secondIcon, forceSmallIco
4860
4866
  onHide && onHide();
4861
4867
  }
4862
4868
  };
4863
- return (jsxs(Root2$3, { defaultOpen: false, onOpenChange: onOpenChange, children: [jsx$1(Trigger$3, { id: id, className: `tw-border-none tw-mx-[1.5px] first:tw-ml-0 last:tw-mr-0 ${isActive ? 'active' : ''}`, disabled: disabled, "data-testid": testId, onClick: (e) => {
4869
+ return (jsxs(Root2$3, { defaultOpen: false, onOpenChange: onOpenChange, children: [jsx$1(Trigger$3, { id: id, className: `tw:bg-transparent tw:border-none tw:mx-sq-1.5 tw:first:ml-0 tw:last:mr-0 ${isActive ? 'active' : ''}`, disabled: disabled, "data-testid": testId, onClick: (e) => {
4864
4870
  onClick && onClick(e);
4865
- }, children: jsxs("div", { ...tooltipData, className: `tw-flex tw-flex-col tw-items-center tw-rounded-md ${isSmall ? 'tw-py-[1px] tw-px-1' : 'tw-px-2 tw-py-[5px]'} ${disabled ? disabledClasses$4 : isActive ? activeBackgroundStyles : triggerBackgroundStyles} ${extraClassNames || ''}`, children: [jsxs("span", { className: "tw-nowrap", children: [isPrimaryAnSvg ? (jsx$1("svg", { xmlns: "http://www.w3.org/2000/svg", className: `tw-text-sq-text-color dark:tw-text-sq-dark-text ${primaryIconExtraClassNames || ''}`, viewBox: primaryIconViewbox, height: `${iconHeight}px`, width: `${iconWidth}px`, fill: "currentColor", "data-testid": testId, children: jsx$1("path", { d: getSvgIconPath(icon) }) })) : (jsx$1(Icon, { icon: icon, testId: "firstIcon", type: "text", large: !isSmall && !label && !secondIcon && !forceSmallIcon, extraClassNames: `tw-text-sq-text-color dark:tw-text-sq-dark-text` })), secondIcon && jsx$1(Icon, { icon: secondIcon, type: "text", testId: "secondIcon" }), popoverContent ? (jsx$1(Icon, { icon: "fc-arrow-dropdown", extraClassNames: "tw-text-sq-text-color dark:tw-text-sq-dark-text tw-ml-[3px] tw-text-[0.5rem]", type: "text" })) : undefined] }), !isSmall && (jsx$1("small", { className: "tw-text-sq-text-color dark:tw-text-sq-dark-text tw-text-[0.625rem]", children: label }))] }) }), !!popoverContent ? (jsx$1(PopoverContent, { sideOffset: 2, align: "start", children: jsxs("div", { className: bgStyles$3 +
4866
- ' tw-relative tw-z-[1000] tw-min-w-6 tw-p-[0.5rem] focus-visible:tw-outline-none tw-outline-none data-[state=open]:animate-in data-[state=closed]:animate-out' +
4867
- ' data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2' +
4868
- popoverBorderStyles, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: " tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-mt-[-7px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500" }) })), popoverContent] }) })) : undefined] }));
4871
+ }, children: jsxs("div", { ...tooltipData, className: `tw:flex tw:flex-col tw:items-center tw:rounded-md ${isSmall ? 'tw:py-px tw:px-1' : 'tw:px-2 tw:py-sq-5'} ${disabled ? disabledClasses$4 : isActive ? activeBackgroundStyles : triggerBackgroundStyles} ${extraClassNames || ''}`, children: [jsxs("span", { className: "tw:nowrap", children: [isPrimaryAnSvg ? (jsx$1("svg", { xmlns: "http://www.w3.org/2000/svg", className: `tw:text-sq-text-color tw:dark:text-sq-dark-text ${primaryIconExtraClassNames || ''}`, viewBox: primaryIconViewbox, height: `${iconHeight}px`, width: `${iconWidth}px`, fill: "currentColor", "data-testid": testId, children: jsx$1("path", { d: getSvgIconPath(icon) }) })) : (jsx$1(Icon, { icon: icon, testId: "firstIcon", type: "text", size: !isSmall && !label && !secondIcon && !forceSmallIcon ? 'lg' : 'sm', extraClassNames: `tw:text-sq-text-color tw:dark:text-sq-dark-text` })), secondIcon && jsx$1(Icon, { icon: secondIcon, type: "text", testId: "secondIcon" }), popoverContent ? (jsx$1(Icon, { icon: "fc-arrow-dropdown", extraClassNames: "tw:text-sq-text-color tw:dark:text-sq-dark-text tw:ml-sq-3 tw:text-2", type: "text", size: "sm" })) : undefined] }), !isSmall && jsx$1("small", { className: "tw:text-sq-text-color tw:dark:text-sq-dark-text tw:text-2.5", children: label })] }) }), !!popoverContent ? (jsx$1(PopoverContent, { sideOffset: 2, align: "start", children: jsxs("div", { className: bgStyles$3 +
4872
+ ' tw:relative tw:z-[1000] tw:min-w-6 tw:p-2 tw:focus-visible:outline-none tw:outline-none tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out' +
4873
+ ' tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:data-[state=closed]:zoom-out-95 tw:data-[state=open]:zoom-in-95 tw:data-[side=bottom]:slide-in-from-top-2 tw:data-[side=left]:slide-in-from-right-2 tw:data-[side=right]:slide-in-from-left-2 tw:data-[side=top]:slide-in-from-bottom-2' +
4874
+ popoverBorderStyles, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: " tw:fill-transparent tw:bg-sq-white tw:w-sq-15 tw:h-sq-15 tw:-mt-sq-7 tw:rotate-45 tw:dark:bg-sq-dark-background tw:border-b tw:border-r tw:border-sq-disabled-gray tw:dark:border-gray-500" }) })), popoverContent] }) })) : undefined] }));
4869
4875
  };
4870
4876
 
4871
4877
  const setValidInputDimension = (width, height) => {
@@ -4882,24 +4888,24 @@ const setValidInputDimension = (width, height) => {
4882
4888
  return inputStyle;
4883
4889
  };
4884
4890
 
4885
- const errorClasses$4 = 'tw-border-sq-danger-color';
4891
+ const errorClasses$4 = 'tw:border-sq-danger';
4886
4892
  const borderColorClasses$4 = [
4887
- 'tw-border-sq-disabled-gray',
4888
- 'dark:tw-border-sq-dark-disabled-gray',
4889
- 'dark:focus:tw-border-sq-color-dark-dark',
4890
- 'dark:active:tw-border-sq-color-dark-dark',
4891
- 'focus:tw-border-sq-color-dark',
4892
- 'active:tw-border-sq-color-dark',
4893
+ 'tw:border-sq-disabled-gray',
4894
+ 'tw:dark:border-sq-dark-disabled-gray',
4895
+ 'tw:dark:focus:border-sq-theme-dark-dark',
4896
+ 'tw:dark:active:border-sq-theme-darker',
4897
+ 'tw:focus:border-sq-theme-dark',
4898
+ 'tw:active:border-sq-theme-dark',
4893
4899
  ].join(' ');
4894
- const baseClasses$6 = 'tw-h-inputs tw-leading-normal tw-outline-none tw-py-1 tw-px-3' +
4895
- ' disabled:tw-pointer-events-none disabled:tw-bg-sq-light-gray disabled:dark:tw-bg-sq-dark-disabled-gray' +
4896
- ' disabled:tw-cursor-not-allowed tw-p-1 tw-border-solid tw-border tw-placeholder-gray-400' +
4897
- ' dark:tw-placeholder-sq-dark-text-lighter specTextField';
4898
- const darkTheme$3 = 'dark:tw-bg-sq-dark-background dark:tw-text-sq-dark-text disabled:dark:tw-text-sq-dark-text-lighter';
4899
- const lightTheme$3 = 'tw-text-sq-text-color disabled:tw-text-sq-darkish-gray';
4900
+ const baseClasses$6 = 'tw:h-8.5 tw:leading-normal tw:outline-none tw:py-1 tw:px-3' +
4901
+ ' tw:disabled:pointer-events-none tw:disabled:bg-sq-light-gray tw:disabled:dark:bg-sq-dark-disabled-gray' +
4902
+ ' tw:disabled:cursor-not-allowed tw:p-1 tw:border-solid tw:border tw:placeholder-gray-400' +
4903
+ ' tw:dark:placeholder-sq-dark-text/30 specTextField';
4904
+ const darkTheme$3 = 'tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-dark-text/30';
4905
+ const lightTheme$3 = 'tw:text-sq-text-color tw:disabled:text-sq-darkish-gray';
4900
4906
  const sizeClasses = {
4901
- sm: 'tw-text-sm',
4902
- lg: 'tw-text-xl',
4907
+ sm: 'tw:text-sm',
4908
+ lg: 'tw:text-xl',
4903
4909
  };
4904
4910
  /**
4905
4911
  * Textfield.
@@ -4941,12 +4947,12 @@ const TextField = React__default.forwardRef((props, ref) => {
4941
4947
  internalRef.current.value = `${value}`;
4942
4948
  }
4943
4949
  }, [value]);
4944
- let borderRadius = 'tw-rounded-md';
4950
+ let borderRadius = 'tw:rounded-md';
4945
4951
  if (inputGroup === 'left') {
4946
- borderRadius = 'tw-rounded-l-md tw-border-r-0 focus:tw-border-r' + ' active:tw-border-r';
4952
+ borderRadius = 'tw:rounded-l-md tw:border-r-0 tw:focus:border-r' + ' tw:active:border-r';
4947
4953
  }
4948
4954
  else if (inputGroup === 'right') {
4949
- borderRadius = 'tw-rounded-r-md tw-border-l-0 focus:tw-border-l active:tw-border-l';
4955
+ borderRadius = 'tw:rounded-r-md tw:border-l-0 tw:focus:border-l tw:active:border-l';
4950
4956
  }
4951
4957
  const appliedClasses = `${baseClasses$6} ${sizeClasses[size]} ${extraClassNames} ${lightTheme$3} ${darkTheme$3} ${borderRadius} ${showError ? errorClasses$4 : borderColorClasses$4} `;
4952
4958
  const inputProp = setValidInputDimension(inputWidth, inputHeight)
@@ -4959,18 +4965,18 @@ const TextField = React__default.forwardRef((props, ref) => {
4959
4965
  inputLenghtProp.maxLength = maxLength;
4960
4966
  if (minLength)
4961
4967
  inputLenghtProp.minLength = minLength;
4962
- 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-color tw-text-xs tw-mt-1", children: errorText })] }));
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 })] }));
4963
4969
  });
4964
4970
 
4965
- const alignment = 'tw-flex';
4966
- const labelClasses = 'tw-ml-1.5 tw-text-sm tw--mt-0.5';
4967
- const baseClasses$5 = 'tw-border-1 tw-h-3.5 tw-w-3.5 focus:tw-ring-0 focus:tw-ring-offset-0 tw-outline-none focus:tw-outline-none' +
4968
- ' dark:tw-bg-sq-dark-background dark:tw-border-sq-dark-text dark:hover:tw-bg-sq-dark-background' +
4969
- ' checked:tw-text-white checked:tw-border-sq-text-color checked:hover:tw-border-sq-color-dark' +
4970
- ' checked:active:tw-border-sq-color-dark checked:focus:tw-border-sq-color-dark disabled:tw-border-sq-disabled-gray' +
4971
- ' dark:disabled:tw-border-sq-fairly-dark-gray dark:checked:focus:tw-bg-sq-dark-background';
4972
- const checkboxClasses = `tw-form-checkbox tw-rounded ${baseClasses$5}`;
4973
- const radioClasses = `tw-form-radio ${baseClasses$5}`;
4971
+ const alignment = 'tw:flex';
4972
+ const labelClasses = 'tw:ml-1.5 tw:text-sm tw:-mt-0.5';
4973
+ const baseClasses$5 = 'tw:appearance-none tw:border tw:h-3.5 tw:w-3.5 tw:focus:ring-0 tw:focus:ring-offset-0 tw:outline-none tw:focus:outline-none' +
4974
+ ' tw:dark:bg-sq-dark-background tw:dark:border-sq-dark-text tw:dark:hover:bg-sq-dark-background' +
4975
+ ' tw:checked:text-white tw:checked:border-sq-text-color tw:checked:hover:border-sq-theme-dark' +
4976
+ ' tw:checked:active:border-sq-theme-darker tw:checked:focus:border-sq-theme-dark tw:disabled:border-sq-disabled-gray' +
4977
+ ' tw:dark:disabled:border-sq-fairly-dark-gray tw:dark:checked:focus:bg-sq-dark-background';
4978
+ const checkboxClasses = `tw:form-checkbox tw:rounded ${baseClasses$5}`;
4979
+ const radioClasses = `tw:form-radio tw:rounded-full ${baseClasses$5}`;
4974
4980
  /**
4975
4981
  * Checkbox and Radio Box Component.
4976
4982
  */
@@ -4978,25 +4984,25 @@ const Checkbox = (props) => {
4978
4984
  const { type = 'checkbox', value, disabled = false, label, onChange, onClick, onKeyDown, checked, defaultChecked, id, name, extraClassNames, extraLabelClassNames, testId, ...tooltipProps } = props;
4979
4985
  const assignedId = id ?? 'checkbox_' + Math.random();
4980
4986
  const tooltipData = getQTipData(tooltipProps);
4981
- return (jsxs("span", { className: `${alignment} ${extraClassNames}`, children: [jsx$1("input", { value: value, type: type, "data-testid": testId, name: name, id: assignedId, readOnly: !onChange, checked: checked, defaultChecked: defaultChecked, className: `${type === 'checkbox' ? checkboxClasses : radioClasses} ${disabled ? 'tw-cursor-not-allowed' : 'tw-cursor-pointer'}`, disabled: disabled, onClick: onClick, onChange: onChange, onKeyDown: onKeyDown, ...tooltipData }), label && (jsx$1("label", { htmlFor: assignedId, className: `${labelClasses} ${extraLabelClassNames} ${disabled
4982
- ? 'tw-cursor-not-allowed dark:tw-text-sq-fairly-dark-gray tw-text-sq-fairly-dark-gray'
4983
- : 'tw-cursor-pointer tw-text-sq-text-color dark:tw-text-sq-dark-text'}`, children: label }))] }));
4984
- };
4985
-
4986
- const baseClasses$4 = 'tw-leading-normal tw-outline-none tw-py-1 tw-px-3 tw-rounded-md tw-w-full' +
4987
- ' disabled:tw-pointer-events-none disabled:tw-bg-sq-light-gray disabled:dark:tw-bg-sq-dark-disabled-gray' +
4988
- ' disabled:tw-cursor-not-allowed tw-p-1 tw-border-solid tw-border tw-text-sm';
4989
- const darkTheme$2 = 'dark:tw-bg-sq-dark-background dark:tw-text-sq-dark-text ' +
4990
- 'dark:tw-placeholder-sq-dark-text-lighter disabled:dark:tw-text-sq-dark-text-lighter';
4991
- const lightTheme$2 = 'tw-text-sq-text-color tw-placeholder-gray-400 disabled:tw-text-sq-darkish-gray';
4992
- const errorClasses$3 = 'tw-border-sq-danger-color';
4987
+ return (jsxs("span", { className: `${alignment} ${extraClassNames}`, children: [jsx$1("input", { value: value, type: type, "data-testid": testId, name: name, id: assignedId, readOnly: !onChange, checked: checked, defaultChecked: defaultChecked, className: `${type === 'checkbox' ? checkboxClasses : radioClasses} ${disabled ? 'tw:cursor-not-allowed' : 'tw:cursor-pointer'}`, disabled: disabled, onClick: onClick, onChange: onChange, onKeyDown: onKeyDown, ...tooltipData }), label && (jsx$1("label", { htmlFor: assignedId, className: `${labelClasses} ${extraLabelClassNames} ${disabled
4988
+ ? 'tw:cursor-not-allowed tw:dark:text-sq-fairly-dark-gray tw:text-sq-fairly-dark-gray'
4989
+ : 'tw:cursor-pointer tw:text-sq-text-color tw:dark:text-sq-dark-text'}`, children: label }))] }));
4990
+ };
4991
+
4992
+ const baseClasses$4 = 'tw:leading-normal tw:outline-none tw:py-1 tw:px-3 tw:rounded-md tw:w-full' +
4993
+ ' tw:disabled:pointer-events-none tw:disabled:bg-sq-light-gray tw:disabled:dark:bg-sq-dark-disabled-gray' +
4994
+ ' tw:disabled:cursor-not-allowed tw:p-1 tw:border-solid tw:border tw:text-sm';
4995
+ const darkTheme$2 = 'tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text ' +
4996
+ 'tw:dark:placeholder-sq-dark-text/30 tw:disabled:dark:text-sq-dark-text/30';
4997
+ const lightTheme$2 = 'tw:text-sq-text-color tw:placeholder-gray-400 tw:disabled:text-sq-darkish-gray';
4998
+ const errorClasses$3 = 'tw:border-sq-danger';
4993
4999
  const borderColorClasses$3 = [
4994
- 'tw-border-sq-disabled-gray',
4995
- 'dark:tw-border-sq-dark-disabled-gray',
4996
- 'dark:focus:tw-border-sq-color-dark-dark',
4997
- 'dark:active:tw-border-sq-color-dark-dark',
4998
- 'focus:tw-border-sq-color-dark',
4999
- 'active:tw-border-sq-color-dark',
5000
+ 'tw:border-sq-disabled-gray',
5001
+ 'tw:dark:border-sq-dark-disabled-gray',
5002
+ 'tw:dark:focus:border-sq-theme-darker',
5003
+ 'tw:dark:active:border-sq-theme-darker',
5004
+ 'tw:focus:border-sq-theme-dark',
5005
+ 'tw:active:border-sq-theme-dark',
5000
5006
  ].join(' ');
5001
5007
  /**
5002
5008
  * TextArea.
@@ -5045,25 +5051,25 @@ const TextArea = React__default.forwardRef(({ readonly = false, disabled = false
5045
5051
  * display correctly.
5046
5052
  */
5047
5053
  const Tooltip = ({ position = 'bottom', children, text, delay = DEFAULT_TOOL_TIP_DELAY, }) => {
5048
- const arrowBaseClasses = "before:tw-content-[''] before:tw-absolute before:tw-border-8";
5049
- const centerArrowVertically = 'before:tw-top-1/2 before:-tw-translate-y-1/2';
5050
- const centerArrowHorizontally = 'before:tw-left-1/2 before:-tw-translate-x-1/2';
5051
- const arrowRight = `${arrowBaseClasses} ${centerArrowVertically} before:tw-right-[100%] before:tw-border-y-transparent
5052
- before:tw-border-l-transparent before:tw-border-r-black`;
5053
- const arrowLeft = `${arrowBaseClasses} ${centerArrowVertically} before:tw-left-[100%] before:tw-border-y-transparent
5054
- before:tw-border-l-black before:tw-border-r-transparent`;
5055
- const arrowBottom = `${arrowBaseClasses} ${centerArrowHorizontally} before:-tw-top-4 before:tw-border-b-black
5056
- before:tw-border-r-transparent before:tw-border-l-transparent before:tw-border-t-transparent`;
5057
- const arrowTop = `${arrowBaseClasses} ${centerArrowHorizontally} before:-tw-bottom-4 before:tw-border-b-transparent
5058
- before:tw-border-t-black before:tw-border-l-transparent before:tw-border-r-transparent`;
5054
+ const arrowBaseClasses = "tw:before:content-[''] tw:before:absolute tw:before:border-8";
5055
+ const centerArrowVertically = 'tw:before:top-1/2 tw:before:-translate-y-1/2';
5056
+ const centerArrowHorizontally = 'tw:before:left-1/2 tw:before:-translate-x-1/2';
5057
+ const arrowRight = `${arrowBaseClasses} ${centerArrowVertically} tw:before:right-full tw:before:border-y-transparent
5058
+ tw:before:border-l-transparent tw:before:border-r-sq-black`;
5059
+ const arrowLeft = `${arrowBaseClasses} ${centerArrowVertically} tw:before:left-full tw:before:border-y-transparent
5060
+ tw:before:border-l-sq-black tw:before:border-r-transparent`;
5061
+ const arrowBottom = `${arrowBaseClasses} ${centerArrowHorizontally} tw:before:-top-4 tw:before:border-b-sq-black
5062
+ tw:before:border-r-transparent tw:before:border-l-transparent tw:before:border-t-transparent`;
5063
+ const arrowTop = `${arrowBaseClasses} ${centerArrowHorizontally} tw:before:-bottom-4 tw:before:border-b-transparent
5064
+ tw:before:border-t-sq-black tw:before:border-l-transparent tw:before:border-r-transparent`;
5059
5065
  const placements = {
5060
- top: `-tw-top-2 -tw-translate-y-full tw-left-1/2 -tw-translate-x-1/2 ${arrowTop}`,
5061
- left: `-tw-translate-x-full -tw-left-3 -tw-translate-y-1/2 tw-top-1/2 ${arrowLeft}`,
5062
- right: `tw-translate-x-full -tw-right-3 -tw-translate-y-1/2 tw-top-1/2 ${arrowRight}`,
5063
- bottom: `-tw-bottom-2 tw-translate-y-full tw-left-1/2 -tw-translate-x-1/2 ${arrowBottom}`,
5066
+ top: `tw:-top-2 tw:-translate-y-full tw:left-1/2 tw:-translate-x-1/2 ${arrowTop}`,
5067
+ left: `tw:-translate-x-full tw:-left-3 tw:-translate-y-1/2 tw:top-1/2 ${arrowLeft}`,
5068
+ right: `tw:translate-x-full tw:-right-3 tw:-translate-y-1/2 tw:top-1/2 ${arrowRight}`,
5069
+ bottom: `tw:-bottom-2 tw:translate-y-full tw:left-1/2 tw:-translate-x-1/2 ${arrowBottom}`,
5064
5070
  };
5065
- return (jsxs("div", { className: "tw-group tw-relative tw-inline-block", children: [children, jsx$1("div", { className: `tw-z-50 tw-whitespace-nowrap tw-hidden group-hover:tw-inline-block group-hover:tw-delay-[${delay}ms]
5066
- tw-absolute tw-opacity-0 group-hover:tw-opacity-100 tw-rounded tw-bg-black tw-p-2 tw-text-xs tw-text-white ${placements[position]}`, children: text })] }));
5071
+ return (jsxs("div", { className: "tw:group tw:relative tw:inline-block", children: [children, jsx$1("div", { className: `tw:z-50 tw:whitespace-nowrap tw:hidden tw:group-hover:inline-block tw:group-hover:delay-[${delay}ms]
5072
+ tw:absolute tw:opacity-0 tw:group-hover:opacity-100 tw:rounded tw:bg-sq-black tw:p-2 tw:text-xs tw:text-sq-white ${placements[position]}`, children: text })] }));
5067
5073
  };
5068
5074
 
5069
5075
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
@@ -7563,8 +7569,8 @@ const QTip = () => {
7563
7569
  : positionTooltip();
7564
7570
  }
7565
7571
  };
7566
- 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-white tw-z-[9999] fade-in ' +
7567
- (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-[10px] tw-h-[10px] tw-rotate-45 tw-bg-black", ref: tooltipArrowRef })] }) }));
7572
+ 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", ref: tooltipArrowRef })] }) }));
7568
7574
  };
7569
7575
 
7570
7576
  function _typeof(o) {
@@ -13979,70 +13985,77 @@ var CreatableSelect = /*#__PURE__*/forwardRef(function (props, ref) {
13979
13985
  });
13980
13986
  var CreatableSelect$1 = CreatableSelect;
13981
13987
 
13982
- const baseClasses$3 = ['focus:tw-ring-0', 'disabled:tw-cursor-not-allowed'].join(' ');
13983
- const containerStyles = ['tw-bg-white', 'dark:tw-bg-sq-dark-background'].join(' ');
13984
- const errorClasses$2 = 'tw-border-sq-danger-color';
13985
- const borderColorClasses$2 = ['tw-border-sq-disabled-gray', 'dark:tw-border-sq-dark-disabled-gray'].join(' ');
13986
- const borderStyles$3 = ['tw-border-solid', 'tw-border'].join(' ');
13988
+ const baseClasses$3 = ['tw:focus:ring-0', 'tw:disabled:cursor-not-allowed'].join(' ');
13989
+ const containerStyles = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
13990
+ const errorClasses$2 = 'tw:border-sq-danger';
13991
+ const borderColorClasses$2 = ['tw:border-sq-disabled-gray', 'tw:dark:border-sq-dark-disabled-gray'].join(' ');
13992
+ const borderStyles$3 = ['tw:border-solid', 'tw:border'].join(' ');
13987
13993
  const borderActiveClasses = [
13988
- 'hover:tw-border-sq-color-dark',
13989
- 'focus-within:tw-border-sq-color-dark',
13990
- 'active:tw-border-sq-color-dark',
13991
- 'dark:hover:tw-border-sq-color-dark-dark',
13992
- 'dark:focus-within:tw-border-sq-color-dark-dark',
13993
- 'dark:active:tw-border-sq-color-dark-dark',
13994
+ 'tw:hover:border-sq-theme-dark',
13995
+ 'tw:focus-within:border-sq-theme-dark',
13996
+ 'tw:active:border-sq-theme-dark',
13997
+ 'tw:dark:hover:border-sq-theme-dark-dark',
13998
+ 'tw:dark:focus-within:border-sq-theme-dark-dark',
13999
+ 'tw:dark:active:border-sq-theme-dark-dark',
13994
14000
  ].join(' ');
13995
- const textStyles = ['tw-text-sq-text-color', 'dark:tw-text-sq-dark-text', 'tw-text-sm'].join(' ');
14001
+ const textStyles = ['tw:text-sq-text-color', 'tw:dark:text-sq-dark-text', 'tw:text-sm'].join(' ');
13996
14002
  const textActiveStyles = [
13997
- 'hover:tw-text-sq-color-dark',
13998
- 'dark:tw-text-sq-dark-disabled-gray',
13999
- 'dark:hover:tw-text-sq-color-dark-dark',
14003
+ 'tw:hover:text-sq-theme-dark',
14004
+ 'tw:focus:text-sq-theme-dark',
14005
+ 'tw:active:text-sq-theme-dark',
14006
+ 'tw:dark:text-sq-dark-disabled-gray',
14007
+ 'tw:dark:hover:text-sq-theme-dark-dark',
14008
+ 'tw:dark:focus:text-sq-theme-dark-dark',
14009
+ 'tw:dark:active:text-sq-theme-dark-dark',
14010
+ 'tw:hover:text-sq-theme-dark',
14011
+ 'tw:dark:text-sq-dark-disabled-gray',
14012
+ 'tw:dark:hover:text-sq-theme-dark-dark',
14000
14013
  ].join(' ');
14001
14014
  const menuStyles = [
14002
- 'tw-border-solid',
14003
- 'tw-border',
14004
- 'tw-rounded-b',
14005
- 'tw-border-sq-disabled-gray',
14006
- 'dark:tw-border-sq-dark-disabled-gray',
14007
- 'tw-whitespace-nowrap',
14008
- 'tw-min-w-fit',
14009
- '!tw-z-[9999]',
14015
+ 'tw:border-solid',
14016
+ 'tw:border',
14017
+ 'tw:rounded-b',
14018
+ 'tw:border-sq-disabled-gray',
14019
+ 'tw:dark:border-sq-dark-disabled-gray',
14020
+ 'tw:whitespace-nowrap',
14021
+ 'tw:min-w-fit',
14022
+ 'tw:!z-[9999]',
14010
14023
  ].join(' ');
14011
14024
  const menuListStyles = [
14012
- 'tw-rounded-b',
14013
- 'tw-bg-white',
14014
- 'dark:tw-bg-sq-dark-background',
14015
- 'tw-min-w-fit',
14016
- '!tw-z-[9999]',
14025
+ 'tw:rounded-b',
14026
+ 'tw:bg-sq-white',
14027
+ 'tw:dark:bg-sq-dark-background',
14028
+ 'tw:min-w-fit',
14029
+ 'tw:!z-[9999]',
14017
14030
  'specSelectMenu',
14018
14031
  ].join(' ');
14019
14032
  const groupHeadingStyles = [
14020
- 'tw-bg-sq-light-gray',
14021
- 'dark:tw-bg-sq-dark-disabled-gray',
14022
- 'tw-text-sq-darkish-gray',
14023
- 'tw-py-1',
14024
- 'tw-px-2.5',
14033
+ 'tw:bg-sq-light-gray',
14034
+ 'tw:dark:bg-sq-dark-disabled-gray',
14035
+ 'tw:text-sq-darkish-gray',
14036
+ 'tw:py-1',
14037
+ 'tw:px-2.5',
14025
14038
  'specSelectGroupHeading',
14026
14039
  ].join(' ');
14027
14040
  const optionStyles = [
14028
- 'hover:tw-bg-sq-gray-highlight',
14029
- 'hover:tw-cursor-pointer',
14030
- 'dark:hover:tw-bg-sq-gray-highlight-dark',
14031
- 'tw-py-1',
14032
- 'tw-px-2.5',
14041
+ 'tw:hover:bg-sq-gray-highlight',
14042
+ 'tw:hover:cursor-pointer',
14043
+ 'tw:dark:hover:bg-sq-gray-highlight-dark',
14044
+ 'tw:py-1',
14045
+ 'tw:px-2.5',
14033
14046
  'specSelectOption',
14034
14047
  ].join(' ');
14035
- const disabledClasses$3 = ['tw-bg-sq-field-disabled-gray', '!tw-cursor-not-allowed', 'tw-opacity-50'].join(' ');
14036
- const dropDownIndicatorStyles = `tw-text-sq-disabled-gray ${textActiveStyles} specOpenIt`;
14037
- const placeholderStyles = ['tw-text-gray-400', 'dark:tw-text-sq-dark-text-lighter', 'specOpenSelect'].join(' ');
14048
+ const disabledClasses$3 = ['tw:bg-sq-field-disabled-gray', 'tw:!cursor-not-allowed', 'tw:opacity-50'].join(' ');
14049
+ const dropDownIndicatorStyles = `tw:text-sq-disabled-gray ${textActiveStyles} specOpenIt`;
14050
+ const placeholderStyles = ['tw:text-gray-400', 'tw:dark:text-sq-dark-text-lighter', 'specOpenSelect'].join(' ');
14038
14051
  const multiValueStyles = [
14039
- 'tw-bg-sq-disabled-gray',
14040
- 'dark:tw-bg-sq-multi-gray-dark',
14041
- 'tw-text-sm',
14042
- 'tw-py-0.5',
14043
- 'tw-px-1',
14044
- 'tw-m-0.5',
14045
- 'tw-rounded-sm',
14052
+ 'tw:bg-sq-disabled-gray',
14053
+ 'tw:dark:bg-sq-multi-gray-dark',
14054
+ 'tw:text-sm',
14055
+ 'tw:py-0.5',
14056
+ 'tw:px-1',
14057
+ 'tw:m-0.5',
14058
+ 'tw:rounded-sm',
14046
14059
  'specOpenSelect',
14047
14060
  ].join(' ');
14048
14061
  /**
@@ -14107,38 +14120,38 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
14107
14120
  filterOption: filterOption ? filterOption : filterConfig ? createFilter(filterConfig) : undefined,
14108
14121
  classNames: {
14109
14122
  control: ({ menuIsOpen }) => {
14110
- let border = menuIsOpen ? 'tw-rounded-t-md' : 'tw-rounded-md';
14123
+ let border = menuIsOpen ? 'tw:rounded-t-md' : 'tw:rounded-md';
14111
14124
  // if it's on the left side of the input group make sure the right side is straight and not curved
14112
14125
  if (inputGroup === 'left') {
14113
- border = menuIsOpen ? 'tw-rounded-tl-md' : 'tw-rounded-l-md';
14126
+ border = menuIsOpen ? 'tw:rounded-tl-md' : 'tw:rounded-l-md';
14114
14127
  }
14115
14128
  else if (inputGroup === 'right') {
14116
- border = menuIsOpen ? 'tw-rounded-tr-md' : 'tw-rounded-r-md';
14129
+ border = menuIsOpen ? 'tw:rounded-tr-md' : 'tw:rounded-r-md';
14117
14130
  }
14118
14131
  const appliedClasses = `${borderStyles$3} ${isDisabled ? '' : borderActiveClasses} ${border} ${showError ? errorClasses$2 : borderColorClasses$2} ${small ? 'reactSelectMinHeightSmall' : 'reactSelectMinHeight'} ${controlClassNames}`;
14119
- return `${appliedClasses} ${baseClasses$3} ${containerStyles} specSelectControl ${isDisabled ? disabledClasses$3 : ''} ${small ? 'tw-pl-2 tw-pr-1' : 'tw-pl-2.5 tw-pr-1.5'}`;
14132
+ return `${appliedClasses} ${baseClasses$3} ${containerStyles} specSelectControl ${isDisabled ? disabledClasses$3 : ''} ${small ? 'tw:pl-2 tw:pr-1' : 'tw:pl-2.5 tw:pr-1.5'}`;
14120
14133
  },
14121
14134
  placeholder: () => placeholderStyles,
14122
14135
  container: ({ selectProps }) => {
14123
- const containerBorderStyles = selectProps?.menuIsOpen ? 'tw-rounded-t-md' : 'tw-rounded-md';
14124
- return `${textStyles} ${extraClassNames} ${containerBorderStyles} !tw-pointer-events-auto`;
14136
+ const containerBorderStyles = selectProps?.menuIsOpen ? 'tw:rounded-t-md' : 'tw:rounded-md';
14137
+ return `${textStyles} ${extraClassNames} ${containerBorderStyles} tw:!pointer-events-auto`;
14125
14138
  },
14126
14139
  input: () => textStyles + ' specSelectInput',
14127
14140
  menuList: () => menuListStyles,
14128
14141
  menu: () => menuStyles,
14129
- menuPortal: () => '!tw-z-[9000]',
14142
+ menuPortal: () => 'tw:!z-[9000]',
14130
14143
  dropdownIndicator: () => dropDownIndicatorStyles,
14131
14144
  option: ({ isSelected, isDisabled }) => {
14132
14145
  let classes = optionStyles;
14133
14146
  if (isDisabled) {
14134
14147
  classes += ' specDisabledOption ';
14135
14148
  }
14136
- return isSelected ? classes + ' tw-bg-sq-colored-hover dark:tw-bg-sq-colored-hover-dark' : classes;
14149
+ return isSelected ? classes + ' tw:bg-sq-colored-hover tw:dark:bg-sq-colored-hover-dark' : classes;
14137
14150
  },
14138
14151
  singleValue: () => 'specOpenSelect',
14139
14152
  multiValue: () => multiValueStyles,
14140
- multiValueRemove: () => 'hover:tw-text-sq-danger-color specSelectMultiValueRemove',
14141
- clearIndicator: () => 'tw-text-sq-disabled-gray hover:tw-text-sq-danger-color specClearSelect',
14153
+ multiValueRemove: () => 'tw:hover:text-sq-danger specSelectMultiValueRemove',
14154
+ clearIndicator: () => 'tw:text-sq-disabled-gray tw:hover:text-sq-danger specClearSelect',
14142
14155
  group: () => 'specSelectGroup',
14143
14156
  groupHeading: () => groupHeadingStyles,
14144
14157
  },
@@ -14530,11 +14543,11 @@ var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
14530
14543
  const Dialog = Root$4;
14531
14544
  const DialogPortal = Portal$1;
14532
14545
  const DialogClose = Close;
14533
- const DialogContent = React__default.forwardRef(({ className, children, ...props }, ref) => (jsxs(DialogPortal, { children: [jsx$1("div", { className: "tw-select-none tw-fixed tw-w-full tw-h-full tw-opacity-50 tw-inset-0 tw-z-[1009] tw-bg-sq-dark-background\n data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0\n data-[state=open]:fade-in-0 " }), jsxs(Content$2, { ref: ref, className: `tw-fixed tw-left-[50%] tw-top-0 tw-my-6 tw-translate-x-[-50%] tw-z-[1010] tw-grid
14534
- tw-gap-4 tw-border tw-bg-sq-white dark:tw-bg-sq-dark-background tw-p-6 tw-shadow-lg tw-duration-200
14535
- tw-rounded-lg ${className}`, ...props, children: [jsx$1(DialogTitle$1, { className: "tw-hidden" }), children] })] })));
14546
+ const DialogContent = React__default.forwardRef(({ className, children, ...props }, ref) => (jsxs(DialogPortal, { children: [jsx$1("div", { className: "tw:select-none tw:fixed tw:w-full tw:h-full tw:opacity-50 tw:inset-0 tw:z-[1009] tw:bg-sq-dark-background\n tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0\n tw:data-[state=open]:fade-in-0 " }), jsxs(Content$2, { ref: ref, className: `tw:fixed tw:left-[50%] tw:top-0 tw:my-6 tw:translate-x-[-50%] tw:z-[1010] tw:grid
14547
+ tw:gap-4 tw:border tw:bg-sq-white tw:dark:bg-sq-dark-background tw:shadow-lg tw:duration-200
14548
+ tw:rounded-lg ${className}`, ...props, children: [jsx$1(DialogTitle$1, { className: "tw:hidden" }), children] })] })));
14536
14549
  DialogContent.displayName = Content$2.displayName;
14537
- const DialogHeader = (props) => (jsx$1("div", { className: "tw-w-full tw-justify-between", children: jsx$1("div", { ...props }) }));
14550
+ const DialogHeader = (props) => (jsx$1("div", { className: "tw:w-full tw:justify-between", children: jsx$1("div", { ...props }) }));
14538
14551
  DialogHeader.displayName = 'DialogHeader';
14539
14552
  const DialogFooter = (props) => jsx$1("div", { ...props });
14540
14553
  DialogFooter.displayName = 'DialogFooter';
@@ -14572,26 +14585,26 @@ const Modal = ({ titleIcon, title = 'Modal title example', titleSuffixLabel, sub
14572
14585
  let titleIconElement = jsx$1(Fragment, {});
14573
14586
  if (titleIcon) {
14574
14587
  if (typeof titleIcon === 'string') {
14575
- titleIconElement = (jsx$1(Icon, { icon: titleIcon, testId: "modalTitleIcon", extraClassNames: "tw-flex tw-text-xl tw-mt-1" }));
14588
+ titleIconElement = (jsx$1(Icon, { icon: titleIcon, testId: "modalTitleIcon", extraClassNames: "tw:flex tw:text-xl tw:mt-1" }));
14576
14589
  }
14577
14590
  else {
14578
- titleIconElement = jsx$1("div", { className: "tw-mt-1.5", children: titleIcon });
14591
+ titleIconElement = jsx$1("div", { className: "tw:mt-1.5", children: titleIcon });
14579
14592
  }
14580
14593
  }
14581
- 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-color 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, {})] }));
14594
+ 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, {})] }));
14582
14595
  };
14583
- 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-p-0 tw-border-none tw-shadow-none dark:tw-text-sq-dark-text !tw-gap-0`, {
14584
- 'tw-max-w-xs': size === 'xs',
14585
- 'tw-max-w-sm': size === 'sm',
14586
- 'tw-max-w-md': size === 'md',
14587
- 'tw-max-w-lg': size === 'lg',
14588
- 'tw-max-w-xl': size === 'xl',
14589
- 'tw-max-w-2xl': size === '2xl',
14590
- 'tw-max-w-3xl': size === '3xl',
14591
- 'tw-max-w-4xl': size === '4xl',
14592
- 'tw-max-w-5xl': size === '5xl',
14593
- 'tw-max-w-6xl': size === '6xl',
14594
- }, dialogClassName), children: [jsxs(DialogHeader, { className: "modal-header tw-flex tw-w-full tw-justify-between tw-border-sq-disabled-gray\n dark:tw-border-sq-dark-disabled-gray tw-border-0 tw-border-b tw-px-6 tw-py-4", children: [jsx$1("div", { className: "tw-flex tw-w-full", children: renderTitle() }), !hideCloseIcon && (jsx$1(DialogClose, { autoFocus: false, className: "[&:has(:focus-visible)]:none tw-opacity-70 tw-bg-transparent hover:tw-opacity-100 close tw-text-base tw-cursor-pointer tw-ml-4", "data-testid": "closeButton", children: jsx$1("span", { className: "tw-cursor-pointer", children: "\u00D7" }) }))] }), jsx$1(DialogDescription, { className: "modal-body tw-px-6 tw-py-4 tw-overflow-y-auto", asChild: true, children: children }), !hideFooterButtons && (jsx$1(DialogFooter, { className: "modal-footer tw-px-6 tw-py-4", children: modalFooter ?? (jsxs("div", { className: "tw-flex tw-w-full tw-justify-between", "data-testid": "modalFooter", children: [jsx$1("div", { className: "tw-flex tw-justify-start", children: customButton && (jsx$1(Button, { label: customButtonLabel, onClick: onClickCustomButton, disabled: disableCustomButton, extraClassNames: "tw-justify-start tw-min-w-[100px]", testId: "customButton", variant: customButtonVariant })) }), jsxs("div", { className: "tw-flex tw-justify-end", children: [jsx$1("div", { className: "tw-flex tw-items-center", children: middleFooterSection }), !hideCancelButton && (jsx$1(DialogClose, { asChild: true, children: jsx$1(Button, { label: cancelButtonLabel, extraClassNames: "tw-mr-5 tw-min-w-[100px]", tooltip: cancelButtonTooltip, variant: "outline", stopPropagation: false, testId: "cancelButton" }) })), !hideSubmitButton && (jsx$1(Button, { label: submitButtonLabel, onClick: handleSubmit, disabled: disableSubmitButton || isLoading, variant: submitButtonVariant, stopPropagation: stopPropagationSubmitButton, tooltip: submitButtonTooltip, icon: isLoading ? 'fc-loading-notch tw-animate-spin' : undefined, iconPosition: "left", testId: "submitButton", extraClassNames: "tw-min-w-[100px]" }))] })] })) }))] }) })) : (jsx$1(Fragment, {}));
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`, {
14597
+ 'tw:max-w-xs': size === 'xs',
14598
+ 'tw:max-w-sm': size === 'sm',
14599
+ 'tw:max-w-md': size === 'md',
14600
+ 'tw:max-w-lg': size === 'lg',
14601
+ 'tw:max-w-xl': size === 'xl',
14602
+ 'tw:max-w-2xl': size === '2xl',
14603
+ 'tw:max-w-3xl': size === '3xl',
14604
+ 'tw:max-w-4xl': size === '4xl',
14605
+ 'tw:max-w-5xl': size === '5xl',
14606
+ 'tw:max-w-6xl': size === '6xl',
14607
+ }, dialogClassName), children: [jsxs(DialogHeader, { className: "modal-header tw:flex tw:w-full tw:justify-between tw:border-sq-disabled-gray\n tw:dark:border-sq-dark-disabled-gray tw:border-0 tw:border-b tw:px-6 tw:py-4", children: [jsx$1("div", { className: "tw:flex tw:w-full", children: renderTitle() }), !hideCloseIcon && (jsx$1(DialogClose, { autoFocus: false, className: "tw:[&:has(:focus-visible)]:none tw:opacity-70 tw:bg-transparent tw:hover:opacity-100 close tw:text-base tw:cursor-pointer tw:ml-4", "data-testid": "closeButton", children: jsx$1("span", { className: "tw:cursor-pointer", children: "\u00D7" }) }))] }), jsx$1(DialogDescription, { className: "modal-body tw:px-6 tw:py-4 tw:overflow-y-auto", asChild: true, children: children }), !hideFooterButtons && (jsx$1(DialogFooter, { className: "modal-footer tw:px-6 tw:py-4", children: modalFooter ?? (jsxs("div", { className: "tw:flex tw:w-full tw:justify-between", "data-testid": "modalFooter", children: [jsx$1("div", { className: "tw:flex tw:justify-start", children: customButton && (jsx$1(Button, { label: customButtonLabel, onClick: onClickCustomButton, disabled: disableCustomButton, extraClassNames: "tw:justify-start tw:min-w-25", testId: "customButton", variant: customButtonVariant })) }), jsxs("div", { className: "tw:flex tw:justify-end", children: [jsx$1("div", { className: "tw:flex tw:items-center", children: middleFooterSection }), !hideCancelButton && (jsx$1(DialogClose, { asChild: true, children: jsx$1(Button, { label: cancelButtonLabel, extraClassNames: "tw:mr-5 tw:min-w-25", tooltip: cancelButtonTooltip, variant: "outline", stopPropagation: false, testId: "cancelButton" }) })), !hideSubmitButton && (jsx$1(Button, { label: submitButtonLabel, onClick: handleSubmit, disabled: disableSubmitButton || isLoading, variant: submitButtonVariant, stopPropagation: stopPropagationSubmitButton, tooltip: submitButtonTooltip, icon: isLoading ? 'fc-loading-notch tw:animate-spin' : undefined, iconPosition: "left", testId: "submitButton", extraClassNames: "tw:min-w-25" }))] })] })) }))] }) })) : (jsx$1(Fragment, {}));
14595
14608
  };
14596
14609
 
14597
14610
  function createCollection(name) {
@@ -15055,11 +15068,11 @@ const Tabs = ({ tabs, defaultActiveTab, activeTab, onTabSelect, extraClassNames,
15055
15068
  return;
15056
15069
  onTabSelect && onTabSelect(tabId);
15057
15070
  };
15058
- return (jsxs(Root2$2, { 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, children: [jsx$1(List, { className: `tw-flex tw-flex-row tw-flex-wrap tw-z-[1001]`, children: tabs.map(({ id, icon, label, tabExtraClassNames, testId: tabsTestId, disabled, tabLabelExtraClassNames = '' }, index) => (jsx$1(Trigger$2, { 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
15059
- ? 'tw-border-b-sq-color-dark dark:tw-border-b-sq-color-dark tw-border-b-[3px]'
15060
- : 'hover:tw-bg-sq-light-gray tw-border-b-[1px] hover:dark:tw-bg-gray-700'}`, "data-testid": tabsTestId, disabled: disabled, value: id, children: jsxs("span", { className: "tw-flex tw-items-center tw-overflow-hidden tw-pb-[3px]", children: [icon && (jsx$1(Icon, { icon: icon, testId: `${id}_tab-icon`, extraClassNames: "tw-text-[0.9375rem] tw-mr-[7px] tw-flex-shrink-0" })), jsx$1("span", { className: `tw-text-[0.875rem] tw-font-medium tw-whitespace-nowrap tw-overflow-hidden tw-text-ellipsis ${activeTab === id
15061
- ? 'dark:tw-text-sq-dark-text tw-text-gray-500'
15062
- : 'dark:tw-text-sq-color-dark-dark tw-text-sq-color-dark'} ${tabLabelExtraClassNames}`, children: label })] }) }, `${label}-${id}-${index}`))) }), tabs.map((tab, index) => (jsx$1(Content$1, { 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 || ''}`, value: tab.id, children: tab.content }, `${tab.label}_${index}_content`)))] }));
15071
+ return (jsxs(Root2$2, { className: `tw:flex tw:flex-col tw:min-w-75 tw:max-w-full tw:flex-grow tw:focus-visible:outline-none ${extraClassNames || ''}`, defaultValue: defaultActiveTab, "data-testid": testId, id: id, value: activeTab, onValueChange: handleTabSelect, children: [jsx$1(List, { className: `tw:flex tw:flex-row tw:flex-wrap tw:z-[1001]`, children: tabs.map(({ id, icon, label, tabExtraClassNames, testId: tabsTestId, disabled, tabLabelExtraClassNames = '' }, index) => (jsx$1(Trigger$2, { className: `tw:bg-sq-white tw:dark:bg-sq-dark-background tw:h-sq-25 tw:focus-visible:outline-none tw:min-w-25 tw:px-4 tw:border-solid tw:flex tw:flex-1 tw:justify-center tw:items-center tw:border-r-[2px] tw:last:border-r-0 tw:border-sq-overlay tw:dark:border-gray-700 ${stretchTabs ? '' : 'tw:max-w-max tw:min-w-fit'} ${tabExtraClassNames || ''} ${activeTab === id
15072
+ ? 'tw:border-b-sq-theme-darker tw:dark:border-b-sq-theme-darker tw:border-b-[0.1875rem]'
15073
+ : 'tw:hover:bg-sq-light-gray tw:border-b-[0.0625rem] tw:hover:dark:bg-gray-700'}`, "data-testid": tabsTestId, disabled: disabled, value: id, children: jsxs("span", { className: "tw:flex tw:items-center tw:overflow-hidden", children: [icon && (jsx$1(Icon, { icon: icon, testId: `${id}_tab-icon`, extraClassNames: "tw:text-sq-15 tw:mr-sq-7 tw:flex-shrink-0" })), jsx$1("span", { className: `tw:text-sq-13 tw:font-medium tw:whitespace-nowrap tw:overflow-hidden tw:text-ellipsis ${activeTab === id
15074
+ ? 'tw:dark:text-sq-dark-text tw:text-gray-500'
15075
+ : 'tw:dark:text-sq-theme-darker tw:text-sq-theme-dark'} ${tabLabelExtraClassNames}`, children: label })] }) }, `${label}-${id}-${index}`))) }), tabs.map((tab, index) => (jsx$1(Content$1, { className: `tw:bg-sq-white tw:dark:bg-sq-dark-background tw:overflow-y-auto tw:-mt-sq-1 tw:border-t-[0.0625rem] tw:border-t-sq-overlay tw:dark:border-t-gray-700 tw:z-[500] tw:flex tw:flex-col tw:flex-grow tw:focus-visible:outline-none ${tab.tabContentExtraClassNames || ''}`, value: tab.id, children: tab.content }, `${tab.label}_${index}_content`)))] }));
15063
15076
  };
15064
15077
 
15065
15078
  var COLLAPSIBLE_NAME = "Collapsible";
@@ -15487,18 +15500,18 @@ var Trigger2 = AccordionTrigger;
15487
15500
  var Content2$2 = AccordionContent;
15488
15501
 
15489
15502
  const Accordion = ({ accordionItems, defaultValue, value, onItemSelect, disabled, extraClassNames, testId, }) => {
15490
- return (jsx$1(Root2$1, { className: `tw-rounded-md tw-w-full focus-visible:tw-outline-none ${extraClassNames || ''}`, type: "single", defaultValue: defaultValue, value: value, collapsible: true, "data-testid": testId, onValueChange: (_value) => onItemSelect(_value), children: accordionItems.map((item) => (jsxs(Item, { className: `tw-bg-transparent tw-p-0 tw-flex tw-flex-col tw-w-full`, disabled: disabled, value: item.value, children: [jsx$1(Trigger2, { disabled: disabled, className: `tw-w-full tw-cursor-default focus-visible:tw-outline-none`, children: item.trigger }), jsx$1(Content2$2, { className: `data-[state=open]:tw-animate-slideDown data-[state=closed]:tw-animate-slideUp tw-overflow-hidden focus-visible:tw-outline-none ${item.contentClassNames || ''}`, children: item.content })] }, item.value))) }));
15503
+ return (jsx$1(Root2$1, { className: `tw:rounded-md tw:w-full tw:focus-visible:outline-none ${extraClassNames || ''}`, type: "single", defaultValue: defaultValue, value: value, collapsible: true, "data-testid": testId, onValueChange: (_value) => onItemSelect(_value), children: accordionItems.map((item) => (jsxs(Item, { className: `tw:p-0 tw:flex tw:flex-col tw:w-full`, disabled: disabled, value: item.value, children: [jsx$1(Trigger2, { disabled: disabled, className: `tw:w-full tw:cursor-default tw:focus-visible:outline-none tw:bg-transparent`, children: item.trigger }), jsx$1(Content2$2, { className: `tw:data-[state=open]:animate-slideDown tw:data-[state=closed]:animate-slideUp tw:overflow-hidden tw:focus-visible:outline-none ${item.contentClassNames || ''}`, children: item.content })] }, item.value))) }));
15491
15504
  };
15492
15505
 
15493
- const bgStyles$2 = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
15506
+ const bgStyles$2 = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
15494
15507
  const borderStyles$2 = [
15495
- 'tw-border-solid',
15496
- 'tw-border',
15497
- 'tw-rounded-popover',
15498
- 'tw-border-sq-disabled-gray',
15499
- 'dark:tw-border-gray-500',
15508
+ 'tw:border-solid',
15509
+ 'tw:border',
15510
+ 'tw:rounded-[0.5rem]',
15511
+ 'tw:border-sq-disabled-gray',
15512
+ 'tw:dark:border-gray-500',
15500
15513
  ].join(' ');
15501
- const disabledClasses$2 = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
15514
+ const disabledClasses$2 = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
15502
15515
  const ButtonWithPopover = ({ children, trigger, id, hasArrow, extraTriggerClassNames, extraPopoverClassNames, containerTestId, onInteractOutside, onPointerDownOutside, isTriggerAsChild = false, shouldTriggerFullWidth = false, disabled = false, align = 'end', alignOffset = -35, placement = 'bottom', placementOffset = 2, isHoverEnabled = false, hoverOpenDelay = 300, onOpenChange, isOpen, isCloseOnContentClick = false, isPortal = false, ...tooltipProps }) => {
15503
15516
  const tooltipData = getQTipData(tooltipProps);
15504
15517
  const timeout = useRef(null);
@@ -15529,12 +15542,12 @@ const ButtonWithPopover = ({ children, trigger, id, hasArrow, extraTriggerClassN
15529
15542
  };
15530
15543
  React.useEffect(() => clearHoverTimeout, []);
15531
15544
  const renderContent = () => {
15532
- return (jsx$1(Content2$3, { sideOffset: placementOffset, align: align, side: placement, onInteractOutside: onInteractOutside, onPointerDownOutside: onPointerDownOutside, alignOffset: isHoverEnabled ? -10 : alignOffset, asChild: true, onClick: () => isCloseOnContentClick && onOpenChange && onOpenChange(false), className: "focus-visible:tw-outline-none tw-outline-none tw-w-full tw-h-full", children: jsxs("div", { "data-testid": containerTestId, className: `${bgStyles$2} ${borderStyles$2} tw-relative tw-z-[1200] tw-min-w-6 focus-visible:tw-outline-none tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out
15533
- data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade tw-text-sq-text-color
15534
- ${extraPopoverClassNames || ''}`, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: "tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-mt-[-7px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500" }) })), children] }) }));
15545
+ return (jsx$1(Content2$3, { sideOffset: placementOffset, align: align, side: placement, onInteractOutside: onInteractOutside, onPointerDownOutside: onPointerDownOutside, alignOffset: isHoverEnabled ? -10 : alignOffset, asChild: true, onClick: () => isCloseOnContentClick && onOpenChange && onOpenChange(false), className: "tw:focus-visible:outline-none tw:outline-none tw:w-full tw:h-full", children: jsxs("div", { "data-testid": containerTestId, className: `${bgStyles$2} ${borderStyles$2} tw:relative tw:z-[1200] tw:min-w-6 tw:focus-visible:outline-none tw:outline-none tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out
15546
+ tw:data-[side=top]:animate-slideDownAndFade tw:data-[side=right]:animate-slideLeftAndFade tw:data-[side=bottom]:animate-slideUpAndFade tw:data-[side=left]:animate-slideRightAndFade tw:text-sq-text-color
15547
+ ${extraPopoverClassNames || ''}`, children: [hasArrow && (jsx$1(Arrow2$2, { asChild: true, children: jsx$1("div", { className: "tw:fill-transparent tw:bg-sq-white tw:w-sq-15 tw:h-sq-15 tw:-mt-sq-7 tw:rotate-45 tw:dark:bg-sq-dark-background tw:border-b tw:border-r tw:border-sq-disabled-gray tw:dark:border-gray-500" }) })), children] }) }));
15535
15548
  };
15536
15549
  const renderPopover = (popoverOpenState) => {
15537
- return (jsxs(Root2$3, { open: popoverOpenState, defaultOpen: false, onOpenChange: onOpenChange, children: [trigger ? (jsx$1(Trigger$3, { id: id, asChild: isTriggerAsChild, className: `focus-visible:tw-outline-none tw-outline-none ${shouldTriggerFullWidth ? 'tw-w-full tw-h-full' : ''}`, disabled: disabled, children: jsx$1("div", { ...tooltipData, onMouseOver: onHoverStart, onMouseOut: onHoverEnd, className: `tw-bg-transparent focus-visible:tw-outline-none tw-outline-none ${disabled ? disabledClasses$2 : ''} ${shouldTriggerFullWidth ? 'tw-flex tw-flex-col tw-items-center tw-justify-center' : 'tw-inline'} ${extraTriggerClassNames || ''}`, children: trigger }) })) : (jsx$1(Trigger$3, { asChild: true, children: jsx$1("div", {}) })), isPortal ? jsx$1(Portal$2, { children: renderContent() }) : renderContent()] }));
15550
+ return (jsxs(Root2$3, { open: popoverOpenState, defaultOpen: false, onOpenChange: onOpenChange, children: [trigger ? (jsx$1(Trigger$3, { id: id, asChild: isTriggerAsChild, className: `tw:focus-visible:outline-none tw:outline-none tw:bg-transparent ${shouldTriggerFullWidth ? 'tw:w-full tw:h-full' : ''}`, disabled: disabled, children: jsx$1("div", { ...tooltipData, onMouseOver: onHoverStart, onMouseOut: onHoverEnd, className: `tw:focus-visible:outline-none tw:outline-none tw:dark:text-sq-white ${disabled ? disabledClasses$2 : ''} ${shouldTriggerFullWidth ? 'tw:flex tw:flex-col tw:items-center tw:justify-center' : 'tw:inline'} ${extraTriggerClassNames || ''}`, children: trigger }) })) : (jsx$1(Trigger$3, { asChild: true, children: jsx$1("div", {}) })), isPortal ? jsx$1(Portal$2, { children: renderContent() }) : renderContent()] }));
15538
15551
  };
15539
15552
  return isHoverEnabled ? renderPopover(isHoveredOpen) : renderPopover(isOpen);
15540
15553
  };
@@ -16604,65 +16617,65 @@ var SubTrigger2 = DropdownMenuSubTrigger;
16604
16617
  var SubContent2 = DropdownMenuSubContent;
16605
16618
 
16606
16619
  const borderStyles$1 = [
16607
- 'tw-border-solid',
16608
- 'tw-border',
16609
- 'tw-rounded-popover',
16610
- 'tw-border-sq-disabled-gray',
16611
- 'dark:tw-border-gray-500',
16620
+ 'tw:border-solid',
16621
+ 'tw:border',
16622
+ 'tw:rounded-[0.5rem]',
16623
+ 'tw:border-sq-disabled-gray',
16624
+ 'tw:dark:border-gray-500',
16612
16625
  ].join(' ');
16613
- const bgStyles$1 = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
16614
- const disabledClasses$1 = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
16626
+ const bgStyles$1 = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
16627
+ const disabledClasses$1 = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
16615
16628
  const ButtonWithDropdown = ({ dropdownItems, triggerIcon, id, extraClassNames = '', contentExtraClassNames = '', containerTestId, disabled = false, align = 'end', placement = 'bottom', placementOffset = 5, alignOffset = -35, hasArrow = false, onOpenChange, isOpen, setFocusOnTriggerOnClose = true, keepFocusInsideDropdown = true, onContainerClick, ...tooltipProps }) => {
16616
16629
  const tooltipData = getQTipData(tooltipProps);
16617
- return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, className: `tw-border-none focus-visible:tw-outline-none focus:tw-outline-none focus-within:tw-outline-none`, disabled: disabled, children: jsx$1("div", { ...tooltipData, className: `tw-bg-transparent tw-flex tw-flex-col tw-items-center focus-visible:tw-outline-none focus:tw-outline-none focus-within:tw-outline-none ${disabled ? disabledClasses$1 : ''} ${extraClassNames}`, children: triggerIcon }) }), jsx$1(Portal2, { children: jsx$1(Content2, { onClick: onContainerClick, sideOffset: placementOffset, side: placement, align: align, alignOffset: alignOffset, asChild: true, onCloseAutoFocus: (e) => !setFocusOnTriggerOnClose && e.preventDefault(), className: "focus-visible:tw-outline-none tw-outline-none", children: jsxs("div", { "data-testid": containerTestId, className: `${bgStyles$1} tw-relative tw-z-[1200] tw-min-w-6 tw-py-2 focus-visible:tw-outline-none tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out forceFont data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade ${borderStyles$1} ${contentExtraClassNames}`, children: [hasArrow && (jsx$1(Arrow2, { asChild: true, children: jsx$1("div", { className: " tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500 tw-mt-[-7px]" }) })), dropdownItems.map((item, index) => {
16630
+ return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, className: `tw:bg-transparent tw:border-none tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within:outline-none`, disabled: disabled, children: jsx$1("div", { ...tooltipData, className: `tw:bg-transparent tw:flex tw:flex-col tw:items-center tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within:outline-none ${disabled ? disabledClasses$1 : ''} ${extraClassNames}`, children: triggerIcon }) }), jsx$1(Portal2, { children: jsx$1(Content2, { onClick: onContainerClick, sideOffset: placementOffset, side: placement, align: align, alignOffset: alignOffset, asChild: true, onCloseAutoFocus: (e) => !setFocusOnTriggerOnClose && e.preventDefault(), className: "tw:focus-visible:outline-none tw:outline-none", children: jsxs("div", { "data-testid": containerTestId, className: `${bgStyles$1} tw:relative tw:z-[1200] 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} ${contentExtraClassNames}`, children: [hasArrow && (jsx$1(Arrow2, { asChild: true, children: jsx$1("div", { className: "tw:fill-transparent tw:bg-sq-white tw:w-sq-15 tw:h-sq-15 tw:rotate-45 tw:dark:bg-sq-dark-background tw:border-b tw:border-r tw:border-sq-disabled-gray tw:dark:border-gray-500 tw:-mt-sq-7" }) })), dropdownItems.map((item, index) => {
16618
16631
  const tooltipData = getQTipData(item);
16619
16632
  if (item.isLabel) {
16620
- return (jsxs(Label2, { className: item.itemExtraClassNames, ...tooltipData, children: [item.icon && (jsx$1(Icon, { icon: item.icon, testId: item.iconTestId, type: "text", color: item.iconColor, extraClassNames: "tw-text-sq-text-color dark:tw-text-sq-white tw-w-[18px]" })), jsx$1("div", { "data-testid": item.labelTestId, className: `tw-text-[0.8125rem] tw-ml-1 ${item.disabled ? 'tw-text-sq-disabled-gray' : 'tw-text-sq-text-color dark:tw-text-sq-white'} tw-not-italic tw-font-normal ${item.labelClasses}`, children: item.label })] }, (item.id || '') + index));
16633
+ return (jsxs(Label2, { className: item.itemExtraClassNames, ...tooltipData, children: [item.icon && (jsx$1(Icon, { icon: item.icon, testId: item.iconTestId, type: "text", color: item.iconColor, extraClassNames: "tw:text-sq-text-color tw:dark:text-sq-white tw:w-4.5" })), jsx$1("div", { "data-testid": item.labelTestId, 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 || '') + index));
16621
16634
  }
16622
16635
  if (Array.isArray(item.subMenuItems) && item.subMenuItems.length > 0) {
16623
- return (jsxs(Sub2, { children: [jsxs(SubTrigger2, { id: id, className: `tw-cursor-pointer tw-flex tw-justify-between dark:tw-text-sq-white hover:tw-bg-sq-gray-highlight dark:hover:tw-bg-sq-gray-highlight-dark tw-leading-none tw-items-center tw-h-[27px] tw-pl-[19px] tw-relative tw-select-none tw-outline-none data-[disabled]:tw-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-[18px] ${item.disabled
16624
- ? '!tw-text-sq-disabled-gray'
16625
- : 'tw-text-sq-text-color dark:tw-text-sq-white'} ${item.iconExtraClassNames || ''}` })), jsx$1("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw-text-[0.8125rem] tw-ml-1 ${item.disabled && '!tw-opacity-30'} tw-not-italic tw-font-semibold ${item.labelClasses}`, children: item.label })] }), jsx$1(Icon, { small: true, icon: "fc-arrow-dropdown -tw-rotate-90", extraClassNames: `${item.disabled ? 'tw-text-sq-disabled-gray' : 'tw-text-sq-text-color dark:tw-text-sq-white'} tw-w-[18px] tw-ml-4 tw-text-[0.5rem] tw-justify-center tw-flex` })] }), jsx$1(Portal2, { children: jsx$1(SubContent2, { className: "focus-visible:tw-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 focus-visible:tw-outline-none tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out forceFont data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade ${borderStyles$1}`, children: item.subMenuItems.map((subItem, subIndex) => {
16626
- return (jsxs(Item2, { onSelect: subItem.onClick, "data-qtip-text": subItem.tooltip, className: "tw-cursor-pointer tw-flex dark:tw-text-sq-white hover:tw-bg-sq-gray-highlight dark:hover:tw-bg-sq-gray-highlight-dark tw-leading-none tw-items-center tw-h-[27px] tw-px-[19px] tw-relative tw-select-none tw-outline-none data-[disabled]:tw-pointer-events-none", disabled: subItem.disabled, children: [subItem.iconClass && (jsx$1(Icon, { icon: subItem.iconClass, type: "text", extraClassNames: `tw-w-[18px] ${item.disabled && '!tw-opacity-30'}` })), jsx$1("div", { className: `tw-text-[0.8125rem] tw-ml-1 ${subItem.disabled
16627
- ? 'tw-text-sq-disabled-gray'
16628
- : 'tw-text-sq-text-color dark:tw-text-sq-white'} tw-not-italic tw-font-normal ${item.labelClasses}`, children: subItem.label })] }, subItem.label + subIndex));
16636
+ 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
16640
+ ? 'tw:text-sq-disabled-gray'
16641
+ : 'tw:text-sq-text-color tw:dark:text-sq-white'} tw:not-italic tw:font-normal ${item.labelClasses}`, children: subItem.label })] }, subItem.label + subIndex));
16629
16642
  }) }) }) })] }, (item.id || item.icon || '') + index));
16630
16643
  }
16631
16644
  return (jsxs("div", { ...tooltipData, children: [jsxs(Item2, { "data-customid": item.itemCustomId, onSelect: (e) => {
16632
16645
  item.onClick(e);
16633
- }, className: `tw-cursor-pointer tw-flex dark:tw-text-sq-white hover:tw-bg-sq-gray-highlight dark:hover:tw-bg-sq-gray-highlight-dark tw-leading-none tw-items-center tw-min-h-[27px] tw-px-[19px] tw-relative tw-select-none tw-outline-none data-[disabled]:tw-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-[18px] ${item.disabled && '!tw-opacity-30'} ${item.iconExtraClassNames || ''}` })), jsx$1("div", { "data-testid": item.labelTestId, "data-customid": item.labelCustomId, className: `tw-text-[0.8125rem] tw-ml-1 ${item.disabled ? 'tw-text-sq-disabled-gray' : 'tw-text-sq-text-color dark:tw-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-[1px] tw-bg-sq-disabled-gray dark:tw-bg-gray-500 tw-my-[8px]" }))] }, (item.id || '') + index));
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));
16634
16647
  })] }) }) })] }));
16635
16648
  };
16636
16649
 
16637
- const baseClasses$2 = 'tw-mx-auto tw-p-4 tw-leading-normal tw-outline-none tw-py-2 tw-px-3 tw-rounded-[10px] tw-w-full tw-relative' +
16638
- ' tw-border-solid tw-border tw-text-sm tw-flex tw-flex-col tw-justify-center tw-items-center';
16639
- const darkTheme$1 = 'dark:tw-bg-sq-colored-hover-dark dark:tw-text-sq-dark-text';
16640
- const lightTheme$1 = 'tw-text-sq-text-color tw-bg-sq-colored-hover';
16641
- const errorClasses$1 = 'tw-border-sq-danger-color';
16642
- const borderColorClasses$1 = 'tw-border-sq-color-dark';
16650
+ const baseClasses$2 = 'tw:mx-auto tw:leading-normal tw:outline-none tw:py-2 tw:px-3 tw:rounded-[10px] tw:w-full tw:relative' +
16651
+ ' tw:border-solid tw:border tw:text-sm tw:flex tw:flex-col tw:justify-center tw:items-center';
16652
+ const darkTheme$1 = 'tw:dark:bg-sq-theme-hover-dark tw:dark:text-sq-text-color-dark';
16653
+ const lightTheme$1 = 'tw:text-sq-text-color tw:bg-sq-theme-highlight/10';
16654
+ const errorClasses$1 = 'tw:border-sq-danger';
16655
+ const borderColorClasses$1 = 'tw:border-sq-theme-dark';
16643
16656
  /**
16644
16657
  * Alert.
16645
16658
  */
16646
16659
  const Alert = ({ children, dismissible = true, onClose, show = true, variant, testId = 'alert-id', id, extraClassNames, ...tooltipProps }) => {
16647
16660
  const appliedTheme = {
16648
16661
  theme: `${lightTheme$1} ${darkTheme$1}`,
16649
- formulaError: 'tw-text-red-800 tw-bg-red-200 !tw-rounded-[4px]',
16650
- danger: 'tw-text-sq-text-color tw-bg-sq-danger-color',
16651
- warning: 'tw-bg-sq-bg-warning-color tw-text-sq-text-color',
16652
- gray: 'tw-bg-sq-light-gray tw-text-sq-text-color dark:tw-bg-sq-worksheetspanel-gray-dark dark:tw-text-sq-dark-text',
16662
+ formulaError: 'tw:text-red-800 tw:bg-red-200 tw:!rounded-[0.25rem]',
16663
+ danger: 'tw:text-sq-text-color tw:bg-sq-danger',
16664
+ warning: 'tw:bg-sq-bg-warning tw:text-sq-text-color',
16665
+ 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',
16653
16666
  };
16654
16667
  const appliedBorderTheme = {
16655
16668
  theme: borderColorClasses$1,
16656
16669
  danger: errorClasses$1,
16657
- warning: 'tw-border-none',
16658
- gray: 'tw-border-sq-darkish-gray',
16659
- formulaError: 'tw-border-red-100',
16670
+ warning: 'tw:border-none',
16671
+ gray: 'tw:border-sq-darkish-gray',
16672
+ formulaError: 'tw:border-red-100',
16660
16673
  };
16661
16674
  const appliedClasses = `${baseClasses$2} ${appliedTheme[variant]} ${extraClassNames} ${appliedBorderTheme[variant]}`;
16662
16675
  if (!show) {
16663
16676
  return jsx$1("div", {});
16664
16677
  }
16665
- return (jsxs("div", { "data-testid": testId, id: id, className: appliedClasses, children: [children, dismissible && (jsx$1(Icon, { icon: "fc-delete", type: variant.match(/danger|warning|formulaError/) ? 'color' : 'theme', color: variant.match(/danger|warning|formulaError/) ? 'inherit' : undefined, extraClassNames: `tw-self-end tw-text-[0.6875rem] tw-cursor-pointer tw-absolute tw-right-[10px] tw-top-[10px] ${variant.match(/danger|warning|gray|formulaError/) ? 'tw-text-sq-text-color dark:tw-text-sq-dark-text' : ''}`, testId: `${testId}-close-btn`, onClick: onClose, ...tooltipProps }))] }));
16678
+ return (jsxs("div", { "data-testid": testId, id: id, className: appliedClasses, children: [children, dismissible && (jsx$1(Icon, { icon: "fc-delete", type: variant.match(/danger|warning|formulaError/) ? 'color' : 'theme', color: variant.match(/danger|warning|formulaError/) ? 'inherit' : undefined, extraClassNames: `tw:self-end tw:text-size-11 tw:cursor-pointer tw:absolute tw:right-2.5 tw:top-2.5 ${variant.match(/danger|warning|gray|formulaError/) ? 'tw:text-sq-text-color tw:dark:text-sq-dark-text' : ''}`, testId: `${testId}-close-btn`, onClick: onClose, ...tooltipProps }))] }));
16666
16679
  };
16667
16680
 
16668
16681
  /**
@@ -16681,47 +16694,40 @@ const Alert = ({ children, dismissible = true, onClose, show = true, variant, te
16681
16694
  * @param tooltipProps - props to pass to the tooltip
16682
16695
  */
16683
16696
  const SvgIcon = ({ onClick, icon, color, type = 'default', extraClassNames, viewBox = '0 0 19 19', id, testId, customId, ...tooltipProps }) => {
16684
- const appliedClassNames = `${onClick ? 'tw-cursor-pointer' : ''} ${extraClassNames} focus:tw-outline-none focus-visible:tw-outline-none
16685
- tw-outline-none`;
16697
+ const appliedClassNames = `${onClick ? 'tw:cursor-pointer' : ''} ${extraClassNames} tw:focus:outline-none tw:focus-visible:outline-none
16698
+ tw:outline-none`;
16686
16699
  const tooltipData = getQTipData(tooltipProps);
16687
16700
  const appliedType = type === 'default' ? 'currentColor' : 'rgb(var(--sq-icon))';
16688
- return (jsx$1("div", { onClick: onClick, ...tooltipData, className: `svgContainer ${appliedClassNames}`, children: jsx$1("svg", { xmlns: "http://www.w3.org/2000/svg", className: `tw-sq-icon dark:tw-text-white`, viewBox: viewBox, fill: color ? color : appliedType, "data-testid": testId, children: jsx$1("path", { d: getSvgIconPath(icon) }) }) }));
16701
+ return (jsx$1("div", { onClick: onClick, ...tooltipData, className: `svgContainer ${appliedClassNames}`, children: jsx$1("svg", { xmlns: "http://www.w3.org/2000/svg", className: `tw:sq-icon tw:dark:text-sq-white`, viewBox: viewBox, fill: color ? color : appliedType, "data-testid": testId, children: jsx$1("path", { d: getSvgIconPath(icon) }) }) }));
16689
16702
  };
16690
16703
 
16691
16704
  const SeeqActionDropdownItem = (item) => {
16692
16705
  let renderIcon = jsx$1(Fragment, {});
16693
16706
  if (item.icon) {
16694
- renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: 'tw-rounded-[3px] tw-h-8 tw-w-8 tw-p-1 tw-flex tw-justify-center tw-items-center tw-bg-sq-color-dark' +
16695
- ' dark:tw-text-sq-white tw-text-[22px] tw-text-sq-white ' +
16696
- item.iconExtraClassNames, ...item })) : (jsx$1(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw-rounded-[3px] tw-h-8 tw-w-8 tw-flex tw-justify-center tw-items-center tw-bg-sq-color-dark dark:tw-text-sq-white tw-text-[1.375rem] tw-text-sq-white ' +
16697
- item.iconExtraClassNames }));
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 }));
16698
16708
  }
16699
- return (jsxs("div", { className: "tw-flex-col tw-flex tw-p-[10px] tw-pl-5 tw-w-[600px]", children: [jsxs("div", { className: "tw-flex tw-flex-row tw-gap-2 tw-items-end", children: [renderIcon, jsx$1("h4", { className: "tw-text-base tw-font-[600] tw-leading-[20px] mb-0", children: item.display })] }), jsx$1("div", { className: "tw-text-[0.8125rem] tw-font-normal", children: item.text })] }));
16709
+ 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 })] }));
16700
16710
  };
16701
16711
  const ViewWorkbench = (item) => {
16702
16712
  let renderIcon = jsx$1(Fragment, {});
16703
16713
  if (item.icon) {
16704
- renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: 'tw-flex tw-w-5 tw-justify-center tw-items-center tw-text-[1.25rem] dark:tw-text-sq-white' +
16705
- ' tw-text-sq-text-color ' +
16706
- item.iconExtraClassNames, type: "default", ...item })) : (jsx$1(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw-flex tw-justify-center tw-items-center tw-text-[1.25rem] dark:tw-text-sq-white' +
16707
- ' tw-text-sq-text-color ' +
16708
- item.iconExtraClassNames }));
16714
+ renderIcon = isSvgIcon(item.icon) ? (jsx$1(SvgIcon, { icon: item.icon, extraClassNames: 'tw:w-4 tw:text-5 tw:dark:text-sq-white' + ' tw:text-sq-text-color ' + item.iconExtraClassNames, type: "default", ...item })) : (jsx$1(Icon, { icon: item.icon, type: "text", extraClassNames: 'tw:text-5 tw:dark:text-sq-white tw:text-sq-text-color ' + item.iconExtraClassNames }));
16709
16715
  }
16710
- return (jsx$1("div", { className: "tw-flex-col tw-flex tw-p-[10px]", children: jsxs("div", { className: "tw-flex tw-flex-row tw-gap-2 tw-items-end", children: [renderIcon, jsx$1("div", { className: "tw-text-[0.8125rem]", children: item.display })] }) }));
16716
+ 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 })] }) }));
16711
16717
  };
16712
16718
  const InsertSeeqContent = (item) => {
16713
- return (jsxs("div", { className: "tw-flex-col tw-flex tw-justify-start tw-p-[10px] tw-font-normal tw-text-left tw-text-sq-text-color dark:tw-text-sq-dark-text", children: [jsx$1("h5", { className: "tw-text-[1rem] tw-font-medium tw-text-sq-color-dark tw-leading-[18px]", children: item.display }), jsx$1("div", { className: "tw-text-[0.8125rem] tw-text-sq-text-color dark:tw-text-sq-dark-text !tw-mt-1", children: item.text })] }));
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 })] }));
16714
16720
  };
16715
16721
 
16716
16722
  const borderStyles = [
16717
- 'tw-border-solid',
16718
- 'tw-border',
16719
- 'tw-rounded-md',
16720
- 'tw-border-sq-disabled-gray',
16721
- 'dark:tw-border-gray-500',
16723
+ 'tw:border-solid',
16724
+ 'tw:border',
16725
+ 'tw:rounded-md',
16726
+ 'tw:border-sq-disabled-gray',
16727
+ 'tw:dark:border-gray-500',
16722
16728
  ].join(' ');
16723
- const bgStyles = ['tw-bg-sq-white', 'dark:tw-bg-sq-dark-background'].join(' ');
16724
- const disabledClasses = ['tw-opacity-50', 'tw-cursor-not-allowed'].join(' ');
16729
+ const bgStyles = ['tw:bg-sq-white', 'tw:dark:bg-sq-dark-background'].join(' ');
16730
+ const disabledClasses = ['tw:opacity-50', 'tw:cursor-not-allowed'].join(' ');
16725
16731
  const renderItem = (variant, item) => {
16726
16732
  switch (variant) {
16727
16733
  case 'create-workbench':
@@ -16736,31 +16742,31 @@ const renderItem = (variant, item) => {
16736
16742
  };
16737
16743
  const SeeqActionDropdown = ({ seeqActionDropdownItems, trigger, id, extraClassNames, containerTestId, disabled = false, align = 'end', placement = 'bottom', placementOffset = 5, alignOffset = -35, hasArrow = false, onOpenChange, isOpen, setFocusOnTriggerOnClose = true, keepFocusInsideDropdown = true, variant, ...tooltipProps }) => {
16738
16744
  const tooltipData = getQTipData(tooltipProps);
16739
- return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, "data-testid": id, className: `tw-border-none focus-visible:tw-outline-none focus:tw-outline-none focus-within:tw-outline-none`, asChild: true, disabled: disabled, children: jsx$1("div", { ...tooltipData, className: `tw-bg-transparent tw-flex tw-flex-col tw-items-center focus-visible:tw-outline-none focus:tw-outline-none focus-within:tw-outline-none ${disabled ? disabledClasses : ''} ${extraClassNames || ''}`, children: trigger }) }), jsx$1(Content2, { sideOffset: placementOffset, side: placement, align: align, alignOffset: alignOffset, asChild: true, onCloseAutoFocus: (e) => !setFocusOnTriggerOnClose && e.preventDefault(), className: "focus-visible:tw-outline-none tw-outline-none", children: jsxs("div", { "data-testid": containerTestId, className: bgStyles +
16740
- ' tw-relative tw-z-[1200] tw-min-w-6 tw-py-2 focus-visible:tw-outline-none tw-outline-none' +
16741
- ' data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out' +
16742
- ' forceFont data-[side=top]:tw-animate-slideDownAndFade data-[side=right]:tw-animate-slideLeftAndFade data-[side=bottom]:tw-animate-slideUpAndFade data-[side=left]:tw-animate-slideRightAndFade ' +
16743
- borderStyles, children: [hasArrow && (jsx$1(Arrow2, { asChild: true, children: jsx$1("div", { className: " tw-fill-transparent tw-bg-white tw-w-[15px] tw-h-[15px] tw-rotate-45 dark:tw-bg-sq-dark-background tw-border-b tw-border-r tw-border-sq-disabled-gray dark:tw-border-gray-500 tw-mt-[-7px]" }) })), seeqActionDropdownItems.map((item, index) => {
16745
+ return (jsxs(Root2, { defaultOpen: false, open: isOpen, onOpenChange: onOpenChange, modal: keepFocusInsideDropdown, children: [jsx$1(Trigger, { id: id, "data-testid": id, className: `tw:border-none tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within:outline-none`, asChild: true, disabled: disabled, children: jsx$1("div", { ...tooltipData, className: `tw:bg-transparent tw:flex tw:flex-col tw:items-center tw:focus-visible:outline-none tw:focus:outline-none tw:focus-within:outline-none ${disabled ? disabledClasses : ''} ${extraClassNames || ''}`, children: trigger }) }), jsx$1(Content2, { sideOffset: placementOffset, side: placement, align: align, alignOffset: alignOffset, asChild: true, onCloseAutoFocus: (e) => !setFocusOnTriggerOnClose && e.preventDefault(), className: "tw:focus-visible:outline-none tw:outline-none", children: jsxs("div", { "data-testid": containerTestId, className: bgStyles +
16746
+ ' tw:relative tw:z-[1200] tw:min-w-6 tw:py-2 tw:focus-visible:outline-none tw:outline-none' +
16747
+ ' tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out' +
16748
+ ' 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 ' +
16749
+ borderStyles, children: [hasArrow && (jsx$1(Arrow2, { asChild: true, children: jsx$1("div", { className: " tw:fill-transparent tw:bg-sq-white tw:w-sq-15 tw:h-sq-15 tw:rotate-45 tw:dark:bg-sq-dark-background tw:border-b tw:border-r tw:border-sq-disabled-gray tw:dark:border-gray-500 tw:-mt-sq-7" }) })), seeqActionDropdownItems.map((item, index) => {
16744
16750
  return (jsxs("div", { children: [jsx$1(Item2, { onSelect: (e) => {
16745
16751
  item.action(e);
16746
- }, className: `tw-cursor-pointer tw-flex dark:tw-text-sq-white hover:tw-bg-sq-gray-highlight dark:hover:tw-bg-sq-gray-highlight-dark tw-relative tw-select-none tw-outline-none data-[disabled]:tw-text-sq-disabled-gray data-[disabled]:tw-pointer-events-none`, "data-testid": item.testId, disabled: !item.enabled, children: renderItem(variant, item) }), item.divider && (jsx$1(Separator2, { "data-testid": `dropdown-divider-${index}`, className: "tw-h-[1px] tw-bg-sq-disabled-gray dark:tw-bg-gray-500 tw-my-[8px]" }))] }, item.display + index));
16752
+ }, 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:relative tw:select-none tw:outline-none tw:data-[disabled]:text-sq-disabled-gray tw:data-[disabled]:pointer-events-none`, "data-testid": item.testId, disabled: !item.enabled, children: renderItem(variant, item) }), item.divider && (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.display + index));
16747
16753
  })] }) })] }));
16748
16754
  };
16749
16755
 
16750
- const baseClasses$1 = 'tw-flex tw-outline-none tw-rounded-md tw-w-full tw-relative tw-flex-wrap';
16751
- const errorClasses = 'tw-border-sq-danger-color';
16756
+ const baseClasses$1 = 'tw:flex tw:outline-none tw:rounded-md tw:w-full tw:relative tw:flex-wrap';
16757
+ const errorClasses = 'tw:border-sq-danger';
16752
16758
  const borderColorClasses = [
16753
- 'tw-border-sq-disabled-gray',
16754
- 'dark:tw-border-sq-dark-disabled-gray',
16755
- 'dark:focus:tw-border-sq-color-dark-dark',
16756
- 'dark:active:tw-border-sq-color-dark-dark',
16757
- 'focus:tw-border-sq-color-dark',
16758
- 'active:tw-border-sq-color-dark',
16759
+ 'tw:border-sq-disabled-gray',
16760
+ 'tw:dark:border-sq-dark-disabled-gray',
16761
+ 'tw:dark:focus:border-sq-theme-darker',
16762
+ 'tw:dark:active:border-sq-theme-darker',
16763
+ 'tw:focus:border-sq-theme-dark',
16764
+ 'tw:active:border-sq-theme-dark',
16759
16765
  ].join(' ');
16760
- const fieldBorderRadius = 'tw-rounded-l-md tw-rounded-r-none';
16761
- const fieldClasses = 'tw-leading-normal tw-outline-none tw-py-1 tw-px-3' + 'tw-p-1 tw-border-solid tw-border';
16762
- const darkTheme = 'dark:tw-bg-sq-dark-background dark:tw-text-sq-dark-text disabled:dark:tw-text-sq-dark-text-lighter';
16763
- const lightTheme = 'tw-text-sq-text-color disabled:tw-text-sq-darkish-gray';
16766
+ const fieldBorderRadius = 'tw:rounded-l-md tw:rounded-r-none';
16767
+ const fieldClasses = 'tw:leading-normal tw:outline-none tw:py-1 tw:px-3' + 'tw:p-1 tw:border-solid tw:border';
16768
+ const darkTheme = 'tw:dark:bg-sq-dark-background tw:dark:text-sq-dark-text tw:disabled:dark:text-sq-disabled-gray';
16769
+ const lightTheme = 'tw:text-sq-text-color tw:disabled:text-sq-darkish-gray';
16764
16770
  /**
16765
16771
  * InputGroup.
16766
16772
  */
@@ -16770,8 +16776,10 @@ const InputGroup = React__default.forwardRef((props, ref) => {
16770
16776
  const appliedClasses = `${baseClasses$1} ${extraClassNames}`;
16771
16777
  const fieldAppliedClasses = `${fieldClasses} ${extraClassNames} ${lightTheme} ${darkTheme} ${fieldBorderRadius} ${showError ? errorClasses : borderColorClasses} `;
16772
16778
  const elementsToAppend = append.filter(Boolean);
16773
- return (jsxs("div", { id: `input-group-${id}`, className: appliedClasses, children: [field ? (jsx$1("div", { "data-testid": testId, className: `tw-flex tw-flex-1 tw-cursor-pointer active:tw-z-50 ${fieldAppliedClasses}`, children: field })) : (jsx$1(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 focus:tw-z-30 tw-rounded-r-none last:tw-rounded-r-md ${extraClassNames}`, ...tooltipData })), elementsToAppend.map((item, index) => {
16774
- return item?.variant === 'button' ? (jsx$1(Button, { extraClassNames: `${index ? 'tw-ml-[-1px]' : 'tw-ml-0'} focus:tw-z-40 focus:tw-border tw-rounded-none last:tw-rounded-r-md`, ...item.buttonProps }, index)) : (jsx$1("div", { className: `${borderColorClasses} ${index ? 'tw-ml-[-1px]' : 'tw-ml-0'} tw-flex tw-items-center tw-justify-center tw-rounded-none last:tw-rounded-r-md active:tw-z-30 active:tw-border tw-border`, children: item?.element }, index));
16779
+ return (jsxs("div", { id: `input-group-${id}`, className: appliedClasses, children: [field ? (jsx$1("div", { "data-testid": testId, className: `tw:flex tw:flex-1 tw:cursor-pointer tw:active:z-50 ${fieldAppliedClasses}`, children: field })) : (jsx$1(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:focus:z-30 tw:rounded-r-none tw:last:rounded-r-md ${extraClassNames}`, ...tooltipData })), elementsToAppend.map((item, index) => {
16780
+ return item?.variant === 'button' ? (jsx$1(Button, { extraClassNames: `$
16781
+ index ? 'tw:-ml-px' : 'tw:ml-0'
16782
+ } tw:focus:z-40 tw:focus:border tw:rounded-none tw:last:rounded-r-md`, ...item.buttonProps }, index)) : (jsx$1("div", { className: `${borderColorClasses} ${index ? 'tw:-ml-px' : 'tw:ml-0'} tw:flex tw:items-center tw:justify-center tw:rounded-none tw:last:rounded-r-md tw:active:z-30 tw:active:border tw:border`, children: item?.element }, index));
16775
16783
  })] }));
16776
16784
  });
16777
16785
 
@@ -16828,7 +16836,8 @@ function formatErrorMessage(message, errorCode) {
16828
16836
 
16829
16837
  let warning = () => { };
16830
16838
  let invariant = () => { };
16831
- if (process.env.NODE_ENV !== "production") {
16839
+ if (typeof process !== "undefined" &&
16840
+ process.env?.NODE_ENV !== "production") {
16832
16841
  warning = (check, message, errorCode) => {
16833
16842
  if (!check && typeof console !== "undefined") {
16834
16843
  console.warn(formatErrorMessage(message, errorCode));
@@ -17284,6 +17293,17 @@ const isCSSVariableToken = (value) => {
17284
17293
  return singleCssVariableRegex.test(value.split("/*")[0].trim());
17285
17294
  };
17286
17295
  const singleCssVariableRegex = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
17296
+ /**
17297
+ * Check if a value contains a CSS variable anywhere (e.g. inside calc()).
17298
+ * Unlike isCSSVariableToken which checks if the value IS a var() token,
17299
+ * this checks if the value CONTAINS var() somewhere in the string.
17300
+ */
17301
+ function containsCSSVariable(value) {
17302
+ if (typeof value !== "string")
17303
+ return false;
17304
+ // Strip comments to avoid false positives
17305
+ return value.split("/*")[0].includes("var(--");
17306
+ }
17287
17307
 
17288
17308
  const number = {
17289
17309
  test: (v) => typeof v === "number",
@@ -19081,6 +19101,12 @@ class NativeAnimation extends WithPromise {
19081
19101
  super();
19082
19102
  this.finishedTime = null;
19083
19103
  this.isStopped = false;
19104
+ /**
19105
+ * Tracks a manually-set start time that takes precedence over WAAPI's
19106
+ * dynamic startTime. This is cleared when play() or time setter is called,
19107
+ * allowing WAAPI to take over timing.
19108
+ */
19109
+ this.manualStartTime = null;
19084
19110
  if (!options)
19085
19111
  return;
19086
19112
  const { element, name, keyframes, pseudoElement, allowFlatten = false, finalKeyframe, onComplete, } = options;
@@ -19116,6 +19142,7 @@ class NativeAnimation extends WithPromise {
19116
19142
  play() {
19117
19143
  if (this.isStopped)
19118
19144
  return;
19145
+ this.manualStartTime = null;
19119
19146
  this.animation.play();
19120
19147
  if (this.state === "finished") {
19121
19148
  this.updateFinished();
@@ -19179,6 +19206,7 @@ class NativeAnimation extends WithPromise {
19179
19206
  return millisecondsToSeconds(Number(this.animation.currentTime) || 0);
19180
19207
  }
19181
19208
  set time(newTime) {
19209
+ this.manualStartTime = null;
19182
19210
  this.finishedTime = null;
19183
19211
  this.animation.currentTime = secondsToMilliseconds(newTime);
19184
19212
  }
@@ -19201,10 +19229,10 @@ class NativeAnimation extends WithPromise {
19201
19229
  : this.animation.playState;
19202
19230
  }
19203
19231
  get startTime() {
19204
- return Number(this.animation.startTime);
19232
+ return this.manualStartTime ?? Number(this.animation.startTime);
19205
19233
  }
19206
19234
  set startTime(newStartTime) {
19207
- this.animation.startTime = newStartTime;
19235
+ this.manualStartTime = this.animation.startTime = newStartTime;
19208
19236
  }
19209
19237
  /**
19210
19238
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
@@ -19266,7 +19294,7 @@ class NativeAnimationExtended extends NativeAnimation {
19266
19294
  */
19267
19295
  replaceTransitionType(options);
19268
19296
  super(options);
19269
- if (options.startTime) {
19297
+ if (options.startTime !== undefined) {
19270
19298
  this.startTime = options.startTime;
19271
19299
  }
19272
19300
  this.options = options;
@@ -19274,7 +19302,7 @@ class NativeAnimationExtended extends NativeAnimation {
19274
19302
  /**
19275
19303
  * WAAPI doesn't natively have any interruption capabilities.
19276
19304
  *
19277
- * Rather than read commited styles back out of the DOM, we can
19305
+ * Rather than read committed styles back out of the DOM, we can
19278
19306
  * create a renderless JS animation and sample it twice to calculate
19279
19307
  * its current value, "previous" value, and therefore allow
19280
19308
  * Motion to calculate velocity for any subsequent animation.
@@ -19291,8 +19319,14 @@ class NativeAnimationExtended extends NativeAnimation {
19291
19319
  ...options,
19292
19320
  autoplay: false,
19293
19321
  });
19294
- const sampleTime = secondsToMilliseconds(this.finishedTime ?? this.time);
19295
- motionValue.setWithVelocity(sampleAnimation.sample(sampleTime - sampleDelta).value, sampleAnimation.sample(sampleTime).value, sampleDelta);
19322
+ /**
19323
+ * Use wall-clock elapsed time for sampling.
19324
+ * Under CPU load, WAAPI's currentTime may not reflect actual
19325
+ * elapsed time, causing incorrect sampling and visual jumps.
19326
+ */
19327
+ const sampleTime = Math.max(sampleDelta, time.now() - this.startTime);
19328
+ const delta = clamp$1(0, sampleDelta, sampleTime - sampleDelta);
19329
+ motionValue.setWithVelocity(sampleAnimation.sample(Math.max(0, sampleTime - delta)).value, sampleAnimation.sample(sampleTime).value, delta);
19296
19330
  sampleAnimation.stop();
19297
19331
  }
19298
19332
  }
@@ -19470,7 +19504,7 @@ class AsyncMotionValueAnimation extends WithPromise {
19470
19504
  * progress, which would feel snappier.
19471
19505
  *
19472
19506
  * However, if there's a delay (main thread work) between the creation of
19473
- * the animation and the first commited frame, we prefer to use resolvedAt
19507
+ * the animation and the first committed frame, we prefer to use resolvedAt
19474
19508
  * to avoid a sudden jump into the animation.
19475
19509
  */
19476
19510
  const startTime = sync
@@ -19739,17 +19773,36 @@ const numberValueTypes = {
19739
19773
  right: px,
19740
19774
  bottom: px,
19741
19775
  left: px,
19776
+ inset: px,
19777
+ insetBlock: px,
19778
+ insetBlockStart: px,
19779
+ insetBlockEnd: px,
19780
+ insetInline: px,
19781
+ insetInlineStart: px,
19782
+ insetInlineEnd: px,
19742
19783
  // Spacing props
19743
19784
  padding: px,
19744
19785
  paddingTop: px,
19745
19786
  paddingRight: px,
19746
19787
  paddingBottom: px,
19747
19788
  paddingLeft: px,
19789
+ paddingBlock: px,
19790
+ paddingBlockStart: px,
19791
+ paddingBlockEnd: px,
19792
+ paddingInline: px,
19793
+ paddingInlineStart: px,
19794
+ paddingInlineEnd: px,
19748
19795
  margin: px,
19749
19796
  marginTop: px,
19750
19797
  marginRight: px,
19751
19798
  marginBottom: px,
19752
19799
  marginLeft: px,
19800
+ marginBlock: px,
19801
+ marginBlockStart: px,
19802
+ marginBlockEnd: px,
19803
+ marginInline: px,
19804
+ marginInlineStart: px,
19805
+ marginInlineEnd: px,
19753
19806
  // Misc
19754
19807
  backgroundPositionX: px,
19755
19808
  backgroundPositionY: px,
@@ -19867,6 +19920,16 @@ class DOMKeyframesResolver extends KeyframeResolver {
19867
19920
  const [origin, target] = unresolvedKeyframes;
19868
19921
  const originType = findDimensionValueType(origin);
19869
19922
  const targetType = findDimensionValueType(target);
19923
+ /**
19924
+ * If one keyframe contains embedded CSS variables (e.g. in calc()) and the other
19925
+ * doesn't, we need to measure to convert to pixels. This handles GitHub issue #3410.
19926
+ */
19927
+ const originHasVar = containsCSSVariable(origin);
19928
+ const targetHasVar = containsCSSVariable(target);
19929
+ if (originHasVar !== targetHasVar && positionalValues[name]) {
19930
+ this.needsMeasurement = true;
19931
+ return;
19932
+ }
19870
19933
  /**
19871
19934
  * Either we don't recognise these value types or we can animate between them.
19872
19935
  */
@@ -20401,16 +20464,24 @@ const isPrimaryPointer = (event) => {
20401
20464
  }
20402
20465
  };
20403
20466
 
20404
- const focusableElements = new Set([
20467
+ const interactiveElements = new Set([
20405
20468
  "BUTTON",
20406
20469
  "INPUT",
20407
20470
  "SELECT",
20408
20471
  "TEXTAREA",
20409
20472
  "A",
20410
20473
  ]);
20474
+ /**
20475
+ * Checks if an element is an interactive form element that should prevent
20476
+ * drag gestures from starting when clicked.
20477
+ *
20478
+ * This specifically targets form controls, buttons, and links - not just any
20479
+ * element with tabIndex, since motion elements with tap handlers automatically
20480
+ * get tabIndex=0 for keyboard accessibility.
20481
+ */
20411
20482
  function isElementKeyboardAccessible(element) {
20412
- return (focusableElements.has(element.tagName) ||
20413
- element.tabIndex !== -1);
20483
+ return (interactiveElements.has(element.tagName) ||
20484
+ element.isContentEditable === true);
20414
20485
  }
20415
20486
 
20416
20487
  const isPressing = new WeakSet();
@@ -27658,7 +27729,7 @@ var Thumb = SliderThumb;
27658
27729
  */
27659
27730
  const Slider = (props) => {
27660
27731
  const { onValueChange, onPointerUp, id, value, name, disabled = false, rootExtraClassNames = '', trackExtraClassNames = '', rangeExtraClassNames = '', thumbExtraClassNames = '', step, min, max, } = props;
27661
- return (jsxs(Root$1, { className: `tw-relative tw-flex tw-h-5 tw-w-full tw-touch-none tw-select-none tw-items-center ${rootExtraClassNames}`, defaultValue: [value], value: [value], onValueChange: (value) => onValueChange && onValueChange(value), onPointerUp: (e) => onPointerUp && onPointerUp(e), name: name, id: id, max: max, min: min, disabled: disabled, step: step, children: [jsx$1(Track, { className: `tw-relative tw-h-[5px] tw-grow tw-rounded-[4px] tw-bg-sq-dark-gray dark:tw-bg-sq-dark-disabled-gray ${trackExtraClassNames}`, children: jsx$1(Range, { className: `tw-absolute tw-h-full tw-rounded-full ${rangeExtraClassNames}` }) }), jsx$1(Thumb, { className: `tw-block tw-h-[15px] tw-w-[15px] tw-rounded-full tw-bg-sq-color-dark active:tw-bg-sq-color-dark-dark focus:outline-none focus-visible:tw-outline-none aria-disabled:tw-bg-sq-dark-gray dark:aria-disabled:tw-bg-sq-dark-disabled-gray tw-transition tw-ease-in-out ${thumbExtraClassNames}`, "aria-disabled": disabled })] }));
27732
+ return (jsxs(Root$1, { className: `tw:relative tw:flex tw:h-5 tw:w-full tw:touch-none tw:select-none tw:items-center ${rootExtraClassNames}`, defaultValue: [value], value: [value], onValueChange: (value) => onValueChange && onValueChange(value), onPointerUp: (e) => onPointerUp && onPointerUp(e), name: name, id: id, max: max, min: min, disabled: disabled, step: step, children: [jsx$1(Track, { className: `tw:relative tw:h-sq-5 tw:grow tw:rounded-sm tw:bg-sq-dark-gray tw:dark:bg-sq-dark-disabled-gray ${trackExtraClassNames}`, children: jsx$1(Range, { className: `tw:absolute tw:h-full tw:rounded-full ${rangeExtraClassNames}` }) }), jsx$1(Thumb, { className: `tw:block tw:h-sq-15 tw:w-sq-15 tw:rounded-full tw:bg-sq-theme-dark tw:active:bg-sq-theme-darker tw:focus:outline-none tw:focus-visible:outline-none tw:aria-disabled:bg-sq-dark-gray tw:dark:aria-disabled:bg-sq-dark-disabled-gray tw:transition tw:ease-in-out ${thumbExtraClassNames}`, "aria-disabled": disabled })] }));
27662
27733
  };
27663
27734
 
27664
27735
  // src/create-context.tsx
@@ -29139,7 +29210,7 @@ var tinycolor$1 = {exports: {}};
29139
29210
  var tinycolorExports = tinycolor$1.exports;
29140
29211
  var tinycolor = /*@__PURE__*/getDefaultExportFromCjs(tinycolorExports);
29141
29212
 
29142
- 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]';
29213
+ const baseLabelClasses = 'tw:left-1 tw:text-xs tw:text-sq-text-color tw:dark:text-sq-dark-text tw:items-center tw:h-4.5';
29143
29214
  const ProgressIndicator = (props) => {
29144
29215
  const { value, color = undefined, testId, label, extraClasses = '', labelClasses = '', valuesLength, max, index, totalValue, ...tooltipProps } = props;
29145
29216
  const tooltipData = getQTipData(tooltipProps);
@@ -29152,19 +29223,19 @@ const ProgressIndicator = (props) => {
29152
29223
  if (totalValue >= max) {
29153
29224
  // If progress is 100%, round both ends
29154
29225
  if (index === 0 && valuesLength === 1) {
29155
- roundedCorners = 'tw-rounded-[15px]';
29226
+ roundedCorners = 'tw:rounded-[0.9375rem]';
29156
29227
  }
29157
29228
  else if (index === 0) {
29158
- roundedCorners = 'tw-rounded-l-[15px]';
29229
+ roundedCorners = 'tw:rounded-l-[0.9375rem]';
29159
29230
  }
29160
29231
  else if (index === valuesLength - 1) {
29161
- roundedCorners = 'tw-rounded-r-[15px]';
29232
+ roundedCorners = 'tw:rounded-r-[0.9375rem]';
29162
29233
  }
29163
29234
  }
29164
29235
  else {
29165
29236
  // Otherwise, only round the leftmost indicator
29166
29237
  if (index === 0) {
29167
- roundedCorners = 'tw-rounded-l-[15px]';
29238
+ roundedCorners = 'tw:rounded-l-[0.9375rem]';
29168
29239
  }
29169
29240
  }
29170
29241
  useEffect(() => {
@@ -29176,13 +29247,13 @@ const ProgressIndicator = (props) => {
29176
29247
  return () => clearTimeout(timeout);
29177
29248
  }, [value]);
29178
29249
  const bgColor = color || undefined;
29179
- const bgClass = color ? '' : 'tw-bg-sq-color-dark';
29250
+ const bgClass = color ? '' : 'tw:bg-sq-theme-dark';
29180
29251
  const computeTextClass = (elem) => {
29181
29252
  const computedStyle = getComputedStyle(elem);
29182
29253
  const backgroundColor = computedStyle.backgroundColor;
29183
29254
  const textColorClass = tinycolor(backgroundColor).isDark()
29184
- ? 'tw-text-sq-white dark:tw-text-sq-white'
29185
- : 'tw-text-sq-text-color dark:tw-text-sq-text-color';
29255
+ ? 'tw:text-sq-white tw:dark:text-sq-white'
29256
+ : 'tw:text-sq-text-color tw:dark:text-sq-text-color';
29186
29257
  setTextColorClass(textColorClass);
29187
29258
  };
29188
29259
  useEffect(() => {
@@ -29190,35 +29261,35 @@ const ProgressIndicator = (props) => {
29190
29261
  computeTextClass(indicatorElementRef.current);
29191
29262
  }
29192
29263
  }, [!!indicatorElementRef.current]);
29193
- return (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 ${valuesLength === 1 ? '' : '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: {
29264
+ return (createElement(Indicator, { className: `tw:ease-[cubic-bezier(0.65, 0, 0.35, 1)] tw:w-full tw:h-4.5 tw:duration-[660ms] tw:flex tw:justify-center tw:items-center ${valuesLength === 1 ? '' : '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: {
29194
29265
  // Background color will default to the theme color if undefined
29195
29266
  backgroundColor: bgColor,
29196
29267
  animation: 'width 660ms forwards',
29197
29268
  width: `${animatedWidth}%`,
29198
- } }, label ? (jsx$1("span", { className: `${baseLabelClasses} ${labelClasses} ${textColorClass} ${valuesLength === 1 ? 'tw-absolute tw-z-50' : ''}`, children: label })) : undefined));
29269
+ } }, label ? (jsx$1("span", { className: `${baseLabelClasses} ${labelClasses} ${textColorClass} ${valuesLength === 1 ? 'tw:absolute tw:z-50' : ''}`, children: label })) : undefined));
29199
29270
  };
29200
29271
  const ProgressBar = ({ values = [], max = 100, containerExtraClasses = '', zeroValueLabel = 'No progress yet', }) => {
29201
29272
  const totalValue = values.reduce((acc, { value }) => acc + value, 0);
29202
- return (jsx$1(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, children: totalValue > 0 ? (values.map((props, i) => {
29273
+ return (jsx$1(Root, { className: `tw:relative tw:h-4.5 tw:w-full tw:overflow-hidden tw:rounded-[0.9375rem] tw:bg-sq-dark-gray tw:dark:bg-sq-dark-disabled-gray tw:flex tw:flex-1 ${containerExtraClasses}`, max: max, value: totalValue, children: totalValue > 0 ? (values.map((props, i) => {
29203
29274
  return (createElement(ProgressIndicator, { ...props, max: max, valuesLength: values.length, index: i, totalValue: totalValue, key: i }));
29204
- })) : (jsx$1("div", { className: `${baseLabelClasses} tw-mx-auto tw-overflow-hidden`, children: zeroValueLabel })) }));
29275
+ })) : (jsx$1("div", { className: `${baseLabelClasses} tw:mx-auto tw:overflow-hidden`, children: zeroValueLabel })) }));
29205
29276
  };
29206
29277
 
29207
- const baseClasses = 'tw-flex tw-outline-none tw-w-full tw-relative tw-flex-wrap';
29278
+ const baseClasses = 'tw:flex tw:outline-none tw:w-full tw:relative tw:flex-wrap';
29208
29279
  const activeClassesByVariantLightTheme = {
29209
- 'outline': '!tw-bg-sq-disabled-gray tw-border-sq-color-dark',
29210
- 'theme': 'tw-bg-sq-color-highlight',
29280
+ 'outline': 'tw:!bg-sq-disabled-gray tw:border-sq-theme-dark',
29281
+ 'theme': 'tw:bg-sq-theme-highlight',
29211
29282
  'danger': '',
29212
29283
  'theme-light': '',
29213
- 'no-border': '!tw-bg-sq-disabled-gray',
29284
+ 'no-border': 'tw:!bg-sq-disabled-gray',
29214
29285
  'warning': '',
29215
29286
  };
29216
29287
  const activeClassesByVariantDarkTheme = {
29217
- 'outline': 'dark:!tw-bg-sq-multi-gray-dark dark:tw-border-sq-color-dark',
29218
- 'theme': 'dark:tw-bg-sq-color-highlight',
29288
+ 'outline': 'tw:!dark:bg-sq-multi-gray-dark tw:dark:border-sq-theme-dark',
29289
+ 'theme': 'tw:dark:bg-sq-theme-highlight',
29219
29290
  'danger': '',
29220
29291
  'theme-light': '',
29221
- 'no-border': 'dark:!tw-bg-sq-multi-gray-dark',
29292
+ 'no-border': 'tw:!dark:bg-sq-multi-gray-dark',
29222
29293
  'warning': '',
29223
29294
  };
29224
29295
  /**
@@ -29230,7 +29301,7 @@ const ButtonGroup = (props) => {
29230
29301
  const appliedClasses = `${baseClasses} ${extraClassNames}`;
29231
29302
  return (jsx$1("div", { id: id ? `button-group-${id}` : undefined, "data-testid": testId, className: appliedClasses, ...tooltipData, children: buttons
29232
29303
  .filter(Boolean)
29233
- .map((item, index) => item?.variant === 'button' ? (jsx$1(Button, { ...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
29304
+ .map((item, index) => item?.variant === 'button' ? (jsx$1(Button, { ...item.buttonProps, extraClassNames: `tw:-ml-sq-1 tw:focus:z-40 tw:outline-none tw:focus:border tw:rounded-none tw:first:rounded-l-md tw:last:rounded-r-md ${item.buttonProps?.isActive
29234
29305
  ? `${activeClassesByVariantLightTheme[item?.buttonProps?.variant ?? 'outline']} ${activeClassesByVariantDarkTheme[item?.buttonProps?.variant ?? 'outline']} `
29235
29306
  : ''} ${item.buttonProps.extraClassNames}`, onClick: () => onChange && onChange(item?.buttonProps?.value) }, index)) : (item?.element)) }));
29236
29307
  };
@@ -29240,7 +29311,7 @@ const ButtonGroup = (props) => {
29240
29311
  * - Easily create a carousel with custom slides.
29241
29312
  * - Supports automatic sliding, navigation arrows, and slide indicators.
29242
29313
  */
29243
- const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '', onSlide = () => { }, autoSlide, showIndicators = true, continuous = true, interval = 4000, prevIcon = 'fc-arrow-dropdown tw-rotate-90', nextIcon = 'fc-arrow-dropdown -tw-rotate-90', showArrows = true, iconExtraClassNames = '', carouselItems = [], }) => {
29314
+ const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '', onSlide = () => { }, autoSlide, showIndicators = true, continuous = true, interval = 4000, prevIcon = 'fc-arrow-dropdown tw:rotate-90', nextIcon = 'fc-arrow-dropdown tw:rotate-270', showArrows = true, iconExtraClassNames = '', carouselItems = [], }) => {
29244
29315
  const [currentIndex, setCurrentIndex] = useState(activeIndex);
29245
29316
  const changeSlide = (nextIndex) => {
29246
29317
  const newIndex = (nextIndex + carouselItems.length) % carouselItems.length;
@@ -29307,7 +29378,7 @@ const Carousel = ({ testId = 'carousel-id', activeIndex = 0, extraClassNames = '
29307
29378
  transition: springTransition,
29308
29379
  }),
29309
29380
  };
29310
- 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("div", { className: "tw-h-full tw-w-full tw-overflow-hidden", children: 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))) }))] }));
29381
+ 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("div", { className: "tw:h-full tw:w-full tw:overflow-hidden", children: 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-theme-dark' : 'tw:bg-sq-darkish-gray'}`, onClick: () => changeSlide(i) }, i))) }))] }));
29311
29382
  };
29312
29383
 
29313
29384
  const buttonTypes = ['button', 'reset', 'submit', 'link'];