@raspberrypifoundation/design-system-react 2.6.2 → 2.7.0-beta.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 (136) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/design-system-react.css +1 -1
  3. package/dist/design-system-react.js +896 -946
  4. package/dist/design-system-react.umd.cjs +6 -6
  5. package/dist/scss/components/alert.scss +16 -39
  6. package/dist/scss/components/forms/error-message.scss +0 -1
  7. package/dist/scss/components/forms/fieldset.scss +17 -13
  8. package/dist/scss/components/forms/input-checkbox.scss +12 -18
  9. package/dist/scss/components/forms/input-label.scss +1 -2
  10. package/dist/scss/components/forms/input-radio.scss +12 -17
  11. package/dist/scss/components/forms/input-search.scss +2 -8
  12. package/dist/scss/components/progress-bar.scss +17 -61
  13. package/dist/scss/design-system-core.scss +0 -4
  14. package/package.json +11 -3
  15. package/dist/scss/components/modal.scss +0 -95
  16. package/dist/scss/properties/colors/_utilities.scss +0 -4
  17. package/dist/types/lib/main.d.ts +0 -26
  18. package/dist/types/lib/main.d.ts.map +0 -1
  19. package/dist/types/src/components/Accordion/Accordion.spec.d.ts +0 -2
  20. package/dist/types/src/components/Accordion/Accordion.spec.d.ts.map +0 -1
  21. package/dist/types/src/components/Accordion/index.d.ts +0 -17
  22. package/dist/types/src/components/Accordion/index.d.ts.map +0 -1
  23. package/dist/types/src/components/Alert/Alert.spec.d.ts +0 -2
  24. package/dist/types/src/components/Alert/Alert.spec.d.ts.map +0 -1
  25. package/dist/types/src/components/Alert/Alert.types.d.ts +0 -41
  26. package/dist/types/src/components/Alert/Alert.types.d.ts.map +0 -1
  27. package/dist/types/src/components/Alert/index.d.ts +0 -6
  28. package/dist/types/src/components/Alert/index.d.ts.map +0 -1
  29. package/dist/types/src/components/Button/Button.spec.d.ts +0 -2
  30. package/dist/types/src/components/Button/Button.spec.d.ts.map +0 -1
  31. package/dist/types/src/components/Button/Button.types.d.ts +0 -34
  32. package/dist/types/src/components/Button/Button.types.d.ts.map +0 -1
  33. package/dist/types/src/components/Button/index.d.ts +0 -6
  34. package/dist/types/src/components/Button/index.d.ts.map +0 -1
  35. package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts +0 -24
  36. package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts.map +0 -1
  37. package/dist/types/src/components/Form/CheckboxInput/index.d.ts +0 -6
  38. package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +0 -1
  39. package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts +0 -2
  40. package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts.map +0 -1
  41. package/dist/types/src/components/Form/Fieldset/index.d.ts +0 -21
  42. package/dist/types/src/components/Form/Fieldset/index.d.ts.map +0 -1
  43. package/dist/types/src/components/Form/InputField/index.d.ts +0 -21
  44. package/dist/types/src/components/Form/InputField/index.d.ts.map +0 -1
  45. package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts +0 -2
  46. package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts.map +0 -1
  47. package/dist/types/src/components/Form/InputLabel/index.d.ts +0 -17
  48. package/dist/types/src/components/Form/InputLabel/index.d.ts.map +0 -1
  49. package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts +0 -2
  50. package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts.map +0 -1
  51. package/dist/types/src/components/Form/RadioInput/index.d.ts +0 -25
  52. package/dist/types/src/components/Form/RadioInput/index.d.ts.map +0 -1
  53. package/dist/types/src/components/Form/SearchInput/SearchInput.spec.d.ts +0 -2
  54. package/dist/types/src/components/Form/SearchInput/SearchInput.spec.d.ts.map +0 -1
  55. package/dist/types/src/components/Form/SearchInput/SearchInput.types.d.ts +0 -21
  56. package/dist/types/src/components/Form/SearchInput/SearchInput.types.d.ts.map +0 -1
  57. package/dist/types/src/components/Form/SearchInput/index.d.ts +0 -6
  58. package/dist/types/src/components/Form/SearchInput/index.d.ts.map +0 -1
  59. package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts +0 -2
  60. package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts.map +0 -1
  61. package/dist/types/src/components/Form/SelectInput/index.d.ts +0 -31
  62. package/dist/types/src/components/Form/SelectInput/index.d.ts.map +0 -1
  63. package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts +0 -2
  64. package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts.map +0 -1
  65. package/dist/types/src/components/Form/TextInput/index.d.ts +0 -27
  66. package/dist/types/src/components/Form/TextInput/index.d.ts.map +0 -1
  67. package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts +0 -2
  68. package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts.map +0 -1
  69. package/dist/types/src/components/Form/TextareaInput/index.d.ts +0 -29
  70. package/dist/types/src/components/Form/TextareaInput/index.d.ts.map +0 -1
  71. package/dist/types/src/components/MaterialSymbols/index.d.ts +0 -2
  72. package/dist/types/src/components/MaterialSymbols/index.d.ts.map +0 -1
  73. package/dist/types/src/components/Modal/Modal.types.d.ts +0 -45
  74. package/dist/types/src/components/Modal/Modal.types.d.ts.map +0 -1
  75. package/dist/types/src/components/Modal/index.d.ts +0 -6
  76. package/dist/types/src/components/Modal/index.d.ts.map +0 -1
  77. package/dist/types/src/components/ProgressBar/ProgressBar.types.d.ts +0 -11
  78. package/dist/types/src/components/ProgressBar/ProgressBar.types.d.ts.map +0 -1
  79. package/dist/types/src/components/ProgressBar/index.d.ts +0 -6
  80. package/dist/types/src/components/ProgressBar/index.d.ts.map +0 -1
  81. package/dist/types/src/components/Table/BodyCell/BodyCell.spec.d.ts +0 -2
  82. package/dist/types/src/components/Table/BodyCell/BodyCell.spec.d.ts.map +0 -1
  83. package/dist/types/src/components/Table/BodyCell/index.d.ts +0 -11
  84. package/dist/types/src/components/Table/BodyCell/index.d.ts.map +0 -1
  85. package/dist/types/src/components/Table/HeaderCell/HeaderCell.spec.d.ts +0 -2
  86. package/dist/types/src/components/Table/HeaderCell/HeaderCell.spec.d.ts.map +0 -1
  87. package/dist/types/src/components/Table/HeaderCell/index.d.ts +0 -13
  88. package/dist/types/src/components/Table/HeaderCell/index.d.ts.map +0 -1
  89. package/dist/types/src/components/Table/Table/Table.spec.d.ts +0 -2
  90. package/dist/types/src/components/Table/Table/Table.spec.d.ts.map +0 -1
  91. package/dist/types/src/components/Table/Table/index.d.ts +0 -15
  92. package/dist/types/src/components/Table/Table/index.d.ts.map +0 -1
  93. package/dist/types/src/components/Tag/Tag.spec.d.ts +0 -2
  94. package/dist/types/src/components/Tag/Tag.spec.d.ts.map +0 -1
  95. package/dist/types/src/components/Tag/Tag.types.d.ts +0 -13
  96. package/dist/types/src/components/Tag/Tag.types.d.ts.map +0 -1
  97. package/dist/types/src/components/Tag/index.d.ts +0 -5
  98. package/dist/types/src/components/Tag/index.d.ts.map +0 -1
  99. package/dist/types/src/hooks/useDialog.d.ts +0 -5
  100. package/dist/types/src/hooks/useDialog.d.ts.map +0 -1
  101. package/dist/types/src/stories/Accordion.stories.d.ts +0 -15
  102. package/dist/types/src/stories/Accordion.stories.d.ts.map +0 -1
  103. package/dist/types/src/stories/Alert.stories.d.ts +0 -41
  104. package/dist/types/src/stories/Alert.stories.d.ts.map +0 -1
  105. package/dist/types/src/stories/Button.stories.d.ts +0 -132
  106. package/dist/types/src/stories/Button.stories.d.ts.map +0 -1
  107. package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts +0 -2
  108. package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts.map +0 -1
  109. package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.stories.d.ts +0 -7
  110. package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.stories.d.ts.map +0 -1
  111. package/dist/types/src/stories/Modal/Modal.stories.d.ts +0 -26
  112. package/dist/types/src/stories/Modal/Modal.stories.d.ts.map +0 -1
  113. package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts +0 -3
  114. package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts.map +0 -1
  115. package/dist/types/src/stories/ProgressBar.stories.d.ts +0 -93
  116. package/dist/types/src/stories/ProgressBar.stories.d.ts.map +0 -1
  117. package/dist/types/src/stories/Tag.stories.d.ts +0 -53
  118. package/dist/types/src/stories/Tag.stories.d.ts.map +0 -1
  119. package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts +0 -30
  120. package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts.map +0 -1
  121. package/dist/types/src/stories/forms/Fieldset.stories.d.ts +0 -57
  122. package/dist/types/src/stories/forms/Fieldset.stories.d.ts.map +0 -1
  123. package/dist/types/src/stories/forms/InputLabel.stories.d.ts +0 -25
  124. package/dist/types/src/stories/forms/InputLabel.stories.d.ts.map +0 -1
  125. package/dist/types/src/stories/forms/RadioInput.stories.d.ts +0 -51
  126. package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +0 -1
  127. package/dist/types/src/stories/forms/SearchInput.stories.d.ts +0 -40
  128. package/dist/types/src/stories/forms/SearchInput.stories.d.ts.map +0 -1
  129. package/dist/types/src/stories/forms/SelectInput.stories.d.ts +0 -52
  130. package/dist/types/src/stories/forms/SelectInput.stories.d.ts.map +0 -1
  131. package/dist/types/src/stories/forms/TextInput.stories.d.ts +0 -37
  132. package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +0 -1
  133. package/dist/types/src/stories/forms/TextareaInput.stories.d.ts +0 -52
  134. package/dist/types/src/stories/forms/TextareaInput.stories.d.ts.map +0 -1
  135. package/dist/types/src/stories/table/Table.stories.d.ts +0 -22
  136. package/dist/types/src/stories/table/Table.stories.d.ts.map +0 -1
@@ -1,87 +1,43 @@
1
1
  @use '../mixins/typography' as typography;
2
2
 
3
- @forward '../properties/spacing';
4
- @forward '../properties/colors/greys';
5
- @forward '../properties/colors/decorative';
6
- @forward '../properties/colors/alert';
3
+ @forward "../properties/spacing";
4
+ @forward "../properties/colors/greys";
5
+ @forward "../properties/colors/decorative";
7
6
 
8
- :root,
9
- :host {
10
- // Deprecated - to be removed in a future release
7
+
8
+ :root, :host {
11
9
  --color-progress-bar-complete: var(--rpf-navy-800);
12
10
  --color-progress-bar-incomplete: var(--rpf-grey-150);
13
-
14
- // Component Tokens
15
- --rpf-progress-bar-background-color: var(--color-progress-bar-incomplete);
16
- --rpf-progress-bar-accent-color: var(--color-progress-bar-complete);
17
- --rpf-progress-bar-block-size: var(--space-1);
18
- --rpf-progress-bar-border-radius: var(--space-1);
19
- --rpf-progress-bar-gap: var(--space-3);
20
- --rpf-progress-bar-font-size: var(--font-size-1);
21
- --rpf-progress-bar-font-weight: var(--font-weight-regular);
22
- --rpf-progress-bar-complete-color: var(--rpf-alert-success);
23
- --rpf-progress-bar-complete-icon: url('data:image/svg+xml,<svg height="24" viewBox="0 -960 960 960" width="24" xmlns="http://www.w3.org/2000/svg"><path d="m424-296 282-282-56-56-226 226-114-114-56 56zm56 216q-83 0-156-31.5t-127-85.5q-54-54-85.5-127t-31.5-156q0-83 31.5-156t85.5-127q54-54 127-85.5t156-31.5q83 0 156 31.5t127 85.5q54 54 85.5 127t31.5 156q0 83-31.5 156t-85.5 127q-54 54-127 85.5t-156 31.5z"/></svg>');
24
11
  }
25
12
 
26
13
  .rpf-progress-bar {
27
14
  &__label {
28
- font-size: var(--rpf-progress-bar-font-size);
29
- line-height: 1.5em; // Relative to the font-size
30
- font-weight: var(--rpf-progress-bar-font-weight);
15
+ @include typography.style-1;
31
16
  align-items: center;
32
17
  display: grid;
33
- gap: var(--rpf-progress-bar-gap);
18
+ grid-gap: var(--space-3);
34
19
  grid-template-columns: max-content 1fr;
35
20
  }
36
21
 
37
- &__bar {
38
- background: var(--rpf-progress-bar-background-color);
39
- block-size: var(--rpf-progress-bar-block-size);
40
- border-radius: var(--rpf-progress-bar-border-radius);
22
+ &__bar{
23
+ background: var(--color-progress-bar-incomplete);
24
+ block-size: .375rem;
25
+ border-radius: .375rem;
41
26
  inline-size: 100%;
42
- border: none;
43
27
 
44
28
  &::-webkit-progress-bar {
45
- background: var(--rpf-progress-bar-background-color);
46
- border-radius: var(--rpf-progress-bar-border-radius);
29
+ background: var(--color-progress-bar-incomplete);
30
+ border-radius: .375rem;
47
31
  }
48
32
 
49
33
  &::-webkit-progress-value {
50
- background: var(--rpf-progress-bar-accent-color);
51
- border-radius: var(--rpf-progress-bar-border-radius);
34
+ background: var(--color-progress-bar-complete);
35
+ border-radius: .375rem;
52
36
  }
53
37
 
54
38
  &::-moz-progress-bar {
55
- background: var(--rpf-progress-bar-accent-color);
56
- border-radius: var(--rpf-progress-bar-border-radius);
57
- }
58
- }
59
-
60
- &--complete {
61
- --rpf-progress-bar-accent-color: var(--rpf-progress-bar-complete-color);
62
-
63
- .rpf-progress-bar__label span {
64
- display: flex;
65
- }
66
-
67
- .rpf-progress-bar__label span::before {
68
- content: '';
69
- display: inline-block;
70
- block-size: 1.5em; // Relative to the font-size
71
- aspect-ratio: 1/1;
72
- margin-inline-end: var(--space-1);
73
- vertical-align: middle;
74
- background-color: var(--rpf-progress-bar-complete-color);
75
- mask-image: var(--rpf-progress-bar-complete-icon);
76
- mask-size: contain;
77
- mask-repeat: no-repeat;
78
- mask-position: center;
79
-
80
- // Could be removed if we auto-prefixed in build
81
- -webkit-mask-image: var(--rpf-progress-bar-complete-icon);
82
- -webkit-mask-size: contain;
83
- -webkit-mask-repeat: no-repeat;
84
- -webkit-mask-position: center;
39
+ background: var(--color-progress-bar-complete);
40
+ border-radius: .375rem;
85
41
  }
86
42
  }
87
43
  }
@@ -10,8 +10,6 @@
10
10
  @use 'properties/colors/_greys';
11
11
  @use 'properties/colors/_inputs' as inputs_colors;
12
12
  @use 'properties/colors/_text';
13
- @use 'properties/colors/_utilities';
14
-
15
13
 
16
14
  @use 'components/alert';
17
15
  @use 'components/accordion';
@@ -22,8 +20,6 @@
22
20
  @use 'components/menu';
23
21
  @use 'components/link';
24
22
  @use 'components/burger-menu';
25
- @use 'components/modal';
26
-
27
23
 
28
24
  @use 'components/forms/error-message';
29
25
  @use 'components/forms/fieldset';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raspberrypifoundation/design-system-react",
3
- "version": "2.6.2",
3
+ "version": "2.7.0-beta.0",
4
4
  "type": "module",
5
5
  "main": "./dist/design-system-react.umd.cjs",
6
6
  "module": "./dist/design-system-react.js",
@@ -83,10 +83,18 @@
83
83
  "vitest": "^3.1.1"
84
84
  },
85
85
  "peerDependencies": {
86
- "react": "^18.3.1",
87
- "react-dom": "^18.3.1",
86
+ "react": ">=18.0.0 <20.0.0",
87
+ "react-dom": ">=18.0.0 <20.0.0",
88
88
  "react-router-dom": "^6.24.0"
89
89
  },
90
+ "peerDependenciesMeta": {
91
+ "react": {
92
+ "optional": false
93
+ },
94
+ "react-dom": {
95
+ "optional": false
96
+ }
97
+ },
90
98
  "packageManager": "yarn@4.5.1",
91
99
  "eslintConfig": {
92
100
  "extends": [
@@ -1,95 +0,0 @@
1
- @use '../mixins/typography' as typography;
2
- @forward '../properties/font-size';
3
- @forward '../properties/colors/utilities';
4
-
5
- :root,
6
- :host {
7
- --rpf-modal-background-color: var(--rpf-white);
8
- --rpf-modal-border-color: var(--rpf-grey-150);
9
- --rpf-modal-max-block-size: calc(100vh - 2 * var(--space-10));
10
- --rpf-modal-mobile-max-block-size: calc(100dvh - 2 * var(--space-2));
11
- --rpf-modal-max-inline-size: calc(100vw - 2 * var(--space-10));
12
- --rpf-modal-mobile-max-inline-size: calc(100vw - 2 * var(--space-2));
13
- --rpf-modal-border-radius: var(--space-1);
14
- --rpf-modal-content-padding: var(--space-3);
15
- --rpf-modal-backdrop-color: var(--rpf-overlay);
16
- --rpf-modal-buttons-flex-direction: row-reverse;
17
- --rpf-modal-buttons-justify-content: flex-start;
18
- }
19
-
20
- .rpf-modal {
21
- background-color: var(--rpf-modal-background-color);
22
- border: none;
23
- border-radius: var(--rpf-modal-border-radius);
24
- margin-inline: auto;
25
- min-inline-size: 15rem;
26
- inline-size: 100%;
27
- padding: 0;
28
-
29
- max-inline-size: var(--rpf-modal-mobile-max-inline-size);
30
- max-block-size: var(--rpf-modal-mobile-max-block-size);
31
-
32
- @media (min-width: 30rem) {
33
- max-inline-size: var(--rpf-modal-max-inline-size);
34
- max-block-size: var(--rpf-modal-max-block-size);
35
- }
36
-
37
- &__wrapper {
38
- display: grid;
39
- grid-template-rows: auto minmax(0, 1fr) auto; /* header | content | buttons */
40
- block-size: 100%;
41
- max-block-size: inherit;
42
- overflow: hidden;
43
- }
44
-
45
- &__header {
46
- display: flex;
47
- align-items: center;
48
- align-self: stretch;
49
- border-block-end: 1px solid var(--rpf-modal-border-color);
50
- gap: var(--space-1);
51
- padding: var(--space-1);
52
- padding-inline-start: var(--space-2);
53
- }
54
-
55
- &__title {
56
- @include typography.style-2(bold);
57
- flex: 1 0 0;
58
- margin: 0;
59
- }
60
-
61
- &__content {
62
- overflow-y: auto;
63
- align-items: center;
64
- border-block-end: 1px solid var(--rpf-modal-border-color);
65
- display: flex;
66
- flex-direction: column;
67
- padding: var(--rpf-modal-content-padding);
68
- }
69
-
70
- &__buttons {
71
- align-items: center;
72
- display: flex;
73
- flex-direction: column;
74
- gap: var(--space-2);
75
- padding: var(--space-2);
76
-
77
- .rpf-button {
78
- justify-content: center;
79
- inline-size: 100%;
80
- }
81
- @media (width > 34rem) {
82
- flex-direction: var(--rpf-modal-buttons-flex-direction);
83
- gap: var(--space-2);
84
- justify-content: var(--rpf-modal-buttons-justify-content);
85
- .rpf-button {
86
- inline-size: auto;
87
- }
88
- }
89
- }
90
-
91
- &::backdrop {
92
- background-color: var(--rpf-modal-backdrop-color);
93
- backdrop-filter: blur(2px);
94
- }
95
- }
@@ -1,4 +0,0 @@
1
- :root,
2
- :host {
3
- --rpf-overlay: hsla(0, 0%, 0%, 0.5);
4
- }
@@ -1,26 +0,0 @@
1
- export { default as Accordion } from "../src/components/Accordion";
2
- export { default as Alert } from "../src/components/Alert";
3
- export type { AlertProps } from "../src/components/Alert/Alert.types";
4
- export { default as Button } from "../src/components/Button";
5
- export type { ButtonProps } from "../src/components/Button/Button.types";
6
- export { default as CheckboxInput } from "../src/components/Form/CheckboxInput";
7
- export type { CheckboxInputProps } from "../src/components/Form/CheckboxInput/CheckboxInput.types";
8
- export { default as Fieldset } from "../src/components/Form/Fieldset";
9
- export { default as InputField } from "../src/components/Form/InputField";
10
- export { default as InputLabel } from "../src/components/Form/InputLabel";
11
- export { default as RadioInput } from "../src/components/Form/RadioInput";
12
- export { default as SearchInput } from "../src/components/Form/SearchInput";
13
- export type { SearchInputProps } from "../src/components/Form/SearchInput/SearchInput.types";
14
- export { default as SelectInput } from "../src/components/Form/SelectInput";
15
- export { default as TextareaInput } from "../src/components/Form/TextareaInput";
16
- export { default as TextInput } from "../src/components/Form/TextInput";
17
- export { default as Modal } from "../src/components/Modal";
18
- export type { ModalProps } from "../src/components/Modal/Modal.types";
19
- export { default as ProgressBar } from "../src/components/ProgressBar";
20
- export type { ProgressBarProps } from "../src/components/ProgressBar/ProgressBar.types";
21
- export { default as TableBodyCell } from "../src/components/Table/BodyCell";
22
- export { default as TableHeaderCell } from "../src/components/Table/HeaderCell";
23
- export { default as Table } from "../src/components/Table/Table";
24
- export { default as Tag } from "../src/components/Tag";
25
- export type { TagProps } from "../src/components/Tag/Tag.types";
26
- //# sourceMappingURL=main.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../lib/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC7D,YAAY,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAC;AACnG,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAC5E,YAAY,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC3D,YAAY,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACvD,YAAY,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Accordion.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accordion.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/Accordion.spec.jsx"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- export function Accordion({ content, title, className, id }: {
2
- content: any;
3
- title: any;
4
- className: any;
5
- id?: string | undefined;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- export namespace Accordion {
8
- namespace propTypes {
9
- let content: PropTypes.Validator<string>;
10
- let title: PropTypes.Validator<string>;
11
- let id: PropTypes.Requireable<string>;
12
- let className: PropTypes.Requireable<string>;
13
- }
14
- }
15
- export default Accordion;
16
- import PropTypes from "prop-types";
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/index.jsx"],"names":[],"mappings":"AAMO;;;;;4CAYN;;;;;;;;;;sBAjBqB,YAAY"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Alert.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Alert.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/Alert.spec.jsx"],"names":[],"mappings":""}
@@ -1,41 +0,0 @@
1
- import type { ReactNode } from "react";
2
- export type AlertProps = BaseAlertProps & ContentProps & TitleProps;
3
- type BaseAlertProps = {
4
- /** The type of alert to display */
5
- type?: "error" | "warning" | "information" | "success";
6
- /** Whether the alert can be closed by the user */
7
- closable?: boolean;
8
- /** Whether to show action buttons */
9
- actions?: Array<AlertAction>;
10
- /** The click handler for when the close button is pressed */
11
- onClose?: () => void;
12
- };
13
- type ContentProps = {
14
- /** The main content of the alert */
15
- children?: ReactNode;
16
- /** The main text content of the alert */
17
- text?: never;
18
- } | {
19
- /** The main content of the alert */
20
- children?: never;
21
- /** The main text content of the alert */
22
- text?: string;
23
- };
24
- type TitleProps = {
25
- /** The title content for the alert */
26
- titleChildren?: ReactNode;
27
- /** The title text for the alert */
28
- title?: never;
29
- } | {
30
- /** The title content for the alert */
31
- titleChildren?: never;
32
- /** The title text for the alert */
33
- title?: string;
34
- };
35
- type AlertAction = {
36
- href?: string;
37
- label?: string;
38
- onClick?: () => void;
39
- };
40
- export {};
41
- //# sourceMappingURL=Alert.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Alert.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/Alert.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,YAAY,GAAG,UAAU,CAAC;AAEpE,KAAK,cAAc,GAAG;IACpB,mCAAmC;IACnC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAAC;IACvD,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC7B,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAGF,KAAK,YAAY,GACb;IACE,oCAAoC;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yCAAyC;IACzC,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,GACD;IACE,oCAAoC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAGN,KAAK,UAAU,GACX;IACE,sCAAsC;IACtC,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,mCAAmC;IACnC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GACD;IACE,sCAAsC;IACtC,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEN,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC"}
@@ -1,6 +0,0 @@
1
- import "@/components/MaterialSymbols";
2
- import "./Alert.scss";
3
- import type { AlertProps } from "./Alert.types";
4
- export declare const Alert: ({ title, text, titleChildren, children, type, actions, onClose, }: AlertProps) => import("react/jsx-runtime").JSX.Element;
5
- export default Alert;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,eAAO,MAAM,KAAK,GAAI,mEAQnB,UAAU,4CA4CZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Button.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/Button.spec.jsx"],"names":[],"mappings":""}
@@ -1,34 +0,0 @@
1
- import { type ElementType, type ReactNode } from "react";
2
- export type ButtonProps = {
3
- /** The text content of the button */
4
- text?: string;
5
- /** The title content of the button */
6
- title?: string;
7
- /** The type of the button */
8
- type?: "primary" | "secondary" | "tertiary";
9
- /** The variant of the button */
10
- variant?: "" | "danger";
11
- /** The size of the button */
12
- size?: "default" | "small";
13
- /** Whether the button is disabled */
14
- disabled?: boolean;
15
- /** The href attribute for link buttons */
16
- href?: string;
17
- /** The icon name */
18
- icon?: string | ReactNode;
19
- /** Whether the button shows only an icon */
20
- iconOnly?: boolean;
21
- /** The position of the icon */
22
- iconPosition?: "left" | "right";
23
- /** Whether the button takes full width */
24
- fullWidth?: boolean;
25
- /** Additional CSS class name */
26
- className?: string;
27
- /** Click handler */
28
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
29
- /** Override for link component */
30
- linkComponent?: ElementType;
31
- /** Aria label */
32
- "aria-label"?: string;
33
- };
34
- //# sourceMappingURL=Button.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC5C,gCAAgC;IAChC,OAAO,CAAC,EAAE,EAAE,GAAG,QAAQ,CAAC;IACxB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC3B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D,kCAAkC;IAClC,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,iBAAiB;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -1,6 +0,0 @@
1
- import "@/components/MaterialSymbols";
2
- import "./Button.scss";
3
- import type { ButtonProps } from "./Button.types";
4
- export declare const Button: ({ text, href, title, className, type, variant, size, icon, iconOnly, iconPosition, fullWidth, disabled, onClick, "aria-label": ariaLabel, linkComponent, }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
5
- export default Button;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,MAAM,GAAI,4JAgBpB,WAAW,4CAgFb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,24 +0,0 @@
1
- import type { ReactNode } from "react";
2
- export type CheckboxInputProps = {
3
- /** Unique identifier for the checkbox input */
4
- id: string;
5
- /** Name attribute for the checkbox input */
6
- name: string;
7
- /** Whether the checkbox is disabled */
8
- disabled?: boolean;
9
- /** Error message to display */
10
- error?: string;
11
- /** Label text or `ReactNode` for the checkbox */
12
- label: string | ReactNode;
13
- /** Whether the checkbox is checked (controlled) */
14
- isChecked?: boolean;
15
- /** Value attribute for the checkbox */
16
- value?: string;
17
- /** Additional CSS class name */
18
- className?: string;
19
- /** Whether the checkbox is checked (uncontrolled) */
20
- checked?: boolean;
21
- /** Callback function when checkbox state changes */
22
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
23
- };
24
- //# sourceMappingURL=CheckboxInput.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CheckboxInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/CheckboxInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CACjE,CAAC"}
@@ -1,6 +0,0 @@
1
- import "@/components/MaterialSymbols";
2
- import "./CheckboxInput.scss";
3
- import type { CheckboxInputProps } from "./CheckboxInput.types";
4
- export declare const CheckboxInput: ({ id, label, name, checked, disabled, error, onChange, value, className, }: CheckboxInputProps) => import("react/jsx-runtime").JSX.Element;
5
- export default CheckboxInput;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/CheckboxInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,GAAI,4EAU3B,kBAAkB,4CA4BpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Fieldset.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Fieldset.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/Fieldset/Fieldset.spec.jsx"],"names":[],"mappings":""}
@@ -1,21 +0,0 @@
1
- export function Fieldset({ disabled, errorText, fullWidth, legendText, legendHintText, children, }: {
2
- disabled?: boolean | undefined;
3
- errorText?: string | undefined;
4
- fullWidth?: boolean | undefined;
5
- legendText: any;
6
- legendHintText?: string | undefined;
7
- children: any;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export namespace Fieldset {
10
- namespace propTypes {
11
- let disabled: PropTypes.Requireable<boolean>;
12
- let errorText: PropTypes.Requireable<string>;
13
- let fullWidth: PropTypes.Requireable<boolean>;
14
- let legendText: PropTypes.Validator<string>;
15
- let legendHintText: PropTypes.Requireable<string>;
16
- let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
- }
18
- }
19
- export default Fieldset;
20
- import PropTypes from "prop-types";
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/Fieldset/index.jsx"],"names":[],"mappings":"AAKO;;;;;;;4CAmCN;;;;;;;;;;;;sBAvCqB,YAAY"}
@@ -1,21 +0,0 @@
1
- export function InputField({ id, label, children, disabled, error, hint, }: {
2
- id: any;
3
- label: any;
4
- children: any;
5
- disabled?: boolean | undefined;
6
- error?: string | undefined;
7
- hint?: string | undefined;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export namespace InputField {
10
- namespace propTypes {
11
- let disabled: PropTypes.Requireable<boolean>;
12
- let error: PropTypes.Requireable<string>;
13
- let hint: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
14
- let label: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
15
- let id: PropTypes.Validator<string>;
16
- let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
- }
18
- }
19
- export default InputField;
20
- import PropTypes from "prop-types";
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/InputField/index.jsx"],"names":[],"mappings":"AAKO;;;;;;;4CA8BN;;;;;;;;;;;;sBAlCqB,YAAY"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=InputLabel.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InputLabel.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/InputLabel/InputLabel.spec.jsx"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- export function InputLabel({ label, inputFieldId, disabled, hint, }: {
2
- label: any;
3
- inputFieldId: any;
4
- disabled?: boolean | undefined;
5
- hint?: string | undefined;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- export namespace InputLabel {
8
- namespace propTypes {
9
- let disabled: PropTypes.Requireable<boolean>;
10
- let hint: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
11
- let label: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
12
- let inputFieldId: PropTypes.Validator<string>;
13
- }
14
- }
15
- export default InputLabel;
16
- import PropTypes from "prop-types";
17
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/InputLabel/index.jsx"],"names":[],"mappings":"AAKO;;;;;4CAiBN;;;;;;;;;;sBArBqB,YAAY"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=RadioInput.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioInput.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/RadioInput.spec.jsx"],"names":[],"mappings":""}
@@ -1,25 +0,0 @@
1
- export function RadioInput({ id, label, name, checked, disabled, fullWidth, onChange, value, }: {
2
- id: any;
3
- label: any;
4
- name: any;
5
- checked?: boolean | undefined;
6
- disabled?: boolean | undefined;
7
- fullWidth?: boolean | undefined;
8
- onChange?: (() => void) | undefined;
9
- value?: string | undefined;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- export namespace RadioInput {
12
- namespace propTypes {
13
- let checked: PropTypes.Requireable<boolean>;
14
- let disabled: PropTypes.Requireable<boolean>;
15
- let fullWidth: PropTypes.Requireable<boolean>;
16
- let id: PropTypes.Validator<string>;
17
- let label: PropTypes.Validator<NonNullable<NonNullable<string | object | null | undefined>>>;
18
- let name: PropTypes.Validator<string>;
19
- let onChange: PropTypes.Requireable<(...args: any[]) => any>;
20
- let value: PropTypes.Requireable<string>;
21
- }
22
- }
23
- export default RadioInput;
24
- import PropTypes from "prop-types";
25
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/index.jsx"],"names":[],"mappings":"AAKO;;;;;;;;;4CA6BN;;;;;;;;;;;;;;sBAjCqB,YAAY"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=SearchInput.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchInput.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SearchInput/SearchInput.spec.jsx"],"names":[],"mappings":""}