@gnist/design-system 2.0.16 → 2.0.18
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/CHANGELOG.md +8 -0
- package/dist/components/actions/chips/ActionChip.cjs +4 -4
- package/dist/components/actions/chips/FilterChip.cjs +4 -4
- package/dist/components/actions/chips/TagChip.cjs +4 -4
- package/dist/components/actions/selectionControls/RadioButton.js +1 -1
- package/dist/components/actions/selectionControls/shared.js +1 -1
- package/dist/components/feedback/alerts/AlertBanner.js +1 -1
- package/dist/components/inputs/dropdowns/SelectBase.js +2 -2
- package/dist/components/inputs/pickers/Calendar.css.js +1 -1
- package/dist/components/inputs/pickers/calendar.js +2 -2
- package/dist/components/inputs/shared-styles/inputField.css.js +1 -1
- package/dist/components/inputs/textFields/TextArea.js +3 -3
- package/dist/components/inputs/textFields/TextField.js +3 -3
- package/dist/foundation/iconography/Icon.js +1 -1
- package/dist/foundation/iconography/icons.cjs +23 -23
- package/dist/foundation/iconography/icons.js +23 -23
- package/dist/foundation/logos/Logo.js +1 -1
- package/dist/utilities/forms/formInputs.js +1 -1
- package/dist/utilities/validation/validators.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## <small>2.0.18 (2025-02-21)</small>
|
|
7
|
+
|
|
8
|
+
* chore: upgrade vite dependency ([3b5605b](https://github.com/mollerdigital/design-system-design-system/commit/3b5605b))
|
|
9
|
+
|
|
10
|
+
## <small>2.0.17 (2025-02-21)</small>
|
|
11
|
+
|
|
12
|
+
* chore: upgrade prettier dependency ([2d55655](https://github.com/mollerdigital/design-system-design-system/commit/2d55655))
|
|
13
|
+
|
|
6
14
|
## <small>2.0.16 (2025-02-21)</small>
|
|
7
15
|
|
|
8
16
|
* chore: upgrade mui/mase dependency ([bba25be](https://github.com/mollerdigital/design-system-design-system/commit/bba25be))
|
|
@@ -14,12 +14,12 @@ const animations_css = require("../../../styles/animations.css.cjs");
|
|
|
14
14
|
const states_css = require("../../../styles/states.css.cjs");
|
|
15
15
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
16
16
|
const Spinner = require("../../progress/Spinner.cjs");
|
|
17
|
-
const styles_css = require("./styles.css.cjs");
|
|
18
|
-
const styles_css
|
|
17
|
+
const styles_css$1 = require("./styles.css.cjs");
|
|
18
|
+
const styles_css = require("../buttons/styles.css.cjs");
|
|
19
19
|
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
20
20
|
const classNames__default = /* @__PURE__ */ _interopDefaultCompat(classNames);
|
|
21
21
|
const ActionChip = React.forwardRef(function ActionChip2({ label, onClick, selected, icon, loading, density = "default", ...props }, ref) {
|
|
22
|
-
return jsxRuntime.jsx("button", { type: "button", ...props, title: label, onClick, className: classNames__default.default(styles_css.chipRecipe({
|
|
22
|
+
return jsxRuntime.jsx("button", { type: "button", ...props, title: label, onClick, className: classNames__default.default(styles_css$1.chipRecipe({
|
|
23
23
|
selected,
|
|
24
24
|
filterVariant: false,
|
|
25
25
|
loading: loading == null ? void 0 : loading.isLoading
|
|
@@ -28,6 +28,6 @@ const ActionChip = React.forwardRef(function ActionChip2({ label, onClick, selec
|
|
|
28
28
|
borderRadius: "full",
|
|
29
29
|
backgroundColor: "on-background",
|
|
30
30
|
setFocusState: true
|
|
31
|
-
})), ref, children: (loading == null ? void 0 : loading.isLoading) ? jsxRuntime.jsx(Spinner.Spinner, { diameter: density === "compact" ? tokens_css_js.tokens.size.xs : tokens_css_js.tokens.size.s, textDescription: loading.loadingText }) : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [icon && jsxRuntime.jsx(Icon.Icon, { icon, size: density === "compact" ? "m" : "l" }), jsxRuntime.jsx(index.BodyText, { className: styles_css
|
|
31
|
+
})), ref, children: (loading == null ? void 0 : loading.isLoading) ? jsxRuntime.jsx(Spinner.Spinner, { diameter: density === "compact" ? tokens_css_js.tokens.size.xs : tokens_css_js.tokens.size.s, textDescription: loading.loadingText }) : jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [icon && jsxRuntime.jsx(Icon.Icon, { icon, size: density === "compact" ? "m" : "l" }), jsxRuntime.jsx(index.BodyText, { className: styles_css.actionText, children: label })] }) });
|
|
32
32
|
});
|
|
33
33
|
exports.ActionChip = ActionChip;
|
|
@@ -14,12 +14,12 @@ const animations_css = require("../../../styles/animations.css.cjs");
|
|
|
14
14
|
const states_css = require("../../../styles/states.css.cjs");
|
|
15
15
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
16
16
|
const Spinner = require("../../progress/Spinner.cjs");
|
|
17
|
-
const styles_css = require("./styles.css.cjs");
|
|
18
|
-
const styles_css
|
|
17
|
+
const styles_css$1 = require("./styles.css.cjs");
|
|
18
|
+
const styles_css = require("../buttons/styles.css.cjs");
|
|
19
19
|
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
20
20
|
const classNames__default = /* @__PURE__ */ _interopDefaultCompat(classNames);
|
|
21
21
|
const FilterChip = React.forwardRef(function FilterChip2({ label, onClick, selected, loading, density = "default", icon, ...props }, ref) {
|
|
22
|
-
return jsxRuntime.jsxs("button", { type: "button", ...props, title: label, onClick, className: classNames__default.default(styles_css.chipRecipe({
|
|
22
|
+
return jsxRuntime.jsxs("button", { type: "button", ...props, title: label, onClick, className: classNames__default.default(styles_css$1.chipRecipe({
|
|
23
23
|
selected,
|
|
24
24
|
filterVariant: true,
|
|
25
25
|
loading: loading == null ? void 0 : loading.isLoading
|
|
@@ -28,6 +28,6 @@ const FilterChip = React.forwardRef(function FilterChip2({ label, onClick, selec
|
|
|
28
28
|
borderRadius: "full",
|
|
29
29
|
backgroundColor: "on-background",
|
|
30
30
|
setFocusState: true
|
|
31
|
-
})), ref, children: [(icon || selected) && !(loading == null ? void 0 : loading.isLoading) && jsxRuntime.jsx(Icon.Icon, { icon: selected ? "check" : icon }), (loading == null ? void 0 : loading.isLoading) ? jsxRuntime.jsx(Spinner.Spinner, { diameter: density === "compact" ? tokens_css_js.tokens.size.xs : tokens_css_js.tokens.size.s, textDescription: loading.loadingText }) : jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(index.BodyText, { className: styles_css
|
|
31
|
+
})), ref, children: [(icon || selected) && !(loading == null ? void 0 : loading.isLoading) && jsxRuntime.jsx(Icon.Icon, { icon: selected ? "check" : icon }), (loading == null ? void 0 : loading.isLoading) ? jsxRuntime.jsx(Spinner.Spinner, { diameter: density === "compact" ? tokens_css_js.tokens.size.xs : tokens_css_js.tokens.size.s, textDescription: loading.loadingText }) : jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsx(index.BodyText, { className: styles_css.actionText, children: label }) })] });
|
|
32
32
|
});
|
|
33
33
|
exports.FilterChip = FilterChip;
|
|
@@ -12,16 +12,16 @@ const classNames = require("classnames");
|
|
|
12
12
|
require("../../../foundation/logos/Logo.css.cjs");
|
|
13
13
|
const animations_css = require("../../../styles/animations.css.cjs");
|
|
14
14
|
const states_css = require("../../../styles/states.css.cjs");
|
|
15
|
-
const styles_css = require("./styles.css.cjs");
|
|
16
|
-
const styles_css
|
|
15
|
+
const styles_css$1 = require("./styles.css.cjs");
|
|
16
|
+
const styles_css = require("../buttons/styles.css.cjs");
|
|
17
17
|
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
18
18
|
const classNames__default = /* @__PURE__ */ _interopDefaultCompat(classNames);
|
|
19
19
|
const TagChip = React.forwardRef(function TagChip2({ label, onClick, icon, density = "default", ...props }, ref) {
|
|
20
|
-
return jsxRuntime.jsxs("button", { type: "button", ...props, title: label, onClick, className: classNames__default.default(styles_css.chipRecipe(), animations_css.clickAnimation, states_css.focusStyle, states_css.stateLayers({
|
|
20
|
+
return jsxRuntime.jsxs("button", { type: "button", ...props, title: label, onClick, className: classNames__default.default(styles_css$1.chipRecipe(), animations_css.clickAnimation, states_css.focusStyle, states_css.stateLayers({
|
|
21
21
|
borderSize: "medium",
|
|
22
22
|
borderRadius: "full",
|
|
23
23
|
backgroundColor: "on-background",
|
|
24
24
|
setFocusState: true
|
|
25
|
-
})), ref, children: [icon && jsxRuntime.jsx(Icon.Icon, { icon, size: density === "compact" ? "m" : "l" }), jsxRuntime.jsx(index.BodyText, { className: styles_css
|
|
25
|
+
})), ref, children: [icon && jsxRuntime.jsx(Icon.Icon, { icon, size: density === "compact" ? "m" : "l" }), jsxRuntime.jsx(index.BodyText, { className: styles_css.actionText, children: label }), jsxRuntime.jsx(Icon.Icon, { icon: "clear", size: density === "compact" ? "m" : "l" })] });
|
|
26
26
|
});
|
|
27
27
|
exports.TagChip = TagChip;
|
|
@@ -7,7 +7,7 @@ import { createValidHtmlId } from "../../../utilities/html/index.js";
|
|
|
7
7
|
import classNames from "classnames";
|
|
8
8
|
import { forwardRef } from "react";
|
|
9
9
|
import { RadioButtonRecipe, CheckedCircleRecipe } from "./radiobutton.css.js";
|
|
10
|
-
import {
|
|
10
|
+
import { LabelRecipe, InputStyleRecipe, LabelStyle, InputWrapper, indentedDescriptionStyle } from "./shared.css.js";
|
|
11
11
|
import { SelectionDescription, HelperTextWrapper } from "./shared.js";
|
|
12
12
|
const CustomRadioButton = ({ value, disabled, validity }) => {
|
|
13
13
|
return jsx("span", { className: RadioButtonRecipe({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { InputHelperText } from "../../../building-blocks/inputs/InputHelperText.js";
|
|
4
4
|
import { Column } from "../../../utilities/layout/Column.js";
|
|
5
5
|
import "../../../utilities/layout/Row.js";
|
|
@@ -15,7 +15,7 @@ import "../../actions/buttons/DangerButton.js";
|
|
|
15
15
|
import "../../actions/buttons/GhostButton.js";
|
|
16
16
|
import { TextButton } from "../../actions/buttons/TextButton.js";
|
|
17
17
|
import { IconButton } from "../../actions/buttons/IconButton.js";
|
|
18
|
-
import { bannerHeading,
|
|
18
|
+
import { bannerHeading, icon, mainContentContainer, closeButton, messageContainer, textButton, banner } from "./AlertBanner.css.js";
|
|
19
19
|
const BannerHeading = component("BannerHeading", bannerHeading, "h2");
|
|
20
20
|
const AlertBanner = ({ type, heading, message, dismiss, action, density = "default", headingLevel = "h2", className }) => {
|
|
21
21
|
const text = useTranslation((t) => t.components.feedback.alerts);
|
|
@@ -29,8 +29,8 @@ import "../../actions/selectionControls/RadioButton.js";
|
|
|
29
29
|
import "../../actions/chips/ActionChip.js";
|
|
30
30
|
import "../../actions/chips/FilterChip.js";
|
|
31
31
|
import "../../actions/chips/TagChip.js";
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
32
|
+
import { inputFieldWrapperRecipe, inputContentWrapper, wrapperStyle } from "../shared-styles/inputField.css.js";
|
|
33
|
+
import { postInputWidth, preInputWidth } from "../shared-styles/inputFieldConstants.css.js";
|
|
34
34
|
import { labelStyle } from "../shared-styles/labelStyles.css.js";
|
|
35
35
|
import { listBoxStyle, popUpStyle, selectStyle, optionStyle, optionBackground, singleOptionStyle } from "./select.css.js";
|
|
36
36
|
const listBoxComponent = component("listBox", listBoxStyle, "div");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { stateLayers, focusStyle } from "../../../styles/states.css.js";
|
|
3
3
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
4
4
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
5
5
|
import { style, createVar, globalStyle } from "@vanilla-extract/css";
|
|
@@ -16,7 +16,7 @@ import { tokens } from "@gnist/themes/tokens.css.js";
|
|
|
16
16
|
import "react-content-loader";
|
|
17
17
|
import { RectangularSkeleton } from "../../../building-blocks/skeletons/RectangularSkeleton.js";
|
|
18
18
|
import { useTranslation } from "../../../translations/index.js";
|
|
19
|
-
import { getStartOfDay, today, maxDayOfMonth, nextMonth,
|
|
19
|
+
import { getStartOfDay, today, maxDayOfMonth, nextMonth, minDayOfMonth, addDays, isSameDate, isNorwegianHoliday } from "../../../utilities/time/date.js";
|
|
20
20
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
21
21
|
import { makeBy, splitAt, chunksOf } from "fp-ts/Array";
|
|
22
22
|
import { pipe } from "fp-ts/function";
|
|
@@ -32,7 +32,7 @@ import "../../actions/selectionControls/RadioButton.js";
|
|
|
32
32
|
import "../../actions/chips/ActionChip.js";
|
|
33
33
|
import "../../actions/chips/FilterChip.js";
|
|
34
34
|
import "../../actions/chips/TagChip.js";
|
|
35
|
-
import { headerCell, containerStyle, selectMonthRow, buttonRow, arrowButton, gridStyle, rowStyle,
|
|
35
|
+
import { headerCell, containerStyle, selectMonthRow, buttonRow, arrowButton, gridStyle, rowStyle, cellSkeletonStyle, firstDay, cellRecipe } from "./Calendar.css.js";
|
|
36
36
|
const HeaderCell = component("HeaderCell", headerCell, "div");
|
|
37
37
|
function weekDayNumberStartingMonday(date) {
|
|
38
38
|
return (date.getDay() + 6) % 7;
|
|
@@ -4,7 +4,7 @@ import { tokens } from "@gnist/themes/tokens.css.js";
|
|
|
4
4
|
import { style } from "@vanilla-extract/css";
|
|
5
5
|
import { calc } from "@vanilla-extract/css-utils";
|
|
6
6
|
import { recipe } from "@vanilla-extract/recipes";
|
|
7
|
-
import { visibleLines, transitionTime,
|
|
7
|
+
import { visibleLines, transitionTime, postInputWidth, preInputWidth } from "./inputFieldConstants.css.js";
|
|
8
8
|
const borderStyle = (borderColor, isFocused) => `0 0 0 ${isFocused ? tokens.stroke.medium : tokens.stroke.small} ${borderColor}`;
|
|
9
9
|
const textAreaHeight = calc(calc(visibleLines).multiply("1.5rem")).add(calc(tokens.spacing.xxs).multiply(2)).toString();
|
|
10
10
|
const wrapperStyle = style({
|
|
@@ -15,11 +15,11 @@ import "../../../foundation/logos/Logo.css.js";
|
|
|
15
15
|
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
16
16
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
17
17
|
import { iconButtonOverlayRecipe } from "../shared-styles/iconButtonOverlay.css.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
18
|
+
import { inputFieldWrapperRecipe, inputFieldStyle, inputContentWrapper, wrapperStyle } from "../shared-styles/inputField.css.js";
|
|
19
|
+
import { postInputWidth, preInputWidth, visibleLines } from "../shared-styles/inputFieldConstants.css.js";
|
|
20
20
|
import { labelStyle } from "../shared-styles/labelStyles.css.js";
|
|
21
21
|
import { prefixStyle, suffixStyle } from "../shared-styles/suffixPrefix.css.js";
|
|
22
|
-
import { useInputFieldLogic,
|
|
22
|
+
import { useInputFieldLogic, getInputFieldProps, isClickableIcon } from "../shared.js";
|
|
23
23
|
import { wordCounterStyle } from "./textArea.css.js";
|
|
24
24
|
const TextArea = forwardRef(function TextArea2({ counterText, visibleLines: visibleLinesProp, ...props }, ref) {
|
|
25
25
|
var _a, _b;
|
|
@@ -13,11 +13,11 @@ import "../../../utilities/layout/Row.js";
|
|
|
13
13
|
import "@gnist/themes/tokens.css.js";
|
|
14
14
|
import "react-content-loader";
|
|
15
15
|
import { iconButtonOverlayRecipe } from "../shared-styles/iconButtonOverlay.css.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { inputFieldWrapperRecipe, inputFieldStyle, inputContentWrapper, wrapperStyle } from "../shared-styles/inputField.css.js";
|
|
17
|
+
import { postInputWidth, preInputWidth } from "../shared-styles/inputFieldConstants.css.js";
|
|
18
18
|
import { labelStyle } from "../shared-styles/labelStyles.css.js";
|
|
19
19
|
import { prefixStyle, suffixStyle } from "../shared-styles/suffixPrefix.css.js";
|
|
20
|
-
import { useInputFieldLogic,
|
|
20
|
+
import { useInputFieldLogic, getInputFieldProps, isClickableIcon } from "../shared.js";
|
|
21
21
|
const TextField = forwardRef(function TextField2(props, ref) {
|
|
22
22
|
var _a, _b;
|
|
23
23
|
const { wrapperProps, contentProps, commonInputProps } = useInputFieldLogic(props);
|
|
@@ -6,7 +6,7 @@ import { calc } from "@vanilla-extract/css-utils";
|
|
|
6
6
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
7
7
|
import classNames from "classnames";
|
|
8
8
|
import { useExtraIcons } from "./ExtraIconsProvider.js";
|
|
9
|
-
import { iconContainer,
|
|
9
|
+
import { iconContainer, svg, svgWidth, svgHeight } from "./Icon.css.js";
|
|
10
10
|
import { icons } from "./icons.js";
|
|
11
11
|
import { useIconVariant } from "./IconVariantProvider.js";
|
|
12
12
|
const IconContainer = ({ icon, title, size: sizeToken = "l", fill = "currentColor", focusable = false, "aria-label": ariaLabel, "aria-hidden": ariaHidden = title || ariaLabel ? false : true, role = "img", className, variantOverride, ...rest }) => {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
-
const index = require("./svg/action/index.cjs");
|
|
5
|
-
const index$
|
|
6
|
-
const index$
|
|
7
|
-
const index$
|
|
8
|
-
const index$
|
|
9
|
-
const index$
|
|
10
|
-
const index$
|
|
11
|
-
const index$
|
|
12
|
-
const index
|
|
13
|
-
const index$
|
|
14
|
-
const index$
|
|
15
|
-
const index$
|
|
4
|
+
const index$b = require("./svg/action/index.cjs");
|
|
5
|
+
const index$a = require("./svg/communication/index.cjs");
|
|
6
|
+
const index$9 = require("./svg/content/index.cjs");
|
|
7
|
+
const index$8 = require("./svg/device/index.cjs");
|
|
8
|
+
const index$7 = require("./svg/file/index.cjs");
|
|
9
|
+
const index$6 = require("./svg/map/index.cjs");
|
|
10
|
+
const index$5 = require("./svg/navigation/index.cjs");
|
|
11
|
+
const index$4 = require("./svg/notifications/index.cjs");
|
|
12
|
+
const index = require("./svg/search/index.cjs");
|
|
13
|
+
const index$3 = require("./svg/social/index.cjs");
|
|
14
|
+
const index$2 = require("./svg/toggle/index.cjs");
|
|
15
|
+
const index$1 = require("./svg/validation/index.cjs");
|
|
16
16
|
function mergeIconsAndOptions(inputIcons, options) {
|
|
17
17
|
const initial = {};
|
|
18
18
|
return Object.entries(inputIcons).reduce((results, [icon, spec]) => ({
|
|
@@ -35,18 +35,18 @@ function defineIcons(icons2) {
|
|
|
35
35
|
return result;
|
|
36
36
|
}
|
|
37
37
|
const icons = defineIcons(mergeIconsAndOptions({
|
|
38
|
-
...index,
|
|
39
|
-
...index$1,
|
|
40
|
-
...index$2,
|
|
41
|
-
...index$3,
|
|
42
|
-
...index$4,
|
|
43
|
-
...index$5,
|
|
44
|
-
...index$6,
|
|
45
|
-
...index$7,
|
|
46
|
-
...index$8,
|
|
47
|
-
...index$9,
|
|
38
|
+
...index$b,
|
|
48
39
|
...index$a,
|
|
49
|
-
...index$
|
|
40
|
+
...index$9,
|
|
41
|
+
...index$8,
|
|
42
|
+
...index$7,
|
|
43
|
+
...index$6,
|
|
44
|
+
...index$5,
|
|
45
|
+
...index$4,
|
|
46
|
+
...index$3,
|
|
47
|
+
...index$2,
|
|
48
|
+
...index$1,
|
|
49
|
+
...index
|
|
50
50
|
}, {
|
|
51
51
|
// Action
|
|
52
52
|
car: { fit: "width" },
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as index from "./svg/action/index.js";
|
|
3
|
-
import * as index$
|
|
4
|
-
import * as index$
|
|
5
|
-
import * as index$
|
|
6
|
-
import * as index$
|
|
7
|
-
import * as index$
|
|
8
|
-
import * as index$
|
|
9
|
-
import * as index$
|
|
10
|
-
import * as index
|
|
11
|
-
import * as index$
|
|
12
|
-
import * as index$
|
|
13
|
-
import * as index$
|
|
2
|
+
import * as index$b from "./svg/action/index.js";
|
|
3
|
+
import * as index$a from "./svg/communication/index.js";
|
|
4
|
+
import * as index$9 from "./svg/content/index.js";
|
|
5
|
+
import * as index$8 from "./svg/device/index.js";
|
|
6
|
+
import * as index$7 from "./svg/file/index.js";
|
|
7
|
+
import * as index$6 from "./svg/map/index.js";
|
|
8
|
+
import * as index$5 from "./svg/navigation/index.js";
|
|
9
|
+
import * as index$4 from "./svg/notifications/index.js";
|
|
10
|
+
import * as index from "./svg/search/index.js";
|
|
11
|
+
import * as index$3 from "./svg/social/index.js";
|
|
12
|
+
import * as index$2 from "./svg/toggle/index.js";
|
|
13
|
+
import * as index$1 from "./svg/validation/index.js";
|
|
14
14
|
function mergeIconsAndOptions(inputIcons, options) {
|
|
15
15
|
const initial = {};
|
|
16
16
|
return Object.entries(inputIcons).reduce((results, [icon, spec]) => ({
|
|
@@ -33,18 +33,18 @@ function defineIcons(icons2) {
|
|
|
33
33
|
return result;
|
|
34
34
|
}
|
|
35
35
|
const icons = defineIcons(mergeIconsAndOptions({
|
|
36
|
-
...index,
|
|
37
|
-
...index$1,
|
|
38
|
-
...index$2,
|
|
39
|
-
...index$3,
|
|
40
|
-
...index$4,
|
|
41
|
-
...index$5,
|
|
42
|
-
...index$6,
|
|
43
|
-
...index$7,
|
|
44
|
-
...index$8,
|
|
45
|
-
...index$9,
|
|
36
|
+
...index$b,
|
|
46
37
|
...index$a,
|
|
47
|
-
...index$
|
|
38
|
+
...index$9,
|
|
39
|
+
...index$8,
|
|
40
|
+
...index$7,
|
|
41
|
+
...index$6,
|
|
42
|
+
...index$5,
|
|
43
|
+
...index$4,
|
|
44
|
+
...index$3,
|
|
45
|
+
...index$2,
|
|
46
|
+
...index$1,
|
|
47
|
+
...index
|
|
48
48
|
}, {
|
|
49
49
|
// Action
|
|
50
50
|
car: { fit: "width" },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { logos } from "./logos.js";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import {
|
|
5
|
+
import { svgVariant, logoVariant } from "./Logo.css.js";
|
|
6
6
|
const logoTitles = {
|
|
7
7
|
bilhold: "Bilhold",
|
|
8
8
|
mollerbil: "Møller Bil",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { FormMultiSelect, FormSingleSelect, FormCheckbox, FormTextArea, FormTextField } from "./internal/components.js";
|
|
3
3
|
function formInputs() {
|
|
4
4
|
const TextField = FormTextField;
|
|
5
5
|
const TextArea = FormTextArea;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { sliceTranslate } from "../../translations/index.js";
|
|
3
|
-
import { VALID_ADDRESS, VALID_DIGITS, VALID_EMAIL, VALID_NAME, VALID_FIRST_CELL_PHONE_DIGIT,
|
|
3
|
+
import { VALID_ADDRESS, VALID_DIGITS, VALID_EMAIL, VALID_NAME, VALID_FIRST_CELL_PHONE_DIGIT, REG_NO_FULL_LENGTH, REG_NO_FULL_PATTERN } from "./regex.js";
|
|
4
4
|
import { validation, stripWhitespace } from "./validation.js";
|
|
5
5
|
import { matchesRegex, hasLength, maxLength } from "./validationSteps.js";
|
|
6
6
|
const texts = sliceTranslate((t) => t.validation.errors);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.18",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@formkit/auto-animate": "^0.8.2",
|
|
51
|
-
"@gnist/component-utils": "3.0.
|
|
51
|
+
"@gnist/component-utils": "3.0.4",
|
|
52
52
|
"@gnist/themes": "^2.2.5",
|
|
53
53
|
"@mui/base": "^5.0.0-beta.69",
|
|
54
54
|
"@vanilla-extract/css": "^1.17.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
73
73
|
"@tsconfig/node22": "^22.0.0",
|
|
74
74
|
"@types/node": "^22.13.4",
|
|
75
|
-
"@types/prettier": "^
|
|
75
|
+
"@types/prettier": "^3.0.0",
|
|
76
76
|
"@types/react": "^18.0.0",
|
|
77
77
|
"@types/react-dom": "^18.0.0",
|
|
78
78
|
"@types/semver": "^7.5.8",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"eslint-plugin-storybook": "^0.6.15",
|
|
90
90
|
"globby": "^14.1.0",
|
|
91
91
|
"madge": "^8.0.0",
|
|
92
|
-
"prettier": "^
|
|
92
|
+
"prettier": "^3.5.1",
|
|
93
93
|
"react": "^18.3.1",
|
|
94
94
|
"react-dom": "^18.3.1",
|
|
95
95
|
"rollup-plugin-copy": "^3.5.0",
|
|
@@ -101,9 +101,9 @@
|
|
|
101
101
|
"tsx": "^4.19.3",
|
|
102
102
|
"typescript": "^5.3.3",
|
|
103
103
|
"typescript-transform-paths": "^3.5.3",
|
|
104
|
-
"vite": "^
|
|
104
|
+
"vite": "^6.1.1",
|
|
105
105
|
"vite-plugin-svgr": "^4.3.0",
|
|
106
|
-
"vite-tsconfig-paths": "^
|
|
106
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
107
107
|
},
|
|
108
108
|
"peerDependenciesMeta": {
|
|
109
109
|
"@types/react": {
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"optional": true
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "37f7d6e2bdae779f3910df3408b9b1a432002323"
|
|
117
117
|
}
|