@norges-domstoler/dds-components 0.0.0-dev-20240819123353 → 0.0.0-dev-20240822073709
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 +371 -190
- package/dist/index.d.ts +371 -190
- package/dist/index.js +19 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -46
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -388,7 +388,6 @@ __export(src_exports, {
|
|
|
388
388
|
normalizeButton: () => normalizeButton,
|
|
389
389
|
outlineInset: () => outlineInset,
|
|
390
390
|
outlineOffset: () => outlineOffset,
|
|
391
|
-
purposeVariants: () => purposeVariants,
|
|
392
391
|
removeButtonStyling: () => removeButtonStyling,
|
|
393
392
|
removeListStyling: () => removeListStyling,
|
|
394
393
|
renderCharCounter: () => renderCharCounter,
|
|
@@ -8103,16 +8102,10 @@ var GlobalMessage_default = {
|
|
|
8103
8102
|
|
|
8104
8103
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8105
8104
|
var import_jsx_runtime238 = require("react/jsx-runtime");
|
|
8106
|
-
var
|
|
8107
|
-
info:
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
danger: {
|
|
8111
|
-
icon: ErrorIcon
|
|
8112
|
-
},
|
|
8113
|
-
warning: {
|
|
8114
|
-
icon: WarningIcon
|
|
8115
|
-
}
|
|
8105
|
+
var icons = {
|
|
8106
|
+
info: InfoIcon,
|
|
8107
|
+
danger: ErrorIcon,
|
|
8108
|
+
warning: WarningIcon
|
|
8116
8109
|
};
|
|
8117
8110
|
var GlobalMessage = (0, import_react82.forwardRef)(
|
|
8118
8111
|
(props, ref) => {
|
|
@@ -8152,7 +8145,7 @@ var GlobalMessage = (0, import_react82.forwardRef)(
|
|
|
8152
8145
|
closable && GlobalMessage_default["content--closable"]
|
|
8153
8146
|
),
|
|
8154
8147
|
children: [
|
|
8155
|
-
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Icon, { icon:
|
|
8148
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
|
|
8156
8149
|
children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime238.jsx)("span", { children: message })
|
|
8157
8150
|
]
|
|
8158
8151
|
}
|
|
@@ -8915,22 +8908,12 @@ var LocalMessage_default = {
|
|
|
8915
8908
|
|
|
8916
8909
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
8917
8910
|
var import_jsx_runtime252 = require("react/jsx-runtime");
|
|
8918
|
-
var
|
|
8919
|
-
info:
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
},
|
|
8925
|
-
warning: {
|
|
8926
|
-
icon: WarningIcon
|
|
8927
|
-
},
|
|
8928
|
-
success: {
|
|
8929
|
-
icon: CheckCircledIcon
|
|
8930
|
-
},
|
|
8931
|
-
tips: {
|
|
8932
|
-
icon: TipIcon
|
|
8933
|
-
}
|
|
8911
|
+
var icons2 = {
|
|
8912
|
+
info: InfoIcon,
|
|
8913
|
+
danger: ErrorIcon,
|
|
8914
|
+
warning: WarningIcon,
|
|
8915
|
+
success: CheckCircledIcon,
|
|
8916
|
+
tips: TipIcon
|
|
8934
8917
|
};
|
|
8935
8918
|
var LocalMessage = (0, import_react93.forwardRef)(
|
|
8936
8919
|
(props, ref) => {
|
|
@@ -8973,7 +8956,7 @@ var LocalMessage = (0, import_react93.forwardRef)(
|
|
|
8973
8956
|
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8974
8957
|
Icon,
|
|
8975
8958
|
{
|
|
8976
|
-
icon:
|
|
8959
|
+
icon: icons2[purpose],
|
|
8977
8960
|
className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
|
|
8978
8961
|
}
|
|
8979
8962
|
),
|
|
@@ -12128,22 +12111,12 @@ var Tag_default = {
|
|
|
12128
12111
|
|
|
12129
12112
|
// src/components/Tag/Tag.tsx
|
|
12130
12113
|
var import_jsx_runtime291 = require("react/jsx-runtime");
|
|
12131
|
-
var
|
|
12132
|
-
info:
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
},
|
|
12138
|
-
warning: {
|
|
12139
|
-
icon: WarningIcon
|
|
12140
|
-
},
|
|
12141
|
-
success: {
|
|
12142
|
-
icon: CheckCircledIcon
|
|
12143
|
-
},
|
|
12144
|
-
default: {
|
|
12145
|
-
icon: void 0
|
|
12146
|
-
}
|
|
12114
|
+
var icons3 = {
|
|
12115
|
+
info: InfoIcon,
|
|
12116
|
+
danger: ErrorIcon,
|
|
12117
|
+
warning: WarningIcon,
|
|
12118
|
+
success: CheckCircledIcon,
|
|
12119
|
+
default: void 0
|
|
12147
12120
|
};
|
|
12148
12121
|
var Tag = (0, import_react137.forwardRef)((props, ref) => {
|
|
12149
12122
|
const {
|
|
@@ -12157,7 +12130,7 @@ var Tag = (0, import_react137.forwardRef)((props, ref) => {
|
|
|
12157
12130
|
withIcon,
|
|
12158
12131
|
...rest
|
|
12159
12132
|
} = props;
|
|
12160
|
-
const icon =
|
|
12133
|
+
const icon = icons3[purpose];
|
|
12161
12134
|
return /* @__PURE__ */ (0, import_jsx_runtime291.jsxs)(
|
|
12162
12135
|
TextOverflowEllipsisWrapper,
|
|
12163
12136
|
{
|
|
@@ -13025,7 +12998,6 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
|
|
|
13025
12998
|
normalizeButton,
|
|
13026
12999
|
outlineInset,
|
|
13027
13000
|
outlineOffset,
|
|
13028
|
-
purposeVariants,
|
|
13029
13001
|
removeButtonStyling,
|
|
13030
13002
|
removeListStyling,
|
|
13031
13003
|
renderCharCounter,
|