@tylertech/forge 3.0.0-next.17 → 3.0.0-next.18

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.
Files changed (46) hide show
  1. package/custom-elements.json +149 -126
  2. package/dist/esm/banner/index.js +1 -1
  3. package/dist/esm/calendar/index.js +1 -1
  4. package/dist/esm/chunks/{chunk.6JR2HMWB.js → chunk.3QUIEBYX.js} +2 -2
  5. package/dist/esm/chunks/chunk.4MEXAG3E.js +7 -0
  6. package/dist/esm/chunks/chunk.4MEXAG3E.js.map +7 -0
  7. package/dist/esm/chunks/{chunk.O47OSK6Z.js → chunk.A6N7ZGN5.js} +2 -2
  8. package/dist/esm/chunks/{chunk.O47OSK6Z.js.map → chunk.A6N7ZGN5.js.map} +1 -1
  9. package/dist/esm/chunks/{chunk.XPIAOMSC.js → chunk.BRLXEKLE.js} +2 -2
  10. package/dist/esm/chunks/{chunk.MMMG4MZ3.js → chunk.IQ3JWZ2P.js} +2 -2
  11. package/dist/esm/chunks/{chunk.NHYJMP25.js → chunk.KOGQOU27.js} +2 -2
  12. package/dist/esm/chunks/{chunk.YVCGGQQG.js → chunk.NES5KNAU.js} +2 -2
  13. package/dist/esm/date-picker/index.js +1 -1
  14. package/dist/esm/date-range-picker/index.js +1 -1
  15. package/dist/esm/index.js +1 -1
  16. package/dist/esm/split-view/index.js +1 -1
  17. package/dist/esm/split-view/split-view/index.js +1 -1
  18. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  19. package/dist/forge-dark.css +1 -1
  20. package/esm/banner/banner-adapter.d.ts +14 -18
  21. package/esm/banner/banner-adapter.js +17 -25
  22. package/esm/banner/banner-constants.d.ts +17 -16
  23. package/esm/banner/banner-constants.js +16 -21
  24. package/esm/banner/banner-foundation.d.ts +15 -14
  25. package/esm/banner/banner-foundation.js +49 -44
  26. package/esm/banner/banner.d.ts +33 -7
  27. package/esm/banner/banner.js +49 -18
  28. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  29. package/package.json +1 -1
  30. package/styles/banner/_core.scss +53 -0
  31. package/styles/banner/_token-utils.scss +30 -0
  32. package/styles/banner/banner.scss +109 -9
  33. package/styles/banner/index.scss +6 -0
  34. package/styles/core/styles/tokens/banner/_tokens.scss +25 -0
  35. package/styles/theme/_theme-dark.scss +0 -6
  36. package/dist/esm/chunks/chunk.DFRD7A2Y.js +0 -7
  37. package/dist/esm/chunks/chunk.DFRD7A2Y.js.map +0 -7
  38. package/styles/badge/_mixins.scss +0 -125
  39. package/styles/badge/_variables.scss +0 -87
  40. package/styles/banner/_mixins.scss +0 -219
  41. package/styles/banner/_variables.scss +0 -88
  42. /package/dist/esm/chunks/{chunk.6JR2HMWB.js.map → chunk.3QUIEBYX.js.map} +0 -0
  43. /package/dist/esm/chunks/{chunk.XPIAOMSC.js.map → chunk.BRLXEKLE.js.map} +0 -0
  44. /package/dist/esm/chunks/{chunk.MMMG4MZ3.js.map → chunk.IQ3JWZ2P.js.map} +0 -0
  45. /package/dist/esm/chunks/{chunk.NHYJMP25.js.map → chunk.KOGQOU27.js.map} +0 -0
  46. /package/dist/esm/chunks/{chunk.YVCGGQQG.js.map → chunk.NES5KNAU.js.map} +0 -0
@@ -1,125 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- @use 'sass:map';
7
- @use '@material/elevation/elevation-theme' as mdc-elevation-theme;
8
- @use '@material/typography/typography' as mdc-typography;
9
- @use './variables';
10
- @use '../theme';
11
-
12
- @mixin provide-theme($theme) {
13
- @include theme.theme-properties(badge, $theme, variables.$theme-values);
14
- }
15
-
16
- @mixin core-styles() {
17
- .forge-badge {
18
- @include base;
19
-
20
- &--elevated {
21
- @include elevated;
22
- }
23
-
24
- &--open {
25
- @include open;
26
- }
27
-
28
- &--dot {
29
- @include dot;
30
- }
31
- }
32
- }
33
-
34
- @mixin host() {
35
- --forge-icon-font-size: 14px;
36
-
37
- display: flex;
38
- box-sizing: border-box;
39
- }
40
-
41
- @mixin host-positioned() {
42
- position: absolute;
43
- top: 0;
44
- left: 100%;
45
- transform: translateX(-1.25rem);
46
- }
47
-
48
- @mixin base() {
49
- @include mdc-typography.typography(caption);
50
- @include theme.css-custom-property(height, --forge-badge-height, variables.$height);
51
- @include theme.css-custom-property(line-height, --forge-badge-line-height, variables.$line-height);
52
- @include theme.css-custom-property(min-width, --forge-badge-min-width, variables.$min-width);
53
- @include theme.css-custom-property(max-width, --forge-badge-max-width, variables.$max-width);
54
- @include theme.css-custom-property(border, --forge-badge-border, none);
55
-
56
- display: inline-flex;
57
- align-items: center;
58
- gap: 4px;
59
- transition: transform 200ms ease-in-out;
60
- transform: scale(0);
61
- overflow: hidden;
62
- white-space: nowrap;
63
- text-overflow: ellipsis;
64
- pointer-events: none;
65
- border-radius: 16px;
66
- padding: 0 8px;
67
- font-weight: 700;
68
- }
69
-
70
- @mixin theme-property($property, $theme, $theme-mod) {
71
- $combined-theme: $theme + '-' + $theme-mod + '-' + $property;
72
- $light-theme-value: map.get(variables.$theme-values, $combined-theme);
73
- $dark-theme-css-custom-property: --forge-badge-theme-#{$theme}-#{$theme-mod}-#{$property};
74
- @include theme.css-custom-property($property, $dark-theme-css-custom-property, $light-theme-value);
75
- }
76
-
77
- @mixin theme-base($theme, $theme-mod) {
78
- .forge-badge {
79
- @include theme-property('background', $theme, $theme-mod);
80
- @include theme-property('color', $theme, $theme-mod);
81
- }
82
- }
83
-
84
- @mixin default-theme() {
85
- :host(:not([theme])),
86
- :host([theme='']) {
87
- @include theme-base('default', 'muted');
88
- }
89
-
90
- :host(:not([theme])[strong]),
91
- :host([theme=''][strong]) {
92
- @include theme-base('default', 'strong');
93
- }
94
-
95
- @include theme('default');
96
- }
97
-
98
- @mixin theme($theme: 'danger') {
99
- :host([theme=#{$theme}]) {
100
- @include theme-base($theme, 'muted');
101
- }
102
-
103
- :host([theme=#{$theme}][strong]) {
104
- @include theme-base($theme, 'strong');
105
- }
106
- }
107
-
108
- @mixin static() {
109
- position: static;
110
- }
111
-
112
- @mixin elevated() {
113
- @include mdc-elevation-theme.elevation(1);
114
- }
115
-
116
- @mixin open() {
117
- transform: scale(1);
118
- }
119
-
120
- @mixin dot() {
121
- height: 0.5rem;
122
- width: 0.5rem;
123
- min-width: auto;
124
- padding: 0;
125
- }
@@ -1,87 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- @use '../theme/theme-values';
7
-
8
- $height: 1.25rem !default;
9
- $line-height: 1.25rem !default;
10
- $min-width: 0 !default;
11
- $max-width: auto !default;
12
-
13
- $theme-values: (
14
- // default theme
15
- default-muted-background: theme-values.$secondary,
16
- default-muted-color: rgba(0, 0, 0, 0.87),
17
- default-strong-background: theme-values.$tertiary,
18
- default-strong-color: theme-values.$on-tertiary,
19
-
20
- // success theme
21
- success-muted-background: #a5d6a7,
22
- success-muted-color: #1b5e20,
23
- success-strong-background: #2e7d32,
24
- success-strong-color: #ffffff,
25
-
26
- // warning theme
27
- warning-muted-background: #ffdba6,
28
- warning-muted-color: #a03a03,
29
- warning-strong-background: #d14900,
30
- warning-strong-color: #ffffff,
31
-
32
- // danger theme
33
- danger-muted-background: #ffcdd2,
34
- danger-muted-color: #a22d0e,
35
- danger-strong-background: #b00020,
36
- danger-strong-color: #ffffff,
37
-
38
- // info-primary theme
39
- info-primary-muted-background: #bbdefb,
40
- info-primary-strong-background: #1a237e,
41
- info-primary-muted-color: #1a237e,
42
- info-primary-strong-color: #ffffff,
43
-
44
- // info-secondary theme
45
- info-secondary-muted-background: #e0e0e0,
46
- info-secondary-muted-color: #000000,
47
- info-secondary-strong-background: #000000,
48
- info-secondary-strong-color: #ffffff
49
- ) !default;
50
-
51
- $theme-values-dark: (
52
- // default theme
53
- default-muted-background: theme-values.$secondary,
54
- default-strong-background: theme-values.$primary,
55
- default-muted-color: #000000,
56
- default-strong-color: rgba(255, 255, 255, 0.87),
57
-
58
- // success theme
59
- success-muted-background: #175a2a,
60
- success-strong-background: #007425,
61
- success-muted-color: #ffffff,
62
- success-strong-color: #ffffff,
63
-
64
- // warning theme
65
- warning-muted-background: #933600,
66
- warning-strong-background: #cc3900,
67
- warning-muted-color: #ffffff,
68
- warning-strong-color: #ffffff,
69
-
70
- // danger theme
71
- danger-muted-background: #810022,
72
- danger-strong-background: #ae0019,
73
- danger-muted-color: #ffffff,
74
- danger-strong-color: #ffffff,
75
-
76
- // info-primary theme
77
- info-primary-muted-background: #bbdefb,
78
- info-primary-muted-color: #1a237e,
79
- info-primary-strong-background: #1a237e,
80
- info-primary-strong-color: #ffffff,
81
-
82
- // info-secondary theme
83
- info-secondary-muted-background: #424242,
84
- info-secondary-strong-background: #5a5a5a,
85
- info-secondary-muted-color: #ffffff,
86
- info-secondary-strong-color: #ffffff
87
- ) !default;
@@ -1,219 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- @use 'sass:map';
7
- @use '../theme';
8
- @use './variables';
9
-
10
- @mixin provide-theme($theme) {
11
- @include theme.theme-properties(banner, $theme, variables.$theme-values);
12
- }
13
-
14
- @mixin width-above-breakpoint {
15
- @media (min-width: variables.$width-breakpoint) {
16
- @content;
17
- }
18
- }
19
-
20
- @mixin width-below-breakpoint {
21
- @media (max-width: variables.$width-breakpoint - 1) {
22
- @content;
23
- }
24
- }
25
-
26
- @mixin height-transition($new-height) {
27
- transition: variables.$transition;
28
- overflow: hidden;
29
- max-height: $new-height;
30
- }
31
-
32
- @mixin theme-property($property, $theme, $overriding-css-custom-property) {
33
- $light-theme-value: map.get(variables.$theme-values, $theme + '-' + $property);
34
- $dark-theme-css-custom-property: --forge-banner-theme-#{$theme}-#{$property};
35
-
36
- // map the properties for 'color' back to 'color'. The differentiation between icon and font is required for the theme handling above.
37
- $styleName: $property;
38
- @if $styleName == 'font-color' or $styleName == 'icon-color' {
39
- $styleName: color;
40
- }
41
-
42
- $primary-override: $overriding-css-custom-property;
43
- $secondary-override: $dark-theme-css-custom-property;
44
- $default: $light-theme-value;
45
-
46
- #{$styleName}: $default;
47
- #{$styleName}: var($primary-override, var($secondary-override, $default));
48
- }
49
-
50
- @mixin theme-base($theme) {
51
- .forge-banner {
52
- @include theme-property('background', $theme, --forge-banner-theme-background);
53
- @include theme-property('font-color', $theme, --forge-banner-theme-on-background);
54
-
55
- .forge-banner__container-wrapper-icon {
56
- @include theme-property('icon-color', $theme, --forge-banner-theme-icon);
57
- }
58
-
59
- .forge-banner__container-dismiss {
60
- @include theme-property('icon-color', $theme, --forge-banner-theme-icon);
61
- }
62
- }
63
- }
64
-
65
- @mixin default-theme() {
66
- :host(:not([theme])),
67
- :host([theme='']),
68
- :host([theme=default]) {
69
- @include theme-base('default');
70
- }
71
- }
72
-
73
- @mixin theme($theme) {
74
- :host([theme=#{$theme}]) {
75
- @include theme-base($theme);
76
- }
77
- }
78
-
79
- @mixin base {
80
- @include height-transition(variables.$max-height);
81
-
82
- max-height: variables.$max-height;
83
- }
84
-
85
- @mixin container-base {
86
- @include theme.property(border-bottom-color, border-color);
87
-
88
- display: flex;
89
- flex-direction: row;
90
- border-bottom-width: 1px;
91
- border-bottom-style: solid;
92
- min-height: 48px;
93
- }
94
-
95
- @mixin container-wrapper-base {
96
- flex: 1 1 auto;
97
- display: flex;
98
- flex-direction: row;
99
- }
100
-
101
- @mixin container-wrapper-icon-base {
102
- margin-right: 16px;
103
- }
104
-
105
- @mixin container-wrapper-subsection-base {
106
- display: flex;
107
- justify-content: center;
108
- }
109
-
110
- @mixin container-dismiss-base {
111
- &[hidden] {
112
- display: none;
113
- }
114
- }
115
-
116
- @mixin wide-styles {
117
- @include width-above-breakpoint {
118
- .forge-banner {
119
- @include base;
120
-
121
- &.forge-banner--dismissed {
122
- @include height-transition(0);
123
- }
124
-
125
- &__container {
126
- @include container-base;
127
-
128
- align-items: center;
129
- padding: 0 variables.$padding-right 0 variables.$padding-left;
130
-
131
- &-wrapper {
132
- @include container-wrapper-base;
133
-
134
- justify-content: center;
135
- align-items: center;
136
-
137
- &-icon {
138
- @include container-wrapper-icon-base;
139
- }
140
-
141
- &-subsection {
142
- @include container-wrapper-subsection-base;
143
-
144
- flex-direction: row;
145
- align-items: center;
146
-
147
- &-text {
148
- padding: variables.$padding-top 0 variables.$padding-bottom 0;
149
- margin-right: 24px;
150
- }
151
-
152
- &-action {
153
- ::slotted(forge-button) {
154
- margin-right: 16px;
155
- }
156
- }
157
- }
158
- }
159
-
160
- &-dismiss {
161
- @include container-dismiss-base;
162
- }
163
- }
164
- }
165
- }
166
- }
167
-
168
- @mixin narrow-styles {
169
- @include width-below-breakpoint {
170
- .forge-banner {
171
- @include base;
172
-
173
- &.forge-banner--dismissed {
174
- @include height-transition(0);
175
- }
176
-
177
- &__container {
178
- @include container-base;
179
-
180
- padding: variables.$padding-top-narrow
181
- variables.$padding-right-narrow
182
- variables.$padding-bottom-narrow
183
- variables.$padding-left-narrow;
184
-
185
- &-wrapper {
186
- @include container-wrapper-base;
187
-
188
- &-icon {
189
- @include container-wrapper-icon-base;
190
- }
191
-
192
- &-subsection {
193
- @include container-wrapper-subsection-base;
194
-
195
- flex-direction: column;
196
-
197
- &-action {
198
- ::slotted(forge-button) {
199
- margin-top: 12px;
200
- }
201
- }
202
- }
203
- }
204
-
205
- &-dismiss {
206
- @include container-dismiss-base;
207
-
208
- margin-top: -12px;
209
- margin-right: -12px;
210
- }
211
- }
212
- }
213
- }
214
- }
215
-
216
- @mixin core-styles() {
217
- @include wide-styles;
218
- @include narrow-styles;
219
- }
@@ -1,88 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- @use '@material/theme/color-palette' as mdc-color-palette;
7
- @use '../theme/theme-values';
8
-
9
- // There must be an explicit max height in order for the animation to function.
10
- // 600px _should_ be more than plenty.
11
- $max-height: 600px !default;
12
-
13
- $padding-top: 14px !default;
14
- $padding-bottom: $padding-top !default;
15
- $padding-right: 24px !default;
16
- $padding-left: $padding-right !default;
17
-
18
- $padding-top-narrow: 16px !default;
19
- $padding-bottom-narrow: $padding-top-narrow !default;
20
- $padding-right-narrow: 12px !default;
21
- $padding-left-narrow: $padding-right-narrow !default;
22
-
23
- $width-breakpoint: 600px !default;
24
- $transition: max-height 300ms ease-in-out !default;
25
-
26
- $theme-values: (
27
- // default theme
28
- default-background: mdc-color-palette.$indigo-50,
29
- default-font-color: theme-values.$text-primary-color,
30
- default-icon-color: theme-values.$text-secondary-color,
31
-
32
- // success theme
33
- success-background: #a5d6a7,
34
- success-font-color: theme-values.$text-primary-color,
35
- success-icon-color: theme-values.$text-secondary-color,
36
-
37
- // warning theme
38
- warning-background: #ffdba6,
39
- warning-font-color: theme-values.$text-primary-color,
40
- warning-icon-color: theme-values.$text-secondary-color,
41
-
42
- // danger theme
43
- danger-background: #ffcdd2,
44
- danger-font-color: theme-values.$text-primary-color,
45
- danger-icon-color: theme-values.$text-secondary-color,
46
-
47
- // info-primary theme
48
- info-primary-background: #bbdefb,
49
- info-primary-font-color: theme-values.$text-primary-color,
50
- info-primary-icon-color: theme-values.$text-secondary-color,
51
-
52
- // info-secondary theme
53
- info-secondary-background: #e0e0e0,
54
- info-secondary-font-color: theme-values.$text-primary-color,
55
- info-secondary-icon-color: theme-values.$text-secondary-color
56
- ) !default;
57
-
58
- $theme-values-dark: (
59
- // default theme
60
- default-background: #3f51b5,
61
- default-font-color: #ffffff,
62
- default-icon-color: #ffffff,
63
-
64
- // success theme
65
- success-background: #175a2a,
66
- success-font-color: #ffffff,
67
- success-icon-color: #ffffff,
68
-
69
- // warning theme
70
- warning-background: #933600,
71
- warning-font-color: #ffffff,
72
- warning-icon-color: #ffffff,
73
-
74
- // danger theme
75
- danger-background: #810022,
76
- danger-font-color: #ffffff,
77
- danger-icon-color: #ffffff,
78
-
79
- // info-primary theme
80
- info-primary-background: #0a3b71,
81
- info-primary-font-color: #ffffff,
82
- info-primary-icon-color: #ffffff,
83
-
84
- // info-secondary theme
85
- info-secondary-background: #424242,
86
- info-secondary-font-color: #ffffff,
87
- info-secondary-icon-color: #ffffff
88
- ) !default;