@bubo-squared/ui-framework 0.2.12 → 0.2.13

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.d.cts CHANGED
@@ -218,17 +218,20 @@ type DividerProps = BaseDividerProps | IconLinesDividerProps | IconGroupLinesDiv
218
218
  declare const Divider: React$1.FC<DividerProps>;
219
219
 
220
220
  type ProgressSize = "sm" | "md" | "lg";
221
- interface ProgressProps extends React$1.HTMLAttributes<HTMLDivElement> {
221
+ type ProgressStatus = "default" | "success" | "error";
222
+ interface ProgressProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> {
222
223
  /** Current value, from 0 to 100. */
223
224
  value: number;
224
- /** Optional label shown above the bar with the percentage on the right. */
225
+ /** Optional label shown above the bar. */
225
226
  label?: string;
226
227
  /** Optional hint text shown below the bar. */
227
228
  hint?: string;
228
- /** Controls whether the label/percentage row is rendered. */
229
- showLabel?: boolean;
230
- /** Controls whether the hint text is rendered. */
231
- showHint?: boolean;
229
+ /** Controls whether the progress percentage label is rendered. */
230
+ showProgressLabel?: boolean;
231
+ /** If true, the hint will not be rendered even if provided. */
232
+ hideHint?: boolean;
233
+ status?: ProgressStatus;
234
+ disabled?: boolean;
232
235
  /** Visual height of the bar. */
233
236
  size?: ProgressSize;
234
237
  }
@@ -278,7 +281,6 @@ declare const dropdownTriggerVariants: (props?: ({
278
281
  } & class_variance_authority_types.ClassProp) | undefined) => string;
279
282
  interface DropdownProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onChange">, VariantProps<typeof dropdownTriggerVariants> {
280
283
  label?: string;
281
- showLabel?: boolean;
282
284
  hint?: string;
283
285
  /**
284
286
  * If true, the hint will not be rendered even if provided.
@@ -298,6 +300,7 @@ declare const Dropdown: React$1.FC<DropdownProps>;
298
300
  type FieldStatus = "default" | "success" | "error";
299
301
  interface FieldProps {
300
302
  label?: string;
303
+ labelRight?: React$1.ReactNode;
301
304
  hint?: string;
302
305
  /**
303
306
  * If true, the hint will not be rendered even if provided.
@@ -312,7 +315,7 @@ declare const Field: React$1.FC<FieldProps>;
312
315
 
313
316
  type PasswordInputSize = "sm" | "md" | "lg" | "xl";
314
317
  type PasswordInputStatus = "default" | "success" | "error";
315
- type PasswordInputVariant = "icons" | "action";
318
+ type PasswordInputVariant = "icon" | "text";
316
319
  interface PasswordInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "disabled"> {
317
320
  label?: string;
318
321
  hint?: string;
@@ -325,9 +328,6 @@ interface PasswordInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputE
325
328
  size?: PasswordInputSize;
326
329
  variant?: PasswordInputVariant;
327
330
  leadingIcon?: React$1.ReactNode;
328
- trailingIcon?: React$1.ReactNode;
329
- actionLabel?: string;
330
- onActionClick?: () => void;
331
331
  disabled?: boolean;
332
332
  }
333
333
  declare const PasswordInput: React$1.FC<PasswordInputProps>;
package/dist/index.d.ts CHANGED
@@ -218,17 +218,20 @@ type DividerProps = BaseDividerProps | IconLinesDividerProps | IconGroupLinesDiv
218
218
  declare const Divider: React$1.FC<DividerProps>;
219
219
 
220
220
  type ProgressSize = "sm" | "md" | "lg";
221
- interface ProgressProps extends React$1.HTMLAttributes<HTMLDivElement> {
221
+ type ProgressStatus = "default" | "success" | "error";
222
+ interface ProgressProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> {
222
223
  /** Current value, from 0 to 100. */
223
224
  value: number;
224
- /** Optional label shown above the bar with the percentage on the right. */
225
+ /** Optional label shown above the bar. */
225
226
  label?: string;
226
227
  /** Optional hint text shown below the bar. */
227
228
  hint?: string;
228
- /** Controls whether the label/percentage row is rendered. */
229
- showLabel?: boolean;
230
- /** Controls whether the hint text is rendered. */
231
- showHint?: boolean;
229
+ /** Controls whether the progress percentage label is rendered. */
230
+ showProgressLabel?: boolean;
231
+ /** If true, the hint will not be rendered even if provided. */
232
+ hideHint?: boolean;
233
+ status?: ProgressStatus;
234
+ disabled?: boolean;
232
235
  /** Visual height of the bar. */
233
236
  size?: ProgressSize;
234
237
  }
@@ -278,7 +281,6 @@ declare const dropdownTriggerVariants: (props?: ({
278
281
  } & class_variance_authority_types.ClassProp) | undefined) => string;
279
282
  interface DropdownProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, "onChange">, VariantProps<typeof dropdownTriggerVariants> {
280
283
  label?: string;
281
- showLabel?: boolean;
282
284
  hint?: string;
283
285
  /**
284
286
  * If true, the hint will not be rendered even if provided.
@@ -298,6 +300,7 @@ declare const Dropdown: React$1.FC<DropdownProps>;
298
300
  type FieldStatus = "default" | "success" | "error";
299
301
  interface FieldProps {
300
302
  label?: string;
303
+ labelRight?: React$1.ReactNode;
301
304
  hint?: string;
302
305
  /**
303
306
  * If true, the hint will not be rendered even if provided.
@@ -312,7 +315,7 @@ declare const Field: React$1.FC<FieldProps>;
312
315
 
313
316
  type PasswordInputSize = "sm" | "md" | "lg" | "xl";
314
317
  type PasswordInputStatus = "default" | "success" | "error";
315
- type PasswordInputVariant = "icons" | "action";
318
+ type PasswordInputVariant = "icon" | "text";
316
319
  interface PasswordInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "disabled"> {
317
320
  label?: string;
318
321
  hint?: string;
@@ -325,9 +328,6 @@ interface PasswordInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputE
325
328
  size?: PasswordInputSize;
326
329
  variant?: PasswordInputVariant;
327
330
  leadingIcon?: React$1.ReactNode;
328
- trailingIcon?: React$1.ReactNode;
329
- actionLabel?: string;
330
- onActionClick?: () => void;
331
331
  disabled?: boolean;
332
332
  }
333
333
  declare const PasswordInput: React$1.FC<PasswordInputProps>;