react-better-html 1.1.95 → 1.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -2487,6 +2487,7 @@ var Image_default = { Image: MemoizedImage }.Image;
|
|
|
2487
2487
|
|
|
2488
2488
|
// src/components/Button.tsx
|
|
2489
2489
|
import { memo as memo7, useCallback as useCallback4 } from "react";
|
|
2490
|
+
import { Link } from "react-router-dom";
|
|
2490
2491
|
import styled6, { css } from "styled-components";
|
|
2491
2492
|
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2492
2493
|
var ButtonElement = styled6.button.withConfig({
|
|
@@ -2604,14 +2605,14 @@ var ButtonComponent = function Button({
|
|
|
2604
2605
|
return /* @__PURE__ */ jsxs3(
|
|
2605
2606
|
ButtonElement,
|
|
2606
2607
|
{
|
|
2607
|
-
as: href ?
|
|
2608
|
+
as: href ? Link : "button",
|
|
2608
2609
|
theme: theme2,
|
|
2609
2610
|
colorTheme: betterHtmlContext2.colorTheme,
|
|
2610
2611
|
isSmall,
|
|
2611
2612
|
withText: text !== void 0,
|
|
2612
2613
|
isLoading: isLoadingElement,
|
|
2613
2614
|
disabled,
|
|
2614
|
-
href,
|
|
2615
|
+
to: href,
|
|
2615
2616
|
download,
|
|
2616
2617
|
target,
|
|
2617
2618
|
type: isSubmit && !isLoadingElement ? "submit" : "button",
|
|
@@ -3335,7 +3336,7 @@ var countries = [
|
|
|
3335
3336
|
phoneNumberFormat: "(XXX)XXX-XXXX"
|
|
3336
3337
|
},
|
|
3337
3338
|
{
|
|
3338
|
-
name: "
|
|
3339
|
+
name: "Andorra",
|
|
3339
3340
|
code: "AD",
|
|
3340
3341
|
timeZone: "Europe/Andorra",
|
|
3341
3342
|
phoneNumberExtension: "376"
|
|
@@ -5071,6 +5072,7 @@ var DropdownComponent = forwardRef7(function Dropdown({
|
|
|
5071
5072
|
cursor: !withSearch ? "pointer" : void 0,
|
|
5072
5073
|
placeholder: withSearch ? selectedOption ? selectedOption.label : readyPlaceholder : readyPlaceholder,
|
|
5073
5074
|
leftIcon,
|
|
5075
|
+
autoComplete: "off",
|
|
5074
5076
|
className: `react-better-html-dropdown${isOpen ? " react-better-html-dropdown-open" : ""}${isOpenLate ? " react-better-html-dropdown-open-late" : ""}${inputFieldClassName ? ` ${inputFieldClassName}` : ""}`,
|
|
5075
5077
|
onClick: !disabled ? setIsOpen.toggle : void 0,
|
|
5076
5078
|
onFocus: setIsFocused.setTrue,
|