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

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.
@@ -87,6 +87,9 @@ mat-form-field {
87
87
  .mat-mdc-form-field-icon-suffix,
88
88
  .mat-mdc-form-field-icon-prefix {
89
89
  width: 3rem;
90
+ display: flex;
91
+ justify-content: center;
92
+
90
93
  button {
91
94
  margin: 0 var(--hy-spacing-x-small);
92
95
  }
@@ -6,9 +6,9 @@
6
6
  ::-webkit-scrollbar-thumb {
7
7
  transition: 0.3s ease-in-out;
8
8
  border-radius: 6px;
9
- background-color: var(--mat-sys-outline-variant);
9
+ background-color: var(--hy-color-outline-variant);
10
10
 
11
11
  &:hover {
12
- background-color: var(--mat-sys-outline);
12
+ background-color: var(--hy-color-outline);
13
13
  }
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hug/hospitality",
3
- "version": "1.0.0-alpha.39",
3
+ "version": "1.0.0-alpha.41",
4
4
  "description": "Hospitality Design System",
5
5
  "homepage": "https://github.com/dsi-hug/hospitality",
6
6
  "license": "GPL-3.0-only",
@@ -23,11 +23,6 @@
23
23
  "./material/app-bar": {
24
24
  "sass": "./material/app-bar/app-bar.scss"
25
25
  },
26
- "./material/badge": {
27
- "sass": "./material/badge/badge.scss",
28
- "types": "./types/badge.d.ts",
29
- "default": "./fesm2022/badge.mjs"
30
- },
31
26
  "./material/button": {
32
27
  "sass": "./material/button/button.scss",
33
28
  "types": "./types/buttons.d.ts",
@@ -1,26 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, Directive } from '@angular/core';
3
-
4
- /* eslint-disable @typescript-eslint/naming-convention */
5
- class HyBadgeAppearanceDirective {
6
- hyBadgeAppearance = input(null, ...(ngDevMode ? [{ debugName: "hyBadgeAppearance" }] : []));
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyBadgeAppearanceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: HyBadgeAppearanceDirective, isStandalone: true, selector: "[matBadge][hyBadgeAppearance]", inputs: { hyBadgeAppearance: { classPropertyName: "hyBadgeAppearance", publicName: "hyBadgeAppearance", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.hyBadgeAppearance": "hyBadgeAppearance()" } }, ngImport: i0 });
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyBadgeAppearanceDirective, decorators: [{
11
- type: Directive,
12
- args: [{
13
- selector: '[matBadge][hyBadgeAppearance]',
14
- standalone: true,
15
- host: {
16
- '[attr.hyBadgeAppearance]': 'hyBadgeAppearance()'
17
- }
18
- }]
19
- }], propDecorators: { hyBadgeAppearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "hyBadgeAppearance", required: false }] }] } });
20
-
21
- /**
22
- * Generated bundle index. Do not edit.
23
- */
24
-
25
- export { HyBadgeAppearanceDirective };
26
- //# sourceMappingURL=badge.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"badge.mjs","sources":["../../material/badge/badge-appearance.directive.ts","../../material/badge/badge.ts"],"sourcesContent":["\n/* eslint-disable @typescript-eslint/naming-convention */\nimport { Directive, input } from '@angular/core';\n\nexport type HyBadgeAppearanceType = 'warning' | 'error';\n\n@Directive({\n selector: '[matBadge][hyBadgeAppearance]',\n standalone: true,\n host: {\n '[attr.hyBadgeAppearance]': 'hyBadgeAppearance()'\n }\n})\nexport class HyBadgeAppearanceDirective {\n public hyBadgeAppearance = input<HyBadgeAppearanceType | null>(null);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AACA;MAYa,0BAA0B,CAAA;AAC5B,IAAA,iBAAiB,GAAG,KAAK,CAA+B,IAAI,6DAAC;uGAD3D,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,EAAA,iBAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,wBAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAPtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,+BAA+B;AACzC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACF,wBAAA,0BAA0B,EAAE;AAC/B;AACJ,iBAAA;;;ACZD;;AAEG;;;;"}
@@ -1,43 +0,0 @@
1
- @use "@angular/material" as mat;
2
-
3
- .mat-badge {
4
- @include mat.badge-overrides(
5
- (
6
- background-color: var(--mat-sys-tertiary),
7
- text-color: var(--mat-sys-on-tertiary),
8
- disabled-state-background-color: color-mix(
9
- in srgb,
10
- var(--mat-sys-tertiary) var(--hy-state-layer-highest),
11
- transparent
12
- ),
13
- )
14
- );
15
-
16
- &[hyBadgeAppearance="warning"] {
17
- @include mat.badge-overrides(
18
- (
19
- background-color: var(--hy-color-warning),
20
- text-color: var(--hy-color-on-warning),
21
- disabled-state-background-color: color-mix(
22
- in srgb,
23
- var(--hy-color-warning) var(--hy-state-layer-highest),
24
- transparent
25
- ),
26
- )
27
- );
28
- }
29
-
30
- &[hyBadgeAppearance="error"] {
31
- @include mat.badge-overrides(
32
- (
33
- background-color: var(--mat-sys-error),
34
- text-color: var(--mat-sys-on-error),
35
- disabled-state-background-color: color-mix(
36
- in srgb,
37
- var(--mat-sys-error) var(--hy-state-layer-highest),
38
- transparent
39
- ),
40
- )
41
- );
42
- }
43
- }
package/types/badge.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import * as i0 from '@angular/core';
2
-
3
- type HyBadgeAppearanceType = 'warning' | 'error';
4
- declare class HyBadgeAppearanceDirective {
5
- hyBadgeAppearance: i0.InputSignal<HyBadgeAppearanceType | null>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<HyBadgeAppearanceDirective, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<HyBadgeAppearanceDirective, "[matBadge][hyBadgeAppearance]", never, { "hyBadgeAppearance": { "alias": "hyBadgeAppearance"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
8
- }
9
-
10
- export { HyBadgeAppearanceDirective };