@hashicorp/design-system-components 4.15.0 → 4.16.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/declarations/components/hds/advanced-table/expandable-tr-group.d.ts +44 -0
- package/declarations/components/hds/advanced-table/expandable-tr-group.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/helpers.d.ts +11 -0
- package/declarations/components/hds/advanced-table/helpers.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/index.d.ts +84 -0
- package/declarations/components/hds/advanced-table/index.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/td.d.ts +36 -0
- package/declarations/components/hds/advanced-table/td.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/th-button-expand.d.ts +22 -0
- package/declarations/components/hds/advanced-table/th-button-expand.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/th-button-sort.d.ts +23 -0
- package/declarations/components/hds/advanced-table/th-button-sort.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/th-button-tooltip.d.ts +18 -0
- package/declarations/components/hds/advanced-table/th-button-tooltip.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/th-selectable.d.ts +36 -0
- package/declarations/components/hds/advanced-table/th-selectable.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/th-sort.d.ts +40 -0
- package/declarations/components/hds/advanced-table/th-sort.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/th.d.ts +49 -0
- package/declarations/components/hds/advanced-table/th.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/tr.d.ts +44 -0
- package/declarations/components/hds/advanced-table/tr.d.ts.map +1 -0
- package/declarations/components/hds/advanced-table/types.d.ts +85 -0
- package/declarations/components/hds/advanced-table/types.d.ts.map +1 -0
- package/declarations/components/hds/code-editor/description.d.ts +22 -0
- package/declarations/components/hds/code-editor/description.d.ts.map +1 -0
- package/declarations/components/hds/code-editor/full-screen-button.d.ts +18 -0
- package/declarations/components/hds/code-editor/full-screen-button.d.ts.map +1 -0
- package/declarations/components/hds/code-editor/generic.d.ts +13 -0
- package/declarations/components/hds/code-editor/generic.d.ts.map +1 -0
- package/declarations/components/hds/code-editor/index.d.ts +50 -0
- package/declarations/components/hds/code-editor/index.d.ts.map +1 -0
- package/declarations/components/hds/code-editor/title.d.ts +24 -0
- package/declarations/components/hds/code-editor/title.d.ts.map +1 -0
- package/declarations/components/hds/popover-primitive/index.d.ts.map +1 -1
- package/declarations/components/hds/rich-tooltip/toggle.d.ts.map +1 -1
- package/declarations/components/hds/stepper/task/indicator.d.ts +1 -1
- package/declarations/components/hds/stepper/task/indicator.d.ts.map +1 -1
- package/declarations/components/hds/table/th-selectable.d.ts.map +1 -1
- package/declarations/components/hds/tabs/tab.d.ts +7 -1
- package/declarations/components/hds/tabs/tab.d.ts.map +1 -1
- package/declarations/components.d.ts +15 -0
- package/declarations/components.d.ts.map +1 -1
- package/declarations/modifiers/hds-code-editor/highlight-styles/hds-dark-highlight-style.d.ts +8 -0
- package/declarations/modifiers/hds-code-editor/highlight-styles/hds-dark-highlight-style.d.ts.map +1 -0
- package/declarations/modifiers/hds-code-editor/languages/sentinel.d.ts +44 -0
- package/declarations/modifiers/hds-code-editor/languages/sentinel.d.ts.map +1 -0
- package/declarations/modifiers/hds-code-editor/palettes/hds-dark-palette.d.ts +21 -0
- package/declarations/modifiers/hds-code-editor/palettes/hds-dark-palette.d.ts.map +1 -0
- package/declarations/modifiers/hds-code-editor/themes/hds-dark-theme.d.ts +7 -0
- package/declarations/modifiers/hds-code-editor/themes/hds-dark-theme.d.ts.map +1 -0
- package/declarations/modifiers/hds-code-editor/types.d.ts +16 -0
- package/declarations/modifiers/hds-code-editor/types.d.ts.map +1 -0
- package/declarations/modifiers/hds-code-editor.d.ts +43 -0
- package/declarations/modifiers/hds-code-editor.d.ts.map +1 -0
- package/declarations/services/hds-time.d.ts +4 -0
- package/declarations/services/hds-time.d.ts.map +1 -1
- package/declarations/template-registry.d.ts +47 -0
- package/declarations/template-registry.d.ts.map +1 -1
- package/dist/_app_/components/hds/advanced-table/expandable-tr-group.js +1 -0
- package/dist/_app_/components/hds/advanced-table/helpers.js +1 -0
- package/dist/_app_/components/hds/advanced-table/index.js +1 -0
- package/dist/_app_/components/hds/advanced-table/td.js +1 -0
- package/dist/_app_/components/hds/advanced-table/th-button-expand.js +1 -0
- package/dist/_app_/components/hds/advanced-table/th-button-sort.js +1 -0
- package/dist/_app_/components/hds/advanced-table/th-button-tooltip.js +1 -0
- package/dist/_app_/components/hds/advanced-table/th-selectable.js +1 -0
- package/dist/_app_/components/hds/advanced-table/th-sort.js +1 -0
- package/dist/_app_/components/hds/advanced-table/th.js +1 -0
- package/dist/_app_/components/hds/advanced-table/tr.js +1 -0
- package/dist/_app_/components/hds/code-editor/description.js +1 -0
- package/dist/_app_/components/hds/code-editor/full-screen-button.js +1 -0
- package/dist/_app_/components/hds/code-editor/generic.js +1 -0
- package/dist/_app_/components/hds/code-editor/index.js +1 -0
- package/dist/_app_/components/hds/code-editor/title.js +1 -0
- package/dist/_app_/modifiers/hds-code-editor/highlight-styles/hds-dark-highlight-style.js +1 -0
- package/dist/_app_/modifiers/hds-code-editor/languages/sentinel.js +1 -0
- package/dist/_app_/modifiers/hds-code-editor/palettes/hds-dark-palette.js +1 -0
- package/dist/_app_/modifiers/hds-code-editor/themes/hds-dark-theme.js +1 -0
- package/dist/_app_/modifiers/hds-code-editor/types.js +1 -0
- package/dist/_app_/modifiers/hds-code-editor.js +1 -0
- package/dist/{_rollupPluginBabelHelpers-81503waH.js → _rollupPluginBabelHelpers-C_TsMG3M.js} +8 -8
- package/dist/_rollupPluginBabelHelpers-C_TsMG3M.js.map +1 -0
- package/dist/components/hds/accordion/item/button.js +1 -1
- package/dist/components/hds/accordion/item/index.js +1 -1
- package/dist/components/hds/advanced-table/expandable-tr-group.js +70 -0
- package/dist/components/hds/advanced-table/expandable-tr-group.js.map +1 -0
- package/dist/components/hds/advanced-table/helpers.js +144 -0
- package/dist/components/hds/advanced-table/helpers.js.map +1 -0
- package/dist/components/hds/advanced-table/index.js +312 -0
- package/dist/components/hds/advanced-table/index.js.map +1 -0
- package/dist/components/hds/advanced-table/td.js +95 -0
- package/dist/components/hds/advanced-table/td.js.map +1 -0
- package/dist/components/hds/advanced-table/th-button-expand.js +49 -0
- package/dist/components/hds/advanced-table/th-button-expand.js.map +1 -0
- package/dist/components/hds/advanced-table/th-button-sort.js +57 -0
- package/dist/components/hds/advanced-table/th-button-sort.js.map +1 -0
- package/dist/components/hds/advanced-table/th-button-tooltip.js +28 -0
- package/dist/components/hds/advanced-table/th-button-tooltip.js.map +1 -0
- package/dist/components/hds/advanced-table/th-selectable.js +92 -0
- package/dist/components/hds/advanced-table/th-selectable.js.map +1 -0
- package/dist/components/hds/advanced-table/th-sort.js +95 -0
- package/dist/components/hds/advanced-table/th-sort.js.map +1 -0
- package/dist/components/hds/advanced-table/th.js +112 -0
- package/dist/components/hds/advanced-table/th.js.map +1 -0
- package/dist/components/hds/advanced-table/tr.js +39 -0
- package/dist/components/hds/advanced-table/tr.js.map +1 -0
- package/dist/components/hds/advanced-table/types.js +54 -0
- package/dist/components/hds/advanced-table/types.js.map +1 -0
- package/dist/components/hds/alert/index.js +1 -1
- package/dist/components/hds/app-header/index.js +2 -2
- package/dist/components/hds/app-header/index.js.map +1 -1
- package/dist/components/hds/app-header/menu-button.js +1 -1
- package/dist/components/hds/app-side-nav/index.js +4 -4
- package/dist/components/hds/app-side-nav/index.js.map +1 -1
- package/dist/components/hds/app-side-nav/list/index.js +1 -1
- package/dist/components/hds/app-side-nav/list/title.js +1 -1
- package/dist/components/hds/app-side-nav/portal/target.js +1 -1
- package/dist/components/hds/code-block/index.js +1 -1
- package/dist/components/hds/code-editor/description.js +17 -0
- package/dist/components/hds/code-editor/description.js.map +1 -0
- package/dist/components/hds/code-editor/full-screen-button.js +26 -0
- package/dist/components/hds/code-editor/full-screen-button.js.map +1 -0
- package/dist/components/hds/code-editor/generic.js +16 -0
- package/dist/components/hds/code-editor/generic.js.map +1 -0
- package/dist/components/hds/code-editor/index.js +120 -0
- package/dist/components/hds/code-editor/index.js.map +1 -0
- package/dist/components/hds/code-editor/title.js +20 -0
- package/dist/components/hds/code-editor/title.js.map +1 -0
- package/dist/components/hds/copy/button/index.js +1 -1
- package/dist/components/hds/copy/snippet/index.js +1 -1
- package/dist/components/hds/disclosure-primitive/index.js +1 -1
- package/dist/components/hds/dropdown/index.js +1 -1
- package/dist/components/hds/dropdown/toggle/button.js +1 -1
- package/dist/components/hds/dropdown/toggle/icon.js +1 -1
- package/dist/components/hds/flyout/index.js +3 -3
- package/dist/components/hds/flyout/index.js.map +1 -1
- package/dist/components/hds/form/field/index.js +1 -1
- package/dist/components/hds/form/fieldset/index.js +1 -1
- package/dist/components/hds/form/masked-input/base.js +1 -1
- package/dist/components/hds/form/super-select/multiple/base.js +2 -2
- package/dist/components/hds/form/super-select/multiple/base.js.map +1 -1
- package/dist/components/hds/form/super-select/multiple/field.js +1 -1
- package/dist/components/hds/form/super-select/multiple/field.js.map +1 -1
- package/dist/components/hds/form/super-select/option-group.js +1 -1
- package/dist/components/hds/form/super-select/single/base.js +2 -2
- package/dist/components/hds/form/super-select/single/base.js.map +1 -1
- package/dist/components/hds/form/super-select/single/field.js +1 -1
- package/dist/components/hds/form/super-select/single/field.js.map +1 -1
- package/dist/components/hds/form/text-input/field.js +1 -1
- package/dist/components/hds/icon/index.js +1 -1
- package/dist/components/hds/interactive/index.js +1 -1
- package/dist/components/hds/menu-primitive/index.js +1 -1
- package/dist/components/hds/modal/index.js +3 -3
- package/dist/components/hds/modal/index.js.map +1 -1
- package/dist/components/hds/pagination/compact/index.js +1 -1
- package/dist/components/hds/pagination/nav/arrow.js +1 -1
- package/dist/components/hds/pagination/nav/number.js +1 -1
- package/dist/components/hds/pagination/numbered/index.js +1 -1
- package/dist/components/hds/pagination/numbered/index.js.map +1 -1
- package/dist/components/hds/pagination/size-selector/index.js +1 -1
- package/dist/components/hds/popover-primitive/index.js +15 -11
- package/dist/components/hds/popover-primitive/index.js.map +1 -1
- package/dist/components/hds/reveal/index.js +1 -1
- package/dist/components/hds/rich-tooltip/index.js +1 -1
- package/dist/components/hds/rich-tooltip/toggle.js +1 -1
- package/dist/components/hds/rich-tooltip/toggle.js.map +1 -1
- package/dist/components/hds/side-nav/index.js +3 -3
- package/dist/components/hds/side-nav/index.js.map +1 -1
- package/dist/components/hds/side-nav/list/index.js +1 -1
- package/dist/components/hds/side-nav/list/title.js +1 -1
- package/dist/components/hds/side-nav/portal/target.js +1 -1
- package/dist/components/hds/table/index.js +1 -1
- package/dist/components/hds/table/th-button-sort.js +1 -1
- package/dist/components/hds/table/th-button-tooltip.js +1 -1
- package/dist/components/hds/table/th-selectable.js +3 -8
- package/dist/components/hds/table/th-selectable.js.map +1 -1
- package/dist/components/hds/table/th-sort.js +1 -1
- package/dist/components/hds/table/th.js +1 -1
- package/dist/components/hds/tabs/index.js +2 -2
- package/dist/components/hds/tabs/index.js.map +1 -1
- package/dist/components/hds/tabs/panel.js +2 -2
- package/dist/components/hds/tabs/panel.js.map +1 -1
- package/dist/components/hds/tabs/tab.js +10 -2
- package/dist/components/hds/tabs/tab.js.map +1 -1
- package/dist/components/hds/time/index.js +1 -1
- package/dist/components/hds/time/range.js +1 -1
- package/dist/components.js +15 -0
- package/dist/components.js.map +1 -1
- package/dist/modifiers/hds-code-editor/highlight-styles/hds-dark-highlight-style.js +80 -0
- package/dist/modifiers/hds-code-editor/highlight-styles/hds-dark-highlight-style.js.map +1 -0
- package/dist/modifiers/hds-code-editor/languages/sentinel.js +143 -0
- package/dist/modifiers/hds-code-editor/languages/sentinel.js.map +1 -0
- package/dist/modifiers/hds-code-editor/palettes/hds-dark-palette.js +24 -0
- package/dist/modifiers/hds-code-editor/palettes/hds-dark-palette.js.map +1 -0
- package/dist/modifiers/hds-code-editor/themes/hds-dark-theme.js +62 -0
- package/dist/modifiers/hds-code-editor/themes/hds-dark-theme.js.map +1 -0
- package/dist/modifiers/hds-code-editor/types.js +19 -0
- package/dist/modifiers/hds-code-editor/types.js.map +1 -0
- package/dist/modifiers/hds-code-editor.js +266 -0
- package/dist/modifiers/hds-code-editor.js.map +1 -0
- package/dist/modifiers/hds-tooltip.js +1 -1
- package/dist/services/hds-time.js +1 -1
- package/dist/services/hds-time.js.map +1 -1
- package/dist/styles/@hashicorp/design-system-components.css +466 -62
- package/dist/styles/@hashicorp/design-system-components.scss +2 -0
- package/dist/styles/@hashicorp/design-system-power-select-overrides.scss +3 -3
- package/dist/styles/components/accordion.scss +1 -1
- package/dist/styles/components/advanced-table.scss +349 -0
- package/dist/styles/components/alert.scss +2 -2
- package/dist/styles/components/app-header.scss +1 -1
- package/dist/styles/components/badge.scss +1 -1
- package/dist/styles/components/breadcrumb.scss +2 -2
- package/dist/styles/components/card/container.scss +1 -1
- package/dist/styles/components/code-block/index.scss +1 -1
- package/dist/styles/components/code-editor/index.scss +113 -0
- package/dist/styles/components/code-editor/theme.scss +20 -0
- package/dist/styles/components/copy/snippet.scss +1 -1
- package/dist/styles/components/dropdown.scss +4 -3
- package/dist/styles/components/form/select.scss +1 -1
- package/dist/styles/components/icon-tile.scss +1 -1
- package/dist/styles/components/link/standalone.scss +1 -1
- package/dist/styles/components/modal.scss +1 -1
- package/dist/styles/components/rich-tooltip.scss +1 -1
- package/dist/styles/components/side-nav/a11y-refocus.scss +1 -1
- package/dist/styles/components/table.scss +10 -33
- package/dist/styles/mixins/_button.scss +3 -3
- package/dist/utils/hds-aria-described-by.js +1 -1
- package/package.json +80 -48
- package/dist/_rollupPluginBabelHelpers-81503waH.js.map +0 -1
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
* Do not edit directly, this file was auto-generated.
|
|
8
8
|
*/
|
|
9
9
|
:root {
|
|
10
|
+
--token-border-radius-x-small: 3px;
|
|
11
|
+
--token-border-radius-small: 5px;
|
|
12
|
+
--token-border-radius-medium: 6px;
|
|
13
|
+
--token-border-radius-large: 8px;
|
|
10
14
|
--token-color-palette-blue-500: #1c345f;
|
|
11
15
|
--token-color-palette-blue-400: #0046d1;
|
|
12
16
|
--token-color-palette-blue-300: #0c56e9;
|
|
@@ -809,7 +813,7 @@
|
|
|
809
813
|
.hds-accordion-item--type-card {
|
|
810
814
|
--hds-accordion-item-focus-ring-offset: 0;
|
|
811
815
|
background: var(--token-color-surface-primary);
|
|
812
|
-
border-radius:
|
|
816
|
+
border-radius: var(--token-border-radius-medium);
|
|
813
817
|
}
|
|
814
818
|
.hds-accordion-item--type-card.hds-accordion-item--does-not-contain-interactive:not(.hds-accordion-item--is-static) {
|
|
815
819
|
box-shadow: var(--token-surface-mid-box-shadow);
|
|
@@ -903,7 +907,7 @@
|
|
|
903
907
|
font-family: var(--token-typography-font-stack-text);
|
|
904
908
|
text-decoration: none;
|
|
905
909
|
border: 1px solid transparent;
|
|
906
|
-
border-radius:
|
|
910
|
+
border-radius: var(--token-border-radius-small);
|
|
907
911
|
outline-style: solid;
|
|
908
912
|
outline-color: transparent;
|
|
909
913
|
isolation: isolate;
|
|
@@ -923,7 +927,7 @@
|
|
|
923
927
|
left: -4px;
|
|
924
928
|
z-index: -1;
|
|
925
929
|
border: 3px solid transparent;
|
|
926
|
-
border-radius:
|
|
930
|
+
border-radius: calc(var(--token-border-radius-small) + 3px);
|
|
927
931
|
content: "";
|
|
928
932
|
}
|
|
929
933
|
.hds-accordion-item__button--parent-contains-interactive:hover, .hds-accordion-item__button--parent-contains-interactive.mock-hover {
|
|
@@ -975,6 +979,320 @@
|
|
|
975
979
|
border-bottom: none;
|
|
976
980
|
}
|
|
977
981
|
|
|
982
|
+
/**
|
|
983
|
+
* Copyright (c) HashiCorp, Inc.
|
|
984
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
985
|
+
*/
|
|
986
|
+
.hds-advanced-table {
|
|
987
|
+
display: grid;
|
|
988
|
+
align-items: center;
|
|
989
|
+
width: 100%;
|
|
990
|
+
border-radius: var(--token-border-radius-medium);
|
|
991
|
+
border-spacing: 0;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.hds-advanced-table,
|
|
995
|
+
.hds-advanced-table__th,
|
|
996
|
+
.hds-advanced-table__td {
|
|
997
|
+
border: calc(1px / 2) solid var(--token-color-border-primary);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.hds-advanced-table__thead {
|
|
1001
|
+
display: grid;
|
|
1002
|
+
grid-column: 1/-1;
|
|
1003
|
+
grid-template-columns: subgrid;
|
|
1004
|
+
}
|
|
1005
|
+
.hds-advanced-table__thead .hds-advanced-table__tr {
|
|
1006
|
+
display: contents;
|
|
1007
|
+
}
|
|
1008
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th {
|
|
1009
|
+
align-content: center;
|
|
1010
|
+
height: 100%;
|
|
1011
|
+
padding: 14px 16px 13px 16px;
|
|
1012
|
+
color: var(--token-color-foreground-strong);
|
|
1013
|
+
text-align: left;
|
|
1014
|
+
background-color: var(--token-color-surface-strong);
|
|
1015
|
+
}
|
|
1016
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th:focus, .hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th.mock-hover {
|
|
1017
|
+
position: relative;
|
|
1018
|
+
outline-style: solid;
|
|
1019
|
+
outline-color: transparent;
|
|
1020
|
+
isolation: isolate;
|
|
1021
|
+
}
|
|
1022
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th:focus::before, .hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th.mock-hover::before {
|
|
1023
|
+
position: absolute;
|
|
1024
|
+
top: -1px;
|
|
1025
|
+
right: -1px;
|
|
1026
|
+
bottom: -1px;
|
|
1027
|
+
left: -1px;
|
|
1028
|
+
z-index: -1;
|
|
1029
|
+
border-radius: 5px;
|
|
1030
|
+
content: "";
|
|
1031
|
+
}
|
|
1032
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th:focus:focus::before, .hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th:focus.mock-focus::before, .hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th.mock-hover:focus::before, .hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th.mock-hover.mock-focus::before {
|
|
1033
|
+
box-shadow: var(--token-focus-ring-action-box-shadow);
|
|
1034
|
+
}
|
|
1035
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th:focus:focus:not(:focus-visible)::before, .hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th.mock-hover:focus:not(:focus-visible)::before {
|
|
1036
|
+
box-shadow: none;
|
|
1037
|
+
}
|
|
1038
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th:focus:focus-visible::before, .hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th.mock-hover:focus-visible::before {
|
|
1039
|
+
box-shadow: var(--token-focus-ring-action-box-shadow);
|
|
1040
|
+
}
|
|
1041
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th:focus:focus:active::before, .hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th:focus.mock-focus.mock-active::before, .hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th.mock-hover:focus:active::before, .hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th.mock-hover.mock-focus.mock-active::before {
|
|
1042
|
+
box-shadow: none;
|
|
1043
|
+
}
|
|
1044
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th--align-center,
|
|
1045
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__td--align-center {
|
|
1046
|
+
text-align: center;
|
|
1047
|
+
}
|
|
1048
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th--align-center .hds-advanced-table__th-content,
|
|
1049
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__td--align-center .hds-advanced-table__th-content {
|
|
1050
|
+
justify-content: center;
|
|
1051
|
+
}
|
|
1052
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th--align-right,
|
|
1053
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__td--align-right {
|
|
1054
|
+
text-align: right;
|
|
1055
|
+
}
|
|
1056
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__th--align-right .hds-advanced-table__th-content,
|
|
1057
|
+
.hds-advanced-table__thead .hds-advanced-table__tr .hds-advanced-table__td--align-right .hds-advanced-table__th-content {
|
|
1058
|
+
justify-content: flex-end;
|
|
1059
|
+
}
|
|
1060
|
+
.hds-advanced-table__thead .hds-advanced-table__tr:first-of-type .hds-advanced-table__th:first-child {
|
|
1061
|
+
border-top-left-radius: calc(var(--token-border-radius-medium) - 1px);
|
|
1062
|
+
}
|
|
1063
|
+
.hds-advanced-table__thead .hds-advanced-table__tr:first-of-type .hds-advanced-table__th:last-child {
|
|
1064
|
+
border-top-right-radius: calc(var(--token-border-radius-medium) - 1px);
|
|
1065
|
+
}
|
|
1066
|
+
.hds-advanced-table__thead.hds-advanced-table__thead--sticky {
|
|
1067
|
+
position: sticky;
|
|
1068
|
+
top: -1px;
|
|
1069
|
+
background-color: var(--token-color-surface-strong);
|
|
1070
|
+
border-bottom: calc(3px - 1px / 2) solid var(--token-color-border-primary);
|
|
1071
|
+
}
|
|
1072
|
+
.hds-advanced-table__thead.hds-advanced-table__thead--sticky.hds-advanced-table__thead--is-pinned {
|
|
1073
|
+
border-top: calc(1px / 2 + 1px) solid var(--token-color-border-primary);
|
|
1074
|
+
border-bottom: 3px solid var(--token-color-border-primary);
|
|
1075
|
+
}
|
|
1076
|
+
.hds-advanced-table__thead.hds-advanced-table__thead--sticky.hds-advanced-table__thead--is-pinned .hds-advanced-table__tr:first-of-type .hds-advanced-table__th:first-child {
|
|
1077
|
+
border-top-left-radius: 0;
|
|
1078
|
+
}
|
|
1079
|
+
.hds-advanced-table__thead.hds-advanced-table__thead--sticky.hds-advanced-table__thead--is-pinned .hds-advanced-table__tr:first-of-type .hds-advanced-table__th:last-child {
|
|
1080
|
+
border-top-right-radius: 0;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
.hds-advanced-table__th-content {
|
|
1084
|
+
display: flex;
|
|
1085
|
+
gap: 8px;
|
|
1086
|
+
align-items: center;
|
|
1087
|
+
justify-content: flex-start;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.hds-advanced-table__th-button {
|
|
1091
|
+
display: flex;
|
|
1092
|
+
flex: none;
|
|
1093
|
+
align-items: center;
|
|
1094
|
+
justify-content: center;
|
|
1095
|
+
width: 24px;
|
|
1096
|
+
height: 24px;
|
|
1097
|
+
margin: -2px 0;
|
|
1098
|
+
padding: 0;
|
|
1099
|
+
color: var(--token-color-foreground-faint);
|
|
1100
|
+
background-color: transparent;
|
|
1101
|
+
border: 1px solid transparent;
|
|
1102
|
+
border-radius: 3px;
|
|
1103
|
+
position: relative;
|
|
1104
|
+
outline-style: solid;
|
|
1105
|
+
outline-color: transparent;
|
|
1106
|
+
isolation: isolate;
|
|
1107
|
+
}
|
|
1108
|
+
.hds-advanced-table__th-button:hover, .hds-advanced-table__th-button.mock-hover {
|
|
1109
|
+
color: var(--token-color-foreground-primary);
|
|
1110
|
+
background-color: var(--token-color-surface-interactive);
|
|
1111
|
+
border-color: var(--token-color-border-strong);
|
|
1112
|
+
box-shadow: var(--token-elevation-low-box-shadow);
|
|
1113
|
+
cursor: pointer;
|
|
1114
|
+
}
|
|
1115
|
+
.hds-advanced-table__th-button::before {
|
|
1116
|
+
position: absolute;
|
|
1117
|
+
top: 0;
|
|
1118
|
+
right: 0;
|
|
1119
|
+
bottom: 0;
|
|
1120
|
+
left: 0;
|
|
1121
|
+
z-index: -1;
|
|
1122
|
+
border-radius: inherit;
|
|
1123
|
+
content: "";
|
|
1124
|
+
}
|
|
1125
|
+
.hds-advanced-table__th-button:focus::before, .hds-advanced-table__th-button.mock-focus::before {
|
|
1126
|
+
box-shadow: var(--token-focus-ring-action-box-shadow);
|
|
1127
|
+
}
|
|
1128
|
+
.hds-advanced-table__th-button:focus:not(:focus-visible)::before {
|
|
1129
|
+
box-shadow: none;
|
|
1130
|
+
}
|
|
1131
|
+
.hds-advanced-table__th-button:focus-visible::before {
|
|
1132
|
+
box-shadow: var(--token-focus-ring-action-box-shadow);
|
|
1133
|
+
}
|
|
1134
|
+
.hds-advanced-table__th-button:focus:active::before, .hds-advanced-table__th-button.mock-focus.mock-active::before {
|
|
1135
|
+
box-shadow: none;
|
|
1136
|
+
}
|
|
1137
|
+
.hds-advanced-table__th-button:active, .hds-advanced-table__th-button.mock-active {
|
|
1138
|
+
color: var(--token-color-foreground-primary);
|
|
1139
|
+
background-color: var(--token-color-surface-interactive-active);
|
|
1140
|
+
border-color: var(--token-color-border-strong);
|
|
1141
|
+
box-shadow: none;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
.hds-advanced-table__th-button--is-sorted {
|
|
1145
|
+
color: var(--token-color-foreground-action);
|
|
1146
|
+
}
|
|
1147
|
+
.hds-advanced-table__th-button--is-sorted:hover, .hds-advanced-table__th-button--is-sorted.mock-hover {
|
|
1148
|
+
color: var(--token-color-foreground-action-hover);
|
|
1149
|
+
}
|
|
1150
|
+
.hds-advanced-table__th-button--is-sorted:active, .hds-advanced-table__th-button--is-sorted.mock-active {
|
|
1151
|
+
color: var(--token-color-foreground-action-active);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
.hds-advanced-table__th-button-aria-label-hidden-segment {
|
|
1155
|
+
display: none;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
.hds-advanced-table__th-button--expand {
|
|
1159
|
+
align-self: flex-start;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.hds-advanced-table__tbody {
|
|
1163
|
+
display: grid;
|
|
1164
|
+
grid-column: 1/-1;
|
|
1165
|
+
grid-template-columns: subgrid;
|
|
1166
|
+
align-items: center;
|
|
1167
|
+
}
|
|
1168
|
+
.hds-advanced-table__tbody .hds-advanced-table__tr {
|
|
1169
|
+
display: contents;
|
|
1170
|
+
color: var(--token-color-foreground-primary);
|
|
1171
|
+
}
|
|
1172
|
+
.hds-advanced-table--striped .hds-advanced-table__tbody .hds-advanced-table__tr:nth-child(even) .hds-advanced-table__th,
|
|
1173
|
+
.hds-advanced-table--striped .hds-advanced-table__tbody .hds-advanced-table__tr:nth-child(even) .hds-advanced-table__td {
|
|
1174
|
+
background-color: var(--token-color-surface-faint);
|
|
1175
|
+
}
|
|
1176
|
+
.hds-advanced-table__tbody .hds-advanced-table__tr:last-of-type .hds-advanced-table__th:first-child,
|
|
1177
|
+
.hds-advanced-table__tbody .hds-advanced-table__tr:last-of-type .hds-advanced-table__td:first-child {
|
|
1178
|
+
border-bottom-left-radius: calc(var(--token-border-radius-medium) - 1px);
|
|
1179
|
+
}
|
|
1180
|
+
.hds-advanced-table__tbody .hds-advanced-table__tr:last-of-type .hds-advanced-table__td:last-child {
|
|
1181
|
+
border-bottom-right-radius: calc(var(--token-border-radius-medium) - 1px);
|
|
1182
|
+
}
|
|
1183
|
+
.hds-advanced-table__tbody .hds-advanced-table__th,
|
|
1184
|
+
.hds-advanced-table__tbody .hds-advanced-table__td {
|
|
1185
|
+
display: flex;
|
|
1186
|
+
gap: 8px;
|
|
1187
|
+
align-content: center;
|
|
1188
|
+
align-items: flex-start;
|
|
1189
|
+
justify-content: flex-start;
|
|
1190
|
+
height: 100%;
|
|
1191
|
+
text-align: left;
|
|
1192
|
+
background-color: var(--token-color-surface-primary);
|
|
1193
|
+
}
|
|
1194
|
+
.hds-advanced-table__tbody .hds-advanced-table__th:focus,
|
|
1195
|
+
.hds-advanced-table__tbody .hds-advanced-table__td:focus {
|
|
1196
|
+
position: relative;
|
|
1197
|
+
outline-style: solid;
|
|
1198
|
+
outline-color: transparent;
|
|
1199
|
+
isolation: isolate;
|
|
1200
|
+
}
|
|
1201
|
+
.hds-advanced-table__tbody .hds-advanced-table__th:focus::before,
|
|
1202
|
+
.hds-advanced-table__tbody .hds-advanced-table__td:focus::before {
|
|
1203
|
+
position: absolute;
|
|
1204
|
+
top: -1px;
|
|
1205
|
+
right: -1px;
|
|
1206
|
+
bottom: -1px;
|
|
1207
|
+
left: -1px;
|
|
1208
|
+
z-index: -1;
|
|
1209
|
+
border-radius: 5px;
|
|
1210
|
+
content: "";
|
|
1211
|
+
}
|
|
1212
|
+
.hds-advanced-table__tbody .hds-advanced-table__th:focus:focus::before, .hds-advanced-table__tbody .hds-advanced-table__th:focus.mock-focus::before,
|
|
1213
|
+
.hds-advanced-table__tbody .hds-advanced-table__td:focus:focus::before,
|
|
1214
|
+
.hds-advanced-table__tbody .hds-advanced-table__td:focus.mock-focus::before {
|
|
1215
|
+
box-shadow: var(--token-focus-ring-action-box-shadow);
|
|
1216
|
+
}
|
|
1217
|
+
.hds-advanced-table__tbody .hds-advanced-table__th:focus:focus:not(:focus-visible)::before,
|
|
1218
|
+
.hds-advanced-table__tbody .hds-advanced-table__td:focus:focus:not(:focus-visible)::before {
|
|
1219
|
+
box-shadow: none;
|
|
1220
|
+
}
|
|
1221
|
+
.hds-advanced-table__tbody .hds-advanced-table__th:focus:focus-visible::before,
|
|
1222
|
+
.hds-advanced-table__tbody .hds-advanced-table__td:focus:focus-visible::before {
|
|
1223
|
+
box-shadow: var(--token-focus-ring-action-box-shadow);
|
|
1224
|
+
}
|
|
1225
|
+
.hds-advanced-table__tbody .hds-advanced-table__th:focus:focus:active::before, .hds-advanced-table__tbody .hds-advanced-table__th:focus.mock-focus.mock-active::before,
|
|
1226
|
+
.hds-advanced-table__tbody .hds-advanced-table__td:focus:focus:active::before,
|
|
1227
|
+
.hds-advanced-table__tbody .hds-advanced-table__td:focus.mock-focus.mock-active::before {
|
|
1228
|
+
box-shadow: none;
|
|
1229
|
+
}
|
|
1230
|
+
.hds-advanced-table--density-short .hds-advanced-table__tbody .hds-advanced-table__th,
|
|
1231
|
+
.hds-advanced-table--density-short .hds-advanced-table__tbody .hds-advanced-table__td {
|
|
1232
|
+
padding: 6px 16px 5px 16px;
|
|
1233
|
+
}
|
|
1234
|
+
.hds-advanced-table--density-medium .hds-advanced-table__tbody .hds-advanced-table__th,
|
|
1235
|
+
.hds-advanced-table--density-medium .hds-advanced-table__tbody .hds-advanced-table__td {
|
|
1236
|
+
padding: 14px 16px 13px 16px;
|
|
1237
|
+
}
|
|
1238
|
+
.hds-advanced-table--density-tall .hds-advanced-table__tbody .hds-advanced-table__th,
|
|
1239
|
+
.hds-advanced-table--density-tall .hds-advanced-table__tbody .hds-advanced-table__td {
|
|
1240
|
+
padding: 22px 16px 21px 16px;
|
|
1241
|
+
}
|
|
1242
|
+
.hds-advanced-table__tbody .hds-advanced-table__th--align-center,
|
|
1243
|
+
.hds-advanced-table__tbody .hds-advanced-table__td--align-center {
|
|
1244
|
+
text-align: center;
|
|
1245
|
+
}
|
|
1246
|
+
.hds-advanced-table__tbody .hds-advanced-table__th--align-center .hds-advanced-table__th-content,
|
|
1247
|
+
.hds-advanced-table__tbody .hds-advanced-table__td--align-center .hds-advanced-table__th-content {
|
|
1248
|
+
justify-content: center;
|
|
1249
|
+
}
|
|
1250
|
+
.hds-advanced-table__tbody .hds-advanced-table__th--align-right,
|
|
1251
|
+
.hds-advanced-table__tbody .hds-advanced-table__td--align-right {
|
|
1252
|
+
text-align: right;
|
|
1253
|
+
}
|
|
1254
|
+
.hds-advanced-table__tbody .hds-advanced-table__th--align-right .hds-advanced-table__th-content,
|
|
1255
|
+
.hds-advanced-table__tbody .hds-advanced-table__td--align-right .hds-advanced-table__th-content {
|
|
1256
|
+
justify-content: flex-end;
|
|
1257
|
+
}
|
|
1258
|
+
.hds-advanced-table--valign-top .hds-advanced-table__tbody .hds-advanced-table__th,
|
|
1259
|
+
.hds-advanced-table--valign-top .hds-advanced-table__tbody .hds-advanced-table__td {
|
|
1260
|
+
align-items: flex-start;
|
|
1261
|
+
}
|
|
1262
|
+
.hds-advanced-table--valign-middle .hds-advanced-table__tbody .hds-advanced-table__th,
|
|
1263
|
+
.hds-advanced-table--valign-middle .hds-advanced-table__tbody .hds-advanced-table__td {
|
|
1264
|
+
align-items: center;
|
|
1265
|
+
}
|
|
1266
|
+
.hds-advanced-table--valign-baseline .hds-advanced-table__tbody .hds-advanced-table__th,
|
|
1267
|
+
.hds-advanced-table--valign-baseline .hds-advanced-table__tbody .hds-advanced-table__td {
|
|
1268
|
+
/**
|
|
1269
|
+
setting to center because in FlexBox, when you set align-items: baseline, it also aligns content to the top - unlike display: table-cell which aligns the content to the center
|
|
1270
|
+
|
|
1271
|
+
we decided as a team to match the Table behavior instead of actually setting align-items to baseline to mitigate the difference.
|
|
1272
|
+
*/
|
|
1273
|
+
align-items: center;
|
|
1274
|
+
}
|
|
1275
|
+
.hds-advanced-table__tbody .hds-advanced-table__tr--parent-row .hds-advanced-table__th:not(:first-child),
|
|
1276
|
+
.hds-advanced-table__tbody .hds-advanced-table__tr--parent-row .hds-advanced-table__td:not(:first-child) {
|
|
1277
|
+
border-left: 0;
|
|
1278
|
+
}
|
|
1279
|
+
.hds-advanced-table__tbody .hds-advanced-table__tr--parent-row .hds-advanced-table__th:not(:last-child),
|
|
1280
|
+
.hds-advanced-table__tbody .hds-advanced-table__tr--parent-row .hds-advanced-table__td:not(:last-child) {
|
|
1281
|
+
border-right: 0;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.hds-advanced-table--nested .hds-advanced-table__tr .hds-advanced-table__th, .hds-advanced-table--nested .hds-advanced-table__tr .hds-advanced-table__td {
|
|
1285
|
+
background-color: var(--token-color-surface-faint);
|
|
1286
|
+
}
|
|
1287
|
+
.hds-advanced-table--nested .hds-advanced-table__tr.hds-advanced-table__tr--parent-row .hds-advanced-table__th, .hds-advanced-table--nested .hds-advanced-table__tr.hds-advanced-table__tr--parent-row .hds-advanced-table__td {
|
|
1288
|
+
background-color: var(--token-color-surface-primary);
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
.hds-advanced-table__checkbox {
|
|
1292
|
+
display: block;
|
|
1293
|
+
margin: 2px 0;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
978
1296
|
/**
|
|
979
1297
|
* Copyright (c) HashiCorp, Inc.
|
|
980
1298
|
* SPDX-License-Identifier: MPL-2.0
|
|
@@ -1021,7 +1339,7 @@
|
|
|
1021
1339
|
line-height: 1em;
|
|
1022
1340
|
background-color: var(--token-color-surface-primary);
|
|
1023
1341
|
border: 1px solid var(--token-color-palette-neutral-200);
|
|
1024
|
-
border-radius:
|
|
1342
|
+
border-radius: var(--token-border-radius-small);
|
|
1025
1343
|
}
|
|
1026
1344
|
.hds-alert__description a:not([class*=hds-]) {
|
|
1027
1345
|
color: var(--token-color-foreground-strong);
|
|
@@ -1063,7 +1381,7 @@
|
|
|
1063
1381
|
padding: 16px;
|
|
1064
1382
|
border-style: solid;
|
|
1065
1383
|
border-width: 1px;
|
|
1066
|
-
border-radius:
|
|
1384
|
+
border-radius: var(--token-border-radius-medium);
|
|
1067
1385
|
}
|
|
1068
1386
|
|
|
1069
1387
|
.hds-alert--type-compact .hds-alert__icon {
|
|
@@ -1421,7 +1739,7 @@
|
|
|
1421
1739
|
max-width: 100%;
|
|
1422
1740
|
vertical-align: middle;
|
|
1423
1741
|
border: 1px solid transparent;
|
|
1424
|
-
border-radius:
|
|
1742
|
+
border-radius: var(--token-border-radius-small);
|
|
1425
1743
|
}
|
|
1426
1744
|
|
|
1427
1745
|
.hds-badge__icon {
|
|
@@ -1678,7 +1996,7 @@
|
|
|
1678
1996
|
margin: 0 -4px;
|
|
1679
1997
|
padding: 0 4px;
|
|
1680
1998
|
color: var(--token-color-foreground-faint);
|
|
1681
|
-
border-radius:
|
|
1999
|
+
border-radius: var(--token-border-radius-small);
|
|
1682
2000
|
text-decoration-color: transparent;
|
|
1683
2001
|
outline-style: solid;
|
|
1684
2002
|
outline-color: transparent;
|
|
@@ -1752,7 +2070,7 @@
|
|
|
1752
2070
|
color: var(--token-color-foreground-faint);
|
|
1753
2071
|
background-color: transparent;
|
|
1754
2072
|
border: 1px solid transparent;
|
|
1755
|
-
border-radius:
|
|
2073
|
+
border-radius: var(--token-border-radius-small);
|
|
1756
2074
|
outline: none;
|
|
1757
2075
|
cursor: pointer;
|
|
1758
2076
|
outline-style: solid;
|
|
@@ -1791,7 +2109,7 @@
|
|
|
1791
2109
|
max-width: 200px;
|
|
1792
2110
|
padding: 6px 12px;
|
|
1793
2111
|
background-color: var(--token-color-surface-primary);
|
|
1794
|
-
border-radius:
|
|
2112
|
+
border-radius: var(--token-border-radius-medium);
|
|
1795
2113
|
box-shadow: var(--token-surface-high-box-shadow);
|
|
1796
2114
|
}
|
|
1797
2115
|
:where(.hds-breadcrumb__truncation-content[popover]) {
|
|
@@ -1825,7 +2143,7 @@
|
|
|
1825
2143
|
font-family: var(--token-typography-font-stack-text);
|
|
1826
2144
|
text-decoration: none;
|
|
1827
2145
|
border: 1px solid transparent;
|
|
1828
|
-
border-radius:
|
|
2146
|
+
border-radius: var(--token-border-radius-small);
|
|
1829
2147
|
outline-style: solid;
|
|
1830
2148
|
outline-color: transparent;
|
|
1831
2149
|
isolation: isolate;
|
|
@@ -1865,7 +2183,7 @@ a.hds-button:hover, a.hds-button:focus, a.hds-button:active, a.hds-button.mock-h
|
|
|
1865
2183
|
left: -4px;
|
|
1866
2184
|
z-index: -1;
|
|
1867
2185
|
border: 3px solid transparent;
|
|
1868
|
-
border-radius:
|
|
2186
|
+
border-radius: calc(var(--token-border-radius-small) + 3px);
|
|
1869
2187
|
content: "";
|
|
1870
2188
|
}
|
|
1871
2189
|
|
|
@@ -1902,7 +2220,7 @@ a.hds-button:hover, a.hds-button:focus, a.hds-button:active, a.hds-button.mock-h
|
|
|
1902
2220
|
bottom: -6px;
|
|
1903
2221
|
left: -6px;
|
|
1904
2222
|
border-color: var(--token-color-focus-action-external);
|
|
1905
|
-
border-radius:
|
|
2223
|
+
border-radius: calc(var(--token-border-radius-small) + 3px + 2px);
|
|
1906
2224
|
}
|
|
1907
2225
|
.hds-button--color-primary:active, .hds-button--color-primary.mock-active {
|
|
1908
2226
|
color: var(--token-color-foreground-high-contrast);
|
|
@@ -2099,7 +2417,7 @@ button.hds-button[href]::after {
|
|
|
2099
2417
|
.hds-card__container {
|
|
2100
2418
|
position: relative;
|
|
2101
2419
|
background-color: #fff;
|
|
2102
|
-
border-radius:
|
|
2420
|
+
border-radius: var(--token-border-radius-medium);
|
|
2103
2421
|
}
|
|
2104
2422
|
|
|
2105
2423
|
.hds-card__container--level-surface-base {
|
|
@@ -2441,7 +2759,7 @@ button.hds-button[href]::after {
|
|
|
2441
2759
|
}
|
|
2442
2760
|
|
|
2443
2761
|
.hds-code-block--is-standalone {
|
|
2444
|
-
border-radius:
|
|
2762
|
+
border-radius: var(--token-border-radius-medium);
|
|
2445
2763
|
}
|
|
2446
2764
|
|
|
2447
2765
|
.hds-code-block--has-line-wrapping .hds-code-block__code,
|
|
@@ -2613,6 +2931,109 @@ button.hds-button[href]::after {
|
|
|
2613
2931
|
font-style: italic;
|
|
2614
2932
|
}
|
|
2615
2933
|
|
|
2934
|
+
/**
|
|
2935
|
+
* Copyright (c) HashiCorp, Inc.
|
|
2936
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
2937
|
+
*/
|
|
2938
|
+
/**
|
|
2939
|
+
* Copyright (c) HashiCorp, Inc.
|
|
2940
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
2941
|
+
*/
|
|
2942
|
+
.hds-code-editor--theme-dark {
|
|
2943
|
+
--hds-code-editor-color-border-strong: rgba(178, 182, 189, 40%);
|
|
2944
|
+
--hds-code-editor-color-border-primary: rgba(178, 182, 189, 20%);
|
|
2945
|
+
--hds-code-editor-color-foreground-primary: #d5d7db;
|
|
2946
|
+
--hds-code-editor-color-foreground-faint: #878a8f;
|
|
2947
|
+
--hds-code-editor-color-foreground-high-contrast: #fff;
|
|
2948
|
+
--hds-code-editor-color-surface-faint: #15181e;
|
|
2949
|
+
--hds-code-editor-color-surface-primary: #0D0E12;
|
|
2950
|
+
--hds-code-editor-color-surface-interactive-active: #2B303C;
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
.hds-code-editor {
|
|
2954
|
+
display: flex;
|
|
2955
|
+
flex-direction: column;
|
|
2956
|
+
overflow: hidden;
|
|
2957
|
+
background-color: var(--hds-code-editor-color-surface-primary);
|
|
2958
|
+
border: 1px solid var(--hds-code-editor-color-border-strong);
|
|
2959
|
+
}
|
|
2960
|
+
.hds-code-editor.hds-code-editor--is-standalone {
|
|
2961
|
+
border-radius: var(--token-border-radius-medium);
|
|
2962
|
+
}
|
|
2963
|
+
.hds-code-editor.hds-code-editor--is-full-screen {
|
|
2964
|
+
position: fixed;
|
|
2965
|
+
inset: 0;
|
|
2966
|
+
z-index: 1000;
|
|
2967
|
+
border: none;
|
|
2968
|
+
border-radius: 0;
|
|
2969
|
+
}
|
|
2970
|
+
.hds-code-editor.hds-code-editor--is-full-screen .hds-code-editor__editor {
|
|
2971
|
+
max-height: unset;
|
|
2972
|
+
}
|
|
2973
|
+
.hds-code-editor .hds-code-editor__header {
|
|
2974
|
+
display: flex;
|
|
2975
|
+
gap: 12px;
|
|
2976
|
+
align-items: start;
|
|
2977
|
+
padding: 16px;
|
|
2978
|
+
background-color: var(--hds-code-editor-color-surface-faint);
|
|
2979
|
+
border-bottom: 1px solid var(--hds-code-editor-color-border-primary);
|
|
2980
|
+
}
|
|
2981
|
+
.hds-code-editor .hds-code-editor__header-content {
|
|
2982
|
+
display: flex;
|
|
2983
|
+
flex-direction: column;
|
|
2984
|
+
flex-grow: 1;
|
|
2985
|
+
}
|
|
2986
|
+
.hds-code-editor .hds-code-editor__title {
|
|
2987
|
+
color: var(--hds-code-editor-color-foreground-primary);
|
|
2988
|
+
}
|
|
2989
|
+
.hds-code-editor .hds-code-editor__title + .hds-code-editor__description {
|
|
2990
|
+
margin-top: 4px;
|
|
2991
|
+
}
|
|
2992
|
+
.hds-code-editor .hds-code-editor__description {
|
|
2993
|
+
color: var(--hds-code-editor-color-foreground-faint);
|
|
2994
|
+
}
|
|
2995
|
+
.hds-code-editor .hds-code-editor__title + .hds-code-editor__header-generic,
|
|
2996
|
+
.hds-code-editor .hds-code-editor__description + .hds-code-editor__header-generic {
|
|
2997
|
+
margin-top: 12px;
|
|
2998
|
+
}
|
|
2999
|
+
.hds-code-editor .hds-code-editor__header-actions {
|
|
3000
|
+
display: flex;
|
|
3001
|
+
gap: 8px;
|
|
3002
|
+
align-items: center;
|
|
3003
|
+
}
|
|
3004
|
+
.hds-code-editor .hds-code-editor__header-actions .hds-button {
|
|
3005
|
+
outline-offset: 0;
|
|
3006
|
+
}
|
|
3007
|
+
.hds-code-editor .hds-code-editor__editor {
|
|
3008
|
+
flex-grow: 1;
|
|
3009
|
+
overflow: auto;
|
|
3010
|
+
}
|
|
3011
|
+
.hds-code-editor .hds-code-editor__loader {
|
|
3012
|
+
display: flex;
|
|
3013
|
+
align-items: center;
|
|
3014
|
+
justify-content: center;
|
|
3015
|
+
height: 164px;
|
|
3016
|
+
color: var(--hds-code-editor-color-foreground-primary);
|
|
3017
|
+
background-color: var(--hds-code-editor-color-surface-primary);
|
|
3018
|
+
}
|
|
3019
|
+
.hds-code-editor .hds-button {
|
|
3020
|
+
color: var(--hds-code-editor-color-foreground-primary);
|
|
3021
|
+
background-color: var(--hds-code-editor-color-surface-faint);
|
|
3022
|
+
border: 1px solid var(--hds-code-editor-color-border-strong);
|
|
3023
|
+
}
|
|
3024
|
+
.hds-code-editor .hds-button:focus, .hds-code-editor .hds-button:hover {
|
|
3025
|
+
background-color: var(--hds-code-editor-color-surface-primary);
|
|
3026
|
+
}
|
|
3027
|
+
.hds-code-editor .hds-button:focus .hds-button__icon, .hds-code-editor .hds-button:hover .hds-button__icon {
|
|
3028
|
+
color: var(--hds-code-editor-color-foreground-primary);
|
|
3029
|
+
}
|
|
3030
|
+
.hds-code-editor .hds-button:active {
|
|
3031
|
+
background-color: var(--hds-code-editor-color-surface-interactive-active);
|
|
3032
|
+
}
|
|
3033
|
+
.hds-code-editor .hds-button .hds-button__icon {
|
|
3034
|
+
color: var(--hds-code-editor-color-foreground-primary);
|
|
3035
|
+
}
|
|
3036
|
+
|
|
2616
3037
|
/**
|
|
2617
3038
|
* Copyright (c) HashiCorp, Inc.
|
|
2618
3039
|
* SPDX-License-Identifier: MPL-2.0
|
|
@@ -2656,7 +3077,7 @@ button.hds-button[href]::after {
|
|
|
2656
3077
|
padding: 6px 4px;
|
|
2657
3078
|
text-align: left;
|
|
2658
3079
|
border: 1px solid transparent;
|
|
2659
|
-
border-radius:
|
|
3080
|
+
border-radius: var(--token-border-radius-small);
|
|
2660
3081
|
cursor: pointer;
|
|
2661
3082
|
}
|
|
2662
3083
|
.hds-copy-snippet::before {
|
|
@@ -2963,9 +3384,10 @@ button.hds-button[href]::after {
|
|
|
2963
3384
|
color: var(--token-color-foreground-primary);
|
|
2964
3385
|
background-color: var(--token-color-surface-faint);
|
|
2965
3386
|
border: 1px solid var(--token-color-border-strong);
|
|
2966
|
-
border-radius:
|
|
3387
|
+
border-radius: var(--token-border-radius-small);
|
|
2967
3388
|
outline-style: solid;
|
|
2968
3389
|
outline-color: transparent;
|
|
3390
|
+
isolation: isolate;
|
|
2969
3391
|
}
|
|
2970
3392
|
.hds-dropdown-toggle-icon:hover, .hds-dropdown-toggle-icon.mock-hover {
|
|
2971
3393
|
background-color: var(--token-color-surface-interactive);
|
|
@@ -2983,7 +3405,7 @@ button.hds-button[href]::after {
|
|
|
2983
3405
|
left: -4px;
|
|
2984
3406
|
z-index: -1;
|
|
2985
3407
|
border: 3px solid transparent;
|
|
2986
|
-
border-radius:
|
|
3408
|
+
border-radius: calc(var(--token-border-radius-small) + 3px);
|
|
2987
3409
|
content: "";
|
|
2988
3410
|
}
|
|
2989
3411
|
.hds-dropdown-toggle-icon:focus::before, .hds-dropdown-toggle-icon.mock-focus::before {
|
|
@@ -3011,7 +3433,7 @@ button.hds-button[href]::after {
|
|
|
3011
3433
|
display: flex;
|
|
3012
3434
|
align-items: center;
|
|
3013
3435
|
justify-content: center;
|
|
3014
|
-
border-radius:
|
|
3436
|
+
border-radius: calc(var(--token-border-radius-small) - 2px);
|
|
3015
3437
|
}
|
|
3016
3438
|
.hds-dropdown-toggle-icon__wrapper img {
|
|
3017
3439
|
width: 100%;
|
|
@@ -3045,7 +3467,7 @@ button.hds-button[href]::after {
|
|
|
3045
3467
|
font-family: var(--token-typography-font-stack-text);
|
|
3046
3468
|
text-decoration: none;
|
|
3047
3469
|
border: 1px solid transparent;
|
|
3048
|
-
border-radius:
|
|
3470
|
+
border-radius: var(--token-border-radius-small);
|
|
3049
3471
|
outline-style: solid;
|
|
3050
3472
|
outline-color: transparent;
|
|
3051
3473
|
isolation: isolate;
|
|
@@ -3061,7 +3483,7 @@ button.hds-button[href]::after {
|
|
|
3061
3483
|
left: -4px;
|
|
3062
3484
|
z-index: -1;
|
|
3063
3485
|
border: 3px solid transparent;
|
|
3064
|
-
border-radius:
|
|
3486
|
+
border-radius: calc(var(--token-border-radius-small) + 3px);
|
|
3065
3487
|
content: "";
|
|
3066
3488
|
}
|
|
3067
3489
|
.hds-dropdown-toggle-button:disabled, .hds-dropdown-toggle-button.mock-disabled, .hds-dropdown-toggle-button:disabled:focus, .hds-dropdown-toggle-button.mock-disabled:focus, .hds-dropdown-toggle-button:disabled:hover, .hds-dropdown-toggle-button.mock-disabled:hover {
|
|
@@ -3174,7 +3596,7 @@ button.hds-button[href]::after {
|
|
|
3174
3596
|
bottom: -6px;
|
|
3175
3597
|
left: -6px;
|
|
3176
3598
|
border-color: var(--token-color-focus-action-external);
|
|
3177
|
-
border-radius:
|
|
3599
|
+
border-radius: calc(var(--token-border-radius-small) + 3px + 2px);
|
|
3178
3600
|
}
|
|
3179
3601
|
.hds-dropdown-toggle-button--color-primary:active, .hds-dropdown-toggle-button--color-primary.mock-active {
|
|
3180
3602
|
color: var(--token-color-foreground-high-contrast);
|
|
@@ -3256,7 +3678,7 @@ button.hds-button[href]::after {
|
|
|
3256
3678
|
min-width: 200px;
|
|
3257
3679
|
max-width: 400px;
|
|
3258
3680
|
background-color: var(--token-color-surface-primary);
|
|
3259
|
-
border-radius:
|
|
3681
|
+
border-radius: var(--token-border-radius-medium);
|
|
3260
3682
|
box-shadow: var(--token-surface-high-box-shadow);
|
|
3261
3683
|
}
|
|
3262
3684
|
:where(.hds-dropdown__content[popover]) {
|
|
@@ -3399,7 +3821,7 @@ button.hds-button[href]::after {
|
|
|
3399
3821
|
bottom: 0;
|
|
3400
3822
|
left: 10px;
|
|
3401
3823
|
z-index: -1;
|
|
3402
|
-
border-radius:
|
|
3824
|
+
border-radius: var(--token-border-radius-small);
|
|
3403
3825
|
content: "";
|
|
3404
3826
|
}
|
|
3405
3827
|
.hds-dropdown-list-item--variant-interactive a:hover, .hds-dropdown-list-item--variant-interactive a.mock-hover,
|
|
@@ -3824,7 +4246,7 @@ button.hds-button[href]::after {
|
|
|
3824
4246
|
background-position: 15px 50%;
|
|
3825
4247
|
background-size: var(--token-form-text-input-background-image-size);
|
|
3826
4248
|
border: 1px solid var(--token-color-border-strong);
|
|
3827
|
-
border-radius:
|
|
4249
|
+
border-radius: var(--token-border-radius-small);
|
|
3828
4250
|
box-shadow: var(--token-elevation-low-box-shadow);
|
|
3829
4251
|
cursor: pointer;
|
|
3830
4252
|
}
|
|
@@ -4274,7 +4696,7 @@ button.hds-button[href]::after {
|
|
|
4274
4696
|
}
|
|
4275
4697
|
.hds-form-select[multiple] option, .hds-form-select[size] option {
|
|
4276
4698
|
margin: 2px auto;
|
|
4277
|
-
border-radius:
|
|
4699
|
+
border-radius: var(--token-border-radius-x-small);
|
|
4278
4700
|
}
|
|
4279
4701
|
.hds-form-select[multiple] option:hover, .hds-form-select[size] option:hover {
|
|
4280
4702
|
color: var(--token-color-foreground-action);
|
|
@@ -4987,7 +5409,7 @@ button.hds-button[href]::after {
|
|
|
4987
5409
|
position: relative;
|
|
4988
5410
|
display: flex;
|
|
4989
5411
|
border: 1px solid transparent;
|
|
4990
|
-
border-radius:
|
|
5412
|
+
border-radius: var(--token-border-radius-medium);
|
|
4991
5413
|
}
|
|
4992
5414
|
|
|
4993
5415
|
.hds-icon-tile__icon,
|
|
@@ -5291,7 +5713,7 @@ button.hds-button[href]::after {
|
|
|
5291
5713
|
bottom: 0;
|
|
5292
5714
|
left: -5px;
|
|
5293
5715
|
z-index: -1;
|
|
5294
|
-
border-radius:
|
|
5716
|
+
border-radius: var(--token-border-radius-small);
|
|
5295
5717
|
content: "";
|
|
5296
5718
|
}
|
|
5297
5719
|
.hds-link-standalone:focus::before, .hds-link-standalone.mock-focus::before {
|
|
@@ -5333,7 +5755,7 @@ button.hds-button[href]::after {
|
|
|
5333
5755
|
max-height: 95vh;
|
|
5334
5756
|
inset: 0;
|
|
5335
5757
|
margin: auto;
|
|
5336
|
-
border-radius:
|
|
5758
|
+
border-radius: var(--token-border-radius-large);
|
|
5337
5759
|
box-shadow: var(--token-surface-overlay-box-shadow);
|
|
5338
5760
|
}
|
|
5339
5761
|
.hds-modal:not([open]) {
|
|
@@ -5790,7 +6212,7 @@ button.hds-button[href]::after {
|
|
|
5790
6212
|
max-height: none;
|
|
5791
6213
|
padding: 16px;
|
|
5792
6214
|
background: var(--token-color-surface-primary);
|
|
5793
|
-
border-radius:
|
|
6215
|
+
border-radius: var(--token-border-radius-small);
|
|
5794
6216
|
box-shadow: var(--token-surface-higher-box-shadow);
|
|
5795
6217
|
opacity: 0;
|
|
5796
6218
|
transition: opacity 0.3s;
|
|
@@ -6209,7 +6631,7 @@ button.hds-button[href]::after {
|
|
|
6209
6631
|
border-color: var(--token-color-palette-neutral-500);
|
|
6210
6632
|
color: var(--token-color-foreground-high-contrast);
|
|
6211
6633
|
background-color: var(--token-color-palette-neutral-700);
|
|
6212
|
-
border-radius:
|
|
6634
|
+
border-radius: var(--token-border-radius-small);
|
|
6213
6635
|
}
|
|
6214
6636
|
.hds-side-nav__dropdown .hds-button:not(.hds-dropdown * *, .ember-basic-dropdown-trigger * *, .ember-basic-dropdown-content * *):hover, .hds-side-nav__dropdown .hds-button:not(.hds-dropdown * *, .ember-basic-dropdown-trigger * *, .ember-basic-dropdown-content * *).mock-hover,
|
|
6215
6637
|
.hds-side-nav__dropdown .hds-dropdown-toggle-button:not(.hds-dropdown * *, .ember-basic-dropdown-trigger * *, .ember-basic-dropdown-content * *):hover,
|
|
@@ -6528,7 +6950,7 @@ button.hds-button[href]::after {
|
|
|
6528
6950
|
border-color: var(--token-color-palette-neutral-500);
|
|
6529
6951
|
color: var(--token-color-foreground-high-contrast);
|
|
6530
6952
|
background-color: var(--token-color-palette-neutral-700);
|
|
6531
|
-
border-radius:
|
|
6953
|
+
border-radius: var(--token-border-radius-small);
|
|
6532
6954
|
display: flex;
|
|
6533
6955
|
align-items: center;
|
|
6534
6956
|
justify-content: center;
|
|
@@ -6844,7 +7266,7 @@ button.hds-button[href]::after {
|
|
|
6844
7266
|
font-family: var(--token-typography-display-200-font-family);
|
|
6845
7267
|
line-height: var(--token-typography-display-200-line-height);
|
|
6846
7268
|
background-color: var(--token-color-surface-faint);
|
|
6847
|
-
border-radius:
|
|
7269
|
+
border-radius: var(--token-border-radius-x-small);
|
|
6848
7270
|
transform: translateY(-200%);
|
|
6849
7271
|
transition: 0.6s ease-in-out;
|
|
6850
7272
|
}
|
|
@@ -7061,8 +7483,7 @@ button.hds-button[href]::after {
|
|
|
7061
7483
|
*/
|
|
7062
7484
|
.hds-table {
|
|
7063
7485
|
width: 100%;
|
|
7064
|
-
border:
|
|
7065
|
-
border-radius: 6px;
|
|
7486
|
+
border-radius: var(--token-border-radius-medium);
|
|
7066
7487
|
border-spacing: 0;
|
|
7067
7488
|
}
|
|
7068
7489
|
|
|
@@ -7070,28 +7491,19 @@ button.hds-button[href]::after {
|
|
|
7070
7491
|
table-layout: fixed;
|
|
7071
7492
|
}
|
|
7072
7493
|
|
|
7494
|
+
.hds-table,
|
|
7495
|
+
.hds-table__th,
|
|
7496
|
+
.hds-table__td {
|
|
7497
|
+
border: calc(1px / 2) solid var(--token-color-border-primary);
|
|
7498
|
+
}
|
|
7499
|
+
|
|
7073
7500
|
.hds-table__thead .hds-table__tr {
|
|
7074
7501
|
color: var(--token-color-foreground-strong);
|
|
7075
7502
|
background-color: var(--token-color-surface-strong);
|
|
7076
7503
|
}
|
|
7077
7504
|
.hds-table__thead .hds-table__tr .hds-table__th {
|
|
7078
|
-
position: relative;
|
|
7079
7505
|
padding: 14px 16px 13px 16px;
|
|
7080
7506
|
text-align: left;
|
|
7081
|
-
border-top: none;
|
|
7082
|
-
border-right: none;
|
|
7083
|
-
border-bottom: 1px solid var(--token-color-border-primary);
|
|
7084
|
-
border-left: none;
|
|
7085
|
-
}
|
|
7086
|
-
.hds-table__thead .hds-table__tr .hds-table__th + .hds-table__th::before {
|
|
7087
|
-
position: absolute;
|
|
7088
|
-
top: 6px;
|
|
7089
|
-
bottom: 6px;
|
|
7090
|
-
left: -1px;
|
|
7091
|
-
width: 1px;
|
|
7092
|
-
background-color: var(--token-color-border-primary);
|
|
7093
|
-
content: "";
|
|
7094
|
-
pointer-events: none;
|
|
7095
7507
|
}
|
|
7096
7508
|
.hds-table__thead .hds-table__tr .hds-table__th--align-center,
|
|
7097
7509
|
.hds-table__thead .hds-table__tr .hds-table__td--align-center {
|
|
@@ -7110,10 +7522,10 @@ button.hds-button[href]::after {
|
|
|
7110
7522
|
justify-content: flex-end;
|
|
7111
7523
|
}
|
|
7112
7524
|
.hds-table__thead .hds-table__tr:first-of-type .hds-table__th:first-child {
|
|
7113
|
-
border-top-left-radius:
|
|
7525
|
+
border-top-left-radius: calc(var(--token-border-radius-medium) - 1px);
|
|
7114
7526
|
}
|
|
7115
7527
|
.hds-table__thead .hds-table__tr:first-of-type .hds-table__th:last-child {
|
|
7116
|
-
border-top-right-radius:
|
|
7528
|
+
border-top-right-radius: calc(var(--token-border-radius-medium) - 1px);
|
|
7117
7529
|
}
|
|
7118
7530
|
|
|
7119
7531
|
.hds-table__th--is-selectable {
|
|
@@ -7139,7 +7551,7 @@ button.hds-button[href]::after {
|
|
|
7139
7551
|
color: var(--token-color-foreground-faint);
|
|
7140
7552
|
background-color: transparent;
|
|
7141
7553
|
border: 1px solid transparent;
|
|
7142
|
-
border-radius:
|
|
7554
|
+
border-radius: var(--token-border-radius-x-small);
|
|
7143
7555
|
position: relative;
|
|
7144
7556
|
outline-style: solid;
|
|
7145
7557
|
outline-color: transparent;
|
|
@@ -7202,24 +7614,16 @@ button.hds-button[href]::after {
|
|
|
7202
7614
|
.hds-table--striped .hds-table__tbody .hds-table__tr:nth-child(even) {
|
|
7203
7615
|
background-color: var(--token-color-surface-faint);
|
|
7204
7616
|
}
|
|
7205
|
-
.hds-table__tbody .hds-table__tr:last-of-type .hds-table__th,
|
|
7206
|
-
.hds-table__tbody .hds-table__tr:last-of-type .hds-table__td {
|
|
7207
|
-
border-bottom: none;
|
|
7208
|
-
}
|
|
7209
7617
|
.hds-table__tbody .hds-table__tr:last-of-type .hds-table__th:first-child,
|
|
7210
7618
|
.hds-table__tbody .hds-table__tr:last-of-type .hds-table__td:first-child {
|
|
7211
|
-
border-bottom-left-radius:
|
|
7619
|
+
border-bottom-left-radius: calc(var(--token-border-radius-medium) - 1px);
|
|
7212
7620
|
}
|
|
7213
7621
|
.hds-table__tbody .hds-table__tr:last-of-type .hds-table__td:last-child {
|
|
7214
|
-
border-bottom-right-radius:
|
|
7622
|
+
border-bottom-right-radius: calc(var(--token-border-radius-medium) - 1px);
|
|
7215
7623
|
}
|
|
7216
7624
|
.hds-table__tbody .hds-table__th,
|
|
7217
7625
|
.hds-table__tbody .hds-table__td {
|
|
7218
7626
|
text-align: left;
|
|
7219
|
-
border-top: none;
|
|
7220
|
-
border-right: none;
|
|
7221
|
-
border-bottom: 1px solid var(--token-color-border-primary);
|
|
7222
|
-
border-left: none;
|
|
7223
7627
|
}
|
|
7224
7628
|
.hds-table--density-short .hds-table__tbody .hds-table__th,
|
|
7225
7629
|
.hds-table--density-short .hds-table__tbody .hds-table__td {
|