@eturnity/eturnity_reusable_components 9.25.16 → 9.25.17-qa-03.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "9.25.16",
3
+ "version": "9.25.17-qa-03.0",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -44,6 +44,54 @@ Default.args = {
44
44
  optionWidth: '50%',
45
45
  label: 'Service territory',
46
46
  alignItems: 'vertical',
47
+ value: '2',
48
+ disabled: false,
49
+ hasError: false,
50
+ dataId: 'select_story',
51
+ dataQaId: 'select_story',
52
+ }
53
+
54
+ export const HorizontalLayout = Template.bind({})
55
+ HorizontalLayout.args = {
56
+ ...Default.args,
57
+ alignItems: 'horizontal',
58
+ label: 'Tariff model',
59
+ }
60
+
61
+ export const Disabled = Template.bind({})
62
+ Disabled.args = {
63
+ ...Default.args,
64
+ disabled: true,
65
+ value: '1',
66
+ }
67
+
68
+ export const WithError = Template.bind({})
69
+ WithError.args = {
70
+ ...Default.args,
71
+ hasError: true,
72
+ label: 'Assign reviewer',
73
+ }
74
+
75
+ const CountriesTemplate = (args, { argTypes }) => ({
76
+ components: { Select, Option },
77
+ props: Object.keys(argTypes),
78
+ template: `<Select v-bind="$props">
79
+ <template #selector="{selectedValue}">Code: {{ selectedValue }}</template>
80
+ <template #dropdown>
81
+ <Option value="de">Germany</Option>
82
+ <Option value="fr">France</Option>
83
+ <Option value="ch">Switzerland</Option>
84
+ <Option value="at">Austria</Option>
85
+ <Option value="it">Italy</Option>
86
+ </template>
87
+ </Select>`,
88
+ })
89
+
90
+ export const CountryList = CountriesTemplate.bind({})
91
+ CountryList.args = {
92
+ ...Default.args,
93
+ label: 'Market',
94
+ optionWidth: '100%',
47
95
  value: SELECT_SAMPLE_OPTIONS[1],
48
96
  }
49
97