@youngonesworks/ui 0.1.38 → 0.1.40

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.
@@ -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>;
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: [