powell-react 0.0.9 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +7 -2
- package/.storybook/main.ts +0 -28
- package/.storybook/preview.scss +0 -13
- package/.storybook/preview.tsx +0 -24
- package/rollup.config.mjs +0 -95
- package/src/components/Button/Button.scss +0 -43
- package/src/components/Button/Button.stories.tsx +0 -13
- package/src/components/Button/Button.tsx +0 -19
- package/src/components/Button/index.ts +0 -1
- package/src/components/index.ts +0 -1
- package/src/index.ts +0 -1
- package/src/powell/api/PowellProvider.tsx +0 -37
- package/src/powell/api/configService.ts +0 -4
- package/src/powell/api/forms.ts +0 -145
- package/src/powell/api/index.ts +0 -5
- package/src/powell/api/powellDefaults.ts +0 -11
- package/src/powell/api/primereact.ts +0 -1945
- package/src/powell/components/AutoComplete/AutoComplete.scss +0 -126
- package/src/powell/components/AutoComplete/AutoComplete.tsx +0 -190
- package/src/powell/components/AutoComplete/index.ts +0 -1
- package/src/powell/components/Button/Button.tsx +0 -90
- package/src/powell/components/Button/index.ts +0 -1
- package/src/powell/components/CascadeSelect/CascadeSelect.scss +0 -126
- package/src/powell/components/CascadeSelect/CascadeSelect.tsx +0 -190
- package/src/powell/components/CascadeSelect/index.ts +0 -1
- package/src/powell/components/Checkbox/Checkbox.scss +0 -32
- package/src/powell/components/Checkbox/Checkbox.tsx +0 -147
- package/src/powell/components/Checkbox/index.ts +0 -1
- package/src/powell/components/Chips/Chips.scss +0 -126
- package/src/powell/components/Chips/Chips.tsx +0 -190
- package/src/powell/components/Chips/index.ts +0 -1
- package/src/powell/components/ColorPicker/ColorPicker.scss +0 -126
- package/src/powell/components/ColorPicker/ColorPicker.tsx +0 -186
- package/src/powell/components/ColorPicker/index.ts +0 -1
- package/src/powell/components/Dropdown/Dropdown.scss +0 -126
- package/src/powell/components/Dropdown/Dropdown.tsx +0 -190
- package/src/powell/components/Dropdown/index.ts +0 -1
- package/src/powell/components/Editor/Editor.scss +0 -126
- package/src/powell/components/Editor/Editor.tsx +0 -183
- package/src/powell/components/Editor/index.ts +0 -1
- package/src/powell/components/FormContainer/FormContainer.tsx +0 -49
- package/src/powell/components/FormContainer/FormContext.tsx +0 -18
- package/src/powell/components/FormContainer/index.ts +0 -2
- package/src/powell/components/InputMask/InputMask.scss +0 -126
- package/src/powell/components/InputMask/InputMask.tsx +0 -190
- package/src/powell/components/InputMask/index.ts +0 -1
- package/src/powell/components/InputNumber/InputNumber.scss +0 -126
- package/src/powell/components/InputNumber/InputNumber.tsx +0 -190
- package/src/powell/components/InputNumber/index.ts +0 -1
- package/src/powell/components/InputOtp/InputOtp.scss +0 -126
- package/src/powell/components/InputOtp/InputOtp.tsx +0 -154
- package/src/powell/components/InputOtp/index.ts +0 -1
- package/src/powell/components/InputPassword/InputPassword.scss +0 -126
- package/src/powell/components/InputPassword/InputPassword.tsx +0 -189
- package/src/powell/components/InputPassword/index.ts +0 -1
- package/src/powell/components/InputSwitch/InputSwitch.scss +0 -32
- package/src/powell/components/InputSwitch/InputSwitch.tsx +0 -144
- package/src/powell/components/InputSwitch/index.ts +0 -1
- package/src/powell/components/InputText/InputText.scss +0 -126
- package/src/powell/components/InputText/InputText.tsx +0 -190
- package/src/powell/components/InputText/index.ts +0 -1
- package/src/powell/components/InputTextarea/InputTextarea.scss +0 -126
- package/src/powell/components/InputTextarea/InputTextarea.tsx +0 -187
- package/src/powell/components/InputTextarea/index.ts +0 -1
- package/src/powell/components/Knob/Knob.scss +0 -32
- package/src/powell/components/Knob/Knob.tsx +0 -134
- package/src/powell/components/Knob/index.ts +0 -1
- package/src/powell/components/ListBox/ListBox.scss +0 -32
- package/src/powell/components/ListBox/ListBox.tsx +0 -135
- package/src/powell/components/ListBox/index.ts +0 -1
- package/src/powell/components/Mention/Mention.scss +0 -126
- package/src/powell/components/Mention/Mention.tsx +0 -186
- package/src/powell/components/Mention/index.ts +0 -1
- package/src/powell/components/MultiSelect/MultiSelect.scss +0 -126
- package/src/powell/components/MultiSelect/MultiSelect.tsx +0 -190
- package/src/powell/components/MultiSelect/index.ts +0 -1
- package/src/powell/components/MultiStateCheckbox/MultiStateCheckbox.scss +0 -32
- package/src/powell/components/MultiStateCheckbox/MultiStateCheckbox.tsx +0 -143
- package/src/powell/components/MultiStateCheckbox/index.ts +0 -1
- package/src/powell/components/RadioGroup/RadioGroup.scss +0 -32
- package/src/powell/components/RadioGroup/RadioGroup.tsx +0 -167
- package/src/powell/components/RadioGroup/index.ts +0 -1
- package/src/powell/components/Rating/Rating.scss +0 -32
- package/src/powell/components/Rating/Rating.tsx +0 -135
- package/src/powell/components/Rating/index.ts +0 -1
- package/src/powell/components/SelectButton/SelectButton.scss +0 -32
- package/src/powell/components/SelectButton/SelectButton.tsx +0 -144
- package/src/powell/components/SelectButton/index.ts +0 -1
- package/src/powell/components/Slider/Slider.scss +0 -32
- package/src/powell/components/Slider/Slider.tsx +0 -135
- package/src/powell/components/Slider/index.ts +0 -1
- package/src/powell/components/ToggleButton/ToggleButton.scss +0 -32
- package/src/powell/components/ToggleButton/ToggleButton.tsx +0 -144
- package/src/powell/components/ToggleButton/index.ts +0 -1
- package/src/powell/components/TreeSelect/TreeSelect.scss +0 -126
- package/src/powell/components/TreeSelect/TreeSelect.tsx +0 -190
- package/src/powell/components/TreeSelect/index.ts +0 -1
- package/src/powell/components/TriStateCheckbox/TriStateCheckbox.scss +0 -32
- package/src/powell/components/TriStateCheckbox/TriStateCheckbox.tsx +0 -144
- package/src/powell/components/TriStateCheckbox/index.ts +0 -1
- package/src/powell/hooks/index.ts +0 -3
- package/src/powell/hooks/useApplyConfig.ts +0 -36
- package/src/powell/hooks/useFormContext.ts +0 -14
- package/src/powell/hooks/usePowellConfig.ts +0 -64
- package/src/powell/index.ts +0 -29
- package/src/powell/models/common.ts +0 -7
- package/src/powell/models/config.ts +0 -85
- package/src/powell/models/forms.ts +0 -33
- package/src/powell/models/index.ts +0 -3
- package/src/powell/styles/common.scss +0 -9
- package/src/powell/styles/mixins.scss +0 -0
- package/src/powell/themes/arya-blue.css +0 -1
- package/src/powell/themes/arya-green.css +0 -1
- package/src/powell/themes/arya-orange.css +0 -1
- package/src/powell/themes/arya-purple.css +0 -1
- package/src/powell/themes/bootstrap4-dark-blue.css +0 -1
- package/src/powell/themes/bootstrap4-dark-purple.css +0 -1
- package/src/powell/themes/bootstrap4-light-blue.css +0 -1
- package/src/powell/themes/bootstrap4-light-purple.css +0 -1
- package/src/powell/themes/fluent-light.css +0 -1
- package/src/powell/themes/lara-dark-amber.css +0 -1
- package/src/powell/themes/lara-dark-blue.css +0 -1
- package/src/powell/themes/lara-dark-cyan.css +0 -1
- package/src/powell/themes/lara-dark-green.css +0 -1
- package/src/powell/themes/lara-dark-indigo.css +0 -1
- package/src/powell/themes/lara-dark-pink.css +0 -1
- package/src/powell/themes/lara-dark-purple.css +0 -1
- package/src/powell/themes/lara-dark-teal.css +0 -1
- package/src/powell/themes/lara-light-amber.css +0 -1
- package/src/powell/themes/lara-light-blue.css +0 -1
- package/src/powell/themes/lara-light-cyan.css +0 -1
- package/src/powell/themes/lara-light-green.css +0 -1
- package/src/powell/themes/lara-light-indigo.css +0 -1
- package/src/powell/themes/lara-light-pink.css +0 -1
- package/src/powell/themes/lara-light-purple.css +0 -1
- package/src/powell/themes/lara-light-teal.css +0 -1
- package/src/powell/themes/luna-amber.css +0 -1
- package/src/powell/themes/luna-blue.css +0 -1
- package/src/powell/themes/luna-green.css +0 -1
- package/src/powell/themes/luna-pink.css +0 -1
- package/src/powell/themes/md-dark-deeppurple.css +0 -1
- package/src/powell/themes/md-dark-indigo.css +0 -1
- package/src/powell/themes/md-light-deeppurple.css +0 -1
- package/src/powell/themes/md-light-indigo.css +0 -1
- package/src/powell/themes/mdc-dark-deeppurple.css +0 -1
- package/src/powell/themes/mdc-dark-indigo.css +0 -1
- package/src/powell/themes/mdc-light-deeppurple.css +0 -1
- package/src/powell/themes/mdc-light-indigo.css +0 -1
- package/src/powell/themes/mira.css +0 -1
- package/src/powell/themes/nano.css +0 -1
- package/src/powell/themes/nova-accent.css +0 -1
- package/src/powell/themes/nova-alt.css +0 -1
- package/src/powell/themes/nova.css +0 -1
- package/src/powell/themes/rhea.css +0 -1
- package/src/powell/themes/saga-blue.css +0 -1
- package/src/powell/themes/saga-green.css +0 -1
- package/src/powell/themes/saga-orange.css +0 -1
- package/src/powell/themes/saga-purple.css +0 -1
- package/src/powell/themes/soho-dark.css +0 -1
- package/src/powell/themes/soho-light.css +0 -1
- package/src/powell/themes/tailwind-light.css +0 -1
- package/src/powell/themes/vela-blue.css +0 -1
- package/src/powell/themes/vela-green.css +0 -1
- package/src/powell/themes/vela-orange.css +0 -1
- package/src/powell/themes/vela-purple.css +0 -1
- package/src/powell/themes/viva-dark.css +0 -1
- package/src/powell/themes/viva-light.css +0 -1
- package/src/powell/utils/globalState.ts +0 -96
- package/src/powell/utils/index.ts +0 -2
- package/src/powell/utils/utilsService.tsx +0 -55
- package/src/stories/Button.stories.tsx +0 -16
- package/tsconfig.json +0 -55
- package/vite.config.ts +0 -14
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "powell-react",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.11",
|
4
4
|
"description": "",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -18,6 +18,7 @@
|
|
18
18
|
"scripts": {
|
19
19
|
"start": "npm run storybook",
|
20
20
|
"prebuild": "npm version patch",
|
21
|
+
"prepublishOnly": "npm run build",
|
21
22
|
"build": "rollup -c",
|
22
23
|
"release": "npm run build && npm publish",
|
23
24
|
"storybook": "storybook dev -p 6006",
|
@@ -66,5 +67,9 @@
|
|
66
67
|
"formik": "^2.4.6",
|
67
68
|
"primereact": "^10.8.4",
|
68
69
|
"yup": "^1.4.0"
|
69
|
-
}
|
70
|
+
},
|
71
|
+
"files": [
|
72
|
+
"dist",
|
73
|
+
"README.md"
|
74
|
+
]
|
70
75
|
}
|
package/.storybook/main.ts
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
import { mergeConfig } from 'vite';
|
2
|
-
import svgr from 'vite-plugin-svgr';
|
3
|
-
import type { StorybookConfig } from '@storybook/react-vite';
|
4
|
-
|
5
|
-
const config: StorybookConfig = {
|
6
|
-
'stories': ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
7
|
-
|
8
|
-
'addons': [
|
9
|
-
'@storybook/addon-links',
|
10
|
-
'@storybook/addon-essentials',
|
11
|
-
'@chromatic-com/storybook',
|
12
|
-
'@storybook/addon-interactions'
|
13
|
-
],
|
14
|
-
|
15
|
-
'framework': {
|
16
|
-
'name': '@storybook/react-vite',
|
17
|
-
'options': {},
|
18
|
-
},
|
19
|
-
'docs': {},
|
20
|
-
'typescript': {
|
21
|
-
'reactDocgen': 'react-docgen-typescript'
|
22
|
-
},
|
23
|
-
'core': {
|
24
|
-
'disableTelemetry': true
|
25
|
-
},
|
26
|
-
};
|
27
|
-
|
28
|
-
export default config;
|
package/.storybook/preview.scss
DELETED
package/.storybook/preview.tsx
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
import type { Preview } from "@storybook/react";
|
2
|
-
import { PowellProvider } from "@powell/api";
|
3
|
-
|
4
|
-
const preview: Preview = {
|
5
|
-
decorators: [
|
6
|
-
(Story) => (
|
7
|
-
<PowellProvider>
|
8
|
-
<Story />
|
9
|
-
</PowellProvider>
|
10
|
-
),
|
11
|
-
],
|
12
|
-
parameters: {
|
13
|
-
controls: {
|
14
|
-
matchers: {
|
15
|
-
color: /(background|color)$/i,
|
16
|
-
date: /Date$/i,
|
17
|
-
},
|
18
|
-
},
|
19
|
-
},
|
20
|
-
|
21
|
-
tags: ["autodocs", "autodocs"]
|
22
|
-
};
|
23
|
-
|
24
|
-
export default preview;
|
package/rollup.config.mjs
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
import { readFileSync } from 'fs';
|
2
|
-
import { defineConfig } from 'rollup';
|
3
|
-
import resolve from '@rollup/plugin-node-resolve';
|
4
|
-
import commonjs from '@rollup/plugin-commonjs';
|
5
|
-
import typescript from '@rollup/plugin-typescript';
|
6
|
-
import url from '@rollup/plugin-url';
|
7
|
-
import svgr from '@svgr/rollup';
|
8
|
-
import external from 'rollup-plugin-peer-deps-external';
|
9
|
-
import postcss from 'rollup-plugin-postcss';
|
10
|
-
import dts from 'rollup-plugin-dts';
|
11
|
-
import { terser } from 'rollup-plugin-terser';
|
12
|
-
import typescriptEngine from 'typescript';
|
13
|
-
import alias from '@rollup/plugin-alias';
|
14
|
-
import path from 'path';
|
15
|
-
import { fileURLToPath } from 'url';
|
16
|
-
|
17
|
-
const packageJson = JSON.parse(readFileSync('./package.json'));
|
18
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
19
|
-
const projectRootDir = path.resolve(__dirname);
|
20
|
-
|
21
|
-
export default defineConfig(
|
22
|
-
{
|
23
|
-
input: './src/index.ts',
|
24
|
-
output: [
|
25
|
-
{
|
26
|
-
file: packageJson.main,
|
27
|
-
format: 'cjs',
|
28
|
-
sourcemap: false,
|
29
|
-
exports: 'named',
|
30
|
-
name: packageJson.name,
|
31
|
-
},
|
32
|
-
{
|
33
|
-
file: packageJson.module,
|
34
|
-
format: 'es',
|
35
|
-
exports: 'named',
|
36
|
-
sourcemap: false,
|
37
|
-
},
|
38
|
-
],
|
39
|
-
plugins: [
|
40
|
-
postcss({
|
41
|
-
plugins: [],
|
42
|
-
minimize: true,
|
43
|
-
}),
|
44
|
-
alias({
|
45
|
-
entries: [
|
46
|
-
{ find: "@powell/*", replacement: path.resolve(projectRootDir, '/src/powell/*') },
|
47
|
-
]
|
48
|
-
}),
|
49
|
-
external({ includeDependencies: true }),
|
50
|
-
resolve(),
|
51
|
-
commonjs(),
|
52
|
-
typescript({
|
53
|
-
tsconfig: './tsconfig.json',
|
54
|
-
typescript: typescriptEngine,
|
55
|
-
sourceMap: false,
|
56
|
-
exclude: [
|
57
|
-
'coverage',
|
58
|
-
'.storybook',
|
59
|
-
'storybook-static',
|
60
|
-
'config',
|
61
|
-
'dist',
|
62
|
-
'node_modules/**',
|
63
|
-
'*.cjs',
|
64
|
-
'*.mjs',
|
65
|
-
'**/__snapshots__/*',
|
66
|
-
'**/__tests__',
|
67
|
-
'**/*.test.js+(|x)',
|
68
|
-
'**/*.test.ts+(|x)',
|
69
|
-
'**/*.mdx',
|
70
|
-
'**/*.story.ts+(|x)',
|
71
|
-
'**/*.story.js+(|x)',
|
72
|
-
'**/*.stories.ts+(|x)',
|
73
|
-
'**/*.stories.js+(|x)',
|
74
|
-
'setupTests.ts',
|
75
|
-
'vitest.config.ts',
|
76
|
-
],
|
77
|
-
}),
|
78
|
-
url(),
|
79
|
-
svgr(),
|
80
|
-
terser(),
|
81
|
-
],
|
82
|
-
onwarn: (warning, warn) => {
|
83
|
-
if (warning.code === 'MODULE_LEVEL_DIRECTIVE') {
|
84
|
-
return
|
85
|
-
}
|
86
|
-
warn(warning)
|
87
|
-
},
|
88
|
-
},
|
89
|
-
{
|
90
|
-
input: 'dist/esm/types/src/index.d.ts',
|
91
|
-
output: [{ file: 'dist/index.d.ts', format: 'esm' }],
|
92
|
-
external: [/\.(sc|sa|c)ss$/],
|
93
|
-
plugins: [dts()],
|
94
|
-
},
|
95
|
-
);
|
@@ -1,43 +0,0 @@
|
|
1
|
-
.button {
|
2
|
-
position: relative;
|
3
|
-
background-color: #4caf50;
|
4
|
-
border: none;
|
5
|
-
font-size: 28px;
|
6
|
-
color: #ffffff;
|
7
|
-
padding: 20px;
|
8
|
-
width: 200px;
|
9
|
-
text-align: center;
|
10
|
-
-webkit-transition-duration: 0.4s; /* Safari */
|
11
|
-
transition-duration: 0.4s;
|
12
|
-
text-decoration: none;
|
13
|
-
overflow: hidden;
|
14
|
-
cursor: pointer;
|
15
|
-
box-shadow:
|
16
|
-
0 8px 16px 0 rgba(0, 0, 0, 0.2),
|
17
|
-
0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
18
|
-
|
19
|
-
&:after {
|
20
|
-
content: '';
|
21
|
-
background: #f1f1f1;
|
22
|
-
display: block;
|
23
|
-
position: absolute;
|
24
|
-
padding-top: 300%;
|
25
|
-
padding-left: 350%;
|
26
|
-
margin-left: -20px !important;
|
27
|
-
margin-top: -120%;
|
28
|
-
opacity: 0;
|
29
|
-
transition: all 0.8s;
|
30
|
-
}
|
31
|
-
|
32
|
-
&:active:after {
|
33
|
-
padding: 0;
|
34
|
-
margin: 0;
|
35
|
-
opacity: 1;
|
36
|
-
transition: 0s;
|
37
|
-
}
|
38
|
-
|
39
|
-
&--dsiabled {
|
40
|
-
opacity: 0.5;
|
41
|
-
background-color: grey;
|
42
|
-
}
|
43
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import React, { ButtonHTMLAttributes, FC, ReactNode } from 'react';
|
2
|
-
|
3
|
-
import './Button.scss';
|
4
|
-
|
5
|
-
export interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
6
|
-
children?: ReactNode;
|
7
|
-
}
|
8
|
-
|
9
|
-
export const Button: FC<IButtonProps> = ({ onClick, disabled, className, children, ...rest }) => (
|
10
|
-
<button
|
11
|
-
type="button"
|
12
|
-
className={`button ${className} ${disabled && 'button--dsiabled'}`}
|
13
|
-
onClick={onClick}
|
14
|
-
disabled={disabled}
|
15
|
-
{...rest}
|
16
|
-
>
|
17
|
-
{children}
|
18
|
-
</button>
|
19
|
-
);
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Button';
|
package/src/components/index.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Button';
|
package/src/index.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components';
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import {PropsWithChildren} from "react";
|
2
|
-
import {configService, powellDefaults, $PrimeReactProvider} from "@powell/api";
|
3
|
-
import {PowellConfig, ThemeName} from "@powell/models";
|
4
|
-
|
5
|
-
const createThemeLink = () => {
|
6
|
-
const headEl = document.head;
|
7
|
-
const linkEl = document.createElement("link");
|
8
|
-
linkEl.rel = "stylesheet";
|
9
|
-
linkEl.type = "text/css";
|
10
|
-
linkEl.id = "powell-theme-link";
|
11
|
-
headEl.appendChild(linkEl);
|
12
|
-
return linkEl;
|
13
|
-
}
|
14
|
-
|
15
|
-
const applyTheme = (theme: ThemeName) => {
|
16
|
-
let themeEl: HTMLLinkElement = document.getElementById('powell-theme-link') as HTMLLinkElement;
|
17
|
-
if (!themeEl) {
|
18
|
-
themeEl = createThemeLink();
|
19
|
-
}
|
20
|
-
const themeLink = `/src/powell/themes/${theme}.css`;
|
21
|
-
themeEl.setAttribute('href', themeLink);
|
22
|
-
}
|
23
|
-
|
24
|
-
export const PowellProvider = (props: PropsWithChildren<{ config?: PowellConfig }>) => {
|
25
|
-
const {children, config} = props;
|
26
|
-
const defaultConfig: PowellConfig = {
|
27
|
-
...powellDefaults,
|
28
|
-
...config
|
29
|
-
};
|
30
|
-
configService.set(defaultConfig);
|
31
|
-
applyTheme(defaultConfig.theme!);
|
32
|
-
return (
|
33
|
-
<$PrimeReactProvider value={defaultConfig}>
|
34
|
-
{children}
|
35
|
-
</$PrimeReactProvider>
|
36
|
-
)
|
37
|
-
}
|
package/src/powell/api/forms.ts
DELETED
@@ -1,145 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
ArrayHelpers,
|
3
|
-
ComponentDecorator,
|
4
|
-
CompositeComponent,
|
5
|
-
connect,
|
6
|
-
ErrorMessage,
|
7
|
-
ErrorMessageProps,
|
8
|
-
FastField,
|
9
|
-
FastFieldAttributes,
|
10
|
-
FastFieldConfig,
|
11
|
-
FastFieldProps,
|
12
|
-
Field,
|
13
|
-
FieldArray,
|
14
|
-
FieldArrayConfig,
|
15
|
-
FieldArrayRenderProps,
|
16
|
-
FieldAttributes,
|
17
|
-
FieldConfig,
|
18
|
-
FieldHelperProps,
|
19
|
-
FieldHookConfig,
|
20
|
-
FieldInputProps,
|
21
|
-
FieldMetaProps,
|
22
|
-
FieldProps,
|
23
|
-
FieldValidator,
|
24
|
-
Form,
|
25
|
-
Formik,
|
26
|
-
FormikBag,
|
27
|
-
FormikComputedProps,
|
28
|
-
FormikConfig,
|
29
|
-
FormikConsumer,
|
30
|
-
FormikContext,
|
31
|
-
FormikContextType,
|
32
|
-
FormikErrors,
|
33
|
-
FormikFormProps,
|
34
|
-
FormikHandlers,
|
35
|
-
FormikHelpers,
|
36
|
-
FormikProps,
|
37
|
-
FormikProvider,
|
38
|
-
FormikRegistration,
|
39
|
-
FormikSharedConfig,
|
40
|
-
FormikState,
|
41
|
-
FormikTouched,
|
42
|
-
FormikValues,
|
43
|
-
GenericFieldHTMLAttributes,
|
44
|
-
getActiveElement,
|
45
|
-
getIn,
|
46
|
-
InferableComponentDecorator,
|
47
|
-
InjectedFormikProps,
|
48
|
-
insert,
|
49
|
-
isEmptyArray,
|
50
|
-
isEmptyChildren,
|
51
|
-
isFunction,
|
52
|
-
isInputEvent,
|
53
|
-
isInteger,
|
54
|
-
isNaN,
|
55
|
-
isObject,
|
56
|
-
isPromise,
|
57
|
-
isString,
|
58
|
-
move,
|
59
|
-
prepareDataForValidation,
|
60
|
-
replace,
|
61
|
-
setIn,
|
62
|
-
setNestedObjectValues,
|
63
|
-
SharedRenderProps,
|
64
|
-
swap,
|
65
|
-
useField,
|
66
|
-
useFormik,
|
67
|
-
useFormikContext,
|
68
|
-
validateYupSchema,
|
69
|
-
withFormik,
|
70
|
-
WithFormikConfig,
|
71
|
-
yupToFormErrors,
|
72
|
-
} from 'formik';
|
73
|
-
import * as Yup from 'yup';
|
74
|
-
|
75
|
-
export {ErrorMessage as $ErrorMessage};
|
76
|
-
export type {ErrorMessageProps as $ErrorMessageProps};
|
77
|
-
export type {FieldProps as $FieldProps};
|
78
|
-
export {Field as $Field};
|
79
|
-
export {FieldArray as $FieldArray};
|
80
|
-
export {Form as $Form};
|
81
|
-
export type {ArrayHelpers as $ArrayHelpers};
|
82
|
-
export type {FieldArrayConfig as $FieldArrayConfig};
|
83
|
-
export type {FastFieldConfig as $FastFieldConfig};
|
84
|
-
export type {FastFieldProps as $FastFieldProps};
|
85
|
-
export {FastField as $FastField};
|
86
|
-
export type {FastFieldAttributes as $FastFieldAttributes};
|
87
|
-
export type {FieldConfig as $FieldConfig};
|
88
|
-
export type {FieldAttributes as $FieldAttributes};
|
89
|
-
export type {FieldHookConfig as $FieldHookConfig};
|
90
|
-
export type {FieldInputProps as $FieldInputProps};
|
91
|
-
export type {FieldMetaProps as $FieldMetaProps};
|
92
|
-
export type {FieldHelperProps as $FieldHelperProps};
|
93
|
-
export type {FieldValidator as $FieldValidator};
|
94
|
-
export type {FieldArrayRenderProps as $FieldArrayRenderProps};
|
95
|
-
export {useField as $useField};
|
96
|
-
export type {FormikProps as $FormikProps};
|
97
|
-
export type {FormikComputedProps as $FormikComputedProps};
|
98
|
-
export type {FormikFormProps as $FormikFormProps};
|
99
|
-
export {Formik as $Formik};
|
100
|
-
export type {FormikConfig as $FormikConfig};
|
101
|
-
export type {FormikSharedConfig as $FormikSharedConfig};
|
102
|
-
export type {FormikBag as $FormikBag};
|
103
|
-
export {FormikConsumer as $FormikConsumer};
|
104
|
-
export type {FormikErrors as $FormikErrors};
|
105
|
-
export {FormikContext as $FormikContext};
|
106
|
-
export type {FormikContextType as $FormikContextType};
|
107
|
-
export type {FormikHandlers as $FormikHandlers};
|
108
|
-
export type {FormikHelpers as $FormikHelpers};
|
109
|
-
export {FormikProvider as $FormikProvider};
|
110
|
-
export type {FormikRegistration as $FormikRegistration};
|
111
|
-
export type {FormikState as $FormikState};
|
112
|
-
export type {FormikTouched as $FormikTouched};
|
113
|
-
export type {FormikValues as $FormikValues};
|
114
|
-
export {useFormikContext as $useFormikContext};
|
115
|
-
export type {WithFormikConfig as $WithFormikConfig};
|
116
|
-
export type {GenericFieldHTMLAttributes as $GenericFieldHTMLAttributes};
|
117
|
-
export type {SharedRenderProps as $SharedRenderProps};
|
118
|
-
export {connect as $connect};
|
119
|
-
export {getIn as $getIn};
|
120
|
-
export {isEmptyArray as $isEmptyArray};
|
121
|
-
export {useFormik as $useFormik};
|
122
|
-
export {withFormik as $withFormik};
|
123
|
-
export type {ComponentDecorator as $ComponentDecorator};
|
124
|
-
export type {InferableComponentDecorator as $InferableComponentDecorator};
|
125
|
-
export {insert as $insert};
|
126
|
-
export type {CompositeComponent as $CompositeComponent};
|
127
|
-
export {isEmptyChildren as $isEmptyChildren};
|
128
|
-
export {isInputEvent as $isInputEvent};
|
129
|
-
export {isNaN as $isNaN};
|
130
|
-
export type {InjectedFormikProps as $InjectedFormikProps};
|
131
|
-
export {isFunction as $isFunction};
|
132
|
-
export {move as $move};
|
133
|
-
export {isInteger as $isInteger};
|
134
|
-
export {isObject as $isObject};
|
135
|
-
export {isPromise as $isPromise};
|
136
|
-
export {isString as $isString};
|
137
|
-
export {swap as $swap};
|
138
|
-
export {replace as $replace};
|
139
|
-
export {setIn as $setIn};
|
140
|
-
export {prepareDataForValidation as $prepareDataForValidation};
|
141
|
-
export {setNestedObjectValues as $setNestedObjectValues};
|
142
|
-
export {validateYupSchema as $validateYupSchema};
|
143
|
-
export {yupToFormErrors as $yupToFormErrors};
|
144
|
-
export {getActiveElement as $getActiveElement};
|
145
|
-
export {Yup as $Yup};
|
package/src/powell/api/index.ts
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
import {PowellConfig} from "@powell/models";
|
2
|
-
|
3
|
-
export const powellDefaults: PowellConfig = {
|
4
|
-
theme: 'lara-light-cyan',
|
5
|
-
rtl: false,
|
6
|
-
showRequiredStar: true,
|
7
|
-
ripple: true,
|
8
|
-
inputSize: 'md',
|
9
|
-
labelPosition: 'fix-top',
|
10
|
-
fixLabelPosition: 'fix-side'
|
11
|
-
}
|