bsm-design-system 1.9.0 → 1.9.2
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 +8 -6
- package/index.d.ts +8 -6
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
4
3
|
import * as tailwind_variants from 'tailwind-variants';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { Root } from '@radix-ui/react-switch';
|
|
6
6
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
7
7
|
import { Root as Root$1 } from '@radix-ui/react-radio-group';
|
|
@@ -138,9 +138,9 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* A button component
|
|
141
|
+
* A button component with support for ref
|
|
142
142
|
*/
|
|
143
|
-
declare
|
|
143
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
144
144
|
|
|
145
145
|
declare const switchVariants: tailwind_variants.TVReturnType<{
|
|
146
146
|
size: {
|
|
@@ -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: {
|
|
@@ -571,6 +571,7 @@ type Option = {
|
|
|
571
571
|
|
|
572
572
|
interface SelectProps {
|
|
573
573
|
mode?: "select" | "multi";
|
|
574
|
+
className?: string;
|
|
574
575
|
options: Option[];
|
|
575
576
|
value: string | string[] | null;
|
|
576
577
|
onChange: (v: any) => void;
|
|
@@ -587,9 +588,10 @@ interface SelectProps {
|
|
|
587
588
|
hint?: string;
|
|
588
589
|
helperText?: string;
|
|
589
590
|
size?: "xs" | "sm" | "md" | "lg";
|
|
591
|
+
scrollContent?: boolean;
|
|
590
592
|
}
|
|
591
593
|
|
|
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;
|
|
594
|
+
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
595
|
|
|
594
596
|
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
595
597
|
declare namespace Tooltip {
|
|
@@ -607,4 +609,4 @@ declare namespace Popover {
|
|
|
607
609
|
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
608
610
|
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
609
611
|
|
|
610
|
-
export { Button, Card, Checkbox, SmartDialog as Dialog, SmartSheet as Drawer,
|
|
612
|
+
export { Button, Card, Checkbox, SmartDialog as Dialog, SmartSheet as Drawer, Input, Popover, RadioGroup, SegmentButton, Select, Switch, Tooltip };
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
4
3
|
import * as tailwind_variants from 'tailwind-variants';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { Root } from '@radix-ui/react-switch';
|
|
6
6
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
7
7
|
import { Root as Root$1 } from '@radix-ui/react-radio-group';
|
|
@@ -138,9 +138,9 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* A button component
|
|
141
|
+
* A button component with support for ref
|
|
142
142
|
*/
|
|
143
|
-
declare
|
|
143
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
144
144
|
|
|
145
145
|
declare const switchVariants: tailwind_variants.TVReturnType<{
|
|
146
146
|
size: {
|
|
@@ -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: {
|
|
@@ -571,6 +571,7 @@ type Option = {
|
|
|
571
571
|
|
|
572
572
|
interface SelectProps {
|
|
573
573
|
mode?: "select" | "multi";
|
|
574
|
+
className?: string;
|
|
574
575
|
options: Option[];
|
|
575
576
|
value: string | string[] | null;
|
|
576
577
|
onChange: (v: any) => void;
|
|
@@ -587,9 +588,10 @@ interface SelectProps {
|
|
|
587
588
|
hint?: string;
|
|
588
589
|
helperText?: string;
|
|
589
590
|
size?: "xs" | "sm" | "md" | "lg";
|
|
591
|
+
scrollContent?: boolean;
|
|
590
592
|
}
|
|
591
593
|
|
|
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;
|
|
594
|
+
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
595
|
|
|
594
596
|
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
595
597
|
declare namespace Tooltip {
|
|
@@ -607,4 +609,4 @@ declare namespace Popover {
|
|
|
607
609
|
declare function PopoverTrigger({ ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
608
610
|
declare function PopoverContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
609
611
|
|
|
610
|
-
export { Button, Card, Checkbox, SmartDialog as Dialog, SmartSheet as Drawer,
|
|
612
|
+
export { Button, Card, Checkbox, SmartDialog as Dialog, SmartSheet as Drawer, Input, Popover, RadioGroup, SegmentButton, Select, Switch, Tooltip };
|