@lesterarte/sefin-ui 0.0.20-dev.7 → 0.0.20-dev.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lesterarte/sefin-ui",
3
- "version": "0.0.20-dev.7",
3
+ "version": "0.0.20-dev.9",
4
4
  "description": "Sefin Design System - A comprehensive Angular UI library based on Atomic Design and design tokens",
5
5
  "keywords": [
6
6
  "angular",
@@ -640,6 +640,8 @@ declare class ButtonComponent {
640
640
  size: ButtonSize;
641
641
  /** Whether the button is disabled */
642
642
  disabled: boolean;
643
+ /** Whether the button should take full width of the container */
644
+ fullWidth: boolean;
643
645
  /** Button type. Options: 'button' | 'submit' | 'reset' */
644
646
  type: 'button' | 'submit' | 'reset';
645
647
  /** Additional CSS classes */
@@ -648,7 +650,7 @@ declare class ButtonComponent {
648
650
  onClick(event: MouseEvent): void;
649
651
  get buttonClasses(): string;
650
652
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
651
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "sefin-button", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
653
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "sefin-button", never, { "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "type": { "alias": "type"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "clicked": "clicked"; }, never, ["*"], true, never>;
652
654
  }
653
655
 
654
656
  type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -1311,6 +1313,20 @@ declare class RateComponent {
1311
1313
  static ɵcmp: i0.ɵɵComponentDeclaration<RateComponent, "sefin-rate", never, { "value": { "alias": "value"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "allowHalf": { "alias": "allowHalf"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "valueChange": "valueChange"; "hoverChange": "hoverChange"; }, never, never, true, never>;
1312
1314
  }
1313
1315
 
1316
+ type SpacerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl';
1317
+ type SpacerOrientation = 'vertical' | 'horizontal';
1318
+ declare class SpacerComponent {
1319
+ /** Size of the spacer. Options: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' */
1320
+ size: SpacerSize;
1321
+ /** Orientation of the spacer. Options: 'vertical' | 'horizontal' */
1322
+ orientation: SpacerOrientation;
1323
+ /** Additional CSS classes */
1324
+ class: string;
1325
+ get spacerClasses(): string;
1326
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpacerComponent, never>;
1327
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpacerComponent, "sefin-spacer", never, { "size": { "alias": "size"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, never, true, never>;
1328
+ }
1329
+
1314
1330
  declare class AccordionItemComponent {
1315
1331
  /** Title text for the accordion header */
1316
1332
  title: string;
@@ -1427,6 +1443,8 @@ declare class ButtonGroupComponent {
1427
1443
  groupVariant: ButtonGroupVariant;
1428
1444
  /** Whether the button group is disabled */
1429
1445
  disabled: boolean;
1446
+ /** Whether buttons should take full width of the container */
1447
+ fullWidth: boolean;
1430
1448
  /** Additional CSS classes */
1431
1449
  class: string;
1432
1450
  /** Event emitted when value changes (for segmented variant) */
@@ -1438,10 +1456,10 @@ declare class ButtonGroupComponent {
1438
1456
  get buttonGroupClasses(): string;
1439
1457
  isSelected(option: ButtonGroupOption): boolean;
1440
1458
  onButtonClick(option: ButtonGroupOption): void;
1441
- getButtonVariant(option: ButtonGroupOption): ButtonVariant;
1459
+ getButtonClasses(option: ButtonGroupOption): string;
1442
1460
  sanitizeHtml(html: string | undefined): SafeHtml | string;
1443
1461
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonGroupComponent, never>;
1444
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "sefin-button-group", never, { "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "selectedValues": { "alias": "selectedValues"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "groupVariant": { "alias": "groupVariant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "valueChange": "valueChange"; "selectedValuesChange": "selectedValuesChange"; "buttonClick": "buttonClick"; }, never, never, true, never>;
1462
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonGroupComponent, "sefin-button-group", never, { "options": { "alias": "options"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "selectedValues": { "alias": "selectedValues"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "groupVariant": { "alias": "groupVariant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, { "valueChange": "valueChange"; "selectedValuesChange": "selectedValuesChange"; "buttonClick": "buttonClick"; }, never, never, true, never>;
1445
1463
  }
1446
1464
 
1447
1465
  declare class CardComponent {
@@ -1545,6 +1563,98 @@ declare class DatepickerComponent implements OnInit, OnChanges, AfterViewInit, O
1545
1563
  static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "sefin-datepicker", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "size": { "alias": "size"; "required": false; }; "format": { "alias": "format"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; }; }, { "valueChange": "valueChange"; "dateSelected": "dateSelected"; }, never, never, true, never>;
1546
1564
  }
1547
1565
 
1566
+ type FormFieldVariant = 'outlined' | 'filled' | 'standard';
1567
+ type FormFieldSize = 'sm' | 'md' | 'lg';
1568
+ type FormFieldType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
1569
+ declare class FormFieldComponent implements ControlValueAccessor, Validator, OnInit, AfterViewInit, OnDestroy {
1570
+ private cdr;
1571
+ inputRef?: ElementRef<HTMLInputElement>;
1572
+ /** Label text for the field */
1573
+ label: string;
1574
+ /** FormField variant style. Options: 'outlined' | 'filled' | 'standard' */
1575
+ variant: FormFieldVariant;
1576
+ /** FormField size. Options: 'sm' | 'md' | 'lg' */
1577
+ size: FormFieldSize;
1578
+ /** Input type. Options: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' */
1579
+ type: FormFieldType;
1580
+ /** Placeholder text */
1581
+ placeholder: string;
1582
+ /** Helper text shown below the input */
1583
+ hint: string;
1584
+ /** Error message to display */
1585
+ errorMessage: string;
1586
+ /** Whether the field is required */
1587
+ required: boolean;
1588
+ /** Whether the field is disabled */
1589
+ disabled: boolean;
1590
+ /** Whether the field is readonly */
1591
+ readonly: boolean;
1592
+ /** Maximum length of the input */
1593
+ maxLength?: number;
1594
+ /** Minimum length of the input */
1595
+ minLength?: number;
1596
+ /** Pattern for validation (regex string) */
1597
+ pattern?: string;
1598
+ /** Leading icon name */
1599
+ leadingIcon?: string;
1600
+ /** Trailing icon name */
1601
+ trailingIcon?: string;
1602
+ /** Whether to show character counter */
1603
+ showCounter: boolean;
1604
+ /** Autocomplete attribute */
1605
+ autocomplete?: string;
1606
+ /** Input name attribute */
1607
+ name: string;
1608
+ /** Input id attribute */
1609
+ id: string;
1610
+ /** Additional CSS classes */
1611
+ class: string;
1612
+ /** Custom validation function */
1613
+ customValidator?: (value: string) => string | null;
1614
+ /** Event emitted when the value changes */
1615
+ valueChange: EventEmitter<string>;
1616
+ /** Event emitted when the input is focused */
1617
+ focused: EventEmitter<FocusEvent>;
1618
+ /** Event emitted when the input is blurred */
1619
+ blurred: EventEmitter<FocusEvent>;
1620
+ /** Event emitted when trailing icon is clicked */
1621
+ trailingIconClick: EventEmitter<MouseEvent>;
1622
+ value: string;
1623
+ isFocused: boolean;
1624
+ hasError: boolean;
1625
+ internalErrorMessage: string;
1626
+ internalId: string;
1627
+ private onChange;
1628
+ private onTouched;
1629
+ private destroy$;
1630
+ private control?;
1631
+ constructor(cdr: ChangeDetectorRef);
1632
+ ngOnInit(): void;
1633
+ ngAfterViewInit(): void;
1634
+ ngOnDestroy(): void;
1635
+ private generateIdIfNeeded;
1636
+ get fieldId(): string;
1637
+ get labelId(): string;
1638
+ get inputId(): string;
1639
+ get hintId(): string;
1640
+ onInput(event: Event): void;
1641
+ onFocus(event: FocusEvent): void;
1642
+ onBlur(event: FocusEvent): void;
1643
+ onTrailingIconClick(event: MouseEvent): void;
1644
+ private validateField;
1645
+ get displayError(): boolean;
1646
+ get displayErrorMessage(): string;
1647
+ get characterCount(): number;
1648
+ get formFieldClasses(): string;
1649
+ writeValue(value: string | null | undefined): void;
1650
+ registerOnChange(fn: (value: string) => void): void;
1651
+ registerOnTouched(fn: () => void): void;
1652
+ setDisabledState(isDisabled: boolean): void;
1653
+ validate(control: AbstractControl): ValidationErrors | null;
1654
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
1655
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "sefin-form-field", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "leadingIcon": { "alias": "leadingIcon"; "required": false; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; }; "showCounter": { "alias": "showCounter"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "class": { "alias": "class"; "required": false; }; "customValidator": { "alias": "customValidator"; "required": false; }; }, { "valueChange": "valueChange"; "focused": "focused"; "blurred": "blurred"; "trailingIconClick": "trailingIconClick"; }, never, never, true, never>;
1656
+ }
1657
+
1548
1658
  type PaginationSize = 'sm' | 'md' | 'lg';
1549
1659
  type PaginationVariant = 'default' | 'compact';
1550
1660
  declare class PaginationComponent {
@@ -1684,5 +1794,5 @@ declare class TextareaComponent implements ControlValueAccessor, Validator, OnIn
1684
1794
 
1685
1795
  declare const STYLES_PATH = "./styles/index.scss";
1686
1796
 
1687
- export { AccordionItemComponent, AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, BreadcrumbsComponent, ButtonComponent, ButtonGroupComponent, COLOR_TOKENS, CardComponent, CheckboxComponent, ChipComponent, ContainerComponent, DARK_THEME, DESIGN_TOKENS, DatepickerComponent, DividerComponent, FabButtonComponent, IconButtonComponent, IconComponent, ImageComponent, LIGHT_THEME, LinkComponent, PaginationComponent, ProgressBarComponent, RadioComponent, RateComponent, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, SelectComponent, SpinnerComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, TabComponent, TagComponent, TextFieldComponent, TextareaComponent, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
1688
- export type { AlertSize, AlertVariant, AutocompleteOption, AvatarSize, BadgeSize, BadgeVariant, BaseComponent, BorderRadiusToken, BreadcrumbItem, BreadcrumbSeparator, BreadcrumbSize, ButtonGroupOption, ButtonGroupSize, ButtonGroupVariant, ButtonSize, ButtonVariant, CardVariant, ChipSize, ChipVariant, ColorShade, ColorTokenName, ContainerSize, ContainerVariant, CustomTheme, DateFormat, DatePickerMode, DateRange, DividerOrientation, DividerVariant, FabSize, IconSize, ImageFit, ImageLoading, ImageRounded, InputSize, LinkSize, LinkVariant, PaginationSize, PaginationVariant, ProgressBarSize, ProgressBarVariant, RateIcon, RateSize, SelectOption, ShadowToken, SpacingToken, SpinnerSize, SpinnerVariant, TabSize, TabVariant, TagSize, TagVariant, TextFieldSize, TextFieldType, TextFieldVariant, TextareaSize, TextareaVariant, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };
1797
+ export { AccordionItemComponent, AlertComponent, AutocompleteComponent, AvatarComponent, BORDER_RADIUS_TOKENS, BRAND_THEME, BadgeComponent, BreadcrumbsComponent, ButtonComponent, ButtonGroupComponent, COLOR_TOKENS, CardComponent, CheckboxComponent, ChipComponent, ContainerComponent, DARK_THEME, DESIGN_TOKENS, DatepickerComponent, DividerComponent, FabButtonComponent, FormFieldComponent, IconButtonComponent, IconComponent, ImageComponent, LIGHT_THEME, LinkComponent, PaginationComponent, ProgressBarComponent, RadioComponent, RateComponent, SHADOW_TOKENS, SPACING_TOKENS, STYLES_PATH, SelectComponent, SpacerComponent, SpinnerComponent, StackComponent, SwitchComponent, TYPOGRAPHY_TOKENS, TabComponent, TagComponent, TextFieldComponent, TextareaComponent, ThemeLoader, ToastComponent, TooltipComponent, TypographyComponent };
1798
+ export type { AlertSize, AlertVariant, AutocompleteOption, AvatarSize, BadgeSize, BadgeVariant, BaseComponent, BorderRadiusToken, BreadcrumbItem, BreadcrumbSeparator, BreadcrumbSize, ButtonGroupOption, ButtonGroupSize, ButtonGroupVariant, ButtonSize, ButtonVariant, CardVariant, ChipSize, ChipVariant, ColorShade, ColorTokenName, ContainerSize, ContainerVariant, CustomTheme, DateFormat, DatePickerMode, DateRange, DividerOrientation, DividerVariant, FabSize, FormFieldSize, FormFieldType, FormFieldVariant, IconSize, ImageFit, ImageLoading, ImageRounded, InputSize, LinkSize, LinkVariant, PaginationSize, PaginationVariant, ProgressBarSize, ProgressBarVariant, RateIcon, RateSize, SelectOption, ShadowToken, SpacerOrientation, SpacerSize, SpacingToken, SpinnerSize, SpinnerVariant, TabSize, TabVariant, TagSize, TagVariant, TextFieldSize, TextFieldType, TextFieldVariant, TextareaSize, TextareaVariant, Theme, ThemeColors, ToastPosition, ToastVariant, TooltipPosition, TooltipTrigger, TypographyColor, TypographyLineHeight, TypographySize, TypographyToken, TypographyVariant, TypographyWeight };