yukit-web 0.10.6 → 0.10.8
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/fesm2022/yukit-web-chart.mjs +807 -552
- package/fesm2022/yukit-web-chart.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
- package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
- package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-alert.mjs +199 -91
- package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
- package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
- package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
- package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
- package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-badge.mjs +78 -44
- package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
- package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
- package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
- package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-button.mjs +137 -67
- package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
- package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-card.mjs +318 -136
- package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
- package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
- package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
- package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
- package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-command.mjs +752 -260
- package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
- package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
- package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
- package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
- package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
- package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-empty.mjs +280 -121
- package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-field.mjs +670 -301
- package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
- package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
- package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
- package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-input.mjs +62 -30
- package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-item.mjs +545 -227
- package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
- package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-label.mjs +60 -28
- package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-marker.mjs +165 -74
- package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
- package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-message.mjs +277 -112
- package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
- package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
- package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
- package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-popover.mjs +358 -133
- package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-progress.mjs +126 -58
- package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
- package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
- package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
- package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-select.mjs +1059 -351
- package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-separator.mjs +61 -31
- package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
- package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
- package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
- package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-slider.mjs +139 -59
- package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
- package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
- package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-switch.mjs +326 -94
- package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-table.mjs +374 -177
- package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
- package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
- package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
- package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
- package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
- package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-typography.mjs +461 -202
- package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
- package/fesm2022/yukit-web-helm-utils.mjs +131 -253
- package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
- package/fesm2022/yukit-web.mjs +24592 -9669
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +9 -9
- package/src/lib/theme/components/button.css +14 -0
- package/src/lib/theme/spartan-overwrites/sonner.css +2 -2
- package/src/lib/theme/tokens/component-colors.css +6 -2
- package/types/yukit-web-chart.d.ts +184 -125
- package/types/yukit-web-helm-accordion.d.ts +49 -28
- package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
- package/types/yukit-web-helm-alert.d.ts +30 -32
- package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
- package/types/yukit-web-helm-attachment.d.ts +97 -69
- package/types/yukit-web-helm-autocomplete.d.ts +205 -79
- package/types/yukit-web-helm-avatar.d.ts +44 -39
- package/types/yukit-web-helm-badge.d.ts +18 -17
- package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
- package/types/yukit-web-helm-bubble.d.ts +54 -40
- package/types/yukit-web-helm-button-group.d.ts +29 -22
- package/types/yukit-web-helm-button.d.ts +41 -31
- package/types/yukit-web-helm-calendar.d.ts +157 -85
- package/types/yukit-web-helm-card.d.ts +38 -42
- package/types/yukit-web-helm-carousel.d.ts +105 -73
- package/types/yukit-web-helm-checkbox.d.ts +117 -58
- package/types/yukit-web-helm-collapsible.d.ts +34 -19
- package/types/yukit-web-helm-combobox.d.ts +355 -150
- package/types/yukit-web-helm-command.d.ts +140 -73
- package/types/yukit-web-helm-context-menu.d.ts +48 -27
- package/types/yukit-web-helm-date-picker.d.ts +852 -556
- package/types/yukit-web-helm-dialog.d.ts +106 -78
- package/types/yukit-web-helm-drawer.d.ts +90 -61
- package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
- package/types/yukit-web-helm-empty.d.ts +38 -42
- package/types/yukit-web-helm-field.d.ts +122 -91
- package/types/yukit-web-helm-hover-card.d.ts +39 -27
- package/types/yukit-web-helm-input-group.d.ts +63 -41
- package/types/yukit-web-helm-input-otp.d.ts +38 -35
- package/types/yukit-web-helm-input.d.ts +19 -12
- package/types/yukit-web-helm-item.d.ts +90 -82
- package/types/yukit-web-helm-kbd.d.ts +10 -15
- package/types/yukit-web-helm-label.d.ts +14 -11
- package/types/yukit-web-helm-marker.d.ts +26 -27
- package/types/yukit-web-helm-menubar.d.ts +61 -32
- package/types/yukit-web-helm-message.d.ts +34 -38
- package/types/yukit-web-helm-native-select.d.ts +102 -61
- package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
- package/types/yukit-web-helm-pagination.d.ts +344 -166
- package/types/yukit-web-helm-popover.d.ts +62 -42
- package/types/yukit-web-helm-progress.d.ts +27 -20
- package/types/yukit-web-helm-radio-group.d.ts +121 -63
- package/types/yukit-web-helm-resizable.d.ts +46 -24
- package/types/yukit-web-helm-scroll-area.d.ts +6 -10
- package/types/yukit-web-helm-select.d.ts +231 -114
- package/types/yukit-web-helm-separator.d.ts +15 -12
- package/types/yukit-web-helm-sheet.d.ts +94 -65
- package/types/yukit-web-helm-sidebar.d.ts +322 -232
- package/types/yukit-web-helm-skeleton.d.ts +6 -10
- package/types/yukit-web-helm-slider.d.ts +33 -13
- package/types/yukit-web-helm-sonner.d.ts +112 -51
- package/types/yukit-web-helm-spinner.d.ts +24 -17
- package/types/yukit-web-helm-switch.d.ts +89 -51
- package/types/yukit-web-helm-table.d.ts +38 -42
- package/types/yukit-web-helm-tabs.d.ts +116 -60
- package/types/yukit-web-helm-textarea.d.ts +19 -12
- package/types/yukit-web-helm-toggle-group.d.ts +81 -32
- package/types/yukit-web-helm-toggle.d.ts +39 -21
- package/types/yukit-web-helm-tooltip.d.ts +21 -16
- package/types/yukit-web-helm-typography.d.ts +62 -77
- package/types/yukit-web-helm-utils.d.ts +8 -11
- package/types/yukit-web.d.ts +5125 -2357
|
@@ -1,127 +1,319 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { classes } from
|
|
4
|
-
import { NgIcon, provideIcons } from
|
|
5
|
-
import { lucideMinus } from
|
|
6
|
-
import { BrnInputOtpSlot } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, booleanAttribute, input, numberAttribute } from "@angular/core";
|
|
3
|
+
import { classes } from "yukit-web/helm/utils";
|
|
4
|
+
import { NgIcon, provideIcons } from "@ng-icons/core";
|
|
5
|
+
import { lucideMinus } from "@ng-icons/lucide";
|
|
6
|
+
import { BrnInputOtpSlot } from "@spartan-ng/brain/input-otp";
|
|
7
|
+
var HlmInputOtp = class HlmInputOtp {
|
|
8
|
+
constructor() {
|
|
9
|
+
classes(() => "gap-2 flex items-center has-disabled:opacity-50");
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
13
|
+
minVersion: "12.0.0",
|
|
14
|
+
version: "22.2.4",
|
|
15
|
+
ngImport: i0,
|
|
16
|
+
type: HlmInputOtp,
|
|
17
|
+
deps: [],
|
|
18
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
static {
|
|
22
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
23
|
+
minVersion: "14.0.0",
|
|
24
|
+
version: "22.2.4",
|
|
25
|
+
type: HlmInputOtp,
|
|
26
|
+
isStandalone: true,
|
|
27
|
+
selector: "brn-input-otp[hlmInputOtp], brn-input-otp[hlm]",
|
|
28
|
+
host: { attributes: { "data-slot": "input-otp" } },
|
|
29
|
+
ngImport: i0
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
34
|
+
minVersion: "12.0.0",
|
|
35
|
+
version: "22.2.4",
|
|
36
|
+
ngImport: i0,
|
|
37
|
+
type: HlmInputOtp,
|
|
38
|
+
decorators: [{
|
|
39
|
+
type: Directive,
|
|
40
|
+
args: [{
|
|
41
|
+
selector: "brn-input-otp[hlmInputOtp], brn-input-otp[hlm]",
|
|
42
|
+
host: { "data-slot": "input-otp" }
|
|
43
|
+
}]
|
|
44
|
+
}],
|
|
45
|
+
ctorParameters: () => []
|
|
46
|
+
});
|
|
47
|
+
var HlmInputOtpFakeCaret = class HlmInputOtpFakeCaret {
|
|
48
|
+
constructor() {
|
|
49
|
+
classes(() => "pointer-events-none absolute inset-0 flex items-center justify-center");
|
|
50
|
+
}
|
|
51
|
+
static {
|
|
52
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
53
|
+
minVersion: "12.0.0",
|
|
54
|
+
version: "22.2.4",
|
|
55
|
+
ngImport: i0,
|
|
56
|
+
type: HlmInputOtpFakeCaret,
|
|
57
|
+
deps: [],
|
|
58
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
static {
|
|
62
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
63
|
+
minVersion: "14.0.0",
|
|
64
|
+
version: "22.2.4",
|
|
65
|
+
type: HlmInputOtpFakeCaret,
|
|
66
|
+
isStandalone: true,
|
|
67
|
+
selector: "hlm-input-otp-fake-caret",
|
|
68
|
+
ngImport: i0,
|
|
69
|
+
template: `
|
|
38
70
|
<div class="animate-caret-blink bg-foreground h-4 w-px duration-1000"></div>
|
|
39
71
|
`,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
i0.ɵɵ
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
isInline: true,
|
|
73
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
78
|
+
minVersion: "12.0.0",
|
|
79
|
+
version: "22.2.4",
|
|
80
|
+
ngImport: i0,
|
|
81
|
+
type: HlmInputOtpFakeCaret,
|
|
82
|
+
decorators: [{
|
|
83
|
+
type: Component,
|
|
84
|
+
args: [{
|
|
85
|
+
selector: "hlm-input-otp-fake-caret",
|
|
86
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
87
|
+
template: `
|
|
88
|
+
<div class="animate-caret-blink bg-foreground h-4 w-px duration-1000"></div>
|
|
89
|
+
`
|
|
90
|
+
}]
|
|
91
|
+
}],
|
|
92
|
+
ctorParameters: () => []
|
|
93
|
+
});
|
|
94
|
+
var HlmInputOtpGroup = class HlmInputOtpGroup {
|
|
95
|
+
constructor() {
|
|
96
|
+
classes(() => "has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive rounded-lg has-data-[matches-spartan-invalid=true]:ring-3 flex items-center");
|
|
97
|
+
}
|
|
98
|
+
static {
|
|
99
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
100
|
+
minVersion: "12.0.0",
|
|
101
|
+
version: "22.2.4",
|
|
102
|
+
ngImport: i0,
|
|
103
|
+
type: HlmInputOtpGroup,
|
|
104
|
+
deps: [],
|
|
105
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
static {
|
|
109
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
110
|
+
minVersion: "14.0.0",
|
|
111
|
+
version: "22.2.4",
|
|
112
|
+
type: HlmInputOtpGroup,
|
|
113
|
+
isStandalone: true,
|
|
114
|
+
selector: "[hlmInputOtpGroup],hlm-input-otp-group",
|
|
115
|
+
host: { attributes: { "data-slot": "input-otp-group" } },
|
|
116
|
+
ngImport: i0
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
121
|
+
minVersion: "12.0.0",
|
|
122
|
+
version: "22.2.4",
|
|
123
|
+
ngImport: i0,
|
|
124
|
+
type: HlmInputOtpGroup,
|
|
125
|
+
decorators: [{
|
|
126
|
+
type: Directive,
|
|
127
|
+
args: [{
|
|
128
|
+
selector: "[hlmInputOtpGroup],hlm-input-otp-group",
|
|
129
|
+
host: { "data-slot": "input-otp-group" }
|
|
130
|
+
}]
|
|
131
|
+
}],
|
|
132
|
+
ctorParameters: () => []
|
|
133
|
+
});
|
|
134
|
+
var HlmInputOtpSeparator = class HlmInputOtpSeparator {
|
|
135
|
+
constructor() {
|
|
136
|
+
classes(() => "[&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center");
|
|
137
|
+
}
|
|
138
|
+
static {
|
|
139
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
140
|
+
minVersion: "12.0.0",
|
|
141
|
+
version: "22.2.4",
|
|
142
|
+
ngImport: i0,
|
|
143
|
+
type: HlmInputOtpSeparator,
|
|
144
|
+
deps: [],
|
|
145
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
static {
|
|
149
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
150
|
+
minVersion: "14.0.0",
|
|
151
|
+
version: "22.2.4",
|
|
152
|
+
type: HlmInputOtpSeparator,
|
|
153
|
+
isStandalone: true,
|
|
154
|
+
selector: "hlm-input-otp-separator",
|
|
155
|
+
host: { attributes: {
|
|
156
|
+
"role": "separator",
|
|
157
|
+
"data-slot": "input-otp-separator"
|
|
158
|
+
} },
|
|
159
|
+
providers: [provideIcons({ lucideMinus })],
|
|
160
|
+
ngImport: i0,
|
|
161
|
+
template: `
|
|
79
162
|
<ng-icon name="lucideMinus" />
|
|
80
163
|
`,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
164
|
+
isInline: true,
|
|
165
|
+
dependencies: [{
|
|
166
|
+
kind: "component",
|
|
167
|
+
type: NgIcon,
|
|
168
|
+
selector: "ng-icon",
|
|
169
|
+
inputs: [
|
|
170
|
+
"name",
|
|
171
|
+
"svg",
|
|
172
|
+
"size",
|
|
173
|
+
"strokeWidth",
|
|
174
|
+
"color"
|
|
175
|
+
]
|
|
176
|
+
}],
|
|
177
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
182
|
+
minVersion: "12.0.0",
|
|
183
|
+
version: "22.2.4",
|
|
184
|
+
ngImport: i0,
|
|
185
|
+
type: HlmInputOtpSeparator,
|
|
186
|
+
decorators: [{
|
|
187
|
+
type: Component,
|
|
188
|
+
args: [{
|
|
189
|
+
selector: "hlm-input-otp-separator",
|
|
190
|
+
imports: [NgIcon],
|
|
191
|
+
providers: [provideIcons({ lucideMinus })],
|
|
192
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
193
|
+
host: {
|
|
194
|
+
role: "separator",
|
|
195
|
+
"data-slot": "input-otp-separator"
|
|
196
|
+
},
|
|
197
|
+
template: `
|
|
198
|
+
<ng-icon name="lucideMinus" />
|
|
199
|
+
`
|
|
200
|
+
}]
|
|
201
|
+
}],
|
|
202
|
+
ctorParameters: () => []
|
|
203
|
+
});
|
|
204
|
+
var HlmInputOtpSlot = class HlmInputOtpSlot {
|
|
205
|
+
constructor() {
|
|
206
|
+
this.index = input.required({
|
|
207
|
+
...ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {},
|
|
208
|
+
transform: numberAttribute
|
|
209
|
+
});
|
|
210
|
+
this.forceInvalid = input(false, {
|
|
211
|
+
...ngDevMode ? { debugName: "forceInvalid" } : /* istanbul ignore next */ {},
|
|
212
|
+
transform: booleanAttribute
|
|
213
|
+
});
|
|
214
|
+
classes(() => "dark:bg-input/30 border-input has-[brn-input-otp-slot[data-active=\"true\"]]:border-ring has-[brn-input-otp-slot[data-active=\"true\"]]:ring-ring/50 has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:border-destructive size-8 border-y border-e text-sm transition-all outline-none first:rounded-s-lg first:border-s last:rounded-e-lg has-[brn-input-otp-slot[data-active=\"true\"]]:ring-3 relative flex items-center justify-center has-[brn-input-otp-slot[data-active=\"true\"]]:z-10");
|
|
215
|
+
}
|
|
216
|
+
static {
|
|
217
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
218
|
+
minVersion: "12.0.0",
|
|
219
|
+
version: "22.2.4",
|
|
220
|
+
ngImport: i0,
|
|
221
|
+
type: HlmInputOtpSlot,
|
|
222
|
+
deps: [],
|
|
223
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
static {
|
|
227
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
228
|
+
minVersion: "17.1.0",
|
|
229
|
+
version: "22.2.4",
|
|
230
|
+
type: HlmInputOtpSlot,
|
|
231
|
+
isStandalone: true,
|
|
232
|
+
selector: "hlm-input-otp-slot",
|
|
233
|
+
inputs: {
|
|
234
|
+
index: {
|
|
235
|
+
classPropertyName: "index",
|
|
236
|
+
publicName: "index",
|
|
237
|
+
isSignal: true,
|
|
238
|
+
isRequired: true,
|
|
239
|
+
transformFunction: null
|
|
240
|
+
},
|
|
241
|
+
forceInvalid: {
|
|
242
|
+
classPropertyName: "forceInvalid",
|
|
243
|
+
publicName: "forceInvalid",
|
|
244
|
+
isSignal: true,
|
|
245
|
+
isRequired: false,
|
|
246
|
+
transformFunction: null
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
host: { attributes: { "data-slot": "input-otp-slot" } },
|
|
250
|
+
ngImport: i0,
|
|
251
|
+
template: `
|
|
94
252
|
<brn-input-otp-slot [index]="index()" [forceInvalid]="forceInvalid()">
|
|
95
253
|
<hlm-input-otp-fake-caret />
|
|
96
254
|
</brn-input-otp-slot>
|
|
97
|
-
`,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
255
|
+
`,
|
|
256
|
+
isInline: true,
|
|
257
|
+
dependencies: [{
|
|
258
|
+
kind: "component",
|
|
259
|
+
type: BrnInputOtpSlot,
|
|
260
|
+
selector: "brn-input-otp-slot",
|
|
261
|
+
inputs: ["index", "forceInvalid"]
|
|
262
|
+
}, {
|
|
263
|
+
kind: "component",
|
|
264
|
+
type: HlmInputOtpFakeCaret,
|
|
265
|
+
selector: "hlm-input-otp-fake-caret"
|
|
266
|
+
}],
|
|
267
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
272
|
+
minVersion: "12.0.0",
|
|
273
|
+
version: "22.2.4",
|
|
274
|
+
ngImport: i0,
|
|
275
|
+
type: HlmInputOtpSlot,
|
|
276
|
+
decorators: [{
|
|
277
|
+
type: Component,
|
|
278
|
+
args: [{
|
|
279
|
+
selector: "hlm-input-otp-slot",
|
|
280
|
+
imports: [BrnInputOtpSlot, HlmInputOtpFakeCaret],
|
|
281
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
282
|
+
host: { "data-slot": "input-otp-slot" },
|
|
283
|
+
template: `
|
|
107
284
|
<brn-input-otp-slot [index]="index()" [forceInvalid]="forceInvalid()">
|
|
108
285
|
<hlm-input-otp-fake-caret />
|
|
109
286
|
</brn-input-otp-slot>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
287
|
+
`
|
|
288
|
+
}]
|
|
289
|
+
}],
|
|
290
|
+
ctorParameters: () => [],
|
|
291
|
+
propDecorators: {
|
|
292
|
+
index: [{
|
|
293
|
+
type: i0.Input,
|
|
294
|
+
args: [{
|
|
295
|
+
isSignal: true,
|
|
296
|
+
alias: "index",
|
|
297
|
+
required: true
|
|
298
|
+
}]
|
|
299
|
+
}],
|
|
300
|
+
forceInvalid: [{
|
|
301
|
+
type: i0.Input,
|
|
302
|
+
args: [{
|
|
303
|
+
isSignal: true,
|
|
304
|
+
alias: "forceInvalid",
|
|
305
|
+
required: false
|
|
306
|
+
}]
|
|
307
|
+
}]
|
|
308
|
+
}
|
|
309
|
+
});
|
|
114
310
|
const HlmInputOtpImports = [
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
311
|
+
HlmInputOtp,
|
|
312
|
+
HlmInputOtpGroup,
|
|
313
|
+
HlmInputOtpSeparator,
|
|
314
|
+
HlmInputOtpSlot,
|
|
315
|
+
HlmInputOtpFakeCaret
|
|
120
316
|
];
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Generated bundle index. Do not edit.
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
317
|
export { HlmInputOtp, HlmInputOtpFakeCaret, HlmInputOtpGroup, HlmInputOtpImports, HlmInputOtpSeparator, HlmInputOtpSlot };
|
|
127
|
-
|
|
318
|
+
|
|
319
|
+
//# sourceMappingURL=yukit-web-helm-input-otp.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yukit-web-helm-input-otp.mjs","sources":["../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-fake-caret.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-group.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-separator.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-slot.ts","../../../projects/yukit-web/helm/input-otp/src/index.ts"
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-input-otp.mjs","names":[],"sources":["../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-fake-caret.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-group.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-separator.ts","../../../projects/yukit-web/helm/input-otp/src/lib/hlm-input-otp-slot.ts","../../../projects/yukit-web/helm/input-otp/src/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: 'brn-input-otp[hlmInputOtp], brn-input-otp[hlm]',\n\thost: { 'data-slot': 'input-otp' },\n})\nexport class HlmInputOtp {\n\tconstructor() {\n\t\tclasses(() => 'gap-2 flex items-center has-disabled:opacity-50');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-input-otp-fake-caret',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\ttemplate: `\n\t\t<div class=\"animate-caret-blink bg-foreground h-4 w-px duration-1000\"></div>\n\t`,\n})\nexport class HlmInputOtpFakeCaret {\n\tconstructor() {\n\t\tclasses(() => 'pointer-events-none absolute inset-0 flex items-center justify-center');\n\t}\n}\n","import { Directive } from '@angular/core';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmInputOtpGroup],hlm-input-otp-group',\n\thost: { 'data-slot': 'input-otp-group' },\n})\nexport class HlmInputOtpGroup {\n\tconstructor() {\n\t\tclasses(() => 'has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive rounded-lg has-data-[matches-spartan-invalid=true]:ring-3 flex items-center');\n\t}\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { NgIcon, provideIcons } from '@ng-icons/core';\nimport { lucideMinus } from '@ng-icons/lucide';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Component({\n\tselector: 'hlm-input-otp-separator',\n\timports: [NgIcon],\n\tproviders: [provideIcons({ lucideMinus })],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: {\n\t\trole: 'separator',\n\t\t'data-slot': 'input-otp-separator',\n\t},\n\ttemplate: `\n\t\t<ng-icon name=\"lucideMinus\" />\n\t`,\n})\nexport class HlmInputOtpSeparator {\n\tconstructor() {\n\t\tclasses(() => \"[&_ng-icon:not([class*='text-'])]:text-[length:--spacing(4)] flex items-center\");\n\t}\n}\n","import type { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, input, numberAttribute } from '@angular/core';\nimport { BrnInputOtpSlot } from '@spartan-ng/brain/input-otp';\nimport { classes } from 'yukit-web/helm/utils';\nimport { HlmInputOtpFakeCaret } from './hlm-input-otp-fake-caret';\n\n@Component({\n\tselector: 'hlm-input-otp-slot',\n\timports: [BrnInputOtpSlot, HlmInputOtpFakeCaret],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\thost: { 'data-slot': 'input-otp-slot' },\n\ttemplate: `\n\t\t<brn-input-otp-slot [index]=\"index()\" [forceInvalid]=\"forceInvalid()\">\n\t\t\t<hlm-input-otp-fake-caret />\n\t\t</brn-input-otp-slot>\n\t`,\n})\nexport class HlmInputOtpSlot {\n\t/** The index of the slot to render the char or a fake caret */\n\tpublic readonly index = input.required<number, NumberInput>({ transform: numberAttribute });\n\n\t/** Whether to force the input into an invalid state. */\n\tpublic readonly forceInvalid = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'dark:bg-input/30 border-input has-[brn-input-otp-slot[data-active=\"true\"]]:border-ring has-[brn-input-otp-slot[data-active=\"true\"]]:ring-ring/50 has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/20 dark:has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:ring-destructive/40 has-data-[matches-spartan-invalid=true]:border-destructive has-[brn-input-otp-slot[data-active=\"true\"]]:has-data-[matches-spartan-invalid=true]:border-destructive size-8 border-y border-e text-sm transition-all outline-none first:rounded-s-lg first:border-s last:rounded-e-lg has-[brn-input-otp-slot[data-active=\"true\"]]:ring-3 relative flex items-center justify-center has-[brn-input-otp-slot[data-active=\"true\"]]:z-10',\n\t\t);\n\t}\n}\n","import { HlmInputOtp } from './lib/hlm-input-otp';\nimport { HlmInputOtpFakeCaret } from './lib/hlm-input-otp-fake-caret';\nimport { HlmInputOtpGroup } from './lib/hlm-input-otp-group';\nimport { HlmInputOtpSeparator } from './lib/hlm-input-otp-separator';\nimport { HlmInputOtpSlot } from './lib/hlm-input-otp-slot';\n\nexport * from './lib/hlm-input-otp';\nexport * from './lib/hlm-input-otp-fake-caret';\nexport * from './lib/hlm-input-otp-group';\nexport * from './lib/hlm-input-otp-separator';\nexport * from './lib/hlm-input-otp-slot';\n\nexport const HlmInputOtpImports = [\n\tHlmInputOtp,\n\tHlmInputOtpGroup,\n\tHlmInputOtpSeparator,\n\tHlmInputOtpSlot,\n\tHlmInputOtpFakeCaret,\n] as const;\n"],"mappings":"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"}
|
|
@@ -1,32 +1,64 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import { Directive } from
|
|
3
|
-
import * as i2 from
|
|
4
|
-
import { BrnFieldControlDescribedBy } from
|
|
5
|
-
import * as i1 from
|
|
6
|
-
import { BrnInput } from
|
|
7
|
-
import { classes } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Directive } from "@angular/core";
|
|
3
|
+
import * as i2 from "@spartan-ng/brain/field";
|
|
4
|
+
import { BrnFieldControlDescribedBy } from "@spartan-ng/brain/field";
|
|
5
|
+
import * as i1 from "@spartan-ng/brain/input";
|
|
6
|
+
import { BrnInput } from "@spartan-ng/brain/input";
|
|
7
|
+
import { classes } from "yukit-web/helm/utils";
|
|
8
|
+
var HlmInput = class HlmInput {
|
|
9
|
+
constructor() {
|
|
10
|
+
classes(() => "dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50");
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
14
|
+
minVersion: "12.0.0",
|
|
15
|
+
version: "22.2.4",
|
|
16
|
+
ngImport: i0,
|
|
17
|
+
type: HlmInput,
|
|
18
|
+
deps: [],
|
|
19
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
24
|
+
minVersion: "14.0.0",
|
|
25
|
+
version: "22.2.4",
|
|
26
|
+
type: HlmInput,
|
|
27
|
+
isStandalone: true,
|
|
28
|
+
selector: "[hlmInput]",
|
|
29
|
+
host: { attributes: { "data-slot": "input" } },
|
|
30
|
+
hostDirectives: [{
|
|
31
|
+
directive: i1.BrnInput,
|
|
32
|
+
inputs: [
|
|
33
|
+
"id",
|
|
34
|
+
"id",
|
|
35
|
+
"forceInvalid",
|
|
36
|
+
"forceInvalid"
|
|
37
|
+
]
|
|
38
|
+
}, { directive: i2.BrnFieldControlDescribedBy }],
|
|
39
|
+
ngImport: i0
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
44
|
+
minVersion: "12.0.0",
|
|
45
|
+
version: "22.2.4",
|
|
46
|
+
ngImport: i0,
|
|
47
|
+
type: HlmInput,
|
|
48
|
+
decorators: [{
|
|
49
|
+
type: Directive,
|
|
50
|
+
args: [{
|
|
51
|
+
selector: "[hlmInput]",
|
|
52
|
+
hostDirectives: [{
|
|
53
|
+
directive: BrnInput,
|
|
54
|
+
inputs: ["id", "forceInvalid"]
|
|
55
|
+
}, BrnFieldControlDescribedBy],
|
|
56
|
+
host: { "data-slot": "input" }
|
|
57
|
+
}]
|
|
58
|
+
}],
|
|
59
|
+
ctorParameters: () => []
|
|
60
|
+
});
|
|
25
61
|
const HlmInputImports = [HlmInput];
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Generated bundle index. Do not edit.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
62
|
export { HlmInput, HlmInputImports };
|
|
32
|
-
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=yukit-web-helm-input.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yukit-web-helm-input.mjs","sources":["../../../projects/yukit-web/helm/input/src/lib/hlm-input.ts","../../../projects/yukit-web/helm/input/src/index.ts"
|
|
1
|
+
{"version":3,"file":"yukit-web-helm-input.mjs","names":[],"sources":["../../../projects/yukit-web/helm/input/src/lib/hlm-input.ts","../../../projects/yukit-web/helm/input/src/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { BrnFieldControlDescribedBy } from '@spartan-ng/brain/field';\nimport { BrnInput } from '@spartan-ng/brain/input';\nimport { classes } from 'yukit-web/helm/utils';\n\n@Directive({\n\tselector: '[hlmInput]',\n\thostDirectives: [{ directive: BrnInput, inputs: ['id', 'forceInvalid'] }, BrnFieldControlDescribedBy],\n\thost: { 'data-slot': 'input' },\n})\nexport class HlmInput {\n\tconstructor() {\n\t\tclasses(\n\t\t\t() =>\n\t\t\t\t'dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50',\n\t\t);\n\t}\n}\n","import { HlmInput } from './lib/hlm-input';\n\nexport * from './lib/hlm-input';\n\nexport const HlmInputImports = [HlmInput] as const;\n"],"mappings":";;;;;;;AAUA,IAAa,WAAb,MAAa,SAAQ;CACpB,cAAA;EACC,cAEE,gwBAAgwB;CAEnwB;CANY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAQ,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAR;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAQ,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,YAAA,EAAA,aAAA,QAAA,EAAA;GAAA,gBAAA,CAAA;IAAA,WAAA,GAAA;IAAA,QAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA,GAAA,EAAA,WAAA,GAAA,2BAAA,CAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAR,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAQ,YAAA,CAAA;EALpB,MAAA;EAAU,MAAA,CAAA;GACV,UAAU;GACV,gBAAgB,CAAC;IAAE,WAAW;IAAU,QAAQ,CAAC,MAAM,cAAc;GAAC,GAAI,0BAA0B;GACpG,MAAM,EAAE,aAAa,QAAO;EAC5B,CAAA;;;;ACLD,MAAa,kBAAkB,CAAC,QAAQ"}
|