@norges-domstoler/dds-components 0.0.0-dev-20260417102534 → 0.0.0-dev-20260420110328
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.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -3695,6 +3695,17 @@ var Typography_default = {
|
|
|
3695
3695
|
container: "Typography_container"
|
|
3696
3696
|
};
|
|
3697
3697
|
|
|
3698
|
+
// src/components/Typography/Typography/Typography.types.ts
|
|
3699
|
+
var TG_HEADING_TYPES = [
|
|
3700
|
+
"headingXxsmall",
|
|
3701
|
+
"headingXsmall",
|
|
3702
|
+
"headingSmall",
|
|
3703
|
+
"headingMedium",
|
|
3704
|
+
"headingLarge",
|
|
3705
|
+
"headingXlarge",
|
|
3706
|
+
"headingXxlarge"
|
|
3707
|
+
];
|
|
3708
|
+
|
|
3698
3709
|
// src/components/Typography/Typography/Typography.utils.ts
|
|
3699
3710
|
var getElementType = (element) => {
|
|
3700
3711
|
switch (element) {
|
|
@@ -3729,7 +3740,7 @@ var getElementType = (element) => {
|
|
|
3729
3740
|
}
|
|
3730
3741
|
};
|
|
3731
3742
|
var isHeading = (type) => {
|
|
3732
|
-
return
|
|
3743
|
+
return TG_HEADING_TYPES.includes(type);
|
|
3733
3744
|
};
|
|
3734
3745
|
var isLegend = (as) => {
|
|
3735
3746
|
return as === "legend";
|
|
@@ -15324,6 +15335,7 @@ export {
|
|
|
15324
15335
|
SunIcon,
|
|
15325
15336
|
SupportIcon,
|
|
15326
15337
|
SyncIcon,
|
|
15338
|
+
TG_HEADING_TYPES,
|
|
15327
15339
|
Tab,
|
|
15328
15340
|
TabList,
|
|
15329
15341
|
TabPanel,
|