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

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 (231) hide show
  1. package/custom-elements.json +231 -124
  2. package/dist/esm/accordion/index.js +1 -1
  3. package/dist/esm/app-bar/app-bar/index.js +1 -1
  4. package/dist/esm/app-bar/help-button/index.js +1 -1
  5. package/dist/esm/app-bar/index.js +1 -1
  6. package/dist/esm/app-bar/menu-button/index.js +1 -1
  7. package/dist/esm/app-bar/notification-button/index.js +1 -1
  8. package/dist/esm/app-bar/profile-button/index.js +1 -1
  9. package/dist/esm/app-bar/search/index.js +1 -1
  10. package/dist/esm/autocomplete/index.js +1 -1
  11. package/dist/esm/banner/index.js +1 -1
  12. package/dist/esm/bottom-sheet/index.js +1 -1
  13. package/dist/esm/busy-indicator/index.js +1 -1
  14. package/dist/esm/button/index.js +1 -1
  15. package/dist/esm/button-area/index.js +1 -1
  16. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  17. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  18. package/dist/esm/button-toggle/index.js +1 -1
  19. package/dist/esm/calendar/calendar-dropdown/index.js +1 -1
  20. package/dist/esm/calendar/calendar-menu/index.js +1 -1
  21. package/dist/esm/calendar/index.js +1 -1
  22. package/dist/esm/checkbox/index.js +1 -1
  23. package/dist/esm/chip-field/index.js +1 -1
  24. package/dist/esm/chips/chip/index.js +1 -1
  25. package/dist/esm/chips/chip-set/index.js +1 -1
  26. package/dist/esm/chips/index.js +1 -1
  27. package/dist/esm/chunks/{chunk.6J27XSTE.js → chunk.2AVJJJNS.js} +2 -2
  28. package/dist/esm/chunks/{chunk.H6AG3EFX.js → chunk.2F2N4WBN.js} +2 -2
  29. package/dist/esm/chunks/chunk.3WT7HPA7.js +12 -0
  30. package/dist/esm/chunks/{chunk.W7CM652O.js → chunk.4EBFMRTJ.js} +2 -2
  31. package/dist/esm/chunks/{chunk.6RZCV4ZV.js → chunk.4HZ6SNRV.js} +2 -2
  32. package/dist/esm/chunks/{chunk.HPCXVNG6.js → chunk.4SP42UG3.js} +2 -2
  33. package/dist/esm/chunks/{chunk.HPCXVNG6.js.map → chunk.4SP42UG3.js.map} +3 -3
  34. package/dist/esm/chunks/{chunk.XPIAOMSC.js → chunk.4YKLCBP2.js} +2 -2
  35. package/dist/esm/chunks/{chunk.O47OSK6Z.js → chunk.54DNA2QP.js} +2 -2
  36. package/dist/esm/chunks/{chunk.O47OSK6Z.js.map → chunk.54DNA2QP.js.map} +1 -1
  37. package/dist/esm/chunks/{chunk.2NGPMBVU.js → chunk.5JSCGQ7H.js} +2 -2
  38. package/dist/esm/chunks/{chunk.42VNZ74O.js → chunk.5NHGVUVR.js} +2 -2
  39. package/dist/esm/chunks/{chunk.Z7SLVU2O.js → chunk.5PNJOQDZ.js} +2 -2
  40. package/dist/esm/chunks/{chunk.IDB4KFSQ.js → chunk.66RZ2CUB.js} +2 -2
  41. package/dist/esm/chunks/{chunk.PR76A5VF.js → chunk.6DPDC4ON.js} +2 -2
  42. package/dist/esm/chunks/{chunk.ZZRAZZ3N.js → chunk.7AE3ATT3.js} +2 -2
  43. package/dist/esm/chunks/{chunk.AWEDY45N.js → chunk.AXBMJBED.js} +2 -2
  44. package/dist/esm/chunks/{chunk.NHYJMP25.js → chunk.B2RYZJGJ.js} +2 -2
  45. package/dist/esm/chunks/{chunk.S3KKICL3.js → chunk.CISGGM56.js} +2 -2
  46. package/dist/esm/chunks/{chunk.LXFL2C62.js → chunk.CJUX3PL5.js} +2 -2
  47. package/dist/esm/chunks/{chunk.VOL4DT5F.js → chunk.DYBD4IRT.js} +2 -2
  48. package/dist/esm/chunks/{chunk.LDHY3O6H.js → chunk.E2FS4PJS.js} +2 -2
  49. package/dist/esm/chunks/chunk.E7TIN4JS.js +7 -0
  50. package/dist/esm/chunks/chunk.E7TIN4JS.js.map +7 -0
  51. package/dist/esm/chunks/{chunk.OJHNLDNM.js → chunk.F3FWXBDS.js} +2 -2
  52. package/dist/esm/chunks/{chunk.3PHNRX5D.js → chunk.FOQH2SSU.js} +2 -2
  53. package/dist/esm/chunks/{chunk.GFKYBECY.js → chunk.FXDHZCID.js} +2 -2
  54. package/dist/esm/chunks/{chunk.SN3VXOWN.js → chunk.FZC3WXSY.js} +2 -2
  55. package/dist/esm/chunks/chunk.GAQ3POUT.js +7 -0
  56. package/dist/esm/chunks/chunk.GAQ3POUT.js.map +7 -0
  57. package/dist/esm/chunks/{chunk.HBFU4EGB.js → chunk.IE42X2LV.js} +2 -2
  58. package/dist/esm/chunks/{chunk.JRROGJ2G.js → chunk.IO3A5OM6.js} +2 -2
  59. package/dist/esm/chunks/{chunk.EPVNVBZI.js → chunk.J5MWS2KZ.js} +2 -2
  60. package/dist/esm/chunks/{chunk.6YDMW2GO.js → chunk.JO6GPIMF.js} +2 -2
  61. package/dist/esm/chunks/{chunk.5YTYVHYR.js → chunk.JUXSSZ3B.js} +2 -2
  62. package/dist/esm/chunks/{chunk.FTADCSFT.js → chunk.KIQZLNDG.js} +2 -2
  63. package/dist/esm/chunks/{chunk.VX7H6YHF.js → chunk.LNMQ5A25.js} +2 -2
  64. package/dist/esm/chunks/{chunk.YCG7OVYF.js → chunk.MBXBM6UI.js} +2 -2
  65. package/dist/esm/chunks/{chunk.SUR46MJG.js → chunk.N2DHFDXD.js} +2 -2
  66. package/dist/esm/chunks/{chunk.OD54UG2G.js → chunk.NSKIEZWE.js} +2 -2
  67. package/dist/esm/chunks/{chunk.6JR2HMWB.js → chunk.NY3N6KUZ.js} +2 -2
  68. package/dist/esm/chunks/{chunk.ZTBOQMRE.js → chunk.O6WN2UP6.js} +2 -2
  69. package/dist/esm/chunks/{chunk.JMIUB3S3.js → chunk.OWYOZF53.js} +2 -2
  70. package/dist/esm/chunks/{chunk.ND2X5OQ4.js → chunk.OXGCNOUY.js} +2 -2
  71. package/dist/esm/chunks/{chunk.OAZXY4Q5.js → chunk.QIMAHW7V.js} +2 -2
  72. package/dist/esm/chunks/{chunk.ZJQLVAJY.js → chunk.QXZ3AAXD.js} +2 -2
  73. package/dist/esm/chunks/{chunk.TGGC2THA.js → chunk.RB435MRJ.js} +2 -2
  74. package/dist/esm/chunks/{chunk.O7DID7GP.js → chunk.RBG6AMLV.js} +2 -2
  75. package/dist/esm/chunks/{chunk.ZZV7P3FR.js → chunk.RN634NOB.js} +2 -2
  76. package/dist/esm/chunks/{chunk.7QO5JEOC.js → chunk.RQ3RHGLB.js} +2 -2
  77. package/dist/esm/chunks/{chunk.NPCUVYWP.js → chunk.S2KPWTRW.js} +2 -2
  78. package/dist/esm/chunks/{chunk.ME7ICFCZ.js → chunk.SWDOKJUF.js} +2 -2
  79. package/dist/esm/chunks/{chunk.MMMG4MZ3.js → chunk.ULZJYWM2.js} +2 -2
  80. package/dist/esm/chunks/{chunk.PGSL6NFZ.js → chunk.VGKNQYHG.js} +2 -2
  81. package/dist/esm/chunks/{chunk.VLADAZRB.js → chunk.VRTR7WMN.js} +2 -2
  82. package/dist/esm/chunks/{chunk.NBYCIDFC.js → chunk.W2W3NTFC.js} +2 -2
  83. package/dist/esm/chunks/{chunk.ZSHN7Z45.js → chunk.WKLDPPHS.js} +2 -2
  84. package/dist/esm/chunks/{chunk.4X4SSZQU.js → chunk.WM6ZUVDR.js} +2 -2
  85. package/dist/esm/chunks/{chunk.TRSICKKS.js → chunk.XH63INIK.js} +2 -2
  86. package/dist/esm/chunks/{chunk.VNH44AGF.js → chunk.Y7ZZ7HDC.js} +2 -2
  87. package/dist/esm/chunks/{chunk.MTZOQQXR.js → chunk.YGXXWF52.js} +2 -2
  88. package/dist/esm/chunks/{chunk.KVPKVWCZ.js → chunk.YHIHHGMQ.js} +2 -2
  89. package/dist/esm/chunks/{chunk.OVDO5RVX.js → chunk.YOKBWEXF.js} +2 -2
  90. package/dist/esm/chunks/{chunk.L5OB7WM2.js → chunk.ZYYPOLIG.js} +2 -2
  91. package/dist/esm/color-picker/index.js +1 -1
  92. package/dist/esm/core/index.js +1 -1
  93. package/dist/esm/core/utils/index.js +1 -1
  94. package/dist/esm/date-picker/index.js +1 -1
  95. package/dist/esm/date-range-picker/index.js +1 -1
  96. package/dist/esm/deprecated/button/index.js +1 -1
  97. package/dist/esm/deprecated/index.js +1 -1
  98. package/dist/esm/expansion-panel/index.js +1 -1
  99. package/dist/esm/file-picker/index.js +1 -1
  100. package/dist/esm/floating-action-button/index.js +1 -1
  101. package/dist/esm/focus-indicator/index.js +1 -1
  102. package/dist/esm/icon/index.js +1 -1
  103. package/dist/esm/icon-button/index.js +1 -1
  104. package/dist/esm/index.js +1 -1
  105. package/dist/esm/label/index.js +1 -1
  106. package/dist/esm/list/index.js +1 -1
  107. package/dist/esm/list/list/index.js +1 -1
  108. package/dist/esm/list/list-item/index.js +1 -1
  109. package/dist/esm/list-dropdown/index.js +1 -1
  110. package/dist/esm/menu/index.js +1 -1
  111. package/dist/esm/open-icon/index.js +1 -1
  112. package/dist/esm/overlay/index.js +1 -1
  113. package/dist/esm/paginator/index.js +1 -1
  114. package/dist/esm/popover/index.js +1 -1
  115. package/dist/esm/profile-card/index.js +1 -1
  116. package/dist/esm/quantity-field/index.js +1 -1
  117. package/dist/esm/radio/index.js +1 -1
  118. package/dist/esm/radio/radio/index.js +1 -1
  119. package/dist/esm/radio/radio-group/index.js +1 -1
  120. package/dist/esm/select/core/index.js +1 -1
  121. package/dist/esm/select/index.js +1 -1
  122. package/dist/esm/select/select/index.js +1 -1
  123. package/dist/esm/select/select-dropdown/index.js +1 -1
  124. package/dist/esm/slider/index.js +1 -1
  125. package/dist/esm/split-button/index.js +1 -1
  126. package/dist/esm/split-view/index.js +1 -1
  127. package/dist/esm/split-view/split-view/index.js +1 -1
  128. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  129. package/dist/esm/state-layer/index.js +1 -1
  130. package/dist/esm/stepper/index.js +1 -1
  131. package/dist/esm/stepper/step/index.js +1 -1
  132. package/dist/esm/stepper/stepper/index.js +1 -1
  133. package/dist/esm/switch/index.js +1 -1
  134. package/dist/esm/table/index.js +1 -1
  135. package/dist/esm/tabs/index.js +1 -1
  136. package/dist/esm/tabs/tab/index.js +1 -1
  137. package/dist/esm/tabs/tab-bar/index.js +1 -1
  138. package/dist/esm/time-picker/index.js +1 -1
  139. package/dist/esm/toast/index.js +1 -1
  140. package/dist/esm/tooltip/index.js +1 -1
  141. package/dist/forge-dark.css +1 -1
  142. package/esm/banner/banner-adapter.d.ts +18 -18
  143. package/esm/banner/banner-adapter.js +26 -23
  144. package/esm/banner/banner-constants.d.ts +20 -16
  145. package/esm/banner/banner-constants.js +19 -21
  146. package/esm/banner/banner-foundation.d.ts +15 -14
  147. package/esm/banner/banner-foundation.js +54 -43
  148. package/esm/banner/banner.d.ts +36 -7
  149. package/esm/banner/banner.js +51 -18
  150. package/esm/core/utils/position-utils.d.ts +2 -10
  151. package/esm/core/utils/position-utils.js +8 -17
  152. package/esm/core/utils/utils.d.ts +6 -0
  153. package/esm/core/utils/utils.js +9 -0
  154. package/esm/overlay/overlay-adapter.d.ts +1 -2
  155. package/esm/overlay/overlay-adapter.js +9 -13
  156. package/esm/overlay/overlay-constants.d.ts +6 -1
  157. package/esm/overlay/overlay-constants.js +22 -0
  158. package/esm/overlay/overlay-foundation.js +1 -5
  159. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  160. package/package.json +1 -1
  161. package/styles/banner/_core.scss +59 -0
  162. package/styles/banner/_token-utils.scss +30 -0
  163. package/styles/banner/banner.scss +137 -9
  164. package/styles/banner/index.scss +6 -0
  165. package/styles/core/styles/tokens/banner/_tokens.scss +26 -0
  166. package/styles/theme/_theme-dark.scss +0 -6
  167. package/dist/esm/chunks/chunk.53HPDCFR.js +0 -7
  168. package/dist/esm/chunks/chunk.53HPDCFR.js.map +0 -7
  169. package/dist/esm/chunks/chunk.DFRD7A2Y.js +0 -7
  170. package/dist/esm/chunks/chunk.DFRD7A2Y.js.map +0 -7
  171. package/dist/esm/chunks/chunk.YVCGGQQG.js +0 -12
  172. package/styles/badge/_mixins.scss +0 -125
  173. package/styles/badge/_variables.scss +0 -87
  174. package/styles/banner/_mixins.scss +0 -219
  175. package/styles/banner/_variables.scss +0 -88
  176. /package/dist/esm/chunks/{chunk.6J27XSTE.js.map → chunk.2AVJJJNS.js.map} +0 -0
  177. /package/dist/esm/chunks/{chunk.H6AG3EFX.js.map → chunk.2F2N4WBN.js.map} +0 -0
  178. /package/dist/esm/chunks/{chunk.YVCGGQQG.js.map → chunk.3WT7HPA7.js.map} +0 -0
  179. /package/dist/esm/chunks/{chunk.W7CM652O.js.map → chunk.4EBFMRTJ.js.map} +0 -0
  180. /package/dist/esm/chunks/{chunk.6RZCV4ZV.js.map → chunk.4HZ6SNRV.js.map} +0 -0
  181. /package/dist/esm/chunks/{chunk.XPIAOMSC.js.map → chunk.4YKLCBP2.js.map} +0 -0
  182. /package/dist/esm/chunks/{chunk.2NGPMBVU.js.map → chunk.5JSCGQ7H.js.map} +0 -0
  183. /package/dist/esm/chunks/{chunk.42VNZ74O.js.map → chunk.5NHGVUVR.js.map} +0 -0
  184. /package/dist/esm/chunks/{chunk.Z7SLVU2O.js.map → chunk.5PNJOQDZ.js.map} +0 -0
  185. /package/dist/esm/chunks/{chunk.IDB4KFSQ.js.map → chunk.66RZ2CUB.js.map} +0 -0
  186. /package/dist/esm/chunks/{chunk.PR76A5VF.js.map → chunk.6DPDC4ON.js.map} +0 -0
  187. /package/dist/esm/chunks/{chunk.ZZRAZZ3N.js.map → chunk.7AE3ATT3.js.map} +0 -0
  188. /package/dist/esm/chunks/{chunk.AWEDY45N.js.map → chunk.AXBMJBED.js.map} +0 -0
  189. /package/dist/esm/chunks/{chunk.NHYJMP25.js.map → chunk.B2RYZJGJ.js.map} +0 -0
  190. /package/dist/esm/chunks/{chunk.S3KKICL3.js.map → chunk.CISGGM56.js.map} +0 -0
  191. /package/dist/esm/chunks/{chunk.LXFL2C62.js.map → chunk.CJUX3PL5.js.map} +0 -0
  192. /package/dist/esm/chunks/{chunk.VOL4DT5F.js.map → chunk.DYBD4IRT.js.map} +0 -0
  193. /package/dist/esm/chunks/{chunk.LDHY3O6H.js.map → chunk.E2FS4PJS.js.map} +0 -0
  194. /package/dist/esm/chunks/{chunk.OJHNLDNM.js.map → chunk.F3FWXBDS.js.map} +0 -0
  195. /package/dist/esm/chunks/{chunk.3PHNRX5D.js.map → chunk.FOQH2SSU.js.map} +0 -0
  196. /package/dist/esm/chunks/{chunk.GFKYBECY.js.map → chunk.FXDHZCID.js.map} +0 -0
  197. /package/dist/esm/chunks/{chunk.SN3VXOWN.js.map → chunk.FZC3WXSY.js.map} +0 -0
  198. /package/dist/esm/chunks/{chunk.HBFU4EGB.js.map → chunk.IE42X2LV.js.map} +0 -0
  199. /package/dist/esm/chunks/{chunk.JRROGJ2G.js.map → chunk.IO3A5OM6.js.map} +0 -0
  200. /package/dist/esm/chunks/{chunk.EPVNVBZI.js.map → chunk.J5MWS2KZ.js.map} +0 -0
  201. /package/dist/esm/chunks/{chunk.6YDMW2GO.js.map → chunk.JO6GPIMF.js.map} +0 -0
  202. /package/dist/esm/chunks/{chunk.5YTYVHYR.js.map → chunk.JUXSSZ3B.js.map} +0 -0
  203. /package/dist/esm/chunks/{chunk.FTADCSFT.js.map → chunk.KIQZLNDG.js.map} +0 -0
  204. /package/dist/esm/chunks/{chunk.VX7H6YHF.js.map → chunk.LNMQ5A25.js.map} +0 -0
  205. /package/dist/esm/chunks/{chunk.YCG7OVYF.js.map → chunk.MBXBM6UI.js.map} +0 -0
  206. /package/dist/esm/chunks/{chunk.SUR46MJG.js.map → chunk.N2DHFDXD.js.map} +0 -0
  207. /package/dist/esm/chunks/{chunk.OD54UG2G.js.map → chunk.NSKIEZWE.js.map} +0 -0
  208. /package/dist/esm/chunks/{chunk.6JR2HMWB.js.map → chunk.NY3N6KUZ.js.map} +0 -0
  209. /package/dist/esm/chunks/{chunk.ZTBOQMRE.js.map → chunk.O6WN2UP6.js.map} +0 -0
  210. /package/dist/esm/chunks/{chunk.JMIUB3S3.js.map → chunk.OWYOZF53.js.map} +0 -0
  211. /package/dist/esm/chunks/{chunk.ND2X5OQ4.js.map → chunk.OXGCNOUY.js.map} +0 -0
  212. /package/dist/esm/chunks/{chunk.OAZXY4Q5.js.map → chunk.QIMAHW7V.js.map} +0 -0
  213. /package/dist/esm/chunks/{chunk.ZJQLVAJY.js.map → chunk.QXZ3AAXD.js.map} +0 -0
  214. /package/dist/esm/chunks/{chunk.TGGC2THA.js.map → chunk.RB435MRJ.js.map} +0 -0
  215. /package/dist/esm/chunks/{chunk.O7DID7GP.js.map → chunk.RBG6AMLV.js.map} +0 -0
  216. /package/dist/esm/chunks/{chunk.ZZV7P3FR.js.map → chunk.RN634NOB.js.map} +0 -0
  217. /package/dist/esm/chunks/{chunk.7QO5JEOC.js.map → chunk.RQ3RHGLB.js.map} +0 -0
  218. /package/dist/esm/chunks/{chunk.NPCUVYWP.js.map → chunk.S2KPWTRW.js.map} +0 -0
  219. /package/dist/esm/chunks/{chunk.ME7ICFCZ.js.map → chunk.SWDOKJUF.js.map} +0 -0
  220. /package/dist/esm/chunks/{chunk.MMMG4MZ3.js.map → chunk.ULZJYWM2.js.map} +0 -0
  221. /package/dist/esm/chunks/{chunk.PGSL6NFZ.js.map → chunk.VGKNQYHG.js.map} +0 -0
  222. /package/dist/esm/chunks/{chunk.VLADAZRB.js.map → chunk.VRTR7WMN.js.map} +0 -0
  223. /package/dist/esm/chunks/{chunk.NBYCIDFC.js.map → chunk.W2W3NTFC.js.map} +0 -0
  224. /package/dist/esm/chunks/{chunk.ZSHN7Z45.js.map → chunk.WKLDPPHS.js.map} +0 -0
  225. /package/dist/esm/chunks/{chunk.4X4SSZQU.js.map → chunk.WM6ZUVDR.js.map} +0 -0
  226. /package/dist/esm/chunks/{chunk.TRSICKKS.js.map → chunk.XH63INIK.js.map} +0 -0
  227. /package/dist/esm/chunks/{chunk.VNH44AGF.js.map → chunk.Y7ZZ7HDC.js.map} +0 -0
  228. /package/dist/esm/chunks/{chunk.MTZOQQXR.js.map → chunk.YGXXWF52.js.map} +0 -0
  229. /package/dist/esm/chunks/{chunk.KVPKVWCZ.js.map → chunk.YHIHHGMQ.js.map} +0 -0
  230. /package/dist/esm/chunks/{chunk.OVDO5RVX.js.map → chunk.YOKBWEXF.js.map} +0 -0
  231. /package/dist/esm/chunks/{chunk.L5OB7WM2.js.map → chunk.ZYYPOLIG.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;