@hug/hospitality 1.0.0-alpha.7 → 1.0.0-alpha.9
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/buttons.mjs +68 -0
- package/fesm2022/buttons.mjs.map +1 -0
- package/material/actions-group/actions-group.scss +1 -2
- package/material/app-bar/app-bar.scss +1 -0
- package/material/column-bar/column-bar.scss +12 -0
- package/material/filters-group/filters-group.scss +25 -0
- package/material/panel-bar/panel-bar.scss +10 -0
- package/material/theme/theme.scss +135 -15
- package/package.json +4 -2
- package/types/buttons.d.ts +25 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, Directive } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
5
|
+
class HyButtonAppearanceDirective {
|
|
6
|
+
hyAppearance = input(null, ...(ngDevMode ? [{ debugName: "hyAppearance" }] : []));
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyButtonAppearanceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: HyButtonAppearanceDirective, isStandalone: true, selector: "button[matButton]:not([matButton=\"outlined\"]):not([matButton=\"tonal\"]):not([matButton=\"elevated\"])", 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: HyButtonAppearanceDirective, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: 'button[matButton]:not([matButton="outlined"]):not([matButton="tonal"]):not([matButton="elevated"])',
|
|
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
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
22
|
+
class HyButtonSizeDirective {
|
|
23
|
+
hySize = input(null, ...(ngDevMode ? [{ debugName: "hySize" }] : []));
|
|
24
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyButtonSizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
25
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: HyButtonSizeDirective, isStandalone: true, selector: "button[hySize]", inputs: { hySize: { classPropertyName: "hySize", publicName: "hySize", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.hySize": "hySize()" } }, ngImport: i0 });
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyButtonSizeDirective, decorators: [{
|
|
28
|
+
type: Directive,
|
|
29
|
+
args: [{
|
|
30
|
+
selector: 'button[hySize]',
|
|
31
|
+
standalone: true,
|
|
32
|
+
host: {
|
|
33
|
+
'[attr.hySize]': 'hySize()'
|
|
34
|
+
}
|
|
35
|
+
}]
|
|
36
|
+
}], propDecorators: { hySize: [{ type: i0.Input, args: [{ isSignal: true, alias: "hySize", required: false }] }] } });
|
|
37
|
+
|
|
38
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
39
|
+
class HyIconButtonAppearanceDirective {
|
|
40
|
+
hyAppearance = input(null, ...(ngDevMode ? [{ debugName: "hyAppearance" }] : []));
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyIconButtonAppearanceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
42
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: HyIconButtonAppearanceDirective, isStandalone: true, selector: "\n button[matIconButton][hyAppearance]\n ", inputs: { hyAppearance: { classPropertyName: "hyAppearance", publicName: "hyAppearance", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.hyAppearance": "hyAppearance()" } }, ngImport: i0 });
|
|
43
|
+
}
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HyIconButtonAppearanceDirective, decorators: [{
|
|
45
|
+
type: Directive,
|
|
46
|
+
args: [{
|
|
47
|
+
selector: `
|
|
48
|
+
button[matIconButton][hyAppearance]
|
|
49
|
+
`,
|
|
50
|
+
standalone: true,
|
|
51
|
+
host: {
|
|
52
|
+
'[attr.hyAppearance]': 'hyAppearance()'
|
|
53
|
+
}
|
|
54
|
+
}]
|
|
55
|
+
}], propDecorators: { hyAppearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "hyAppearance", required: false }] }] } });
|
|
56
|
+
|
|
57
|
+
const BUTTON_DIRECTIVES = [
|
|
58
|
+
HyButtonSizeDirective,
|
|
59
|
+
HyButtonAppearanceDirective,
|
|
60
|
+
HyIconButtonAppearanceDirective
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Generated bundle index. Do not edit.
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
export { BUTTON_DIRECTIVES, HyButtonAppearanceDirective, HyButtonSizeDirective, HyIconButtonAppearanceDirective };
|
|
68
|
+
//# sourceMappingURL=buttons.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttons.mjs","sources":["../../material/button/directives/button-appearance.directive.ts","../../material/button/directives/button-size.directive.ts","../../material/button/directives/icon-button-appearance.directive.ts","../../material/button/directives/button-styling.directives.ts","../../material/button/buttons.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/naming-convention */\nimport { Directive, input } from '@angular/core';\n\nexport type HyAppearanceType = 'warning';\n\n@Directive({\n selector: 'button[matButton]:not([matButton=\"outlined\"]):not([matButton=\"tonal\"]):not([matButton=\"elevated\"])',\n standalone: true,\n host: {\n '[attr.hyAppearance]': 'hyAppearance()'\n }\n})\nexport class HyButtonAppearanceDirective {\n public hyAppearance = input<HyAppearanceType | null>(null);\n}\n","/* eslint-disable @typescript-eslint/naming-convention */\nimport { Directive, input } from '@angular/core';\n\nexport type HySizeType = 'small' | 'medium' | 'x-large';\n\n@Directive({\n selector: 'button[hySize]',\n standalone: true,\n host: {\n '[attr.hySize]': 'hySize()'\n }\n})\nexport class HyButtonSizeDirective {\n public hySize = input<HySizeType | null>(null);\n}\n","/* eslint-disable @typescript-eslint/naming-convention */\nimport { Directive, input } from '@angular/core';\n\nexport type HyAppearanceIconType = 'warning' | 'warning-filled' | 'tonal' | 'filled';\n\n@Directive({\n selector: `\n button[matIconButton][hyAppearance]\n `,\n standalone: true,\n host: {\n '[attr.hyAppearance]': 'hyAppearance()'\n }\n})\nexport class HyIconButtonAppearanceDirective {\n public hyAppearance = input<HyAppearanceIconType | null>(null);\n}\n","import { HyButtonAppearanceDirective } from './button-appearance.directive';\nimport { HyButtonSizeDirective } from './button-size.directive';\nimport { HyIconButtonAppearanceDirective } from './icon-button-appearance.directive';\n\nexport const BUTTON_DIRECTIVES = [\n HyButtonSizeDirective,\n HyButtonAppearanceDirective,\n HyIconButtonAppearanceDirective\n] as const;\n\nexport {\n HyButtonAppearanceDirective, HyButtonSizeDirective, HyIconButtonAppearanceDirective\n};\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;MAYa,2BAA2B,CAAA;AAC7B,IAAA,YAAY,GAAG,KAAK,CAA0B,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actions-group-padding: var(--hy-spacing-x-small);
|
|
8
7
|
--ngx-actions-group-radius: var(--hy-radius-x-large);
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -3,6 +3,7 @@ ngx-app-bar {
|
|
|
3
3
|
--ngx-app-bar-gap: var(--hy-spacing-x-small);
|
|
4
4
|
--ngx-app-bar-condensed-gap: var(--hy-spacing-small);
|
|
5
5
|
--ngx-app-bar-actions-gap: var(--hy-spacing-small);
|
|
6
|
+
--ngx-app-bar-with-subtitle-padding-block: var(--hy-spacing-x-small);
|
|
6
7
|
|
|
7
8
|
--ngx-app-bar-title-font: var(--hy-typo-headline-medium-emphasized);
|
|
8
9
|
--ngx-app-bar-title-letter-spacing: var(
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
ngx-column-bar {
|
|
2
|
+
--ngx-column-bar-padding: var(--hy-spacing-x-small) var(--hy-spacing-small);
|
|
3
|
+
--ngx-column-bar-title-first-child-padding-inline-start: var(
|
|
4
|
+
--hy-spacing-x-small
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
--ngx-column-bar-gap: var(--hy-spacing-medium);
|
|
8
|
+
--ngx-column-bar-elements-gap: var(--hy-spacing-medium);
|
|
9
|
+
|
|
10
|
+
--ngx-column-bar-actions-group-min-inline-size: 3rem;
|
|
11
|
+
--ngx-column-bar-title-min-width: 6ch;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
ngx-filters-group {
|
|
2
|
+
--ngx-filters-group-selected-label-max-width: 27ch;
|
|
3
|
+
--ngx-filters-group-title-overlay-max-width: 27ch;
|
|
4
|
+
|
|
5
|
+
--ngx-filters-group-gap: var(--hy-spacing-small);
|
|
6
|
+
--ngx-filters-group-static-gap: var(--hy-spacing-small);
|
|
7
|
+
--ngx-filters-group-overlay-content-gap: var(--hy-spacing-small);
|
|
8
|
+
--ngx-filters-group-overlay-content-filter-gap: var(--hy-spacing-small);
|
|
9
|
+
|
|
10
|
+
--ngx-filters-group-block-size: 3rem;
|
|
11
|
+
--ngx-filters-group-border-radius: var(--hy-border-radius-x-large);
|
|
12
|
+
--ngx-filters-group-first-chip-option-shape-radius: var(
|
|
13
|
+
--hy-border-radius-medium
|
|
14
|
+
)
|
|
15
|
+
var(--hy-border-radius-small) var(--hy-border-radius-small)
|
|
16
|
+
var(--hy-border-radius-medium);
|
|
17
|
+
--ngx-filters-group-overlay-border-radius: var(--hy-border-radius-small);
|
|
18
|
+
--ngx-filters-group-first-chip-shape-radius: var(--hy-border-radius-small);
|
|
19
|
+
|
|
20
|
+
--ngx-filters-group-overlay-filter-padding: var(--hy-spacing-medium);
|
|
21
|
+
--ngx-filters-group-padding-inline: var(--hy-spacing-small);
|
|
22
|
+
--ngx-filters-group-overlay-title-padding-inline: var(--hy-spacing-medium);
|
|
23
|
+
--ngx-filters-group-folded-padding-inline: var(--hy-spacing-x-small);
|
|
24
|
+
--ngx-filters-group-overlay-title-padding-block: var(--hy-spacing-medium);
|
|
25
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
ngx-panel-bar {
|
|
2
|
+
--ngx-panel-bar-min-height: 3rem;
|
|
3
|
+
--ngx-panel-bar-actions-group-min-inline-size: 3rem;
|
|
4
|
+
--ngx-panel-bar-title-min-width: 6ch;
|
|
5
|
+
|
|
6
|
+
--ngx-panel-bar-padding: var(--hy-spacing-x-small) var(--hy-spacing-small);
|
|
7
|
+
--ngx-panel-bar-gap: var(--hy-spacing-medium-small);
|
|
8
|
+
--ngx-panel-bar-title-first-child-padding-start: var(--hy-spacing-x-small);
|
|
9
|
+
--ngx-panel-bar-elements-gap: var(--hy-spacing-medium-small);
|
|
10
|
+
}
|
|
@@ -2,58 +2,178 @@
|
|
|
2
2
|
@use "./utils" as map;
|
|
3
3
|
|
|
4
4
|
$override-colors: (
|
|
5
|
+
//Primary
|
|
5
6
|
primary: var(--hy-color-primary),
|
|
6
7
|
on-primary: var(--hy-color-on-primary),
|
|
7
8
|
primary-container: var(--hy-color-primary-container),
|
|
8
9
|
on-primary-container: var(--hy-color-on-primary-container),
|
|
9
10
|
primary-fixed: var(--hy-color-primary-fixed),
|
|
10
|
-
primary-fixed-dim: var(--hy-color-primary-fixed-dim),
|
|
11
11
|
on-primary-fixed: var(--hy-color-primary-fixed),
|
|
12
12
|
on-primary-fixed-variant: var(--hy-color-on-primary-fixed-variant),
|
|
13
|
+
primary-fixed-dim: var(--hy-color-primary-fixed-dim),
|
|
14
|
+
inverse-primary: var(--hy-color-inverse-primary),
|
|
15
|
+
//Secondary
|
|
13
16
|
secondary: var(--hy-color-secondary),
|
|
14
17
|
on-secondary: var(--hy-color-on-secondary),
|
|
15
18
|
secondary-container: var(--hy-color-secondary-container),
|
|
16
19
|
on-secondary-container: var(--hy-color-on-secondary-container),
|
|
17
20
|
secondary-fixed: var(--hy-color-secondary-fixed),
|
|
18
|
-
secondary-fixed-dim: var(--hy-color-secondary-fixed-dim),
|
|
19
21
|
on-secondary-fixed: var(--hy-color-secondary-fixed),
|
|
20
22
|
on-secondary-fixed-variant: var(--hy-color-on-secondary-fixed-variant),
|
|
23
|
+
secondary-fixed-dim: var(--hy-color-secondary-fixed-dim),
|
|
24
|
+
//Tertiary
|
|
21
25
|
tertiary: var(--hy-color-tertiary),
|
|
22
26
|
on-tertiary: var(--hy-color-on-tertiary),
|
|
23
27
|
tertiary-container: var(--hy-color-tertiary-container),
|
|
24
28
|
on-tertiary-container: var(--hy-color-on-tertiary-container),
|
|
25
29
|
tertiary-fixed: var(--hy-color-tertiary-fixed),
|
|
26
|
-
tertiary-fixed-dim: var(--hy-color-tertiary-fixed-dim),
|
|
27
30
|
on-tertiary-fixed: var(--hy-color-tertiary-fixed),
|
|
28
31
|
on-tertiary-fixed-variant: var(--hy-color-on-tertiary-fixed-variant),
|
|
32
|
+
tertiary-fixed-dim: var(--hy-color-tertiary-fixed-dim),
|
|
33
|
+
//Error
|
|
29
34
|
error: var(--hy-color-error),
|
|
30
35
|
on-error: var(--hy-color-on-error),
|
|
31
36
|
error-container: var(--hy-color-error-container),
|
|
32
37
|
on-error-container: var(--hy-color-on-error-container),
|
|
38
|
+
//Surface
|
|
33
39
|
surface: var(--hy-color-surface),
|
|
34
|
-
surface
|
|
40
|
+
on-surface: var(--hy-color-on-surface),
|
|
41
|
+
on-surface-variant: var(--hy-color-on-surface-variant),
|
|
35
42
|
surface-bright: var(--hy-color-surface-bright),
|
|
36
|
-
surface-container-lowest: var(--hy-color-surface-container-lowest),
|
|
37
|
-
surface-container-low: var(--hy-color-surface-container-low),
|
|
38
43
|
surface-container: var(--hy-color-surface-container),
|
|
39
44
|
surface-container-high: var(--hy-color-surface-container-high),
|
|
40
45
|
surface-container-highest: var(--hy-color-surface-container-highest),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
surface-container-low: var(--hy-color-surface-container-low),
|
|
47
|
+
surface-container-lowest: var(--hy-color-surface-container-lowest),
|
|
48
|
+
surface-dim: var(--hy-color-surface-dim),
|
|
49
|
+
surface-tint: var(--hy-color-surface-tint),
|
|
50
|
+
surface-variant: var(--hy-color-surface-variant),
|
|
45
51
|
inverse-surface: var(--hy-color-inverse-surface),
|
|
46
52
|
inverse-on-surface: var(--hy-color-inverse-on-surface),
|
|
47
|
-
|
|
53
|
+
//Miscellaneous
|
|
48
54
|
background: var(--hy-color-background),
|
|
49
55
|
on-background: var(--hy-color-on-background),
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
neutral-variant20: var(--hy-color-ref-neutral-variant-20),
|
|
57
|
+
neutral10: var(--hy-color-ref-neutral-10),
|
|
58
|
+
outline: var(--hy-color-outline),
|
|
59
|
+
outline-variant: var(--hy-color-outline-variant),
|
|
52
60
|
scrim: var(--hy-color-scrim),
|
|
53
|
-
shadow: var(--hy-color-shadow)
|
|
61
|
+
shadow: var(--hy-color-shadow)
|
|
54
62
|
);
|
|
55
63
|
|
|
56
|
-
$override-typography: (
|
|
64
|
+
$override-typography: (
|
|
65
|
+
//Body Large
|
|
66
|
+
body-large: var(--hy-typo-body-large),
|
|
67
|
+
body-large-font: var(--hy-typo-ref-body-large-font),
|
|
68
|
+
body-large-line-height: var(--hy-typo-ref-body-large-line-height),
|
|
69
|
+
body-large-size: var(--hy-typo-ref-body-large-size),
|
|
70
|
+
body-large-tracking: var(--hy-typo-ref-body-large-tracking),
|
|
71
|
+
body-large-weight: var(--hy-typo-ref-body-large-weight),
|
|
72
|
+
//Body Medium
|
|
73
|
+
body-medium: var(--hy-typo-body-medium),
|
|
74
|
+
body-medium-font: var(--hy-typo-ref-body-medium-font),
|
|
75
|
+
body-medium-line-height: var(--hy-typo-ref-body-medium-line-height),
|
|
76
|
+
body-medium-size: var(--hy-typo-ref-body-medium-size),
|
|
77
|
+
body-medium-tracking: var(--hy-typo-ref-body-medium-tracking),
|
|
78
|
+
body-medium-weight: var(--hy-typo-ref-body-medium-weight),
|
|
79
|
+
//Body Small
|
|
80
|
+
body-small: var(--hy-typo-body-small),
|
|
81
|
+
body-small-font: var(--hy-typo-ref-body-small-font),
|
|
82
|
+
body-small-line-height: var(--hy-typo-ref-body-small-line-height),
|
|
83
|
+
body-small-size: var(--hy-typo-ref-body-small-size),
|
|
84
|
+
body-small-tracking: var(--hy-typo-ref-body-small-tracking),
|
|
85
|
+
body-small-weight: var(--hy-typo-ref-body-small-weight),
|
|
86
|
+
//Display Large
|
|
87
|
+
display-large: var(--hy-typo-display-large),
|
|
88
|
+
display-large-font: var(--hy-typo-ref-display-large-font),
|
|
89
|
+
display-large-line-height: var(--hy-typo-ref-display-large-line-height),
|
|
90
|
+
display-large-size: var(--hy-typo-ref-display-large-size),
|
|
91
|
+
display-large-tracking: var(--hy-typo-ref-display-large-tracking),
|
|
92
|
+
display-large-weight: var(--hy-typo-ref-display-large-weight),
|
|
93
|
+
//Display Medium
|
|
94
|
+
display-medium: var(--hy-typo-display-medium),
|
|
95
|
+
display-medium-font: var(--hy-typo-ref-display-medium-font),
|
|
96
|
+
display-medium-line-height: var(--hy-typo-ref-display-medium-line-height),
|
|
97
|
+
display-medium-size: var(--hy-typo-ref-display-medium-size),
|
|
98
|
+
display-medium-tracking: var(--hy-typo-ref-display-medium-tracking),
|
|
99
|
+
display-medium-weight: var(--hy-typo-ref-display-medium-weight),
|
|
100
|
+
//Display Small
|
|
101
|
+
display-small: var(--hy-typo-display-small),
|
|
102
|
+
display-small-font: var(--hy-typo-ref-display-small-font),
|
|
103
|
+
display-small-line-height: var(--hy-typo-ref-display-small-line-height),
|
|
104
|
+
display-small-size: var(--hy-typo-ref-display-small-size),
|
|
105
|
+
display-small-tracking: var(--hy-typo-ref-display-small-tracking),
|
|
106
|
+
display-small-weight: var(--hy-typo-ref-display-small-weight),
|
|
107
|
+
//Headline Large
|
|
108
|
+
headline-large: var(--hy-typo-headline-large),
|
|
109
|
+
headline-large-font: var(--hy-typo-ref-headline-large-font),
|
|
110
|
+
headline-large-line-height: var(--hy-typo-ref-headline-large-line-height),
|
|
111
|
+
headline-large-size: var(--hy-typo-ref-headline-large-size),
|
|
112
|
+
headline-large-tracking: var(--hy-typo-ref-headline-large-tracking),
|
|
113
|
+
headline-large-weight: var(--hy-typo-ref-headline-large-weight),
|
|
114
|
+
//Headline Medium
|
|
115
|
+
headline-medium: var(--hy-typo-headline-medium),
|
|
116
|
+
headline-medium-font: var(--hy-typo-ref-headline-medium-font),
|
|
117
|
+
headline-medium-line-height: var(--hy-typo-ref-headline-medium-line-height),
|
|
118
|
+
headline-medium-size: var(--hy-typo-ref-headline-medium-size),
|
|
119
|
+
headline-medium-tracking: var(--hy-typo-ref-headline-medium-tracking),
|
|
120
|
+
headline-medium-weight: var(--hy-typo-ref-headline-medium-weight),
|
|
121
|
+
//Headline Small
|
|
122
|
+
headline-small: var(--hy-typo-headline-small),
|
|
123
|
+
headline-small-font: var(--hy-typo-ref-headline-small-font),
|
|
124
|
+
headline-small-line-height: var(--hy-typo-ref-headline-small-line-height),
|
|
125
|
+
headline-small-size: var(--hy-typo-ref-headline-small-size),
|
|
126
|
+
headline-small-tracking: var(--hy-typo-ref-headline-small-tracking),
|
|
127
|
+
headline-small-weight: var(--hy-typo-ref-headline-small-weight),
|
|
128
|
+
//Label Large
|
|
129
|
+
label-large: var(--hy-typo-label-large),
|
|
130
|
+
label-large-font: var(--hy-typo-ref-label-large-font),
|
|
131
|
+
label-large-line-height: var(--hy-typo-ref-label-large-line-height),
|
|
132
|
+
label-large-size: var(--hy-typo-ref-label-large-size),
|
|
133
|
+
label-large-tracking: var(--hy-typo-ref-label-large-tracking),
|
|
134
|
+
label-large-weight: var(--hy-typo-ref-label-large-weight),
|
|
135
|
+
label-large-weight-prominent: var(
|
|
136
|
+
--hy-typo-ref-label-large-weight-emphasized
|
|
137
|
+
),
|
|
138
|
+
//Label Medium
|
|
139
|
+
label-medium: var(--hy-typo-label-medium),
|
|
140
|
+
label-medium-font: var(--hy-typo-ref-label-medium-font),
|
|
141
|
+
label-medium-line-height: var(--hy-typo-ref-label-medium-line-height),
|
|
142
|
+
label-medium-size: var(--hy-typo-ref-label-medium-size),
|
|
143
|
+
label-medium-tracking: var(--hy-typo-ref-label-medium-tracking),
|
|
144
|
+
label-medium-weight: var(--hy-typo-ref-label-medium-weight),
|
|
145
|
+
label-medium-weight-prominent: var(
|
|
146
|
+
--hy-typo-ref-label-medium-weight-emphasized
|
|
147
|
+
),
|
|
148
|
+
//Label Small
|
|
149
|
+
label-small: var(--hy-typo-label-small),
|
|
150
|
+
label-small-font: var(--hy-typo-ref-label-small-font),
|
|
151
|
+
label-small-line-height: var(--hy-typo-ref-label-small-line-height),
|
|
152
|
+
label-small-size: var(--hy-typo-ref-label-small-size),
|
|
153
|
+
label-small-tracking: var(--hy-typo-ref-label-small-tracking),
|
|
154
|
+
label-small-weight: var(--hy-typo-ref-label-small-weight),
|
|
155
|
+
//Title Large
|
|
156
|
+
title-large: var(--hy-typo-title-large),
|
|
157
|
+
title-large-font: var(--hy-typo-ref-title-large-font),
|
|
158
|
+
title-large-line-height: var(--hy-typo-ref-title-large-line-height),
|
|
159
|
+
title-large-size: var(--hy-typo-ref-title-large-size),
|
|
160
|
+
title-large-tracking: var(--hy-typo-ref-title-large-tracking),
|
|
161
|
+
title-large-weight: var(--hy-typo-ref-title-large-weight),
|
|
162
|
+
//Title Medium
|
|
163
|
+
title-medium: var(--hy-typo-title-medium),
|
|
164
|
+
title-medium-font: var(--hy-typo-ref-title-medium-font),
|
|
165
|
+
title-medium-line-height: var(--hy-typo-ref-title-medium-line-height),
|
|
166
|
+
title-medium-size: var(--hy-typo-ref-title-medium-size),
|
|
167
|
+
title-medium-tracking: var(--hy-typo-ref-title-medium-tracking),
|
|
168
|
+
title-medium-weight: var(--hy-typo-ref-title-medium-weight),
|
|
169
|
+
//Title Small
|
|
170
|
+
title-small: var(--hy-typo-title-small),
|
|
171
|
+
title-small-font: var(--hy-typo-ref-title-small-font),
|
|
172
|
+
title-small-line-height: var(--hy-typo-ref-title-small-line-height),
|
|
173
|
+
title-small-size: var(--hy-typo-ref-title-small-size),
|
|
174
|
+
title-small-tracking: var(--hy-typo-ref-title-small-tracking),
|
|
175
|
+
title-small-weight: var(--hy-typo-ref-title-small-weight)
|
|
176
|
+
);
|
|
57
177
|
|
|
58
178
|
$override-density: ();
|
|
59
179
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hug/hospitality",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.9",
|
|
4
4
|
"description": "Hospitality Design System",
|
|
5
5
|
"homepage": "https://github.com/dsi-hug/hospitality",
|
|
6
6
|
"license": "GPL-3.0-only",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"sass": "./material/app-bar/app-bar.scss"
|
|
28
28
|
},
|
|
29
29
|
"./material/button": {
|
|
30
|
-
"sass": "./material/button/button.scss"
|
|
30
|
+
"sass": "./material/button/button.scss",
|
|
31
|
+
"types": "./types/buttons.d.ts",
|
|
32
|
+
"default": "./fesm2022/buttons.mjs"
|
|
31
33
|
},
|
|
32
34
|
"./material/dialog": {
|
|
33
35
|
"sass": "./material/dialog/dialog.scss"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class HyButtonAppearanceDirective {
|
|
4
|
+
hyAppearance: i0.InputSignal<"warning" | null>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HyButtonAppearanceDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HyButtonAppearanceDirective, "button[matButton]:not([matButton=\"outlined\"]):not([matButton=\"tonal\"]):not([matButton=\"elevated\"])", never, { "hyAppearance": { "alias": "hyAppearance"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type HySizeType = 'small' | 'medium' | 'x-large';
|
|
10
|
+
declare class HyButtonSizeDirective {
|
|
11
|
+
hySize: i0.InputSignal<HySizeType | null>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HyButtonSizeDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HyButtonSizeDirective, "button[hySize]", never, { "hySize": { "alias": "hySize"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type HyAppearanceIconType = 'warning' | 'warning-filled' | 'tonal' | 'filled';
|
|
17
|
+
declare class HyIconButtonAppearanceDirective {
|
|
18
|
+
hyAppearance: i0.InputSignal<HyAppearanceIconType | null>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HyIconButtonAppearanceDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HyIconButtonAppearanceDirective, " button[matIconButton][hyAppearance] ", never, { "hyAppearance": { "alias": "hyAppearance"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare const BUTTON_DIRECTIVES: readonly [typeof HyButtonSizeDirective, typeof HyButtonAppearanceDirective, typeof HyIconButtonAppearanceDirective];
|
|
24
|
+
|
|
25
|
+
export { BUTTON_DIRECTIVES, HyButtonAppearanceDirective, HyButtonSizeDirective, HyIconButtonAppearanceDirective };
|