@ferrlabs/ui-ng 1.57.0 → 1.57.1
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.
|
@@ -9,22 +9,24 @@ import * as i1$1 from "@angular/cdk/a11y";
|
|
|
9
9
|
import { A11yModule, FocusKeyManager, LiveAnnouncer } from "@angular/cdk/a11y";
|
|
10
10
|
import { TemplatePortal } from "@angular/cdk/portal";
|
|
11
11
|
import { DomSanitizer, Meta, Title } from "@angular/platform-browser";
|
|
12
|
-
const paddingBlock = (base) => `max(0px, calc(${base}px + (var(--control-height, 40px) - 40px) / 2))`;
|
|
13
12
|
const SIZE$6 = {
|
|
14
13
|
sm: {
|
|
15
|
-
|
|
14
|
+
minHeight: "calc(var(--control-height, 40px) - 8px)",
|
|
15
|
+
padding: "0 12px",
|
|
16
16
|
fontSize: "11px",
|
|
17
17
|
gap: "6px",
|
|
18
18
|
radius: "var(--radius-control, 4px)"
|
|
19
19
|
},
|
|
20
20
|
md: {
|
|
21
|
-
|
|
21
|
+
minHeight: "var(--control-height, 40px)",
|
|
22
|
+
padding: "0 16px",
|
|
22
23
|
fontSize: "12px",
|
|
23
24
|
gap: "8px",
|
|
24
25
|
radius: "var(--radius-control, 4px)"
|
|
25
26
|
},
|
|
26
27
|
lg: {
|
|
27
|
-
|
|
28
|
+
minHeight: "calc(var(--control-height, 40px) + 8px)",
|
|
29
|
+
padding: "0 20px",
|
|
28
30
|
fontSize: "14px",
|
|
29
31
|
gap: "10px",
|
|
30
32
|
radius: "var(--radius-control, 4px)"
|
|
@@ -76,6 +78,7 @@ var ButtonComponent = class ButtonComponent {
|
|
|
76
78
|
return {
|
|
77
79
|
display: this.fullWidth() ? "flex" : "inline-flex",
|
|
78
80
|
width: this.fullWidth() ? "100%" : null,
|
|
81
|
+
"min-height": d.minHeight,
|
|
79
82
|
padding: d.padding,
|
|
80
83
|
"border-radius": d.radius,
|
|
81
84
|
"font-size": d.fontSize,
|
|
@@ -241,7 +244,7 @@ var ButtonComponent = class ButtonComponent {
|
|
|
241
244
|
</ng-template>
|
|
242
245
|
`,
|
|
243
246
|
isInline: true,
|
|
244
|
-
styles: [":host{display:contents}.flr-btn{font-family:var( --font-mono, \"DM Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace );letter-spacing:.04em;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;transition:background .16s ease-out,opacity .16s,box-shadow .16s}.flr-btn:disabled,.flr-btn[aria-disabled=true]{cursor:not-allowed;opacity:.55}.flr-btn__spinner{border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;animation:flr-btn-spin .7s linear infinite}@keyframes flr-btn-spin{to{transform:rotate(360deg)}}\n"],
|
|
247
|
+
styles: [":host{display:contents}.flr-btn{box-sizing:border-box;font-family:var( --font-mono, \"DM Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace );letter-spacing:.04em;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;transition:background .16s ease-out,opacity .16s,box-shadow .16s}.flr-btn:disabled,.flr-btn[aria-disabled=true]{cursor:not-allowed;opacity:.55}.flr-btn__spinner{border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;animation:flr-btn-spin .7s linear infinite}@keyframes flr-btn-spin{to{transform:rotate(360deg)}}\n"],
|
|
245
248
|
dependencies: [{
|
|
246
249
|
kind: "directive",
|
|
247
250
|
type: NgTemplateOutlet,
|
|
@@ -308,7 +311,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
308
311
|
<ng-content />
|
|
309
312
|
</ng-template>
|
|
310
313
|
`,
|
|
311
|
-
styles: [":host{display:contents}.flr-btn{font-family:var( --font-mono, \"DM Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace );letter-spacing:.04em;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;transition:background .16s ease-out,opacity .16s,box-shadow .16s}.flr-btn:disabled,.flr-btn[aria-disabled=true]{cursor:not-allowed;opacity:.55}.flr-btn__spinner{border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;animation:flr-btn-spin .7s linear infinite}@keyframes flr-btn-spin{to{transform:rotate(360deg)}}\n"]
|
|
314
|
+
styles: [":host{display:contents}.flr-btn{box-sizing:border-box;font-family:var( --font-mono, \"DM Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace );letter-spacing:.04em;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;transition:background .16s ease-out,opacity .16s,box-shadow .16s}.flr-btn:disabled,.flr-btn[aria-disabled=true]{cursor:not-allowed;opacity:.55}.flr-btn__spinner{border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;animation:flr-btn-spin .7s linear infinite}@keyframes flr-btn-spin{to{transform:rotate(360deg)}}\n"]
|
|
312
315
|
}]
|
|
313
316
|
}],
|
|
314
317
|
propDecorators: {
|