@servicetitan/design-system 12.4.0 → 12.6.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 (58) hide show
  1. package/dist/components/Checkbox/Checkbox.css +3 -3
  2. package/dist/components/Checkbox/Checkbox.css.map +1 -1
  3. package/dist/components/Checkbox/index.css +3 -3
  4. package/dist/components/Checkbox/index.css.map +1 -1
  5. package/dist/components/DatePicker/DatePicker.css +3 -3
  6. package/dist/components/DatePicker/DatePicker.css.map +1 -1
  7. package/dist/components/DatePicker/DatePicker.d.ts +1 -1
  8. package/dist/components/DatePicker/DatePicker.js +2 -2
  9. package/dist/components/DatePicker/DatePicker.js.map +1 -1
  10. package/dist/components/DatePicker/index.css +3 -3
  11. package/dist/components/DatePicker/index.css.map +1 -1
  12. package/dist/components/FormField/FormField.css +19 -6
  13. package/dist/components/FormField/FormField.css.map +1 -1
  14. package/dist/components/FormField/FormField.js +33 -17
  15. package/dist/components/FormField/FormField.js.map +1 -1
  16. package/dist/components/FormField/FormField.test.js +42 -0
  17. package/dist/components/FormField/FormField.test.js.map +1 -1
  18. package/dist/components/FormField/index.css +19 -6
  19. package/dist/components/FormField/index.css.map +1 -1
  20. package/dist/components/Frame/Frame.css +26 -2
  21. package/dist/components/Frame/Frame.css.map +1 -1
  22. package/dist/components/Frame/Frame.js +30 -10
  23. package/dist/components/Frame/Frame.js.map +1 -1
  24. package/dist/components/Frame/index.css +26 -2
  25. package/dist/components/Frame/index.css.map +1 -1
  26. package/dist/components/Page/Page.css +2 -1
  27. package/dist/components/Page/Page.css.map +1 -1
  28. package/dist/components/Page/index.css +2 -1
  29. package/dist/components/Page/index.css.map +1 -1
  30. package/dist/components/Radio/Radio.css +3 -3
  31. package/dist/components/Radio/Radio.css.map +1 -1
  32. package/dist/components/Radio/index.css +3 -3
  33. package/dist/components/Radio/index.css.map +1 -1
  34. package/dist/components/Sidebar/Sidebar.css +1 -1
  35. package/dist/components/Sidebar/SidebarSection.css +1 -1
  36. package/dist/components/Sidebar/index.css +1 -1
  37. package/dist/components/Table/Table.css +3 -3
  38. package/dist/components/Table/Table.css.map +1 -1
  39. package/dist/components/Table/index.css +3 -3
  40. package/dist/components/Table/index.css.map +1 -1
  41. package/dist/components/ToggleSwitch/ToggleSwitch.css +1 -1
  42. package/dist/components/ToggleSwitch/ToggleSwitch.css.map +1 -1
  43. package/dist/components/ToggleSwitch/index.css +1 -1
  44. package/dist/components/ToggleSwitch/index.css.map +1 -1
  45. package/dist/components/index.css +54 -17
  46. package/dist/components/index.css.map +1 -1
  47. package/dist/global/index.css +1 -1
  48. package/dist/global/version.css +1 -1
  49. package/dist/system-light.css +1 -1
  50. package/dist/system-light.min.css +1 -1
  51. package/dist/system.css +55 -18
  52. package/dist/system.css.map +1 -1
  53. package/dist/system.min.css +2 -2
  54. package/dist/themes/index.css +3 -3
  55. package/dist/themes/index.css.map +1 -1
  56. package/dist/themes/kendo/index.css +3 -3
  57. package/dist/themes/kendo/index.css.map +1 -1
  58. package/package.json +8 -10
package/dist/system.css CHANGED
@@ -1,7 +1,7 @@
1
1
  @charset "UTF-8";
2
2
  /* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
3
3
  html {
4
- --anvil-version: "12.4.0";
4
+ --anvil-version: "12.6.0";
5
5
  }
6
6
 
7
7
  /*
@@ -95,13 +95,13 @@ a:focus {
95
95
  padding-bottom: 1px;
96
96
  padding-top: 1px;
97
97
  }
98
- .a-Checkbox + .FormField__helpers {
98
+ .a-Checkbox + .FormField__addons {
99
99
  margin-left: 25px;
100
100
  }
101
- .a-Checkbox.Checkbox--small, .a-Checkbox.Checkbox--small + .FormField__helpers {
101
+ .a-Checkbox.Checkbox--small, .a-Checkbox.Checkbox--small + .FormField__addons {
102
102
  margin-left: 23px;
103
103
  }
104
- .a-Checkbox.Checkbox--large, .a-Checkbox.Checkbox--large + .FormField__helpers {
104
+ .a-Checkbox.Checkbox--large, .a-Checkbox.Checkbox--large + .FormField__addons {
105
105
  margin-left: 31px;
106
106
  }
107
107
 
@@ -18828,25 +18828,38 @@ button.Button--full {
18828
18828
  margin-top: 4px;
18829
18829
  }
18830
18830
 
18831
- .FormField__description {
18831
+ .FormField__addons {
18832
+ /* Set color on root of component. It can be overridden after the @include */
18833
+ color: var(--colorsTextDefault, #141414);
18834
+ /* Make sure font-family goes across entire component */
18835
+ font-family: "Nunito Sans", sans-serif;
18836
+ display: flex;
18837
+ gap: 16px;
18838
+ justify-content: flex-end;
18839
+ }
18840
+
18841
+ .FormField__description,
18842
+ .FormField__counter {
18832
18843
  color: var(--colorsTextSubdued, #606162);
18833
18844
  font-size: 14px;
18834
18845
  line-height: 1.25;
18835
18846
  margin-top: 8px;
18836
18847
  }
18837
- .FormField--ToggleSwitch .FormField__description {
18848
+ .FormField--ToggleSwitch .FormField__description,
18849
+ .FormField--ToggleSwitch .FormField__counter {
18838
18850
  margin-top: 4px;
18839
18851
  }
18840
18852
 
18853
+ .FormField__description {
18854
+ word-break: break-word;
18855
+ }
18856
+
18841
18857
  .FormField__label {
18842
18858
  margin-bottom: 8px;
18843
18859
  }
18844
18860
 
18845
18861
  .FormField__helpers {
18846
- /* Set color on root of component. It can be overridden after the @include */
18847
- color: var(--colorsTextDefault, #141414);
18848
- /* Make sure font-family goes across entire component */
18849
- font-family: "Nunito Sans", sans-serif;
18862
+ flex: 100%;
18850
18863
  }
18851
18864
 
18852
18865
  .FormField--disabled {
@@ -19062,8 +19075,7 @@ button.Button--full {
19062
19075
  font-family: "Nunito Sans", sans-serif;
19063
19076
  display: flex;
19064
19077
  flex-direction: column;
19065
- height: calc(var(--frame-vh, 1vh) * 100);
19066
- min-height: calc(var(--frame-vh, 1vh) * 100);
19078
+ height: 100vh;
19067
19079
  }
19068
19080
 
19069
19081
  .Frame__header {
@@ -19077,6 +19089,30 @@ button.Button--full {
19077
19089
  overflow: hidden;
19078
19090
  }
19079
19091
 
19092
+ /*
19093
+ * Hacky way of handling with mobile Chrome's head and 100vh layout.
19094
+ * To be removed after Chrome to support dvh units.
19095
+ */
19096
+ @media (hover: none) and (pointer: coarse) {
19097
+ @supports (height: 100dvh) {
19098
+ .Frame {
19099
+ height: 100dvh;
19100
+ }
19101
+ }
19102
+ @supports not (height: 100dvh) {
19103
+ html.with-frame-inside {
19104
+ height: 100vh;
19105
+ max-height: -moz-available;
19106
+ max-height: -webkit-fill-available;
19107
+ max-height: stretch;
19108
+ }
19109
+
19110
+ .with-frame-inside,
19111
+ .Frame {
19112
+ height: 100%;
19113
+ }
19114
+ }
19115
+ }
19080
19116
  /* Grid variables */
19081
19117
  /* Grid component */
19082
19118
  .Grid,
@@ -24950,6 +24986,7 @@ button.a-Icon svg {
24950
24986
  width: 100%;
24951
24987
  height: 100%;
24952
24988
  flex: auto;
24989
+ overflow: hidden;
24953
24990
  }
24954
24991
 
24955
24992
  .Content__wrapper {
@@ -25097,9 +25134,9 @@ button.a-Icon svg {
25097
25134
  display: flex;
25098
25135
  position: -webkit-sticky;
25099
25136
  position: sticky;
25100
- z-index: 990;
25101
25137
  bottom: 0;
25102
25138
  flex-shrink: 0;
25139
+ z-index: 798;
25103
25140
  }
25104
25141
  @media (min-width: 480px) {
25105
25142
  .Page__footer {
@@ -25431,13 +25468,13 @@ button.a-Icon svg {
25431
25468
  padding-bottom: 1px;
25432
25469
  padding-top: 1px;
25433
25470
  }
25434
- .a-Radio + .FormField__helpers {
25471
+ .a-Radio + .FormField__addons {
25435
25472
  margin-left: 27px;
25436
25473
  }
25437
- .a-Radio.Radio--small, .a-Radio.Radio--small + .FormField__helpers {
25474
+ .a-Radio.Radio--small, .a-Radio.Radio--small + .FormField__addons {
25438
25475
  margin-left: 23px;
25439
25476
  }
25440
- .a-Radio.Radio--large, .a-Radio.Radio--large + .FormField__helpers {
25477
+ .a-Radio.Radio--large, .a-Radio.Radio--large + .FormField__addons {
25441
25478
  margin-left: 33px;
25442
25479
  }
25443
25480
 
@@ -25995,7 +26032,7 @@ button.a-Icon svg {
25995
26032
  }
25996
26033
  .Sidebar--collapsed .Sidebar__content {
25997
26034
  visibility: hidden;
25998
- overflow: hidden;
26035
+ overflow-x: hidden;
25999
26036
  opacity: 0;
26000
26037
  }
26001
26038
  .Sidebar--collapsed .Sidebar__toggle-button:not(:hover) {
@@ -28007,7 +28044,7 @@ button.a-Icon svg {
28007
28044
  box-sizing: border-box;
28008
28045
  display: inline-block;
28009
28046
  }
28010
- .ToggleSwitch + .FormField__helpers {
28047
+ .ToggleSwitch + .FormField__addons {
28011
28048
  margin-left: 54px;
28012
28049
  }
28013
28050