@norges-domstoler/dds-components 0.0.0-dev-20260212132904 → 0.0.0-dev-20260216123749
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 +70 -71
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +18 -35
- package/dist/index.d.ts +18 -35
- package/dist/index.js +10 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1685,7 +1685,7 @@ var focusVisible = {
|
|
|
1685
1685
|
outlineOffset,
|
|
1686
1686
|
boxShadow: "0 0 0 2px var(--dds-color-focus-inside)"
|
|
1687
1687
|
};
|
|
1688
|
-
var focusVisibleTransitionValue = "outline-offset
|
|
1688
|
+
var focusVisibleTransitionValue = "outline-offset var(--dds-motion-micro-state)";
|
|
1689
1689
|
var focusVisibleInset = {
|
|
1690
1690
|
outline: "var(--dds-color-focus-outside) 2px solid",
|
|
1691
1691
|
outlineOffset: outlineInset
|
|
@@ -1709,17 +1709,6 @@ var scrollbarStyling = {
|
|
|
1709
1709
|
background: "var(--dds-color-surface-scrollbar)"
|
|
1710
1710
|
}
|
|
1711
1711
|
};
|
|
1712
|
-
var visibilityTransition = (open) => {
|
|
1713
|
-
return `
|
|
1714
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
1715
|
-
transition:
|
|
1716
|
-
visibility 0.4s,
|
|
1717
|
-
opacity 0.2s;
|
|
1718
|
-
}
|
|
1719
|
-
visibility: ${open ? "visible" : "hidden"};
|
|
1720
|
-
opacity: ${open ? 1 : 0};
|
|
1721
|
-
`;
|
|
1722
|
-
};
|
|
1723
1712
|
var hideInput = {
|
|
1724
1713
|
clip: "rect(0 0 0 0)",
|
|
1725
1714
|
position: "absolute",
|
|
@@ -8554,7 +8543,7 @@ var RatingComponent = ({
|
|
|
8554
8543
|
/* @__PURE__ */ jsx271("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
|
|
8555
8544
|
loading ? /* @__PURE__ */ jsx271(Spinner, { tooltip: t(texts14.uploadingFeedback) }) : /* @__PURE__ */ jsxs103(HStack, { gap: "x1", children: [
|
|
8556
8545
|
/* @__PURE__ */ jsx271(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
|
|
8557
|
-
/* @__PURE__ */ jsx271(Tooltip, { text: thumbDownTooltip, children:
|
|
8546
|
+
/* @__PURE__ */ jsx271(Tooltip, { text: thumbDownTooltip, children: button("negative", layout, thumbDownTooltip) })
|
|
8558
8547
|
] })
|
|
8559
8548
|
]
|
|
8560
8549
|
}
|
|
@@ -10680,7 +10669,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
10680
10669
|
border: "1px solid",
|
|
10681
10670
|
borderColor: "var(--dds-color-border-default)",
|
|
10682
10671
|
backgroundColor: "var(--dds-color-surface-default)",
|
|
10683
|
-
transition: `box-shadow
|
|
10672
|
+
transition: `box-shadow var(--dds-motion-micro-state), border-color var(--dds-motion-micro-state), ${focusVisibleTransitionValue}`,
|
|
10684
10673
|
...control[size2],
|
|
10685
10674
|
"&:hover": {
|
|
10686
10675
|
...!isReadOnly && {
|
|
@@ -10727,7 +10716,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
10727
10716
|
dropdownIndicator: (provided, state) => ({
|
|
10728
10717
|
display: "inline-flex",
|
|
10729
10718
|
"@media (prefers-reduced-motion: no-preference)": {
|
|
10730
|
-
transition: "color
|
|
10719
|
+
transition: "color var(--dds-motion-micro-state), transform var(--dds-motion-chevron)"
|
|
10731
10720
|
},
|
|
10732
10721
|
padding: 0,
|
|
10733
10722
|
color: "var(--dds-color-icon-default)",
|
|
@@ -10782,7 +10771,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
10782
10771
|
borderEndEndRadius: "var(--dds-border-radius-surface)",
|
|
10783
10772
|
borderStartEndRadius: "var(--dds-border-radius-surface)",
|
|
10784
10773
|
"@media (prefers-reduced-motion: no-preference)": {
|
|
10785
|
-
transition: "color
|
|
10774
|
+
transition: "color var(--dds-motion-micro-state), background-color var(--dds-motion-micro-state), box-shadow var(--dds-motion-micro-state)"
|
|
10786
10775
|
},
|
|
10787
10776
|
"&:hover": {
|
|
10788
10777
|
backgroundColor: "var(--dds-color-surface-hover-default)"
|
|
@@ -10794,7 +10783,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
10794
10783
|
width: "100%",
|
|
10795
10784
|
boxShadow: "var(--dds-shadow-medium)",
|
|
10796
10785
|
zIndex: 100,
|
|
10797
|
-
transition: "
|
|
10786
|
+
transition: "var(--dds-motion-surface)",
|
|
10798
10787
|
border: "1px solid var(--dds-color-border-default)",
|
|
10799
10788
|
backgroundColor: "var(--dds-color-surface-default)",
|
|
10800
10789
|
borderRadius: "var(--dds-border-radius-surface)",
|
|
@@ -10830,7 +10819,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
10830
10819
|
...typography.option.medium,
|
|
10831
10820
|
color: "var(--dds-color-text-default)",
|
|
10832
10821
|
"@media (prefers-reduced-motion: no-preference)": {
|
|
10833
|
-
transition: "color
|
|
10822
|
+
transition: "color var(--dds-motion-micro-state), background-color var(--dds-motion-micro-state)"
|
|
10834
10823
|
},
|
|
10835
10824
|
"&:hover": {
|
|
10836
10825
|
color: "var(--dds-color-text-default)",
|
|
@@ -10855,7 +10844,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
10855
10844
|
color: "var(--dds-color-icon-default)",
|
|
10856
10845
|
borderRadius: "var(--dds-border-radius-button)",
|
|
10857
10846
|
"@media (prefers-reduced-motion: no-preference)": {
|
|
10858
|
-
transition: "background-color
|
|
10847
|
+
transition: "background-color var(--dds-motion-micro-state)"
|
|
10859
10848
|
},
|
|
10860
10849
|
"&:hover": {
|
|
10861
10850
|
backgroundColor: "var(--dds-color-surface-hover-default)"
|
|
@@ -15305,7 +15294,6 @@ export {
|
|
|
15305
15294
|
useRoveFocus,
|
|
15306
15295
|
useScreenSize,
|
|
15307
15296
|
useTheme,
|
|
15308
|
-
useWindowResize
|
|
15309
|
-
visibilityTransition
|
|
15297
|
+
useWindowResize
|
|
15310
15298
|
};
|
|
15311
15299
|
//# sourceMappingURL=index.mjs.map
|