@eturnity/eturnity_reusable_components 7.48.1-qa-elisee-7.51.0 → 7.48.1-qa-elisee-7.51.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.48.1-qa-elisee-7.51.0",
3
+ "version": "7.48.1-qa-elisee-7.51.1",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -3,24 +3,14 @@ import IconCollection from './iconCollection.vue'
3
3
  export default {
4
4
  title: 'icon',
5
5
  component: IconCollection,
6
- // argTypes: {},
7
6
  }
8
7
 
9
- const Template = (args, { argTypes }) => ({
10
- // Components used in your story `template` are defined in the `components` object
8
+ const Template = (args) => ({
11
9
  components: { IconCollection },
12
- // The story's `args` need to be mapped into the template through the `setup()` method
13
- props: Object.keys(argTypes),
14
- template: '<IconCollection v-bind="$props" />',
15
-
16
- // import Icon from "@eturnity/eturnity_reusable_components/src/components/icon"
17
- // How to use:
18
- //<icon
19
- // name="House" //required. a svg file named [name].svg should be present in /assets/svgIcons
20
- // color="red"
21
- // hoveredColor="blue"
22
- // size="60px" by default, this is 30px
23
- // />
10
+ setup() {
11
+ return { args }
12
+ },
13
+ template: '<IconCollection v-bind="args" />',
24
14
  })
25
15
 
26
16
  export const Default = Template.bind({})
@@ -28,14 +18,14 @@ Default.args = {
28
18
  size: '30px',
29
19
  }
30
20
 
31
- export const withColor = Template.bind({})
32
- withColor.args = {
21
+ export const WithColor = Template.bind({})
22
+ WithColor.args = {
33
23
  size: '30px',
34
24
  color: 'red',
35
25
  hoveredColor: 'crimson',
36
26
  }
37
27
 
38
- export const large = Template.bind({})
39
- large.args = {
28
+ export const Large = Template.bind({})
29
+ Large.args = {
40
30
  size: '60px',
41
31
  }
@@ -2,6 +2,7 @@
2
2
  <Wrapper>
3
3
  <IconWrapper v-for="iconItem in iconList" :key="iconItem.name">
4
4
  <div>
5
+ color:{{ color }}
5
6
  <RCIcon
6
7
  :color="color"
7
8
  :hovered-color="hoveredColor"
@@ -39,9 +40,9 @@
39
40
  name: 'CollectionComponent',
40
41
  components: { RCIcon, IconWrapper, Wrapper },
41
42
  props: {
42
- size: { required: false },
43
- color: { required: false },
44
- hoveredColor: { required: false },
43
+ size: { required: false, type: String, default: '30px' },
44
+ color: { required: false, type: String, default: 'white' },
45
+ hoveredColor: { required: false, type: String, default: 'grey' },
45
46
  },
46
47
  data() {
47
48
  return {