@servicetitan/design-system 11.4.1 → 11.4.2

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 (146) hide show
  1. package/dist/components/ActionMenu/ActionMenu.css +2 -2
  2. package/dist/components/ActionMenu/index.css +2 -2
  3. package/dist/components/Announcement/Announcement.css +1 -1
  4. package/dist/components/Announcement/index.css +1 -1
  5. package/dist/components/AnvilSelect/AnvilSelect.css +1 -1
  6. package/dist/components/AnvilSelect/components/Trigger.css +2 -2
  7. package/dist/components/AnvilSelect/index.css +2 -2
  8. package/dist/components/Avatar/Avatar.css +1 -1
  9. package/dist/components/Avatar/index.css +1 -1
  10. package/dist/components/BackLink/BackLink.css +1 -1
  11. package/dist/components/BackLink/index.css +1 -1
  12. package/dist/components/Backdrop/Backdrop.css +1 -1
  13. package/dist/components/Backdrop/index.css +1 -1
  14. package/dist/components/Banner/Banner.css +2 -2
  15. package/dist/components/Banner/Banner.css.map +1 -1
  16. package/dist/components/Banner/index.css +2 -2
  17. package/dist/components/Banner/index.css.map +1 -1
  18. package/dist/components/BodyText/BodyText.css +1 -1
  19. package/dist/components/BodyText/index.css +1 -1
  20. package/dist/components/Breadcrumb/Breadcrumb.css +1 -1
  21. package/dist/components/Breadcrumb/index.css +1 -1
  22. package/dist/components/Button/Button.css +1 -1
  23. package/dist/components/Button/Button.css.map +1 -1
  24. package/dist/components/Button/index.css +1 -1
  25. package/dist/components/Button/index.css.map +1 -1
  26. package/dist/components/Card/Card.css +1 -1
  27. package/dist/components/Card/index.css +1 -1
  28. package/dist/components/Checkbox/Checkbox.css +1 -1
  29. package/dist/components/Checkbox/index.css +1 -1
  30. package/dist/components/Collapsible/Collapsible.css +1 -1
  31. package/dist/components/Collapsible/index.css +1 -1
  32. package/dist/components/ColorPicker/ColorPicker.css +1 -1
  33. package/dist/components/ColorPicker/index.css +1 -1
  34. package/dist/components/Container/Container.css +1 -1
  35. package/dist/components/Container/index.css +1 -1
  36. package/dist/components/DataList/DataList.css +1 -1
  37. package/dist/components/DataList/index.css +1 -1
  38. package/dist/components/DatePicker/DatePicker.css +4 -4
  39. package/dist/components/DatePicker/index.css +4 -4
  40. package/dist/components/DateRangePicker/DateRangePicker.css +1 -1
  41. package/dist/components/DateRangePicker/index.css +1 -1
  42. package/dist/components/Divider/Divider.css +2 -2
  43. package/dist/components/Divider/index.css +2 -2
  44. package/dist/components/Drawer/Drawer.css +1 -1
  45. package/dist/components/Drawer/index.css +1 -1
  46. package/dist/components/Eyebrow/Eyebrow.css +1 -1
  47. package/dist/components/Eyebrow/index.css +1 -1
  48. package/dist/components/FilePicker/FilePicker.css +2 -2
  49. package/dist/components/FilePicker/index.css +2 -2
  50. package/dist/components/FilterButton/FilterButton.css +1 -1
  51. package/dist/components/FilterButton/index.css +1 -1
  52. package/dist/components/FormField/FormField.css +1 -1
  53. package/dist/components/FormField/index.css +1 -1
  54. package/dist/components/FormGroup/FormGroup.css +1 -1
  55. package/dist/components/FormGroup/index.css +1 -1
  56. package/dist/components/Frame/Frame.css +1 -1
  57. package/dist/components/Frame/index.css +1 -1
  58. package/dist/components/Grid/Grid.css +1 -1
  59. package/dist/components/Grid/index.css +1 -1
  60. package/dist/components/Headline/Headline.css +1 -1
  61. package/dist/components/Headline/index.css +1 -1
  62. package/dist/components/Icon/Icon.css +305 -2
  63. package/dist/components/Icon/Icon.css.map +1 -1
  64. package/dist/components/Icon/Icon.js +2 -1
  65. package/dist/components/Icon/Icon.js.map +1 -1
  66. package/dist/components/Icon/index.css +305 -2
  67. package/dist/components/Icon/index.css.map +1 -1
  68. package/dist/components/Input/Input.css +10 -6
  69. package/dist/components/Input/Input.css.map +1 -1
  70. package/dist/components/Input/Input.js +15 -10
  71. package/dist/components/Input/Input.js.map +1 -1
  72. package/dist/components/Input/index.css +10 -6
  73. package/dist/components/Input/index.css.map +1 -1
  74. package/dist/components/Label/Label.css +1 -1
  75. package/dist/components/Label/index.css +1 -1
  76. package/dist/components/Link/Link.css +1 -1
  77. package/dist/components/Link/index.css +1 -1
  78. package/dist/components/Modal/Modal.css +1 -1
  79. package/dist/components/Modal/index.css +1 -1
  80. package/dist/components/OptionList/OptionList.css +1 -1
  81. package/dist/components/OptionList/index.css +1 -1
  82. package/dist/components/Page/Page.css +1 -1
  83. package/dist/components/Page/index.css +1 -1
  84. package/dist/components/Popover/Popover.css +1 -1
  85. package/dist/components/Popover/index.css +1 -1
  86. package/dist/components/ProgressTracker/ProgressTracker.css +1 -1
  87. package/dist/components/ProgressTracker/index.css +1 -1
  88. package/dist/components/Radio/Radio.css +1 -1
  89. package/dist/components/Radio/index.css +1 -1
  90. package/dist/components/Scroll/Scroll.css +1 -1
  91. package/dist/components/Scroll/index.css +1 -1
  92. package/dist/components/SideNav/SideNav.css +1 -1
  93. package/dist/components/SideNav/SideNavItem.css +1 -1
  94. package/dist/components/SideNav/index.css +1 -1
  95. package/dist/components/Sidebar/Sidebar.css +1 -1
  96. package/dist/components/Sidebar/SidebarSection.css +1 -1
  97. package/dist/components/Sidebar/index.css +1 -1
  98. package/dist/components/Snackbar/Snackbar.css +1 -1
  99. package/dist/components/Snackbar/index.css +1 -1
  100. package/dist/components/StatusLight/StatusLight.css +1 -1
  101. package/dist/components/StatusLight/index.css +1 -1
  102. package/dist/components/Tab/Tab.css +1 -1
  103. package/dist/components/Tab/index.css +1 -1
  104. package/dist/components/TabGroup/TabGroup.css +1 -1
  105. package/dist/components/TabGroup/index.css +1 -1
  106. package/dist/components/Table/Table.css +107 -36
  107. package/dist/components/Table/Table.css.map +1 -1
  108. package/dist/components/Table/index.css +107 -36
  109. package/dist/components/Table/index.css.map +1 -1
  110. package/dist/components/Tag/Tag.css +1 -1
  111. package/dist/components/Tag/index.css +1 -1
  112. package/dist/components/Takeover/Takeover.css +1 -1
  113. package/dist/components/Takeover/TakeoverFooter.css +1 -1
  114. package/dist/components/Takeover/TakeoverSection.css +1 -1
  115. package/dist/components/Takeover/index.css +1 -1
  116. package/dist/components/Text/Text.css +1 -1
  117. package/dist/components/Text/index.css +1 -1
  118. package/dist/components/TextArea/TextArea.css +1 -1
  119. package/dist/components/TextArea/index.css +1 -1
  120. package/dist/components/Thumbnail/Thumbnail.css +1 -1
  121. package/dist/components/Thumbnail/index.css +1 -1
  122. package/dist/components/TimePicker/TimePicker.css +2 -2
  123. package/dist/components/TimePicker/index.css +2 -2
  124. package/dist/components/Toast/Toast.css +1 -1
  125. package/dist/components/Toast/ToastGroup.css +2 -2
  126. package/dist/components/Toast/index.css +2 -2
  127. package/dist/components/ToggleSwitch/ToggleSwitch.css +1 -1
  128. package/dist/components/ToggleSwitch/index.css +1 -1
  129. package/dist/components/Tooltip/Tooltip.css +1 -1
  130. package/dist/components/Tooltip/index.css +1 -1
  131. package/dist/components/index.css +188 -100
  132. package/dist/components/index.css.map +1 -1
  133. package/dist/global/index.css +1 -1
  134. package/dist/global/version.css +1 -1
  135. package/dist/internal/Popper/Popper.css +1 -1
  136. package/dist/internal/Popper/index.css +1 -1
  137. package/dist/internal/index.css +1 -1
  138. package/dist/system-light.css +2 -2
  139. package/dist/system-light.min.css +1 -1
  140. package/dist/system.css +190 -102
  141. package/dist/system.css.map +1 -1
  142. package/dist/system.min.css +2 -2
  143. package/dist/themes/index.css +3 -3
  144. package/dist/themes/kendo/index.css +2 -2
  145. package/dist/themes/semantic/index.css +1 -1
  146. package/package.json +8 -8
@@ -1,7 +1,7 @@
1
1
  /* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
2
2
  .FilePicker {
3
3
  /* Set color on root of component. It can be overridden after the @include */
4
- color: var(--colorsTextDefault, #040404);
4
+ color: var(--colorsTextDefault, #141414);
5
5
  /* Make sure font-family goes across entire component */
6
6
  font-family: "Nunito Sans", sans-serif;
7
7
  }
@@ -12,7 +12,7 @@
12
12
 
13
13
  .FilePicker__File {
14
14
  /* Set color on root of component. It can be overridden after the @include */
15
- color: var(--colorsTextDefault, #040404);
15
+ color: var(--colorsTextDefault, #141414);
16
16
  /* Make sure font-family goes across entire component */
17
17
  font-family: "Nunito Sans", sans-serif;
18
18
  -webkit-font-smoothing: antialiased;
@@ -1,7 +1,7 @@
1
1
  /* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
2
2
  .FilterButton {
3
3
  /* Set color on root of component. It can be overridden after the @include */
4
- color: var(--colorsTextDefault, #040404);
4
+ color: var(--colorsTextDefault, #141414);
5
5
  /* Make sure font-family goes across entire component */
6
6
  font-family: "Nunito Sans", sans-serif;
7
7
  display: inline-flex;
@@ -1,7 +1,7 @@
1
1
  /* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
2
2
  .FilterButton {
3
3
  /* Set color on root of component. It can be overridden after the @include */
4
- color: var(--colorsTextDefault, #040404);
4
+ color: var(--colorsTextDefault, #141414);
5
5
  /* Make sure font-family goes across entire component */
6
6
  font-family: "Nunito Sans", sans-serif;
7
7
  display: inline-flex;
@@ -146,7 +146,7 @@
146
146
 
147
147
  .FormField__helpers {
148
148
  /* Set color on root of component. It can be overridden after the @include */
149
- color: var(--colorsTextDefault, #040404);
149
+ color: var(--colorsTextDefault, #141414);
150
150
  /* Make sure font-family goes across entire component */
151
151
  font-family: "Nunito Sans", sans-serif;
152
152
  }
@@ -146,7 +146,7 @@
146
146
 
147
147
  .FormField__helpers {
148
148
  /* Set color on root of component. It can be overridden after the @include */
149
- color: var(--colorsTextDefault, #040404);
149
+ color: var(--colorsTextDefault, #141414);
150
150
  /* Make sure font-family goes across entire component */
151
151
  font-family: "Nunito Sans", sans-serif;
152
152
  }
@@ -3,7 +3,7 @@
3
3
  .FormGroup {
4
4
  /* stylelint-enable */
5
5
  /* Set color on root of component. It can be overridden after the @include */
6
- color: var(--colorsTextDefault, #040404);
6
+ color: var(--colorsTextDefault, #141414);
7
7
  /* Make sure font-family goes across entire component */
8
8
  font-family: "Nunito Sans", sans-serif;
9
9
  display: flex;
@@ -3,7 +3,7 @@
3
3
  .FormGroup {
4
4
  /* stylelint-enable */
5
5
  /* Set color on root of component. It can be overridden after the @include */
6
- color: var(--colorsTextDefault, #040404);
6
+ color: var(--colorsTextDefault, #141414);
7
7
  /* Make sure font-family goes across entire component */
8
8
  font-family: "Nunito Sans", sans-serif;
9
9
  display: flex;
@@ -1,7 +1,7 @@
1
1
  /* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
2
2
  .Frame {
3
3
  /* Set color on root of component. It can be overridden after the @include */
4
- color: var(--colorsTextDefault, #040404);
4
+ color: var(--colorsTextDefault, #141414);
5
5
  /* Make sure font-family goes across entire component */
6
6
  font-family: "Nunito Sans", sans-serif;
7
7
  height: 100vh;
@@ -1,7 +1,7 @@
1
1
  /* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
2
2
  .Frame {
3
3
  /* Set color on root of component. It can be overridden after the @include */
4
- color: var(--colorsTextDefault, #040404);
4
+ color: var(--colorsTextDefault, #141414);
5
5
  /* Make sure font-family goes across entire component */
6
6
  font-family: "Nunito Sans", sans-serif;
7
7
  height: 100vh;
@@ -9,7 +9,7 @@
9
9
 
10
10
  .Grid {
11
11
  /* Set color on root of component. It can be overridden after the @include */
12
- color: var(--colorsTextDefault, #040404);
12
+ color: var(--colorsTextDefault, #141414);
13
13
  /* Make sure font-family goes across entire component */
14
14
  font-family: "Nunito Sans", sans-serif;
15
15
  display: flex;
@@ -9,7 +9,7 @@
9
9
 
10
10
  .Grid {
11
11
  /* Set color on root of component. It can be overridden after the @include */
12
- color: var(--colorsTextDefault, #040404);
12
+ color: var(--colorsTextDefault, #141414);
13
13
  /* Make sure font-family goes across entire component */
14
14
  font-family: "Nunito Sans", sans-serif;
15
15
  display: flex;
@@ -1,7 +1,7 @@
1
1
  /* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
2
2
  .Headline {
3
3
  /* Set color on root of component. It can be overridden after the @include */
4
- color: var(--colorsTextDefault, #040404);
4
+ color: var(--colorsTextDefault, #141414);
5
5
  /* Make sure font-family goes across entire component */
6
6
  font-family: "Nunito Sans", sans-serif;
7
7
  font-weight: 700;
@@ -1,7 +1,7 @@
1
1
  /* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
2
2
  .Headline {
3
3
  /* Set color on root of component. It can be overridden after the @include */
4
- color: var(--colorsTextDefault, #040404);
4
+ color: var(--colorsTextDefault, #141414);
5
5
  /* Make sure font-family goes across entire component */
6
6
  font-family: "Nunito Sans", sans-serif;
7
7
  font-weight: 700;
@@ -1,4 +1,306 @@
1
- .a-Icon {
1
+ /* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
2
+ .Button {
3
+ /* Set color on root of component. It can be overridden after the @include */
4
+ color: var(--colorsTextDefault, #141414);
5
+ /* Make sure font-family goes across entire component */
6
+ font-family: "Nunito Sans", sans-serif;
7
+ -webkit-font-smoothing: antialiased;
8
+ -moz-osx-font-smoothing: grayscale;
9
+ align-items: center;
10
+ background-color: var(--colorsSurfaceGrey, #eeeeee);
11
+ border: 0;
12
+ border-radius: 3px;
13
+ box-sizing: border-box;
14
+ color: var(--colorsTextOnGrey, #444445);
15
+ cursor: pointer;
16
+ display: inline-flex;
17
+ font-size: 16px;
18
+ font-weight: 600;
19
+ justify-content: center;
20
+ line-height: 1;
21
+ margin: 0;
22
+ outline: none;
23
+ padding: 12px 16px;
24
+ text-align: center;
25
+ text-decoration: none;
26
+ text-shadow: none;
27
+ transition: background cubic-bezier(0.4, 0, 0.2, 1) 100ms 0ms, color cubic-bezier(0.4, 0, 0.2, 1) 100ms 0ms;
28
+ user-select: none;
29
+ position: relative;
30
+ }
31
+ .Button::before {
32
+ content: "";
33
+ position: absolute;
34
+ width: 100%;
35
+ height: 100%;
36
+ border-radius: inherit;
37
+ top: 0;
38
+ left: 0;
39
+ }
40
+ .Button:hover {
41
+ text-decoration: none;
42
+ }
43
+ .Button:hover::before {
44
+ background-color: var(--colorsHoverDefault, rgba(4, 4, 4, 0.08));
45
+ }
46
+ .Button:active::before, .Button.Button--selected::before {
47
+ background-color: var(--colorsActiveDefault, rgba(4, 4, 4, 0.2));
48
+ }
49
+ .Button.Button--focus-visible:focus {
50
+ outline: 0;
51
+ box-shadow: 0 0 0 3px var(--colorsFocusRingPrimary, #a9d1ff);
52
+ }
53
+ .Button.Button--outline {
54
+ background-color: transparent;
55
+ box-shadow: inset 0 0 0 1px var(--colorsBorderDefault, #444445);
56
+ }
57
+ .Button.Button--outline:hover::before {
58
+ background-color: var(--colorsHoverOnGrey, rgba(4, 4, 4, 0.08));
59
+ }
60
+ .Button.Button--outline:active::before, .Button.Button--outline.Button--selected::before {
61
+ background-color: var(--colorsActiveOnGrey, rgba(4, 4, 4, 0.16));
62
+ }
63
+ .Button.Button--outline.Button--focus-visible:focus {
64
+ box-shadow: inset 0 0 0 1px var(--colorsBorderDefault, #444445), 0 0 0 3px var(--colorsFocusRingPrimary, #a9d1ff);
65
+ }
66
+ .Button.Button--subtle {
67
+ background-color: transparent;
68
+ }
69
+ .Button.Button--subtle:hover::before {
70
+ background-color: var(--colorsHoverOnGrey, rgba(4, 4, 4, 0.08));
71
+ }
72
+ .Button.Button--subtle:active::before, .Button.Button--subtle.Button--selected::before {
73
+ background-color: var(--colorsActiveOnGrey, rgba(4, 4, 4, 0.16));
74
+ }
75
+
76
+ button.Button {
77
+ font-size: 16px;
78
+ line-height: 1;
79
+ }
80
+
81
+ .Button.Button--icon-only {
82
+ padding: 8px;
83
+ line-height: 1.5;
84
+ }
85
+ .Button.Button--icon-only.Button--xsmall {
86
+ line-height: 0.8;
87
+ }
88
+ .Button.Button--icon-only.Button--xsmall svg {
89
+ height: 20px;
90
+ width: 20px;
91
+ }
92
+
93
+ .Button--icon-only svg,
94
+ .Button--icon-only .Button__icon > :not(i) {
95
+ height: 24px;
96
+ width: 24px;
97
+ display: block;
98
+ }
99
+
100
+ .Button__content {
101
+ align-items: center;
102
+ display: flex;
103
+ justify-content: center;
104
+ pointer-events: none;
105
+ width: 100%;
106
+ }
107
+
108
+ .Button--grey:hover, .Button--grey:active, .Button--grey.Button--selected, .Button--grey:focus, .Button--grey:focus:active {
109
+ color: var(--colorsTextOnGrey, #444445);
110
+ }
111
+
112
+ .Button--blue {
113
+ background-color: var(--colorsSurfacePrimary, #2270ee);
114
+ color: var(--colorsTextOnPrimary, #ffffff);
115
+ }
116
+ .Button--blue:hover::before {
117
+ background-color: var(--colorsHoverOnPrimary, rgba(255, 255, 255, 0.16));
118
+ }
119
+ .Button--blue:active::before, .Button--blue.Button--selected::before {
120
+ background-color: var(--colorsActiveOnPrimary, rgba(4, 4, 4, 0.08));
121
+ }
122
+ .Button--blue.Button--outline {
123
+ background-color: transparent;
124
+ box-shadow: inset 0 0 0 1px var(--colorsBorderPrimary, #2270ee);
125
+ color: var(--colorsTextPrimary, #2270ee);
126
+ }
127
+ .Button--blue.Button--outline:hover::before {
128
+ background-color: var(--colorsHoverPrimary, rgba(34, 112, 238, 0.08));
129
+ }
130
+ .Button--blue.Button--outline.Button--focus-visible:focus {
131
+ box-shadow: inset 0 0 0 1px var(--colorsBorderPrimary, #2270ee), 0 0 0 3px var(--colorsFocusRingPrimary, #a9d1ff);
132
+ }
133
+ .Button--blue.Button--outline:active::before, .Button--blue.Button--outline.Button--selected::before {
134
+ background-color: var(--colorsActivePrimary, rgba(0, 76, 195, 0.2));
135
+ }
136
+ .Button--blue.Button--subtle {
137
+ background-color: transparent;
138
+ color: var(--colorsTextPrimary, #2270ee);
139
+ }
140
+ .Button--blue.Button--subtle:hover::before {
141
+ background-color: var(--colorsHoverPrimary, rgba(34, 112, 238, 0.08));
142
+ }
143
+ .Button--blue.Button--subtle:active::before, .Button--blue.Button--subtle.Button--selected::before {
144
+ background-color: var(--colorsActivePrimary, rgba(0, 76, 195, 0.2));
145
+ }
146
+
147
+ .Button--red {
148
+ background-color: var(--colorsSurfaceCritical, #e63717);
149
+ color: var(--colorsTextOnCritical, #ffffff);
150
+ }
151
+ .Button--red:hover::before {
152
+ background-color: var(--colorsHoverOnCritical, rgba(255, 255, 255, 0.16));
153
+ }
154
+ .Button--red:active::before, .Button--red.Button--selected::before {
155
+ background-color: var(--colorsActiveOnCritical, rgba(4, 4, 4, 0.16));
156
+ }
157
+ .Button--red.Button--focus-visible:focus {
158
+ box-shadow: 0 0 0 3px var(--colorsFocusRingCritical, #ffb2a0);
159
+ }
160
+ .Button--red.Button--outline {
161
+ background-color: transparent;
162
+ box-shadow: inset 0 0 0 1px var(--colorsBorderCritical, #e63717);
163
+ color: var(--colorsTextCritical, #e63717);
164
+ }
165
+ .Button--red.Button--outline:hover::before {
166
+ background-color: var(--colorsHoverCritical, rgba(230, 55, 23, 0.1));
167
+ }
168
+ .Button--red.Button--outline:active::before, .Button--red.Button--outline.Button--selected::before {
169
+ background-color: var(--colorsActiveCritical, rgba(230, 55, 23, 0.3));
170
+ }
171
+ .Button--red.Button--outline.Button--focus-visible:focus {
172
+ box-shadow: inset 0 0 0 1px var(--colorsBorderCritical, #e63717), 0 0 0 3px var(--colorsFocusRingCritical, #ffb2a0);
173
+ }
174
+ .Button--red.Button--subtle {
175
+ background-color: transparent;
176
+ color: var(--colorsTextCritical, #e63717);
177
+ }
178
+ .Button--red.Button--subtle:hover::before {
179
+ background-color: var(--colorsHoverCritical, rgba(230, 55, 23, 0.1));
180
+ }
181
+ .Button--red.Button--subtle:active::before, .Button--red.Button--subtle.Button--selected::before {
182
+ background-color: var(--colorsActiveCritical, rgba(230, 55, 23, 0.3));
183
+ }
184
+
185
+ .Button--disabled, .Button--disabled.Button--outline, .Button--disabled.Button--subtle {
186
+ background: var(--colorsSurfaceGrey, #eeeeee);
187
+ color: var(--colorsTextOnGrey, #444445);
188
+ opacity: 0.4;
189
+ }
190
+ .Button--disabled svg, .Button--disabled.Button--outline svg, .Button--disabled.Button--subtle svg {
191
+ opacity: 0.6;
192
+ }
193
+ .Button--disabled.Button--outline, .Button--disabled.Button--subtle {
194
+ background: transparent;
195
+ }
196
+ .Button--disabled.Button--outline {
197
+ box-shadow: inset 0 0 0 1px var(--colorsBorderDefault, #444445);
198
+ }
199
+
200
+ .Button--inactive {
201
+ pointer-events: none;
202
+ }
203
+
204
+ .Button--xsmall {
205
+ font-size: 14px;
206
+ padding: 6px 12px;
207
+ }
208
+ .Button--xsmall.Button--icon-only {
209
+ font-size: 20px;
210
+ padding: 3px;
211
+ }
212
+
213
+ button.Button--xsmall {
214
+ font-size: 14px;
215
+ }
216
+
217
+ .Button--small {
218
+ padding: 8px 16px;
219
+ }
220
+ .Button--small.Button--icon-only {
221
+ padding: 4px;
222
+ }
223
+
224
+ .Button--large {
225
+ padding: 16px 20px;
226
+ }
227
+ .Button--large.Button--icon-only {
228
+ padding: 12px;
229
+ }
230
+
231
+ .Button--full {
232
+ display: block;
233
+ }
234
+
235
+ button.Button--full {
236
+ width: 100%;
237
+ }
238
+
239
+ @keyframes spin {
240
+ to {
241
+ transform: rotate(360deg);
242
+ }
243
+ }
244
+ .Button--loading {
245
+ opacity: 0.6;
246
+ pointer-events: none;
247
+ position: relative;
248
+ }
249
+ .Button--loading .Button__content {
250
+ opacity: 0;
251
+ }
252
+
253
+ .Button--loading::before {
254
+ content: "";
255
+ box-sizing: border-box;
256
+ display: inline-block;
257
+ width: 0.8em;
258
+ height: 0.8em;
259
+ border-radius: 50%;
260
+ border: 0.15em solid transparent;
261
+ border-top-color: currentColor;
262
+ animation: spin 0.6s linear infinite;
263
+ position: absolute;
264
+ top: 50%;
265
+ left: 50%;
266
+ margin-top: -0.4em;
267
+ margin-left: -0.4em;
268
+ }
269
+
270
+ .Button__icon--left {
271
+ padding-right: 8px;
272
+ }
273
+
274
+ .Button__icon--right {
275
+ padding-left: 8px;
276
+ }
277
+
278
+ .Button__icon-svg.a-Icon {
279
+ vertical-align: top;
280
+ }
281
+
282
+ .Button > .Button__content::before {
283
+ content: "";
284
+ height: 10px;
285
+ }
286
+
287
+ .Button.Button--xsmall > .Button__content::before {
288
+ height: 8px;
289
+ }
290
+
291
+ button.a-Icon {
292
+ all: unset;
293
+ cursor: pointer;
294
+ pointer-events: auto;
295
+ }
296
+ button.a-Icon:focus {
297
+ border-radius: 3px;
298
+ box-shadow: 0 0 0 2px var(--colorsFocusRingPrimary, #a9d1ff);
299
+ outline: 0;
300
+ }
301
+
302
+ .a-Icon,
303
+ button.a-Icon {
2
304
  backface-visibility: hidden;
3
305
  color: inherit;
4
306
  display: inline-block;
@@ -10,7 +312,8 @@
10
312
  vertical-align: middle;
11
313
  width: auto;
12
314
  }
13
- .a-Icon svg {
315
+ .a-Icon svg,
316
+ button.a-Icon svg {
14
317
  vertical-align: bottom;
15
318
  }
16
319
 
@@ -1 +1 @@
1
- {"version":3,"sourceRoot":"","sources":["../../../src/components/Icon/Icon.scss"],"names":[],"mappings":"AAAA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGA;EAAM","file":"Icon.css"}
1
+ {"version":3,"sourceRoot":"","sources":["../../../src/utilities/_visually-hidden.scss","../../../src/components/Button/Button.scss","../../../src/utilities/_component-reset.scss","../../../src/utilities/_font-smoothing.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss","../../../src/components/Icon/Icon.scss"],"names":[],"mappings":"AAAA;AC0CA;ACzCC;EACA;AAEA;EACA;ECHC;EACA;EF2CD;EACA,kBArCoB;EAsCpB;EACA,eGzCiB;EH0CjB;EACA,OAhDc;EAiDd;EACA;EACA,WGiFa;EHhFb,aGoDsB;EHnDtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YACC;EAED;EACA;;AAEA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;;AAEA;EACC,kBA1Da;;AAgEd;EACC,kBAzDc;;AA6DhB;EACC;EACA,YAjFc;;AAoFf;EACC;EACA;;AAGC;EACC,kBA5EY;;AAkFb;EACC,kBA3Ea;;AA+Ef;EAAgC;;AAGjC;EACC;;AAGC;EACC,kBA/FY;;AAqGb;EACC,kBA9Fa;;;AAsGjB;EACC,WGNa;EHOb;;;AAGD;EACC,SGvBW;EHwBX;;AAEA;EACC;;AAEA;EACC;EACA;;;AAKH;AAAA;EAEC;EACA;EACA;;;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A;;AAGA;AAAA;EAAM","file":"Icon.css"}
@@ -14,7 +14,7 @@ import classnames from 'classnames';
14
14
  import { IconNameArray, getIconByName, } from '@servicetitan/anvil-icons';
15
15
  export { IconNameArray };
16
16
  export const Icon = (_a) => {
17
- var { color = 'currentColor', className, el: IconElement = 'i', name, size = '1em' } = _a, props = __rest(_a, ["color", "className", "el", "name", "size"]);
17
+ var { color = 'currentColor', className, el, name, size = '1em' } = _a, props = __rest(_a, ["color", "className", "el", "name", "size"]);
18
18
  if (!name) {
19
19
  console.warn('No name prop passed to Icon');
20
20
  return null;
@@ -25,6 +25,7 @@ export const Icon = (_a) => {
25
25
  return null;
26
26
  }
27
27
  const IconClasses = classnames('a-Icon', `a-Icon--${name}`, className);
28
+ const IconElement = el !== null && el !== void 0 ? el : (typeof props.onClick !== 'undefined' ? 'button' : 'i');
28
29
  return (React.createElement(IconElement, Object.assign({ className: IconClasses, width: size, height: size, "data-anvil-component": "Icon" }, props),
29
30
  React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: color, height: size, width: size, viewBox: viewbox,
30
31
  /* eslint-disable react/no-danger */
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAEN,aAAa,EACb,aAAa,GACb,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAgB,aAAa,EAAE,CAAC;AAuBvC,MAAM,CAAC,MAAM,IAAI,GAAkB,CAAC,EAOnC,EAAE,EAAE;QAP+B,EACnC,KAAK,GAAG,cAAc,EACtB,SAAS,EACT,EAAE,EAAE,WAAW,GAAG,GAAG,EACrB,IAAI,EACJ,IAAI,GAAG,KAAK,OAEZ,EADG,KAAK,cAN2B,4CAOnC,CADQ;IAER,IAAI,CAAC,IAAI,EAAE;QACV,OAAO,CAAC,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