@asd20/ui 3.2.362 → 3.2.363

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
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.362",
8
+ "version": "3.2.363",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -316,6 +316,7 @@ export default {
316
316
  width: auto;
317
317
  margin-bottom: space(2);
318
318
  top: -2.125%;
319
+ max-width: inherit;
319
320
  }
320
321
  &::v-deep .asd20-district-logo {
321
322
  position: relative;
@@ -0,0 +1,58 @@
1
+ import { storiesOf } from '@storybook/vue'
2
+ import { withKnobs, boolean } from '@storybook/addon-knobs'
3
+
4
+ import mockPageMixin from '../../../mixins/mockPageMixin'
5
+
6
+ import Asd20SalaryCalculatorTemplate from '.'
7
+ import pageQueryResult from '../../../data/page-queries/salary-calculator-page-result.json'
8
+ import notifications from '../../../data/messages/notifications'
9
+
10
+ const info = {
11
+ summary: 'Salary Calculator Template',
12
+ }
13
+
14
+ const wrapper = {
15
+ mixins: [mockPageMixin],
16
+ components: {
17
+ Asd20SalaryCalculatorTemplate,
18
+ },
19
+
20
+ data: () => ({ pageQueryResult }),
21
+
22
+ computed: {
23
+ activeNotificationsByType() {
24
+ const empty = {
25
+ inline: [],
26
+ banner: [],
27
+ floating: [],
28
+ status: [],
29
+ }
30
+ return boolean('Show Notifications', false)
31
+ ? notifications || empty
32
+ : empty
33
+ },
34
+ },
35
+ }
36
+
37
+ const stories = storiesOf('Templates - Asd20SalaryCalculatorTemplate', module)
38
+ stories.addDecorator(withKnobs)
39
+
40
+ stories.add(
41
+ 'Default',
42
+ () => ({
43
+ ...wrapper,
44
+ template: `
45
+ <Asd20SalaryCalculatorTemplate
46
+ v-bind="templateProps"
47
+ :menu-open.sync="menuOpen"
48
+ :search-open.sync="searchOpen"
49
+
50
+ @announcements-in-view="loadAnnouncements"
51
+ @stories-in-view="loadStories"
52
+ @events-in-view="loadEvents"
53
+ @files-in-view="loadFiles"
54
+
55
+ />`,
56
+ }),
57
+ { info }
58
+ )