@seeqdev/qomponents 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Icon/Icon.js +1 -1
- package/dist/Icon/Icon.js.map +1 -1
- package/dist/Select/Select.js.map +1 -1
- package/dist/Tooltip/Tooltip.js +1 -1
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +80 -80
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -92,7 +92,7 @@ const Icon = ({ onClick, icon, type = 'theme', extraClassNames, id, large, small
|
|
|
92
92
|
: 'Icon with prop color must have type="color".';
|
|
93
93
|
return React.createElement("div", { className: "tw-text-sq-danger-color" }, errorMessage);
|
|
94
94
|
}
|
|
95
|
-
const iconPrefix = icon.startsWith('fc') ? 'fc' : 'fa';
|
|
95
|
+
const iconPrefix = icon.startsWith('fc') ? 'fc' : 'fa-sharp fa-regular';
|
|
96
96
|
const style = type === 'color' && color ? { color } : {};
|
|
97
97
|
const appliedClassNames = `${iconPrefix} ${icon} ${small ? 'fa-sm' : ''} ${large ? 'fa-lg' : ''}
|
|
98
98
|
${colorClassesThemeLight[type]} ${colorClassesThemeDark[type]} ${onClick ? 'cursor-pointer' : ''} ${extraClassNames}`;
|
|
@@ -305,7 +305,7 @@ const DEFAULT_TOOL_TIP_DELAY = 1000;
|
|
|
305
305
|
* display correctly.
|
|
306
306
|
*/
|
|
307
307
|
const Tooltip = ({ position = 'bottom', children, text, delay = DEFAULT_TOOL_TIP_DELAY, }) => {
|
|
308
|
-
const arrowBaseClasses =
|
|
308
|
+
const arrowBaseClasses = 'before:tw-content-[\'\'] before:tw-absolute before:tw-border-8';
|
|
309
309
|
const centerArrowVertically = 'before:tw-top-1/2 before:-tw-translate-y-1/2';
|
|
310
310
|
const centerArrowHorizontally = 'before:tw-left-1/2 before:-tw-translate-x-1/2';
|
|
311
311
|
const arrowRight = `${arrowBaseClasses} ${centerArrowVertically} before:tw-right-[100%] before:tw-border-y-transparent
|