@youngonesworks/ui 0.1.31 → 0.1.34

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 CHANGED
@@ -103139,7 +103139,7 @@ const AppleAppButtonIcon = (props) => /* @__PURE__ */ jsxs("svg", {
103139
103139
 
103140
103140
  //#endregion
103141
103141
  //#region src/components/textInput/index.tsx
103142
- const TextInput = forwardRef(({ rightSection, leftSection, className, error: error$1, autoFocus, label, maxLength, enablePasswordManagerAutofill = false, onBlur, disabled, onKeyDown, min: min$2 = "0", max: max$2, autoComplete, showRightSection = true, step, wrapperClassName, password = false,...props }, ref) => {
103142
+ const TextInput = React.forwardRef(({ rightSection, leftSection, className, error: error$1, autoFocus, label, maxLength, enablePasswordManagerAutofill = false, onBlur, disabled, onKeyDown, min: min$2 = "0", max: max$2, autoComplete, showRightSection = true, step, wrapperClassName, password = false,...props }, ref) => {
103143
103143
  const [showPassword, setShowPassword] = React.useState(false);
103144
103144
  return /* @__PURE__ */ jsxs("div", {
103145
103145
  "data-component": "TextInput",
@@ -104011,7 +104011,10 @@ const Modal = ({ title, children, withCloseButton = true, opened, additionalClas
104011
104011
  })
104012
104012
  }),
104013
104013
  /* @__PURE__ */ jsx("div", { children }),
104014
- gradient && /* @__PURE__ */ jsx("hr", { className: "bg-gradient-blue-pink absolute bottom-0 left-0 mt-8 mb-0 h-2! w-full border-none" })
104014
+ gradient && /* @__PURE__ */ jsx("hr", {
104015
+ className: "absolute bottom-0 left-0 mt-8 mb-0 h-2! w-full border-none",
104016
+ style: { backgroundImage: "linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-primary) 50.52%, var(--color-pink) 100%)" }
104017
+ })
104015
104018
  ]
104016
104019
  })
104017
104020
  })]
@@ -104119,12 +104122,14 @@ const PageUnavailable = ({ notAvailableButton, notAvailableDescription, notAvail
104119
104122
 
104120
104123
  //#endregion
104121
104124
  //#region src/components/passwordInput/index.tsx
104122
- const PasswordInput = ({ ...props }) => /* @__PURE__ */ jsx(TextInput, {
104125
+ const PasswordInput = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(TextInput, {
104123
104126
  password: true,
104124
104127
  enablePasswordManagerAutofill: true,
104125
104128
  type: "password",
104126
- ...props
104127
- });
104129
+ ...props,
104130
+ ref
104131
+ }));
104132
+ PasswordInput.displayName = "PasswordInput";
104128
104133
 
104129
104134
  //#endregion
104130
104135
  //#region node_modules/tabbable/dist/index.esm.js
@@ -115931,6 +115936,21 @@ const Tab = forwardRef(({ tabId, activeTab, tabContent, clickFnc, rightSection }
115931
115936
  })]
115932
115937
  }));
115933
115938
 
115939
+ //#endregion
115940
+ //#region src/components/tabs/TabsBadge.tsx
115941
+ const TabsBadge = ({ children }) => {
115942
+ const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
115943
+ return /* @__PURE__ */ jsx("div", {
115944
+ "data-testid": "tabs-badge",
115945
+ className: clsx_default("bg-pink h-5 rounded-full text-xs leading-5 font-medium text-white", {
115946
+ "w-5 text-center": isCircular,
115947
+ "px-2": !isCircular
115948
+ }),
115949
+ children
115950
+ });
115951
+ };
115952
+ TabsBadge.displayName = "TabsBadge";
115953
+
115934
115954
  //#endregion
115935
115955
  //#region src/components/tabs/TabsWrapper.tsx
115936
115956
  const TabsWrapper = ({ setActiveTab, activeTab, tabs }) => {
@@ -115996,21 +116016,6 @@ const TabContent = forwardRef(({ tab, setActiveTab, activeTab }, ref) => /* @__P
115996
116016
  }));
115997
116017
  TabContent.displayName = "TabContent";
115998
116018
 
115999
- //#endregion
116000
- //#region src/components/tabs/TabsBadge.tsx
116001
- const TabsBadge = ({ children }) => {
116002
- const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
116003
- return /* @__PURE__ */ jsx("div", {
116004
- "data-testid": "tabs-badge",
116005
- className: clsx_default("bg-pink h-5 rounded-full text-xs leading-5 font-medium text-white", {
116006
- "w-5 text-center": isCircular,
116007
- "px-2": !isCircular
116008
- }),
116009
- children
116010
- });
116011
- };
116012
- TabsBadge.displayName = "TabsBadge";
116013
-
116014
116019
  //#endregion
116015
116020
  //#region src/components/textArea/index.tsx
116016
116021
  const Textarea = forwardRef(({ className, label, error: error$1, rows = 8,...props }, ref) => /* @__PURE__ */ jsxs("div", {