@mattilsynet/design 1.1.4 → 1.1.6
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/mtds/alert/alert.d.ts +1 -1
- package/mtds/alert/alert.js.map +1 -1
- package/mtds/app/app-observer.js +1 -1
- package/mtds/app/app-toggle.js +25 -11
- package/mtds/app/app-toggle.js.map +1 -1
- package/mtds/app/app-toggle2.js +11 -25
- package/mtds/app/app-toggle2.js.map +1 -1
- package/mtds/app/app.js +1 -1
- package/mtds/button/button.js +15 -7
- package/mtds/button/button.js.map +1 -1
- package/mtds/field/field.js +10 -9
- package/mtds/field/field.js.map +1 -1
- package/mtds/field/field.stories.d.ts +1 -0
- package/mtds/illustrations/banana-apple-cup.svg +1 -1
- package/mtds/index.d.ts +5 -2
- package/mtds/index.iife.js +5 -5
- package/mtds/index.js +5 -4
- package/mtds/index.js.map +1 -1
- package/mtds/layout/layout.stories.d.ts +0 -1
- package/mtds/package.json.js +1 -1
- package/mtds/react.d.ts +2 -1
- package/mtds/react.js +50 -45
- package/mtds/react.js.map +1 -1
- package/mtds/styles.css +1 -1
- package/mtds/styles.json +39 -36
- package/mtds/styles.module.css.js +82 -76
- package/mtds/styles.module.css.js.map +1 -1
- package/mtds/togglegroup/togglegroup-observer.d.ts +1 -0
- package/mtds/togglegroup/togglegroup-observer.js +14 -0
- package/mtds/togglegroup/togglegroup-observer.js.map +1 -0
- package/mtds/togglegroup/togglegroup.d.ts +11 -0
- package/mtds/togglegroup/togglegroup.js +29 -0
- package/mtds/togglegroup/togglegroup.js.map +1 -0
- package/mtds/togglegroup/togglegroup.stories.d.ts +8 -0
- package/mtds/typography/typography.d.ts +18 -0
- package/mtds/typography/typography.js +20 -0
- package/mtds/typography/typography.js.map +1 -0
- package/mtds/{heading/heading.stories.d.ts → typography/typography.stories.d.ts} +5 -2
- package/package.json +6 -6
- package/mtds/heading/heading.d.ts +0 -8
- package/mtds/heading/heading.js +0 -11
- package/mtds/heading/heading.js.map +0 -1
package/mtds/alert/alert.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
2
|
import { PolymorphicComponentPropWithRef } from '../react-types';
|
|
3
3
|
export type AlertProps<As extends React.ElementType = "output"> = PolymorphicComponentPropWithRef<As, {
|
|
4
|
-
"data-color"?: "info" | "success" | "warning" | "danger";
|
|
4
|
+
"data-color"?: "info" | "success" | "warning" | "danger" | "neutral";
|
|
5
5
|
}>;
|
|
6
6
|
type AlertComponent = <As extends React.ElementType = "output">(props: AlertProps<As>) => JSX.Element;
|
|
7
7
|
export declare const Alert: AlertComponent;
|
package/mtds/alert/alert.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","sources":["../../designsystem/alert/alert.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type JSX, forwardRef } from \"react\";\nimport type {\n\tPolymorphicComponentPropWithRef,\n\tPolymorphicRef,\n} from \"../react-types\";\nimport styles from \"../styles.module.css\";\n\nexport type AlertProps<As extends React.ElementType = \"output\"> =\n\tPolymorphicComponentPropWithRef<\n\t\tAs,\n\t\t{\n\t\t\t\"data-color\"?: \"info\" | \"success\" | \"warning\" | \"danger\";\n\t\t}\n\t>;\n\ntype AlertComponent = <As extends React.ElementType = \"output\">(\n\tprops: AlertProps<As>,\n) => JSX.Element;\n\nexport const Alert: AlertComponent = forwardRef<null>(function Alert<\n\tAs extends React.ElementType = \"output\",\n>({ as, className, ...rest }: AlertProps<As>, ref?: PolymorphicRef<As>) {\n\tconst Tag = as || \"output\";\n\n\tif (!rest.role && Tag !== \"output\") Object.assign(rest, { role: \"alert\" }); // Ensure role is set to 'alert' if not <output>\n\n\treturn <Tag className={clsx(styles.alert, className)} ref={ref} {...rest} />;\n}) as AlertComponent; // Needed to tell Typescript this does not return ReactNode but acutally JSX.Element\n"],"names":["Alert","forwardRef","as","className","rest","ref","Tag","jsx","clsx","styles"],"mappings":";;;;AAoBa,MAAAA,IAAwBC,EAAiB,SAEpD,EAAE,IAAAC,GAAI,WAAAC,GAAW,GAAGC,EAAK,GAAmBC,GAA0B;AACvE,QAAMC,IAAMJ,KAAM;AAEd,SAAA,CAACE,EAAK,QAAQE,MAAQ,YAAiB,OAAA,OAAOF,GAAM,EAAE,MAAM,QAAA,CAAS,GAElE,gBAAAG,EAACD,GAAI,EAAA,WAAWE,EAAKC,EAAO,OAAON,CAAS,GAAG,KAAAE,GAAW,GAAGD,EAAM,CAAA;AAC3E,CAAC;"}
|
|
1
|
+
{"version":3,"file":"alert.js","sources":["../../designsystem/alert/alert.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type JSX, forwardRef } from \"react\";\nimport type {\n\tPolymorphicComponentPropWithRef,\n\tPolymorphicRef,\n} from \"../react-types\";\nimport styles from \"../styles.module.css\";\n\nexport type AlertProps<As extends React.ElementType = \"output\"> =\n\tPolymorphicComponentPropWithRef<\n\t\tAs,\n\t\t{\n\t\t\t\"data-color\"?: \"info\" | \"success\" | \"warning\" | \"danger\" | \"neutral\";\n\t\t}\n\t>;\n\ntype AlertComponent = <As extends React.ElementType = \"output\">(\n\tprops: AlertProps<As>,\n) => JSX.Element;\n\nexport const Alert: AlertComponent = forwardRef<null>(function Alert<\n\tAs extends React.ElementType = \"output\",\n>({ as, className, ...rest }: AlertProps<As>, ref?: PolymorphicRef<As>) {\n\tconst Tag = as || \"output\";\n\n\tif (!rest.role && Tag !== \"output\") Object.assign(rest, { role: \"alert\" }); // Ensure role is set to 'alert' if not <output>\n\n\treturn <Tag className={clsx(styles.alert, className)} ref={ref} {...rest} />;\n}) as AlertComponent; // Needed to tell Typescript this does not return ReactNode but acutally JSX.Element\n"],"names":["Alert","forwardRef","as","className","rest","ref","Tag","jsx","clsx","styles"],"mappings":";;;;AAoBa,MAAAA,IAAwBC,EAAiB,SAEpD,EAAE,IAAAC,GAAI,WAAAC,GAAW,GAAGC,EAAK,GAAmBC,GAA0B;AACvE,QAAMC,IAAMJ,KAAM;AAEd,SAAA,CAACE,EAAK,QAAQE,MAAQ,YAAiB,OAAA,OAAOF,GAAM,EAAE,MAAM,QAAA,CAAS,GAElE,gBAAAG,EAACD,GAAI,EAAA,WAAWE,EAAKC,EAAO,OAAON,CAAS,GAAG,KAAAE,GAAW,GAAGD,EAAM,CAAA;AAC3E,CAAC;"}
|
package/mtds/app/app-observer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import m from "../styles.module.css.js";
|
|
2
2
|
import { onLoaded as w, onMutation as C, on as c, QUICK_EVENT as p, debounce as T } from "../utils.js";
|
|
3
|
-
import "./app-
|
|
3
|
+
import "./app-toggle2.js";
|
|
4
4
|
const f = m.app.split(" ")[0], P = m.sticky.split(" ")[0], _ = '[data-command="toggle-app-expanded"]', g = `.${f} > dialog,.${f} dialog ~ main`, h = (e) => {
|
|
5
5
|
document.startViewTransition ? document.startViewTransition(e) : e();
|
|
6
6
|
};
|
package/mtds/app/app-toggle.js
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
const t = `if (
|
|
2
|
+
typeof window !== "undefined" &&
|
|
3
|
+
window.CSSStyleSheet &&
|
|
4
|
+
document.adoptedStyleSheets
|
|
5
|
+
)
|
|
6
|
+
(() => {
|
|
7
|
+
const key = "--mtds-app-expanded";
|
|
8
|
+
const sheet = new CSSStyleSheet();
|
|
9
|
+
|
|
10
|
+
document.adoptedStyleSheets.push(sheet);
|
|
11
|
+
window.mtdsAppToggle = (toggle = true) => {
|
|
12
|
+
try {
|
|
13
|
+
const prev = !window.localStorage.getItem(key)?.includes("false");
|
|
14
|
+
const next = toggle ? !prev : prev;
|
|
15
|
+
|
|
16
|
+
sheet.replaceSync?.(\`:root { \${key}: var(\${key}--\${next})}\`);
|
|
17
|
+
window.localStorage.setItem(key, next);
|
|
18
|
+
} catch (err) {} // LocalStorage is full or replaceSync is not supported
|
|
19
|
+
};
|
|
20
|
+
window.mtdsAppToggle(false); // Set and store initial state
|
|
21
|
+
})();
|
|
22
|
+
`;
|
|
23
|
+
export {
|
|
24
|
+
t as default
|
|
25
|
+
};
|
|
12
26
|
//# sourceMappingURL=app-toggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-toggle.js","sources":["../../designsystem/app/app-toggle.js"],"sourcesContent":["if (
|
|
1
|
+
{"version":3,"file":"app-toggle.js","sources":["../../designsystem/app/app-toggle.js?raw"],"sourcesContent":["export default \"if (\\n\\ttypeof window !== \\\"undefined\\\" &&\\n\\twindow.CSSStyleSheet &&\\n\\tdocument.adoptedStyleSheets\\n)\\n\\t(() => {\\n\\t\\tconst key = \\\"--mtds-app-expanded\\\";\\n\\t\\tconst sheet = new CSSStyleSheet();\\n\\n\\t\\tdocument.adoptedStyleSheets.push(sheet);\\n\\t\\twindow.mtdsAppToggle = (toggle = true) => {\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tconst prev = !window.localStorage.getItem(key)?.includes(\\\"false\\\");\\n\\t\\t\\t\\tconst next = toggle ? !prev : prev;\\n\\n\\t\\t\\t\\tsheet.replaceSync?.(`:root { ${key}: var(${key}--${next})}`);\\n\\t\\t\\t\\twindow.localStorage.setItem(key, next);\\n\\t\\t\\t} catch (err) {} // LocalStorage is full or replaceSync is not supported\\n\\t\\t};\\n\\t\\twindow.mtdsAppToggle(false); // Set and store initial state\\n\\t})();\\n\""],"names":["script"],"mappings":"AAAA,MAAeA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
package/mtds/app/app-toggle2.js
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
try {
|
|
13
|
-
const prev = !window.localStorage.getItem(key)?.includes("false");
|
|
14
|
-
const next = toggle ? !prev : prev;
|
|
15
|
-
|
|
16
|
-
sheet.replaceSync?.(\`:root { \${key}: var(\${key}--\${next})}\`);
|
|
17
|
-
window.localStorage.setItem(key, next);
|
|
18
|
-
} catch (err) {} // LocalStorage is full or replaceSync is not supported
|
|
19
|
-
};
|
|
20
|
-
window.mtdsAppToggle(false); // Set and store initial state
|
|
21
|
-
})();
|
|
22
|
-
`;
|
|
23
|
-
export {
|
|
24
|
-
t as default
|
|
25
|
-
};
|
|
1
|
+
typeof window < "u" && window.CSSStyleSheet && document.adoptedStyleSheets && (() => {
|
|
2
|
+
const e = "--mtds-app-expanded", t = new CSSStyleSheet();
|
|
3
|
+
document.adoptedStyleSheets.push(t), window.mtdsAppToggle = (l = !0) => {
|
|
4
|
+
var d, n;
|
|
5
|
+
try {
|
|
6
|
+
const o = !((d = window.localStorage.getItem(e)) != null && d.includes("false")), S = l ? !o : o;
|
|
7
|
+
(n = t.replaceSync) == null || n.call(t, `:root { ${e}: var(${e}--${S})}`), window.localStorage.setItem(e, S);
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
}, window.mtdsAppToggle(!1);
|
|
11
|
+
})();
|
|
26
12
|
//# sourceMappingURL=app-toggle2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-toggle2.js","sources":["../../designsystem/app/app-toggle.js
|
|
1
|
+
{"version":3,"file":"app-toggle2.js","sources":["../../designsystem/app/app-toggle.js"],"sourcesContent":["if (\n\ttypeof window !== \"undefined\" &&\n\twindow.CSSStyleSheet &&\n\tdocument.adoptedStyleSheets\n)\n\t(() => {\n\t\tconst key = \"--mtds-app-expanded\";\n\t\tconst sheet = new CSSStyleSheet();\n\n\t\tdocument.adoptedStyleSheets.push(sheet);\n\t\twindow.mtdsAppToggle = (toggle = true) => {\n\t\t\ttry {\n\t\t\t\tconst prev = !window.localStorage.getItem(key)?.includes(\"false\");\n\t\t\t\tconst next = toggle ? !prev : prev;\n\n\t\t\t\tsheet.replaceSync?.(`:root { ${key}: var(${key}--${next})}`);\n\t\t\t\twindow.localStorage.setItem(key, next);\n\t\t\t} catch (err) {} // LocalStorage is full or replaceSync is not supported\n\t\t};\n\t\twindow.mtdsAppToggle(false); // Set and store initial state\n\t})();\n"],"names":["key","sheet","toggle","_a","_b","prev","next"],"mappings":"AACC,OAAO,SAAW,OAClB,OAAO,iBACP,SAAS,uBAER,MAAM;AACN,QAAMA,IAAM,uBACNC,IAAQ,IAAI,cAAe;AAEjC,WAAS,mBAAmB,KAAKA,CAAK,GACtC,OAAO,gBAAgB,CAACC,IAAS,OAAS;AAV5C,QAAAC,GAAAC;AAWG,QAAI;AACH,YAAMC,IAAO,GAACF,IAAA,OAAO,aAAa,QAAQH,CAAG,MAA/B,QAAAG,EAAkC,SAAS,WACnDG,IAAOJ,IAAS,CAACG,IAAOA;AAE9B,OAAAD,IAAAH,EAAM,gBAAN,QAAAG,EAAA,KAAAH,GAAoB,WAAWD,CAAG,SAASA,CAAG,KAAKM,CAAI,OACvD,OAAO,aAAa,QAAQN,GAAKM,CAAI;AAAA,IACzC,QAAiB;AAAA,IAAE;AAAA,EAChB,GACD,OAAO,cAAc,EAAK;AAC5B,GAAK;"}
|
package/mtds/app/app.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import { clsx as a } from "../external/clsx/dist/clsx.js";
|
|
3
3
|
import { forwardRef as p } from "react";
|
|
4
4
|
import c from "../styles.module.css.js";
|
|
5
|
-
import m from "./app-
|
|
5
|
+
import m from "./app-toggle.js";
|
|
6
6
|
const f = p(function({ as: r, className: t, ...n }, e) {
|
|
7
7
|
return /* @__PURE__ */ o(r || "div", { className: a(c.app, t), ref: e, ...n });
|
|
8
8
|
}), d = p(function({ as: r, className: t, ...n }, e) {
|
package/mtds/button/button.js
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
const x =
|
|
6
|
-
const
|
|
7
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as u } from "../external/clsx/dist/clsx.js";
|
|
3
|
+
import { forwardRef as e } from "react";
|
|
4
|
+
import i from "../styles.module.css.js";
|
|
5
|
+
const x = e(function({ as: r, className: n, type: m, ...o }, f) {
|
|
6
|
+
const t = r || (o.href ? "a" : "button");
|
|
7
|
+
return /* @__PURE__ */ s(
|
|
8
|
+
t,
|
|
9
|
+
{
|
|
10
|
+
className: u(i.button, n),
|
|
11
|
+
type: m ?? (t === "button" ? t : void 0),
|
|
12
|
+
ref: f,
|
|
13
|
+
...o
|
|
14
|
+
}
|
|
15
|
+
);
|
|
8
16
|
});
|
|
9
17
|
export {
|
|
10
18
|
x as Button
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sources":["../../designsystem/button/button.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type JSX, forwardRef } from \"react\";\nimport type {\n\tPolymorphicComponentPropWithRef,\n\tPolymorphicRef,\n} from \"../react-types\";\nimport styles from \"../styles.module.css\";\n\ntype ButtonBaseProps<Href> = {\n\t\"data-arrow\"?: \"left\" | \"right\" | true;\n\t\"data-color\"?: \"main\" | \"danger\";\n\t\"data-justify\"?: \"start\" | \"center\" | \"right\";\n\t\"data-nowrap\"?: boolean;\n\t\"data-variant\"?: \"primary\" | \"secondary\" | \"tertiary\";\n\thref?: Href;\n\tpopovertarget?: string;\n\tpopovertargetaction?: string;\n};\n\nexport type ButtonProps<\n\tHref,\n\tAs extends React.ElementType = Href extends string ? \"a\" : \"button\",\n> = PolymorphicComponentPropWithRef<As, ButtonBaseProps<Href>>;\n\ntype ButtonComponent = <\n\tHref,\n\tAs extends React.ElementType = Href extends string ? \"a\" : \"button\",\n>(\n\tprops: ButtonProps<Href, As>,\n) => JSX.Element;\n\nexport const Button: ButtonComponent = forwardRef<null>(function Button<\n\tHref,\n\tAs extends React.ElementType = Href extends string ? \"a\" : \"button\",\n>({ as, className, ...rest }: ButtonProps<Href, As
|
|
1
|
+
{"version":3,"file":"button.js","sources":["../../designsystem/button/button.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { type JSX, forwardRef } from \"react\";\nimport type {\n\tPolymorphicComponentPropWithRef,\n\tPolymorphicRef,\n} from \"../react-types\";\nimport styles from \"../styles.module.css\";\n\ntype ButtonBaseProps<Href> = {\n\t\"data-arrow\"?: \"left\" | \"right\" | true;\n\t\"data-color\"?: \"main\" | \"danger\";\n\t\"data-justify\"?: \"start\" | \"center\" | \"right\";\n\t\"data-nowrap\"?: boolean;\n\t\"data-variant\"?: \"primary\" | \"secondary\" | \"tertiary\";\n\thref?: Href;\n\tpopovertarget?: string;\n\tpopovertargetaction?: string;\n};\n\nexport type ButtonProps<\n\tHref,\n\tAs extends React.ElementType = Href extends string ? \"a\" : \"button\",\n> = PolymorphicComponentPropWithRef<As, ButtonBaseProps<Href>>;\n\ntype ButtonComponent = <\n\tHref,\n\tAs extends React.ElementType = Href extends string ? \"a\" : \"button\",\n>(\n\tprops: ButtonProps<Href, As>,\n) => JSX.Element;\n\nexport const Button: ButtonComponent = forwardRef<null>(function Button<\n\tHref,\n\tAs extends React.ElementType = Href extends string ? \"a\" : \"button\",\n>(\n\t{ as, className, type, ...rest }: ButtonProps<Href, As>,\n\tref?: PolymorphicRef<As>,\n) {\n\tconst Tag = as || (rest.href ? \"a\" : \"button\");\n\n\treturn (\n\t\t<Tag\n\t\t\tclassName={clsx(styles.button, className)}\n\t\t\ttype={type ?? (Tag === \"button\" ? Tag : undefined)} // Default to type=\"button\" if not set and tag is button\n\t\t\tref={ref}\n\t\t\t{...rest}\n\t\t/>\n\t);\n}) as ButtonComponent; // Needed to tell Typescript this does not return ReactNode but acutally JSX.Element\n"],"names":["Button","forwardRef","as","className","type","rest","ref","Tag","jsx","clsx","styles"],"mappings":";;;;AA+Ba,MAAAA,IAA0BC,EAAiB,SAIvD,EAAE,IAAAC,GAAI,WAAAC,GAAW,MAAAC,GAAM,GAAGC,EAAK,GAC/BC,GACC;AACD,QAAMC,IAAML,MAAOG,EAAK,OAAO,MAAM;AAGpC,SAAA,gBAAAG;AAAA,IAACD;AAAA,IAAA;AAAA,MACA,WAAWE,EAAKC,EAAO,QAAQP,CAAS;AAAA,MACxC,MAAMC,MAASG,MAAQ,WAAWA,IAAM;AAAA,MACxC,KAAAD;AAAA,MACC,GAAGD;AAAA,IAAA;AAAA,EACL;AAEF,CAAC;"}
|
package/mtds/field/field.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, Fragment as C, jsxs as O } from "react/jsx-runtime";
|
|
2
2
|
import { clsx as j } from "../external/clsx/dist/clsx.js";
|
|
3
|
-
import { forwardRef as
|
|
3
|
+
import { forwardRef as m } from "react";
|
|
4
4
|
import "../alert/alert.js";
|
|
5
5
|
import "../app/app.js";
|
|
6
6
|
import "../avatar/avatar.js";
|
|
@@ -14,7 +14,7 @@ import "../dialog/dialog.js";
|
|
|
14
14
|
import "../divider/divider.js";
|
|
15
15
|
import "../errorsummary/errorsummary.js";
|
|
16
16
|
import "../fieldset/fieldset.js";
|
|
17
|
-
import "../
|
|
17
|
+
import "../typography/typography.js";
|
|
18
18
|
import { HelpText as W } from "../helptext/helptext.js";
|
|
19
19
|
import "../input/input.js";
|
|
20
20
|
import "../layout/layout.js";
|
|
@@ -28,10 +28,11 @@ import "../spinner/spinner.js";
|
|
|
28
28
|
import "../table/table.js";
|
|
29
29
|
import "../tabs/tabs.js";
|
|
30
30
|
import "../tag/tag.js";
|
|
31
|
+
import "../togglegroup/togglegroup.js";
|
|
31
32
|
import "../validation/validation.js";
|
|
32
33
|
import e from "../styles.module.css.js";
|
|
33
34
|
import { toCustomElementProps as f } from "../utils.js";
|
|
34
|
-
const w =
|
|
35
|
+
const w = m(function({
|
|
35
36
|
"data-size": r,
|
|
36
37
|
as: t,
|
|
37
38
|
className: p,
|
|
@@ -75,30 +76,30 @@ const w = a(function({
|
|
|
75
76
|
!!b && /* @__PURE__ */ i("div", { className: e.validation, children: b }),
|
|
76
77
|
!!u && /* @__PURE__ */ i("p", { "data-count": u })
|
|
77
78
|
] }) : /* @__PURE__ */ i("div", { ref: c, ...x, ...n });
|
|
78
|
-
}), y =
|
|
79
|
+
}), y = m(
|
|
79
80
|
function({ className: r, ...t }, p) {
|
|
80
81
|
return /* @__PURE__ */ i("div", { className: j(e.affixes, r), ref: p, ...t });
|
|
81
82
|
}
|
|
82
|
-
), E =
|
|
83
|
+
), E = m(
|
|
83
84
|
function(r, t) {
|
|
84
85
|
return /* @__PURE__ */ i("u-datalist", { ref: t, ...f(r) });
|
|
85
86
|
}
|
|
86
|
-
), P =
|
|
87
|
+
), P = m(
|
|
87
88
|
function(r, t) {
|
|
88
89
|
return /* @__PURE__ */ i("u-option", { ref: t, ...f(r) });
|
|
89
90
|
}
|
|
90
|
-
), R =
|
|
91
|
+
), R = m(
|
|
91
92
|
function(r, t) {
|
|
92
93
|
return /* @__PURE__ */ i("u-tags", { ref: t, ...f(r) });
|
|
93
94
|
}
|
|
94
|
-
),
|
|
95
|
+
), Fi = Object.assign(w, {
|
|
95
96
|
Affixes: y,
|
|
96
97
|
Datalist: E,
|
|
97
98
|
Tags: R,
|
|
98
99
|
Option: P
|
|
99
100
|
});
|
|
100
101
|
export {
|
|
101
|
-
|
|
102
|
+
Fi as Field,
|
|
102
103
|
w as FieldComp
|
|
103
104
|
};
|
|
104
105
|
//# sourceMappingURL=field.js.map
|
package/mtds/field/field.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.js","sources":["../../designsystem/field/field.tsx"],"sourcesContent":["import type { ReactUtags, UHTMLTagsElement } from \"@u-elements/u-tags\";\nimport clsx from \"clsx\";\nimport { type JSX, forwardRef } from \"react\";\nimport { HelpText } from \"../react\";\nimport type {\n\tPolymorphicComponentPropWithRef,\n\tPolymorphicRef,\n} from \"../react-types\";\nimport styles from \"../styles.module.css\";\nimport { toCustomElementProps } from \"../utils\";\n\ntype FieldBaseProps = {\n\tcount?: number;\n\tdescription?: React.ReactNode;\n\terror?: React.ReactNode; // Kept for backwards compatibility\n\thelpText?: React.ReactNode;\n\thelpTextLabel?: string;\n\tlabel?: React.ReactNode;\n\toptions?: Array<string | { label: string; value: string }>;\n\tprefix?: string;\n\treadOnly?: boolean; // Allow readoOnly also on <select>\n\tsuffix?: string;\n\tvalidation?: React.ReactNode;\n};\n\nexport type FieldProps<As extends React.ElementType = \"div\"> =\n\tPolymorphicComponentPropWithRef<As, FieldBaseProps>;\n\ntype FieldComponent = <As extends React.ElementType = \"div\">(\n\tprops: FieldProps<As>,\n) => JSX.Element;\n\nexport const FieldComp: FieldComponent = forwardRef<null>(function Field<\n\tAs extends React.ElementType = \"div\",\n>(\n\t{\n\t\t\"data-size\": size,\n\t\tas,\n\t\tclassName,\n\t\tcount,\n\t\tdescription,\n\t\terror,\n\t\thelpText,\n\t\thelpTextLabel,\n\t\tlabel,\n\t\toptions,\n\t\tprefix,\n\t\tstyle,\n\t\tsuffix,\n\t\tvalidation,\n\t\t...rest\n\t}: FieldProps<As>,\n\tref?: PolymorphicRef<As>,\n) {\n\tconst Tag = as || \"div\";\n\tconst affixes = !!suffix || !!prefix;\n\tconst valid = validation || error; // error kept for backwards compatibility\n\tconst shared = {\n\t\t\"data-size\": size,\n\t\tclassName: clsx(styles.field, className),\n\t\tstyle,\n\t};\n\n\t// Render options if select\n\tif (as === \"select\" && !rest.children)\n\t\tObject.assign(rest, {\n\t\t\tchildren: (\n\t\t\t\t<>\n\t\t\t\t\t{options\n\t\t\t\t\t\t?.map((o) => (typeof o === \"string\" ? { label: o, value: o } : o))\n\t\t\t\t\t\t.map(({ label, value }) => (\n\t\t\t\t\t\t\t<option key={value} value={value}>\n\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t))}\n\t\t\t\t</>\n\t\t\t),\n\t\t});\n\n\t// Using suppressHydrationWarning to avoid Next.js vs field-observer.ts hydration conflict\n\treturn as ? (\n\t\t<div {...shared}>\n\t\t\t{!!label && <label suppressHydrationWarning>{label}</label>}\n\t\t\t{!!helpText && <HelpText aria-label={helpTextLabel}>{helpText}</HelpText>}\n\t\t\t{!!description && <p>{description}</p>}\n\t\t\t{affixes ? (\n\t\t\t\t<FieldAffixes>\n\t\t\t\t\t{!!prefix && <span>{prefix}</span>}\n\t\t\t\t\t<Tag className={styles.input} ref={ref} {...rest} />\n\t\t\t\t\t{!!suffix && <span>{suffix}</span>}\n\t\t\t\t</FieldAffixes>\n\t\t\t) : (\n\t\t\t\t<Tag\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tsuppressHydrationWarning\n\t\t\t\t\tref={ref}\n\t\t\t\t\t{...rest}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{!!valid && <div className={styles.validation}>{valid}</div>}\n\t\t\t{!!count && <p data-count={count} />}\n\t\t</div>\n\t) : (\n\t\t<div ref={ref} {...shared} {...rest} />\n\t);\n}) as FieldComponent; // Needed to tell Typescript this does not return ReactNode but acutally JSX.Element\n\nconst FieldAffixes = forwardRef<HTMLDivElement, FieldProps>(\n\tfunction FieldAffixes({ className, ...rest }, ref) {\n\t\treturn (\n\t\t\t<div className={clsx(styles.affixes, className)} ref={ref} {...rest} />\n\t\t);\n\t},\n);\n\nexport type FieldDatalistProps = React.ComponentPropsWithoutRef<\"datalist\">;\n\nconst FieldDatalist = forwardRef<HTMLDataListElement, FieldDatalistProps>(\n\tfunction FieldDatalist(props, ref) {\n\t\treturn <u-datalist ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type FieldOptionProps = React.ComponentPropsWithoutRef<\"option\">;\n\nconst FieldOption = forwardRef<HTMLOptionElement, FieldOptionProps>(\n\tfunction FieldOption(props, ref) {\n\t\treturn <u-option ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type FieldTagsProps = ReactUtags;\n\nconst FieldTags = forwardRef<UHTMLTagsElement, FieldTagsProps>(\n\tfunction FieldTags(props, ref) {\n\t\treturn <u-tags ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport const Field = Object.assign(FieldComp, {\n\tAffixes: FieldAffixes,\n\tDatalist: FieldDatalist,\n\tTags: FieldTags,\n\tOption: FieldOption,\n});\n"],"names":["FieldComp","forwardRef","size","as","className","count","description","error","helpText","helpTextLabel","label","options","prefix","style","suffix","validation","rest","ref","Tag","affixes","valid","shared","clsx","styles","jsx","Fragment","value","jsxs","HelpText","FieldAffixes","FieldDatalist","props","toCustomElementProps","FieldOption","FieldTags","Field"],"mappings":"
|
|
1
|
+
{"version":3,"file":"field.js","sources":["../../designsystem/field/field.tsx"],"sourcesContent":["import type { ReactUtags, UHTMLTagsElement } from \"@u-elements/u-tags\";\nimport clsx from \"clsx\";\nimport { type JSX, forwardRef } from \"react\";\nimport { HelpText } from \"../react\";\nimport type {\n\tPolymorphicComponentPropWithRef,\n\tPolymorphicRef,\n} from \"../react-types\";\nimport styles from \"../styles.module.css\";\nimport { toCustomElementProps } from \"../utils\";\n\ntype FieldBaseProps = {\n\tcount?: number;\n\tdescription?: React.ReactNode;\n\terror?: React.ReactNode; // Kept for backwards compatibility\n\thelpText?: React.ReactNode;\n\thelpTextLabel?: string;\n\tlabel?: React.ReactNode;\n\toptions?: Array<string | { label: string; value: string }>;\n\tprefix?: string;\n\treadOnly?: boolean; // Allow readoOnly also on <select>\n\tsuffix?: string;\n\tvalidation?: React.ReactNode;\n};\n\nexport type FieldProps<As extends React.ElementType = \"div\"> =\n\tPolymorphicComponentPropWithRef<As, FieldBaseProps>;\n\ntype FieldComponent = <As extends React.ElementType = \"div\">(\n\tprops: FieldProps<As>,\n) => JSX.Element;\n\nexport const FieldComp: FieldComponent = forwardRef<null>(function Field<\n\tAs extends React.ElementType = \"div\",\n>(\n\t{\n\t\t\"data-size\": size,\n\t\tas,\n\t\tclassName,\n\t\tcount,\n\t\tdescription,\n\t\terror,\n\t\thelpText,\n\t\thelpTextLabel,\n\t\tlabel,\n\t\toptions,\n\t\tprefix,\n\t\tstyle,\n\t\tsuffix,\n\t\tvalidation,\n\t\t...rest\n\t}: FieldProps<As>,\n\tref?: PolymorphicRef<As>,\n) {\n\tconst Tag = as || \"div\";\n\tconst affixes = !!suffix || !!prefix;\n\tconst valid = validation || error; // error kept for backwards compatibility\n\tconst shared = {\n\t\t\"data-size\": size,\n\t\tclassName: clsx(styles.field, className),\n\t\tstyle,\n\t};\n\n\t// Render options if select\n\tif (as === \"select\" && !rest.children)\n\t\tObject.assign(rest, {\n\t\t\tchildren: (\n\t\t\t\t<>\n\t\t\t\t\t{options\n\t\t\t\t\t\t?.map((o) => (typeof o === \"string\" ? { label: o, value: o } : o))\n\t\t\t\t\t\t.map(({ label, value }) => (\n\t\t\t\t\t\t\t<option key={value} value={value}>\n\t\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t))}\n\t\t\t\t</>\n\t\t\t),\n\t\t});\n\n\t// Using suppressHydrationWarning to avoid Next.js vs field-observer.ts hydration conflict\n\treturn as ? (\n\t\t<div {...shared}>\n\t\t\t{!!label && <label suppressHydrationWarning>{label}</label>}\n\t\t\t{!!helpText && <HelpText aria-label={helpTextLabel}>{helpText}</HelpText>}\n\t\t\t{!!description && <p>{description}</p>}\n\t\t\t{affixes ? (\n\t\t\t\t<FieldAffixes>\n\t\t\t\t\t{!!prefix && <span>{prefix}</span>}\n\t\t\t\t\t<Tag className={styles.input} ref={ref} {...rest} />\n\t\t\t\t\t{!!suffix && <span>{suffix}</span>}\n\t\t\t\t</FieldAffixes>\n\t\t\t) : (\n\t\t\t\t<Tag\n\t\t\t\t\tclassName={styles.input}\n\t\t\t\t\tsuppressHydrationWarning\n\t\t\t\t\tref={ref}\n\t\t\t\t\t{...rest}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{!!valid && <div className={styles.validation}>{valid}</div>}\n\t\t\t{!!count && <p data-count={count} />}\n\t\t</div>\n\t) : (\n\t\t<div ref={ref} {...shared} {...rest} />\n\t);\n}) as FieldComponent; // Needed to tell Typescript this does not return ReactNode but acutally JSX.Element\n\nconst FieldAffixes = forwardRef<HTMLDivElement, FieldProps>(\n\tfunction FieldAffixes({ className, ...rest }, ref) {\n\t\treturn (\n\t\t\t<div className={clsx(styles.affixes, className)} ref={ref} {...rest} />\n\t\t);\n\t},\n);\n\nexport type FieldDatalistProps = React.ComponentPropsWithoutRef<\"datalist\">;\n\nconst FieldDatalist = forwardRef<HTMLDataListElement, FieldDatalistProps>(\n\tfunction FieldDatalist(props, ref) {\n\t\treturn <u-datalist ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type FieldOptionProps = React.ComponentPropsWithoutRef<\"option\">;\n\nconst FieldOption = forwardRef<HTMLOptionElement, FieldOptionProps>(\n\tfunction FieldOption(props, ref) {\n\t\treturn <u-option ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type FieldTagsProps = ReactUtags;\n\nconst FieldTags = forwardRef<UHTMLTagsElement, FieldTagsProps>(\n\tfunction FieldTags(props, ref) {\n\t\treturn <u-tags ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport const Field = Object.assign(FieldComp, {\n\tAffixes: FieldAffixes,\n\tDatalist: FieldDatalist,\n\tTags: FieldTags,\n\tOption: FieldOption,\n});\n"],"names":["FieldComp","forwardRef","size","as","className","count","description","error","helpText","helpTextLabel","label","options","prefix","style","suffix","validation","rest","ref","Tag","affixes","valid","shared","clsx","styles","jsx","Fragment","value","jsxs","HelpText","FieldAffixes","FieldDatalist","props","toCustomElementProps","FieldOption","FieldTags","Field"],"mappings":"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"}
|
|
@@ -155,6 +155,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
155
155
|
export declare const Default: Story;
|
|
156
156
|
export declare const React: Story;
|
|
157
157
|
export declare const Required: Story;
|
|
158
|
+
export declare const Indeterminate: Story;
|
|
158
159
|
export declare const Toggles: Story;
|
|
159
160
|
export declare const WithValidation: Story;
|
|
160
161
|
export declare const WithAffixes: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="240" height="163" viewBox="0 0 240 163">
|
|
2
2
|
<path fill="#B4CEA0" d="M225.17 99.57a14.53 14.53 0 0 0-13.14 7.97v-18.5c-26.95 1.5-85.88.03-85.88.03s.7 29.28 2.6 42.83c2.48 25.36 32.78 29.56 32.78 29.56s26.94 4.22 37.87-11.79c8.88-13 11.67-24.88 12.4-28.88a14.82 14.82 0 0 0 28.18-5.68c.4-8.51-5.43-15.54-14.81-15.54Zm7.2 16.17a7.4 7.4 0 1 1-14.58-2.66 7.4 7.4 0 1 1 14.58 2.66Z"/>
|
|
3
3
|
<path fill="#054449" d="M153.06 3.23c-12.53-5.71-23.3-2.1-23.3-2.1s7.15 13.8 18.5 19.06c11.32 3.48 17.97-3.5 17.97-3.5s-.63-7.74-13.16-13.46ZM166.44 7.22l1.2 13v8.6c1.21 1.16 1.92 2.09 2.04 2.25.04-.2.42-1.71 1.54-3.61V7.22h-4.78Z"/>
|
|
4
|
-
<path fill="#DA573B" d="M169.67 31.1s2.62-12.26 19.05-12.26c16.42 0 20.29 12.95 22.91 20.83 2.63 7.89 1.76 16.64-2.62 28.18-4.39 11.53-18.31 19.47-22.26 20.56-1.53.42-5.92 1.3-9.4-.25-4.82-1.55-3.94.7-13.74.7s-26.25-6.25-32.24-28c0 0-4.73-17.88 3.9-29.1 4.88-6.32 7.64-7.86 17.8-8.72 10.15-.87 16.62 8.05 16.62 8.05h-.03Z"
|
|
4
|
+
<path fill="#DA573B" d="M169.67 31.1s2.62-12.26 19.05-12.26c16.42 0 20.29 12.95 22.91 20.83 2.63 7.89 1.76 16.64-2.62 28.18-4.39 11.53-18.31 19.47-22.26 20.56-1.53.42-5.92 1.3-9.4-.25-4.82-1.55-3.94.7-13.74.7s-26.25-6.25-32.24-28c0 0-4.73-17.88 3.9-29.1 4.88-6.32 7.64-7.86 17.8-8.72 10.15-.87 16.62 8.05 16.62 8.05h-.03Z"/>
|
|
5
5
|
<path fill="#F9CC76" d="m2.78 140.64-.7.4c-1.16.76-.87 2.08-1.25 3.14-.26.7-.45 1.45-.7 2.16-.26.69-.12 1.32.44 1.84.12.12.21.3.21.45-.04 1.27.73 2.12 1.51 2.97a15.56 15.56 0 0 0 3.98 3.01c1.7.96 3.3 2.1 5.01 3.04 1.84 1.01 3.67 2.05 5.62 2.85 1.44.59 3 .92 4.52 1.18 1.56.28 3.16.47 4.73.47 3.6 0 7.23-.14 10.83-.24 1.27-.04 2.56-.1 3.83-.26 1.51-.19 3-.47 4.5-.73 1.27-.21 2.52-.35 3.79-.61 1.34-.26 2.66-.61 3.97-.92 1.56-.38 3.11-.78 4.66-1.18l4.45-1.22c1.01-.28 2.05-.5 3.04-.85 1.79-.61 3.53-1.32 5.3-1.98 1.9-.7 3.83-1.36 5.71-2.14 1.41-.57 2.8-1.2 4.12-1.93a101.6 101.6 0 0 0 5.6-3.2c1.46-.9 2.8-1.98 4.26-2.88a48.22 48.22 0 0 0 6.92-5.25c2.1-1.89 4.26-3.7 6.3-5.6a55.54 55.54 0 0 0 4.22-4.3c1.43-1.7 2.8-3.46 4.04-5.3 1.77-2.61 3.51-5.25 5.04-8 1.6-2.88 2.94-5.92 4.35-8.9a66.83 66.83 0 0 0 2.1-5.05c.4-1.06.63-2.19.92-3.3.33-1.22.63-2.47.92-3.72.18-.85.3-1.72.44-2.59.17-.99.28-1.95.43-2.94l.02-.3c.1-2.9.26-5.8.23-8.7-.02-1.37-.42-2.73-.66-4.08-.16-.91-.35-1.86-.56-2.78a21.7 21.7 0 0 0-2.78-6.6c-1.06-1.69-1.95-3.5-3.15-5.08a22.37 22.37 0 0 0-3.72-3.74 34.3 34.3 0 0 0-8.85-5.04c-2.14-.88-3.39-2.55-4.37-4.43a74.08 74.08 0 0 1-2.97-6.53c-.35-.9-.3-1.95-.28-2.92.02-.8-.28-1.46-.68-2.1a65.96 65.96 0 0 0-2.1-3.13c-.35-.5-.7-1.08-1.43-.92-.38.1-.73.38-1.06.62-1.56 1.08-3.16 2.14-4.43 3.58-.63.7-1.2 1.48-1.76 2.23-.3.4-.59.78-.85 1.2-.4.64-.33 1.28-.07 1.96.17.38.26.8.3 1.2a5 5 0 0 0 1.09 2.38 31.56 31.56 0 0 1 1.93 3.35c.9 1.7 1.86 3.39 2.54 5.18.42 1.1 1.18 2.21.87 3.53-.16.7-.42 1.4-.59 2.1-.26 1.08-.5 2.19-.7 3.27l-.92 4.8c-.14.74-.3 1.47-.4 2.22-.12.94-.21 1.89-.3 2.83-.24 1.98-.45 3.93-.76 5.91-.21 1.41-.47 2.8-.87 4.17a59.65 59.65 0 0 1-1.84 5.35c-.8 2.07-1.71 4.1-2.6 6.12a29.72 29.72 0 0 1-3.84 6.22c-1.3 1.7-2.57 3.41-3.93 5.04-.92 1.08-2.1 1.93-3 3.04-1.76 2.14-4.04 3.7-6.25 5.3a58.9 58.9 0 0 1-6.8 4.12 46.44 46.44 0 0 1-5.56 2.38c-1.32.5-2.7.8-4.05 1.22-1.64.55-3.27 1.13-4.91 1.68-1.67.54-3.35 1.03-5.04 1.5-1.44.4-2.87.78-4.33 1.16-1.01.26-2.05.47-3.08.73-1.25.33-2.52.63-3.72 1.06-1.9.66-3.79 1.36-5.65 2.12-2.02.8-4.02 1.6-5.98 2.54-2.23 1.06-4.37 2.33-6.59 3.4-1.8.87-3.74 1.53-5.55 2.42-1.08.54-2.07 1.34-3.1 2Z"/>
|
|
6
6
|
</svg>
|
package/mtds/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ badge: string;
|
|
|
11
11
|
breadcrumbs: string;
|
|
12
12
|
button: string;
|
|
13
13
|
card: string;
|
|
14
|
-
info: string;
|
|
15
14
|
group: string;
|
|
16
15
|
chip: string;
|
|
17
16
|
details: string;
|
|
@@ -22,11 +21,14 @@ field: string;
|
|
|
22
21
|
affixes: string;
|
|
23
22
|
fieldset: string;
|
|
24
23
|
heading: string;
|
|
24
|
+
ingress: string;
|
|
25
|
+
muted: string;
|
|
26
|
+
info: string;
|
|
27
|
+
prose: string;
|
|
25
28
|
helptext: string;
|
|
26
29
|
input: string;
|
|
27
30
|
grid: string;
|
|
28
31
|
flex: string;
|
|
29
|
-
prose: string;
|
|
30
32
|
link: string;
|
|
31
33
|
logo: string;
|
|
32
34
|
pagination: string;
|
|
@@ -37,6 +39,7 @@ spinner: string;
|
|
|
37
39
|
table: string;
|
|
38
40
|
tabs: string;
|
|
39
41
|
tag: string;
|
|
42
|
+
togglegroup: string;
|
|
40
43
|
validation: string;
|
|
41
44
|
body: string;
|
|
42
45
|
};
|