@norges-domstoler/dds-components 0.0.0-dev-20260112082908 → 0.0.0-dev-20260112090424
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.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10616,20 +10616,22 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
10616
10616
|
overflow: "hidden",
|
|
10617
10617
|
boxSizing: "border-box"
|
|
10618
10618
|
}),
|
|
10619
|
-
multiValue: () => ({
|
|
10619
|
+
multiValue: (provided, state) => ({
|
|
10620
10620
|
boxSizing: "border-box",
|
|
10621
10621
|
minWidth: 0,
|
|
10622
10622
|
display: "flex",
|
|
10623
10623
|
borderRadius: "var(--dds-border-radius-surface)",
|
|
10624
10624
|
backgroundColor: "var(--dds-color-surface-medium)",
|
|
10625
|
-
|
|
10625
|
+
...(state.selectProps.isDisabled || isReadOnly) && {
|
|
10626
|
+
boxShadow: "0 0 0 1px var(--dds-color-border-subtle) inset"
|
|
10627
|
+
}
|
|
10626
10628
|
}),
|
|
10627
10629
|
multiValueLabel: (provided, state) => ({
|
|
10628
10630
|
overflow: "hidden",
|
|
10629
10631
|
textOverflow: "ellipsis",
|
|
10630
10632
|
whiteSpace: "nowrap",
|
|
10631
10633
|
boxSizing: "border-box",
|
|
10632
|
-
padding: "var(--dds-spacing-x0-125)
|
|
10634
|
+
padding: "var(--dds-spacing-x0-125) var(--dds-spacing-x0-25)",
|
|
10633
10635
|
...typography.multiValueLabel[size2],
|
|
10634
10636
|
color: "var(--dds-color-text-default)",
|
|
10635
10637
|
...state.selectProps.isDisabled && {
|
|
@@ -10651,7 +10653,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
10651
10653
|
transition: "color 0.2s, background-color 0.2s, box-shadow 0.2s"
|
|
10652
10654
|
},
|
|
10653
10655
|
color: "var(--dds-color-icon-default)",
|
|
10654
|
-
padding: "0 var(--dds-spacing-x0-
|
|
10656
|
+
padding: "0 var(--dds-spacing-x0-125)",
|
|
10655
10657
|
fontSize: "var(--dds-font-size-x1-125)",
|
|
10656
10658
|
"&:hover": {
|
|
10657
10659
|
backgroundColor: "var(--dds-color-surface-hover-default)"
|