@oliasoft-open-source/react-ui-library 2.4.8 → 3.0.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/README.md +0 -1
- package/dist/global.css +21840 -0
- package/dist/index.js +43567 -0
- package/package.json +37 -55
- package/.eslintignore +0 -2
- package/.eslintrc.js +0 -125
- package/.gitlab-ci.yml +0 -76
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -3
- package/.prettierrc +0 -4
- package/.storybook/main.js +0 -36
- package/.storybook/preview.js +0 -40
- package/.storybook/storybook.less +0 -8
- package/babel.config.js +0 -31
- package/index.js +0 -76
- package/jest.config.js +0 -9
- package/scripts/send-mattermost-message.sh +0 -21
- package/src/components/accordion/accordion.jsx +0 -132
- package/src/components/accordion/accordion.module.less +0 -66
- package/src/components/accordion/accordion.stories.jsx +0 -171
- package/src/components/accordion/chevron/chevron.jsx +0 -12
- package/src/components/accordion/chevron/chevron.module.less +0 -12
- package/src/components/accordion/helpers/accordion-with-default-toggle.jsx +0 -106
- package/src/components/accordion/helpers/accordion-with-default-toggle.module.less +0 -24
- package/src/components/actions/actions.jsx +0 -129
- package/src/components/actions/actions.module.less +0 -44
- package/src/components/actions/actions.shape.js +0 -32
- package/src/components/actions/actions.stories.jsx +0 -79
- package/src/components/badge/badge.jsx +0 -58
- package/src/components/badge/badge.module.less +0 -55
- package/src/components/badge/badge.stories.jsx +0 -31
- package/src/components/breadcrumb/breadcrumb.jsx +0 -49
- package/src/components/breadcrumb/breadcrumb.module.less +0 -39
- package/src/components/breadcrumb/breadcrumb.stories.jsx +0 -45
- package/src/components/breadcrumb/link.jsx +0 -31
- package/src/components/button/button.jsx +0 -156
- package/src/components/button/button.module.less +0 -300
- package/src/components/button/button.stories.jsx +0 -74
- package/src/components/button-group/button-group.jsx +0 -140
- package/src/components/button-group/button-group.module.less +0 -24
- package/src/components/button-group/button-group.stories-data.jsx +0 -67
- package/src/components/button-group/button-group.stories.jsx +0 -63
- package/src/components/buttons-and-links.stories.mdx +0 -55
- package/src/components/card/card.jsx +0 -51
- package/src/components/card/card.module.less +0 -48
- package/src/components/card/card.stories.jsx +0 -39
- package/src/components/check-box/check-box.jsx +0 -92
- package/src/components/check-box/check-box.module.less +0 -101
- package/src/components/check-box/check-box.stories.jsx +0 -27
- package/src/components/color/color.stories-data.jsx +0 -71
- package/src/components/color/color.stories.mdx +0 -37
- package/src/components/dialog/dialog.jsx +0 -77
- package/src/components/dialog/dialog.module.less +0 -76
- package/src/components/divider/divider.jsx +0 -40
- package/src/components/divider/divider.module.less +0 -28
- package/src/components/divider/divider.stories.jsx +0 -50
- package/src/components/drawer/drawer-resize-wrapper.jsx +0 -76
- package/src/components/drawer/drawer-tabs.jsx +0 -44
- package/src/components/drawer/drawer.jsx +0 -161
- package/src/components/drawer/drawer.module.less +0 -217
- package/src/components/drawer/drawer.stories.jsx +0 -296
- package/src/components/empty/empty.jsx +0 -52
- package/src/components/empty/empty.module.less +0 -17
- package/src/components/empty/empty.stories.jsx +0 -26
- package/src/components/file-input/file-input.jsx +0 -101
- package/src/components/file-input/file-input.module.less +0 -3
- package/src/components/file-input/file-input.stories.jsx +0 -109
- package/src/components/form/field.jsx +0 -96
- package/src/components/form/field.stories.jsx +0 -101
- package/src/components/form/form.module.less +0 -30
- package/src/components/form/form.stories.jsx +0 -191
- package/src/components/heading/heading.jsx +0 -105
- package/src/components/heading/heading.module.less +0 -59
- package/src/components/heading/heading.stories.jsx +0 -60
- package/src/components/icon/deprecated-icon.jsx +0 -97
- package/src/components/icon/icon.jsx +0 -71
- package/src/components/icon/icon.module.less +0 -33
- package/src/components/icon/icon.stories.jsx +0 -37
- package/src/components/icon/icons.example.module.less +0 -4
- package/src/components/input/input.jsx +0 -167
- package/src/components/input/input.module.less +0 -94
- package/src/components/input/input.stories.jsx +0 -28
- package/src/components/input-group/input-group-addon/input-group-addon.jsx +0 -36
- package/src/components/input-group/input-group-addon/input-group-addon.module.less +0 -31
- package/src/components/input-group/input-group.jsx +0 -51
- package/src/components/input-group/input-group.module.less +0 -10
- package/src/components/input-group/input-group.stories.jsx +0 -77
- package/src/components/input-validation.stories.mdx +0 -61
- package/src/components/inputs.stories.mdx +0 -201
- package/src/components/label/label.jsx +0 -115
- package/src/components/label/label.module.less +0 -43
- package/src/components/label/label.stories.jsx +0 -60
- package/src/components/layout/column/column.jsx +0 -85
- package/src/components/layout/column/styles.js +0 -45
- package/src/components/layout/column.stories.jsx +0 -60
- package/src/components/layout/examples/afe.stories.jsx +0 -180
- package/src/components/layout/examples/blowout.stories.jsx +0 -68
- package/src/components/layout/examples/casing-loads.stories.jsx +0 -297
- package/src/components/layout/examples/formation.stories.jsx +0 -110
- package/src/components/layout/examples/projects.stories.jsx +0 -108
- package/src/components/layout/examples/reservoirs.stories.jsx +0 -211
- package/src/components/layout/examples/site.stories.jsx +0 -263
- package/src/components/layout/flex/flex.jsx +0 -48
- package/src/components/layout/flex/flex.stories.jsx +0 -59
- package/src/components/layout/form-row/form-row.jsx +0 -15
- package/src/components/layout/form-row/form-row.module.less +0 -11
- package/src/components/layout/grid/grid.jsx +0 -62
- package/src/components/layout/grid/grid.stories.jsx +0 -67
- package/src/components/layout/page/page.jsx +0 -42
- package/src/components/layout/page/page.module.less +0 -27
- package/src/components/layout/page.stories.jsx +0 -93
- package/src/components/layout/placeholder.jsx +0 -2
- package/src/components/layout/print-header/print-header.jsx +0 -22
- package/src/components/layout/print-header/print-header.module.less +0 -9
- package/src/components/layout/row/row.jsx +0 -75
- package/src/components/layout/row/row.module.less +0 -7
- package/src/components/layout/spacer/spacer.jsx +0 -26
- package/src/components/layout/spacer/spacer.stories.jsx +0 -50
- package/src/components/layout-forms.stories.mdx +0 -104
- package/src/components/layout-general.stories.mdx +0 -215
- package/src/components/list/list-row/item-content.jsx +0 -15
- package/src/components/list/list-row/label.jsx +0 -11
- package/src/components/list/list-row/list-heading.jsx +0 -52
- package/src/components/list/list-row/list-row.jsx +0 -128
- package/src/components/list/list-row/list-subheading.jsx +0 -72
- package/src/components/list/list-row/meta-content.jsx +0 -24
- package/src/components/list/list-row/meta-count.jsx +0 -10
- package/src/components/list/list-row/name.jsx +0 -45
- package/src/components/list/list.jsx +0 -276
- package/src/components/list/list.module.less +0 -256
- package/src/components/list/list.stories-data.jsx +0 -287
- package/src/components/list/list.stories.jsx +0 -458
- package/src/components/list/toggle-narrow.jsx +0 -13
- package/src/components/loader/loader.jsx +0 -63
- package/src/components/loader/loader.module.less +0 -63
- package/src/components/loader/loader.stories.jsx +0 -155
- package/src/components/menu/index.js +0 -7
- package/src/components/menu/layer/divider.jsx +0 -4
- package/src/components/menu/layer/heading.jsx +0 -15
- package/src/components/menu/layer/layer.jsx +0 -82
- package/src/components/menu/layer/option.jsx +0 -77
- package/src/components/menu/layer/path.js +0 -44
- package/src/components/menu/layer/placementOptions.js +0 -6
- package/src/components/menu/layer/section.jsx +0 -66
- package/src/components/menu/menu.jsx +0 -359
- package/src/components/menu/menu.module.less +0 -241
- package/src/components/menu/menu.stories-data.jsx +0 -168
- package/src/components/menu/menu.stories.jsx +0 -126
- package/src/components/menu/menu.test.js +0 -58
- package/src/components/menu/trigger/button.jsx +0 -50
- package/src/components/menu/trigger/component.jsx +0 -14
- package/src/components/menu/trigger/text.jsx +0 -25
- package/src/components/menu/trigger/trigger.jsx +0 -86
- package/src/components/message/dismiss.jsx +0 -26
- package/src/components/message/message.jsx +0 -137
- package/src/components/message/message.module.less +0 -114
- package/src/components/message/message.stories.jsx +0 -84
- package/src/components/modal/modal.jsx +0 -50
- package/src/components/modal/modal.module.less +0 -39
- package/src/components/modal/modal.stories.jsx +0 -162
- package/src/components/option-dropdown/heading.jsx +0 -6
- package/src/components/option-dropdown/layer.jsx +0 -81
- package/src/components/option-dropdown/option-dropdown.jsx +0 -53
- package/src/components/option-dropdown/option-dropdown.module.less +0 -50
- package/src/components/option-dropdown/option-dropdown.stories.jsx +0 -35
- package/src/components/option-dropdown/option.jsx +0 -13
- package/src/components/pagination/pagination.jsx +0 -139
- package/src/components/pagination/pagination.module.less +0 -11
- package/src/components/pagination/pagination.stories.jsx +0 -78
- package/src/components/pagination/pagination.test.js +0 -92
- package/src/components/pagination/pagination.viewdata.js +0 -66
- package/src/components/pop-confirm/content.jsx +0 -25
- package/src/components/pop-confirm/pop-confirm.jsx +0 -61
- package/src/components/pop-confirm/pop-confirm.module.less +0 -18
- package/src/components/pop-confirm/pop-confirm.stories.jsx +0 -53
- package/src/components/popover/popover.jsx +0 -112
- package/src/components/popover/popover.module.less +0 -22
- package/src/components/popover/popover.stories.jsx +0 -59
- package/src/components/portal/portal.jsx +0 -16
- package/src/components/portal/portal.stories.jsx +0 -69
- package/src/components/progress-bar/progress-bar.jsx +0 -64
- package/src/components/progress-bar/progress-bar.module.less +0 -64
- package/src/components/progress-bar/progress-bar.stories.jsx +0 -23
- package/src/components/radio-button/radio-button.jsx +0 -139
- package/src/components/radio-button/radio-button.module.less +0 -135
- package/src/components/radio-button/radio-button.stories.jsx +0 -37
- package/src/components/radio-button/radio-input.jsx +0 -52
- package/src/components/select/custom-select/custom-select.jsx +0 -440
- package/src/components/select/custom-select/custom-select.module.less +0 -123
- package/src/components/select/custom-select/custom-select.reducer.js +0 -157
- package/src/components/select/custom-select/layer/heading.jsx +0 -13
- package/src/components/select/custom-select/layer/layer.jsx +0 -73
- package/src/components/select/custom-select/layer/option.jsx +0 -54
- package/src/components/select/custom-select/layer/placementOptions.js +0 -7
- package/src/components/select/custom-select/layer/section.jsx +0 -35
- package/src/components/select/custom-select/trigger/input.jsx +0 -100
- package/src/components/select/custom-select/trigger/trigger.jsx +0 -155
- package/src/components/select/custom-select/trigger/trigger.module.less +0 -289
- package/src/components/select/native-select/native-select.jsx +0 -198
- package/src/components/select/native-select/native-select.module.less +0 -107
- package/src/components/select/select.input.js +0 -146
- package/src/components/select/select.jsx +0 -207
- package/src/components/select/select.stories-data.jsx +0 -92
- package/src/components/select/select.stories.jsx +0 -135
- package/src/components/select/select.test.js +0 -519
- package/src/components/side-bar/container.module.less +0 -29
- package/src/components/side-bar/link.jsx +0 -83
- package/src/components/side-bar/sections.jsx +0 -23
- package/src/components/side-bar/side-bar.jsx +0 -102
- package/src/components/side-bar/side-bar.module.less +0 -137
- package/src/components/side-bar/side-bar.stories.jsx +0 -101
- package/src/components/slider/rc-slider.less +0 -47
- package/src/components/slider/slider-tooltip.jsx +0 -20
- package/src/components/slider/slider.jsx +0 -233
- package/src/components/slider/slider.module.less +0 -40
- package/src/components/slider/slider.stories.jsx +0 -110
- package/src/components/spinner/spinner.jsx +0 -37
- package/src/components/spinner/spinner.module.less +0 -115
- package/src/components/spinner/spinner.stories.jsx +0 -24
- package/src/components/table/cell/cell.jsx +0 -621
- package/src/components/table/cell/cell.module.less +0 -164
- package/src/components/table/footer/footer.jsx +0 -66
- package/src/components/table/footer/footer.module.less +0 -14
- package/src/components/table/helper.js +0 -64
- package/src/components/table/helper.test.js +0 -166
- package/src/components/table/icon/icon.module.less +0 -31
- package/src/components/table/row/expanded-content-row.jsx +0 -16
- package/src/components/table/row/row.jsx +0 -253
- package/src/components/table/row/row.module.less +0 -62
- package/src/components/table/table-scroll-wrapper.jsx +0 -49
- package/src/components/table/table.jsx +0 -234
- package/src/components/table/table.module.less +0 -146
- package/src/components/table/table.stories-data.jsx +0 -875
- package/src/components/table/table.stories.jsx +0 -759
- package/src/components/table/table.test.js +0 -30
- package/src/components/table/table.variables.less +0 -11
- package/src/components/table/table.viewdata.js +0 -26
- package/src/components/table/title/title.jsx +0 -30
- package/src/components/table/title/title.module.less +0 -11
- package/src/components/tabs/content.jsx +0 -14
- package/src/components/tabs/label.jsx +0 -50
- package/src/components/tabs/tabs.jsx +0 -191
- package/src/components/tabs/tabs.module.less +0 -73
- package/src/components/tabs/tabs.stories.jsx +0 -110
- package/src/components/text/text.jsx +0 -64
- package/src/components/text/text.module.less +0 -45
- package/src/components/text/text.stories.jsx +0 -31
- package/src/components/text-link/text-link.jsx +0 -23
- package/src/components/text-link/text-link.stories.jsx +0 -20
- package/src/components/textarea/textarea.jsx +0 -126
- package/src/components/textarea/textarea.module.less +0 -55
- package/src/components/textarea/textarea.stories.jsx +0 -26
- package/src/components/toaster/toaster.jsx +0 -39
- package/src/components/toaster/toaster.less +0 -17
- package/src/components/toaster/toaster.stories.jsx +0 -116
- package/src/components/toggle/toggle.jsx +0 -65
- package/src/components/toggle/toggle.module.less +0 -139
- package/src/components/toggle/toggle.stories.jsx +0 -26
- package/src/components/tooltip/tooltip-layer.jsx +0 -72
- package/src/components/tooltip/tooltip.jsx +0 -108
- package/src/components/tooltip/tooltip.module.less +0 -28
- package/src/components/tooltip/tooltip.stories.jsx +0 -71
- package/src/components/top-bar/element/element.jsx +0 -72
- package/src/components/top-bar/element/link.jsx +0 -29
- package/src/components/top-bar/title.jsx +0 -24
- package/src/components/top-bar/top-bar.jsx +0 -79
- package/src/components/top-bar/top-bar.module.less +0 -190
- package/src/components/top-bar/top-bar.stories.jsx +0 -137
- package/src/components/top-bar/warning.jsx +0 -6
- package/src/components/tree/tree-item.jsx +0 -79
- package/src/components/tree/tree-placeholder.jsx +0 -6
- package/src/components/tree/tree.jsx +0 -129
- package/src/components/tree/tree.module.less +0 -33
- package/src/components/tree/tree.stories-data.jsx +0 -89
- package/src/components/tree/tree.stories.jsx +0 -106
- package/src/docs/components/page/page.jsx +0 -16
- package/src/docs/config/config.js +0 -1
- package/src/docs/html/favicon.png +0 -0
- package/src/docs/html/index.html +0 -11
- package/src/docs/navigation/footer/footer.jsx +0 -48
- package/src/docs/navigation/header/header.jsx +0 -39
- package/src/docs/navigation/header/header.module.less +0 -32
- package/src/docs/navigation/routes/routes.jsx +0 -16
- package/src/docs/start.jsx +0 -12
- package/src/docs/views/main/main.jsx +0 -209
- package/src/docs/views/main/main.module.less +0 -14
- package/src/docs/views/not-found/not-found.jsx +0 -5
- package/src/helpers/disabled-context.js +0 -8
- package/src/helpers/styles.js +0 -68
- package/src/helpers/text.js +0 -6
- package/src/helpers/types.js +0 -5
- package/src/hooks/index.js +0 -3
- package/src/hooks/use-focus.js +0 -11
- package/src/hooks/use-keyboard-event.js +0 -16
- package/src/hooks/use-window-width.js +0 -20
- package/src/images/icons/icon-drop.png +0 -0
- package/src/images/icons/icon-share.png +0 -0
- package/src/images/icons/icons8-junction.svg +0 -4
- package/src/images/logo.png +0 -0
- package/src/images/logo.svg +0 -13
- package/src/images/oliasoft-logo.svg +0 -1
- package/src/style/colors.less +0 -26
- package/src/style/external.less +0 -10
- package/src/style/fonts/lato/Lato-Bold.woff2 +0 -0
- package/src/style/fonts/lato/Lato-BoldItalic.woff2 +0 -0
- package/src/style/fonts/lato/Lato-Italic.woff2 +0 -0
- package/src/style/fonts/lato/Lato-Regular.woff2 +0 -0
- package/src/style/fonts.less +0 -27
- package/src/style/global.less +0 -51
- package/src/style/mixins.less +0 -68
- package/src/style/reset/reset.less +0 -34
- package/src/style/shared.less +0 -25
- package/src/style/theme.dark.less +0 -37
- package/src/style/theme.default.less +0 -74
- package/src/style/variables.less +0 -49
- package/webpack/webpack.common.js +0 -39
- package/webpack/webpack.common.rules.js +0 -102
- package/webpack/webpack.dev.js +0 -22
- package/webpack/webpack.prod.js +0 -23
- package/webpack/webpack.resolve.js +0 -22
package/package.json
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/react-ui-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Reusable UI components for React projects",
|
|
5
|
-
"
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./dist/index.js"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
6
15
|
"scripts": {
|
|
7
|
-
"build": "
|
|
8
|
-
"build:docs": "
|
|
16
|
+
"build": "yarn run build:docs && yarn run build:storybook",
|
|
17
|
+
"build:docs": "vite build --config vite.config.docs.mjs",
|
|
9
18
|
"build:css": "lessc src/style/external.less dist/gui-library.css",
|
|
10
|
-
"build:storybook": "build-storybook --quiet --output-dir ./public/storybook",
|
|
11
|
-
"
|
|
12
|
-
"dev:
|
|
13
|
-
"
|
|
14
|
-
"
|
|
19
|
+
"build:storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook --quiet --output-dir ./public/storybook",
|
|
20
|
+
"build:package": "vite build --config vite.config.mjs",
|
|
21
|
+
"dev:storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
|
|
22
|
+
"dev:docs": "vite --config vite.config.docs.mjs",
|
|
23
|
+
"preview:docs": "yarn run http-server ./public -o -p 9002 -c-1",
|
|
24
|
+
"preview:storybook": "yarn run http-server ./public/storybook -o -p 9003 -c-1",
|
|
25
|
+
"test": "yarn run prettier:check && yarn run lint:check && yarn run test:unit",
|
|
26
|
+
"test:unit": "vitest",
|
|
27
|
+
"test:unit:coverage": "vitest --coverage",
|
|
15
28
|
"lint:check": "eslint \"**/*.{js,jsx}\"",
|
|
16
29
|
"lint:fix": "eslint --fix \"**/*.{js,jsx}\"",
|
|
17
30
|
"prettier:check": "prettier --check \"**/*.{js,jsx,json,css,less}\"",
|
|
@@ -35,45 +48,18 @@
|
|
|
35
48
|
},
|
|
36
49
|
"homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
|
|
37
50
|
"devDependencies": {
|
|
38
|
-
"@babel/cli": "^7.15.4",
|
|
39
|
-
"@babel/core": "^7.15.5",
|
|
40
|
-
"@babel/eslint-parser": "^7.15.4",
|
|
41
|
-
"@babel/node": "^7.15.4",
|
|
42
|
-
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
43
|
-
"@babel/plugin-proposal-decorators": "^7.15.4",
|
|
44
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.14.5",
|
|
45
|
-
"@babel/plugin-proposal-function-sent": "^7.14.5",
|
|
46
|
-
"@babel/plugin-proposal-json-strings": "^7.14.5",
|
|
47
|
-
"@babel/plugin-proposal-numeric-separator": "^7.14.5",
|
|
48
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.15.6",
|
|
49
|
-
"@babel/plugin-proposal-throw-expressions": "^7.14.5",
|
|
50
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
51
|
-
"@babel/plugin-syntax-import-meta": "^7.10.4",
|
|
52
|
-
"@babel/preset-env": "^7.15.6",
|
|
53
|
-
"@babel/preset-react": "^7.14.5",
|
|
54
|
-
"@babel/runtime": "^7.15.4",
|
|
55
51
|
"@storybook/addon-actions": "^6.5.10",
|
|
56
52
|
"@storybook/addon-essentials": "^6.5.10",
|
|
57
53
|
"@storybook/addons": "^6.5.10",
|
|
58
|
-
"@storybook/builder-
|
|
59
|
-
"@storybook/manager-webpack5": "^6.5.10",
|
|
54
|
+
"@storybook/builder-vite": "^0.2.4",
|
|
60
55
|
"@storybook/react": "^6.5.10",
|
|
61
56
|
"@types/lodash": "^4.14.172",
|
|
62
57
|
"@types/mocha": "^9.0.0",
|
|
63
58
|
"@types/react": "^17.0.21",
|
|
64
59
|
"@types/react-redux": "^7.1.18",
|
|
65
60
|
"@types/seamless-immutable": "^7.1.16",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"babel-jest": "^27.2.0",
|
|
69
|
-
"babel-loader": "^8.2.2",
|
|
70
|
-
"babel-plugin-transform-md-import-to-string": "^1.0.6",
|
|
71
|
-
"babel-plugin-webpack-aliases": "^1.1.3",
|
|
72
|
-
"clean-css": "^5.1.5",
|
|
73
|
-
"css-loader": "^6.2.0",
|
|
74
|
-
"css-minimizer-webpack-plugin": "^3.0.2",
|
|
75
|
-
"cssnano": "^5.0.8",
|
|
76
|
-
"eslint": "^7.32.0",
|
|
61
|
+
"@vitest/coverage-c8": "^0.25.1",
|
|
62
|
+
"eslint": "^8.27.0",
|
|
77
63
|
"eslint-config-airbnb": "^18.2.1",
|
|
78
64
|
"eslint-config-prettier": "^8.3.0",
|
|
79
65
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
@@ -81,43 +67,35 @@
|
|
|
81
67
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
82
68
|
"eslint-plugin-react": "^7.25.1",
|
|
83
69
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
84
|
-
"html-loader": "^2.1.2",
|
|
85
|
-
"html-webpack-plugin": "^5.3.2",
|
|
86
70
|
"husky": "^7.0.2",
|
|
87
|
-
"jest": "^27.2.0",
|
|
88
|
-
"jest-transform-stub": "^2.0.0",
|
|
89
71
|
"less": "^4.1.1",
|
|
90
|
-
"less-loader": "^10.0.1",
|
|
91
72
|
"lint-staged": "^11.1.2",
|
|
92
|
-
"mini-css-extract-plugin": "^2.3.0",
|
|
93
73
|
"prettier": "2.4.0",
|
|
94
74
|
"react": "^17.0",
|
|
95
75
|
"react-dom": "^17.0",
|
|
96
76
|
"storybook-dark-mode": "^1.1.0",
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"webpack-cli": "^4.8.0",
|
|
100
|
-
"webpack-dev-server": "^4.2.1",
|
|
101
|
-
"webpack-merge": "^5.8.0"
|
|
77
|
+
"vite": "^3.1.8",
|
|
78
|
+
"vite-preset-react": "^2.3.0"
|
|
102
79
|
},
|
|
103
80
|
"peerDependencies": {
|
|
104
81
|
"react": "^17.0",
|
|
105
82
|
"react-dom": "^17.0"
|
|
106
83
|
},
|
|
107
84
|
"dependencies": {
|
|
108
|
-
"@babel/polyfill": "^7.8.7",
|
|
109
85
|
"@infinium/react-keyboard-event-handler": "^1.5.8",
|
|
110
|
-
"@mdx-js/loader": "^1.6.22",
|
|
111
|
-
"@mdx-js/react": "^1.6.22",
|
|
112
86
|
"@minoru/react-dnd-treeview": "^1.6.1",
|
|
87
|
+
"@storybook/addon-links": "^6.5.13",
|
|
88
|
+
"@vitejs/plugin-react": "^2.1.0",
|
|
113
89
|
"classnames": "^2.3.1",
|
|
114
90
|
"core-js": "^3.17.3",
|
|
115
|
-
"
|
|
91
|
+
"http-server": "^14.1.1",
|
|
116
92
|
"immer": "^9.0.6",
|
|
93
|
+
"jsdom": "^20.0.2",
|
|
117
94
|
"less-vars-to-js": "^1.3.0",
|
|
118
95
|
"lodash": "^4.17.21",
|
|
119
96
|
"memoize-one": "^5.2.1",
|
|
120
97
|
"normalize.css": "^8.0.1",
|
|
98
|
+
"path": "^0.12.7",
|
|
121
99
|
"prop-types": "^15.7.2",
|
|
122
100
|
"rc-slider": "^9.7.2",
|
|
123
101
|
"react-beautiful-dnd": "^13.1.0",
|
|
@@ -132,6 +110,10 @@
|
|
|
132
110
|
"react-toastify": "^8.0.2",
|
|
133
111
|
"react-window": "^1.8.6",
|
|
134
112
|
"resize-observer-polyfill": "^1.5.1",
|
|
135
|
-
"
|
|
113
|
+
"rollup-plugin-analyzer": "^4.0.0",
|
|
114
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
115
|
+
"styled-components": "^5.3.1",
|
|
116
|
+
"vite-plugin-html": "^3.2.0",
|
|
117
|
+
"vitest": "^0.25.1"
|
|
136
118
|
}
|
|
137
119
|
}
|
package/.eslintignore
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
node: true,
|
|
6
|
-
jest: true,
|
|
7
|
-
},
|
|
8
|
-
extends: ['plugin:react/recommended', 'airbnb', 'prettier'],
|
|
9
|
-
parser: '@babel/eslint-parser',
|
|
10
|
-
parserOptions: {
|
|
11
|
-
ecmaFeatures: {
|
|
12
|
-
jsx: true,
|
|
13
|
-
},
|
|
14
|
-
ecmaVersion: 12,
|
|
15
|
-
sourceType: 'module',
|
|
16
|
-
},
|
|
17
|
-
plugins: ['react'],
|
|
18
|
-
settings: {
|
|
19
|
-
'import/resolver': {
|
|
20
|
-
alias: {
|
|
21
|
-
map: [
|
|
22
|
-
['~components', './src/components'],
|
|
23
|
-
['~docs', './src/docs'],
|
|
24
|
-
['~helpers', './src/helpers'],
|
|
25
|
-
['~style', './src/style'],
|
|
26
|
-
['~vendor', './src/vendor'],
|
|
27
|
-
],
|
|
28
|
-
extensions: ['.js', '.jsx'],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
rules: {
|
|
33
|
-
'arrow-parens': 0,
|
|
34
|
-
'array-callback-return': 0,
|
|
35
|
-
camelcase: 0,
|
|
36
|
-
'comma-dangle': 0,
|
|
37
|
-
'consistent-return': 0,
|
|
38
|
-
curly: 0,
|
|
39
|
-
'class-methods-use-this': 0,
|
|
40
|
-
'default-case': 0,
|
|
41
|
-
eqeqeq: 0,
|
|
42
|
-
'eol-last': 0,
|
|
43
|
-
'function-paren-newline': 0,
|
|
44
|
-
'max-len': 0,
|
|
45
|
-
'import/extensions': 0,
|
|
46
|
-
'import/prefer-default-export': 0,
|
|
47
|
-
'object-curly-newline': 0,
|
|
48
|
-
'object-curly-spacing': 0,
|
|
49
|
-
'one-var-declaration-per-line': 0,
|
|
50
|
-
'one-var': 0,
|
|
51
|
-
radix: 0,
|
|
52
|
-
'prefer-template': 0,
|
|
53
|
-
'prefer-const': 0,
|
|
54
|
-
'prefer-destructuring': [
|
|
55
|
-
'error',
|
|
56
|
-
{
|
|
57
|
-
VariableDeclarator: {
|
|
58
|
-
array: false,
|
|
59
|
-
object: true,
|
|
60
|
-
},
|
|
61
|
-
AssignmentExpression: {
|
|
62
|
-
array: false,
|
|
63
|
-
object: false,
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
enforceForRenamedProperties: false,
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
'spaced-comment': 0,
|
|
71
|
-
'no-multi-spaces': 0,
|
|
72
|
-
'arrow-body-style': 0,
|
|
73
|
-
'no-shadow': 0,
|
|
74
|
-
'no-else-return': 0,
|
|
75
|
-
'no-param-reassign': 0,
|
|
76
|
-
'no-plusplus': 0,
|
|
77
|
-
'no-restricted-globals': 0,
|
|
78
|
-
'no-unused-vars': 0,
|
|
79
|
-
'no-unused-state': 0,
|
|
80
|
-
'no-case-declarations': 0,
|
|
81
|
-
'no-return-assign': 0,
|
|
82
|
-
'no-prototype-builtins': 0,
|
|
83
|
-
'no-restricted-syntax': 0,
|
|
84
|
-
'no-cond-assign': [2, 'except-parens'],
|
|
85
|
-
'no-console': 0,
|
|
86
|
-
'no-constant-condition': 0,
|
|
87
|
-
'no-underscore-dangle': 0,
|
|
88
|
-
'no-restricted-properties': 0,
|
|
89
|
-
'no-nested-ternary': 0,
|
|
90
|
-
'no-mixed-operators': 0,
|
|
91
|
-
'no-confusing-arrow': 0,
|
|
92
|
-
'no-lonely-if': 0,
|
|
93
|
-
'nonblock-statement-body-position': 0,
|
|
94
|
-
'react/jsx-tag-spacing': 0,
|
|
95
|
-
'react/jsx-one-expression-per-line': 0,
|
|
96
|
-
'react/no-array-index-key': 0,
|
|
97
|
-
'react/forbid-prop-types': 0,
|
|
98
|
-
'react/destructuring-assignment': 0,
|
|
99
|
-
'react/no-unused-state': 0,
|
|
100
|
-
'react/no-access-state-in-setstate': 0,
|
|
101
|
-
'react/no-did-update-set-state': 0,
|
|
102
|
-
'react/prop-types': 0,
|
|
103
|
-
'react/self-closing-comp': [
|
|
104
|
-
'error',
|
|
105
|
-
{
|
|
106
|
-
component: true,
|
|
107
|
-
html: false,
|
|
108
|
-
},
|
|
109
|
-
],
|
|
110
|
-
'jsx-a11y/no-static-element-interactions': 0,
|
|
111
|
-
'jsx-a11y/click-events-have-key-events': 0,
|
|
112
|
-
'jsx-a11y/tabindex-no-positive': 0,
|
|
113
|
-
'jsx-a11y/label-has-associated-control': 0,
|
|
114
|
-
'jsx-a11y/label-has-for': 0,
|
|
115
|
-
'import/no-extraneous-dependencies': [
|
|
116
|
-
'error',
|
|
117
|
-
{
|
|
118
|
-
devDependencies: [
|
|
119
|
-
'src/components/**/*.stories.{js,jsx}',
|
|
120
|
-
'webpack/**/*.js',
|
|
121
|
-
],
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
},
|
|
125
|
-
};
|
package/.gitlab-ci.yml
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
image: node:18
|
|
2
|
-
|
|
3
|
-
stages:
|
|
4
|
-
- test
|
|
5
|
-
- release
|
|
6
|
-
|
|
7
|
-
test:
|
|
8
|
-
stage: test
|
|
9
|
-
only:
|
|
10
|
-
- merge_requests
|
|
11
|
-
script:
|
|
12
|
-
- npm install --progress=false --no-save
|
|
13
|
-
- npm run build
|
|
14
|
-
- npm run test
|
|
15
|
-
|
|
16
|
-
cache:
|
|
17
|
-
paths:
|
|
18
|
-
- node_modules/
|
|
19
|
-
- public/
|
|
20
|
-
|
|
21
|
-
# Publish the static docs site (including Storybook) to Gitlab pages upon merge to master
|
|
22
|
-
pages:
|
|
23
|
-
stage: release
|
|
24
|
-
only:
|
|
25
|
-
- master
|
|
26
|
-
script:
|
|
27
|
-
- npm install --progress=false --no-save
|
|
28
|
-
- npm run build
|
|
29
|
-
- cp public/index.html public/404.html
|
|
30
|
-
artifacts:
|
|
31
|
-
paths:
|
|
32
|
-
- public
|
|
33
|
-
|
|
34
|
-
# Push a tag and publish the release to the public NPM registry upon merge to master
|
|
35
|
-
# Loosely inspired by:
|
|
36
|
-
# - https://markswanderingthoughts.nl/tagging-in-gitlab-ci-pipeline-using-deploy-keys/
|
|
37
|
-
# - https://www.garybell.co.uk/creating-a-release-with-gitlab-ci-and-composer/
|
|
38
|
-
publish:
|
|
39
|
-
stage: release
|
|
40
|
-
only:
|
|
41
|
-
- master
|
|
42
|
-
script:
|
|
43
|
-
# Get the version from package.json
|
|
44
|
-
- VERSION=$(node -p "require('./package.json').version")
|
|
45
|
-
# Prepare MatterMost message
|
|
46
|
-
- MESSAGE="🤖 React UI Library version $VERSION released"
|
|
47
|
-
- chmod +x ./scripts/send-mattermost-message.sh
|
|
48
|
-
# Prepare .npmrc
|
|
49
|
-
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
50
|
-
# Configure git
|
|
51
|
-
- mkdir -p ~/.ssh
|
|
52
|
-
- echo "$SSH_PRIVATE_KEY_TOOLKIT" > ~/.ssh/id_rsa; chmod 0600 ~/.ssh/id_rsa
|
|
53
|
-
- echo "StrictHostKeyChecking no " > /root/.ssh/config
|
|
54
|
-
- git config --global http.sslVerify false
|
|
55
|
-
- git config --global user.email "$GITLAB_USER_EMAIL"
|
|
56
|
-
- git config --global user.name "🤖 GitLab CI/CD"
|
|
57
|
-
- echo "setting origin remote to 'git@$CI_SERVER_HOST:$CI_PROJECT_PATH.git'"
|
|
58
|
-
- git remote rm origin
|
|
59
|
-
- git remote add origin git@$CI_SERVER_HOST:$CI_PROJECT_PATH.git
|
|
60
|
-
- git fetch --quiet
|
|
61
|
-
- git checkout "$CI_BUILD_REF_NAME"
|
|
62
|
-
# Only complete pipeline if version does not already exist
|
|
63
|
-
- >
|
|
64
|
-
if [ $(git tag -l "$VERSION") ]; then
|
|
65
|
-
echo "Version $VERSION already exists"
|
|
66
|
-
exit 1
|
|
67
|
-
else
|
|
68
|
-
echo "Tagging release in git"
|
|
69
|
-
git tag $VERSION -m "🤖 Tagged by Gitlab CI/CD Pipeline" -m "For further reference see $CI_PIPELINE_URL" -m "[skip ci]"
|
|
70
|
-
echo "Pushing tag to remote repository"
|
|
71
|
-
git push origin $VERSION --no-verify
|
|
72
|
-
echo "Publishing package to NPM registry"
|
|
73
|
-
npm publish
|
|
74
|
-
echo "Notifying MatterMost"
|
|
75
|
-
./scripts/send-mattermost-message.sh "$MATTERMOST_BOT_KEY" "$MESSAGE"
|
|
76
|
-
fi
|
package/.husky/pre-commit
DELETED
package/.prettierignore
DELETED
package/.prettierrc
DELETED
package/.storybook/main.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const { merge } = require('webpack-merge');
|
|
2
|
-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
3
|
-
const getRules = require('../webpack/webpack.common.rules.js');
|
|
4
|
-
const resolve = require('../webpack/webpack.resolve.js').resolve;
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
stories: ['../src/components/**/*.stories.@(js|jsx|mdx)'],
|
|
8
|
-
addons: [
|
|
9
|
-
'@storybook/addon-actions',
|
|
10
|
-
{
|
|
11
|
-
name: '@storybook/addon-docs',
|
|
12
|
-
options: {
|
|
13
|
-
sourceLoaderOptions: {
|
|
14
|
-
injectStoryParameters: false,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
'storybook-dark-mode',
|
|
19
|
-
],
|
|
20
|
-
features: {
|
|
21
|
-
modernInlineRender: true,
|
|
22
|
-
},
|
|
23
|
-
core: {
|
|
24
|
-
builder: 'webpack5',
|
|
25
|
-
},
|
|
26
|
-
webpackFinal: (config) =>
|
|
27
|
-
merge(config, {
|
|
28
|
-
module: { rules: getRules('development') },
|
|
29
|
-
plugins: [
|
|
30
|
-
new MiniCssExtractPlugin({
|
|
31
|
-
filename: '[name].css',
|
|
32
|
-
}),
|
|
33
|
-
],
|
|
34
|
-
resolve,
|
|
35
|
-
}),
|
|
36
|
-
};
|
package/.storybook/preview.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Toaster } from '../';
|
|
3
|
-
import { useDarkMode } from 'storybook-dark-mode';
|
|
4
|
-
import { themes } from '@storybook/theming';
|
|
5
|
-
import { DocsContainer } from '@storybook/addon-docs';
|
|
6
|
-
import '../src/style/global.less';
|
|
7
|
-
import './storybook.less';
|
|
8
|
-
|
|
9
|
-
export const decorators = [
|
|
10
|
-
(Story) => {
|
|
11
|
-
document.documentElement.setAttribute(
|
|
12
|
-
'data-theme',
|
|
13
|
-
useDarkMode() ? 'dark' : 'default',
|
|
14
|
-
);
|
|
15
|
-
return (
|
|
16
|
-
<>
|
|
17
|
-
<Story />
|
|
18
|
-
<Toaster />
|
|
19
|
-
</>
|
|
20
|
-
);
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
|
|
24
|
-
export const parameters = {
|
|
25
|
-
/**
|
|
26
|
-
* Fix for dark mode docs from https://github.com/hipstersmoothie/storybook-dark-mode/issues/180
|
|
27
|
-
*/
|
|
28
|
-
docs: {
|
|
29
|
-
container: (props) => {
|
|
30
|
-
const isDark = useDarkMode();
|
|
31
|
-
const { id: storyId, storyById } = props.context;
|
|
32
|
-
const {
|
|
33
|
-
parameters: { docs = {} },
|
|
34
|
-
} = storyById(storyId);
|
|
35
|
-
docs.theme = isDark ? themes.dark : themes.light;
|
|
36
|
-
|
|
37
|
-
return React.createElement(DocsContainer, props);
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
};
|
package/babel.config.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
module.exports = (api) => {
|
|
2
|
-
api.cache(true);
|
|
3
|
-
|
|
4
|
-
const presets = [
|
|
5
|
-
[
|
|
6
|
-
'@babel/preset-env',
|
|
7
|
-
{
|
|
8
|
-
targets: {
|
|
9
|
-
browsers: ['defaults'],
|
|
10
|
-
},
|
|
11
|
-
useBuiltIns: 'usage',
|
|
12
|
-
corejs: 3,
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
'@babel/preset-react',
|
|
16
|
-
];
|
|
17
|
-
|
|
18
|
-
const plugins = [
|
|
19
|
-
'@babel/plugin-proposal-class-properties',
|
|
20
|
-
'babel-plugin-transform-md-import-to-string',
|
|
21
|
-
[
|
|
22
|
-
'babel-plugin-webpack-aliases',
|
|
23
|
-
{ config: './webpack/webpack.resolve.js' },
|
|
24
|
-
],
|
|
25
|
-
];
|
|
26
|
-
|
|
27
|
-
return {
|
|
28
|
-
presets,
|
|
29
|
-
plugins,
|
|
30
|
-
};
|
|
31
|
-
};
|
package/index.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Components
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export { Accordion } from './src/components/accordion/accordion';
|
|
6
|
-
export { AccordionWithDefaultToggle } from './src/components/accordion/helpers/accordion-with-default-toggle';
|
|
7
|
-
export { Actions } from './src/components/actions/actions';
|
|
8
|
-
export { Badge } from './src/components/badge/badge';
|
|
9
|
-
export { Breadcrumb } from './src/components/breadcrumb/breadcrumb';
|
|
10
|
-
export { Button } from './src/components/button/button';
|
|
11
|
-
export { ButtonGroup } from './src/components/button-group/button-group';
|
|
12
|
-
export { Card } from './src/components/card/card';
|
|
13
|
-
export { CheckBox } from './src/components/check-box/check-box';
|
|
14
|
-
export { Column } from './src/components/layout/column/column';
|
|
15
|
-
export { Divider } from './src/components/divider/divider';
|
|
16
|
-
export { Dialog } from './src/components/dialog/dialog';
|
|
17
|
-
export { Drawer } from './src/components/drawer/drawer';
|
|
18
|
-
export { Empty } from './src/components/empty/empty';
|
|
19
|
-
export { FileInput } from './src/components/file-input/file-input';
|
|
20
|
-
export { readFile } from './src/components/file-input/file-input';
|
|
21
|
-
export { Field } from './src/components/form/field';
|
|
22
|
-
export { Flex } from './src/components/layout/flex/flex';
|
|
23
|
-
export { FormRow } from './src/components/layout/form-row/form-row';
|
|
24
|
-
export { Grid } from './src/components/layout/grid/grid';
|
|
25
|
-
export { Icon } from './src/components/icon/icon';
|
|
26
|
-
export { InputGroup } from './src/components/input-group/input-group';
|
|
27
|
-
export { InputGroupAddon } from './src/components/input-group/input-group-addon/input-group-addon';
|
|
28
|
-
export { Heading } from './src/components/heading/heading';
|
|
29
|
-
export { Input, widthOfCharacters } from './src/components/input/input';
|
|
30
|
-
export { Label } from './src/components/label/label';
|
|
31
|
-
export { List } from './src/components/list/list';
|
|
32
|
-
export { ListHeading } from './src/components/list/list-row/list-heading';
|
|
33
|
-
export { ListSubheading } from './src/components/list/list-row/list-subheading';
|
|
34
|
-
export { Loader } from './src/components/loader/loader';
|
|
35
|
-
export { Menu } from './src/components/menu/menu';
|
|
36
|
-
export { Message } from './src/components/message/message';
|
|
37
|
-
export { Modal } from './src/components/modal/modal';
|
|
38
|
-
export { OptionDropdown } from './src/components/option-dropdown/option-dropdown';
|
|
39
|
-
export { Page } from './src/components/layout/page/page';
|
|
40
|
-
export { Pagination } from './src/components/pagination/pagination';
|
|
41
|
-
export { Popover } from './src/components/popover/popover';
|
|
42
|
-
export { Portal } from './src/components/portal/portal';
|
|
43
|
-
export { PrintHeader } from './src/components/layout/print-header/print-header';
|
|
44
|
-
export { ProgressBar } from './src/components/progress-bar/progress-bar';
|
|
45
|
-
export { RadioButton } from './src/components/radio-button/radio-button';
|
|
46
|
-
export { NativeSelect } from './src/components/select/native-select/native-select';
|
|
47
|
-
export { Row } from './src/components/layout/row/row';
|
|
48
|
-
export { Select } from './src/components/select/select';
|
|
49
|
-
export { SideBar } from './src/components/side-bar/side-bar';
|
|
50
|
-
export { Slider } from './src/components/slider/slider';
|
|
51
|
-
export { Spacer } from './src/components/layout/spacer/spacer';
|
|
52
|
-
export { Spinner } from './src/components/spinner/spinner';
|
|
53
|
-
export { Table } from './src/components/table/table';
|
|
54
|
-
export { Tabs } from './src/components/tabs/tabs';
|
|
55
|
-
export { Text } from './src/components/text/text';
|
|
56
|
-
export { TextLink } from './src/components/text-link/text-link';
|
|
57
|
-
export { TextArea } from './src/components/textarea/textarea';
|
|
58
|
-
export { Toaster, toast } from './src/components/toaster/toaster';
|
|
59
|
-
export { Toggle } from './src/components/toggle/toggle';
|
|
60
|
-
export { Tooltip } from './src/components/tooltip/tooltip';
|
|
61
|
-
export { TopBar } from './src/components/top-bar/top-bar';
|
|
62
|
-
export { PopConfirm } from './src/components/pop-confirm/pop-confirm';
|
|
63
|
-
export { Tree } from './src/components/tree/tree';
|
|
64
|
-
|
|
65
|
-
/*
|
|
66
|
-
Hooks
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
export { useKeyboardEvent, useFocus, useWindowWidth } from './src/hooks';
|
|
70
|
-
|
|
71
|
-
/*
|
|
72
|
-
Helpers
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
export { styleVariables } from './src/helpers/styles';
|
|
76
|
-
export { DisabledContext } from './src/helpers/disabled-context';
|
package/jest.config.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -eEuo pipefail
|
|
3
|
-
|
|
4
|
-
# This script requires the following things to be installed:
|
|
5
|
-
# - bash
|
|
6
|
-
# - curl
|
|
7
|
-
|
|
8
|
-
# Required inputs:
|
|
9
|
-
MATTERMOST_BOT_KEY=$1
|
|
10
|
-
MSG=$2
|
|
11
|
-
|
|
12
|
-
# Optional inputs:
|
|
13
|
-
CHANNEL=${3:-'#releases'}
|
|
14
|
-
USERNAME=${4:-'Gitlab CI/CD'}
|
|
15
|
-
ICON_URL=${5:-'https://oliasoftstaticwebsite.blob.core.windows.net/helpguideimages/robot-icon.png'}
|
|
16
|
-
MATTERMOST_URL=${6:-'https://mm.oliasoft.com/hooks/'}
|
|
17
|
-
|
|
18
|
-
curl -X POST \
|
|
19
|
-
--data-urlencode \
|
|
20
|
-
"payload={\"channel\": \"$CHANNEL\", \"username\": \"$USERNAME\", \"icon_url\": \"$ICON_URL\", \"text\": \"$MSG\"}" \
|
|
21
|
-
$MATTERMOST_URL$MATTERMOST_BOT_KEY
|