linear-react-components-ui 0.4.77-beta.2 → 0.4.77-beta.5
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/.eslintrc.json +95 -0
- package/.gitlab-ci.yml +19 -0
- package/.husky/pre-push +4 -0
- package/.vscode/launch.json +15 -0
- package/.vscode/settings.json +3 -0
- package/config/getHttpsConfig.js +56 -0
- package/config/paths.js +140 -0
- package/config/webpackDevServer.config.js +128 -0
- package/jest.config.js +3 -3
- package/lib/@types/LabelStyles.js +5 -0
- package/lib/@types/PermissionAttr.js +5 -0
- package/lib/@types/PointerEvents.js +5 -0
- package/lib/@types/Position.js +5 -0
- package/lib/@types/Size.js +5 -0
- package/lib/@types/SizePixels.js +5 -0
- package/lib/alerts/AlertContainer.js +2 -2
- package/lib/alerts/AlertProvider.js +12 -12
- package/lib/alerts/BaseAlert.js +6 -6
- package/lib/alerts/Message.js +21 -21
- package/lib/alerts/alert.spec.js +3 -3
- package/lib/alerts/helpers.js +4 -4
- package/lib/alerts/index.js +5 -5
- package/lib/alerts/withAlert.js +6 -6
- package/lib/assets/styles/commons.scss +0 -10
- package/lib/assets/styles/dropdown.scss +2 -22
- package/lib/assets/styles/effects.scss +0 -11
- package/lib/assets/styles/list.scss +0 -8
- package/lib/assets/styles/table.scss +7 -2
- package/lib/avatar/avatar.spec.js +20 -20
- package/lib/avatar/index.js +28 -28
- package/lib/badge/badge.spec.js +3 -3
- package/lib/badge/index.js +12 -12
- package/lib/buttons/ActivateButton.js +5 -5
- package/lib/buttons/AddButton.js +5 -5
- package/lib/buttons/Button.js +22 -14
- package/lib/buttons/ButtonGroups.js +4 -9
- package/lib/buttons/CancelButton.js +19 -6
- package/lib/buttons/DangerButton.js +16 -21
- package/lib/buttons/DefaultButton.js +73 -137
- package/lib/buttons/DestroyButton.js +15 -6
- package/lib/buttons/EditButton.js +5 -5
- package/lib/buttons/InactivateButton.js +5 -5
- package/lib/buttons/InfoButton.js +16 -21
- package/lib/buttons/PrimaryButton.js +16 -21
- package/lib/buttons/RestoreButton.js +5 -5
- package/lib/buttons/SaveButton.js +18 -5
- package/lib/buttons/SuccessButton.js +15 -20
- package/lib/buttons/WarningButton.js +15 -20
- package/lib/buttons/button_container/index.js +9 -22
- package/lib/buttons/buttons.spec.js +52 -51
- package/lib/buttons/index.js +32 -32
- package/lib/buttons/split_button/index.js +6 -43
- package/lib/buttons/types.js +5 -0
- package/lib/calendar/DangerCalendar.js +4 -4
- package/lib/calendar/InfoCalendar.js +4 -4
- package/lib/calendar/PrimaryCalendar.js +4 -4
- package/lib/calendar/SuccessCalendar.js +4 -4
- package/lib/calendar/WarningCalendar.js +4 -4
- package/lib/calendar/base/Day.js +8 -8
- package/lib/calendar/base/Month.js +6 -6
- package/lib/calendar/base/Week.js +7 -7
- package/lib/calendar/base/helpers.js +13 -13
- package/lib/calendar/base/index.js +20 -20
- package/lib/calendar/calendar.spec.js +16 -16
- package/lib/calendar/index.js +14 -14
- package/lib/checkbox/Label.js +7 -17
- package/lib/checkbox/checkbox.spec.js +16 -17
- package/lib/checkbox/index.js +45 -77
- package/lib/checkbox/types.js +5 -0
- package/lib/dialog/Alert.js +7 -7
- package/lib/dialog/Custom.js +19 -19
- package/lib/dialog/Error.js +7 -7
- package/lib/dialog/Information.js +7 -7
- package/lib/dialog/Question.js +12 -12
- package/lib/dialog/Warning.js +7 -7
- package/lib/dialog/base/Content.js +6 -6
- package/lib/dialog/base/Footer.js +5 -5
- package/lib/dialog/base/Header.js +14 -14
- package/lib/dialog/base/index.js +18 -18
- package/lib/dialog/base/style.js +2 -2
- package/lib/dialog/dialog.spec.js +19 -19
- package/lib/dialog/form/index.js +24 -24
- package/lib/dialog/index.js +15 -15
- package/lib/drawer/Content.js +8 -8
- package/lib/drawer/Drawer.js +20 -20
- package/lib/drawer/Drawer.spec.js +9 -9
- package/lib/drawer/Header.js +26 -26
- package/lib/drawer/helpers.js +4 -4
- package/lib/drawer/index.js +8 -8
- package/lib/dropdown/Popup.js +15 -9
- package/lib/dropdown/dropdown.spec.js +8 -8
- package/lib/dropdown/types.js +5 -0
- package/lib/dropdown/withDropdown.js +21 -48
- package/lib/fieldset/fieldset.spec.js +3 -3
- package/lib/fieldset/index.js +24 -24
- package/lib/form/Field.js +24 -24
- package/lib/form/FieldArray.js +25 -25
- package/lib/form/FieldNumber.js +15 -15
- package/lib/form/FieldPeriod.js +22 -22
- package/lib/form/form.spec.js +11 -11
- package/lib/form/helpers.js +6 -6
- package/lib/form/index.js +37 -37
- package/lib/form/withFieldHOC.js +14 -14
- package/lib/form/withFormSecurity.js +10 -10
- package/lib/gridlayout/GridCol.js +9 -9
- package/lib/gridlayout/GridRow.js +10 -10
- package/lib/gridlayout/gridLayout.spec.js +4 -4
- package/lib/gridlayout/index.js +5 -5
- package/lib/icons/helper.js +1 -1
- package/lib/icons/icons.spec.js +9 -9
- package/lib/icons/index.js +28 -45
- package/lib/icons/types.js +5 -0
- package/lib/index.js +16 -16
- package/lib/inputs/base/InputTextBase.js +65 -65
- package/lib/inputs/base/base.spec.js +13 -13
- package/lib/inputs/base/helpers.js +7 -7
- package/lib/inputs/color/color_input.spec.js +4 -4
- package/lib/inputs/color/index.js +16 -16
- package/lib/inputs/date/Dialog.js +7 -7
- package/lib/inputs/date/Dropdown.js +7 -7
- package/lib/inputs/date/date.spec.js +5 -5
- package/lib/inputs/date/helpers.js +5 -5
- package/lib/inputs/date/index.js +33 -33
- package/lib/inputs/inputHOC.js +12 -12
- package/lib/inputs/mask/BaseMask.js +9 -9
- package/lib/inputs/mask/Cnpj.js +10 -10
- package/lib/inputs/mask/Cpf.js +10 -10
- package/lib/inputs/mask/Phone.js +5 -5
- package/lib/inputs/mask/ZipCode.js +4 -4
- package/lib/inputs/mask/helpers.js +4 -4
- package/lib/inputs/mask/imaskHOC.js +33 -33
- package/lib/inputs/mask/index.js +10 -10
- package/lib/inputs/mask/input_mask.spec.js +47 -47
- package/lib/inputs/multiSelect/ActionButtons.js +13 -13
- package/lib/inputs/multiSelect/Dropdown.js +39 -39
- package/lib/inputs/multiSelect/helper.js +2 -2
- package/lib/inputs/multiSelect/index.js +22 -22
- package/lib/inputs/number/BaseNumber.js +8 -8
- package/lib/inputs/number/Currency.js +7 -7
- package/lib/inputs/number/Decimal.js +4 -4
- package/lib/inputs/number/format_number.js +1 -1
- package/lib/inputs/number/index.js +8 -8
- package/lib/inputs/number/numberfield.spec.js +5 -5
- package/lib/inputs/period/Dialog.js +7 -7
- package/lib/inputs/period/Dropdown.js +9 -9
- package/lib/inputs/period/PeriodList.js +9 -9
- package/lib/inputs/period/helper.js +6 -6
- package/lib/inputs/period/index.js +50 -52
- package/lib/inputs/search/index.js +24 -25
- package/lib/inputs/search/search_input.spec.js +4 -4
- package/lib/inputs/select/ActionButtons.js +12 -12
- package/lib/inputs/select/Dropdown.js +39 -39
- package/lib/inputs/select/helper.js +8 -4
- package/lib/inputs/select/index.js +7 -7
- package/lib/inputs/select/multiple/Selecteds.js +10 -10
- package/lib/inputs/select/multiple/index.js +29 -29
- package/lib/inputs/select/select.spec.js +11 -11
- package/lib/inputs/select/simple/index.js +31 -30
- package/lib/inputs/text/index.js +4 -4
- package/lib/inputs/text/textfield.spec.js +4 -4
- package/lib/inputs/textarea/index.js +7 -7
- package/lib/inputs/textarea/textarea.spec.js +2 -2
- package/lib/internals/colorStyles.js +2 -2
- package/lib/internals/constants.js +1 -1
- package/lib/internals/types.js +5 -0
- package/lib/internals/withTooltip.js +31 -39
- package/lib/labelMessages/index.js +34 -52
- package/lib/labelMessages/labelMessages.spec.js +16 -16
- package/lib/labelMessages/types.js +5 -0
- package/lib/labels/DangerLabel.js +4 -4
- package/lib/labels/DefaultLabel.js +22 -22
- package/lib/labels/InfoLabel.js +4 -4
- package/lib/labels/PrimaryLabel.js +4 -4
- package/lib/labels/SuccessLabel.js +4 -4
- package/lib/labels/WarningLabel.js +4 -4
- package/lib/labels/index.js +15 -15
- package/lib/labels/label.spec.js +18 -18
- package/lib/labels/label_container/index.js +8 -8
- package/lib/list/Header.js +9 -9
- package/lib/list/Item.js +45 -43
- package/lib/list/Separator.js +4 -4
- package/lib/list/helpers.js +5 -10
- package/lib/list/index.js +36 -106
- package/lib/list/list.spec.js +98 -127
- package/lib/menus/float/MenuItem.js +26 -38
- package/lib/menus/float/float-menu.spec.js +13 -13
- package/lib/menus/float/helpers.js +4 -4
- package/lib/menus/float/index.js +16 -24
- package/lib/menus/index.js +4 -4
- package/lib/menus/sidenav/ExpandMenu.js +8 -8
- package/lib/menus/sidenav/MenuLink.js +9 -9
- package/lib/menus/sidenav/NavMenuGroup.js +8 -8
- package/lib/menus/sidenav/NavMenuItem.js +25 -25
- package/lib/menus/sidenav/NavSubMenuItem.js +11 -11
- package/lib/menus/sidenav/helpers.js +5 -5
- package/lib/menus/sidenav/index.js +34 -34
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +7 -7
- package/lib/menus/sidenav/popup_menu_search/index.js +15 -14
- package/lib/menus/sidenav/sidenav.spec.js +9 -9
- package/lib/noPermission/index.js +7 -7
- package/lib/panel/Content.js +11 -11
- package/lib/panel/DangerPanel.js +5 -5
- package/lib/panel/Default.js +19 -19
- package/lib/panel/Header.js +22 -23
- package/lib/panel/InfoPanel.js +5 -5
- package/lib/panel/PrimaryPanel.js +5 -5
- package/lib/panel/SuccessPanel.js +5 -5
- package/lib/panel/ToolBar.js +5 -5
- package/lib/panel/WarningPanel.js +5 -5
- package/lib/panel/helpers.js +4 -4
- package/lib/panel/index.js +18 -18
- package/lib/panel/panel.spec.js +8 -8
- package/lib/permissionValidations.js +2 -2
- package/lib/popover/PopoverText.js +5 -5
- package/lib/popover/PopoverTitle.js +5 -5
- package/lib/popover/index.js +16 -16
- package/lib/popover/popover.spec.js +4 -4
- package/lib/progress/Bar.js +19 -19
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.spec.js +12 -4
- package/lib/radio/index.js +26 -50
- package/lib/radio/radio.spec.js +8 -8
- package/lib/radio/types.js +5 -0
- package/lib/skeleton/SkeletonContainer.js +8 -8
- package/lib/skeleton/index.js +14 -14
- package/lib/spinner/SpinnerLoading.js +43 -43
- package/lib/spinner/index.js +15 -15
- package/lib/spinner/spinner.spec.js +2 -2
- package/lib/split/Split.js +21 -21
- package/lib/split/SplitSide.js +13 -13
- package/lib/split/helpers.js +4 -4
- package/lib/split/index.js +5 -5
- package/lib/split/split.spec.js +25 -13
- package/lib/table/Body.js +14 -14
- package/lib/table/Header.js +13 -13
- package/lib/table/HeaderColumn.js +12 -12
- package/lib/table/Row.js +15 -15
- package/lib/table/RowColumn.js +15 -15
- package/lib/table/helpers.js +5 -5
- package/lib/table/index.js +36 -36
- package/lib/table/table.spec.js +14 -14
- package/lib/tabs/DropdownItems.js +14 -14
- package/lib/tabs/Menu.js +9 -9
- package/lib/tabs/MenuItems.js +16 -16
- package/lib/tabs/Panel.js +21 -21
- package/lib/tabs/index.js +22 -22
- package/lib/tabs/tabHelpers.js +6 -5
- package/lib/tabs/tabs.spec.js +45 -73
- package/lib/toolbar/ButtonBar.js +30 -21
- package/lib/toolbar/LabelBar.js +13 -13
- package/lib/toolbar/Separator.js +4 -4
- package/lib/toolbar/ToolBarGroup.js +6 -6
- package/lib/toolbar/helpers.js +2 -2
- package/lib/toolbar/index.js +19 -19
- package/lib/toolbar/toolbar.spec.js +10 -10
- package/lib/tooltip/index.js +16 -14
- package/lib/tooltip/tooltip.spec.js +15 -3
- package/lib/treeview/Header.js +8 -8
- package/lib/treeview/Node.js +44 -44
- package/lib/treeview/constants.js +2 -2
- package/lib/treeview/index.js +43 -43
- package/lib/treeview/treeview.spec.js +14 -14
- package/lib/treeview_old/Header.js +7 -7
- package/lib/treeview_old/Node.js +14 -14
- package/lib/treeview_old/index.js +9 -9
- package/lib/uitour/helpers.js +1 -1
- package/lib/uitour/index.js +25 -25
- package/lib/uitour/uitour.spec.js +21 -21
- package/package.json +36 -10
- package/scripts/start.js +135 -0
- package/tsconfig.json +17 -0
- package/.eslintrc.js +0 -26
- package/.husky/pre-commit +0 -4
- package/lib/menus/float/SubMenuContainer.js +0 -48
package/scripts/start.js
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* eslint-disable global-require */
|
|
2
|
+
/* eslint-disable import/no-dynamic-require */
|
|
3
|
+
|
|
4
|
+
// Do this as the first thing so that any code reading it knows the right env.
|
|
5
|
+
process.env.BABEL_ENV = 'development';
|
|
6
|
+
process.env.NODE_ENV = 'development';
|
|
7
|
+
|
|
8
|
+
// Makes the script crash on unhandled rejections instead of silently
|
|
9
|
+
// ignoring them. In the future, promise rejections that are not handled will
|
|
10
|
+
// terminate the Node.js process with a non-zero exit code.
|
|
11
|
+
process.on('unhandledRejection', (err) => {
|
|
12
|
+
throw err;
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const fs = require('fs');
|
|
16
|
+
const chalk = require('react-dev-utils/chalk');
|
|
17
|
+
const webpack = require('webpack');
|
|
18
|
+
const WebpackDevServer = require('webpack-dev-server');
|
|
19
|
+
const clearConsole = require('react-dev-utils/clearConsole');
|
|
20
|
+
const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');
|
|
21
|
+
const {
|
|
22
|
+
choosePort,
|
|
23
|
+
createCompiler,
|
|
24
|
+
prepareProxy,
|
|
25
|
+
prepareUrls,
|
|
26
|
+
} = require('react-dev-utils/WebpackDevServerUtils');
|
|
27
|
+
const openBrowser = require('react-dev-utils/openBrowser');
|
|
28
|
+
const semver = require('semver');
|
|
29
|
+
// We require that you explicitly set browsers and do not fall back to
|
|
30
|
+
// browserslist defaults.
|
|
31
|
+
const { checkBrowsers } = require('react-dev-utils/browsersHelper');
|
|
32
|
+
const config = require('../config/webpack.config');
|
|
33
|
+
const paths = require('../config/paths');
|
|
34
|
+
const createDevServerConfig = require('../config/webpackDevServer.config');
|
|
35
|
+
|
|
36
|
+
const react = require(require.resolve('react', { paths: [paths.appPath] }));
|
|
37
|
+
|
|
38
|
+
const useYarn = fs.existsSync(paths.yarnLockFile);
|
|
39
|
+
const isInteractive = process.stdout.isTTY;
|
|
40
|
+
|
|
41
|
+
// Warn and crash if required files are missing
|
|
42
|
+
if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
|
|
43
|
+
process.exit(1);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Tools like Cloud9 rely on this.
|
|
47
|
+
const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3001;
|
|
48
|
+
const HOST = process.env.HOST || '0.0.0.0';
|
|
49
|
+
|
|
50
|
+
if (process.env.HOST) {
|
|
51
|
+
console.log(chalk.cyan(`Attempting to bind to HOST environment variable: ${chalk.yellow(chalk.bold(process.env.HOST))}`));
|
|
52
|
+
console.log('If this was unintentional, check that you haven\'t mistakenly set it in your shell.');
|
|
53
|
+
console.log(`Learn more here: ${chalk.yellow('https://cra.link/advanced-config')}`);
|
|
54
|
+
console.log();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
checkBrowsers(paths.appPath, isInteractive)
|
|
58
|
+
.then(() =>
|
|
59
|
+
// We attempt to use the default port but if it is busy, we offer the user to
|
|
60
|
+
// run on a different port. `choosePort()` Promise resolves to the next free port.
|
|
61
|
+
choosePort(HOST, DEFAULT_PORT))
|
|
62
|
+
.then((port) => {
|
|
63
|
+
if (port == null) {
|
|
64
|
+
// We have not found a port.
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const protocol = process.env.HTTPS === 'true' ? 'https' : 'http';
|
|
69
|
+
const appName = require(paths.appPackageJson).name;
|
|
70
|
+
|
|
71
|
+
const useTypeScript = fs.existsSync(paths.appTsConfig);
|
|
72
|
+
const urls = prepareUrls(
|
|
73
|
+
protocol,
|
|
74
|
+
HOST,
|
|
75
|
+
port,
|
|
76
|
+
paths.publicUrlOrPath.slice(0, -1),
|
|
77
|
+
);
|
|
78
|
+
// Create a webpack compiler that is configured with custom messages.
|
|
79
|
+
const compiler = createCompiler({
|
|
80
|
+
appName,
|
|
81
|
+
config,
|
|
82
|
+
urls,
|
|
83
|
+
useYarn,
|
|
84
|
+
useTypeScript,
|
|
85
|
+
webpack,
|
|
86
|
+
});
|
|
87
|
+
// Load proxy config
|
|
88
|
+
const proxySetting = require(paths.appPackageJson).proxy;
|
|
89
|
+
const proxyConfig = prepareProxy(
|
|
90
|
+
proxySetting,
|
|
91
|
+
paths.appPublic,
|
|
92
|
+
paths.publicUrlOrPath,
|
|
93
|
+
);
|
|
94
|
+
// Serve webpack assets generated by the compiler over a web server.
|
|
95
|
+
const serverConfig = {
|
|
96
|
+
...createDevServerConfig(proxyConfig, urls.lanUrlForConfig),
|
|
97
|
+
host: HOST,
|
|
98
|
+
port,
|
|
99
|
+
};
|
|
100
|
+
const devServer = new WebpackDevServer(serverConfig, compiler);
|
|
101
|
+
// Launch WebpackDevServer.
|
|
102
|
+
devServer.startCallback(() => {
|
|
103
|
+
if (isInteractive) {
|
|
104
|
+
clearConsole();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (semver.lt(react.version, '16.10.0')) {
|
|
108
|
+
console.log(chalk.yellow(`Fast Refresh requires React 16.10 or higher. You are using React ${react.version}.`));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
console.log(chalk.cyan('Starting the development server...\n'));
|
|
112
|
+
openBrowser(urls.localUrlForBrowser);
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
['SIGINT', 'SIGTERM'].forEach((sig) => {
|
|
116
|
+
process.on(sig, () => {
|
|
117
|
+
devServer.close();
|
|
118
|
+
process.exit();
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
if (process.env.CI !== 'true') {
|
|
123
|
+
// Gracefully exit when stdin ends
|
|
124
|
+
process.stdin.on('end', () => {
|
|
125
|
+
devServer.close();
|
|
126
|
+
process.exit();
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
.catch((err) => {
|
|
131
|
+
if (err && err.message) {
|
|
132
|
+
console.log(err.message);
|
|
133
|
+
}
|
|
134
|
+
process.exit(1);
|
|
135
|
+
});
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
4
|
+
"allowJs": true,
|
|
5
|
+
"jsx": "react-jsx",
|
|
6
|
+
"noEmit": true,
|
|
7
|
+
"isolatedModules": true,
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"allowSyntheticDefaultImports": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"skipLibCheck": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
},
|
|
16
|
+
"include": ["src"]
|
|
17
|
+
}
|
package/.eslintrc.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"extends": "airbnb",
|
|
3
|
-
"env": {
|
|
4
|
-
"browser": true,
|
|
5
|
-
"jest": true
|
|
6
|
-
},
|
|
7
|
-
"parser": "babel-eslint",
|
|
8
|
-
"rules": {
|
|
9
|
-
"prefer-destructuring": ["error", {"object": true, "array": false}],
|
|
10
|
-
'react/forbid-prop-types': ['error', { forbid: ['array'] }],
|
|
11
|
-
'react/jsx-first-prop-new-line': ['error', 'multiline-multiprop'],
|
|
12
|
-
'react/jsx-closing-bracket-location': ['error', 'after-props'],
|
|
13
|
-
'react/no-unused-prop-types': ['0'],
|
|
14
|
-
"jsx-a11y/anchor-is-valid": [ "error", {
|
|
15
|
-
"components": [ "Link" ],
|
|
16
|
-
"specialLink": [ "hrefLeft", "hrefRight" ],
|
|
17
|
-
"aspects": ["preferButton" ]
|
|
18
|
-
}],
|
|
19
|
-
'jsx-a11y/no-autofocus': ['0'],
|
|
20
|
-
"object-curly-newline": [0],
|
|
21
|
-
"jsx-a11y/label-has-for": [0],
|
|
22
|
-
},
|
|
23
|
-
"plugins": [
|
|
24
|
-
"class-property"
|
|
25
|
-
]
|
|
26
|
-
};
|
package/.husky/pre-commit
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _icons = _interopRequireDefault(require("../../icons"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
|
-
var SubMenuContainer = function SubMenuContainer(_ref) {
|
|
17
|
-
var title = _ref.title,
|
|
18
|
-
customClass = _ref.customClass,
|
|
19
|
-
children = _ref.children,
|
|
20
|
-
handlerGoBack = _ref.handlerGoBack;
|
|
21
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
|
-
className: "floatsubmenu ".concat(customClass)
|
|
23
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
24
|
-
className: "submenuheader"
|
|
25
|
-
}, /*#__PURE__*/_react["default"].createElement(_icons["default"], {
|
|
26
|
-
onClick: handlerGoBack,
|
|
27
|
-
name: "arrowBack",
|
|
28
|
-
pointerEvents: "all",
|
|
29
|
-
style: {
|
|
30
|
-
cursor: 'pointer'
|
|
31
|
-
}
|
|
32
|
-
}), title && /*#__PURE__*/_react["default"].createElement("span", null, title)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
-
className: "submenucontent"
|
|
34
|
-
}, children));
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
SubMenuContainer.propTypes = {
|
|
38
|
-
children: _propTypes["default"].element.isRequired,
|
|
39
|
-
handlerGoBack: _propTypes["default"].func.isRequired,
|
|
40
|
-
title: _propTypes["default"].string,
|
|
41
|
-
customClass: _propTypes["default"].string
|
|
42
|
-
};
|
|
43
|
-
SubMenuContainer.defaultProps = {
|
|
44
|
-
title: undefined,
|
|
45
|
-
customClass: undefined
|
|
46
|
-
};
|
|
47
|
-
var _default = SubMenuContainer;
|
|
48
|
-
exports["default"] = _default;
|