@worksafevictoria/wcl7.5 1.0.0 → 1.1.0-beta.10
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/.env +4 -2
- package/.eslintrc.cjs +1 -1
- package/.eslintrc.js +2 -1
- package/.husky/pre-commit +4 -0
- package/.storybook/main.js +4 -2
- package/.storybook/preview.js +15 -0
- package/README.md +14 -0
- package/babel.config.js +7 -6
- package/bin/deploy.sh +3 -3
- package/ci/build/build_validation.yml +11 -6
- package/ci/release/beta.yml +6 -5
- package/ci/release/master.yml +6 -5
- package/jest.config.js +3 -1
- package/package.json +16 -9
- package/public/.nojekyll +1 -0
- package/src/components/Common/CardGridItem/card-grid-item-icon.vue +1 -1
- package/src/components/Common/CardGridItem/index.vue +9 -3
- package/src/components/Global/AppHeader/ModalSearch/index.vue +6 -1
- package/src/components/Global/AppHeader/index.stories.js +16 -24
- package/src/components/Global/AppHeader/index.vue +9 -8
- package/src/components/Global/Cookies/{index.storieshide.js → index.stories.js} +5 -16
- package/src/components/Global/Cookies/index.vue +122 -136
- package/src/components/Global/Cookies/styles.scss +10 -2
- package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +53 -47
- package/src/components/Global/GlobalNotice/index.stories.js +8 -0
- package/src/components/Global/GlobalNotice/index.vue +71 -137
- package/src/components/Global/HeroHeader/styles.scss +2 -1
- package/src/components/Paragraphs/BrowseContent/index.stories.js +39 -57
- package/src/components/Paragraphs/Chart/Constants.js +4790 -0
- package/src/components/Paragraphs/Chart/index.mdx +61 -0
- package/src/components/Paragraphs/Chart/index.stories.js +31 -0
- package/src/components/Paragraphs/Chart/index.vue +331 -0
- package/src/components/Paragraphs/ListGroup/Link/list-link.stories.js +34 -39
- package/src/components/Paragraphs/ListGroup/list-group.stories.js +34 -31
- package/src/components/Paragraphs/ListGroup/navigation-card.stories.js +33 -30
- package/src/components/Paragraphs/ScrollSpy/index.stories.js +18 -26
- package/src/components/Paragraphs/ScrollSpy/index.vue +2 -1
- package/src/components/Paragraphs/TaskFinder/index.stories.js +10 -33
- package/src/components/Paragraphs/TaskFinder/pdf/index.vue +1 -1
- package/src/components/Paragraphs/TextMedia/index.stories.js +12 -61
- package/src/components/Paragraphs/VideoGrid/index.stories.js +16 -32
- package/src/components/SubComponents/FormInstance/index.vue +3 -1
- package/src/components/SubComponents/FormInstance/stories/mocks/checkbox.json +21 -0
- package/src/components/SubComponents/Search/GoogleREST/index.stories.js +50 -0
- package/src/components/SubComponents/Search/GoogleSearch/index.stories.js +23 -0
- package/src/components/SubComponents/Search/SearchListing/index.vue +69 -9
- package/src/components/SubComponents/Search/index.stories.js +19 -16
- package/src/components/SubComponents/Search/index.vue +563 -59
- package/src/components/SubComponents/VideoThumbnail/index.stories.js +9 -4
- package/src/components/SubComponents/VideoThumbnail/index.vue +93 -96
- package/src/includes/scss/vars/src/colors.scss +29 -1
- package/src/index.js +42 -40
- package/vite.config.js +5 -1
- package/src/components/SubComponents/GoogleSearch/index.stories.js +0 -8
- package/src/components/SubComponents/GoogleSearch/index.vue +0 -405
|
@@ -15,29 +15,32 @@ const contentParser = () => {
|
|
|
15
15
|
|
|
16
16
|
export default {
|
|
17
17
|
title: 'SubComponents/Search',
|
|
18
|
-
component: Search,
|
|
18
|
+
component: { Search },
|
|
19
|
+
tags: ['autodocs'],
|
|
19
20
|
argTypes: {
|
|
20
|
-
pageLimit: {
|
|
21
|
-
control: 'number'
|
|
22
|
-
},
|
|
23
21
|
contentParser: {
|
|
24
|
-
control: 'function',
|
|
25
22
|
table: { disable: true }
|
|
26
|
-
},
|
|
27
|
-
isTypeahead: {
|
|
28
|
-
control: 'boolean'
|
|
29
|
-
},
|
|
30
|
-
initialSearchQuery: {
|
|
31
|
-
control: 'text'
|
|
32
23
|
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const Default = {
|
|
24
|
+
},
|
|
37
25
|
args: {
|
|
38
26
|
pageLimit: 5,
|
|
39
27
|
contentParser: contentParser,
|
|
40
28
|
isTypeahead: false,
|
|
41
|
-
initialSearchQuery: 'Metal'
|
|
29
|
+
initialSearchQuery: 'Metal',
|
|
30
|
+
googleSearchFlag: 'solar',
|
|
31
|
+
visibleSearchList: true
|
|
42
32
|
}
|
|
43
33
|
}
|
|
34
|
+
|
|
35
|
+
const DefaultSearch = (args) => ({
|
|
36
|
+
components: { Search },
|
|
37
|
+
setup () {
|
|
38
|
+
return { args }
|
|
39
|
+
},
|
|
40
|
+
template: `<search
|
|
41
|
+
v-bind="args"
|
|
42
|
+
ref="solrsearch" />`
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
export const Default = DefaultSearch.bind({})
|
|
46
|
+
|