@bubo-squared/ui-framework 0.2.11 → 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.cjs +255 -238
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +287 -270
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -106,7 +106,7 @@ type TypographyWeight = "regular" | "medium" | "bold";
|
|
|
106
106
|
type ElementType = React$1.ElementType;
|
|
107
107
|
type PropsOf<T extends ElementType> = React$1.ComponentPropsWithoutRef<T>;
|
|
108
108
|
type TypographyOwnProps = {
|
|
109
|
-
variant
|
|
109
|
+
variant?: TypographyVariant;
|
|
110
110
|
weight?: TypographyWeight;
|
|
111
111
|
useMargin?: boolean;
|
|
112
112
|
className?: string;
|
|
@@ -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
|
-
|
|
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
|
|
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
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
|
|
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 = "
|
|
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
|
@@ -106,7 +106,7 @@ type TypographyWeight = "regular" | "medium" | "bold";
|
|
|
106
106
|
type ElementType = React$1.ElementType;
|
|
107
107
|
type PropsOf<T extends ElementType> = React$1.ComponentPropsWithoutRef<T>;
|
|
108
108
|
type TypographyOwnProps = {
|
|
109
|
-
variant
|
|
109
|
+
variant?: TypographyVariant;
|
|
110
110
|
weight?: TypographyWeight;
|
|
111
111
|
useMargin?: boolean;
|
|
112
112
|
className?: string;
|
|
@@ -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
|
-
|
|
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
|
|
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
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
|
|
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 = "
|
|
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>;
|