@tylertech/forge 3.0.0-next.6 → 3.0.0-next.7

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 (212) hide show
  1. package/custom-elements.json +620 -1108
  2. package/dist/esm/accordion/index.js +1 -1
  3. package/dist/esm/app-bar/help-button/index.js +1 -1
  4. package/dist/esm/app-bar/index.js +1 -1
  5. package/dist/esm/app-bar/menu-button/index.js +1 -1
  6. package/dist/esm/app-bar/notification-button/index.js +1 -1
  7. package/dist/esm/app-bar/profile-button/index.js +1 -1
  8. package/dist/esm/app-bar/search/index.js +1 -1
  9. package/dist/esm/autocomplete/index.js +1 -1
  10. package/dist/esm/banner/index.js +1 -1
  11. package/dist/esm/bottom-sheet/index.js +1 -1
  12. package/dist/esm/busy-indicator/index.js +1 -1
  13. package/dist/esm/button/index.js +1 -1
  14. package/dist/esm/button-toggle/button-toggle/index.js +1 -1
  15. package/dist/esm/button-toggle/button-toggle-group/index.js +1 -1
  16. package/dist/esm/button-toggle/index.js +1 -1
  17. package/dist/esm/calendar/index.js +1 -1
  18. package/dist/esm/checkbox/index.js +1 -1
  19. package/dist/esm/chip-field/index.js +1 -1
  20. package/dist/esm/chips/chip/index.js +1 -1
  21. package/dist/esm/chips/chip-set/index.js +1 -1
  22. package/dist/esm/chips/index.js +1 -1
  23. package/dist/esm/chunks/{chunk.Q6IP5GJ6.js → chunk.246JM2YT.js} +2 -2
  24. package/dist/esm/chunks/{chunk.DHTAH23Y.js → chunk.24L5GDD2.js} +2 -2
  25. package/dist/esm/chunks/{chunk.ZWTZJJ6H.js → chunk.2IQGDFQS.js} +2 -2
  26. package/dist/esm/chunks/{chunk.DAGXGSX7.js → chunk.2LRDPTHK.js} +2 -2
  27. package/dist/esm/chunks/{chunk.Q47M2LB5.js → chunk.2QFIMTVP.js} +2 -2
  28. package/dist/esm/chunks/{chunk.IVB6XTHQ.js → chunk.2TQONIPK.js} +2 -2
  29. package/dist/esm/chunks/{chunk.DXHKS7XO.js → chunk.2XFVFZ3P.js} +2 -2
  30. package/dist/esm/chunks/{chunk.3ICROIFD.js → chunk.2YAU7AXH.js} +2 -2
  31. package/dist/esm/chunks/{chunk.5B2CGITX.js → chunk.2YX7ASSX.js} +2 -2
  32. package/dist/esm/chunks/{chunk.QLNGQCJX.js → chunk.2ZTERGYF.js} +2 -2
  33. package/dist/esm/chunks/{chunk.Y2ANYRZH.js → chunk.4EB5NVCK.js} +2 -2
  34. package/dist/esm/chunks/{chunk.SACZLJPQ.js → chunk.4LVS2EYJ.js} +2 -2
  35. package/dist/esm/chunks/{chunk.E3VXLUEY.js → chunk.5IVB5L5Z.js} +2 -2
  36. package/dist/esm/chunks/{chunk.QO37K76P.js → chunk.6SBTLXLH.js} +2 -2
  37. package/dist/esm/chunks/{chunk.BTZF6QGA.js → chunk.7JQHQKXN.js} +2 -2
  38. package/dist/esm/chunks/{chunk.TWV4OTF7.js → chunk.A5MBSCSQ.js} +2 -2
  39. package/dist/esm/chunks/{chunk.4EF7UJDK.js → chunk.A5R7KUIP.js} +2 -2
  40. package/dist/esm/chunks/{chunk.NQH4ZCXJ.js → chunk.AGMPIMJV.js} +2 -2
  41. package/dist/esm/chunks/{chunk.PMY4KVCF.js → chunk.BKCEVPKW.js} +2 -2
  42. package/dist/esm/chunks/{chunk.I5MLIFN5.js → chunk.BSTIDYQJ.js} +2 -2
  43. package/dist/esm/chunks/{chunk.MZNL36GJ.js → chunk.CNQESSA3.js} +2 -2
  44. package/dist/esm/chunks/{chunk.6FISJTFJ.js → chunk.E6KWYFZG.js} +2 -2
  45. package/dist/esm/chunks/{chunk.H3SBIXK5.js → chunk.ECRL6O3V.js} +2 -2
  46. package/dist/esm/chunks/{chunk.SBDWCXK3.js → chunk.ER52NFXX.js} +2 -2
  47. package/dist/esm/chunks/{chunk.GSQF3ACL.js → chunk.EUE3OVC7.js} +2 -2
  48. package/dist/esm/chunks/{chunk.DGNS4JNN.js → chunk.FAANPQES.js} +2 -2
  49. package/dist/esm/chunks/{chunk.MZLPUI6R.js → chunk.FYWPZFLJ.js} +2 -2
  50. package/dist/esm/chunks/{chunk.MZLPUI6R.js.map → chunk.FYWPZFLJ.js.map} +2 -2
  51. package/dist/esm/chunks/{chunk.LMSXJOPL.js → chunk.GF2GUVYS.js} +2 -2
  52. package/dist/esm/chunks/{chunk.QKRB6AIQ.js → chunk.GHSAKRYH.js} +2 -2
  53. package/dist/esm/chunks/{chunk.JHTGKXXX.js → chunk.GJW4WS4I.js} +2 -2
  54. package/dist/esm/chunks/{chunk.IW37LUQJ.js → chunk.GUYPITGA.js} +2 -2
  55. package/dist/esm/chunks/chunk.GWIVOPRO.js +7 -0
  56. package/dist/esm/chunks/chunk.GWIVOPRO.js.map +7 -0
  57. package/dist/esm/chunks/{chunk.G75X57KY.js → chunk.HKJEGD6C.js} +2 -2
  58. package/dist/esm/chunks/{chunk.3ARIVYGG.js → chunk.IGK3VYZG.js} +2 -2
  59. package/dist/esm/chunks/chunk.JHXNEHWR.js +12 -0
  60. package/dist/esm/chunks/{chunk.7MDHI4PT.js → chunk.JVW6JGV3.js} +2 -2
  61. package/dist/esm/chunks/{chunk.LQ4RD7WW.js → chunk.MXNLCQRB.js} +2 -2
  62. package/dist/esm/chunks/chunk.OHNPVHPF.js +7 -0
  63. package/dist/esm/chunks/chunk.OHNPVHPF.js.map +7 -0
  64. package/dist/esm/chunks/{chunk.GZZ6GFKT.js → chunk.OT6H5NHX.js} +2 -2
  65. package/dist/esm/chunks/{chunk.PG4HEEX2.js → chunk.OTVT3XM2.js} +2 -2
  66. package/dist/esm/chunks/{chunk.VSO5QDBV.js → chunk.P5QIB6OY.js} +2 -2
  67. package/dist/esm/chunks/{chunk.XUV63FEH.js → chunk.PPPTT3SM.js} +2 -2
  68. package/dist/esm/chunks/{chunk.GZRMHYID.js → chunk.QA3NU7EN.js} +2 -2
  69. package/dist/esm/chunks/{chunk.MVYTV6WX.js → chunk.QYKO543K.js} +2 -2
  70. package/dist/esm/chunks/{chunk.XI4RWFCG.js → chunk.RHYRMQS7.js} +2 -2
  71. package/dist/esm/chunks/{chunk.Q4SCW4FN.js → chunk.RUSHOL23.js} +2 -2
  72. package/dist/esm/chunks/{chunk.AD4CP4UK.js → chunk.SIJGKRYS.js} +2 -2
  73. package/dist/esm/chunks/{chunk.BIJJCDHE.js → chunk.STGRPD2L.js} +2 -2
  74. package/dist/esm/chunks/{chunk.BIJJCDHE.js.map → chunk.STGRPD2L.js.map} +1 -1
  75. package/dist/esm/chunks/{chunk.RTMDWDS4.js → chunk.SYZB7B4F.js} +2 -2
  76. package/dist/esm/chunks/{chunk.GYPPM2D2.js → chunk.SZIM4KFZ.js} +2 -2
  77. package/dist/esm/chunks/{chunk.UXQZFI55.js → chunk.THPU5KBV.js} +2 -2
  78. package/dist/esm/chunks/{chunk.K6VWRQWY.js → chunk.TXFYS6EU.js} +2 -2
  79. package/dist/esm/chunks/{chunk.ZLFH7VOM.js → chunk.V4RBOYNH.js} +2 -2
  80. package/dist/esm/chunks/{chunk.4B22UXEH.js → chunk.WFDIA7R6.js} +2 -2
  81. package/dist/esm/chunks/{chunk.DCCJTW7C.js → chunk.XMFQFFKR.js} +2 -2
  82. package/dist/esm/chunks/{chunk.JRV5FYMW.js → chunk.YUAU5IWT.js} +2 -2
  83. package/dist/esm/chunks/{chunk.YSFUL5AD.js → chunk.YZLASVCK.js} +2 -2
  84. package/dist/esm/chunks/{chunk.R7MQKCHR.js → chunk.Z5TWWM7I.js} +2 -2
  85. package/dist/esm/color-picker/index.js +1 -1
  86. package/dist/esm/date-picker/index.js +1 -1
  87. package/dist/esm/date-range-picker/index.js +1 -1
  88. package/dist/esm/expansion-panel/index.js +1 -1
  89. package/dist/esm/file-picker/index.js +1 -1
  90. package/dist/esm/floating-action-button/index.js +1 -1
  91. package/dist/esm/icon-button/index.js +1 -1
  92. package/dist/esm/index.js +1 -1
  93. package/dist/esm/list/index.js +1 -1
  94. package/dist/esm/list/list/index.js +1 -1
  95. package/dist/esm/list/list-item/index.js +1 -1
  96. package/dist/esm/list-dropdown/index.js +1 -1
  97. package/dist/esm/menu/index.js +1 -1
  98. package/dist/esm/open-icon/index.js +1 -1
  99. package/dist/esm/paginator/index.js +1 -1
  100. package/dist/esm/profile-card/index.js +1 -1
  101. package/dist/esm/quantity-field/index.js +1 -1
  102. package/dist/esm/radio/index.js +1 -1
  103. package/dist/esm/ripple/index.js +1 -1
  104. package/dist/esm/select/core/index.js +1 -1
  105. package/dist/esm/select/index.js +1 -1
  106. package/dist/esm/select/select/index.js +1 -1
  107. package/dist/esm/select/select-dropdown/index.js +1 -1
  108. package/dist/esm/slider/index.js +1 -1
  109. package/dist/esm/split-view/index.js +1 -1
  110. package/dist/esm/split-view/split-view/index.js +1 -1
  111. package/dist/esm/split-view/split-view-panel/index.js +1 -1
  112. package/dist/esm/stepper/index.js +1 -1
  113. package/dist/esm/stepper/step/index.js +1 -1
  114. package/dist/esm/stepper/stepper/index.js +1 -1
  115. package/dist/esm/switch/index.js +1 -1
  116. package/dist/esm/table/index.js +1 -1
  117. package/dist/esm/tabs/index.js +1 -1
  118. package/dist/esm/tabs/tab/index.js +1 -1
  119. package/dist/esm/tabs/tab-bar/index.js +1 -1
  120. package/dist/esm/time-picker/index.js +1 -1
  121. package/dist/esm/toast/index.js +1 -1
  122. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  123. package/esm/tabs/tab/tab-adapter.d.ts +14 -38
  124. package/esm/tabs/tab/tab-adapter.js +65 -78
  125. package/esm/tabs/tab/tab-constants.d.ts +13 -13
  126. package/esm/tabs/tab/tab-constants.js +18 -10
  127. package/esm/tabs/tab/tab-foundation.d.ts +24 -23
  128. package/esm/tabs/tab/tab-foundation.js +68 -62
  129. package/esm/tabs/tab/tab-ripple.d.ts +17 -0
  130. package/esm/tabs/tab/tab-ripple.js +33 -0
  131. package/esm/tabs/tab/tab.d.ts +56 -19
  132. package/esm/tabs/tab/tab.js +77 -31
  133. package/esm/tabs/tab-bar/tab-bar-adapter.d.ts +49 -87
  134. package/esm/tabs/tab-bar/tab-bar-adapter.js +114 -188
  135. package/esm/tabs/tab-bar/tab-bar-constants.d.ts +15 -45
  136. package/esm/tabs/tab-bar/tab-bar-constants.js +22 -56
  137. package/esm/tabs/tab-bar/tab-bar-foundation.d.ts +56 -65
  138. package/esm/tabs/tab-bar/tab-bar-foundation.js +241 -302
  139. package/esm/tabs/tab-bar/tab-bar.d.ts +51 -36
  140. package/esm/tabs/tab-bar/tab-bar.js +84 -52
  141. package/package.json +1 -1
  142. package/styles/core/style-layer/tabs/tab/_core.scss +419 -0
  143. package/styles/core/style-layer/tabs/tab/_variables.scss +20 -0
  144. package/styles/core/style-layer/tabs/tab/index.scss +13 -0
  145. package/styles/core/style-layer/tabs/tab-bar/_core.scss +110 -0
  146. package/styles/core/style-layer/tabs/tab-bar/_variables.scss +9 -0
  147. package/styles/core/style-layer/tabs/tab-bar/index.scss +13 -0
  148. package/styles/tabs/tab/_mixins.scss +46 -128
  149. package/styles/tabs/tab/_variables.scss +26 -4
  150. package/styles/tabs/tab/tab.scss +50 -11
  151. package/styles/tabs/tab-bar/_mixins.scss +20 -60
  152. package/styles/tabs/tab-bar/_variables.scss +11 -0
  153. package/styles/tabs/tab-bar/tab-bar.scss +29 -2
  154. package/dist/esm/chunks/chunk.4QPMNWJ3.js +0 -129
  155. package/dist/esm/chunks/chunk.4QPMNWJ3.js.map +0 -7
  156. package/dist/esm/chunks/chunk.D3IAEEPM.js +0 -201
  157. package/dist/esm/chunks/chunk.D3IAEEPM.js.map +0 -7
  158. package/dist/esm/chunks/chunk.NV4U4DE6.js +0 -12
  159. /package/dist/esm/chunks/{chunk.Q6IP5GJ6.js.map → chunk.246JM2YT.js.map} +0 -0
  160. /package/dist/esm/chunks/{chunk.DHTAH23Y.js.map → chunk.24L5GDD2.js.map} +0 -0
  161. /package/dist/esm/chunks/{chunk.ZWTZJJ6H.js.map → chunk.2IQGDFQS.js.map} +0 -0
  162. /package/dist/esm/chunks/{chunk.DAGXGSX7.js.map → chunk.2LRDPTHK.js.map} +0 -0
  163. /package/dist/esm/chunks/{chunk.Q47M2LB5.js.map → chunk.2QFIMTVP.js.map} +0 -0
  164. /package/dist/esm/chunks/{chunk.IVB6XTHQ.js.map → chunk.2TQONIPK.js.map} +0 -0
  165. /package/dist/esm/chunks/{chunk.DXHKS7XO.js.map → chunk.2XFVFZ3P.js.map} +0 -0
  166. /package/dist/esm/chunks/{chunk.3ICROIFD.js.map → chunk.2YAU7AXH.js.map} +0 -0
  167. /package/dist/esm/chunks/{chunk.5B2CGITX.js.map → chunk.2YX7ASSX.js.map} +0 -0
  168. /package/dist/esm/chunks/{chunk.QLNGQCJX.js.map → chunk.2ZTERGYF.js.map} +0 -0
  169. /package/dist/esm/chunks/{chunk.Y2ANYRZH.js.map → chunk.4EB5NVCK.js.map} +0 -0
  170. /package/dist/esm/chunks/{chunk.SACZLJPQ.js.map → chunk.4LVS2EYJ.js.map} +0 -0
  171. /package/dist/esm/chunks/{chunk.E3VXLUEY.js.map → chunk.5IVB5L5Z.js.map} +0 -0
  172. /package/dist/esm/chunks/{chunk.QO37K76P.js.map → chunk.6SBTLXLH.js.map} +0 -0
  173. /package/dist/esm/chunks/{chunk.BTZF6QGA.js.map → chunk.7JQHQKXN.js.map} +0 -0
  174. /package/dist/esm/chunks/{chunk.TWV4OTF7.js.map → chunk.A5MBSCSQ.js.map} +0 -0
  175. /package/dist/esm/chunks/{chunk.4EF7UJDK.js.map → chunk.A5R7KUIP.js.map} +0 -0
  176. /package/dist/esm/chunks/{chunk.NQH4ZCXJ.js.map → chunk.AGMPIMJV.js.map} +0 -0
  177. /package/dist/esm/chunks/{chunk.PMY4KVCF.js.map → chunk.BKCEVPKW.js.map} +0 -0
  178. /package/dist/esm/chunks/{chunk.I5MLIFN5.js.map → chunk.BSTIDYQJ.js.map} +0 -0
  179. /package/dist/esm/chunks/{chunk.MZNL36GJ.js.map → chunk.CNQESSA3.js.map} +0 -0
  180. /package/dist/esm/chunks/{chunk.6FISJTFJ.js.map → chunk.E6KWYFZG.js.map} +0 -0
  181. /package/dist/esm/chunks/{chunk.H3SBIXK5.js.map → chunk.ECRL6O3V.js.map} +0 -0
  182. /package/dist/esm/chunks/{chunk.SBDWCXK3.js.map → chunk.ER52NFXX.js.map} +0 -0
  183. /package/dist/esm/chunks/{chunk.GSQF3ACL.js.map → chunk.EUE3OVC7.js.map} +0 -0
  184. /package/dist/esm/chunks/{chunk.DGNS4JNN.js.map → chunk.FAANPQES.js.map} +0 -0
  185. /package/dist/esm/chunks/{chunk.LMSXJOPL.js.map → chunk.GF2GUVYS.js.map} +0 -0
  186. /package/dist/esm/chunks/{chunk.QKRB6AIQ.js.map → chunk.GHSAKRYH.js.map} +0 -0
  187. /package/dist/esm/chunks/{chunk.JHTGKXXX.js.map → chunk.GJW4WS4I.js.map} +0 -0
  188. /package/dist/esm/chunks/{chunk.IW37LUQJ.js.map → chunk.GUYPITGA.js.map} +0 -0
  189. /package/dist/esm/chunks/{chunk.G75X57KY.js.map → chunk.HKJEGD6C.js.map} +0 -0
  190. /package/dist/esm/chunks/{chunk.3ARIVYGG.js.map → chunk.IGK3VYZG.js.map} +0 -0
  191. /package/dist/esm/chunks/{chunk.NV4U4DE6.js.map → chunk.JHXNEHWR.js.map} +0 -0
  192. /package/dist/esm/chunks/{chunk.7MDHI4PT.js.map → chunk.JVW6JGV3.js.map} +0 -0
  193. /package/dist/esm/chunks/{chunk.LQ4RD7WW.js.map → chunk.MXNLCQRB.js.map} +0 -0
  194. /package/dist/esm/chunks/{chunk.GZZ6GFKT.js.map → chunk.OT6H5NHX.js.map} +0 -0
  195. /package/dist/esm/chunks/{chunk.PG4HEEX2.js.map → chunk.OTVT3XM2.js.map} +0 -0
  196. /package/dist/esm/chunks/{chunk.VSO5QDBV.js.map → chunk.P5QIB6OY.js.map} +0 -0
  197. /package/dist/esm/chunks/{chunk.XUV63FEH.js.map → chunk.PPPTT3SM.js.map} +0 -0
  198. /package/dist/esm/chunks/{chunk.GZRMHYID.js.map → chunk.QA3NU7EN.js.map} +0 -0
  199. /package/dist/esm/chunks/{chunk.MVYTV6WX.js.map → chunk.QYKO543K.js.map} +0 -0
  200. /package/dist/esm/chunks/{chunk.XI4RWFCG.js.map → chunk.RHYRMQS7.js.map} +0 -0
  201. /package/dist/esm/chunks/{chunk.Q4SCW4FN.js.map → chunk.RUSHOL23.js.map} +0 -0
  202. /package/dist/esm/chunks/{chunk.AD4CP4UK.js.map → chunk.SIJGKRYS.js.map} +0 -0
  203. /package/dist/esm/chunks/{chunk.RTMDWDS4.js.map → chunk.SYZB7B4F.js.map} +0 -0
  204. /package/dist/esm/chunks/{chunk.GYPPM2D2.js.map → chunk.SZIM4KFZ.js.map} +0 -0
  205. /package/dist/esm/chunks/{chunk.UXQZFI55.js.map → chunk.THPU5KBV.js.map} +0 -0
  206. /package/dist/esm/chunks/{chunk.K6VWRQWY.js.map → chunk.TXFYS6EU.js.map} +0 -0
  207. /package/dist/esm/chunks/{chunk.ZLFH7VOM.js.map → chunk.V4RBOYNH.js.map} +0 -0
  208. /package/dist/esm/chunks/{chunk.4B22UXEH.js.map → chunk.WFDIA7R6.js.map} +0 -0
  209. /package/dist/esm/chunks/{chunk.DCCJTW7C.js.map → chunk.XMFQFFKR.js.map} +0 -0
  210. /package/dist/esm/chunks/{chunk.JRV5FYMW.js.map → chunk.YUAU5IWT.js.map} +0 -0
  211. /package/dist/esm/chunks/{chunk.YSFUL5AD.js.map → chunk.YZLASVCK.js.map} +0 -0
  212. /package/dist/esm/chunks/{chunk.R7MQKCHR.js.map → chunk.Z5TWWM7I.js.map} +0 -0
@@ -3,163 +3,81 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- @use '@material/theme/theme' as mdc-theme;
7
- @use '@material/typography/typography' as mdc-typography;
8
- @use '@material/ripple/ripple' as mdc-ripple;
9
- @use '@material/ripple/ripple-theme' as mdc-ripple-theme;
10
- @use '../../typography/mixins' as typography-mixins;
6
+ @use '../../core/style-layer/tabs/tab';
11
7
  @use './variables';
12
8
 
13
- @mixin core-styles() {
14
- .forge-tab {
15
- @include base;
16
-
17
- &:disabled {
18
- @include disabled;
19
- }
20
-
21
- // Firefox still draws a dotted border around focused buttons unless specifically overridden
22
- &::-moz-focus-inner {
23
- padding: 0;
24
- border: 0;
9
+ @mixin provide-theme($theme) {
10
+ @each $key, $value in $theme {
11
+ @if list.index(variables.$supported-theme-properties, $key) == null {
12
+ @error 'Invalid theme property: #{$key}';
25
13
  }
26
-
27
- ::slotted([slot=top]) {
28
- @include top;
29
- }
30
-
31
- ::slotted([slot=top]),
32
- ::slotted([slot=leading]),
33
- ::slotted([slot=trailing]) {
34
- @include icon-base;
35
- }
36
-
37
- ::slotted([slot=leading]),
38
- ::slotted([slot=trailing]) {
39
- padding: 0 8px;
40
- }
41
-
42
- &__content {
43
- @include content;
14
+ @if $value {
15
+ --#{tab.$prefix}-#{$key}: #{$value};
44
16
  }
17
+ }
18
+ }
45
19
 
46
- &__text {
47
- @include text;
48
- }
49
-
50
- &--active {
51
- @include active;
52
-
53
- ::slotted([slot=top]),
54
- ::slotted([slot=leading]),
55
- ::slotted([slot=trailing]) {
56
- transition-delay: 100ms;
57
- }
58
- }
20
+ @mixin core-styles {
21
+ @include tab.styles;
22
+ }
59
23
 
60
- &__ripple {
61
- @include mdc-ripple.surface();
62
- @include mdc-ripple.radius-bounded();
63
- @include mdc-ripple-theme.states($color: primary);
64
-
65
- position: absolute;
66
- top: 0;
67
- left: 0;
68
- width: 100%;
69
- height: 100%;
70
- overflow: hidden;
71
- }
72
- }
24
+ @mixin focus-styles {
25
+ @include tab.focus-styles;
73
26
  }
74
27
 
75
- @mixin host() {
76
- display: inline-block;
28
+ @mixin focus-selected-styles {
29
+ @include tab.focus-selected-styles;
77
30
  }
78
31
 
79
- @mixin host-stretch() {
80
- flex: 1;
32
+ @mixin pressed-styles {
33
+ @include tab.pressed-styles;
81
34
  }
82
35
 
83
- @mixin base() {
84
- @include mdc-typography.typography(button);
85
- @include mdc-theme.property(color, text-secondary-on-light);
36
+ @mixin pressed-selected-styles {
37
+ @include tab.pressed-selected-styles;
38
+ }
86
39
 
87
- position: relative;
88
- display: flex;
89
- flex-direction: column;
90
- flex: 1 0 auto;
91
- justify-content: center;
92
- align-items: center;
93
- box-sizing: border-box;
94
- margin: 0; // To override safari default margin for button elements
95
- padding-top: 0;
96
- padding-bottom: 0;
97
- border: none;
98
- outline: none;
99
- background: none;
100
- text-align: center;
101
- white-space: nowrap;
102
- cursor: pointer;
103
- -webkit-appearance: none;
104
- z-index: 1;
105
- padding-right: variables.$horizontal-padding;
106
- padding-left: variables.$horizontal-padding;
107
- height: 100%;
108
- width: 100%;
40
+ @mixin disabled-styles {
41
+ @include tab.disabled-styles;
109
42
  }
110
43
 
111
- @mixin disabled() {
112
- @include mdc-theme.property(color, text-disabled-on-background);
44
+ @mixin selected-styles {
45
+ @include tab.selected-styles;
46
+ @include tab.forced-colors-styles;
47
+ }
113
48
 
114
- cursor: not-allowed;
115
- pointer-events: none;
49
+ @mixin stacked-styles {
50
+ @include tab.stacked-styles;
116
51
  }
117
52
 
118
- @mixin top() {
119
- padding-top: variables.$stacked-padding;
53
+ @mixin secondary-styles {
54
+ @include tab.secondary-styles;
120
55
  }
121
56
 
122
- @mixin icon-base() {
123
- transition: 150ms color linear;
124
- fill: currentColor;
125
- width: 24px;
126
- height: 24px;
127
- font-size: 24px;
128
- z-index: 2;
57
+ @mixin vertical-styles {
58
+ @include tab.vertical-styles;
129
59
  }
130
60
 
131
- @mixin content() {
132
- position: relative;
133
- display: flex;
134
- align-items: center;
135
- justify-content: center;
136
- height: inherit;
137
- pointer-events: none;
61
+ @mixin vertical-primary-styles {
62
+ @include tab.vertical-primary-styles;
138
63
  }
139
64
 
140
- @mixin text() {
141
- transition: 150ms color linear;
142
- display: inline-block;
143
- line-height: 1;
144
- z-index: 2;
65
+ @mixin vertical-secondary-styles {
66
+ @include tab.vertical-secondary-styles;
145
67
  }
146
68
 
147
- @mixin active() {
148
- @include mdc-theme.property(color, primary);
69
+ @mixin vertical-inverted-styles {
70
+ @include tab.vertical-inverted-styles;
149
71
  }
150
72
 
151
- @mixin host-theme($theme, $properties) {
152
- :host([theme=#{$theme}]) {
153
- @include theme($theme, $properties);
154
- }
73
+ @mixin inverted-styles {
74
+ @include tab.inverted-styles;
155
75
  }
156
76
 
157
- @mixin theme($theme, $properties) {
158
- $defaultValue: map-get($properties, $theme);
159
- --mdc-theme-primary: var(--mdc-theme-#{$theme}, $defaultValue);
77
+ @mixin host {
78
+ @include tab.host;
79
+ }
160
80
 
161
- // IE support
162
- .forge-tab.forge-tab--active {
163
- color: $defaultValue;
164
- }
81
+ @mixin host-disabled {
82
+ @include tab.host-disabled;
165
83
  }
@@ -3,7 +3,29 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- $horizontal-padding: 24px !default;
7
- $height: 48px !default;
8
- $height-stacked: 72px !default;
9
- $stacked-padding: 8px !default;
6
+ $supported-theme-properties: (
7
+ 'indicator-color',
8
+ 'indicator-height',
9
+ 'indicator-shape',
10
+ 'container-color',
11
+ 'container-height',
12
+ 'shape',
13
+ 'height',
14
+ 'active-focus-icon-color',
15
+ 'active-hover-icon-color',
16
+ 'active-icon-color',
17
+ 'active-pressed-icon-color',
18
+ 'icon-size',
19
+ 'focus-icon-color',
20
+ 'hover-icon-color',
21
+ 'icon-color',
22
+ 'pressed-icon-color',
23
+ 'active-focus-label-text-color',
24
+ 'active-hover-label-text-color',
25
+ 'active-label-text-color',
26
+ 'active-pressed-label-text-color',
27
+ 'focus-label-text-color',
28
+ 'hover-label-text-color',
29
+ 'label-text-color',
30
+ 'pressed-label-text-color'
31
+ );
@@ -3,10 +3,7 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- @use '../../theme/theme-values';
7
6
  @use './mixins';
8
- @use '../../ripple/forge-ripple';
9
- @use '@material/tab-indicator/mdc-tab-indicator';
10
7
 
11
8
  @include mixins.core-styles;
12
9
 
@@ -18,13 +15,55 @@
18
15
  display: none;
19
16
  }
20
17
 
21
- :host([stretch]) {
22
- @include mixins.host-stretch;
18
+ :host(:focus) {
19
+ @include mixins.focus-styles;
23
20
  }
24
21
 
25
- @include mixins.host-theme(primary, theme-values.$mdc-property-values);
26
- @include mixins.host-theme(secondary, theme-values.$mdc-property-values);
27
- @include mixins.host-theme(warning, theme-values.$property-values);
28
- @include mixins.host-theme(success, theme-values.$property-values);
29
- @include mixins.host-theme(danger, theme-values.$property-values);
30
- @include mixins.host-theme(info, theme-values.$property-values);
22
+ :host(:active) {
23
+ @include mixins.pressed-styles;
24
+ }
25
+
26
+ :host([disabled]) {
27
+ @include mixins.host-disabled;
28
+ @include mixins.disabled-styles;
29
+ }
30
+
31
+ :host([selected]) {
32
+ @include mixins.selected-styles;
33
+ }
34
+
35
+ :host([selected]:focus) {
36
+ @include mixins.focus-selected-styles;
37
+ }
38
+
39
+ :host([selected]:active) {
40
+ @include mixins.pressed-selected-styles;
41
+ }
42
+
43
+ :host([stacked]) {
44
+ @include mixins.stacked-styles;
45
+ }
46
+
47
+ :host([secondary]) {
48
+ @include mixins.secondary-styles;
49
+ }
50
+
51
+ :host([vertical]) {
52
+ @include mixins.vertical-styles;
53
+ }
54
+
55
+ :host([vertical][secondary]) {
56
+ @include mixins.vertical-secondary-styles;
57
+ }
58
+
59
+ :host([vertical]:not([secondary])) {
60
+ @include mixins.vertical-primary-styles;
61
+ }
62
+
63
+ :host([inverted]) {
64
+ @include mixins.inverted-styles;
65
+ }
66
+
67
+ :host([inverted][vertical]) {
68
+ @include mixins.vertical-inverted-styles;
69
+ }
@@ -3,76 +3,36 @@
3
3
  * Copyright 2023 Tyler Technologies, Inc.
4
4
  * License: Apache-2.0
5
5
  */
6
- @use '../../theme';
7
- @use '../tab/variables';
6
+ @use '../../core/style-layer/tabs/tab-bar';
7
+ @use './variables';
8
8
 
9
- @mixin core-styles() {
10
- .forge-tab-bar {
11
- @include base;
12
-
13
- &--underlined {
14
- &::after {
15
- @include theme.property(border-bottom-color, border-color);
16
-
17
- content: '';
18
- border-bottom-width: 1px;
19
- border-bottom-style: solid;
20
- box-sizing: border-box;
21
- width: 100%;
22
- position: absolute;
23
- bottom: 0;
24
- left: 0;
25
- right: 0;
26
- }
27
- }
28
-
29
- &--align-center {
30
- .mdc-tab-scroller__scroll-content {
31
- justify-content: center;
32
- }
9
+ @mixin provide-theme($theme) {
10
+ @each $key, $value in $theme {
11
+ @if list.index(variables.$supported-theme-properties, $key) == null {
12
+ @error 'Invalid theme property: #{$key}';
33
13
  }
34
-
35
- &--align-end {
36
- .mdc-tab-scroller__scroll-content {
37
- justify-content: flex-end;
38
- }
39
- }
40
-
41
- &--stacked {
42
- @include stacked;
43
-
44
- .mdc-tab-scroller {
45
- height: 100%;
46
- }
47
- }
48
- }
49
-
50
- .mdc-tab-scroller {
51
- z-index: 1;
52
- width: 100%;
53
-
54
- &__scroll-area {
55
- height: 100%;
56
- overflow-x: auto;
57
- scrollbar-width: none; // Hide scrollbar in Firefox
14
+ @if $value {
15
+ --#{tab-bar.$prefix}-#{$key}: #{$value};
58
16
  }
59
17
  }
60
18
  }
61
19
 
62
- @mixin host() {
63
- display: block;
64
- overflow: hidden;
20
+ @mixin host {
21
+ @include tab-bar.host;
65
22
  }
66
23
 
67
- @mixin base() {
68
- @include theme.css-custom-property(height, --forge-tab-bar-height, variables.$height);
24
+ @mixin core-styles {
25
+ @include tab-bar.styles;
26
+ }
69
27
 
70
- display: flex;
71
- position: relative;
28
+ @mixin vertical-styles {
29
+ @include tab-bar.vertical-styles;
72
30
  }
73
31
 
74
- @mixin stacked() {
75
- @include theme.css-custom-property(height, --forge-tab-bar-height, variables.$height-stacked);
32
+ @mixin inverted-styles {
33
+ @include tab-bar.inverted-styles;
34
+ }
76
35
 
77
- align-items: center;
36
+ @mixin inverted-vertical-styles {
37
+ @include tab-bar.inverted-vertical-styles;
78
38
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Tyler Technologies, Inc.
4
+ * License: Apache-2.0
5
+ */
6
+ $supported-theme-properties: (
7
+ 'justify',
8
+ 'stretch',
9
+ 'underline-color',
10
+ 'underline-thickness'
11
+ );
@@ -5,7 +5,6 @@
5
5
  */
6
6
  @use './mixins';
7
7
  @use '../../icon-button/forge-icon-button';
8
- @use '@material/tab-scroller/mdc-tab-scroller';
9
8
 
10
9
  @include mixins.core-styles;
11
10
 
@@ -13,7 +12,35 @@
13
12
  @include mixins.host;
14
13
  }
15
14
 
15
+ :host([vertical]) {
16
+ @include mixins.vertical-styles;
17
+ }
18
+
19
+ :host([inverted]:not([vertical])) {
20
+ @include mixins.inverted-styles;
21
+ }
22
+
23
+ :host([inverted][vertical]) {
24
+ @include mixins.inverted-vertical-styles;
25
+ }
26
+
27
+ :host([clustered]) {
28
+ --forge-tab-bar-justify: flex-start;
29
+ --forge-tab-bar-stretch: 0;
30
+ }
31
+
32
+ :host([clustered=start]) {
33
+ --forge-tab-bar-justify: flex-start;
34
+ }
35
+
36
+ :host([clustered=center]) {
37
+ --forge-tab-bar-justify: center;
38
+ }
39
+
40
+ :host([clustered=end]) {
41
+ --forge-tab-bar-justify: flex-end;
42
+ }
43
+
16
44
  :host([hidden]) {
17
45
  display: none;
18
46
  }
19
-
@@ -1,129 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2023 Tyler Technologies, Inc.
4
- * License: Apache-2.0
5
- */
6
- import{b as h,c as A}from"./chunk.GYPPM2D2.js";import{a as s,b as g,f as E,g as D}from"./chunk.YSFUL5AD.js";import{a as f}from"./chunk.NVUMRW44.js";import{a as x}from"./chunk.5V5ABSHI.js";import{a as w,b as k}from"./chunk.DTZFWZPB.js";import{e as I,f as l,k as T}from"./chunk.NK7H3MMM.js";import{t as C}from"./chunk.CFDK4RCW.js";import{k as m}from"./chunk.J2M2MXP2.js";import{a as _,b as y,d as p}from"./chunk.M3QDAYD2.js";var z=`${k}tab`,B={DISABLED:"disabled",ACTIVE:"active",STRETCH:"stretch"},F={BUTTON:"button.forge-tab",RIPPLE:".forge-tab__ripple",INDICATOR:".mdc-tab-indicator",CONTENT:".forge-tab__content",DEFAULT_SLOT:"slot:not([name])"},V={ACTIVE:"forge-tab--active"},H={INTERACTED:`${z}-interacted`},i={elementName:z,attributes:B,selectors:F,classes:V,events:H};var R={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},O={CONTENT_SELECTOR:".mdc-tab-indicator__content"};var n=function(r){s(t,r);function t(e){return r.call(this,g(g({},t.defaultAdapter),e))||this}return Object.defineProperty(t,"cssClasses",{get:function(){return R},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return O},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},t}(E);var L=function(r){s(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.activate=function(){this.adapter.addClass(n.cssClasses.ACTIVE)},t.prototype.deactivate=function(){this.adapter.removeClass(n.cssClasses.ACTIVE)},t}(n);var M=function(r){s(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.activate=function(e){if(!e){this.adapter.addClass(n.cssClasses.ACTIVE);return}var o=this.computeContentClientRect(),a=e.width/o.width,c=e.left-o.left;this.adapter.addClass(n.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+c+"px) scaleX("+a+")"),this.computeContentClientRect(),this.adapter.removeClass(n.cssClasses.NO_TRANSITION),this.adapter.addClass(n.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")},t.prototype.deactivate=function(){this.adapter.removeClass(n.cssClasses.ACTIVE)},t}(n);var N=function(r){s(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(){this.content=this.root.querySelector(n.strings.CONTENT_SELECTOR)},t.prototype.computeContentClientRect=function(){return this.foundation.computeContentClientRect()},t.prototype.getDefaultFoundation=function(){var e=this,o={addClass:function(a){return e.root.classList.add(a)},removeClass:function(a){return e.root.classList.remove(a)},computeContentClientRect:function(){return e.content.getBoundingClientRect()},setContentStyleProperty:function(a,c){e.content.style.setProperty(a,c)}};return this.root.classList.contains(n.cssClasses.FADE)?new L(o):new M(o)},t.prototype.activate=function(e){this.foundation.activate(e)},t.prototype.deactivate=function(){this.foundation.deactivate()},t}(D);var v=class{constructor(t){this._root=t}get root(){return this._root}get unbounded(){return!1}get disabled(){return this._root.disabled}},u=class extends x{constructor(e){super(e);this._buttonElement=l(this._component,i.selectors.BUTTON),this._content=l(this._component,i.selectors.CONTENT),this._rippleElement=l(this._component,i.selectors.RIPPLE),this._tabIndicatorElement=l(this._component,i.selectors.INDICATOR)}initialize(){this._component.setAttribute("role","tab")}initializeRipple(){let e=new v(this._buttonElement),o=y(_({},h.createAdapter(e)),{addClass:c=>this._rippleElement.classList.add(c),removeClass:c=>this._rippleElement.classList.remove(c),updateCssVariable:(c,S)=>this._rippleElement.style.setProperty(c,S)}),a=new A(o);this._rippleInstance=new h(this._buttonElement,a)}destroyRipple(){this._rippleInstance&&this._rippleInstance.destroy()}initializeIndicator(){this._tabIndicator=new N(this._tabIndicatorElement)}destroyIndicator(){this._tabIndicator&&(this._tabIndicator.destroy(),this._tabIndicator=void 0)}activateIndicator(e){this._tabIndicator&&this._tabIndicator.activate(e)}deactivateIndicator(){this._tabIndicator&&this._tabIndicator.deactivate()}computeIndicatorBounds(){return this._tabIndicator?this._tabIndicator.computeContentClientRect():void 0}addButtonListener(e,o){this._buttonElement.addEventListener(e,o)}removeButtonListener(e,o){this._buttonElement.removeEventListener(e,o)}setDisabled(e){this._buttonElement.disabled=e,this.setTabIndex(e?-1:0),this._component.setAttribute("aria-disabled",e.toString())}setActive(e){C(this._buttonElement,e,i.classes.ACTIVE),this.setTabIndex(e?0:-1),this._component.setAttribute("aria-selected",e.toString())}getOffsetLeft(){return this._buttonElement.offsetLeft}getOffsetWidth(){return this._buttonElement.offsetWidth}getContentOffsetLeft(){return this._content.offsetLeft}getContentOffsetWidth(){return this._content.offsetWidth}focus(){this._buttonElement.focus()}setTabIndex(e){this._buttonElement.tabIndex=e}};var b=class{constructor(t){this._adapter=t;this._disabled=!1;this._active=!1;this._stretch=!1;this._clickListener=e=>this._onClick(e)}initialize(){this._adapter.initialize(),this._adapter.initializeRipple(),this._adapter.initializeIndicator(),this._adapter.setDisabled(this._disabled),this._setActive(this._active),this._adapter.addButtonListener("click",this._clickListener)}disconnect(){this._adapter.destroyRipple(),this._adapter.destroyIndicator(),this._adapter.removeButtonListener("click",this._clickListener)}_onClick(t){this._active||this._adapter.emitHostEvent(i.events.INTERACTED,void 0,!0)}_setActive(t,e){this._active=t,this._adapter.setActive(this._active),this._active?this._adapter.activateIndicator(e):this._adapter.deactivateIndicator()}activate(t){this._setActive(!0,t)}deactivate(){this._setActive(!1)}computeIndicatorBounds(){return this._adapter.computeIndicatorBounds()}computeDimensions(){let t=this._adapter.getOffsetWidth(),e=this._adapter.getOffsetLeft(),o=this._adapter.getContentOffsetWidth(),a=this._adapter.getContentOffsetLeft();return{contentLeft:e+a,contentRight:e+a+o,rootLeft:e,rootRight:e+t}}focus(){this._adapter.focus()}setTabIndex(t){this._adapter.setTabIndex(t)}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(i.attributes.DISABLED,this._disabled))}get active(){return this._active}set active(t){this._active!==t&&(this._setActive(t),this._adapter.toggleHostAttribute(i.attributes.ACTIVE,this._active))}get stretch(){return this._stretch}set stretch(t){this._stretch!==t&&(this._stretch=t,this._adapter.toggleHostAttribute(i.attributes.STRETCH,this._stretch))}};var P='<template><button class="forge-tab" type="button" part="button"><slot name="top"></slot><span class="forge-tab__content" part="content"><slot name="leading"></slot><span class="forge-tab__text" part="text"><slot></slot></span><slot name="trailing"></slot></span><span class="mdc-tab-indicator" part="indicator-container"><span class="mdc-tab-indicator__content mdc-tab-indicator__content--underline" part="indicator"></span> </span><span class="forge-tab__ripple" part="ripple-container"></span></button></template>',W='@-webkit-keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-radius-in{from{-webkit-animation-timing-function:cubic-bezier(0.4,0,0.2,1);animation-timing-function:cubic-bezier(0.4,0,0.2,1);-webkit-transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@-webkit-keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-in{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@-webkit-keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}@keyframes mdc-ripple-fg-opacity-out{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:relative;outline:0;overflow:hidden}.mdc-ripple-surface::after,.mdc-ripple-surface::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface::after,.mdc-ripple-surface::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-upgraded--unbounded::after,.mdc-ripple-upgraded--unbounded::before{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before{top:var(--mdc-ripple-top,calc(50% - 50%));left:var(--mdc-ripple-left,calc(50% - 50%));width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover::before,.mdc-ripple-surface:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface::after,.mdc-ripple-surface::before{--mdc-ripple-color:var(--mdc-theme-on-surface)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#3f51b5;border-color:var(--mdc-theme-primary,#3f51b5)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#ffc107;color:var(--mdc-theme-secondary,#ffc107)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:-webkit-box;display:flex;position:absolute;top:0;left:0;-webkit-box-pack:center;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{-webkit-transform-origin:left;transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{-webkit-transition:250ms -webkit-transform cubic-bezier(.4, 0, .2, 1);transition:250ms -webkit-transform cubic-bezier(.4, 0, .2, 1);transition:250ms transform cubic-bezier(.4, 0, .2, 1);transition:250ms transform cubic-bezier(.4, 0, .2, 1),250ms -webkit-transform cubic-bezier(.4, 0, .2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{-webkit-transition:none;transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{-webkit-transition:150ms opacity linear;transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{-webkit-transition-delay:0.1s;transition-delay:0.1s}.forge-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-button-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-button-font-size, .875rem);line-height:2.25rem;line-height:var(--mdc-typography-button-line-height, 2.25rem);font-weight:500;font-weight:var(--mdc-typography-button-font-weight,500);letter-spacing:.0892857143em;letter-spacing:var(--mdc-typography-button-letter-spacing, .0892857143em);text-decoration:none;-webkit-text-decoration:var(--mdc-typography-button-text-decoration,none);text-decoration:var(--mdc-typography-button-text-decoration,none);text-transform:uppercase;text-transform:var(--mdc-typography-button-text-transform,uppercase);color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-light,rgba(0,0,0,.54));position:relative;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-flex:1;flex:1 0 auto;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:0;background:0 0;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1;padding-right:24px;padding-left:24px;height:100%;width:100%}.forge-tab:disabled{color:rgba(0,0,0,.12);color:var(--mdc-theme-text-disabled-on-background,rgba(0,0,0,.12));cursor:not-allowed;pointer-events:none}.forge-tab::-moz-focus-inner{padding:0;border:0}.forge-tab ::slotted([slot=top]){padding-top:8px}.forge-tab ::slotted([slot=leading]),.forge-tab ::slotted([slot=top]),.forge-tab ::slotted([slot=trailing]){-webkit-transition:150ms color linear;transition:150ms color linear;fill:currentColor;width:24px;height:24px;font-size:24px;z-index:2}.forge-tab ::slotted([slot=leading]),.forge-tab ::slotted([slot=trailing]){padding:0 8px}.forge-tab__content{position:relative;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;height:inherit;pointer-events:none}.forge-tab__text{-webkit-transition:150ms color linear;transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.forge-tab--active{color:#3f51b5;color:var(--mdc-theme-primary,#3f51b5)}.forge-tab--active ::slotted([slot=leading]),.forge-tab--active ::slotted([slot=top]),.forge-tab--active ::slotted([slot=trailing]){-webkit-transition-delay:0.1s;transition-delay:0.1s}.forge-tab__ripple{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:transparent;will-change:transform,opacity;position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.forge-tab__ripple::after,.forge-tab__ripple::before{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.forge-tab__ripple::before{-webkit-transition:opacity 15ms linear,background-color 15ms linear;transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.forge-tab__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.forge-tab__ripple.mdc-ripple-upgraded::before{-webkit-transform:scale(var(--mdc-ripple-fg-scale,1));transform:scale(var(--mdc-ripple-fg-scale,1))}.forge-tab__ripple.mdc-ripple-upgraded::after{top:0;left:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center center;transform-origin:center center}.forge-tab__ripple.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top,0);left:var(--mdc-ripple-left,0)}.forge-tab__ripple.mdc-ripple-upgraded--foreground-activation::after{-webkit-animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards;animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.forge-tab__ripple.mdc-ripple-upgraded--foreground-deactivation::after{-webkit-animation:mdc-ripple-fg-opacity-out 150ms;animation:mdc-ripple-fg-opacity-out 150ms;-webkit-transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1));transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.forge-tab__ripple::after,.forge-tab__ripple::before{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.forge-tab__ripple.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size,100%);height:var(--mdc-ripple-fg-size,100%)}.forge-tab__ripple::after,.forge-tab__ripple::before{background-color:#3f51b5;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#3f51b5))}.forge-tab__ripple.mdc-ripple-surface--hover::before,.forge-tab__ripple:hover::before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.forge-tab__ripple.mdc-ripple-upgraded--background-focused::before,.forge-tab__ripple:not(.mdc-ripple-upgraded):focus::before{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.forge-tab__ripple:not(.mdc-ripple-upgraded)::after{-webkit-transition:opacity 150ms linear;transition:opacity 150ms linear}.forge-tab__ripple:not(.mdc-ripple-upgraded):active::after{-webkit-transition-duration:75ms;transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.forge-tab__ripple.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}:host{display:inline-block}:host([hidden]){display:none}:host([stretch]){-webkit-box-flex:1;flex:1}:host([theme=primary]){--mdc-theme-primary:var(--mdc-theme-primary, $defaultValue)}:host([theme=primary]) .forge-tab.forge-tab--active{color:#3f51b5}:host([theme=secondary]){--mdc-theme-primary:var(--mdc-theme-secondary, $defaultValue)}:host([theme=secondary]) .forge-tab.forge-tab--active{color:#ffc107}:host([theme=warning]){--mdc-theme-primary:var(--mdc-theme-warning, $defaultValue)}:host([theme=warning]) .forge-tab.forge-tab--active{color:#d14900}:host([theme=success]){--mdc-theme-primary:var(--mdc-theme-success, $defaultValue)}:host([theme=success]) .forge-tab.forge-tab--active{color:#2e7d32}:host([theme=danger]){--mdc-theme-primary:var(--mdc-theme-danger, $defaultValue)}:host([theme=danger]) .forge-tab.forge-tab--active{color:#b00020}:host([theme=info]){--mdc-theme-primary:var(--mdc-theme-info, $defaultValue)}:host([theme=info]) .forge-tab.forge-tab--active{color:#424242}',d=class extends T{constructor(){super();I(this,P,W),this._foundation=new b(new u(this))}static get observedAttributes(){return[i.attributes.DISABLED,i.attributes.ACTIVE,i.attributes.STRETCH]}connectedCallback(){this._foundation.initialize()}disconnectedCallback(){this._foundation.disconnect()}attributeChangedCallback(e,o,a){switch(e){case i.attributes.DISABLED:this.disabled=m(a);break;case i.attributes.ACTIVE:this.active=m(a);break;case i.attributes.STRETCH:this.stretch=m(a);break}}activate(e){this._foundation.activate(e)}deactivate(){this._foundation.deactivate()}computeIndicatorBounds(){return this._foundation.computeIndicatorBounds()}computeDimensions(){return this._foundation.computeDimensions()}focus(){this._foundation.focus()}setTabIndex(e){this._foundation.setTabIndex(e)}};p([f()],d.prototype,"disabled",2),p([f()],d.prototype,"active",2),p([f()],d.prototype,"stretch",2),d=p([w({name:i.elementName})],d);export{i as a,u as b,b as c,d};
7
- /*! Bundled license information:
8
-
9
- @material/tab-indicator/constants.js:
10
- (**
11
- * @license
12
- * Copyright 2018 Google Inc.
13
- *
14
- * Permission is hereby granted, free of charge, to any person obtaining a copy
15
- * of this software and associated documentation files (the "Software"), to deal
16
- * in the Software without restriction, including without limitation the rights
17
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
- * copies of the Software, and to permit persons to whom the Software is
19
- * furnished to do so, subject to the following conditions:
20
- *
21
- * The above copyright notice and this permission notice shall be included in
22
- * all copies or substantial portions of the Software.
23
- *
24
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30
- * THE SOFTWARE.
31
- *)
32
-
33
- @material/tab-indicator/foundation.js:
34
- (**
35
- * @license
36
- * Copyright 2018 Google Inc.
37
- *
38
- * Permission is hereby granted, free of charge, to any person obtaining a copy
39
- * of this software and associated documentation files (the "Software"), to deal
40
- * in the Software without restriction, including without limitation the rights
41
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
42
- * copies of the Software, and to permit persons to whom the Software is
43
- * furnished to do so, subject to the following conditions:
44
- *
45
- * The above copyright notice and this permission notice shall be included in
46
- * all copies or substantial portions of the Software.
47
- *
48
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
49
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
52
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
53
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
54
- * THE SOFTWARE.
55
- *)
56
-
57
- @material/tab-indicator/fading-foundation.js:
58
- (**
59
- * @license
60
- * Copyright 2018 Google Inc.
61
- *
62
- * Permission is hereby granted, free of charge, to any person obtaining a copy
63
- * of this software and associated documentation files (the "Software"), to deal
64
- * in the Software without restriction, including without limitation the rights
65
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
66
- * copies of the Software, and to permit persons to whom the Software is
67
- * furnished to do so, subject to the following conditions:
68
- *
69
- * The above copyright notice and this permission notice shall be included in
70
- * all copies or substantial portions of the Software.
71
- *
72
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
73
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
74
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
75
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
76
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
77
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
78
- * THE SOFTWARE.
79
- *)
80
-
81
- @material/tab-indicator/sliding-foundation.js:
82
- (**
83
- * @license
84
- * Copyright 2018 Google Inc.
85
- *
86
- * Permission is hereby granted, free of charge, to any person obtaining a copy
87
- * of this software and associated documentation files (the "Software"), to deal
88
- * in the Software without restriction, including without limitation the rights
89
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
90
- * copies of the Software, and to permit persons to whom the Software is
91
- * furnished to do so, subject to the following conditions:
92
- *
93
- * The above copyright notice and this permission notice shall be included in
94
- * all copies or substantial portions of the Software.
95
- *
96
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
97
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
98
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
99
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
100
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
101
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
102
- * THE SOFTWARE.
103
- *)
104
-
105
- @material/tab-indicator/component.js:
106
- (**
107
- * @license
108
- * Copyright 2018 Google Inc.
109
- *
110
- * Permission is hereby granted, free of charge, to any person obtaining a copy
111
- * of this software and associated documentation files (the "Software"), to deal
112
- * in the Software without restriction, including without limitation the rights
113
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
114
- * copies of the Software, and to permit persons to whom the Software is
115
- * furnished to do so, subject to the following conditions:
116
- *
117
- * The above copyright notice and this permission notice shall be included in
118
- * all copies or substantial portions of the Software.
119
- *
120
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
121
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
122
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
123
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
124
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
125
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
126
- * THE SOFTWARE.
127
- *)
128
- */
129
- //# sourceMappingURL=chunk.4QPMNWJ3.js.map