@servicetitan/design-system 12.9.0 → 12.11.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.
- package/dist/components/AnvilSelect/AnvilSelect.js +1 -1
- package/dist/components/AnvilSelect/AnvilSelect.js.map +1 -1
- package/dist/components/AnvilSelect/utils/focus-utils.js +3 -3
- package/dist/components/Button/Button.css +1 -1
- package/dist/components/Button/index.css +1 -1
- package/dist/components/ButtonToggle/ButtonToggleItem.js +1 -1
- package/dist/components/ButtonToggle/ButtonToggleItem.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +5 -6
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +16 -6
- package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
- package/dist/components/Collapsible/Collapsible.js +3 -3
- package/dist/components/Collapsible/Collapsible.js.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +13 -0
- package/dist/components/DatePicker/DatePicker.js +24 -8
- package/dist/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/DatePicker/InputDateMask.d.ts +1 -1
- package/dist/components/DatePicker/InputDateMask.js +13 -4
- package/dist/components/DatePicker/InputDateMask.js.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +84 -37
- package/dist/components/DateRangePicker/DateRangePicker.js +46 -30
- package/dist/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.test.js +30 -22
- package/dist/components/DateRangePicker/DateRangePicker.test.js.map +1 -1
- package/dist/components/DateRangePicker/components/DateRangeInput.d.ts +3 -3
- package/dist/components/DateRangePicker/components/DateRangeInput.js +9 -7
- package/dist/components/DateRangePicker/components/DateRangeInput.js.map +1 -1
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/Drawer/Drawer.js.map +1 -1
- package/dist/components/FormField/FormField.js +4 -5
- package/dist/components/FormField/FormField.js.map +1 -1
- package/dist/components/FormField/FormField.test.js +19 -8
- package/dist/components/FormField/FormField.test.js.map +1 -1
- package/dist/components/Icon/Icon.css +1 -1
- package/dist/components/Icon/index.css +1 -1
- package/dist/components/Input/Input.test.js +21 -11
- package/dist/components/Input/Input.test.js.map +1 -1
- package/dist/components/KeyPressListener/KeyPressListener.d.ts +1 -0
- package/dist/components/KeyPressListener/KeyPressListener.js +8 -6
- package/dist/components/KeyPressListener/KeyPressListener.js.map +1 -1
- package/dist/components/OptionList/OptionList.js +0 -1
- package/dist/components/OptionList/OptionList.js.map +1 -1
- package/dist/components/Popover/Popover.test.js +7 -6
- package/dist/components/Popover/Popover.test.js.map +1 -1
- package/dist/components/Radio/Radio.test.js +16 -6
- package/dist/components/Radio/Radio.test.js.map +1 -1
- package/dist/components/SideNav/SideNav.css +10 -8
- package/dist/components/SideNav/SideNav.css.map +1 -1
- package/dist/components/SideNav/SideNav.js +13 -5
- package/dist/components/SideNav/SideNav.js.map +1 -1
- package/dist/components/SideNav/SideNavGroup.css +6 -2
- package/dist/components/SideNav/SideNavGroup.css.map +1 -1
- package/dist/components/SideNav/SideNavGroup.js +1 -1
- package/dist/components/SideNav/SideNavGroup.js.map +1 -1
- package/dist/components/SideNav/SideNavItem.css +92 -17
- package/dist/components/SideNav/SideNavItem.css.map +1 -1
- package/dist/components/SideNav/SideNavItem.d.ts +17 -4
- package/dist/components/SideNav/SideNavItem.js +113 -14
- package/dist/components/SideNav/SideNavItem.js.map +1 -1
- package/dist/components/SideNav/index.css +98 -19
- package/dist/components/SideNav/index.css.map +1 -1
- package/dist/components/Sidebar/Sidebar.css +4 -1
- package/dist/components/Sidebar/Sidebar.css.map +1 -1
- package/dist/components/Sidebar/Sidebar.js +1 -1
- package/dist/components/Sidebar/Sidebar.js.map +1 -1
- package/dist/components/Sidebar/SidebarSection.css +4 -1
- package/dist/components/Sidebar/SidebarSection.css.map +1 -1
- package/dist/components/Sidebar/index.css +4 -1
- package/dist/components/Sidebar/index.css.map +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts +6 -2
- package/dist/components/Snackbar/Snackbar.js.map +1 -1
- package/dist/components/Snackbar/Snackbar.test.js +18 -6
- package/dist/components/Snackbar/Snackbar.test.js.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.test.js +16 -6
- package/dist/components/ToggleSwitch/ToggleSwitch.test.js.map +1 -1
- package/dist/components/index.css +103 -21
- package/dist/components/index.css.map +1 -1
- package/dist/global/index.css +1 -1
- package/dist/global/version.css +1 -1
- package/dist/hooks/useFocusVisible.test.js +25 -15
- package/dist/hooks/useFocusVisible.test.js.map +1 -1
- package/dist/internal/CollapsibleList/CollapsibleContext.d.ts +9 -0
- package/dist/internal/CollapsibleList/CollapsibleContext.js +3 -0
- package/dist/internal/CollapsibleList/CollapsibleContext.js.map +1 -0
- package/dist/internal/CollapsibleList/CollapsibleList.css +9 -0
- package/dist/internal/CollapsibleList/CollapsibleList.css.map +1 -0
- package/dist/internal/CollapsibleList/CollapsibleList.d.ts +11 -0
- package/dist/internal/CollapsibleList/CollapsibleList.js +27 -0
- package/dist/internal/CollapsibleList/CollapsibleList.js.map +1 -0
- package/dist/internal/CollapsibleList/CollapsibleListItem.d.ts +11 -0
- package/dist/internal/CollapsibleList/CollapsibleListItem.js +60 -0
- package/dist/internal/CollapsibleList/CollapsibleListItem.js.map +1 -0
- package/dist/internal/CollapsibleList/index.css +9 -0
- package/dist/internal/CollapsibleList/index.css.map +1 -0
- package/dist/internal/CollapsibleList/index.d.ts +3 -0
- package/dist/internal/CollapsibleList/index.js +4 -0
- package/dist/internal/CollapsibleList/index.js.map +1 -0
- package/dist/internal/Portal/Portal.js +1 -1
- package/dist/internal/index.css +8 -1
- package/dist/internal/index.css.map +1 -1
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.js +1 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/system-light.css +8 -1
- package/dist/system-light.css.map +1 -1
- package/dist/system-light.min.css +1 -1
- package/dist/system.css +111 -22
- package/dist/system.css.map +1 -1
- package/dist/system.min.css +2 -2
- package/dist/utilities/KeyboardAccessTests/KeyboardAccess.test.d.ts +1 -0
- package/dist/utilities/KeyboardAccessTests/KeyboardAccess.test.js +373 -0
- package/dist/utilities/KeyboardAccessTests/KeyboardAccess.test.js.map +1 -0
- package/dist/utilities/KeyboardAccessTests/components/KeyboardTester.d.ts +2 -0
- package/dist/utilities/KeyboardAccessTests/components/KeyboardTester.js +22 -0
- package/dist/utilities/KeyboardAccessTests/components/KeyboardTester.js.map +1 -0
- package/dist/utilities/KeyboardAccessTests/components/components.d.ts +15 -0
- package/dist/utilities/KeyboardAccessTests/components/components.js +166 -0
- package/dist/utilities/KeyboardAccessTests/components/components.js.map +1 -0
- package/dist/utilities/KeyboardAccessTests/components/index.d.ts +2 -0
- package/dist/utilities/KeyboardAccessTests/components/index.js +3 -0
- package/dist/utilities/KeyboardAccessTests/components/index.js.map +1 -0
- package/dist/utilities/KeyboardAccessTests/utils/index.d.ts +2 -0
- package/dist/utilities/KeyboardAccessTests/utils/index.js +3 -0
- package/dist/utilities/KeyboardAccessTests/utils/index.js.map +1 -0
- package/dist/utilities/KeyboardAccessTests/utils/jestUtils.d.ts +12 -0
- package/dist/utilities/KeyboardAccessTests/utils/jestUtils.js +52 -0
- package/dist/utilities/KeyboardAccessTests/utils/jestUtils.js.map +1 -0
- package/dist/utilities/KeyboardAccessTests/utils/utils.d.ts +2 -0
- package/dist/utilities/KeyboardAccessTests/utils/utils.js +132 -0
- package/dist/utilities/KeyboardAccessTests/utils/utils.js.map +1 -0
- package/dist/utilities/TimezoneProvider/TimezoneProvider.test.js +5 -3
- package/dist/utilities/TimezoneProvider/TimezoneProvider.test.js.map +1 -1
- package/dist/utilities/keyCodes.d.ts +1 -1
- package/dist/utilities/keyCodes.js +1 -1
- package/dist/utilities/keyCodes.js.map +1 -1
- package/package.json +13 -12
- package/dist/components/Drawer/DrawerFooter.d.ts +0 -8
- package/dist/components/Drawer/DrawerFooter.js +0 -24
- package/dist/components/Drawer/DrawerFooter.js.map +0 -1
- package/dist/components/Drawer/DrawerHeader.d.ts +0 -9
- package/dist/components/Drawer/DrawerHeader.js +0 -24
- package/dist/components/Drawer/DrawerHeader.js.map +0 -1
- package/dist/components/Drawer/DrawerWindow.d.ts +0 -6
- package/dist/components/Drawer/DrawerWindow.js +0 -18
- package/dist/components/Drawer/DrawerWindow.js.map +0 -1
- package/dist/components/Page/components/Footer.d.ts +0 -8
- package/dist/components/Page/components/Footer.js +0 -7
- package/dist/components/Page/components/Footer.js.map +0 -1
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
|
+
--anvil-version: "12.11.0";
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
/*
|
|
@@ -17288,7 +17288,7 @@ button.Button {
|
|
|
17288
17288
|
line-height: 1.5;
|
|
17289
17289
|
}
|
|
17290
17290
|
.Button.Button--icon-only.Button--xsmall {
|
|
17291
|
-
line-height:
|
|
17291
|
+
line-height: 1;
|
|
17292
17292
|
}
|
|
17293
17293
|
.Button.Button--icon-only.Button--xsmall svg {
|
|
17294
17294
|
height: 20px;
|
|
@@ -26127,7 +26127,7 @@ button.a-Icon svg {
|
|
|
26127
26127
|
overflow-x: hidden;
|
|
26128
26128
|
opacity: 0;
|
|
26129
26129
|
}
|
|
26130
|
-
.Sidebar--collapsed .Sidebar__toggle-button:not(:hover) {
|
|
26130
|
+
.Sidebar--collapsed .Sidebar__toggle-button:not(:hover):not(:focus) {
|
|
26131
26131
|
box-shadow: none;
|
|
26132
26132
|
}
|
|
26133
26133
|
|
|
@@ -26172,6 +26172,9 @@ button.a-Icon svg {
|
|
|
26172
26172
|
.Sidebar__toggle-button:hover::before {
|
|
26173
26173
|
background-color: var(--colorsHoverPrimary, rgba(34, 112, 238, 0.08));
|
|
26174
26174
|
}
|
|
26175
|
+
.Sidebar__toggle-button.Button--focus-visible:focus {
|
|
26176
|
+
opacity: 1;
|
|
26177
|
+
}
|
|
26175
26178
|
|
|
26176
26179
|
.Sidebar__toggle-button-wrapper {
|
|
26177
26180
|
position: absolute;
|
|
@@ -26212,20 +26215,23 @@ button.a-Icon svg {
|
|
|
26212
26215
|
color: var(--colorsTextDefault, #141414);
|
|
26213
26216
|
padding: 16px;
|
|
26214
26217
|
}
|
|
26215
|
-
.SideNav .Tag {
|
|
26216
|
-
margin-left: 8px;
|
|
26217
|
-
transform: translateY(-1px);
|
|
26218
|
-
}
|
|
26219
26218
|
.SideNav a {
|
|
26220
26219
|
text-decoration: none;
|
|
26221
26220
|
}
|
|
26221
|
+
.SideNav .SideNav {
|
|
26222
|
+
padding: 0;
|
|
26223
|
+
}
|
|
26222
26224
|
|
|
26223
26225
|
.SideNav__title {
|
|
26224
|
-
|
|
26225
|
-
margin:
|
|
26226
|
-
padding: 8px 0
|
|
26226
|
+
margin: 0 8px;
|
|
26227
|
+
margin-bottom: 16px;
|
|
26228
|
+
padding: 8px 0;
|
|
26227
26229
|
color: var(--colorsTextOnGrey, #444445);
|
|
26228
26230
|
}
|
|
26231
|
+
.SideNav__title .Tag {
|
|
26232
|
+
margin-left: 8px;
|
|
26233
|
+
transform: translateY(-1px);
|
|
26234
|
+
}
|
|
26229
26235
|
|
|
26230
26236
|
.SideNav__list {
|
|
26231
26237
|
list-style: none;
|
|
@@ -26233,45 +26239,121 @@ button.a-Icon svg {
|
|
|
26233
26239
|
margin-left: 0;
|
|
26234
26240
|
margin-top: 0;
|
|
26235
26241
|
padding-left: 0;
|
|
26236
|
-
padding-top: 16px;
|
|
26237
26242
|
}
|
|
26238
26243
|
|
|
26239
26244
|
.SideNavItem {
|
|
26240
26245
|
margin: 0;
|
|
26241
26246
|
padding: 0;
|
|
26242
26247
|
}
|
|
26243
|
-
|
|
26244
|
-
.SideNavItem__button {
|
|
26248
|
+
.SideNavItem > .SideNavItem__button {
|
|
26245
26249
|
border-radius: 3px;
|
|
26246
26250
|
color: var(--colorsTextDefault, #141414);
|
|
26247
26251
|
font-weight: 400;
|
|
26248
26252
|
cursor: pointer;
|
|
26249
|
-
display:
|
|
26250
|
-
|
|
26253
|
+
display: flex;
|
|
26254
|
+
min-height: 22px;
|
|
26255
|
+
padding: 6px 8px;
|
|
26251
26256
|
position: relative;
|
|
26252
26257
|
transition: color cubic-bezier(0.4, 0, 0.2, 1) 100ms 0ms;
|
|
26253
26258
|
text-decoration: none;
|
|
26259
|
+
/* States */
|
|
26260
|
+
}
|
|
26261
|
+
.SideNavItem > .SideNavItem__button:hover {
|
|
26262
|
+
background: var(--colorsHoverDefault, rgba(4, 4, 4, 0.08));
|
|
26263
|
+
}
|
|
26264
|
+
.SideNavItem > .SideNavItem__button:active:not(:focus-within) {
|
|
26265
|
+
background-color: var(--colorsActiveDefault, rgba(4, 4, 4, 0.2));
|
|
26254
26266
|
}
|
|
26255
|
-
.SideNavItem__button:focus {
|
|
26267
|
+
.SideNavItem > .SideNavItem__button.SideNavItem__button--focus-visible:focus {
|
|
26256
26268
|
outline: none;
|
|
26269
|
+
box-shadow: inset 0 0 0 2px var(--colorsFocusRingPrimary, #a9d1ff);
|
|
26257
26270
|
}
|
|
26258
|
-
.
|
|
26259
|
-
|
|
26260
|
-
|
|
26271
|
+
.SideNavItem > .SideNavItem__button > .SideNavItem__button__prefix,
|
|
26272
|
+
.SideNavItem > .SideNavItem__button > .SideNavItem__button__content,
|
|
26273
|
+
.SideNavItem > .SideNavItem__button > .SideNavItem__button__suffix {
|
|
26274
|
+
color: currentColor;
|
|
26275
|
+
display: inline-flex;
|
|
26276
|
+
align-items: center;
|
|
26277
|
+
}
|
|
26278
|
+
.SideNavItem > .SideNavItem__button > .SideNavItem__button__prefix {
|
|
26279
|
+
margin-right: 8px;
|
|
26280
|
+
}
|
|
26281
|
+
.SideNavItem > .SideNavItem__button > .SideNavItem__button__suffix {
|
|
26282
|
+
margin-left: 8px;
|
|
26283
|
+
}
|
|
26284
|
+
.SideNavItem > .SideNavItem__button > .SideNavItem__button__content {
|
|
26285
|
+
flex-grow: 1;
|
|
26286
|
+
margin-top: 0.5px;
|
|
26287
|
+
}
|
|
26288
|
+
.SideNavItem.SideNavItem--disabled > .SideNavItem__button {
|
|
26289
|
+
background-color: transparent !important;
|
|
26290
|
+
opacity: 0.4;
|
|
26291
|
+
pointer-events: none;
|
|
26261
26292
|
}
|
|
26262
|
-
.SideNavItem--active .SideNavItem__button {
|
|
26293
|
+
.SideNavItem.SideNavItem--active > .SideNavItem__button:not(.SideNavItem__button--expanded) {
|
|
26294
|
+
background-color: var(--colorsHoverPrimary, rgba(34, 112, 238, 0.08));
|
|
26263
26295
|
color: var(--colorsTextPrimary, #2270ee);
|
|
26264
26296
|
}
|
|
26297
|
+
.SideNavItem.SideNavItem--active > .SideNavItem__button:not(.SideNavItem__button--expanded) > .SideNavItem__button__content {
|
|
26298
|
+
font-weight: bold;
|
|
26299
|
+
}
|
|
26300
|
+
.SideNavItem.SideNavItem--active > .SideNavItem__button:not(.SideNavItem__button--expanded) .a-Icon svg {
|
|
26301
|
+
color: var(--colorsTextPrimary, #2270ee) !important;
|
|
26302
|
+
fill: var(--colorsTextPrimary, #2270ee) !important;
|
|
26303
|
+
}
|
|
26304
|
+
.SideNavItem .SideNavItem__button--expanded > .SideNavItem__button__content {
|
|
26305
|
+
font-weight: bold;
|
|
26306
|
+
}
|
|
26307
|
+
.SideNavItem .SideNav .SideNavItem > .SideNavItem__button > .SideNavItem__button__content {
|
|
26308
|
+
margin-left: 28px;
|
|
26309
|
+
}
|
|
26310
|
+
.SideNavItem .SideNav .SideNavItem > .SideNavItem__button .SideNavItem__button__prefix {
|
|
26311
|
+
display: none;
|
|
26312
|
+
}
|
|
26313
|
+
|
|
26314
|
+
.SideNavItem__button__suffix__collapsible-icon {
|
|
26315
|
+
transition: transform cubic-bezier(0.4, 0, 0.2, 1) 300ms 0ms;
|
|
26316
|
+
transform: rotate(0) translateY(1px);
|
|
26317
|
+
}
|
|
26318
|
+
.SideNavItem__button--expanded .SideNavItem__button__suffix__collapsible-icon {
|
|
26319
|
+
transform: rotate(180deg) translateY(0);
|
|
26320
|
+
}
|
|
26321
|
+
|
|
26322
|
+
.SideNavItem__button .SideNavItem__button__prefix .a-Icon,
|
|
26323
|
+
.SideNavItem__button .SideNavItem__button__suffix .a-Icon {
|
|
26324
|
+
margin-top: -0.5px;
|
|
26325
|
+
}
|
|
26326
|
+
.SideNavItem__button .StatusLight {
|
|
26327
|
+
margin: -4px -5px;
|
|
26328
|
+
}
|
|
26329
|
+
.SideNavItem__button .Button {
|
|
26330
|
+
margin: -4px;
|
|
26331
|
+
vertical-align: middle;
|
|
26332
|
+
}
|
|
26333
|
+
.SideNavItem__button .ActionMenu__TriggerWrapper {
|
|
26334
|
+
margin-top: -3px;
|
|
26335
|
+
}
|
|
26336
|
+
.SideNavItem__button .Tooltip {
|
|
26337
|
+
margin-top: -2px;
|
|
26338
|
+
}
|
|
26339
|
+
.SideNavItem__button .Tag {
|
|
26340
|
+
margin-left: 8px;
|
|
26341
|
+
transform: translateY(0);
|
|
26342
|
+
}
|
|
26265
26343
|
|
|
26266
26344
|
.SideNavGroup {
|
|
26267
|
-
margin-top:
|
|
26345
|
+
margin-top: 24px;
|
|
26268
26346
|
}
|
|
26269
26347
|
.SideNav__list .SideNavGroup:first-child {
|
|
26270
26348
|
margin-top: 16px;
|
|
26271
26349
|
}
|
|
26350
|
+
.SideNav__list .SideNavGroup:last-child {
|
|
26351
|
+
margin-bottom: 16px;
|
|
26352
|
+
}
|
|
26272
26353
|
|
|
26273
26354
|
.SideNavGroup__title {
|
|
26274
|
-
margin:
|
|
26355
|
+
margin: 8px;
|
|
26356
|
+
margin-top: 0;
|
|
26275
26357
|
}
|
|
26276
26358
|
|
|
26277
26359
|
.SideNavGroup__list {
|
|
@@ -34410,6 +34492,13 @@ _:-ms-lang(x), .Tooltip__body {
|
|
|
34410
34492
|
.gap-normal-i {
|
|
34411
34493
|
gap: normal !important;
|
|
34412
34494
|
}
|
|
34495
|
+
.CollapsibleList {
|
|
34496
|
+
/* Set color on root of component. It can be overridden after the @include */
|
|
34497
|
+
color: var(--colorsTextDefault, #141414);
|
|
34498
|
+
/* Make sure font-family goes across entire component */
|
|
34499
|
+
font-family: "Nunito Sans", sans-serif;
|
|
34500
|
+
}
|
|
34501
|
+
|
|
34413
34502
|
.Overlay {
|
|
34414
34503
|
position: fixed;
|
|
34415
34504
|
top: 0;
|