@tunghtml/strapi-plugin-dynamic-enum 1.0.0 → 1.0.1

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.
@@ -1,5 +1,34 @@
1
- import { List } from '@strapi/icons';
1
+ import { Flex } from '@strapi/design-system';
2
+ import { ListPlus } from '@strapi/icons';
3
+ import styled from 'styled-components';
2
4
 
3
- const PluginIcon = () => <List />;
5
+ const IconBox = styled(Flex)`
6
+ background-color: #fffbeb; /* light yellow background */
7
+ border: 1px solid #fbbf24; /* yellow border */
8
+
9
+ svg {
10
+ width: 15px;
11
+ height: 15px;
12
+ }
13
+
14
+ svg > path {
15
+ fill: #f59e0b; /* amber/orange-yellow icon */
16
+ }
17
+ `;
18
+
19
+ const PluginIcon = () => {
20
+ return (
21
+ <IconBox
22
+ justifyContent="center"
23
+ alignItems="center"
24
+ width={7}
25
+ height={6}
26
+ hasRadius={true}
27
+ aria-hidden={true}
28
+ >
29
+ <ListPlus />
30
+ </IconBox>
31
+ );
32
+ };
4
33
 
5
34
  export default PluginIcon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tunghtml/strapi-plugin-dynamic-enum",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A Strapi custom field plugin for enum with dynamic option creation",
5
5
  "keywords": [
6
6
  "strapi",
package/strapi-admin.js CHANGED
@@ -28,7 +28,7 @@ export default {
28
28
  items: [
29
29
  {
30
30
  name: 'options',
31
- type: 'json',
31
+ type: 'textarea',
32
32
  intlLabel: {
33
33
  id: 'dynamic-enum.options.enum',
34
34
  defaultMessage: 'Initial Options',