@conduction/components 2.0.11 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -18
- package/lib/components/formFields/input.js +1 -1
- package/lib/components/formFields/select/select.js +3 -3
- package/lib/components/tag/Tag.module.css +0 -1
- package/package.json +1 -1
- package/src/components/formFields/select/select.tsx +1 -0
- package/src/components/tag/Tag.module.css +0 -1
package/README.md
CHANGED
|
@@ -4,34 +4,36 @@
|
|
|
4
4
|
|
|
5
5
|
- **Version 2**
|
|
6
6
|
|
|
7
|
-
- 2.0.
|
|
8
|
-
|
|
7
|
+
- 2.0.14: Refactored SelectCreate placeholder text.
|
|
8
|
+
- 2.0.13: removed round borders of tag.
|
|
9
|
+
- 2.0.11 & 2.0.12:
|
|
10
|
+
- Added disabled state to SelectSingle component.
|
|
9
11
|
- 2.0.10:
|
|
10
|
-
- Added InputFloat (.00 decimals) component
|
|
12
|
+
- Added InputFloat (.00 decimals) component.
|
|
11
13
|
- 2.0.9:
|
|
12
|
-
- Added optional defaultChecked to InputCheckbox
|
|
13
|
-
- Added CreateKeyValue input
|
|
14
|
+
- Added optional defaultChecked to InputCheckbox.
|
|
15
|
+
- Added CreateKeyValue input.
|
|
14
16
|
- Added CreateSelect input.
|
|
15
17
|
- 2.0.8:
|
|
16
18
|
- Added new Tooltip component using React-tooltip.
|
|
17
|
-
- Added active status to PrimaryTopNav
|
|
18
|
-
- Added active status to SecondaryTopNav
|
|
19
|
+
- Added active status to PrimaryTopNav.
|
|
20
|
+
- Added active status to SecondaryTopNav.
|
|
19
21
|
- 2.0.7:
|
|
20
22
|
- Added new BadgeCounter component.
|
|
21
23
|
- Added CodeBlock component.
|
|
22
24
|
- 2.0.6:
|
|
23
|
-
- Added optional icon with default icon to the primary and secondary button in NotificationPopUp
|
|
24
|
-
- Added a handleClick function to the DownloadCard
|
|
25
|
-
- Added clickFunction, layoutClassName and renamed tag to label in the Tag component
|
|
26
|
-
- Edited DetailsCard to accommodate changes made to Tag component
|
|
27
|
-
- Edited RichContentCard to accommodate changes made to Tag component
|
|
28
|
-
- 2.0.5: wrong camelcase in npm publish/build fix
|
|
29
|
-
- 2.0.4: added layoutClassName to InfoCard
|
|
30
|
-
- 2.0.3: Bugfix: --conduction-container typo removed
|
|
31
|
-
- 2.0.2: Refactor SelectSingle formField with optional props
|
|
32
|
-
- 2.0.1: Refactor SecondaryTopNav css module import
|
|
25
|
+
- Added optional icon with default icon to the primary and secondary button in NotificationPopUp.
|
|
26
|
+
- Added a handleClick function to the DownloadCard.
|
|
27
|
+
- Added clickFunction, layoutClassName and renamed tag to label in the Tag component.
|
|
28
|
+
- Edited DetailsCard to accommodate changes made to Tag component.
|
|
29
|
+
- Edited RichContentCard to accommodate changes made to Tag component.
|
|
30
|
+
- 2.0.5: wrong camelcase in npm publish/build fix.
|
|
31
|
+
- 2.0.4: added layoutClassName to InfoCard.
|
|
32
|
+
- 2.0.3: Bugfix: --conduction-container typo removed.
|
|
33
|
+
- 2.0.2: Refactor SelectSingle formField with optional props.
|
|
34
|
+
- 2.0.1: Refactor SecondaryTopNav css module import.
|
|
33
35
|
- 2.0.0: components are now dependent on `--skeleton` design tokens, currently found [here](https://github.com/OpenCatalogi/web-app/blob/development/pwa/src/styling/design-tokens/skeleton-design-tokens.css).
|
|
34
36
|
|
|
35
37
|
- **Version 1**
|
|
36
38
|
|
|
37
|
-
- No changelog available
|
|
39
|
+
- No changelog available.
|
|
@@ -9,6 +9,6 @@ export const InputPassword = ({ disabled, name, validation, register, placeholde
|
|
|
9
9
|
export const InputText = ({ disabled, name, defaultValue, validation, register, icon, placeholder, errors, }) => (_jsx(TextField, { type: "text", ...{ defaultValue, disabled, placeholder, icon }, ...register(name, { ...validation }), invalid: errors[name] }));
|
|
10
10
|
export const InputEmail = ({ disabled, name, defaultValue, validation, register, icon, placeholder, errors, }) => (_jsx(TextField, { type: "email", ...{ defaultValue, disabled, placeholder, icon }, ...register(name, { ...validation }), invalid: errors[name] }));
|
|
11
11
|
export const InputDate = ({ disabled, name, defaultValue, validation, register, errors, }) => (_jsx(TextField, { type: "date", ...{ defaultValue, disabled }, ...register(name, { ...validation }), invalid: errors[name] }));
|
|
12
|
-
export const InputNumber = ({ disabled, name, defaultValue, validation, register, icon, placeholder, errors, }) => (_jsx(TextField, { type: "number", ...{ disabled, placeholder, icon
|
|
12
|
+
export const InputNumber = ({ disabled, name, defaultValue, validation, register, icon, placeholder, errors, }) => (_jsx(TextField, { type: "number", ...{ defaultValue, disabled, placeholder, icon }, ...register(name, { ...validation }), invalid: errors[name] }));
|
|
13
13
|
export const InputFloat = ({ disabled, name, defaultValue, validation, register, icon, placeholder, errors, }) => (_jsx(TextField, { type: "number", step: ".01", ...{ disabled, placeholder, icon, defaultValue }, ...register(name, { ...validation }), invalid: errors[name] }));
|
|
14
14
|
export const InputFile = ({ disabled, name, accept, defaultValue, validation, register, }) => (_jsx("input", { className: "denhaag-textfield__input", type: "file", ...{ defaultValue, disabled, accept }, ...register(name, { ...validation }) }));
|
|
@@ -10,11 +10,11 @@ export const SelectMultiple = ({ name, options, errors, control, validation, def
|
|
|
10
10
|
};
|
|
11
11
|
export const SelectCreate = ({ name, options, errors, control, validation, defaultValue, disabled, }) => {
|
|
12
12
|
return (_jsx(Controller, { ...{ control, name }, rules: validation, render: ({ field: { onChange, value } }) => {
|
|
13
|
-
return (_jsx(CreatableSelect, { className: styles.select, isMulti: true, isDisabled: disabled, ...{ options, value, onChange, errors, defaultValue } }));
|
|
13
|
+
return (_jsx(CreatableSelect, { placeholder: "Select existing or create new entries", className: styles.select, isMulti: true, isDisabled: disabled, ...{ options, value, onChange, errors, defaultValue } }));
|
|
14
14
|
} }));
|
|
15
15
|
};
|
|
16
|
-
export const SelectSingle = ({ name, options, errors, control, validation, isClearable, defaultValue, }) => {
|
|
16
|
+
export const SelectSingle = ({ name, options, errors, control, validation, isClearable, defaultValue, disabled, }) => {
|
|
17
17
|
return (_jsx(Controller, { ...{ control, name }, rules: validation, render: ({ field: { onChange, value } }) => {
|
|
18
|
-
return (_jsx(ReactSelect, { className: styles.select, ...{ options, onChange, value, errors, isClearable, defaultValue } }));
|
|
18
|
+
return (_jsx(ReactSelect, { className: styles.select, isDisabled: disabled, ...{ options, onChange, value, errors, isClearable, defaultValue } }));
|
|
19
19
|
} }));
|
|
20
20
|
};
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
font-size: var(--conduction-tag-font-size);
|
|
14
14
|
color: var(--conduction-tag-color);
|
|
15
15
|
background-color: var(--conduction-tag-background-color);
|
|
16
|
-
border-radius: var(--conduction-tag-border-radius);
|
|
17
16
|
padding-inline-start: var(--conduction-tag-padding);
|
|
18
17
|
padding-inline-end: var(--conduction-tag-padding);
|
|
19
18
|
padding-block-start: var(--conduction-tag-padding);
|
package/package.json
CHANGED
|
@@ -57,6 +57,7 @@ export const SelectCreate: React.FC<ISelectProps & IReactHookFormProps> = ({
|
|
|
57
57
|
render={({ field: { onChange, value } }) => {
|
|
58
58
|
return (
|
|
59
59
|
<CreatableSelect
|
|
60
|
+
placeholder="Select existing or create new entries"
|
|
60
61
|
className={styles.select}
|
|
61
62
|
isMulti
|
|
62
63
|
isDisabled={disabled}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
font-size: var(--conduction-tag-font-size);
|
|
14
14
|
color: var(--conduction-tag-color);
|
|
15
15
|
background-color: var(--conduction-tag-background-color);
|
|
16
|
-
border-radius: var(--conduction-tag-border-radius);
|
|
17
16
|
padding-inline-start: var(--conduction-tag-padding);
|
|
18
17
|
padding-inline-end: var(--conduction-tag-padding);
|
|
19
18
|
padding-block-start: var(--conduction-tag-padding);
|