@tylertech/forge 3.7.0 → 3.8.0-dev.0

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 (112) hide show
  1. package/custom-elements.json +366 -322
  2. package/dist/button/forge-button.css +3 -2
  3. package/dist/dialog/forge-dialog.css +3 -0
  4. package/dist/lib.js +23 -15
  5. package/dist/lib.js.map +4 -4
  6. package/dist/switch/forge-switch.css +1 -1
  7. package/dist/vscode.css-custom-data.json +20 -20
  8. package/dist/vscode.html-custom-data.json +23 -44
  9. package/esm/app-bar/notification-button/app-bar-notification-button-adapter.js +4 -5
  10. package/esm/app-bar/notification-button/app-bar-notification-button.js +6 -3
  11. package/esm/app-bar/profile-button/app-bar-profile-button.js +1 -1
  12. package/esm/autocomplete/autocomplete-adapter.js +1 -1
  13. package/esm/avatar/avatar-constants.d.ts +1 -0
  14. package/esm/avatar/avatar-constants.js +1 -0
  15. package/esm/avatar/avatar.d.ts +1 -1
  16. package/esm/avatar/avatar.js +1 -1
  17. package/esm/badge/badge-component-delegate.js +1 -2
  18. package/esm/badge/badge-constants.d.ts +1 -0
  19. package/esm/badge/badge-constants.js +1 -0
  20. package/esm/badge/badge.d.ts +20 -23
  21. package/esm/badge/badge.js +57 -47
  22. package/esm/badge/index.js +3 -3
  23. package/esm/bottom-sheet/bottom-sheet-constants.d.ts +1 -1
  24. package/esm/bottom-sheet/bottom-sheet.d.ts +3 -1
  25. package/esm/button/button.js +1 -1
  26. package/esm/button-toggle/button-toggle-group/button-toggle-group-adapter.js +1 -2
  27. package/esm/button-toggle/button-toggle-group/button-toggle-group.d.ts +6 -6
  28. package/esm/button-toggle/button-toggle-group/button-toggle-group.js +6 -6
  29. package/esm/card/card-constants.d.ts +1 -0
  30. package/esm/card/card-constants.js +1 -0
  31. package/esm/card/card.d.ts +12 -13
  32. package/esm/card/card.js +25 -34
  33. package/esm/card/index.js +3 -3
  34. package/esm/checkbox/checkbox.d.ts +5 -1
  35. package/esm/chips/chip/chip-constants.d.ts +1 -1
  36. package/esm/core/delegates/base-component-delegate.d.ts +1 -1
  37. package/esm/core/mask/date-input-mask.d.ts +3 -3
  38. package/esm/core/mask/date-input-mask.js +7 -8
  39. package/esm/core/mask/intermediate-time-parser.d.ts +2 -2
  40. package/esm/core/mask/intermediate-time-parser.js +2 -3
  41. package/esm/core/mask/time-input-mask.d.ts +3 -3
  42. package/esm/core/mask/time-input-mask.js +4 -5
  43. package/esm/core/mixins/label/with-label-aware.d.ts +4 -1
  44. package/esm/core/utils/a11y-utils.d.ts +0 -8
  45. package/esm/core/utils/a11y-utils.js +5 -25
  46. package/esm/core/utils/dismissible-stack.d.ts +7 -0
  47. package/esm/core/utils/position-utils.d.ts +1 -2
  48. package/esm/core/utils/position-utils.js +7 -22
  49. package/esm/core/utils/utils.d.ts +8 -0
  50. package/esm/core/utils/utils.js +26 -1
  51. package/esm/date-picker/base/base-date-picker-constants.d.ts +2 -2
  52. package/esm/deprecated/button/deprecated-button.js +1 -1
  53. package/esm/dialog/dialog-core.js +2 -2
  54. package/esm/dialog/dialog.d.ts +2 -0
  55. package/esm/dialog/dialog.js +1 -1
  56. package/esm/expansion-panel/expansion-panel-adapter.d.ts +31 -0
  57. package/esm/expansion-panel/expansion-panel-adapter.js +60 -1
  58. package/esm/expansion-panel/expansion-panel-constants.d.ts +4 -0
  59. package/esm/expansion-panel/expansion-panel-constants.js +4 -1
  60. package/esm/expansion-panel/expansion-panel-core.d.ts +13 -1
  61. package/esm/expansion-panel/expansion-panel-core.js +63 -1
  62. package/esm/expansion-panel/expansion-panel.d.ts +9 -0
  63. package/esm/expansion-panel/expansion-panel.js +14 -0
  64. package/esm/floating-action-button/floating-action-button-constants.d.ts +1 -1
  65. package/esm/icon/icon-constants.d.ts +1 -1
  66. package/esm/icon/icon-registry.d.ts +6 -0
  67. package/esm/icon-button/icon-button-constants.d.ts +1 -1
  68. package/esm/label/label-adapter.js +1 -1
  69. package/esm/list/list-item/list-item.js +1 -1
  70. package/esm/meter/meter/meter.js +2 -1
  71. package/esm/meter/meter-group/meter-group.js +2 -1
  72. package/esm/overlay/base/base-overlay-core.d.ts +3 -3
  73. package/esm/overlay/base/base-overlay.d.ts +3 -3
  74. package/esm/overlay/base/base-overlay.js +11 -1
  75. package/esm/overlay/base/overlay-aware-core.d.ts +3 -3
  76. package/esm/overlay/base/overlay-aware-core.js +2 -1
  77. package/esm/overlay/overlay-adapter.d.ts +2 -2
  78. package/esm/overlay/overlay-adapter.js +6 -14
  79. package/esm/overlay/overlay-constants.d.ts +2 -5
  80. package/esm/overlay/overlay-constants.js +2 -23
  81. package/esm/overlay/overlay-core.d.ts +3 -3
  82. package/esm/overlay/overlay-core.js +13 -3
  83. package/esm/overlay/overlay.d.ts +2 -2
  84. package/esm/overlay/overlay.js +2 -2
  85. package/esm/popover/popover.js +1 -1
  86. package/esm/profile-card/profile-card-core.js +4 -4
  87. package/esm/radio/core/radio-group-manager.d.ts +2 -1
  88. package/esm/radio/radio/radio.d.ts +1 -0
  89. package/esm/split-button/split-button-constants.d.ts +2 -2
  90. package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
  91. package/esm/stepper/stepper/stepper-constants.d.ts +15 -1
  92. package/esm/switch/switch.d.ts +5 -1
  93. package/esm/switch/switch.js +1 -1
  94. package/esm/table/table-core.js +10 -2
  95. package/esm/table/table-utils.js +8 -4
  96. package/esm/time-picker/time-picker-constants.d.ts +2 -2
  97. package/esm/toast/toast-constants.d.ts +1 -1
  98. package/esm/tooltip/tooltip-constants.d.ts +1 -1
  99. package/package.json +4 -4
  100. package/sass/badge/badge.scss +10 -10
  101. package/sass/button/_core.scss +1 -0
  102. package/sass/calendar/_variables.scss +3 -2
  103. package/sass/card/card.scss +1 -1
  104. package/sass/core/styles/tokens/button/_tokens.scss +2 -2
  105. package/sass/core/styles/tokens/slider/_tokens.scss +10 -4
  106. package/sass/core/styles/tokens/switch/_tokens.scss +1 -1
  107. package/sass/dialog/dialog.scss +8 -0
  108. package/sass/dialog/forge-dialog.scss +4 -0
  109. package/sass/linear-progress/linear-progress.scss +7 -3
  110. package/sass/list/list-item/list-item.scss +1 -1
  111. package/sass/popover/popover.scss +0 -1
  112. package/sass/slider/_core.scss +2 -3
@@ -19,7 +19,7 @@ $tokens: (
19
19
  text-color: utils.module-ref(button, text-color, primary-color),
20
20
  disabled-color: utils.module-val(button, disabled-color, theme.variable(surface-container)),
21
21
  padding: utils.module-val(button, padding, spacing.variable(medium)),
22
- display: utils.module-val(button, display, inline-flex),
22
+ display: utils.module-val(button, display, inline-grid),
23
23
  justify: utils.module-val(button, justify, center),
24
24
  shape: utils.module-val(button, shape, shape.variable(medium)),
25
25
  // Base
@@ -33,7 +33,7 @@ $tokens: (
33
33
  shape-start-end-radius: utils.module-ref(button, shape-start-end-radius, shape),
34
34
  shape-end-start-radius: utils.module-ref(button, shape-end-start-radius, shape),
35
35
  shape-end-end-radius: utils.module-ref(button, shape-end-end-radius, shape),
36
- padding-block: utils.module-ref(button, padding-block, padding),
36
+ padding-block: utils.module-ref(button, padding-block, 0),
37
37
  padding-inline: utils.module-ref(button, padding-inline, padding),
38
38
  background: utils.module-val(button, background, transparent),
39
39
  hover-background: utils.module-ref(button, hover-background, background),
@@ -37,10 +37,16 @@ $tokens: (
37
37
  with-overlap-handle-outline-width: utils.module-val(slider, with-overlap-handle-outline-width, 1px),
38
38
  with-tick-marks-active-container-color: utils.module-val(slider, with-tick-marks-active-container-color, theme.variable(on-primary)),
39
39
  with-tick-marks-container-size: utils.module-val(slider, with-tick-marks-container-size, 2px),
40
- with-tick-marks-disabled-active-container-color:
41
- utils.module-val(slider, with-tick-marks-disabled-active-container-color, theme.variable(on-surface-container-high)),
42
- with-tick-marks-disabled-inactive-container-color:
43
- utils.module-val(slider, with-tick-marks-disabled-inactive-container-color, theme.variable(on-surface-container-high)),
40
+ with-tick-marks-disabled-active-container-color: utils.module-val(
41
+ slider,
42
+ with-tick-marks-disabled-active-container-color,
43
+ theme.variable(on-surface-container-high)
44
+ ),
45
+ with-tick-marks-disabled-inactive-container-color: utils.module-val(
46
+ slider,
47
+ with-tick-marks-disabled-inactive-container-color,
48
+ theme.variable(on-surface-container-high)
49
+ ),
44
50
  with-tick-marks-inactive-container-color: utils.module-val(slider, with-tick-marks-inactive-container-color, theme.variable(primary))
45
51
  ) !default;
46
52
 
@@ -63,7 +63,7 @@ $tokens: (
63
63
  state-layer-dense-width: utils.module-ref(switch, state-layer-dense-width, state-layer-dense-size),
64
64
  state-layer-dense-height: utils.module-ref(switch, state-layer-dense-height, state-layer-dense-size),
65
65
  // Disabled
66
- disabled-opacity: utils.module-val(switch, disabled-opacity, theme.emphasis(medium-low)),
66
+ disabled-opacity: utils.module-val(switch, disabled-opacity, theme.emphasis(medium)),
67
67
  // Active
68
68
  handle-active-on-color: utils.module-ref(switch, handle-active-on-color, handle-on-color),
69
69
  handle-active-off-color: utils.module-ref(switch, handle-active-off-color, handle-off-color),
@@ -36,6 +36,14 @@ $can-animate: '[visible]:not([animation-type=none])';
36
36
  display: none;
37
37
  }
38
38
 
39
+ //
40
+ // Slotted
41
+ //
42
+
43
+ ::slotted(forge-scaffold) {
44
+ height: auto;
45
+ }
46
+
39
47
  //
40
48
  // Base
41
49
  //
@@ -73,6 +73,10 @@
73
73
  transition-property: display, opacity, overlay, scale;
74
74
  transition-behavior: allow-discrete;
75
75
 
76
+ > forge-scaffold {
77
+ height: auto;
78
+ }
79
+
76
80
  &--fullscreen {
77
81
  @include core.fullscreen-dialog-base;
78
82
  @include core.fullscreen-surface;
@@ -35,9 +35,13 @@ $_host-tokens: [track-height];
35
35
  // State vars
36
36
  #{declare(track-dot-size)}: calc(#{token(track-height)} / 2);
37
37
  #{declare(track-background-width)}: calc(#{token(track-dot-size, custom)} * 5);
38
- #{declare(track-background)}: 0 / #{token(track-background-width, custom)} 100% radial-gradient(circle at calc(#{token(track-dot-size, custom)} * 2), #{token(
39
- track-color
40
- )} 0, #{token(track-color)} #{token(track-dot-size, custom)}, transparent #{token(track-dot-size, custom)});
38
+ #{declare(track-background)}: 0 / #{token(track-background-width, custom)} 100%
39
+ radial-gradient(
40
+ circle at calc(#{token(track-dot-size, custom)} * 2),
41
+ #{token(track-color)} 0,
42
+ #{token(track-color)} #{token(track-dot-size, custom)},
43
+ transparent #{token(track-dot-size, custom)}
44
+ );
41
45
  }
42
46
 
43
47
  .forge-linear-progress {
@@ -157,7 +157,7 @@ slot[name='tertiary-text'] {
157
157
  }
158
158
 
159
159
  // Button slotted elements
160
- ::slotted(:is(button, [role='button'][tabindex], [forge-list-item-button])) {
160
+ ::slotted(:is(button:not([slot]), [forge-list-item-button])) {
161
161
  @include button;
162
162
  }
163
163
 
@@ -318,7 +318,6 @@ forge-overlay[clipped-y] {
318
318
  .forge-popover {
319
319
  height: auto;
320
320
  min-height: 0;
321
- max-height: 100vh;
322
321
  overflow-y: auto;
323
322
  }
324
323
  }
@@ -45,9 +45,8 @@ $_active-track-end-clip: calc(#{$_active-track-end-offset} + #{$_active-track-ma
45
45
  // Clip the inputs to the space left/right of the center point between the
46
46
  // values so the right input gets pointer events.
47
47
  $_clip-to-start: calc(
48
- #{token(state-layer-size)} / 2 + (100% - #{token(state-layer-size)}) * (#{token(start-fraction, custom)} + ((
49
- #{token(end-fraction, custom)} - #{token(start-fraction, custom)}
50
- ) / 2))
48
+ #{token(state-layer-size)} / 2 + (100% - #{token(state-layer-size)}) *
49
+ (#{token(start-fraction, custom)} + ((#{token(end-fraction, custom)} - #{token(start-fraction, custom)}) / 2))
51
50
  );
52
51
 
53
52
  $_clip-to-end: calc(100% - $_clip-to-start);