bsm-design-system 1.22.18 → 1.23.0

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 CHANGED
@@ -194,7 +194,7 @@ declare const switchVariants: tailwind_variants.TVReturnType<{
194
194
  };
195
195
  }, undefined, "group cursor-pointer border-2 border-transparent inline-flex shrink-0 items-center rounded-full transition-all\n data-[state=checked]:text-brand-secondary\n data-[state=unchecked]:text-icon-secondary\n outline-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", unknown, unknown, undefined>>;
196
196
 
197
- type DefaultType$4 = Omit<
197
+ type DefaultType$5 = Omit<
198
198
  React.ComponentProps<typeof Root>,
199
199
  "onCheckedChange" | "onChange"
200
200
  >;
@@ -209,7 +209,7 @@ type SwitchProps = {
209
209
  * Switch onChange event
210
210
  */
211
211
  onChange?: (checked: boolean) => void;
212
- } & DefaultType$4;
212
+ } & DefaultType$5;
213
213
 
214
214
  /**
215
215
  * A switch component
@@ -260,7 +260,7 @@ declare const radioVariants: tailwind_variants.TVReturnType<{
260
260
  };
261
261
  }, undefined, "grid gap-3", unknown, unknown, undefined>>;
262
262
 
263
- type DefaultType$3 = Omit<
263
+ type DefaultType$4 = Omit<
264
264
  React.ComponentProps<typeof Root$1>,
265
265
  "onValueChange" | "onChange"
266
266
  >;
@@ -277,7 +277,7 @@ type RadioProps = {
277
277
  * RadioGroup onChange event
278
278
  */
279
279
  onChange?: (value: string) => void;
280
- } & DefaultType$3;
280
+ } & DefaultType$4;
281
281
 
282
282
  declare function RadioGroup({ className, size, disabled, orientation, onChange, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
283
283
  declare namespace RadioGroup {
@@ -316,14 +316,14 @@ declare const checkboxVariants: tailwind_variants.TVReturnType<{
316
316
  };
317
317
  }, undefined, "peer cursor-pointer transition-all shrink-0 rounded-sm border-2 outline-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", unknown, unknown, undefined>>;
318
318
 
319
- type DefaultType$2 = Omit<
319
+ type DefaultType$3 = Omit<
320
320
  React.ComponentProps<typeof Root$2>,
321
321
  "onCheckedChange" | "onChange"
322
322
  >;
323
323
 
324
324
  type CheckboxSize = keyof typeof checkboxVariants.variants.size;
325
325
 
326
- interface CheckboxProps extends DefaultType$2 {
326
+ interface CheckboxProps extends DefaultType$3 {
327
327
  /**
328
328
  * Checkbox size
329
329
  */
@@ -363,11 +363,11 @@ declare const inputVariants: tailwind_variants.TVReturnType<{
363
363
  };
364
364
  }, undefined, "peer w-full text-fg disabled:text-fg-disabled min-w-0 flex-1 rounded-none border-0 placeholder:text-fg-quaternary placeholder:font-light bg-transparent px-3 text-center shadow-none outline-none focus-visible:ring-0!", unknown, unknown, undefined>>;
365
365
 
366
- type DefaultType$1 = Omit<React.ComponentProps<"input">, "size">;
366
+ type DefaultType$2 = Omit<React.ComponentProps<"input">, "size">;
367
367
 
368
368
  type InputSize = keyof typeof inputVariants.variants.size;
369
369
 
370
- interface InputProps extends DefaultType$1 {
370
+ interface InputProps extends DefaultType$2 {
371
371
  /**
372
372
  * Input Size
373
373
  */
@@ -471,7 +471,7 @@ declare const containerVariants: tailwind_variants.TVReturnType<{
471
471
  };
472
472
  }, undefined, "bg-surface-sunken inline-flex items-center justify-center p-1 gap-1", unknown, unknown, undefined>>;
473
473
 
474
- type DefaultType = Omit<
474
+ type DefaultType$1 = Omit<
475
475
  React.ComponentProps<typeof TabsPrimitive.Root>,
476
476
  "onValueChange" | "onChange"
477
477
  >;
@@ -499,7 +499,7 @@ type SegmentButtonType = {
499
499
  * Segment Button onChange event
500
500
  */
501
501
  onChange?: (value: string) => void;
502
- } & DefaultType;
502
+ } & DefaultType$1;
503
503
 
504
504
  declare function SegmentButton({ className, size, disabled, rounded, fullWidth, children, onChange, ...props }: SegmentButtonType): react_jsx_runtime.JSX.Element;
505
505
  declare namespace SegmentButton {
@@ -1159,6 +1159,29 @@ declare function ScrollArea({ className, children, viewportClassName, ...props }
1159
1159
 
1160
1160
  declare function DynamicBreadcrumb({ items, seperator, maxVisible, LinkComponent, }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
1161
1161
 
1162
+ type DefaultType = Omit<React.ComponentProps<"textarea">, "size">;
1163
+
1164
+ interface TextAreaProps extends DefaultType {
1165
+ /**
1166
+ * Input label
1167
+ */
1168
+ label?: string;
1169
+ /**
1170
+ * Input Error State
1171
+ */
1172
+ error?: boolean;
1173
+ /**
1174
+ * Input Rounded State
1175
+ */
1176
+ rounded?: boolean;
1177
+ /**
1178
+ * Input helpertext Icon
1179
+ */
1180
+ helperText?: string;
1181
+ }
1182
+
1183
+ declare function Textarea({ className, error, readOnly, disabled, helperText, label, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
1184
+
1162
1185
  declare const RULES: {
1163
1186
  readonly ONLY_DIGITS: RegExp;
1164
1187
  readonly ONLY_CHARS: RegExp;
@@ -1173,4 +1196,4 @@ declare const isNoSpace: (value: string) => boolean;
1173
1196
 
1174
1197
  declare const toEnglishDigits: (value: string) => string;
1175
1198
 
1176
- export { Accordion, type AccordionProps, type AccordionVariant, Alert, type AlertProps, type AlertTypes, type AlertVariants, DynamicBreadcrumb as Breadcrumb, type BreadcrumbItemType, type BreadcrumbProps, Button, type ButtonColors, type ButtonProps, type ButtonSize, type ButtonVariant, Card, Checkbox, type CheckboxProps, type CheckboxSize, Badge as Chips, type ChipsType, type ChipsVariantType, SmartDialog as Dialog, type DialogHeaderBarProps, type SmartDialogProps as DialogProps, type DialogSize, SmartSheet as Drawer, type DrawerHeader, type DrawerProps, type DrawerSide, DropdownMenu, type IconType, Input, InputOTP, type InputProps, type InputSize, NestedAccordionMenu as ListMenu, type MultiSelectProps, type MultiSelectValueType, type OTPProps, type OrientationType, Pagination, type PaginationProps, Popover, type PopoverContent$1 as PopoverContent, type PopoverProps, type PopoverTrigger$1 as PopoverTrigger, RULES, RadioGroup, type RadioItemProps, type RadioProps, type RadioSize, ScrollArea, SegmentButton, type SegmentButtonSize, type SegmentButtonType, Select, type SelectOptionType, type SelectProps, type SingleSelectProps, type SingleSelectValueType, Skeleton, type StateAction, type StepItem, Stepper, type StepperProps, Switch, type SwitchProps, type SwitchSize, Table, Tabs, type TabsContentProps, type TabsListProps, type TabsProps, type TabsSize, type TabsTriggerProps, type TabsVariants, Tag, type TagType, type TagVariantsType, Tooltip, isNoSpace, isOnlyChars, isOnlyDigits, isOnlyDigitsAndChars, toEnglishDigits };
1199
+ export { Accordion, type AccordionProps, type AccordionVariant, Alert, type AlertProps, type AlertTypes, type AlertVariants, DynamicBreadcrumb as Breadcrumb, type BreadcrumbItemType, type BreadcrumbProps, Button, type ButtonColors, type ButtonProps, type ButtonSize, type ButtonVariant, Card, Checkbox, type CheckboxProps, type CheckboxSize, Badge as Chips, type ChipsType, type ChipsVariantType, SmartDialog as Dialog, type DialogHeaderBarProps, type SmartDialogProps as DialogProps, type DialogSize, SmartSheet as Drawer, type DrawerHeader, type DrawerProps, type DrawerSide, DropdownMenu, type IconType, Input, InputOTP, type InputProps, type InputSize, NestedAccordionMenu as ListMenu, type MultiSelectProps, type MultiSelectValueType, type OTPProps, type OrientationType, Pagination, type PaginationProps, Popover, type PopoverContent$1 as PopoverContent, type PopoverProps, type PopoverTrigger$1 as PopoverTrigger, RULES, RadioGroup, type RadioItemProps, type RadioProps, type RadioSize, ScrollArea, SegmentButton, type SegmentButtonSize, type SegmentButtonType, Select, type SelectOptionType, type SelectProps, type SingleSelectProps, type SingleSelectValueType, Skeleton, type StateAction, type StepItem, Stepper, type StepperProps, Switch, type SwitchProps, type SwitchSize, Table, Tabs, type TabsContentProps, type TabsListProps, type TabsProps, type TabsSize, type TabsTriggerProps, type TabsVariants, Tag, type TagType, type TagVariantsType, Textarea, Tooltip, isNoSpace, isOnlyChars, isOnlyDigits, isOnlyDigitsAndChars, toEnglishDigits };
package/index.d.ts CHANGED
@@ -194,7 +194,7 @@ declare const switchVariants: tailwind_variants.TVReturnType<{
194
194
  };
195
195
  }, undefined, "group cursor-pointer border-2 border-transparent inline-flex shrink-0 items-center rounded-full transition-all\n data-[state=checked]:text-brand-secondary\n data-[state=unchecked]:text-icon-secondary\n outline-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", unknown, unknown, undefined>>;
196
196
 
197
- type DefaultType$4 = Omit<
197
+ type DefaultType$5 = Omit<
198
198
  React.ComponentProps<typeof Root>,
199
199
  "onCheckedChange" | "onChange"
200
200
  >;
@@ -209,7 +209,7 @@ type SwitchProps = {
209
209
  * Switch onChange event
210
210
  */
211
211
  onChange?: (checked: boolean) => void;
212
- } & DefaultType$4;
212
+ } & DefaultType$5;
213
213
 
214
214
  /**
215
215
  * A switch component
@@ -260,7 +260,7 @@ declare const radioVariants: tailwind_variants.TVReturnType<{
260
260
  };
261
261
  }, undefined, "grid gap-3", unknown, unknown, undefined>>;
262
262
 
263
- type DefaultType$3 = Omit<
263
+ type DefaultType$4 = Omit<
264
264
  React.ComponentProps<typeof Root$1>,
265
265
  "onValueChange" | "onChange"
266
266
  >;
@@ -277,7 +277,7 @@ type RadioProps = {
277
277
  * RadioGroup onChange event
278
278
  */
279
279
  onChange?: (value: string) => void;
280
- } & DefaultType$3;
280
+ } & DefaultType$4;
281
281
 
282
282
  declare function RadioGroup({ className, size, disabled, orientation, onChange, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
283
283
  declare namespace RadioGroup {
@@ -316,14 +316,14 @@ declare const checkboxVariants: tailwind_variants.TVReturnType<{
316
316
  };
317
317
  }, undefined, "peer cursor-pointer transition-all shrink-0 rounded-sm border-2 outline-none focus-visible:ring-offset-surface focus-visible:ring-offset-3 focus-visible:ring-2 focus-visible:ring-focus-ring", unknown, unknown, undefined>>;
318
318
 
319
- type DefaultType$2 = Omit<
319
+ type DefaultType$3 = Omit<
320
320
  React.ComponentProps<typeof Root$2>,
321
321
  "onCheckedChange" | "onChange"
322
322
  >;
323
323
 
324
324
  type CheckboxSize = keyof typeof checkboxVariants.variants.size;
325
325
 
326
- interface CheckboxProps extends DefaultType$2 {
326
+ interface CheckboxProps extends DefaultType$3 {
327
327
  /**
328
328
  * Checkbox size
329
329
  */
@@ -363,11 +363,11 @@ declare const inputVariants: tailwind_variants.TVReturnType<{
363
363
  };
364
364
  }, undefined, "peer w-full text-fg disabled:text-fg-disabled min-w-0 flex-1 rounded-none border-0 placeholder:text-fg-quaternary placeholder:font-light bg-transparent px-3 text-center shadow-none outline-none focus-visible:ring-0!", unknown, unknown, undefined>>;
365
365
 
366
- type DefaultType$1 = Omit<React.ComponentProps<"input">, "size">;
366
+ type DefaultType$2 = Omit<React.ComponentProps<"input">, "size">;
367
367
 
368
368
  type InputSize = keyof typeof inputVariants.variants.size;
369
369
 
370
- interface InputProps extends DefaultType$1 {
370
+ interface InputProps extends DefaultType$2 {
371
371
  /**
372
372
  * Input Size
373
373
  */
@@ -471,7 +471,7 @@ declare const containerVariants: tailwind_variants.TVReturnType<{
471
471
  };
472
472
  }, undefined, "bg-surface-sunken inline-flex items-center justify-center p-1 gap-1", unknown, unknown, undefined>>;
473
473
 
474
- type DefaultType = Omit<
474
+ type DefaultType$1 = Omit<
475
475
  React.ComponentProps<typeof TabsPrimitive.Root>,
476
476
  "onValueChange" | "onChange"
477
477
  >;
@@ -499,7 +499,7 @@ type SegmentButtonType = {
499
499
  * Segment Button onChange event
500
500
  */
501
501
  onChange?: (value: string) => void;
502
- } & DefaultType;
502
+ } & DefaultType$1;
503
503
 
504
504
  declare function SegmentButton({ className, size, disabled, rounded, fullWidth, children, onChange, ...props }: SegmentButtonType): react_jsx_runtime.JSX.Element;
505
505
  declare namespace SegmentButton {
@@ -1159,6 +1159,29 @@ declare function ScrollArea({ className, children, viewportClassName, ...props }
1159
1159
 
1160
1160
  declare function DynamicBreadcrumb({ items, seperator, maxVisible, LinkComponent, }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
1161
1161
 
1162
+ type DefaultType = Omit<React.ComponentProps<"textarea">, "size">;
1163
+
1164
+ interface TextAreaProps extends DefaultType {
1165
+ /**
1166
+ * Input label
1167
+ */
1168
+ label?: string;
1169
+ /**
1170
+ * Input Error State
1171
+ */
1172
+ error?: boolean;
1173
+ /**
1174
+ * Input Rounded State
1175
+ */
1176
+ rounded?: boolean;
1177
+ /**
1178
+ * Input helpertext Icon
1179
+ */
1180
+ helperText?: string;
1181
+ }
1182
+
1183
+ declare function Textarea({ className, error, readOnly, disabled, helperText, label, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
1184
+
1162
1185
  declare const RULES: {
1163
1186
  readonly ONLY_DIGITS: RegExp;
1164
1187
  readonly ONLY_CHARS: RegExp;
@@ -1173,4 +1196,4 @@ declare const isNoSpace: (value: string) => boolean;
1173
1196
 
1174
1197
  declare const toEnglishDigits: (value: string) => string;
1175
1198
 
1176
- export { Accordion, type AccordionProps, type AccordionVariant, Alert, type AlertProps, type AlertTypes, type AlertVariants, DynamicBreadcrumb as Breadcrumb, type BreadcrumbItemType, type BreadcrumbProps, Button, type ButtonColors, type ButtonProps, type ButtonSize, type ButtonVariant, Card, Checkbox, type CheckboxProps, type CheckboxSize, Badge as Chips, type ChipsType, type ChipsVariantType, SmartDialog as Dialog, type DialogHeaderBarProps, type SmartDialogProps as DialogProps, type DialogSize, SmartSheet as Drawer, type DrawerHeader, type DrawerProps, type DrawerSide, DropdownMenu, type IconType, Input, InputOTP, type InputProps, type InputSize, NestedAccordionMenu as ListMenu, type MultiSelectProps, type MultiSelectValueType, type OTPProps, type OrientationType, Pagination, type PaginationProps, Popover, type PopoverContent$1 as PopoverContent, type PopoverProps, type PopoverTrigger$1 as PopoverTrigger, RULES, RadioGroup, type RadioItemProps, type RadioProps, type RadioSize, ScrollArea, SegmentButton, type SegmentButtonSize, type SegmentButtonType, Select, type SelectOptionType, type SelectProps, type SingleSelectProps, type SingleSelectValueType, Skeleton, type StateAction, type StepItem, Stepper, type StepperProps, Switch, type SwitchProps, type SwitchSize, Table, Tabs, type TabsContentProps, type TabsListProps, type TabsProps, type TabsSize, type TabsTriggerProps, type TabsVariants, Tag, type TagType, type TagVariantsType, Tooltip, isNoSpace, isOnlyChars, isOnlyDigits, isOnlyDigitsAndChars, toEnglishDigits };
1199
+ export { Accordion, type AccordionProps, type AccordionVariant, Alert, type AlertProps, type AlertTypes, type AlertVariants, DynamicBreadcrumb as Breadcrumb, type BreadcrumbItemType, type BreadcrumbProps, Button, type ButtonColors, type ButtonProps, type ButtonSize, type ButtonVariant, Card, Checkbox, type CheckboxProps, type CheckboxSize, Badge as Chips, type ChipsType, type ChipsVariantType, SmartDialog as Dialog, type DialogHeaderBarProps, type SmartDialogProps as DialogProps, type DialogSize, SmartSheet as Drawer, type DrawerHeader, type DrawerProps, type DrawerSide, DropdownMenu, type IconType, Input, InputOTP, type InputProps, type InputSize, NestedAccordionMenu as ListMenu, type MultiSelectProps, type MultiSelectValueType, type OTPProps, type OrientationType, Pagination, type PaginationProps, Popover, type PopoverContent$1 as PopoverContent, type PopoverProps, type PopoverTrigger$1 as PopoverTrigger, RULES, RadioGroup, type RadioItemProps, type RadioProps, type RadioSize, ScrollArea, SegmentButton, type SegmentButtonSize, type SegmentButtonType, Select, type SelectOptionType, type SelectProps, type SingleSelectProps, type SingleSelectValueType, Skeleton, type StateAction, type StepItem, Stepper, type StepperProps, Switch, type SwitchProps, type SwitchSize, Table, Tabs, type TabsContentProps, type TabsListProps, type TabsProps, type TabsSize, type TabsTriggerProps, type TabsVariants, Tag, type TagType, type TagVariantsType, Textarea, Tooltip, isNoSpace, isOnlyChars, isOnlyDigits, isOnlyDigitsAndChars, toEnglishDigits };