@inera/ids-react 6.1.0 → 6.2.0
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/components/card/card.js
CHANGED
|
@@ -2,12 +2,12 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import '@inera/ids-design/components/card/card.css';
|
|
3
3
|
|
|
4
4
|
const IDSCard = ({ fill = 0, borderTop = 0, lean = false, hideOnM = false, hideOnS = false, interactive = false, children }) => {
|
|
5
|
-
return (jsxs("div", { className: `ids-card
|
|
6
|
-
${hideOnM ? "ids-card--hide-on-m" : ""}
|
|
7
|
-
${hideOnS ? "ids-card--hide-on-s" : ""}
|
|
8
|
-
${fill > 0 && !borderTop ? `ids-card--fill-${fill}` : ""}
|
|
9
|
-
${borderTop ? `ids-card--border-top-${borderTop}` : ""}
|
|
10
|
-
${lean ? "ids-card--lean" : ""}
|
|
5
|
+
return (jsxs("div", { className: `ids-card
|
|
6
|
+
${hideOnM ? "ids-card--hide-on-m" : ""}
|
|
7
|
+
${hideOnS ? "ids-card--hide-on-s" : ""}
|
|
8
|
+
${fill > 0 && !borderTop ? `ids-card--fill-${fill}` : ""}
|
|
9
|
+
${borderTop ? `ids-card--border-top-${borderTop}` : ""}
|
|
10
|
+
${lean ? "ids-card--lean" : ""}
|
|
11
11
|
${interactive ? "ids-card--interactive" : ""}`.trim(), children: [borderTop > 0 && fill === 0 && jsx("div", { className: "ids-card__border-top" }), jsx("div", { className: "ids-card__content", children: children })] }));
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import '@inera/ids-design/components/progressbar/progressbar.css';
|
|
3
3
|
|
|
4
|
-
const IDSProgressbar = ({ hideLabel = false, value = 0, srLabel = "" }) => {
|
|
5
|
-
return (jsxs("div", { className: "ids-progressbar", role: "progressbar", "aria-label": srLabel, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": value, children:
|
|
4
|
+
const IDSProgressbar = ({ label = "", hideLabel = false, value = 0, srLabel = "" }) => {
|
|
5
|
+
return (jsxs("div", { className: "ids-progressbar", children: [hideLabel ? null : (jsxs("div", { className: "ids-progressbar__label", children: [label && label, " ", value, "%"] })), jsx("div", { className: "ids-progressbar__bar", role: "progressbar", "aria-label": srLabel, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": value, children: value > 0 ? (jsx("div", { className: "ids-progressbar__progress", style: { width: `calc(${value}% + 0.125rem)` } })) : null })] }));
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
export { IDSProgressbar };
|
package/license.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# License
|
|
2
|
-
|
|
3
|
-
The package @inera/ids-react is solely for the purpose of being used for and on behalf of Inera AB and its subsidiaries.
|
|
4
|
-
|
|
5
|
-
Individuals or entities that are not affiliated with or employed by Inera AB or its subsidiaries are prohibited from accessing or utilizing this package. Additionally, they may not reproduce, sell, publish any information, content, or materials available through it for any purpose.
|
|
6
|
-
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
The package @inera/ids-react is solely for the purpose of being used for and on behalf of Inera AB and its subsidiaries.
|
|
4
|
+
|
|
5
|
+
Individuals or entities that are not affiliated with or employed by Inera AB or its subsidiaries are prohibited from accessing or utilizing this package. Additionally, they may not reproduce, sell, publish any information, content, or materials available through it for any purpose.
|
|
6
|
+
|
|
7
7
|
By accessing and using this package, you agree to be bound by these terms of use.
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inera/ids-react",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"react": "*"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@inera/ids-core": "6.
|
|
9
|
+
"@inera/ids-core": "6.2.x",
|
|
10
10
|
"@lit-labs/react": "^1.1.0",
|
|
11
11
|
"clsx": "*"
|
|
12
12
|
},
|