@hug/hospitality 1.0.0-alpha.38 → 1.0.0-alpha.39

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.
@@ -0,0 +1,26 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, Directive } from '@angular/core';
3
+
4
+ /* eslint-disable @typescript-eslint/naming-convention */
5
+ class HyCheckboxAppearanceDirective {
6
+ hyAppearance = input(null, ...(ngDevMode ? [{ debugName: "hyAppearance" }] : []));
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyCheckboxAppearanceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: HyCheckboxAppearanceDirective, isStandalone: true, selector: "mat-checkbox[hyAppearance]", inputs: { hyAppearance: { classPropertyName: "hyAppearance", publicName: "hyAppearance", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.hyAppearance": "hyAppearance()" } }, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyCheckboxAppearanceDirective, decorators: [{
11
+ type: Directive,
12
+ args: [{
13
+ selector: 'mat-checkbox[hyAppearance]',
14
+ standalone: true,
15
+ host: {
16
+ '[attr.hyAppearance]': 'hyAppearance()'
17
+ }
18
+ }]
19
+ }], propDecorators: { hyAppearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "hyAppearance", required: false }] }] } });
20
+
21
+ /**
22
+ * Generated bundle index. Do not edit.
23
+ */
24
+
25
+ export { HyCheckboxAppearanceDirective };
26
+ //# sourceMappingURL=checkbox.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.mjs","sources":["../../material/checkbox/checkbox-appearance.directive.ts","../../material/checkbox/checkbox.ts"],"sourcesContent":["\n/* eslint-disable @typescript-eslint/naming-convention */\nimport { Directive, input } from '@angular/core';\n\nexport type HyCheckboxAppearanceType = 'error';\n\n@Directive({\n selector: 'mat-checkbox[hyAppearance]',\n standalone: true,\n host: {\n '[attr.hyAppearance]': 'hyAppearance()'\n }\n})\nexport class HyCheckboxAppearanceDirective {\n public hyAppearance = input<HyCheckboxAppearanceType | null>(null);\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AACA;MAYa,6BAA6B,CAAA;AAC/B,IAAA,YAAY,GAAG,KAAK,CAAkC,IAAI,wDAAC;uGADzD,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,MAAA,EAAA,EAAA,YAAA,EAAA,EAAA,iBAAA,EAAA,cAAA,EAAA,UAAA,EAAA,cAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,mBAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAPzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACF,wBAAA,qBAAqB,EAAE;AAC1B;AACJ,iBAAA;;;ACZD;;AAEG;;;;"}
@@ -0,0 +1,16 @@
1
+ @use "@angular/material" as mat;
2
+
3
+ mat-checkbox[hyAppearance="error"] {
4
+ @include mat.checkbox-overrides(
5
+ (
6
+ label-text-color: var(--hy-color-error),
7
+ selected-checkmark-color: var(--hy-color-on-error),
8
+ selected-focus-icon-color: var(--hy-color-error),
9
+ selected-hover-icon-color: var(--hy-color-error),
10
+ selected-icon-color: var(--hy-color-error),
11
+ unselected-icon-color: var(--hy-color-error),
12
+ unselected-focus-icon-color: var(--hy-color-error),
13
+ unselected-hover-icon-color: var(--hy-color-error),
14
+ )
15
+ );
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hug/hospitality",
3
- "version": "1.0.0-alpha.38",
3
+ "version": "1.0.0-alpha.39",
4
4
  "description": "Hospitality Design System",
5
5
  "homepage": "https://github.com/dsi-hug/hospitality",
6
6
  "license": "GPL-3.0-only",
@@ -33,6 +33,11 @@
33
33
  "types": "./types/buttons.d.ts",
34
34
  "default": "./fesm2022/buttons.mjs"
35
35
  },
36
+ "./material/checkbox": {
37
+ "sass": "./material/checkbox/checkbox.scss",
38
+ "types": "./types/checkbox.d.ts",
39
+ "default": "./fesm2022/checkbox.mjs"
40
+ },
36
41
  "./material/dialog": {
37
42
  "sass": "./material/dialog/dialog.scss"
38
43
  },
@@ -0,0 +1,9 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class HyCheckboxAppearanceDirective {
4
+ hyAppearance: i0.InputSignal<"error" | null>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<HyCheckboxAppearanceDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HyCheckboxAppearanceDirective, "mat-checkbox[hyAppearance]", never, { "hyAppearance": { "alias": "hyAppearance"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
7
+ }
8
+
9
+ export { HyCheckboxAppearanceDirective };