@navikt/ds-css 8.10.6 → 8.11.1

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/index.css CHANGED
@@ -646,7 +646,7 @@
646
646
  }
647
647
 
648
648
  :root, :host {
649
- --ax-version: "8.10.6";
649
+ --ax-version: "8.11.1";
650
650
  --ax-space-0: 0rem;
651
651
  --ax-space-1: .0625rem;
652
652
  --ax-space-2: .125rem;
@@ -4691,6 +4691,614 @@
4691
4691
  }
4692
4692
  }
4693
4693
 
4694
+ .aksel-data-grid {
4695
+ flex-direction: column;
4696
+ flex-grow: 1;
4697
+ width: 100%;
4698
+ display: flex;
4699
+ overflow: hidden;
4700
+ }
4701
+
4702
+ .aksel-data-table__border-wrapper {
4703
+ max-height: 100%;
4704
+ display: flex;
4705
+ }
4706
+
4707
+ .aksel-data-table__scroll-wrapper {
4708
+ scroll-timeline: --horizontal-table-scroll inline;
4709
+ width: 100%;
4710
+ position: relative;
4711
+ overflow: auto;
4712
+ }
4713
+
4714
+ .aksel-data-table[data-layout="fixed"] {
4715
+ table-layout: fixed;
4716
+ width: 1px;
4717
+ min-width: 100%;
4718
+ }
4719
+
4720
+ .aksel-data-table[data-layout="auto"] {
4721
+ min-width: 100%;
4722
+ }
4723
+
4724
+ .aksel-data-table {
4725
+ --__axc-data-table-text-size: var(--ax-font-size-large);
4726
+ --__axc-data-table-density: var(--ax-space-12);
4727
+ }
4728
+
4729
+ .aksel-data-table[data-text-size="small"] {
4730
+ --__axc-data-table-text-size: var(--ax-font-size-medium);
4731
+ }
4732
+
4733
+ .aksel-data-table[data-density="tight"] {
4734
+ --__axc-data-table-density: var(--ax-space-6);
4735
+ }
4736
+
4737
+ .aksel-data-table[data-density="loose"] {
4738
+ --__axc-data-table-density: var(--ax-space-20);
4739
+ }
4740
+
4741
+ .aksel-data-table[data-zebra-stripes="true"] .aksel-data-table__tbody :where(.aksel-data-table__tr:nth-child(odd)) {
4742
+ background-color: var(--ax-bg-neutral-softA);
4743
+ }
4744
+
4745
+ .aksel-data-table__thead {
4746
+ background-color: var(--ax-bg-raised);
4747
+ box-shadow: 0 1px 0 0 var(--ax-border-neutral-subtle);
4748
+ position: relative;
4749
+ }
4750
+
4751
+ .aksel-data-table[data-loading="true"] .aksel-data-table__thead:after {
4752
+ content: "";
4753
+ background-color: var(--ax-bg-strong);
4754
+ z-index: 11;
4755
+ block-size: 2px;
4756
+ animation: 1s linear infinite animateDataTableLoading;
4757
+ position: absolute;
4758
+ }
4759
+
4760
+ .aksel-data-table__thead[data-sticky="true"] {
4761
+ z-index: 3;
4762
+ position: sticky;
4763
+ top: 0;
4764
+ }
4765
+
4766
+ .aksel-data-table__tbody {
4767
+ background-color: var(--ax-bg-raised);
4768
+ position: relative;
4769
+ }
4770
+
4771
+ .aksel-data-table__tbody[inert] {
4772
+ opacity: var(--ax-opacity-disabled);
4773
+ }
4774
+
4775
+ .aksel-data-table__tbody[inert]:after {
4776
+ content: "";
4777
+ background-color: var(--ax-bg-overlay);
4778
+ z-index: 2;
4779
+ opacity: .2;
4780
+ position: absolute;
4781
+ inset: 0;
4782
+ }
4783
+
4784
+ .aksel-data-table__tr[data-selected="true"] {
4785
+ background-color: var(--ax-bg-softA);
4786
+ }
4787
+
4788
+ .aksel-data-table__border-wrapper {
4789
+ border-radius: var(--ax-radius-12);
4790
+ position: relative;
4791
+ overflow: hidden;
4792
+ }
4793
+
4794
+ .aksel-data-table__border-wrapper:after {
4795
+ content: "";
4796
+ pointer-events: none;
4797
+ border: 1px solid var(--ax-border-neutral-subtle);
4798
+ border-radius: var(--ax-radius-12);
4799
+ z-index: 3;
4800
+ position: absolute;
4801
+ inset: 0;
4802
+ }
4803
+
4804
+ .aksel-data-table {
4805
+ border-collapse: collapse;
4806
+ border-spacing: 0;
4807
+ border-right: 1px solid var(--ax-border-neutral-subtle);
4808
+ border-bottom: 1px solid var(--ax-border-neutral-subtle);
4809
+ }
4810
+
4811
+ @keyframes scroll-shadow-fade-start {
4812
+ 0% {
4813
+ opacity: 0;
4814
+ }
4815
+
4816
+ 10%, 100% {
4817
+ opacity: 1;
4818
+ }
4819
+ }
4820
+
4821
+ @keyframes scroll-shadow-fade-end {
4822
+ 90% {
4823
+ opacity: 1;
4824
+ }
4825
+
4826
+ 100% {
4827
+ opacity: 0;
4828
+ }
4829
+ }
4830
+
4831
+ .aksel-data-table__cell {
4832
+ box-shadow: inset 1px 1px 0 0 var(--ax-border-neutral-subtle);
4833
+ text-align: start;
4834
+ vertical-align: middle;
4835
+ scroll-margin: var(--ax-space-0);
4836
+ font-size: var(--__axc-data-table-text-size);
4837
+ padding: 0;
4838
+ }
4839
+
4840
+ .aksel-data-table__cell:not(.aksel-data-table__column-header) {
4841
+ overflow: hidden;
4842
+ }
4843
+
4844
+ .aksel-data-table__cell[data-nested="true"] {
4845
+ position: relative;
4846
+ }
4847
+
4848
+ .aksel-data-table__cell[data-nested="true"] > .aksel-data-table__cell-content {
4849
+ margin-inline-start: calc(32px + 8px + calc(var(--__axc-data-table-nested-depth) * var(--ax-space-16)));
4850
+ }
4851
+
4852
+ .aksel-data-table__thead .aksel-data-table__cell {
4853
+ background-color: var(--ax-bg-neutral-soft);
4854
+ }
4855
+
4856
+ .aksel-data-table__cell[data-align="left"] {
4857
+ text-align: start;
4858
+ }
4859
+
4860
+ .aksel-data-table__cell[data-align="center"] {
4861
+ text-align: center;
4862
+ }
4863
+
4864
+ .aksel-data-table__cell[data-align="right"] {
4865
+ text-align: end;
4866
+ }
4867
+
4868
+ .aksel-data-table__cell[data-sticky] {
4869
+ z-index: 1;
4870
+ position: sticky;
4871
+ }
4872
+
4873
+ .aksel-data-table__cell[data-sticky]:after {
4874
+ content: "";
4875
+ pointer-events: none;
4876
+ border-color: var(--ax-border-neutral-subtle);
4877
+ border-style: solid;
4878
+ border-width: 0;
4879
+ position: absolute;
4880
+ inset-block: 0;
4881
+ }
4882
+
4883
+ .aksel-data-table__cell[data-sticky][data-sticky="start"] {
4884
+ left: 0;
4885
+ }
4886
+
4887
+ .aksel-data-table__cell[data-sticky][data-sticky="start"][data-sticky-last]:before {
4888
+ content: "";
4889
+ pointer-events: none;
4890
+ width: 100%;
4891
+ height: 100%;
4892
+ box-shadow: 4px 0 8px 1px var(--ax-border-neutral-subtleA);
4893
+ clip-path: inset(0 -24px 0 0);
4894
+ opacity: 0;
4895
+ position: absolute;
4896
+ inset: 0;
4897
+ }
4898
+
4899
+ .aksel-data-table[data-scroll] .aksel-data-table__cell[data-sticky][data-sticky="start"][data-sticky-last]:before {
4900
+ opacity: 1;
4901
+ animation: 1s linear scroll-shadow-fade-start;
4902
+ animation-timeline: --horizontal-table-scroll;
4903
+ }
4904
+
4905
+ .aksel-data-table__cell[data-sticky][data-sticky="start"][data-sticky-last]:after {
4906
+ border-right-width: 1px;
4907
+ inset-inline: 0 -1px;
4908
+ }
4909
+
4910
+ .aksel-data-table__cell[data-sticky][data-sticky="end"] {
4911
+ right: 0;
4912
+ }
4913
+
4914
+ .aksel-data-table__cell[data-sticky][data-sticky="end"]:before {
4915
+ content: "";
4916
+ pointer-events: none;
4917
+ width: 100%;
4918
+ height: 100%;
4919
+ box-shadow: -4px 0 8px 1px var(--ax-border-neutral-subtleA);
4920
+ clip-path: inset(0 0 0 -24px);
4921
+ opacity: 0;
4922
+ position: absolute;
4923
+ inset: 0;
4924
+ }
4925
+
4926
+ .aksel-data-table[data-scroll] .aksel-data-table__cell[data-sticky][data-sticky="end"]:before {
4927
+ opacity: 1;
4928
+ animation: 1s linear scroll-shadow-fade-end;
4929
+ animation-timeline: --horizontal-table-scroll;
4930
+ }
4931
+
4932
+ .aksel-data-table__cell[data-sticky] {
4933
+ background-color: var(--ax-bg-raised);
4934
+ }
4935
+
4936
+ .aksel-data-table__tr[data-selected="true"] .aksel-data-table__cell[data-sticky] {
4937
+ background-color: var(--ax-bg-soft);
4938
+ }
4939
+
4940
+ .aksel-data-table__thead .aksel-data-table__cell[data-sticky] {
4941
+ background-color: var(--ax-bg-neutral-soft);
4942
+ }
4943
+
4944
+ .aksel-data-table__cell:focus-visible, .aksel-data-table__cell:has(.aksel-data-table__th-sort-button:focus) {
4945
+ outline: 2px solid var(--ax-border-focus);
4946
+ outline-offset: -4px;
4947
+ }
4948
+
4949
+ .aksel-data-table__cell[data-cell-type="action"] {
4950
+ padding: 0;
4951
+ }
4952
+
4953
+ .aksel-data-table__cell[data-cell-type="action"] > .aksel-data-table__cell-content {
4954
+ place-content: center;
4955
+ display: grid;
4956
+ }
4957
+
4958
+ .aksel-data-table__cell {
4959
+ --__axc-data-table-pi-cell: var(--ax-space-16);
4960
+ }
4961
+
4962
+ .aksel-data-table__cell:not([data-cell-type="action"]) > .aksel-data-table__cell-content {
4963
+ padding-block: var(--__axc-data-table-density);
4964
+ padding-inline: var(--__axc-data-table-pi-cell);
4965
+ overflow: hidden;
4966
+ }
4967
+
4968
+ .aksel-data-table[data-truncate-content="true"] :is(.aksel-data-table__cell:not([data-cell-type="action"]) > .aksel-data-table__cell-content) {
4969
+ text-overflow: ellipsis;
4970
+ white-space: nowrap;
4971
+ }
4972
+
4973
+ .aksel-data-table__column-header {
4974
+ --__axc-data-table-density: var(--ax-space-8);
4975
+ font-weight: var(--ax-font-weight-bold);
4976
+ position: relative;
4977
+ }
4978
+
4979
+ .aksel-data-table__column-header:has(.aksel-data-table__th-sort-button:hover:not(:disabled)) {
4980
+ background-color: var(--ax-bg-neutral-moderate-hover);
4981
+ }
4982
+
4983
+ .aksel-data-table__column-header:has(.aksel-data-table__th-sort-button:active:not(:disabled)) {
4984
+ background-color: var(--ax-bg-neutral-moderate-pressed);
4985
+ }
4986
+
4987
+ .aksel-data-table__column-header[data-sortable="true"] {
4988
+ block-size: calc(var(--__axc-data-table-density) + 1.5rem);
4989
+ padding: 0;
4990
+ }
4991
+
4992
+ .aksel-data-table__th-sort-button {
4993
+ align-items: center;
4994
+ gap: var(--ax-space-2);
4995
+ block-size: calc(var(--__axc-data-table-density) + 1.5rem);
4996
+ cursor: pointer;
4997
+ text-align: start;
4998
+ width: 100%;
4999
+ font-weight: inherit;
5000
+ background-color: rgba(0, 0, 0, 0);
5001
+ border: none;
5002
+ padding: 0;
5003
+ display: flex;
5004
+ }
5005
+
5006
+ .aksel-data-table__th-sort-button:focus-visible {
5007
+ outline: none;
5008
+ }
5009
+
5010
+ .aksel-data-table__th-sort-button:disabled {
5011
+ color: inherit;
5012
+ cursor: default;
5013
+ }
5014
+
5015
+ .aksel-data-table__th-sort-icon {
5016
+ flex-shrink: 0;
5017
+ margin-left: auto;
5018
+ }
5019
+
5020
+ .aksel-data-table__th-sort-icon[data-sort-direction="none"] {
5021
+ visibility: hidden;
5022
+ }
5023
+
5024
+ .aksel-data-table__th-sort-button:is(:hover, :focus-visible, :focus-within):not(:disabled) .aksel-data-table__th-sort-icon {
5025
+ visibility: visible;
5026
+ }
5027
+
5028
+ .aksel-data-table[data-layout="fixed"] .aksel-data-table__th-sort-icon[data-sort-direction="none"] {
5029
+ display: none;
5030
+ }
5031
+
5032
+ .aksel-data-table[data-layout="fixed"] .aksel-data-table__th-sort-button:is(:hover, :focus-visible, :focus-within) .aksel-data-table__th-sort-icon {
5033
+ display: block;
5034
+ }
5035
+
5036
+ .aksel-data-table__th-content {
5037
+ text-overflow: ellipsis;
5038
+ white-space: nowrap;
5039
+ overflow: hidden;
5040
+ }
5041
+
5042
+ .aksel-data-table__th-resize-handle {
5043
+ z-index: 1;
5044
+ cursor: col-resize;
5045
+ background: none;
5046
+ border: none;
5047
+ justify-content: center;
5048
+ width: 19px;
5049
+ margin: 0;
5050
+ padding: 0;
5051
+ display: flex;
5052
+ position: absolute;
5053
+ inset-block: 0;
5054
+ inset-inline-end: -10px;
5055
+ }
5056
+
5057
+ .aksel-data-table__th-resize-handle:focus-visible {
5058
+ outline: 2px solid var(--ax-border-focus);
5059
+ outline-offset: -4px;
5060
+ border-radius: var(--ax-radius-8);
5061
+ }
5062
+
5063
+ .aksel-data-table__th-resize-handle:after {
5064
+ content: "";
5065
+ inset-block: 0;
5066
+ border-radius: var(--ax-radius-full);
5067
+ width: 3px;
5068
+ height: 75%;
5069
+ transition: background 50ms linear;
5070
+ position: absolute;
5071
+ top: 50%;
5072
+ transform: translateY(-50%);
5073
+ }
5074
+
5075
+ .aksel-data-table__th-resize-handle:hover, .aksel-data-table__th-resize-handle:focus-visible, .aksel-data-table__th-resize-handle:active {
5076
+ z-index: 3;
5077
+ }
5078
+
5079
+ .aksel-data-table__th-resize-handle:hover:after {
5080
+ background: var(--ax-bg-strong);
5081
+ }
5082
+
5083
+ .aksel-data-table__th-resize-handle:active:after, .aksel-data-table__th-resize-handle:focus-visible:after {
5084
+ background: var(--ax-bg-strong-pressed);
5085
+ }
5086
+
5087
+ .aksel-data-table__column-header:last-of-type .aksel-data-table__th-resize-handle {
5088
+ width: 15px;
5089
+ inset-inline-end: 0;
5090
+ }
5091
+
5092
+ .aksel-data-table__column-header:last-of-type .aksel-data-table__th-resize-handle:after {
5093
+ inset-inline-end: 0;
5094
+ }
5095
+
5096
+ .aksel-data-table__th-resize-handle[data-active="true"] .aksel-data-table__th-resize-handle-indicator {
5097
+ color: var(--ax-bg-strong);
5098
+ height: 1.5rem;
5099
+ position: absolute;
5100
+ top: 50%;
5101
+ transform: translateY(-50%);
5102
+ }
5103
+
5104
+ .aksel-data-table__th-resize-handle[data-active="true"] .aksel-data-table__th-resize-handle-indicator:first-child {
5105
+ right: 12px;
5106
+ }
5107
+
5108
+ .aksel-data-table__th-resize-handle[data-active="true"] .aksel-data-table__th-resize-handle-indicator:last-child {
5109
+ left: 12px;
5110
+ }
5111
+
5112
+ .aksel-data-table__th-resize-handle[data-active="true"]:after {
5113
+ background: var(--ax-bg-strong);
5114
+ }
5115
+
5116
+ .aksel-data-table__th-resize-handle[data-active="true"]:focus-visible, .aksel-data-table__th-resize-handle[data-active="true"]:focus, .aksel-data-table__th-resize-handle[data-active="true"]:active {
5117
+ outline: none;
5118
+ }
5119
+
5120
+ .aksel-data-table__th-action-button {
5121
+ transition: opacity .1s ease-in-out, width .1s ease-in-out, min-width .1s ease-in-out, max-width .1s ease-in-out, padding .1s ease-in-out;
5122
+ }
5123
+
5124
+ .aksel-data-table__th-action-button:focus-visible {
5125
+ transition: none;
5126
+ }
5127
+
5128
+ .aksel-data-table__th-action-button:not(.aksel-data-table__th:is(:hover, :focus-within) .aksel-data-table__th-action-button, .aksel-data-table__th-action-button:focus-visible, .aksel-data-table__th-action-button[data-expanded="true"]), .aksel-data-table__th:has(.aksel-data-table__th-resize-handle:hover:not(:focus)) .aksel-data-table__th-action-button {
5129
+ opacity: 0;
5130
+ min-width: 0;
5131
+ max-width: 0;
5132
+ padding: 0;
5133
+ overflow: hidden;
5134
+ }
5135
+
5136
+ .aksel-data-table__th {
5137
+ scroll-margin-block: var(--ax-space-0);
5138
+ scroll-margin-inline: var(--ax-space-0);
5139
+ }
5140
+
5141
+ .aksel-data-table__th:focus-visible, .aksel-data-table__th:has(.aksel-data-table__th-sort-button:focus) {
5142
+ outline: 2px solid var(--ax-border-focus);
5143
+ outline-offset: -4px;
5144
+ }
5145
+
5146
+ .aksel-data-table__th[data-cell-type="action"] {
5147
+ padding: 0;
5148
+ }
5149
+
5150
+ .aksel-data-table__th[data-cell-type="action"] > .aksel-data-table__cell-content {
5151
+ place-content: center;
5152
+ display: grid;
5153
+ }
5154
+
5155
+ .aksel-data-table__tfoot {
5156
+ background-color: var(--ax-bg-raised);
5157
+ }
5158
+
5159
+ .aksel-data-table__filler-cell {
5160
+ width: auto;
5161
+ padding: 0;
5162
+ display: table-cell;
5163
+ }
5164
+
5165
+ .aksel-data-table__drag-and-drop-root {
5166
+ margin: 0;
5167
+ padding: 0;
5168
+ }
5169
+
5170
+ .aksel-data-drag-and-drop__drag-handler__button {
5171
+ background: none;
5172
+ border: none;
5173
+ height: 1.5rem;
5174
+ padding: 0;
5175
+ position: relative;
5176
+ }
5177
+
5178
+ .aksel-data-drag-and-drop__drag-handler__button:hover {
5179
+ cursor: grab;
5180
+ }
5181
+
5182
+ .aksel-data-drag-and-drop__drag-handler__button:focus-visible, .aksel-data-drag-and-drop__drag-handler__button[data-drag-handler-active="true"] {
5183
+ outline: 2px solid var(--ax-border-focus);
5184
+ outline-offset: -1px;
5185
+ border-radius: var(--ax-radius-8);
5186
+ }
5187
+
5188
+ .aksel-data-table__drag-and-drop-item[data-overlay="true"] {
5189
+ opacity: .8;
5190
+ width: 100%;
5191
+ box-shadow: var(--ax-shadow-dialog);
5192
+ background-color: var(--ax-bg-default);
5193
+ }
5194
+
5195
+ .aksel-data-table__drag-and-drop-item[data-drop-target="true"]:not([data-overlay="true"]) {
5196
+ background: var(--ax-bg-neutral-moderate);
5197
+ }
5198
+
5199
+ .aksel-data-drag-and-drop__drag-handler {
5200
+ height: 1.5rem;
5201
+ position: relative;
5202
+ }
5203
+
5204
+ .aksel-data-drag-and-drop__drag-handler .aksel-data-drag-and-drop__drag-handler__arrow {
5205
+ background: var(--ax-bg-default);
5206
+ cursor: pointer;
5207
+ z-index: 1;
5208
+ border: none;
5209
+ border-radius: 50%;
5210
+ height: 1.8rem;
5211
+ padding: 0;
5212
+ position: absolute;
5213
+ left: 50%;
5214
+ transform: translate(-50%, -50%);
5215
+ }
5216
+
5217
+ .aksel-data-drag-and-drop__drag-handler .aksel-data-drag-and-drop__drag-handler__arrow[data-direction="up"] {
5218
+ top: -18px;
5219
+ }
5220
+
5221
+ .aksel-data-drag-and-drop__drag-handler .aksel-data-drag-and-drop__drag-handler__arrow[data-direction="down"] {
5222
+ bottom: calc(-100% - 22px);
5223
+ }
5224
+
5225
+ .aksel-data-drag-and-drop__drag-handler .aksel-data-drag-and-drop__drag-handler__arrow:disabled {
5226
+ opacity: .8;
5227
+ cursor: not-allowed;
5228
+ }
5229
+
5230
+ .aksel-data-table__empty-state {
5231
+ padding-block: var(--ax-space-32);
5232
+ padding-inline: var(--ax-space-16);
5233
+ text-align: center;
5234
+ place-content: center;
5235
+ gap: var(--ax-space-8);
5236
+ justify-items: center;
5237
+ display: grid;
5238
+ }
5239
+
5240
+ .aksel-data-table__loading-state {
5241
+ padding-block: var(--ax-space-32);
5242
+ padding-inline: var(--ax-space-16);
5243
+ text-align: center;
5244
+ place-content: center;
5245
+ gap: var(--ax-space-8);
5246
+ justify-items: center;
5247
+ display: grid;
5248
+ position: relative;
5249
+ }
5250
+
5251
+ @keyframes animateDataTableLoading {
5252
+ 0% {
5253
+ inline-size: 0;
5254
+ inset-inline-start: 0;
5255
+ }
5256
+
5257
+ 20% {
5258
+ inline-size: 40%;
5259
+ inset-inline-start: 0;
5260
+ }
5261
+
5262
+ 80% {
5263
+ inline-size: 40%;
5264
+ inset-inline-start: 60%;
5265
+ }
5266
+
5267
+ 100% {
5268
+ inline-size: 0;
5269
+ inset-inline-start: 100%;
5270
+ }
5271
+ }
5272
+
5273
+ .aksel-data-table tr .aksel-checkbox {
5274
+ padding: 0;
5275
+ }
5276
+
5277
+ .aksel-data-table tr .aksel-checkbox:focus-within:after {
5278
+ inset: 0;
5279
+ }
5280
+
5281
+ html[data-dragging-cursor="true"], html[data-dragging-cursor="true"] *, html[data-dragging-cursor="true"] :before, html[data-dragging-cursor="true"] :after {
5282
+ cursor: grabbing !important;
5283
+ }
5284
+
5285
+ .aksel-data-table__nested-toggle {
5286
+ inset-block: 0;
5287
+ left: calc(var(--__axc-data-table-pi-cell) + var(--__axc-data-table-nested-depth) * var(--ax-space-16));
5288
+ align-items: center;
5289
+ display: flex;
5290
+ position: absolute;
5291
+ }
5292
+
5293
+ .aksel-data-table__details-panel-row {
5294
+ box-shadow: inset 1px 1px 0 0 var(--ax-border-neutral-subtle);
5295
+ }
5296
+
5297
+ .aksel-data-table__details-panel-row-cell:focus-visible {
5298
+ outline: 2px solid var(--ax-border-focus);
5299
+ outline-offset: -4px;
5300
+ }
5301
+
4694
5302
  .aksel-dialog__popup {
4695
5303
  --__axc-dialog-transform: ;
4696
5304
  --__axc-dialog-p-b: var(--ax-space-16);