@softpak/components 0.0.0-beta.3 → 0.0.0-beta.5

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.
@@ -20,34 +20,38 @@ export class SpxButtonComponent {
20
20
  get hostClassBlock() { return this.spxFullWidth; }
21
21
  get hostClassHFull() { return this.spxFullHeight; }
22
22
  get hostClassWFull() { return this.spxFullWidth; }
23
+ get severityError() { return this.spxSeverity === SpxSeverityEnum.error; }
24
+ get severityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }
25
+ get severitySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }
26
+ get severityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }
23
27
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
24
28
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxButtonComponent, isStandalone: true, selector: "spx-button", inputs: { spxDisabled: "spxDisabled", spxClass: "spxClass", spxClassObject: "spxClassObject", spxForm: "spxForm", spxFullHeight: "spxFullHeight", spxFullWidth: "spxFullWidth", spxSeverity: "spxSeverity", spxSize: "spxSize", spxTabIndex: "spxTabIndex", spxType: "spxType" }, outputs: { spxClick: "spxClick" }, host: { properties: { "class.block": "this.hostClassBlock", "class.h-full": "this.hostClassHFull", "class.w-full": "this.hostClassWFull" } }, ngImport: i0, template: `
25
29
  <button
26
- class="border border-transparent font-medium px-4 py-2 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2 text-sm"
30
+ class="border border-transparent font-bold px-4 py-2 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2"
27
31
  [class.h-full]="this.spxFullHeight"
28
32
  [class.w-full]="this.spxFullWidth"
29
- [class.bg-blue-600]="!this.spxSeverity || this.spxSeverity === 'info'"
30
- [class.focus:ring-blue-500]="!this.spxSeverity || this.spxSeverity === 'info'"
31
- [class.hover:bg-blue-800]="!this.spxSeverity || this.spxSeverity === 'info'"
32
- [class.bg-red-600]="!this.spxSeverity || this.spxSeverity === 'error'"
33
- [class.focus:ring-red-500]="!this.spxSeverity || this.spxSeverity === 'error'"
34
- [class.hover:bg-red-800]="!this.spxSeverity || this.spxSeverity === 'error'"
35
- [class.bg-lime-600]="!this.spxSeverity || this.spxSeverity === 'success'"
36
- [class.focus:ring-lime-500]="!this.spxSeverity || this.spxSeverity === 'success'"
37
- [class.hover:bg-lime-800]="!this.spxSeverity || this.spxSeverity === 'success'"
38
- [class.bg-amber-600]="!this.spxSeverity || this.spxSeverity === 'warning'"
39
- [class.focus:ring-amber-500]="!this.spxSeverity || this.spxSeverity === 'warning'"
40
- [class.hover:bg-amber-800]="!this.spxSeverity || this.spxSeverity === 'warning'"
33
+ [class.bg-blue-600]="!this.spxSeverity || this.severityInfo"
34
+ [class.focus:ring-blue-500]="!this.spxSeverity || this.severityInfo"
35
+ [class.hover:bg-blue-800]="!this.spxSeverity || this.severityInfo"
36
+ [class.bg-red-600]="this.severityError"
37
+ [class.focus:ring-red-500]="this.severityError"
38
+ [class.hover:bg-red-800]="this.severityError"
39
+ [class.bg-lime-600]="this.severitySuccess"
40
+ [class.focus:ring-lime-500]="this.severitySuccess"
41
+ [class.hover:bg-lime-800]="this.severitySuccess"
42
+ [class.bg-amber-600]="this.severityWarning"
43
+ [class.focus:ring-amber-500]="this.severityWarning"
44
+ [class.hover:bg-amber-800]="this.severityWarning"
41
45
  [class.text-xl]="this.spxSize === 'xl'"
42
46
  [class.text-lg]="this.spxSize === 'lg'"
43
47
  [class.cursor-pointer]="!this.spxDisabled"
44
48
  [class.cursor-not-allowed]="this.spxDisabled"
45
49
  [class.opacity-50]="this.spxDisabled"
46
50
  [class.focus:ring-0]="this.spxDisabled"
47
- [class.hover:bg-red-600]="this.spxDisabled && this.spxSeverity === 'error'"
48
- [class.hover:bg-blue-600]="this.spxDisabled && this.spxSeverity === 'info'"
49
- [class.hover:bg-lime-600]="this.spxDisabled && this.spxSeverity === 'success'"
50
- [class.hover:bg-amber-600]="this.spxDisabled && this.spxSeverity === 'warning'"
51
+ [class.hover:bg-red-600]="this.spxDisabled && this.severityError"
52
+ [class.hover:bg-blue-600]="this.spxDisabled && this.severityInfo"
53
+ [class.hover:bg-lime-600]="this.spxDisabled && this.severitySuccess"
54
+ [class.hover:bg-amber-600]="this.spxDisabled && this.severityWarning"
51
55
  [attr.disabled]="this.spxDisabled ? this.spxDisabled : undefined"
52
56
  [attr.form]="this.spxForm ? this.spxForm : undefined"
53
57
  [attr.tabindex]="this.spxTabIndex ? this.spxTabIndex : undefined"
@@ -62,31 +66,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
62
66
  standalone: true,
63
67
  template: `
64
68
  <button
65
- class="border border-transparent font-medium px-4 py-2 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2 text-sm"
69
+ class="border border-transparent font-bold px-4 py-2 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2"
66
70
  [class.h-full]="this.spxFullHeight"
67
71
  [class.w-full]="this.spxFullWidth"
68
- [class.bg-blue-600]="!this.spxSeverity || this.spxSeverity === 'info'"
69
- [class.focus:ring-blue-500]="!this.spxSeverity || this.spxSeverity === 'info'"
70
- [class.hover:bg-blue-800]="!this.spxSeverity || this.spxSeverity === 'info'"
71
- [class.bg-red-600]="!this.spxSeverity || this.spxSeverity === 'error'"
72
- [class.focus:ring-red-500]="!this.spxSeverity || this.spxSeverity === 'error'"
73
- [class.hover:bg-red-800]="!this.spxSeverity || this.spxSeverity === 'error'"
74
- [class.bg-lime-600]="!this.spxSeverity || this.spxSeverity === 'success'"
75
- [class.focus:ring-lime-500]="!this.spxSeverity || this.spxSeverity === 'success'"
76
- [class.hover:bg-lime-800]="!this.spxSeverity || this.spxSeverity === 'success'"
77
- [class.bg-amber-600]="!this.spxSeverity || this.spxSeverity === 'warning'"
78
- [class.focus:ring-amber-500]="!this.spxSeverity || this.spxSeverity === 'warning'"
79
- [class.hover:bg-amber-800]="!this.spxSeverity || this.spxSeverity === 'warning'"
72
+ [class.bg-blue-600]="!this.spxSeverity || this.severityInfo"
73
+ [class.focus:ring-blue-500]="!this.spxSeverity || this.severityInfo"
74
+ [class.hover:bg-blue-800]="!this.spxSeverity || this.severityInfo"
75
+ [class.bg-red-600]="this.severityError"
76
+ [class.focus:ring-red-500]="this.severityError"
77
+ [class.hover:bg-red-800]="this.severityError"
78
+ [class.bg-lime-600]="this.severitySuccess"
79
+ [class.focus:ring-lime-500]="this.severitySuccess"
80
+ [class.hover:bg-lime-800]="this.severitySuccess"
81
+ [class.bg-amber-600]="this.severityWarning"
82
+ [class.focus:ring-amber-500]="this.severityWarning"
83
+ [class.hover:bg-amber-800]="this.severityWarning"
80
84
  [class.text-xl]="this.spxSize === 'xl'"
81
85
  [class.text-lg]="this.spxSize === 'lg'"
82
86
  [class.cursor-pointer]="!this.spxDisabled"
83
87
  [class.cursor-not-allowed]="this.spxDisabled"
84
88
  [class.opacity-50]="this.spxDisabled"
85
89
  [class.focus:ring-0]="this.spxDisabled"
86
- [class.hover:bg-red-600]="this.spxDisabled && this.spxSeverity === 'error'"
87
- [class.hover:bg-blue-600]="this.spxDisabled && this.spxSeverity === 'info'"
88
- [class.hover:bg-lime-600]="this.spxDisabled && this.spxSeverity === 'success'"
89
- [class.hover:bg-amber-600]="this.spxDisabled && this.spxSeverity === 'warning'"
90
+ [class.hover:bg-red-600]="this.spxDisabled && this.severityError"
91
+ [class.hover:bg-blue-600]="this.spxDisabled && this.severityInfo"
92
+ [class.hover:bg-lime-600]="this.spxDisabled && this.severitySuccess"
93
+ [class.hover:bg-amber-600]="this.spxDisabled && this.severityWarning"
90
94
  [attr.disabled]="this.spxDisabled ? this.spxDisabled : undefined"
91
95
  [attr.form]="this.spxForm ? this.spxForm : undefined"
92
96
  [attr.tabindex]="this.spxTabIndex ? this.spxTabIndex : undefined"
@@ -126,4 +130,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
126
130
  }], spxClick: [{
127
131
  type: Output
128
132
  }] } });
129
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3B4LWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zb2Z0cGFrL2NvbXBvbmVudHMvc3B4LWJ1dHRvbi9zcHgtYnV0dG9uLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRixPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0saUNBQWlDLENBQUM7O0FBdUNsRSxNQUFNLE9BQU8sa0JBQWtCO0lBckMvQjtRQXlDVyxnQkFBVyxHQUFHLEtBQUssQ0FBQztRQU1wQixnQkFBVyxHQUFvQixlQUFlLENBQUMsSUFBSSxDQUFDO1FBQ3BELFlBQU8sR0FBZ0IsSUFBSSxDQUFDO1FBRTVCLFlBQU8sR0FBd0IsUUFBUSxDQUFDO1FBQ3ZDLGFBQVEsR0FBdUIsSUFBSSxZQUFZLEVBQVEsQ0FBQztRQUVsRSxpQkFBWSxHQUFHLENBQUMsRUFBZSxFQUFFLEVBQUU7WUFDakMsT0FBTyxDQUFDLENBQUMsRUFBRSxDQUFDLFVBQVUsSUFBSSxDQUFDLENBQUUsRUFBVSxDQUFDLFlBQVksQ0FBQztRQUN2RCxDQUFDLENBQUM7UUFDRixnQkFBVyxHQUFHLEdBQUcsRUFBRTtZQUNqQixJQUFJLENBQUMsSUFBSSxDQUFDLFdBQVcsRUFBRSxD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SpxButtonComponent {
21
21
  get hostClassBlock() { return this.spxFullWidth; }
22
22
  get hostClassHFull() { return this.spxFullHeight; }
23
23
  get hostClassWFull() { return this.spxFullWidth; }
24
+ get severityError() { return this.spxSeverity === SpxSeverityEnum.error; }
25
+ get severityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }
26
+ get severitySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }
27
+ get severityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }
24
28
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: SpxButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
29
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.2", type: SpxButtonComponent, isStandalone: true, selector: "spx-button", inputs: { spxDisabled: "spxDisabled", spxClass: "spxClass", spxClassObject: "spxClassObject", spxForm: "spxForm", spxFullHeight: "spxFullHeight", spxFullWidth: "spxFullWidth", spxSeverity: "spxSeverity", spxSize: "spxSize", spxTabIndex: "spxTabIndex", spxType: "spxType" }, outputs: { spxClick: "spxClick" }, host: { properties: { "class.block": "this.hostClassBlock", "class.h-full": "this.hostClassHFull", "class.w-full": "this.hostClassWFull" } }, ngImport: i0, template: `
26
30
  <button
27
- class="border border-transparent font-medium px-4 py-2 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2 text-sm"
31
+ class="border border-transparent font-bold px-4 py-2 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2"
28
32
  [class.h-full]="this.spxFullHeight"
29
33
  [class.w-full]="this.spxFullWidth"
30
- [class.bg-blue-600]="!this.spxSeverity || this.spxSeverity === 'info'"
31
- [class.focus:ring-blue-500]="!this.spxSeverity || this.spxSeverity === 'info'"
32
- [class.hover:bg-blue-800]="!this.spxSeverity || this.spxSeverity === 'info'"
33
- [class.bg-red-600]="!this.spxSeverity || this.spxSeverity === 'error'"
34
- [class.focus:ring-red-500]="!this.spxSeverity || this.spxSeverity === 'error'"
35
- [class.hover:bg-red-800]="!this.spxSeverity || this.spxSeverity === 'error'"
36
- [class.bg-lime-600]="!this.spxSeverity || this.spxSeverity === 'success'"
37
- [class.focus:ring-lime-500]="!this.spxSeverity || this.spxSeverity === 'success'"
38
- [class.hover:bg-lime-800]="!this.spxSeverity || this.spxSeverity === 'success'"
39
- [class.bg-amber-600]="!this.spxSeverity || this.spxSeverity === 'warning'"
40
- [class.focus:ring-amber-500]="!this.spxSeverity || this.spxSeverity === 'warning'"
41
- [class.hover:bg-amber-800]="!this.spxSeverity || this.spxSeverity === 'warning'"
34
+ [class.bg-blue-600]="!this.spxSeverity || this.severityInfo"
35
+ [class.focus:ring-blue-500]="!this.spxSeverity || this.severityInfo"
36
+ [class.hover:bg-blue-800]="!this.spxSeverity || this.severityInfo"
37
+ [class.bg-red-600]="this.severityError"
38
+ [class.focus:ring-red-500]="this.severityError"
39
+ [class.hover:bg-red-800]="this.severityError"
40
+ [class.bg-lime-600]="this.severitySuccess"
41
+ [class.focus:ring-lime-500]="this.severitySuccess"
42
+ [class.hover:bg-lime-800]="this.severitySuccess"
43
+ [class.bg-amber-600]="this.severityWarning"
44
+ [class.focus:ring-amber-500]="this.severityWarning"
45
+ [class.hover:bg-amber-800]="this.severityWarning"
42
46
  [class.text-xl]="this.spxSize === 'xl'"
43
47
  [class.text-lg]="this.spxSize === 'lg'"
44
48
  [class.cursor-pointer]="!this.spxDisabled"
45
49
  [class.cursor-not-allowed]="this.spxDisabled"
46
50
  [class.opacity-50]="this.spxDisabled"
47
51
  [class.focus:ring-0]="this.spxDisabled"
48
- [class.hover:bg-red-600]="this.spxDisabled && this.spxSeverity === 'error'"
49
- [class.hover:bg-blue-600]="this.spxDisabled && this.spxSeverity === 'info'"
50
- [class.hover:bg-lime-600]="this.spxDisabled && this.spxSeverity === 'success'"
51
- [class.hover:bg-amber-600]="this.spxDisabled && this.spxSeverity === 'warning'"
52
+ [class.hover:bg-red-600]="this.spxDisabled && this.severityError"
53
+ [class.hover:bg-blue-600]="this.spxDisabled && this.severityInfo"
54
+ [class.hover:bg-lime-600]="this.spxDisabled && this.severitySuccess"
55
+ [class.hover:bg-amber-600]="this.spxDisabled && this.severityWarning"
52
56
  [attr.disabled]="this.spxDisabled ? this.spxDisabled : undefined"
53
57
  [attr.form]="this.spxForm ? this.spxForm : undefined"
54
58
  [attr.tabindex]="this.spxTabIndex ? this.spxTabIndex : undefined"
@@ -63,31 +67,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
63
67
  standalone: true,
64
68
  template: `
65
69
  <button
66
- class="border border-transparent font-medium px-4 py-2 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2 text-sm"
70
+ class="border border-transparent font-bold px-4 py-2 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2"
67
71
  [class.h-full]="this.spxFullHeight"
68
72
  [class.w-full]="this.spxFullWidth"
69
- [class.bg-blue-600]="!this.spxSeverity || this.spxSeverity === 'info'"
70
- [class.focus:ring-blue-500]="!this.spxSeverity || this.spxSeverity === 'info'"
71
- [class.hover:bg-blue-800]="!this.spxSeverity || this.spxSeverity === 'info'"
72
- [class.bg-red-600]="!this.spxSeverity || this.spxSeverity === 'error'"
73
- [class.focus:ring-red-500]="!this.spxSeverity || this.spxSeverity === 'error'"
74
- [class.hover:bg-red-800]="!this.spxSeverity || this.spxSeverity === 'error'"
75
- [class.bg-lime-600]="!this.spxSeverity || this.spxSeverity === 'success'"
76
- [class.focus:ring-lime-500]="!this.spxSeverity || this.spxSeverity === 'success'"
77
- [class.hover:bg-lime-800]="!this.spxSeverity || this.spxSeverity === 'success'"
78
- [class.bg-amber-600]="!this.spxSeverity || this.spxSeverity === 'warning'"
79
- [class.focus:ring-amber-500]="!this.spxSeverity || this.spxSeverity === 'warning'"
80
- [class.hover:bg-amber-800]="!this.spxSeverity || this.spxSeverity === 'warning'"
73
+ [class.bg-blue-600]="!this.spxSeverity || this.severityInfo"
74
+ [class.focus:ring-blue-500]="!this.spxSeverity || this.severityInfo"
75
+ [class.hover:bg-blue-800]="!this.spxSeverity || this.severityInfo"
76
+ [class.bg-red-600]="this.severityError"
77
+ [class.focus:ring-red-500]="this.severityError"
78
+ [class.hover:bg-red-800]="this.severityError"
79
+ [class.bg-lime-600]="this.severitySuccess"
80
+ [class.focus:ring-lime-500]="this.severitySuccess"
81
+ [class.hover:bg-lime-800]="this.severitySuccess"
82
+ [class.bg-amber-600]="this.severityWarning"
83
+ [class.focus:ring-amber-500]="this.severityWarning"
84
+ [class.hover:bg-amber-800]="this.severityWarning"
81
85
  [class.text-xl]="this.spxSize === 'xl'"
82
86
  [class.text-lg]="this.spxSize === 'lg'"
83
87
  [class.cursor-pointer]="!this.spxDisabled"
84
88
  [class.cursor-not-allowed]="this.spxDisabled"
85
89
  [class.opacity-50]="this.spxDisabled"
86
90
  [class.focus:ring-0]="this.spxDisabled"
87
- [class.hover:bg-red-600]="this.spxDisabled && this.spxSeverity === 'error'"
88
- [class.hover:bg-blue-600]="this.spxDisabled && this.spxSeverity === 'info'"
89
- [class.hover:bg-lime-600]="this.spxDisabled && this.spxSeverity === 'success'"
90
- [class.hover:bg-amber-600]="this.spxDisabled && this.spxSeverity === 'warning'"
91
+ [class.hover:bg-red-600]="this.spxDisabled && this.severityError"
92
+ [class.hover:bg-blue-600]="this.spxDisabled && this.severityInfo"
93
+ [class.hover:bg-lime-600]="this.spxDisabled && this.severitySuccess"
94
+ [class.hover:bg-amber-600]="this.spxDisabled && this.severityWarning"
91
95
  [attr.disabled]="this.spxDisabled ? this.spxDisabled : undefined"
92
96
  [attr.form]="this.spxForm ? this.spxForm : undefined"
93
97
  [attr.tabindex]="this.spxTabIndex ? this.spxTabIndex : undefined"
@@ -1 +1 @@
1
- {"version":3,"file":"softpak-components-spx-button.mjs","sources":["../../../../projects/softpak/components/spx-button/spx-button.component.ts","../../../../projects/softpak/components/spx-button/softpak-components-spx-button.ts"],"sourcesContent":["import { Component, EventEmitter, HostBinding, Input, Output } from '@angular/core';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-button',\n standalone: true,\n template: `\n <button\n class=\"border border-transparent font-medium px-4 py-2 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2 text-sm\"\n [class.h-full]=\"this.spxFullHeight\"\n [class.w-full]=\"this.spxFullWidth\"\n [class.bg-blue-600]=\"!this.spxSeverity || this.spxSeverity === 'info'\"\n [class.focus:ring-blue-500]=\"!this.spxSeverity || this.spxSeverity === 'info'\"\n [class.hover:bg-blue-800]=\"!this.spxSeverity || this.spxSeverity === 'info'\"\n [class.bg-red-600]=\"!this.spxSeverity || this.spxSeverity === 'error'\"\n [class.focus:ring-red-500]=\"!this.spxSeverity || this.spxSeverity === 'error'\"\n [class.hover:bg-red-800]=\"!this.spxSeverity || this.spxSeverity === 'error'\"\n [class.bg-lime-600]=\"!this.spxSeverity || this.spxSeverity === 'success'\"\n [class.focus:ring-lime-500]=\"!this.spxSeverity || this.spxSeverity === 'success'\"\n [class.hover:bg-lime-800]=\"!this.spxSeverity || this.spxSeverity === 'success'\"\n [class.bg-amber-600]=\"!this.spxSeverity || this.spxSeverity === 'warning'\"\n [class.focus:ring-amber-500]=\"!this.spxSeverity || this.spxSeverity === 'warning'\"\n [class.hover:bg-amber-800]=\"!this.spxSeverity || this.spxSeverity === 'warning'\"\n [class.text-xl]=\"this.spxSize === 'xl'\"\n [class.text-lg]=\"this.spxSize === 'lg'\"\n [class.cursor-pointer]=\"!this.spxDisabled\"\n [class.cursor-not-allowed]=\"this.spxDisabled\"\n [class.opacity-50]=\"this.spxDisabled\"\n [class.focus:ring-0]=\"this.spxDisabled\"\n [class.hover:bg-red-600]=\"this.spxDisabled && this.spxSeverity === 'error'\"\n [class.hover:bg-blue-600]=\"this.spxDisabled && this.spxSeverity === 'info'\"\n [class.hover:bg-lime-600]=\"this.spxDisabled && this.spxSeverity === 'success'\"\n [class.hover:bg-amber-600]=\"this.spxDisabled && this.spxSeverity === 'warning'\"\n [attr.disabled]=\"this.spxDisabled ? this.spxDisabled : undefined\"\n [attr.form]=\"this.spxForm ? this.spxForm : undefined\"\n [attr.tabindex]=\"this.spxTabIndex ? this.spxTabIndex : undefined\"\n [attr.type]=\"this.spxType ? this.spxType : undefined\"\n (click)=\"this.handleClick()\"\n part=\"button\"><ng-content></ng-content></button>`,\n})\nexport class SpxButtonComponent {\n @HostBinding('class.block') get hostClassBlock() { return this.spxFullWidth; }\n @HostBinding('class.h-full') get hostClassHFull() { return this.spxFullHeight; }\n @HostBinding('class.w-full') get hostClassWFull() { return this.spxFullWidth; }\n @Input() spxDisabled = false;\n @Input() spxClass?: string;\n @Input() spxClassObject?: object;\n @Input() spxForm?: string;\n @Input() spxFullHeight?: boolean;\n @Input() spxFullWidth?: boolean;\n @Input() spxSeverity: SpxSeverityEnum = SpxSeverityEnum.info;\n @Input() spxSize: 'lg' | 'xl' = 'lg';\n @Input() spxTabIndex?: number;\n @Input() spxType: 'button' | 'submit' = 'submit';\n @Output() spxClick: EventEmitter<void> = new EventEmitter<void>();\n\n hasShadowDom = (el: HTMLElement) => {\n return !!el.shadowRoot && !!(el as any).attachShadow;\n };\n handleClick = () => {\n if (!this.spxDisabled) {\n this.spxClick.emit();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAwCa,kBAAkB,CAAA;AArC/B,IAAA,WAAA,GAAA;QAyCW,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;AAMpB,QAAA,IAAA,CAAA,WAAW,GAAoB,eAAe,CAAC,IAAI,CAAC;QACpD,IAAO,CAAA,OAAA,GAAgB,IAAI,CAAC;QAE5B,IAAO,CAAA,OAAA,GAAwB,QAAQ,CAAC;AACvC,QAAA,IAAA,CAAA,QAAQ,GAAuB,IAAI,YAAY,EAAQ,CAAC;AAElE,QAAA,IAA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,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCyC,oDAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAExC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBArC9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,YAAY;AACtB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCyC,oDAAA,CAAA;AACpD,iBAAA,CAAA;8BAEiC,cAAc,EAAA,CAAA;sBAA7C,WAAW;uBAAC,aAAa,CAAA;gBACO,cAAc,EAAA,CAAA;sBAA9C,WAAW;uBAAC,cAAc,CAAA;gBACM,cAAc,EAAA,CAAA;sBAA9C,WAAW;uBAAC,cAAc,CAAA;gBAClB,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,cAAc,EAAA,CAAA;sBAAtB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,aAAa,EAAA,CAAA;sBAArB,KAAK;gBACG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACI,QAAQ,EAAA,CAAA;sBAAjB,MAAM;;;ACtDT;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-button.mjs","sources":["../../../../projects/softpak/components/spx-button/spx-button.component.ts","../../../../projects/softpak/components/spx-button/softpak-components-spx-button.ts"],"sourcesContent":["import { Component, EventEmitter, HostBinding, Input, Output } from '@angular/core';\nimport { SpxSeverityEnum } from '@softpak/components/spx-helpers';\n\n@Component({\n selector: 'spx-button',\n standalone: true,\n template: `\n <button\n class=\"border border-transparent font-bold px-4 py-2 relative rounded text-center text-white focus:outline-none focus:ring-2 focus:ring-offset-2\"\n [class.h-full]=\"this.spxFullHeight\"\n [class.w-full]=\"this.spxFullWidth\"\n [class.bg-blue-600]=\"!this.spxSeverity || this.severityInfo\"\n [class.focus:ring-blue-500]=\"!this.spxSeverity || this.severityInfo\"\n [class.hover:bg-blue-800]=\"!this.spxSeverity || this.severityInfo\"\n [class.bg-red-600]=\"this.severityError\"\n [class.focus:ring-red-500]=\"this.severityError\"\n [class.hover:bg-red-800]=\"this.severityError\"\n [class.bg-lime-600]=\"this.severitySuccess\"\n [class.focus:ring-lime-500]=\"this.severitySuccess\"\n [class.hover:bg-lime-800]=\"this.severitySuccess\"\n [class.bg-amber-600]=\"this.severityWarning\"\n [class.focus:ring-amber-500]=\"this.severityWarning\"\n [class.hover:bg-amber-800]=\"this.severityWarning\"\n [class.text-xl]=\"this.spxSize === 'xl'\"\n [class.text-lg]=\"this.spxSize === 'lg'\"\n [class.cursor-pointer]=\"!this.spxDisabled\"\n [class.cursor-not-allowed]=\"this.spxDisabled\"\n [class.opacity-50]=\"this.spxDisabled\"\n [class.focus:ring-0]=\"this.spxDisabled\"\n [class.hover:bg-red-600]=\"this.spxDisabled && this.severityError\"\n [class.hover:bg-blue-600]=\"this.spxDisabled && this.severityInfo\"\n [class.hover:bg-lime-600]=\"this.spxDisabled && this.severitySuccess\"\n [class.hover:bg-amber-600]=\"this.spxDisabled && this.severityWarning\"\n [attr.disabled]=\"this.spxDisabled ? this.spxDisabled : undefined\"\n [attr.form]=\"this.spxForm ? this.spxForm : undefined\"\n [attr.tabindex]=\"this.spxTabIndex ? this.spxTabIndex : undefined\"\n [attr.type]=\"this.spxType ? this.spxType : undefined\"\n (click)=\"this.handleClick()\"\n part=\"button\"><ng-content></ng-content></button>`,\n})\nexport class SpxButtonComponent {\n @HostBinding('class.block') get hostClassBlock() { return this.spxFullWidth; }\n @HostBinding('class.h-full') get hostClassHFull() { return this.spxFullHeight; }\n @HostBinding('class.w-full') get hostClassWFull() { return this.spxFullWidth; }\n @Input() spxDisabled = false;\n @Input() spxClass?: string;\n @Input() spxClassObject?: object;\n @Input() spxForm?: string;\n @Input() spxFullHeight?: boolean;\n @Input() spxFullWidth?: boolean;\n @Input() spxSeverity: SpxSeverityEnum = SpxSeverityEnum.info;\n @Input() spxSize: 'lg' | 'xl' = 'lg';\n @Input() spxTabIndex?: number;\n @Input() spxType: 'button' | 'submit' = 'submit';\n @Output() spxClick: EventEmitter<void> = new EventEmitter<void>();\n\n get severityError() { return this.spxSeverity === SpxSeverityEnum.error; }\n get severityInfo() { return this.spxSeverity === SpxSeverityEnum.info; }\n get severitySuccess() { return this.spxSeverity === SpxSeverityEnum.success; }\n get severityWarning() { return this.spxSeverity === SpxSeverityEnum.warning; }\n\n hasShadowDom = (el: HTMLElement) => {\n return !!el.shadowRoot && !!(el as any).attachShadow;\n };\n handleClick = () => {\n if (!this.spxDisabled) {\n this.spxClick.emit();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAwCa,kBAAkB,CAAA;AArC/B,IAAA,WAAA,GAAA;QAyCW,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;AAMpB,QAAA,IAAA,CAAA,WAAW,GAAoB,eAAe,CAAC,IAAI,CAAC;QACpD,IAAO,CAAA,OAAA,GAAgB,IAAI,CAAC;QAE5B,IAAO,CAAA,OAAA,GAAwB,QAAQ,CAAC;AACvC,QAAA,IAAA,CAAA,QAAQ,GAAuB,IAAI,YAAY,EAAQ,CAAC;AAOlE,QAAA,IAAA,CAAA,YAAY,GAAG,CAAC,EAAe,KAAI;YACjC,OAAO,CAAC,CAAC,EAAE,CAAC,UAAU,IAAI,CAAC,CAAE,EAAU,CAAC,YAAY,CAAC;AACvD,SAAC,CAAC;QACF,IAAW,CAAA,W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A,CAAA;sBAAjB,MAAM;;;ACtDT;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softpak/components",
3
- "version": "0.0.0-beta.3",
3
+ "version": "0.0.0-beta.5",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.x.x",
@@ -23,17 +23,11 @@
23
23
  "esm": "./esm2022/softpak-components.mjs",
24
24
  "default": "./fesm2022/softpak-components.mjs"
25
25
  },
26
- "./spx-alert": {
27
- "types": "./spx-alert/index.d.ts",
28
- "esm2022": "./esm2022/spx-alert/softpak-components-spx-alert.mjs",
29
- "esm": "./esm2022/spx-alert/softpak-components-spx-alert.mjs",
30
- "default": "./fesm2022/softpak-components-spx-alert.mjs"
31
- },
32
- "./spx-app-configuration": {
33
- "types": "./spx-app-configuration/index.d.ts",
34
- "esm2022": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
35
- "esm": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
36
- "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
26
+ "./spx-button": {
27
+ "types": "./spx-button/index.d.ts",
28
+ "esm2022": "./esm2022/spx-button/softpak-components-spx-button.mjs",
29
+ "esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
30
+ "default": "./fesm2022/softpak-components-spx-button.mjs"
37
31
  },
38
32
  "./spx-capitalize": {
39
33
  "types": "./spx-capitalize/index.d.ts",
@@ -41,17 +35,17 @@
41
35
  "esm": "./esm2022/spx-capitalize/softpak-components-spx-capitalize.mjs",
42
36
  "default": "./fesm2022/softpak-components-spx-capitalize.mjs"
43
37
  },
44
- "./spx-button": {
45
- "types": "./spx-button/index.d.ts",
46
- "esm2022": "./esm2022/spx-button/softpak-components-spx-button.mjs",
47
- "esm": "./esm2022/spx-button/softpak-components-spx-button.mjs",
48
- "default": "./fesm2022/softpak-components-spx-button.mjs"
38
+ "./spx-app-configuration": {
39
+ "types": "./spx-app-configuration/index.d.ts",
40
+ "esm2022": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
41
+ "esm": "./esm2022/spx-app-configuration/softpak-components-spx-app-configuration.mjs",
42
+ "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
49
43
  },
50
- "./spx-channel-selection": {
51
- "types": "./spx-channel-selection/index.d.ts",
52
- "esm2022": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
53
- "esm": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
54
- "default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
44
+ "./spx-form-section": {
45
+ "types": "./spx-form-section/index.d.ts",
46
+ "esm2022": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
47
+ "esm": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
48
+ "default": "./fesm2022/softpak-components-spx-form-section.mjs"
55
49
  },
56
50
  "./spx-check-digit": {
57
51
  "types": "./spx-check-digit/index.d.ts",
@@ -59,11 +53,11 @@
59
53
  "esm": "./esm2022/spx-check-digit/softpak-components-spx-check-digit.mjs",
60
54
  "default": "./fesm2022/softpak-components-spx-check-digit.mjs"
61
55
  },
62
- "./spx-form-section": {
63
- "types": "./spx-form-section/index.d.ts",
64
- "esm2022": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
65
- "esm": "./esm2022/spx-form-section/softpak-components-spx-form-section.mjs",
66
- "default": "./fesm2022/softpak-components-spx-form-section.mjs"
56
+ "./spx-channel-selection": {
57
+ "types": "./spx-channel-selection/index.d.ts",
58
+ "esm2022": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
59
+ "esm": "./esm2022/spx-channel-selection/softpak-components-spx-channel-selection.mjs",
60
+ "default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
67
61
  },
68
62
  "./spx-helpers": {
69
63
  "types": "./spx-helpers/index.d.ts",
@@ -71,29 +65,35 @@
71
65
  "esm": "./esm2022/spx-helpers/softpak-components-spx-helpers.mjs",
72
66
  "default": "./fesm2022/softpak-components-spx-helpers.mjs"
73
67
  },
74
- "./spx-inputs": {
75
- "types": "./spx-inputs/index.d.ts",
76
- "esm2022": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
77
- "esm": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
78
- "default": "./fesm2022/softpak-components-spx-inputs.mjs"
79
- },
80
68
  "./spx-navigation": {
81
69
  "types": "./spx-navigation/index.d.ts",
82
70
  "esm2022": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
83
71
  "esm": "./esm2022/spx-navigation/softpak-components-spx-navigation.mjs",
84
72
  "default": "./fesm2022/softpak-components-spx-navigation.mjs"
85
73
  },
74
+ "./spx-progress-bar": {
75
+ "types": "./spx-progress-bar/index.d.ts",
76
+ "esm2022": "./esm2022/spx-progress-bar/softpak-components-spx-progress-bar.mjs",
77
+ "esm": "./esm2022/spx-progress-bar/softpak-components-spx-progress-bar.mjs",
78
+ "default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
79
+ },
80
+ "./spx-inputs": {
81
+ "types": "./spx-inputs/index.d.ts",
82
+ "esm2022": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
83
+ "esm": "./esm2022/spx-inputs/softpak-components-spx-inputs.mjs",
84
+ "default": "./fesm2022/softpak-components-spx-inputs.mjs"
85
+ },
86
86
  "./spx-patch": {
87
87
  "types": "./spx-patch/index.d.ts",
88
88
  "esm2022": "./esm2022/spx-patch/softpak-components-spx-patch.mjs",
89
89
  "esm": "./esm2022/spx-patch/softpak-components-spx-patch.mjs",
90
90
  "default": "./fesm2022/softpak-components-spx-patch.mjs"
91
91
  },
92
- "./spx-progress-bar": {
93
- "types": "./spx-progress-bar/index.d.ts",
94
- "esm2022": "./esm2022/spx-progress-bar/softpak-components-spx-progress-bar.mjs",
95
- "esm": "./esm2022/spx-progress-bar/softpak-components-spx-progress-bar.mjs",
96
- "default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
92
+ "./spx-alert": {
93
+ "types": "./spx-alert/index.d.ts",
94
+ "esm2022": "./esm2022/spx-alert/softpak-components-spx-alert.mjs",
95
+ "esm": "./esm2022/spx-alert/softpak-components-spx-alert.mjs",
96
+ "default": "./fesm2022/softpak-components-spx-alert.mjs"
97
97
  },
98
98
  "./spx-spinner": {
99
99
  "types": "./spx-spinner/index.d.ts",
@@ -16,6 +16,10 @@ export declare class SpxButtonComponent {
16
16
  spxTabIndex?: number;
17
17
  spxType: 'button' | 'submit';
18
18
  spxClick: EventEmitter<void>;
19
+ get severityError(): boolean;
20
+ get severityInfo(): boolean;
21
+ get severitySuccess(): boolean;
22
+ get severityWarning(): boolean;
19
23
  hasShadowDom: (el: HTMLElement) => boolean;
20
24
  handleClick: () => void;
21
25
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxButtonComponent, never>;
package/tailwind.css CHANGED
@@ -1 +1 @@
1
- /*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.right-0{right:0}.z-20{z-index:20}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-2\.5{margin-top:.625rem;margin-bottom:.625rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mt-3{margin-top:.75rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.w-full{width:100%}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.items-end{align-items:flex-end}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.border{border-width:1px}.border-t-4{border-top-width:4px}.border-amber-500{--tw-border-opacity:1;border-color:rgb(245 158 11/var(--tw-border-opacity))}.border-cyan-500{--tw-border-opacity:1;border-color:rgb(6 182 212/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-lime-500{--tw-border-opacity:1;border-color:rgb(132 204 22/var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-transparent{border-color:#0000}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-cyan-100{--tw-bg-opacity:1;background-color:rgb(207 250 254/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.bg-lime-100{--tw-bg-opacity:1;background-color:rgb(236 252 203/var(--tw-bg-opacity))}.bg-lime-600{--tw-bg-opacity:1;background-color:rgb(101 163 13/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.bg-teal-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-cyan-600{--tw-text-opacity:1;color:rgb(8 145 178/var(--tw-text-opacity))}.text-cyan-900{--tw-text-opacity:1;color:rgb(22 78 99/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-lime-600{--tw-text-opacity:1;color:rgb(101 163 13/var(--tw-text-opacity))}.text-lime-900{--tw-text-opacity:1;color:rgb(54 83 20/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.outline-none{outline:2px solid #0000;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.ring-offset-2{--tw-ring-offset-width:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-amber-200:hover{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity))}.hover\:bg-amber-600:hover{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.hover\:bg-amber-800:hover{--tw-bg-opacity:1;background-color:rgb(146 64 14/var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\:bg-cyan-200:hover{--tw-bg-opacity:1;background-color:rgb(165 243 252/var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-lime-200:hover{--tw-bg-opacity:1;background-color:rgb(217 249 157/var(--tw-bg-opacity))}.hover\:bg-lime-600:hover{--tw-bg-opacity:1;background-color:rgb(101 163 13/var(--tw-bg-opacity))}.hover\:bg-lime-800:hover{--tw-bg-opacity:1;background-color:rgb(63 98 18/var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity))}.hover\:bg-sky-200:hover{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity))}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-amber-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(245 158 11/var(--tw-ring-opacity))}.focus\:ring-amber-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(217 119 6/var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.focus\:ring-cyan-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(8 145 178/var(--tw-ring-opacity))}.focus\:ring-lime-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(132 204 22/var(--tw-ring-opacity))}.focus\:ring-lime-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(101 163 13/var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\:ring-sky-200:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(186 230 253/var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.active\:bg-sky-300:active{--tw-bg-opacity:1;background-color:rgb(125 211 252/var(--tw-bg-opacity))}@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
1
+ /*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.right-0{right:0}.z-20{z-index:20}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-2\.5{margin-top:.625rem;margin-bottom:.625rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mt-3{margin-top:.75rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-full{height:100%}.w-full{width:100%}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.items-end{align-items:flex-end}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.border{border-width:1px}.border-t-4{border-top-width:4px}.border-amber-500{--tw-border-opacity:1;border-color:rgb(245 158 11/var(--tw-border-opacity))}.border-cyan-500{--tw-border-opacity:1;border-color:rgb(6 182 212/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-lime-500{--tw-border-opacity:1;border-color:rgb(132 204 22/var(--tw-border-opacity))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-transparent{border-color:#0000}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-cyan-100{--tw-bg-opacity:1;background-color:rgb(207 250 254/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.bg-lime-100{--tw-bg-opacity:1;background-color:rgb(236 252 203/var(--tw-bg-opacity))}.bg-lime-600{--tw-bg-opacity:1;background-color:rgb(101 163 13/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-sky-100{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.bg-teal-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-2{padding-bottom:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-cyan-600{--tw-text-opacity:1;color:rgb(8 145 178/var(--tw-text-opacity))}.text-cyan-900{--tw-text-opacity:1;color:rgb(22 78 99/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-lime-600{--tw-text-opacity:1;color:rgb(101 163 13/var(--tw-text-opacity))}.text-lime-900{--tw-text-opacity:1;color:rgb(54 83 20/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.outline-none{outline:2px solid #0000;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.ring-offset-2{--tw-ring-offset-width:2px}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-amber-200:hover{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity))}.hover\:bg-amber-600:hover{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.hover\:bg-amber-800:hover{--tw-bg-opacity:1;background-color:rgb(146 64 14/var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.hover\:bg-cyan-200:hover{--tw-bg-opacity:1;background-color:rgb(165 243 252/var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:bg-lime-200:hover{--tw-bg-opacity:1;background-color:rgb(217 249 157/var(--tw-bg-opacity))}.hover\:bg-lime-600:hover{--tw-bg-opacity:1;background-color:rgb(101 163 13/var(--tw-bg-opacity))}.hover\:bg-lime-800:hover{--tw-bg-opacity:1;background-color:rgb(63 98 18/var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity))}.hover\:bg-sky-200:hover{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity))}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-amber-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(245 158 11/var(--tw-ring-opacity))}.focus\:ring-amber-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(217 119 6/var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.focus\:ring-cyan-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(8 145 178/var(--tw-ring-opacity))}.focus\:ring-lime-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(132 204 22/var(--tw-ring-opacity))}.focus\:ring-lime-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(101 163 13/var(--tw-ring-opacity))}.focus\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\:ring-sky-200:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(186 230 253/var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.active\:bg-sky-300:active{--tw-bg-opacity:1;background-color:rgb(125 211 252/var(--tw-bg-opacity))}@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}