@norges-domstoler/dds-components 0.0.0-dev-20260921073332 → 0.0.0-dev-20260923130942
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.cjs +3 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +0 -1
- package/dist/index.d.cts +10733 -834
- package/dist/index.d.mts +10733 -834
- package/dist/index.mjs +3 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -6412,19 +6412,15 @@ const texts$22 = createTexts({
|
|
|
6412
6412
|
function DateSegment({ segment, state, componentSize, errorMessageId, tipId }) {
|
|
6413
6413
|
const ref = (0, react.useRef)(null);
|
|
6414
6414
|
const { segmentProps } = (0, _react_aria_datepicker.useDateSegment)(segment, state, ref);
|
|
6415
|
+
const isSeparator = segment.type === "literal";
|
|
6415
6416
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Box, {
|
|
6416
6417
|
...segmentProps,
|
|
6417
|
-
padding: "0 0.05rem",
|
|
6418
|
-
width: "max-content",
|
|
6419
|
-
height: "max-content",
|
|
6420
6418
|
marginBlock: "auto",
|
|
6419
|
+
marginInline: isSeparator ? "-0.15ch" : void 0,
|
|
6421
6420
|
"aria-describedby": spaceSeparatedIdListGenerator([errorMessageId ? errorMessageId : void 0, tipId ? tipId : void 0]),
|
|
6422
6421
|
ref,
|
|
6423
6422
|
className: cn(segmentProps.className, DateInput_module_default.segment, typographyStyles_module_default[`body-short-${componentSize}`]),
|
|
6424
|
-
style: {
|
|
6425
|
-
...segmentProps.style,
|
|
6426
|
-
minWidth: segment.maxValue != null ? String(segment.maxValue).length + "ch" : void 0
|
|
6427
|
-
},
|
|
6423
|
+
style: { ...segmentProps.style },
|
|
6428
6424
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
6429
6425
|
"aria-hidden": "true",
|
|
6430
6426
|
className: cn(DateInput_module_default.segment__placeholder, !segment.isPlaceholder && DateInput_module_default["segment__placeholder--invisible"]),
|