lecom-ui 5.3.55 → 5.3.56

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.
@@ -2,7 +2,7 @@ import React__default from 'react';
2
2
  import clsx from 'clsx';
3
3
  import { Typography } from '../Typography/Typography.js';
4
4
  import { Input } from '../Input/Input.js';
5
- import { Plus, Minus, Info } from 'lucide-react';
5
+ import { Info, Plus, Minus } from 'lucide-react';
6
6
  import { twMerge } from 'tailwind-merge';
7
7
 
8
8
  const NumberControl = ({
@@ -13,6 +13,7 @@ const NumberControl = ({
13
13
  required = false,
14
14
  min = 0,
15
15
  className = "",
16
+ labelClassName = "",
16
17
  info = false,
17
18
  labelPosition = "top"
18
19
  }) => {
@@ -44,7 +45,7 @@ const NumberControl = ({
44
45
  {
45
46
  variant: "body-medium-400",
46
47
  textColor: "text-grey-950",
47
- className: "flex items-center gap-1 justify-center"
48
+ className: twMerge(clsx("flex items-center gap-1", labelClassName))
48
49
  },
49
50
  label,
50
51
  required && /* @__PURE__ */ React__default.createElement("span", { className: "body-large-400 text-red-600" }, "*"),
package/dist/index.d.ts CHANGED
@@ -944,10 +944,11 @@ interface NumberControlProps {
944
944
  required?: boolean;
945
945
  min?: number;
946
946
  className?: string;
947
+ labelClassName?: string;
947
948
  info?: boolean;
948
949
  labelPosition?: 'top' | 'bottom';
949
950
  }
950
- declare const NumberControl: ({ label, value, onChange, placeholder, required, min, className, info, labelPosition, }: NumberControlProps) => React__default.JSX.Element;
951
+ declare const NumberControl: ({ label, value, onChange, placeholder, required, min, className, labelClassName, info, labelPosition, }: NumberControlProps) => React__default.JSX.Element;
951
952
 
952
953
  declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
953
954
  declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "5.3.55",
3
+ "version": "5.3.56",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",