@conduction/components 2.0.15 → 2.0.16

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 CHANGED
@@ -4,7 +4,8 @@
4
4
 
5
5
  - **Version 2**
6
6
 
7
- - 2.0.15: Added mobile support to PrimaryTopNav;
7
+ - 2.0.16: Remove styling warnings.
8
+ - 2.0.15: Added mobile support to PrimaryTopNav.
8
9
  - 2.0.14: Refactored SelectCreate placeholder text.
9
10
  - 2.0.13: removed round borders of tag.
10
11
  - 2.0.11 & 2.0.12:
@@ -27,5 +27,5 @@ const KeyValueComponent = ({ defaultValue, handleChange }) => {
27
27
  React.useEffect(() => {
28
28
  handleChange(keyValues);
29
29
  }, [keyValues]);
30
- return (_jsxs("div", { className: styles.keyValue, children: [keyValues && (_jsxs(Table, { className: styles.table, children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [_jsx(TableHeader, { children: "Key" }), _jsx(TableHeader, { children: "Value" }), _jsx(TableHeader, {})] }) }), _jsx(TableBody, { children: keyValues.map((keyValue, idx) => (_jsxs(TableRow, { className: styles.row, children: [_jsx(TableCell, { children: keyValue.key }), _jsx(TableCell, { children: keyValue.value }), _jsx(TableCell, { className: styles.tdDelete, children: _jsx(Button, { onClick: () => setKeyValues(keyValues.filter((_keyValue) => _keyValue !== keyValue)), children: "Delete" }) })] }, `${keyValue}${idx}`))) })] })), _jsxs("div", { className: styles.form, children: [_jsx("input", { type: "text", placeholder: "Key", value: currentKey, ref: currentKeyRef, className: "denhaag-textfield__input", onChange: (e) => setCurrentKey(e.target.value) }), _jsx("input", { type: "text", placeholder: "Value", value: currentValue, ref: currentValueRef, className: "denhaag-textfield__input", onChange: (e) => setCurrentValue(e.target.value) }), _jsx(Button, { onClick: handleCreate, disabled: !currentKey || !currentValue, children: "Add" })] })] }));
30
+ return (_jsxs("div", { className: styles.keyValue, children: [keyValues && (_jsxs(Table, { className: styles.table, children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [_jsx(TableHeader, { children: "Key" }), _jsx(TableHeader, { children: "Value" }), _jsx(TableHeader, {})] }) }), _jsx(TableBody, { children: keyValues.map((keyValue, idx) => (_jsxs(TableRow, { children: [_jsx(TableCell, { children: keyValue.key }), _jsx(TableCell, { children: keyValue.value }), _jsx(TableCell, { className: styles.tdDelete, children: _jsx(Button, { onClick: () => setKeyValues(keyValues.filter((_keyValue) => _keyValue !== keyValue)), children: "Delete" }) })] }, `${keyValue}${idx}`))) })] })), _jsxs("div", { className: styles.form, children: [_jsx("input", { type: "text", placeholder: "Key", value: currentKey, ref: currentKeyRef, className: "denhaag-textfield__input", onChange: (e) => setCurrentKey(e.target.value) }), _jsx("input", { type: "text", placeholder: "Value", value: currentValue, ref: currentValueRef, className: "denhaag-textfield__input", onChange: (e) => setCurrentValue(e.target.value) }), _jsx(Button, { onClick: handleCreate, disabled: !currentKey || !currentValue, children: "Add" })] })] }));
31
31
  };
@@ -20,13 +20,13 @@
20
20
  justify-content: space-between;
21
21
  }
22
22
 
23
- .menuToggleContainer > button {
23
+ .menuToggleContainer > .menuToggle {
24
24
  all: unset;
25
25
  font-size: var(--conduction-primary-top-nav-toggle-icon-size);
26
26
  padding: var(--conduction-primary-top-nav-mobile-logo-padding);
27
27
  }
28
28
 
29
- .menuToggleContainer > button:hover {
29
+ .menuToggleContainer > .menuToggle:hover {
30
30
  cursor: pointer;
31
31
  }
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/components",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -83,7 +83,7 @@ const KeyValueComponent: React.FC<CreateKeyValueComponentProps> = ({ defaultValu
83
83
  </TableHead>
84
84
  <TableBody>
85
85
  {keyValues.map((keyValue, idx) => (
86
- <TableRow className={styles.row} key={`${keyValue}${idx}`}>
86
+ <TableRow key={`${keyValue}${idx}`}>
87
87
  <TableCell>{keyValue.key}</TableCell>
88
88
  <TableCell>{keyValue.value}</TableCell>
89
89
  <TableCell className={styles.tdDelete}>
@@ -20,13 +20,13 @@
20
20
  justify-content: space-between;
21
21
  }
22
22
 
23
- .menuToggleContainer > button {
23
+ .menuToggleContainer > .menuToggle {
24
24
  all: unset;
25
25
  font-size: var(--conduction-primary-top-nav-toggle-icon-size);
26
26
  padding: var(--conduction-primary-top-nav-mobile-logo-padding);
27
27
  }
28
28
 
29
- .menuToggleContainer > button:hover {
29
+ .menuToggleContainer > .menuToggle:hover {
30
30
  cursor: pointer;
31
31
  }
32
32