nexaas-ui-components 1.0.68 → 1.0.70
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.cjs +20 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +20 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -243,7 +243,7 @@ var Button = ({
|
|
|
243
243
|
${appliedSize.text}
|
|
244
244
|
${appliedPadding}
|
|
245
245
|
${gapText}
|
|
246
|
-
whitespace-nowrap group rounded-lg font-bold disabled:shadow-none active:shadow-none flex items-center disabled:pointer-events-none
|
|
246
|
+
whitespace-nowrap group rounded-lg font-bold disabled:shadow-none active:shadow-none flex items-center disabled:pointer-events-none focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-blue-500 focus-visible:ring-offset-[2px] focus-visible:rounded-[2px]
|
|
247
247
|
`,
|
|
248
248
|
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
249
249
|
props.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -494,7 +494,7 @@ var Input = ({
|
|
|
494
494
|
const hasError = fieldValidationMessages.some((item) => item !== void 0);
|
|
495
495
|
const [showPassword, setShowPassword] = React5__namespace.default.useState(false);
|
|
496
496
|
const styles = {
|
|
497
|
-
input: `text-p-md pl-2 peer text-paragraph bg-surface shadow-input border border-[0.5px] rounded-lg outline-none block pb-[10px] h-[46px] w-full disabled:bg-neutral-100 focus-visible:
|
|
497
|
+
input: `text-p-md pl-2 peer text-paragraph bg-surface shadow-input border border-[0.5px] rounded-lg outline-none block pb-[10px] h-[46px] w-full disabled:bg-neutral-100 focus-visible:ring-[1.5px] focus-visible:ring-blue-500 focus-visible:ring-offset-[2px] focus-visible:rounded-[2px] ${label ? "pt-[22px]" : "pt-[10px]"}
|
|
498
498
|
${!hasError ? "border-neutral-300" : ""}`,
|
|
499
499
|
icon: `absolute bg-neutral-100 h-[44px] top-[1px] left-[1.5px] w-[38px] rounded-l-lg text-[20px] ${hasError ? "text-dangerous-500" : "text-label peer-focus:text-blue-500"} peer-focus:border-blue-500`,
|
|
500
500
|
rightIcon: "absolute h-[44px] top-[1px] right-[1.5px] w-[38px] text-[22px]",
|
|
@@ -2804,9 +2804,9 @@ var customStyles = {
|
|
|
2804
2804
|
...provided,
|
|
2805
2805
|
cursor: "pointer",
|
|
2806
2806
|
border: state.selectProps.hasError ? "1px solid var(--dangerous-700)" : state.menuIsOpen ? "1px solid var(--blue-700)" : "1px solid var(--neutral-300)",
|
|
2807
|
-
boxShadow: "none",
|
|
2807
|
+
boxShadow: state.isFocused ? "0 0 0 2px var(--surface), 0 0 0 3.5px var(--blue-500)" : "none",
|
|
2808
2808
|
outline: "none",
|
|
2809
|
-
borderRadius: "0.5rem",
|
|
2809
|
+
borderRadius: state.isFocused ? "2px" : "0.5rem",
|
|
2810
2810
|
placeholder: " ",
|
|
2811
2811
|
height: state.selectProps.smallField ? "30px" : "46px",
|
|
2812
2812
|
backgroundColor: state.isDisabled ? "var(--light-100)" : "var(--surface)",
|
|
@@ -6642,23 +6642,21 @@ var StatusBall = ({
|
|
|
6642
6642
|
variant = "info",
|
|
6643
6643
|
labelPosition = "right"
|
|
6644
6644
|
}) => {
|
|
6645
|
-
const ball = /* @__PURE__ */ jsxRuntime.
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
)
|
|
6661
|
-
] });
|
|
6645
|
+
const ball = /* @__PURE__ */ jsxRuntime.jsx(
|
|
6646
|
+
"div",
|
|
6647
|
+
{
|
|
6648
|
+
className: clsx9__default.default(
|
|
6649
|
+
variants5[variant].big,
|
|
6650
|
+
"shrink-0 h-3 w-3 rounded-full flex items-center justify-center"
|
|
6651
|
+
),
|
|
6652
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6653
|
+
"div",
|
|
6654
|
+
{
|
|
6655
|
+
className: clsx9__default.default(variants5[variant].small, "h-[8px] w-[8px] rounded-full")
|
|
6656
|
+
}
|
|
6657
|
+
)
|
|
6658
|
+
}
|
|
6659
|
+
);
|
|
6662
6660
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center gap-2", children: labelPosition === "right" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6663
6661
|
ball,
|
|
6664
6662
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-p-md text-paragraph font-normal", children: label })
|
|
@@ -6803,7 +6801,7 @@ var TextArea = ({
|
|
|
6803
6801
|
const fieldValidationMessages = [error == null ? void 0 : error.message];
|
|
6804
6802
|
const hasError = fieldValidationMessages.some((item) => item !== void 0);
|
|
6805
6803
|
const styles = {
|
|
6806
|
-
input: `border border-neutral-800 rounded-lg block pb-[10px] pt-[18px] w-full bg-surface disabled:bg-neutral-100 focus-visible:
|
|
6804
|
+
input: `border border-neutral-800 rounded-lg block pb-[10px] pt-[18px] w-full bg-surface disabled:bg-neutral-100 focus-visible:ring-[1.5px] focus-visible:ring-blue-500 focus-visible:ring-offset-[2px] focus-visible:rounded-[2px] text-p-md peer shadow-input pl-2 outline-none ${hasError ? "border-dangerous-500 text-dangerous-500" : "border-neutral-300 text-paragraph"}`,
|
|
6807
6805
|
label: `cursor-text absolute text-label top-[0.70rem] z-10 transform origin-[0] -translate-y-3 scale-75 duration-300 text-sm peer-focus:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-3 left-2.5`
|
|
6808
6806
|
};
|
|
6809
6807
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|