@norges-domstoler/dds-components 0.0.0-dev-20240223095453 → 0.0.0-dev-20240223112113
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 +20 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7392,7 +7392,21 @@ function useControllableState(props) {
|
|
|
7392
7392
|
|
|
7393
7393
|
// src/components/FavStar/FavStar.tsx
|
|
7394
7394
|
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
7395
|
-
var TRANSITION_SPEED = "0.
|
|
7395
|
+
var TRANSITION_SPEED = "0.2s";
|
|
7396
|
+
var StyledIcon3 = (0, import_styled_components47.default)(Icon)`
|
|
7397
|
+
color: currentColor;
|
|
7398
|
+
position: absolute;
|
|
7399
|
+
top: 0;
|
|
7400
|
+
bottom: 0;
|
|
7401
|
+
left: 0;
|
|
7402
|
+
right: 0;
|
|
7403
|
+
opacity: ${({ $opacity = 1 }) => $opacity};
|
|
7404
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
7405
|
+
transition:
|
|
7406
|
+
opacity ${TRANSITION_SPEED},
|
|
7407
|
+
transform ${TRANSITION_SPEED};
|
|
7408
|
+
}
|
|
7409
|
+
`;
|
|
7396
7410
|
var Container5 = import_styled_components47.default.label`
|
|
7397
7411
|
position: relative;
|
|
7398
7412
|
cursor: pointer;
|
|
@@ -7401,16 +7415,14 @@ var Container5 = import_styled_components47.default.label`
|
|
|
7401
7415
|
|
|
7402
7416
|
&:has(${HiddenInput}:focus-visible) {
|
|
7403
7417
|
${focusVisible}
|
|
7404
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
7405
|
-
transition: ${focusVisibleTransitionValue};
|
|
7406
|
-
}
|
|
7407
7418
|
}
|
|
7408
7419
|
|
|
7409
7420
|
@media (prefers-reduced-motion: no-preference) {
|
|
7410
7421
|
transition:
|
|
7411
7422
|
${TRANSITION_SPEED} color,
|
|
7412
7423
|
${TRANSITION_SPEED} background-color,
|
|
7413
|
-
${TRANSITION_SPEED} transform
|
|
7424
|
+
${TRANSITION_SPEED} transform,
|
|
7425
|
+
${focusVisibleTransitionValue};
|
|
7414
7426
|
}
|
|
7415
7427
|
|
|
7416
7428
|
${({ size: size2 }) => getVariantStyle(size2)}
|
|
@@ -7427,7 +7439,9 @@ var Container5 = import_styled_components47.default.label`
|
|
|
7427
7439
|
}
|
|
7428
7440
|
|
|
7429
7441
|
&:active {
|
|
7430
|
-
|
|
7442
|
+
${StyledIcon3} {
|
|
7443
|
+
transform: scale(0.75);
|
|
7444
|
+
}
|
|
7431
7445
|
}
|
|
7432
7446
|
`;
|
|
7433
7447
|
function getVariantStyle(size2, variant) {
|
|
@@ -7437,16 +7451,6 @@ function getVariantStyle(size2, variant) {
|
|
|
7437
7451
|
border-radius: ${favStarTokens(size2, variant).borderRadius};
|
|
7438
7452
|
`;
|
|
7439
7453
|
}
|
|
7440
|
-
var StyledIcon3 = (0, import_styled_components47.default)(Icon)`
|
|
7441
|
-
color: currentColor;
|
|
7442
|
-
position: absolute;
|
|
7443
|
-
top: 0;
|
|
7444
|
-
bottom: 0;
|
|
7445
|
-
left: 0;
|
|
7446
|
-
right: 0;
|
|
7447
|
-
transition: ${TRANSITION_SPEED} opacity;
|
|
7448
|
-
opacity: ${({ $opacity = 1 }) => $opacity};
|
|
7449
|
-
`;
|
|
7450
7454
|
var FavStar = (0, import_react55.forwardRef)(
|
|
7451
7455
|
({
|
|
7452
7456
|
id,
|