@raspberrypifoundation/design-system-react 2.7.0-beta.0 → 2.7.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/CHANGELOG.md +9 -2
- package/dist/design-system-react.css +1 -1
- package/dist/design-system-react.js +891 -845
- package/dist/design-system-react.umd.cjs +6 -6
- package/dist/scss/components/alert.scss +39 -16
- package/dist/scss/components/forms/error-message.scss +1 -0
- package/dist/scss/components/forms/fieldset.scss +13 -17
- package/dist/scss/components/forms/input-checkbox.scss +18 -12
- package/dist/scss/components/forms/input-label.scss +2 -1
- package/dist/scss/components/forms/input-radio.scss +17 -12
- package/dist/scss/components/forms/input-search.scss +8 -2
- package/dist/scss/components/modal.scss +95 -0
- package/dist/scss/components/progress-bar.scss +61 -17
- package/dist/scss/design-system-core.scss +4 -0
- package/dist/scss/properties/colors/_utilities.scss +4 -0
- package/dist/types/lib/main.d.ts +28 -0
- package/dist/types/lib/main.d.ts.map +1 -0
- package/dist/types/src/components/Accordion/Accordion.spec.d.ts +2 -0
- package/dist/types/src/components/Accordion/Accordion.spec.d.ts.map +1 -0
- package/dist/types/src/components/Accordion/index.d.ts +17 -0
- package/dist/types/src/components/Accordion/index.d.ts.map +1 -0
- package/dist/types/src/components/Alert/Alert.spec.d.ts +2 -0
- package/dist/types/src/components/Alert/Alert.spec.d.ts.map +1 -0
- package/dist/types/src/components/Alert/Alert.types.d.ts +41 -0
- package/dist/types/src/components/Alert/Alert.types.d.ts.map +1 -0
- package/dist/types/src/components/Alert/index.d.ts +6 -0
- package/dist/types/src/components/Alert/index.d.ts.map +1 -0
- package/dist/types/src/components/Button/Button.spec.d.ts +2 -0
- package/dist/types/src/components/Button/Button.spec.d.ts.map +1 -0
- package/dist/types/src/components/Button/Button.types.d.ts +34 -0
- package/dist/types/src/components/Button/Button.types.d.ts.map +1 -0
- package/dist/types/src/components/Button/index.d.ts +6 -0
- package/dist/types/src/components/Button/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts +24 -0
- package/dist/types/src/components/Form/CheckboxInput/CheckboxInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts +6 -0
- package/dist/types/src/components/Form/CheckboxInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts +2 -0
- package/dist/types/src/components/Form/Fieldset/Fieldset.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/Fieldset/index.d.ts +21 -0
- package/dist/types/src/components/Form/Fieldset/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputField/index.d.ts +21 -0
- package/dist/types/src/components/Form/InputField/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts +2 -0
- package/dist/types/src/components/Form/InputLabel/InputLabel.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/InputLabel/index.d.ts +17 -0
- package/dist/types/src/components/Form/InputLabel/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/RadioInput/RadioInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/RadioInput/index.d.ts +25 -0
- package/dist/types/src/components/Form/RadioInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/SearchInput/SearchInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/SearchInput/SearchInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/SearchInput/SearchInput.types.d.ts +21 -0
- package/dist/types/src/components/Form/SearchInput/SearchInput.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/SearchInput/index.d.ts +6 -0
- package/dist/types/src/components/Form/SearchInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/SelectInput/SelectInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/SelectInput/index.d.ts +31 -0
- package/dist/types/src/components/Form/SelectInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/TextInput/TextInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextInput/index.d.ts +27 -0
- package/dist/types/src/components/Form/TextInput/index.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts +2 -0
- package/dist/types/src/components/Form/TextareaInput/TextareaInput.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/TextareaInput/index.d.ts +29 -0
- package/dist/types/src/components/Form/TextareaInput/index.d.ts.map +1 -0
- package/dist/types/src/components/MaterialSymbols/index.d.ts +2 -0
- package/dist/types/src/components/MaterialSymbols/index.d.ts.map +1 -0
- package/dist/types/src/components/Modal/Modal.types.d.ts +45 -0
- package/dist/types/src/components/Modal/Modal.types.d.ts.map +1 -0
- package/dist/types/src/components/Modal/index.d.ts +6 -0
- package/dist/types/src/components/Modal/index.d.ts.map +1 -0
- package/dist/types/src/components/ProgressBar/ProgressBar.types.d.ts +11 -0
- package/dist/types/src/components/ProgressBar/ProgressBar.types.d.ts.map +1 -0
- package/dist/types/src/components/ProgressBar/index.d.ts +6 -0
- package/dist/types/src/components/ProgressBar/index.d.ts.map +1 -0
- package/dist/types/src/components/Table/BodyCell/BodyCell.spec.d.ts +2 -0
- package/dist/types/src/components/Table/BodyCell/BodyCell.spec.d.ts.map +1 -0
- package/dist/types/src/components/Table/BodyCell/index.d.ts +6 -0
- package/dist/types/src/components/Table/BodyCell/index.d.ts.map +1 -0
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.spec.d.ts +2 -0
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.spec.d.ts.map +1 -0
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.types.d.ts +9 -0
- package/dist/types/src/components/Table/HeaderCell/HeaderCell.types.d.ts.map +1 -0
- package/dist/types/src/components/Table/HeaderCell/index.d.ts +5 -0
- package/dist/types/src/components/Table/HeaderCell/index.d.ts.map +1 -0
- package/dist/types/src/components/Table/Table/Table.spec.d.ts +2 -0
- package/dist/types/src/components/Table/Table/Table.spec.d.ts.map +1 -0
- package/dist/types/src/components/Table/Table/Table.types.d.ts +9 -0
- package/dist/types/src/components/Table/Table/Table.types.d.ts.map +1 -0
- package/dist/types/src/components/Table/Table/index.d.ts +5 -0
- package/dist/types/src/components/Table/Table/index.d.ts.map +1 -0
- package/dist/types/src/components/Tag/Tag.spec.d.ts +2 -0
- package/dist/types/src/components/Tag/Tag.spec.d.ts.map +1 -0
- package/dist/types/src/components/Tag/Tag.types.d.ts +13 -0
- package/dist/types/src/components/Tag/Tag.types.d.ts.map +1 -0
- package/dist/types/src/components/Tag/index.d.ts +5 -0
- package/dist/types/src/components/Tag/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useDialog.d.ts +5 -0
- package/dist/types/src/hooks/useDialog.d.ts.map +1 -0
- package/dist/types/src/stories/Accordion.stories.d.ts +15 -0
- package/dist/types/src/stories/Accordion.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Alert.stories.d.ts +41 -0
- package/dist/types/src/stories/Alert.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Button.stories.d.ts +132 -0
- package/dist/types/src/stories/Button.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts +2 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.stories.d.ts +7 -0
- package/dist/types/src/stories/Modal/ExampleModal/ExampleModal.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/Modal.stories.d.ts +26 -0
- package/dist/types/src/stories/Modal/Modal.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts +3 -0
- package/dist/types/src/stories/Modal/Modal.stories.helpers.d.ts.map +1 -0
- package/dist/types/src/stories/ProgressBar.stories.d.ts +93 -0
- package/dist/types/src/stories/ProgressBar.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Tag.stories.d.ts +53 -0
- package/dist/types/src/stories/Tag.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts +30 -0
- package/dist/types/src/stories/forms/CheckboxInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/Fieldset.stories.d.ts +57 -0
- package/dist/types/src/stories/forms/Fieldset.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/InputLabel.stories.d.ts +25 -0
- package/dist/types/src/stories/forms/InputLabel.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts +51 -0
- package/dist/types/src/stories/forms/RadioInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/SearchInput.stories.d.ts +40 -0
- package/dist/types/src/stories/forms/SearchInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/SelectInput.stories.d.ts +52 -0
- package/dist/types/src/stories/forms/SelectInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/TextInput.stories.d.ts +37 -0
- package/dist/types/src/stories/forms/TextInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/TextareaInput.stories.d.ts +52 -0
- package/dist/types/src/stories/forms/TextareaInput.stories.d.ts.map +1 -0
- package/dist/types/src/stories/table/Table.stories.d.ts +9 -0
- package/dist/types/src/stories/table/Table.stories.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,95 @@
|
|
|
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,43 +1,87 @@
|
|
|
1
1
|
@use '../mixins/typography' as typography;
|
|
2
2
|
|
|
3
|
-
@forward
|
|
4
|
-
@forward
|
|
5
|
-
@forward
|
|
3
|
+
@forward '../properties/spacing';
|
|
4
|
+
@forward '../properties/colors/greys';
|
|
5
|
+
@forward '../properties/colors/decorative';
|
|
6
|
+
@forward '../properties/colors/alert';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
:
|
|
8
|
+
:root,
|
|
9
|
+
:host {
|
|
10
|
+
// Deprecated - to be removed in a future release
|
|
9
11
|
--color-progress-bar-complete: var(--rpf-navy-800);
|
|
10
12
|
--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>');
|
|
11
24
|
}
|
|
12
25
|
|
|
13
26
|
.rpf-progress-bar {
|
|
14
27
|
&__label {
|
|
15
|
-
|
|
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);
|
|
16
31
|
align-items: center;
|
|
17
32
|
display: grid;
|
|
18
|
-
|
|
33
|
+
gap: var(--rpf-progress-bar-gap);
|
|
19
34
|
grid-template-columns: max-content 1fr;
|
|
20
35
|
}
|
|
21
36
|
|
|
22
|
-
&__bar{
|
|
23
|
-
background: var(--
|
|
24
|
-
block-size:
|
|
25
|
-
border-radius:
|
|
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);
|
|
26
41
|
inline-size: 100%;
|
|
42
|
+
border: none;
|
|
27
43
|
|
|
28
44
|
&::-webkit-progress-bar {
|
|
29
|
-
background: var(--
|
|
30
|
-
border-radius:
|
|
45
|
+
background: var(--rpf-progress-bar-background-color);
|
|
46
|
+
border-radius: var(--rpf-progress-bar-border-radius);
|
|
31
47
|
}
|
|
32
48
|
|
|
33
49
|
&::-webkit-progress-value {
|
|
34
|
-
background: var(--
|
|
35
|
-
border-radius:
|
|
50
|
+
background: var(--rpf-progress-bar-accent-color);
|
|
51
|
+
border-radius: var(--rpf-progress-bar-border-radius);
|
|
36
52
|
}
|
|
37
53
|
|
|
38
54
|
&::-moz-progress-bar {
|
|
39
|
-
background: var(--
|
|
40
|
-
border-radius:
|
|
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;
|
|
41
85
|
}
|
|
42
86
|
}
|
|
43
87
|
}
|
|
@@ -10,6 +10,8 @@
|
|
|
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
|
+
|
|
13
15
|
|
|
14
16
|
@use 'components/alert';
|
|
15
17
|
@use 'components/accordion';
|
|
@@ -20,6 +22,8 @@
|
|
|
20
22
|
@use 'components/menu';
|
|
21
23
|
@use 'components/link';
|
|
22
24
|
@use 'components/burger-menu';
|
|
25
|
+
@use 'components/modal';
|
|
26
|
+
|
|
23
27
|
|
|
24
28
|
@use 'components/forms/error-message';
|
|
25
29
|
@use 'components/forms/fieldset';
|
|
@@ -0,0 +1,28 @@
|
|
|
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 type { HeaderCellProps } from "../src/components/Table/HeaderCell/HeaderCell.types";
|
|
24
|
+
export { default as Table } from "../src/components/Table/Table";
|
|
25
|
+
export type { TableProps } from "../src/components/Table/Table/Table.types";
|
|
26
|
+
export { default as Tag } from "../src/components/Tag";
|
|
27
|
+
export type { TagProps } from "../src/components/Tag/Tag.types";
|
|
28
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,YAAY,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACjE,YAAY,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACvD,YAAY,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/Accordion.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/index.jsx"],"names":[],"mappings":"AAMO;;;;;4CAYN;;;;;;;;;;sBAjBqB,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/Alert/Alert.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.spec.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/Button.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Fieldset.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/Fieldset/Fieldset.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/Fieldset/index.jsx"],"names":[],"mappings":"AAKO;;;;;;;4CAmCN;;;;;;;;;;;;sBAvCqB,YAAY"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/InputField/index.jsx"],"names":[],"mappings":"AAKO;;;;;;;4CA8BN;;;;;;;;;;;;sBAlCqB,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputLabel.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/InputLabel/InputLabel.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/InputLabel/index.jsx"],"names":[],"mappings":"AAKO;;;;;4CAiBN;;;;;;;;;;sBArBqB,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioInput.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/RadioInput.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/RadioInput/index.jsx"],"names":[],"mappings":"AAKO;;;;;;;;;4CA6BN;;;;;;;;;;;;;;sBAjCqB,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SearchInput/SearchInput.spec.jsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type SearchInputProps = {
|
|
2
|
+
/** The input label text content */
|
|
3
|
+
label: string;
|
|
4
|
+
/** The input field id */
|
|
5
|
+
inputFieldId: string;
|
|
6
|
+
/** Whether the input is disabled */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** The text content of the error message */
|
|
9
|
+
error?: string;
|
|
10
|
+
/** The text content of the label hint */
|
|
11
|
+
hint?: string;
|
|
12
|
+
/** The placeholder text content */
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
/** The default input value */
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
/** Click handler */
|
|
17
|
+
onClick: () => void;
|
|
18
|
+
/** On change handler */
|
|
19
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=SearchInput.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SearchInput/SearchInput.types.ts"],"names":[],"mappings":"AAAE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,yBAAyB;IACzB,YAAY,EAAE,MAAM,CAAA;IACpB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,wBAAwB;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;CAC/D,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import "@/components/MaterialSymbols";
|
|
2
|
+
import "./SearchInput.scss";
|
|
3
|
+
import type { SearchInputProps } from "./SearchInput.types";
|
|
4
|
+
export declare const SearchInput: ({ label, inputFieldId, disabled, error, hint, placeholder, defaultValue, onClick, onChange, }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default SearchInput;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Form/SearchInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAO,MAAM,WAAW,GAAI,+FAUzB,gBAAgB,4CAmDlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|