bsm-design-system 1.9.1 → 1.9.3
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/index.d.mts +21 -8
- package/index.d.ts +21 -8
- package/index.js +6 -6
- package/index.mjs +6 -6
- package/package.json +1 -1
- package/styles.css +1 -1
package/index.d.mts
CHANGED
|
@@ -394,7 +394,7 @@ interface InputProps extends DefaultType$1 {
|
|
|
394
394
|
helperText?: string;
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
declare function
|
|
397
|
+
declare function Input({ size, label, error, loading, beforeIcon, afterIcon, actionIcon, className, helperText, prefix, suffix, hint, rounded, onActionClick, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
398
398
|
|
|
399
399
|
declare const containerVariants: tailwind_variants.TVReturnType<{
|
|
400
400
|
size: {
|
|
@@ -569,11 +569,9 @@ type Option = {
|
|
|
569
569
|
value: string;
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
-
interface
|
|
573
|
-
|
|
572
|
+
interface BaseSelectProps {
|
|
573
|
+
className?: string;
|
|
574
574
|
options: Option[];
|
|
575
|
-
value: string | string[] | null;
|
|
576
|
-
onChange: (v: any) => void;
|
|
577
575
|
onSearch?: (text: string) => void;
|
|
578
576
|
placeholder?: string;
|
|
579
577
|
emptyText?: string;
|
|
@@ -587,9 +585,24 @@ interface SelectProps {
|
|
|
587
585
|
hint?: string;
|
|
588
586
|
helperText?: string;
|
|
589
587
|
size?: "xs" | "sm" | "md" | "lg";
|
|
590
|
-
|
|
588
|
+
scrollContent?: boolean;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
interface SingleSelectProps extends BaseSelectProps {
|
|
592
|
+
mode?: "select"; // default
|
|
593
|
+
value: string | null;
|
|
594
|
+
onChange: (v: string | null) => void;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
interface MultiSelectProps extends BaseSelectProps {
|
|
598
|
+
mode: "multi";
|
|
599
|
+
value: string[];
|
|
600
|
+
onChange: (v: string[]) => void;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
type SelectProps = SingleSelectProps | MultiSelectProps;
|
|
591
604
|
|
|
592
|
-
declare function Select({ mode, options, value, onChange, onSearch, searchable, loading, label, hint, helperText, error, disabled, readOnly, size, asyncSearch, placeholder, emptyText, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
605
|
+
declare function Select({ mode, options, value, className, onChange, onSearch, searchable, loading, label, hint, helperText, error, disabled, readOnly, size, asyncSearch, scrollContent, placeholder, emptyText, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
593
606
|
|
|
594
607
|
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
595
608
|
declare namespace Tooltip {
|
|
@@ -607,4 +620,4 @@ declare namespace Popover {
|
|
|
607
620
|
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
608
621
|
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
609
622
|
|
|
610
|
-
export { Button, Card, Checkbox, SmartDialog as Dialog, SmartSheet as Drawer,
|
|
623
|
+
export { Button, Card, Checkbox, SmartDialog as Dialog, SmartSheet as Drawer, Input, Popover, RadioGroup, SegmentButton, Select, Switch, Tooltip };
|
package/index.d.ts
CHANGED
|
@@ -394,7 +394,7 @@ interface InputProps extends DefaultType$1 {
|
|
|
394
394
|
helperText?: string;
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
declare function
|
|
397
|
+
declare function Input({ size, label, error, loading, beforeIcon, afterIcon, actionIcon, className, helperText, prefix, suffix, hint, rounded, onActionClick, ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
398
398
|
|
|
399
399
|
declare const containerVariants: tailwind_variants.TVReturnType<{
|
|
400
400
|
size: {
|
|
@@ -569,11 +569,9 @@ type Option = {
|
|
|
569
569
|
value: string;
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
-
interface
|
|
573
|
-
|
|
572
|
+
interface BaseSelectProps {
|
|
573
|
+
className?: string;
|
|
574
574
|
options: Option[];
|
|
575
|
-
value: string | string[] | null;
|
|
576
|
-
onChange: (v: any) => void;
|
|
577
575
|
onSearch?: (text: string) => void;
|
|
578
576
|
placeholder?: string;
|
|
579
577
|
emptyText?: string;
|
|
@@ -587,9 +585,24 @@ interface SelectProps {
|
|
|
587
585
|
hint?: string;
|
|
588
586
|
helperText?: string;
|
|
589
587
|
size?: "xs" | "sm" | "md" | "lg";
|
|
590
|
-
|
|
588
|
+
scrollContent?: boolean;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
interface SingleSelectProps extends BaseSelectProps {
|
|
592
|
+
mode?: "select"; // default
|
|
593
|
+
value: string | null;
|
|
594
|
+
onChange: (v: string | null) => void;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
interface MultiSelectProps extends BaseSelectProps {
|
|
598
|
+
mode: "multi";
|
|
599
|
+
value: string[];
|
|
600
|
+
onChange: (v: string[]) => void;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
type SelectProps = SingleSelectProps | MultiSelectProps;
|
|
591
604
|
|
|
592
|
-
declare function Select({ mode, options, value, onChange, onSearch, searchable, loading, label, hint, helperText, error, disabled, readOnly, size, asyncSearch, placeholder, emptyText, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
605
|
+
declare function Select({ mode, options, value, className, onChange, onSearch, searchable, loading, label, hint, helperText, error, disabled, readOnly, size, asyncSearch, scrollContent, placeholder, emptyText, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
593
606
|
|
|
594
607
|
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
595
608
|
declare namespace Tooltip {
|
|
@@ -607,4 +620,4 @@ declare namespace Popover {
|
|
|
607
620
|
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
608
621
|
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
609
622
|
|
|
610
|
-
export { Button, Card, Checkbox, SmartDialog as Dialog, SmartSheet as Drawer,
|
|
623
|
+
export { Button, Card, Checkbox, SmartDialog as Dialog, SmartSheet as Drawer, Input, Popover, RadioGroup, SegmentButton, Select, Switch, Tooltip };
|