lecom-ui 5.3.55 → 5.3.57

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
  }) => {
@@ -42,9 +43,9 @@ const NumberControl = ({
42
43
  const labelElement = /* @__PURE__ */ React__default.createElement(
43
44
  Typography,
44
45
  {
45
- variant: "body-medium-400",
46
- textColor: "text-grey-950",
47
- className: "flex items-center gap-1 justify-center"
46
+ variant: "body-small-400",
47
+ textColor: "text-grey-700",
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
@@ -756,8 +756,8 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
756
756
 
757
757
  declare const inputVariants: (props?: ({
758
758
  variant?: "default" | "filled" | "borderless" | null | undefined;
759
- size?: "default" | "small" | "large" | null | undefined;
760
- radius?: "default" | "small" | "large" | "full" | null | undefined;
759
+ size?: "small" | "default" | "large" | null | undefined;
760
+ radius?: "small" | "default" | "large" | "full" | null | undefined;
761
761
  } & class_variance_authority_types.ClassProp) | undefined) => string;
762
762
  interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
763
763
  sufix?: React$1.ReactNode;
@@ -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>>;
@@ -957,7 +958,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
957
958
  declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
958
959
 
959
960
  declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
960
- declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLHeadingElement | HTMLParagraphElement | HTMLLabelElement | HTMLInputElement | HTMLUListElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
961
+ declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLLabelElement | HTMLInputElement | HTMLUListElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
961
962
  className?: string;
962
963
  collapsedSize?: number | undefined;
963
964
  collapsible?: boolean | undefined;
@@ -1113,8 +1114,8 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
1113
1114
 
1114
1115
  declare const textareaVariants: (props?: ({
1115
1116
  variant?: "default" | "filled" | "borderless" | null | undefined;
1116
- size?: "default" | "small" | "large" | null | undefined;
1117
- radius?: "default" | "small" | "large" | "full" | null | undefined;
1117
+ size?: "small" | "default" | "large" | null | undefined;
1118
+ radius?: "small" | "default" | "large" | "full" | null | undefined;
1118
1119
  resize?: "default" | "both" | "horizontal" | "vertical" | "vertical-limited" | null | undefined;
1119
1120
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1120
1121
  interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "5.3.55",
3
+ "version": "5.3.57",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",