@youngonesworks/ui 0.1.38 → 0.1.42

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -6,6 +6,7 @@ interface ICheckbox extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 's
6
6
  label?: React.ReactNode;
7
7
  indeterminate?: boolean;
8
8
  size?: 'sm' | 'md';
9
+ labelClassName?: string;
9
10
  }
10
11
  export declare const Checkbox: (props: ICheckbox & {
11
12
  ref?: React.Ref<HTMLInputElement>;
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.cjs CHANGED
@@ -103144,6 +103144,7 @@ const TextInput = react.default.forwardRef(({ rightSection, leftSection, classNa
103144
103144
  className: clsx_default("relative", wrapperClassName),
103145
103145
  children: [
103146
103146
  label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
103147
+ htmlFor: props.id,
103147
103148
  className: "mb-2 flex items-center gap-1 text-xs font-medium text-black",
103148
103149
  children: label
103149
103150
  }),
@@ -103449,10 +103450,10 @@ Button.displayName = "Button";
103449
103450
 
103450
103451
  //#endregion
103451
103452
  //#region src/components/checkbox/index.tsx
103452
- const CheckboxComponent = ({ size: size$3 = "md", className, error: error$1, mediumBoldText, label, indeterminate = false, disabled = false,...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
103453
+ const CheckboxComponent = ({ size: size$3 = "md", className, error: error$1, mediumBoldText, label, labelClassName, indeterminate = false, disabled = false,...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
103453
103454
  className: cn("relative grid gap-2", className),
103454
103455
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
103455
- className: cn("flex cursor-pointer items-center gap-3"),
103456
+ className: cn("flex cursor-pointer items-center gap-3", labelClassName),
103456
103457
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
103457
103458
  className: cn("relative grid shrink-0 place-content-center", size$3 === "sm" ? "size-4" : "size-5"),
103458
103459
  children: [
@@ -115834,7 +115835,10 @@ const Stepper = ({ steps, setStep = () => {}, variant = "default", clickableStep
115834
115835
  children: [(index$4 < activeStep || isCompleted) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
115835
115836
  className: "flex items-center justify-center text-white",
115836
115837
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCheck, { size: variant === "small" || isMobile ? 7 : 12 })
115837
- }), index$4 === activeStep && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: `${variant === "small" || isMobile ? "size-1" : "size-2"} bg-light-blue rounded-full` })]
115838
+ }), index$4 === activeStep && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
115839
+ "data-testid": "active-step-indicator",
115840
+ className: `${variant === "small" || isMobile ? "size-1" : "size-2"} bg-light-blue rounded-full`
115841
+ })]
115838
115842
  }),
115839
115843
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
115840
115844
  className: "flex flex-wrap items-center justify-center",
@@ -115931,9 +115935,9 @@ const TabsBadge = ({ children }) => {
115931
115935
  const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
115932
115936
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
115933
115937
  "data-testid": "tabs-badge",
115934
- className: clsx_default("bg-pink h-5 rounded-full text-xs leading-5 font-medium text-white", {
115935
- "w-5 text-center": isCircular,
115936
- "px-2": !isCircular
115938
+ className: clsx_default("bg-pink h-5 text-xs leading-5 font-medium text-white", {
115939
+ "rounded-full w-5 text-center": isCircular,
115940
+ "rounded px-2": !isCircular
115937
115941
  }),
115938
115942
  children
115939
115943
  });