@lesterarte/sefin-ui 0.0.83 → 0.0.84

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.
@@ -1532,24 +1532,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImpor
1532
1532
  }] } });
1533
1533
 
1534
1534
  class StackComponent {
1535
+ /** Base flex direction (mobile-first). */
1535
1536
  direction = 'column';
1537
+ /** Direction from 640px (sm). */
1538
+ directionSm;
1539
+ /** Direction from 768px (md). */
1540
+ directionMd;
1541
+ /** Direction from 1024px (lg). */
1542
+ directionLg;
1543
+ /** Direction from 1280px (xl). */
1544
+ directionXl;
1536
1545
  spacing;
1537
1546
  align = 'stretch';
1538
1547
  justify = 'start';
1539
1548
  wrap = false;
1540
1549
  class = '';
1541
1550
  get stackClasses() {
1542
- return [
1551
+ const classes = [
1543
1552
  'sefin-stack',
1544
1553
  `sefin-stack--${this.direction}`,
1545
1554
  this.spacing ? `sefin-stack--spacing-${this.spacing}` : '',
1546
1555
  `sefin-stack--align-${this.align}`,
1547
1556
  `sefin-stack--justify-${this.justify}`,
1548
1557
  this.wrap ? 'sefin-stack--wrap' : '',
1549
- this.class,
1550
- ]
1551
- .filter(Boolean)
1552
- .join(' ');
1558
+ ];
1559
+ if (this.directionSm)
1560
+ classes.push(`sefin-stack--${this.directionSm}-sm`);
1561
+ if (this.directionMd)
1562
+ classes.push(`sefin-stack--${this.directionMd}-md`);
1563
+ if (this.directionLg)
1564
+ classes.push(`sefin-stack--${this.directionLg}-lg`);
1565
+ if (this.directionXl)
1566
+ classes.push(`sefin-stack--${this.directionXl}-xl`);
1567
+ if (this.class)
1568
+ classes.push(this.class);
1569
+ return classes.filter(Boolean).join(' ');
1553
1570
  }
1554
1571
  get spacingValue() {
1555
1572
  if (!this.spacing) {
@@ -1571,15 +1588,23 @@ class StackComponent {
1571
1588
  };
1572
1589
  }
1573
1590
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: StackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1574
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.8", type: StackComponent, isStandalone: true, selector: "sefin-stack", inputs: { direction: "direction", spacing: "spacing", align: "align", justify: "justify", wrap: "wrap", class: "class" }, host: { styleAttribute: "display: block; width: 100%;" }, ngImport: i0, template: "<div [class]=\"stackClasses\" [ngStyle]=\"stackStyles\">\n <ng-content></ng-content>\n</div>\n\n", styles: [".sefin-stack{display:flex!important;gap:0}.sefin-stack--column{flex-direction:column}.sefin-stack--row{flex-direction:row}.sefin-stack--wrap{flex-wrap:wrap}.sefin-stack--spacing-xs{gap:var(--sefin-spacing-xs, 4px)!important}.sefin-stack--spacing-sm{gap:var(--sefin-spacing-sm, 8px)!important}.sefin-stack--spacing-md{gap:var(--sefin-spacing-md, 16px)!important}.sefin-stack--spacing-lg{gap:var(--sefin-spacing-lg, 24px)!important}.sefin-stack--spacing-xl{gap:var(--sefin-spacing-xl, 32px)!important}.sefin-stack--spacing-2xl{gap:var(--sefin-spacing-2xl, 48px)!important}.sefin-stack--align-start{align-items:flex-start}.sefin-stack--align-center{align-items:center}.sefin-stack--align-end{align-items:flex-end}.sefin-stack--align-stretch{align-items:stretch}.sefin-stack--justify-start{justify-content:flex-start}.sefin-stack--justify-center{justify-content:center}.sefin-stack--justify-end{justify-content:flex-end}.sefin-stack--justify-space-between{justify-content:space-between}.sefin-stack--justify-space-around{justify-content:space-around}.sefin-stack--justify-space-evenly{justify-content:space-evenly}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
1591
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.8", type: StackComponent, isStandalone: true, selector: "sefin-stack", inputs: { direction: "direction", directionSm: "directionSm", directionMd: "directionMd", directionLg: "directionLg", directionXl: "directionXl", spacing: "spacing", align: "align", justify: "justify", wrap: "wrap", class: "class" }, host: { styleAttribute: "display: block; width: 100%;" }, ngImport: i0, template: "<div [class]=\"stackClasses\" [ngStyle]=\"stackStyles\">\n <ng-content></ng-content>\n</div>\n\n", styles: [".sefin-stack{display:flex!important;gap:0}.sefin-stack--column{flex-direction:column}.sefin-stack--row{flex-direction:row}@media(min-width:640px){.sefin-stack--row-sm{flex-direction:row}.sefin-stack--column-sm{flex-direction:column}}@media(min-width:768px){.sefin-stack--row-md{flex-direction:row}.sefin-stack--column-md{flex-direction:column}}@media(min-width:1024px){.sefin-stack--row-lg{flex-direction:row}.sefin-stack--column-lg{flex-direction:column}}@media(min-width:1280px){.sefin-stack--row-xl{flex-direction:row}.sefin-stack--column-xl{flex-direction:column}}.sefin-stack--wrap{flex-wrap:wrap}.sefin-stack--spacing-xs{gap:var(--sefin-spacing-xs, 4px)!important}.sefin-stack--spacing-sm{gap:var(--sefin-spacing-sm, 8px)!important}.sefin-stack--spacing-md{gap:var(--sefin-spacing-md, 16px)!important}.sefin-stack--spacing-lg{gap:var(--sefin-spacing-lg, 24px)!important}.sefin-stack--spacing-xl{gap:var(--sefin-spacing-xl, 32px)!important}.sefin-stack--spacing-2xl{gap:var(--sefin-spacing-2xl, 48px)!important}.sefin-stack--align-start{align-items:flex-start}.sefin-stack--align-center{align-items:center}.sefin-stack--align-end{align-items:flex-end}.sefin-stack--align-stretch{align-items:stretch}.sefin-stack--justify-start{justify-content:flex-start}.sefin-stack--justify-center{justify-content:center}.sefin-stack--justify-end{justify-content:flex-end}.sefin-stack--justify-space-between{justify-content:space-between}.sefin-stack--justify-space-around{justify-content:space-around}.sefin-stack--justify-space-evenly{justify-content:space-evenly}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
1575
1592
  }
1576
1593
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: StackComponent, decorators: [{
1577
1594
  type: Component,
1578
1595
  args: [{ selector: 'sefin-stack', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.Default, host: {
1579
1596
  style: 'display: block; width: 100%;',
1580
- }, template: "<div [class]=\"stackClasses\" [ngStyle]=\"stackStyles\">\n <ng-content></ng-content>\n</div>\n\n", styles: [".sefin-stack{display:flex!important;gap:0}.sefin-stack--column{flex-direction:column}.sefin-stack--row{flex-direction:row}.sefin-stack--wrap{flex-wrap:wrap}.sefin-stack--spacing-xs{gap:var(--sefin-spacing-xs, 4px)!important}.sefin-stack--spacing-sm{gap:var(--sefin-spacing-sm, 8px)!important}.sefin-stack--spacing-md{gap:var(--sefin-spacing-md, 16px)!important}.sefin-stack--spacing-lg{gap:var(--sefin-spacing-lg, 24px)!important}.sefin-stack--spacing-xl{gap:var(--sefin-spacing-xl, 32px)!important}.sefin-stack--spacing-2xl{gap:var(--sefin-spacing-2xl, 48px)!important}.sefin-stack--align-start{align-items:flex-start}.sefin-stack--align-center{align-items:center}.sefin-stack--align-end{align-items:flex-end}.sefin-stack--align-stretch{align-items:stretch}.sefin-stack--justify-start{justify-content:flex-start}.sefin-stack--justify-center{justify-content:center}.sefin-stack--justify-end{justify-content:flex-end}.sefin-stack--justify-space-between{justify-content:space-between}.sefin-stack--justify-space-around{justify-content:space-around}.sefin-stack--justify-space-evenly{justify-content:space-evenly}\n"] }]
1597
+ }, template: "<div [class]=\"stackClasses\" [ngStyle]=\"stackStyles\">\n <ng-content></ng-content>\n</div>\n\n", styles: [".sefin-stack{display:flex!important;gap:0}.sefin-stack--column{flex-direction:column}.sefin-stack--row{flex-direction:row}@media(min-width:640px){.sefin-stack--row-sm{flex-direction:row}.sefin-stack--column-sm{flex-direction:column}}@media(min-width:768px){.sefin-stack--row-md{flex-direction:row}.sefin-stack--column-md{flex-direction:column}}@media(min-width:1024px){.sefin-stack--row-lg{flex-direction:row}.sefin-stack--column-lg{flex-direction:column}}@media(min-width:1280px){.sefin-stack--row-xl{flex-direction:row}.sefin-stack--column-xl{flex-direction:column}}.sefin-stack--wrap{flex-wrap:wrap}.sefin-stack--spacing-xs{gap:var(--sefin-spacing-xs, 4px)!important}.sefin-stack--spacing-sm{gap:var(--sefin-spacing-sm, 8px)!important}.sefin-stack--spacing-md{gap:var(--sefin-spacing-md, 16px)!important}.sefin-stack--spacing-lg{gap:var(--sefin-spacing-lg, 24px)!important}.sefin-stack--spacing-xl{gap:var(--sefin-spacing-xl, 32px)!important}.sefin-stack--spacing-2xl{gap:var(--sefin-spacing-2xl, 48px)!important}.sefin-stack--align-start{align-items:flex-start}.sefin-stack--align-center{align-items:center}.sefin-stack--align-end{align-items:flex-end}.sefin-stack--align-stretch{align-items:stretch}.sefin-stack--justify-start{justify-content:flex-start}.sefin-stack--justify-center{justify-content:center}.sefin-stack--justify-end{justify-content:flex-end}.sefin-stack--justify-space-between{justify-content:space-between}.sefin-stack--justify-space-around{justify-content:space-around}.sefin-stack--justify-space-evenly{justify-content:space-evenly}\n"] }]
1581
1598
  }], propDecorators: { direction: [{
1582
1599
  type: Input
1600
+ }], directionSm: [{
1601
+ type: Input
1602
+ }], directionMd: [{
1603
+ type: Input
1604
+ }], directionLg: [{
1605
+ type: Input
1606
+ }], directionXl: [{
1607
+ type: Input
1583
1608
  }], spacing: [{
1584
1609
  type: Input
1585
1610
  }], align: [{