@developer-overheid-nl/don-register-components 1.1.0 → 1.3.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.
Files changed (89) hide show
  1. package/CHANGELOG.md +118 -43
  2. package/LICENSE.md +291 -291
  3. package/README.md +20 -20
  4. package/package.json +3 -3
  5. package/src/alert/Alert.tsx +19 -19
  6. package/src/alert/styles.module.css +3 -3
  7. package/src/alignBox/AlignBox.tsx +114 -111
  8. package/src/alignBox/styles.module.css +110 -106
  9. package/src/amountLabel/AmountLabel.tsx +16 -0
  10. package/src/amountLabel/styles.module.css +11 -0
  11. package/src/analytics/PiwikPro.tsx +94 -72
  12. package/src/analytics/index.ts +1 -1
  13. package/src/article/Article.tsx +10 -10
  14. package/src/badgeList/BadgeList.tsx +34 -0
  15. package/src/badgeList/styles.module.css +37 -0
  16. package/src/block/Block.tsx +35 -35
  17. package/src/block/styles.module.css +29 -29
  18. package/src/button/Button.tsx +3 -3
  19. package/src/cardAsLink/CardAsLink.tsx +21 -21
  20. package/src/cardAsLink/styles.module.css +23 -23
  21. package/src/cardsList/CardsList.tsx +54 -54
  22. package/src/cardsList/styles.module.css +19 -19
  23. package/src/client.ts +7 -2
  24. package/src/container/Container.tsx +10 -10
  25. package/src/container/styles.module.css +28 -28
  26. package/src/copyButton/CopyButton.tsx +39 -39
  27. package/src/copyButton/styles.module.css +13 -13
  28. package/src/dataBadgeLink/DataBadgeLink.tsx +53 -50
  29. package/src/dataBadgeLink/styles.module.css +89 -43
  30. package/src/dataSummary/DataSummary.tsx +22 -22
  31. package/src/dataSummary/DataSummaryItem.tsx +21 -21
  32. package/src/dataSummary/styles.module.css +75 -70
  33. package/src/facetFilters/FacetFilters.tsx +367 -0
  34. package/src/facetFilters/styles.module.css +3 -0
  35. package/src/fieldset/FieldSet.tsx +3 -3
  36. package/src/filters/Filters.tsx +116 -115
  37. package/src/filters/styles.module.css +26 -26
  38. package/src/footer/Footer.tsx +76 -76
  39. package/src/footer/styles.module.css +103 -103
  40. package/src/formFieldCheckboxGroup/FormFieldCheckboxGroup.tsx +16 -0
  41. package/src/formFieldCheckboxGroup/styles.module.css +5 -0
  42. package/src/formFieldCheckboxOption/FormFieldCheckboxOption.tsx +26 -0
  43. package/src/formFieldCheckboxOption/styles.module.css +22 -0
  44. package/src/formFieldLabel/FormFieldLabel.tsx +23 -23
  45. package/src/formFieldRadioGroup/FormFieldRadioGroup.tsx +13 -0
  46. package/src/formFieldRadioGroup/styles.module.css +5 -0
  47. package/src/formFieldRadioOption/FormFieldRadioOption.tsx +75 -0
  48. package/src/formFieldRadioOption/styles.module.css +49 -0
  49. package/src/formFieldSwitch/FormFieldSwitch.tsx +79 -0
  50. package/src/formFieldSwitch/styles.module.css +32 -0
  51. package/src/formFieldTextInput/FormFieldTextInput.tsx +3 -3
  52. package/src/header/Header.tsx +137 -137
  53. package/src/header/styles.module.css +71 -71
  54. package/src/heading/Heading.tsx +15 -10
  55. package/src/headingGroup/HeadingGroup.tsx +48 -48
  56. package/src/headingGroup/styles.module.css +3 -3
  57. package/src/i18n.ts +25 -25
  58. package/src/iconBadge/IconBadge.tsx +35 -32
  59. package/src/iconBadge/getAppearance.ts +53 -47
  60. package/src/iconBadge/styles.module.css +19 -19
  61. package/src/iconsSprite/Icon.tsx +17 -17
  62. package/src/iconsSprite/IconsSprite.tsx +5 -5
  63. package/src/index.ts +107 -80
  64. package/src/infoButton/InfoButton.tsx +45 -0
  65. package/src/infoButton/styles.module.css +43 -0
  66. package/src/link/Link.tsx +10 -10
  67. package/src/markdown/Markdown.tsx +42 -42
  68. package/src/overlay/Overlay.tsx +18 -0
  69. package/src/overlay/styles.module.css +15 -0
  70. package/src/pagination/Pagination.tsx +267 -144
  71. package/src/pagination/styles.module.css +28 -13
  72. package/src/paragraph/Paragraph.tsx +24 -10
  73. package/src/paragraph/styles.module.css +6 -0
  74. package/src/pillBadge/PillBadge.examples.tsx +107 -107
  75. package/src/pillBadge/PillBadge.tsx +51 -51
  76. package/src/pillBadge/styles.module.css +214 -194
  77. package/src/readOnlyTextInput/ReadOnlyTextInput.tsx +24 -24
  78. package/src/readOnlyTextInput/styles.module.css +19 -19
  79. package/src/scoreBadge/ScoreBadge.tsx +133 -132
  80. package/src/search/Search.tsx +82 -66
  81. package/src/search/styles.module.css +39 -39
  82. package/src/siteLogo/SiteLogo.tsx +24 -24
  83. package/src/switch/Switch.tsx +86 -0
  84. package/src/switch/styles.module.css +7 -0
  85. package/src/toolTip/ToolTip.tsx +55 -0
  86. package/src/toolTip/styles.module.css +49 -0
  87. package/src/topNavigation/TopNavigation.tsx +67 -67
  88. package/src/topNavigation/styles.module.css +54 -54
  89. package/tsconfig.json +121 -121
@@ -1,28 +1,28 @@
1
- .container {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- inline-size: var(--rhc-nav-bar-container-inline-size);
6
-
7
- > * {
8
- flex: 1;
9
- max-inline-size: var(--rhc-nav-bar-max-inline-size);
10
- padding-inline-start: var(--rhc-nav-bar-link-padding-inline-start);
11
- padding-inline-end: var(--rhc-nav-bar-link-padding-inline-end);
12
- }
13
- }
14
-
15
- @media (--xs-and-below-viewport) {
16
- .container {
17
- > * {
18
- padding-inline-start: calc(
19
- var(--rhc-nav-bar-link-padding-inline-start) *
20
- 0.5
21
- );
22
- padding-inline-end: calc(
23
- var(--rhc-nav-bar-link-padding-inline-end) *
24
- 0.5
25
- );
26
- }
27
- }
28
- }
1
+ .container {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ inline-size: var(--rhc-nav-bar-container-inline-size);
6
+
7
+ > * {
8
+ flex: 1;
9
+ max-inline-size: var(--rhc-nav-bar-max-inline-size);
10
+ padding-inline-start: var(--rhc-nav-bar-link-padding-inline-start);
11
+ padding-inline-end: var(--rhc-nav-bar-link-padding-inline-end);
12
+ }
13
+ }
14
+
15
+ @media (--xs-and-below-viewport) {
16
+ .container {
17
+ > * {
18
+ padding-inline-start: calc(
19
+ var(--rhc-nav-bar-link-padding-inline-start) *
20
+ 0.5
21
+ );
22
+ padding-inline-end: calc(
23
+ var(--rhc-nav-bar-link-padding-inline-end) *
24
+ 0.5
25
+ );
26
+ }
27
+ }
28
+ }
@@ -1,39 +1,39 @@
1
- "use client";
2
-
3
- import { SecondaryActionButton } from "@rijkshuisstijl-community/components-react";
4
- import clsx from "clsx";
5
- import Icon from "../iconsSprite/Icon";
6
- import styles from "./styles.module.css";
7
-
8
- interface CopyButtonProps
9
- extends React.ButtonHTMLAttributes<HTMLButtonElement> {
10
- text?: string;
11
- }
12
-
13
- const CopyButton = ({ text, className, ...restProps }: CopyButtonProps) => {
14
- const handleCopy = async () => {
15
- if ("clipboard" in navigator) {
16
- await navigator.clipboard.writeText(
17
- text || "Sorry, no text to copy was set...",
18
- );
19
- } else {
20
- console.warn("Clipboard API not supported");
21
- }
22
- };
23
-
24
- return (
25
- text && (
26
- <SecondaryActionButton
27
- className={clsx([className, styles.button])}
28
- onClick={handleCopy}
29
- title="Kopieer naar klembord"
30
- aria-label="Kopieer naar klembord"
31
- {...restProps}
32
- >
33
- <Icon className={styles.icon} name="kopieer-inline" />
34
- </SecondaryActionButton>
35
- )
36
- );
37
- };
38
-
39
- export default CopyButton;
1
+ "use client";
2
+
3
+ import { SecondaryActionButton } from "@rijkshuisstijl-community/components-react";
4
+ import clsx from "clsx";
5
+ import Icon from "../iconsSprite/Icon";
6
+ import styles from "./styles.module.css";
7
+
8
+ interface CopyButtonProps
9
+ extends React.ButtonHTMLAttributes<HTMLButtonElement> {
10
+ text?: string;
11
+ }
12
+
13
+ const CopyButton = ({ text, className, ...restProps }: CopyButtonProps) => {
14
+ const handleCopy = async () => {
15
+ if ("clipboard" in navigator) {
16
+ await navigator.clipboard.writeText(
17
+ text || "Sorry, no text to copy was set...",
18
+ );
19
+ } else {
20
+ console.warn("Clipboard API not supported");
21
+ }
22
+ };
23
+
24
+ return (
25
+ text && (
26
+ <SecondaryActionButton
27
+ className={clsx([className, styles.button])}
28
+ onClick={handleCopy}
29
+ title="Kopieer naar klembord"
30
+ aria-label="Kopieer naar klembord"
31
+ {...restProps}
32
+ >
33
+ <Icon className={styles.icon} name="kopieer-inline" />
34
+ </SecondaryActionButton>
35
+ )
36
+ );
37
+ };
38
+
39
+ export default CopyButton;
@@ -1,13 +1,13 @@
1
- .button {
2
- --utrecht-button-padding-block-end: 0.125rem;
3
- --utrecht-button-padding-block-start: 0.125rem;
4
- --utrecht-button-padding-inline-end: 0.125rem;
5
- --utrecht-button-padding-inline-start: 0.125rem;
6
- --utrecht-button-min-block-size: 36px;
7
- --utrecht-button-min-inline-size: 36px;
8
- }
9
-
10
- .icon {
11
- width: 1.5rem;
12
- height: 1.5rem;
13
- }
1
+ .button {
2
+ --utrecht-button-padding-block-end: 0.125rem;
3
+ --utrecht-button-padding-block-start: 0.125rem;
4
+ --utrecht-button-padding-inline-end: 0.125rem;
5
+ --utrecht-button-padding-inline-start: 0.125rem;
6
+ --utrecht-button-min-block-size: 36px;
7
+ --utrecht-button-min-inline-size: 36px;
8
+ }
9
+
10
+ .icon {
11
+ width: 1.5rem;
12
+ height: 1.5rem;
13
+ }
@@ -1,50 +1,53 @@
1
- import {
2
- DataBadgeButton,
3
- type DataBadgeButtonProps,
4
- } from "@rijkshuisstijl-community/components-react";
5
- import clsx from "clsx";
6
- import styles from "./styles.module.css";
7
-
8
- export interface DataBadgeLinkProps
9
- extends Omit<DataBadgeButtonProps, "aria-pressed" | "pressed"> {
10
- href: string;
11
- children: React.ReactNode;
12
- target?: React.HTMLAttributeAnchorTarget;
13
- rel?: string;
14
- className?: string;
15
- role?: string;
16
- appearance?: "primary" | "outlined" | "subtle";
17
- }
18
-
19
- const DataBadgeLink = (props: DataBadgeLinkProps) => {
20
- const {
21
- href,
22
- target,
23
- rel,
24
- children,
25
- className,
26
- role,
27
- appearance = "primary",
28
- ...restProps
29
- } = props;
30
- return (
31
- <DataBadgeButton
32
- className={clsx(className, styles.donDataBadge, styles[appearance])}
33
- /* biome-ignore lint/a11y/useValidAriaValues: {null} is needed to remove it */
34
- aria-pressed={undefined}
35
- role={role}
36
- {...restProps}
37
- >
38
- <a
39
- className={clsx(styles.badgeLink)}
40
- href={href}
41
- target={target}
42
- rel={rel}
43
- >
44
- {children}
45
- </a>
46
- </DataBadgeButton>
47
- );
48
- };
49
-
50
- export default DataBadgeLink;
1
+ import {
2
+ DataBadgeButton,
3
+ type DataBadgeButtonProps,
4
+ } from "@rijkshuisstijl-community/components-react";
5
+ import clsx from "clsx";
6
+ import styles from "./styles.module.css";
7
+
8
+ export interface DataBadgeLinkProps
9
+ extends Omit<DataBadgeButtonProps, "aria-pressed" | "pressed"> {
10
+ href: string;
11
+ children: React.ReactNode;
12
+ target?: React.HTMLAttributeAnchorTarget;
13
+ rel?: string;
14
+ className?: string;
15
+ role?: string;
16
+ appearance?: "primary" | "outlined" | "subtle" | "link";
17
+ }
18
+
19
+ const DataBadgeLink = (props: DataBadgeLinkProps) => {
20
+ const {
21
+ href,
22
+ target,
23
+ rel,
24
+ children,
25
+ className,
26
+ role,
27
+ tabIndex = undefined,
28
+ appearance = "primary",
29
+ ...restProps
30
+ } = props;
31
+ return (
32
+ <DataBadgeButton
33
+ className={clsx(className, styles.donDataBadge, styles[appearance])}
34
+ /* biome-ignore lint/a11y/useValidAriaValues: {null} is needed to remove it */
35
+ aria-pressed={undefined}
36
+ role={role}
37
+ /* RHC DataBadgeButton had a tabindex=0 on the span, and a focus ring, but no interaction */
38
+ tabIndex={tabIndex}
39
+ {...restProps}
40
+ >
41
+ <a
42
+ className={clsx(styles.badgeLink)}
43
+ href={href}
44
+ target={target}
45
+ rel={rel}
46
+ >
47
+ {children}
48
+ </a>
49
+ </DataBadgeButton>
50
+ );
51
+ };
52
+
53
+ export default DataBadgeLink;
@@ -1,43 +1,89 @@
1
- .donDataBadge.donDataBadge {
2
- &.primary {
3
- --_utrecht-data-badge-color: oklch(
4
- from var(--utrecht-data-badge-color) calc(l - 0.1) c h
5
- );
6
- color: var(--_utrecht-data-badge-color);
7
-
8
- &:hover {
9
- color: var(--utrecht-data-badge-color);
10
- }
11
- }
12
-
13
- &.outlined {
14
- --_utrecht-data-badge-background-color: var(--rhc-color-canvas);
15
- background-color: var(--_utrecht-data-badge-background-color);
16
- border: 2px solid var(--utrecht-data-badge-color);
17
-
18
- &:hover {
19
- background-color: var(--utrecht-data-badge-background-color);
20
- border-color: var(--utrecht-data-badge-background-color);
21
- }
22
- }
23
-
24
- &.subtle {
25
- --_utrecht-data-badge-color: var(--nl-link-color);
26
- --_utrecht-data-badge-background-color: var(--rhc-color-cool-grey-200);
27
- --utrecht-data-badge-font-weight: normal;
28
- color: var(--_utrecht-data-badge-color);
29
- background-color: var(--_utrecht-data-badge-background-color);
30
-
31
- &:hover {
32
- color: var(--rhc-color-cool-grey-50);
33
- background-color: var(--rhc-color-cool-grey-500);
34
- }
35
- }
36
- }
37
-
38
- .badgeLink {
39
- display: inline-block;
40
- padding-block: 0.25rem;
41
- color: inherit;
42
- text-decoration: inherit;
43
- }
1
+ .donDataBadge.donDataBadge {
2
+ &.primary {
3
+ --_utrecht-data-badge-color: oklch(
4
+ from var(--utrecht-data-badge-color) calc(l - 0.1) c h
5
+ );
6
+ color: var(--_utrecht-data-badge-color);
7
+
8
+ &:hover {
9
+ color: var(--utrecht-data-badge-color);
10
+ }
11
+ }
12
+
13
+ &.outlined {
14
+ --_utrecht-data-badge-background-color: var(--rhc-color-canvas);
15
+ background-color: var(--_utrecht-data-badge-background-color);
16
+ border: 2px solid var(--utrecht-data-badge-color);
17
+
18
+ &:hover {
19
+ background-color: var(--utrecht-data-badge-background-color);
20
+ border-color: var(--utrecht-data-badge-background-color);
21
+ }
22
+ }
23
+
24
+ &.subtle {
25
+ --_utrecht-data-badge-color: var(--nl-link-color);
26
+ --_utrecht-data-badge-background-color: var(--rhc-color-cool-grey-200);
27
+ --utrecht-data-badge-font-weight: normal;
28
+ color: var(--_utrecht-data-badge-color);
29
+ background-color: var(--_utrecht-data-badge-background-color);
30
+
31
+ &:hover {
32
+ color: var(--rhc-color-cool-grey-50);
33
+ background-color: var(--rhc-color-cool-grey-500);
34
+ }
35
+ }
36
+
37
+ &.link {
38
+ --_utrecht-data-badge-color: var(--nl-link-color);
39
+ --_utrecht-data-badge-background-color: var(--rhc-color-wit);
40
+ --utrecht-data-badge-font-weight: normal;
41
+ color: var(--_utrecht-data-badge-color);
42
+ background-color: var(--_utrecht-data-badge-background-color);
43
+
44
+ &:hover {
45
+ background-color: var(--rhc-color-cool-grey-100);
46
+
47
+ .badgeLink {
48
+ text-decoration: none;
49
+ }
50
+ }
51
+
52
+ .badgeLink {
53
+ text-decoration: underline;
54
+ }
55
+ }
56
+
57
+ &:focus-within {
58
+ outline-width: var(--utrecht-focus-outline-width, revert);
59
+ outline-style: var(--utrecht-focus-outline-style, revert);
60
+ outline-color: var(--utrecht-focus-outline-color, revert);
61
+ outline-offset: var(--utrecht-focus-outline-offset, revert);
62
+ }
63
+ }
64
+
65
+ .badgeLink {
66
+ display: inline-block;
67
+ padding-block: 0.25rem;
68
+ color: inherit;
69
+ text-decoration: inherit;
70
+
71
+ &:focus-visible {
72
+ outline: none;
73
+ }
74
+
75
+ /* fix for non-clickable icons bug */
76
+ &::before {
77
+ position: absolute;
78
+ top: 0;
79
+ left: 0;
80
+ display: block;
81
+ width: 100%;
82
+ height: 100%;
83
+ content: '';
84
+ border-radius: var(
85
+ --utrecht-data-badge-border-radius,
86
+ var(--utrecht-badge-border-radius, 0.5ch)
87
+ );
88
+ }
89
+ }
@@ -1,22 +1,22 @@
1
- import {
2
- DataSummary as RHCDataSummary,
3
- type DataSummaryProps as RHCDataSummaryProps,
4
- } from "@rijkshuisstijl-community/components-react";
5
- import clsx from "clsx";
6
- import styles from "./styles.module.css";
7
-
8
- export interface DataSummaryProps extends RHCDataSummaryProps {
9
- contained?: boolean;
10
- }
11
-
12
- const DataSummary = (props: DataSummaryProps) => {
13
- const { className, contained = false, ...restProps } = props;
14
- return (
15
- <RHCDataSummary
16
- className={clsx(className, { [styles.isContained]: contained })}
17
- {...restProps}
18
- />
19
- );
20
- };
21
-
22
- export default DataSummary;
1
+ import {
2
+ DataSummary as RHCDataSummary,
3
+ type DataSummaryProps as RHCDataSummaryProps,
4
+ } from "@rijkshuisstijl-community/components-react";
5
+ import clsx from "clsx";
6
+ import styles from "./styles.module.css";
7
+
8
+ export interface DataSummaryProps extends RHCDataSummaryProps {
9
+ contained?: boolean;
10
+ }
11
+
12
+ const DataSummary = (props: DataSummaryProps) => {
13
+ const { className, contained = false, ...restProps } = props;
14
+ return (
15
+ <RHCDataSummary
16
+ className={clsx(className, { [styles.isContained]: contained })}
17
+ {...restProps}
18
+ />
19
+ );
20
+ };
21
+
22
+ export default DataSummary;
@@ -1,21 +1,21 @@
1
- import {
2
- DataSummaryItem as RHCDataSummaryItem,
3
- type DataSummaryItemProps as RHCDataSummaryItemProps,
4
- } from "@rijkshuisstijl-community/components-react";
5
-
6
- export interface DataSummaryItemProps
7
- extends Partial<RHCDataSummaryItemProps> {}
8
-
9
- const DataSummaryItem = (props: DataSummaryItemProps) => {
10
- const { className, itemKey = "", itemValue = "-", ...restProps } = props;
11
- return (
12
- <RHCDataSummaryItem
13
- itemKey={itemKey}
14
- itemValue={itemValue}
15
- className={className}
16
- {...restProps}
17
- />
18
- );
19
- };
20
-
21
- export default DataSummaryItem;
1
+ import {
2
+ DataSummaryItem as RHCDataSummaryItem,
3
+ type DataSummaryItemProps as RHCDataSummaryItemProps,
4
+ } from "@rijkshuisstijl-community/components-react";
5
+
6
+ export interface DataSummaryItemProps
7
+ extends Partial<RHCDataSummaryItemProps> {}
8
+
9
+ const DataSummaryItem = (props: DataSummaryItemProps) => {
10
+ const { className, itemKey = "", itemValue = "-", ...restProps } = props;
11
+ return (
12
+ <RHCDataSummaryItem
13
+ itemKey={itemKey}
14
+ itemValue={itemValue}
15
+ className={className}
16
+ {...restProps}
17
+ />
18
+ );
19
+ };
20
+
21
+ export default DataSummaryItem;
@@ -1,70 +1,75 @@
1
- :global(.rhc-data-summary) {
2
- --rhc-data-summary-item-key-padding-inline-start: 0;
3
- --rhc-data-summary-item-key-padding-inline-end: 0;
4
- --rhc-data-summary-item-key-padding-block-start: 0;
5
- --rhc-data-summary-item-key-padding-block-end: 0;
6
- --rhc-data-summary-item-value-padding-inline-start: 0;
7
- --rhc-data-summary-item-value-padding-inline-end: 0;
8
- --rhc-data-summary-item-value-padding-block-start: 0;
9
- --rhc-data-summary-item-value-padding-block-end: 0;
10
- --rhc-data-summary-item-action-padding-inline-start: 0;
11
- --rhc-data-summary-item-action-padding-inline-end: 0;
12
- --rhc-data-summary-item-action-padding-block-start: 0;
13
- --rhc-data-summary-item-action-padding-block-end: 0;
14
- --rhc-data-summary-item-key-row-padding-inline-start: 0;
15
- --rhc-data-summary-item-key-row-padding-inline-end: 0;
16
- --rhc-data-summary-item-key-row-padding-block-start: 0;
17
- --rhc-data-summary-item-key-row-padding-block-end: 0.75rem;
18
- --rhc-data-summary-item-value-row-padding-inline-start: 0;
19
- --rhc-data-summary-item-value-row-padding-inline-end: 0;
20
- --rhc-data-summary-item-value-row-padding-block-start: 0;
21
- --rhc-data-summary-item-value-row-padding-block-end: 0.75rem;
22
- --rhc-data-summary-item-action-row-padding-inline-start: 0;
23
- --rhc-data-summary-item-action-row-padding-inline-end: 0;
24
- --rhc-data-summary-item-action-row-padding-block-start: 0;
25
- --rhc-data-summary-item-action-row-padding-block-end: 0.75rem;
26
- display: flex;
27
- flex-direction: column;
28
- row-gap: 0.75rem;
29
- margin-block-start: 0;
30
- margin-block-end: 1rem;
31
- }
32
-
33
- :global(.rhc-data-summary__item) {
34
- row-gap: 0.75rem;
35
- column-gap: 1rem;
36
- }
37
-
38
- :global(.rhc-data-summary--column) {
39
- :global(.rhc-data-summary__item) {
40
- padding-block-end: var(--rhc-data-summary-item-key-row-padding-block-end);
41
- }
42
- }
43
-
44
- :global(.rhc-data-summary--row) {
45
- :global(.rhc-data-summary__item) {
46
- justify-content: space-between;
47
- }
48
-
49
- :global(.rhc-data-summary__item-value:last-child) {
50
- text-align: end;
51
- }
52
- }
53
-
54
- :global(.rhc-data-summary__item-key):empty,
55
- :global(.rhc-data-summary__item-value):empty {
56
- display: none;
57
- }
58
-
59
- :global(.rhc-data-summary__item-value) {
60
- hyphens: auto;
61
- word-break: break-word;
62
- }
63
-
64
- .isContained {
65
- margin-block-end: 0;
66
- :global(.rhc-data-summary__item:last-child) {
67
- --rhc-data-summary-item-border-block-end-style: none;
68
- --rhc-data-summary-item-key-row-padding-block-end: 0;
69
- }
70
- }
1
+ :global(.rhc-data-summary) {
2
+ --rhc-data-summary-item-key-padding-inline-start: 0;
3
+ --rhc-data-summary-item-key-padding-inline-end: 0;
4
+ --rhc-data-summary-item-key-padding-block-start: 0;
5
+ --rhc-data-summary-item-key-padding-block-end: 0;
6
+ --rhc-data-summary-item-value-padding-inline-start: 0;
7
+ --rhc-data-summary-item-value-padding-inline-end: 0;
8
+ --rhc-data-summary-item-value-padding-block-start: 0;
9
+ --rhc-data-summary-item-value-padding-block-end: 0;
10
+ --rhc-data-summary-item-action-padding-inline-start: 0;
11
+ --rhc-data-summary-item-action-padding-inline-end: 0;
12
+ --rhc-data-summary-item-action-padding-block-start: 0;
13
+ --rhc-data-summary-item-action-padding-block-end: 0;
14
+ --rhc-data-summary-item-key-row-padding-inline-start: 0;
15
+ --rhc-data-summary-item-key-row-padding-inline-end: 0;
16
+ --rhc-data-summary-item-key-row-padding-block-start: 0;
17
+ --rhc-data-summary-item-key-row-padding-block-end: 0.5rem;
18
+ --rhc-data-summary-item-value-row-padding-inline-start: 0;
19
+ --rhc-data-summary-item-value-row-padding-inline-end: 0;
20
+ --rhc-data-summary-item-value-row-padding-block-start: 0;
21
+ --rhc-data-summary-item-value-row-padding-block-end: 0.5rem;
22
+ --rhc-data-summary-item-action-row-padding-inline-start: 0;
23
+ --rhc-data-summary-item-action-row-padding-inline-end: 0;
24
+ --rhc-data-summary-item-action-row-padding-block-start: 0;
25
+ --rhc-data-summary-item-action-row-padding-block-end: 0.5rem;
26
+ display: flex;
27
+ flex-direction: column;
28
+ row-gap: 0.75rem;
29
+ margin-block-start: 0;
30
+ margin-block-end: 1rem;
31
+ }
32
+
33
+ :global(.rhc-data-summary__item) {
34
+ row-gap: 0.25rem;
35
+ column-gap: 1rem;
36
+ }
37
+
38
+ :global(.rhc-data-summary--column) {
39
+ :global(.rhc-data-summary__item) {
40
+ padding-block-end: var(--rhc-data-summary-item-key-row-padding-block-end);
41
+ }
42
+ }
43
+
44
+ :global(.rhc-data-summary--row) {
45
+ :global(.rhc-data-summary__item) {
46
+ justify-content: space-between;
47
+ }
48
+
49
+ :global(.rhc-data-summary__item-value:last-child) {
50
+ text-align: end;
51
+ }
52
+ }
53
+
54
+ :global(.rhc-data-summary__item-key):empty,
55
+ :global(.rhc-data-summary__item-value):empty {
56
+ display: none;
57
+ }
58
+
59
+ :global(.rhc-data-summary__item-value) {
60
+ hyphens: auto;
61
+ word-break: break-word;
62
+ }
63
+
64
+ .isContained {
65
+ &:last-child {
66
+ margin-block-end: 0;
67
+ }
68
+
69
+ :global(.rhc-data-summary__item:last-child) {
70
+ --rhc-data-summary-item-border-block-end-style: none;
71
+ --rhc-data-summary-item-key-row-padding-block-end: 0;
72
+ --rhc-data-summary-item-value-row-padding-block-end: 0;
73
+ --rhc-data-summary-item-action-row-padding-block-end: 0;
74
+ }
75
+ }