@conduction/components 2.0.6 → 2.0.7
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/README.md +3 -0
- package/lib/components/badgeCounter/BadgeCounter.d.ts +8 -0
- package/lib/components/badgeCounter/BadgeCounter.js +4 -0
- package/lib/components/badgeCounter/BadgeCounter.module.css +27 -0
- package/lib/components/codeBlock/CodeBlock.d.ts +6 -0
- package/lib/components/codeBlock/CodeBlock.js +3 -0
- package/lib/components/codeBlock/CodeBlock.module.css +6 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +3 -1
- package/package.json +1 -1
- package/src/components/badgeCounter/BadgeCounter.module.css +27 -0
- package/src/components/badgeCounter/BadgeCounter.tsx +16 -0
- package/src/components/codeBlock/CodeBlock.module.css +6 -0
- package/src/components/codeBlock/CodeBlock.tsx +8 -0
- package/src/index.ts +4 -0
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
- **Version 2**
|
|
6
6
|
|
|
7
|
+
- 2.0.7:
|
|
8
|
+
- Added new BadgeCounter component.
|
|
9
|
+
- Added CodeBlock component.
|
|
7
10
|
- 2.0.6:
|
|
8
11
|
- Added optional icon with default icon to the primary and secondary button in NotificationPopUp
|
|
9
12
|
- Added a handleClick function to the DownloadCard;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as styles from "./BadgeCounter.module.css";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
export const BadgeCounter = ({ number, children, layoutClassName }) => (_jsxs("div", { className: styles.content, children: [children, _jsx("span", { className: clsx([layoutClassName && layoutClassName], styles.badge), children: number })] }));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--conduction-badge-counter-color: hsl(0 0% 0%);
|
|
3
|
+
--conduction-badge-counter-background-color: var(--skeleton-color-grey-1);
|
|
4
|
+
--conduction-badge-counter-height: var(--skeleton-size-md);
|
|
5
|
+
--conduction-badge-counter-width: var(--skeleton-size-md);
|
|
6
|
+
--conduction-badge-counter-font-size: var(--skeleton-font-size-xs);
|
|
7
|
+
--conduction-badge-counter-max-number-font-size: var(--skeleton-font-size-2xs);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.content {
|
|
11
|
+
display: flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.badge {
|
|
15
|
+
height: var(--conduction-badge-counter-height);
|
|
16
|
+
width: var(--conduction-badge-counter-width);
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
font-size: var(--conduction-badge-counter-font-size);
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-around;
|
|
22
|
+
background-color: var(--conduction-badge-counter-background-color);
|
|
23
|
+
color: var(--conduction-badge-counter-color);
|
|
24
|
+
}
|
|
25
|
+
.maxNumber {
|
|
26
|
+
font-size: var(--conduction-badge-counter-max-number-font-size);
|
|
27
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -21,4 +21,6 @@ declare const NotificationPopUp: {
|
|
|
21
21
|
};
|
|
22
22
|
import { QuoteWrapper } from "./components/quoteWrapper/QuoteWrapper";
|
|
23
23
|
import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination";
|
|
24
|
-
|
|
24
|
+
import { BadgeCounter } from "./components/badgeCounter/BadgeCounter";
|
|
25
|
+
import { CodeBlock } from "./components/codeBlock/CodeBlock";
|
|
26
|
+
export { InputRadio, DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard, Container, Breadcrumbs, EditableTableRow, InputText, InputPassword, InputEmail, InputDate, InputNumber, InputFile, Textarea, InputCheckbox, SelectMultiple, SelectSingle, ImageDivider, AuthenticatedLogo, UnauthenticatedLogo, MetaIcon, PrivateRoute, StatusSteps, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, BadgeCounter, CodeBlock, };
|
package/lib/index.js
CHANGED
|
@@ -14,4 +14,6 @@ import { NotificationPopUpController, NotificationPopUp as _NotificationPopUp, }
|
|
|
14
14
|
const NotificationPopUp = { controller: NotificationPopUpController, NotificationPopUp: _NotificationPopUp };
|
|
15
15
|
import { QuoteWrapper } from "./components/quoteWrapper/QuoteWrapper";
|
|
16
16
|
import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination";
|
|
17
|
-
|
|
17
|
+
import { BadgeCounter } from "./components/badgeCounter/BadgeCounter";
|
|
18
|
+
import { CodeBlock } from "./components/codeBlock/CodeBlock";
|
|
19
|
+
export { InputRadio, DownloadCard, HorizontalImageCard, ImageAndDetailsCard, RichContentCard, DetailsCard, InfoCard, Container, Breadcrumbs, EditableTableRow, InputText, InputPassword, InputEmail, InputDate, InputNumber, InputFile, Textarea, InputCheckbox, SelectMultiple, SelectSingle, ImageDivider, AuthenticatedLogo, UnauthenticatedLogo, MetaIcon, PrivateRoute, StatusSteps, PrimaryTopNav, SecondaryTopNav, Tag, NotificationPopUp, QuoteWrapper, Pagination, BadgeCounter, CodeBlock, };
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--conduction-badge-counter-color: hsl(0 0% 0%);
|
|
3
|
+
--conduction-badge-counter-background-color: var(--skeleton-color-grey-1);
|
|
4
|
+
--conduction-badge-counter-height: var(--skeleton-size-md);
|
|
5
|
+
--conduction-badge-counter-width: var(--skeleton-size-md);
|
|
6
|
+
--conduction-badge-counter-font-size: var(--skeleton-font-size-xs);
|
|
7
|
+
--conduction-badge-counter-max-number-font-size: var(--skeleton-font-size-2xs);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.content {
|
|
11
|
+
display: flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.badge {
|
|
15
|
+
height: var(--conduction-badge-counter-height);
|
|
16
|
+
width: var(--conduction-badge-counter-width);
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
font-size: var(--conduction-badge-counter-font-size);
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-around;
|
|
22
|
+
background-color: var(--conduction-badge-counter-background-color);
|
|
23
|
+
color: var(--conduction-badge-counter-color);
|
|
24
|
+
}
|
|
25
|
+
.maxNumber {
|
|
26
|
+
font-size: var(--conduction-badge-counter-max-number-font-size);
|
|
27
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as styles from "./BadgeCounter.module.css";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
|
|
5
|
+
interface BadgeCounterProps {
|
|
6
|
+
number: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
layoutClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const BadgeCounter: React.FC<BadgeCounterProps> = ({ number, children, layoutClassName }) => (
|
|
12
|
+
<div className={styles.content}>
|
|
13
|
+
{children}
|
|
14
|
+
<span className={clsx([layoutClassName && layoutClassName], styles.badge)}>{number}</span>
|
|
15
|
+
</div>
|
|
16
|
+
);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as styles from "./CodeBlock.module.css";
|
|
3
|
+
|
|
4
|
+
interface CodeBlockProps {
|
|
5
|
+
codeBlock: string | JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const CodeBlock: React.FC<CodeBlockProps> = ({ codeBlock }) => <div className={styles.code}>{codeBlock}</div>;
|
package/src/index.ts
CHANGED
|
@@ -36,6 +36,8 @@ import {
|
|
|
36
36
|
const NotificationPopUp = { controller: NotificationPopUpController, NotificationPopUp: _NotificationPopUp };
|
|
37
37
|
import { QuoteWrapper } from "./components/quoteWrapper/QuoteWrapper";
|
|
38
38
|
import { Pagination } from "./components/denhaag-wrappers/pagination/Pagination";
|
|
39
|
+
import { BadgeCounter } from "./components/badgeCounter/BadgeCounter";
|
|
40
|
+
import { CodeBlock } from "./components/codeBlock/CodeBlock";
|
|
39
41
|
|
|
40
42
|
export {
|
|
41
43
|
InputRadio,
|
|
@@ -70,4 +72,6 @@ export {
|
|
|
70
72
|
NotificationPopUp,
|
|
71
73
|
QuoteWrapper,
|
|
72
74
|
Pagination,
|
|
75
|
+
BadgeCounter,
|
|
76
|
+
CodeBlock,
|
|
73
77
|
};
|