revdev-components 0.5.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 +40 -0
- package/build/dialog/index.d.ts +2 -0
- package/build/dialog/info/index.d.ts +18 -0
- package/build/dialog/regular/index.d.ts +20 -0
- package/build/fields/date-picker/index.d.ts +7 -0
- package/build/fields/hidden/index.d.ts +6 -0
- package/build/fields/index.d.ts +8 -0
- package/build/fields/input/index.d.ts +7 -0
- package/build/fields/input-number/index.d.ts +7 -0
- package/build/fields/line/index.d.ts +15 -0
- package/build/fields/radio-button/index.d.ts +7 -0
- package/build/fields/range-picker/index.d.ts +8 -0
- package/build/fields/text-area/index.d.ts +7 -0
- package/build/flat-button/index.d.ts +9 -0
- package/build/form/index.d.ts +19 -0
- package/build/form-controls/division-row/index.d.ts +7 -0
- package/build/form-controls/form-button/index.d.ts +7 -0
- package/build/form-controls/form-error/index.d.ts +7 -0
- package/build/form-controls/index.d.ts +3 -0
- package/build/hooks/debounce.d.ts +2 -0
- package/build/hooks/form-rules.d.ts +13 -0
- package/build/hooks/index.d.ts +3 -0
- package/build/hooks/mount.d.ts +2 -0
- package/build/icon/amenity/index.d.ts +5 -0
- package/build/icon/amenity/names.d.ts +2 -0
- package/build/icon/basic/index.d.ts +6 -0
- package/build/icon/flag/index.d.ts +5 -0
- package/build/icon/flag/names.d.ts +2 -0
- package/build/icon/index.d.ts +4 -0
- package/build/icon/regular/index.d.ts +5 -0
- package/build/icon/regular/names.d.ts +2 -0
- package/build/icon/social/index.d.ts +5 -0
- package/build/icon/social/names.d.ts +2 -0
- package/build/index.d.ts +8 -0
- package/build/index.js +7371 -0
- package/build/interfaces/form.d.ts +9 -0
- package/build/interfaces/index.d.ts +1 -0
- package/build/interfaces/option.d.ts +8 -0
- package/build/styles.css +115 -0
- package/next.config.mjs +17 -0
- package/package.json +58 -0
- package/postcss.config.mjs +6 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./form";
|
package/build/styles.css
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
.index-module_root__-LDR1 {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
height: 1em;
|
|
4
|
+
}
|
|
5
|
+
.index-module_root__gtTIa {
|
|
6
|
+
display: block;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.index-module_action__pOSde {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
.index-module_root__2S1Jp {
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
.index-module_input__LxXnu.ant-input-number {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
.index-module_input__LxXnu.ant-input-number-group-wrapper {
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
.index-module_popup__5L587.ant-picker-panel:nth-child(2) {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
.index-module_popup__5L587.ant-picker-panel:nth-child(1) button {
|
|
28
|
+
visibility: visible !important;
|
|
29
|
+
}
|
|
30
|
+
.index-module_root__f8fnA {
|
|
31
|
+
display: flex;
|
|
32
|
+
gap: 1em;
|
|
33
|
+
}
|
|
34
|
+
.index-module_root__f8fnA > * {
|
|
35
|
+
flex: 1;
|
|
36
|
+
}
|
|
37
|
+
.index-module_root__xH-TN {
|
|
38
|
+
padding-top: 16px;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
gap: 14px;
|
|
43
|
+
}
|
|
44
|
+
.index-module_root__Xj8zb {
|
|
45
|
+
display: block;
|
|
46
|
+
color: var(--errorColor);
|
|
47
|
+
}
|
|
48
|
+
.index-module_root__C7wx2.ant-modal .ant-modal-content {
|
|
49
|
+
padding: 0;
|
|
50
|
+
}
|
|
51
|
+
.index-module_root__C7wx2.ant-modal .ant-modal-content > button {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.index-module_content__RsiJT {
|
|
56
|
+
position: relative;
|
|
57
|
+
padding: 25px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.index-module_close__lBc6p {
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
font-size: 20px;
|
|
63
|
+
position: absolute;
|
|
64
|
+
top: 10px;
|
|
65
|
+
right: 10px;
|
|
66
|
+
}
|
|
67
|
+
.index-module_close__lBc6p:hover {
|
|
68
|
+
opacity: 0.9;
|
|
69
|
+
}
|
|
70
|
+
.index-module_root__BQI-i.ant-modal .ant-modal-content {
|
|
71
|
+
padding: 0;
|
|
72
|
+
}
|
|
73
|
+
.index-module_root__BQI-i.ant-modal .ant-modal-content > button {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.index-module_header__OUCQj {
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: space-between;
|
|
80
|
+
align-items: center;
|
|
81
|
+
padding: 10px 15px;
|
|
82
|
+
border-bottom: 1px solid var(--borderColor);
|
|
83
|
+
font-size: 16px;
|
|
84
|
+
font-weight: 500;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.index-module_close__-FN6K {
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
font-size: 20px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.index-module_content__BpXha {
|
|
93
|
+
padding: 20px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.index-module_footer__xqKte {
|
|
97
|
+
padding: 0 20px 20px 20px;
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: row;
|
|
100
|
+
justify-content: flex-end;
|
|
101
|
+
gap: 1em;
|
|
102
|
+
}
|
|
103
|
+
.index-module_root__9mhio {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: row;
|
|
106
|
+
gap: 0.4em;
|
|
107
|
+
align-items: center;
|
|
108
|
+
background-color: rgb(231, 231, 231);
|
|
109
|
+
padding: 0.3em;
|
|
110
|
+
border-radius: 0.4em;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
.index-module_root__9mhio:hover {
|
|
114
|
+
background-color: rgb(221, 221, 221);
|
|
115
|
+
}
|
package/next.config.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @type {import('next').NextConfig} */
|
|
2
|
+
const nextConfig = {
|
|
3
|
+
reactStrictMode: true,
|
|
4
|
+
webpack(webpackConfig) {
|
|
5
|
+
webpackConfig.module.rules.push({
|
|
6
|
+
test: /\.svg$/,
|
|
7
|
+
use: ["@svgr/webpack"],
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
return webpackConfig;
|
|
11
|
+
},
|
|
12
|
+
eslint: {
|
|
13
|
+
ignoreDuringBuilds: true,
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default nextConfig;
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "revdev-components",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"main": "build/index.js",
|
|
5
|
+
"module": "build/index.esm.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "next dev",
|
|
8
|
+
"build:next": "next build",
|
|
9
|
+
"start:next": "next start",
|
|
10
|
+
"storybook": "storybook dev -p 6006",
|
|
11
|
+
"build-storybook": "storybook build",
|
|
12
|
+
"lint": "eslint . && stylelint \"**/*.scss\"",
|
|
13
|
+
"lint:fix": "eslint . --fix && stylelint \"**/*.scss\" --fix",
|
|
14
|
+
"stylelint": "stylelint \"**/*.scss\"",
|
|
15
|
+
"stylelint:fix": "stylelint \"**/*.scss\" --fix",
|
|
16
|
+
"v": "npm --no-git-tag-version version minor",
|
|
17
|
+
"build": "rollup -c --bundleConfigAsCjs",
|
|
18
|
+
"build:dev": "cross-env BUILD=dev rollup -c --bundleConfigAsCjs",
|
|
19
|
+
"p": "npm run v && npm run lint:fix && git add * && git commit -m\"v\" && git push origin master"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"antd": ">=5",
|
|
23
|
+
"classnames": ">=2.5",
|
|
24
|
+
"lodash.debounce": ">=4",
|
|
25
|
+
"next": ">=13",
|
|
26
|
+
"react": ">=18",
|
|
27
|
+
"react-dom": ">=18"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
31
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
32
|
+
"@storybook/addon-essentials": "^8.4.5",
|
|
33
|
+
"@storybook/addon-interactions": "^8.4.5",
|
|
34
|
+
"@storybook/addon-onboarding": "^8.4.5",
|
|
35
|
+
"@storybook/blocks": "^8.4.5",
|
|
36
|
+
"@storybook/nextjs": "^8.4.5",
|
|
37
|
+
"@storybook/react": "^8.4.5",
|
|
38
|
+
"@storybook/test": "^8.4.5",
|
|
39
|
+
"@svgr/rollup": "^8.1.0",
|
|
40
|
+
"@svgr/webpack": "^8.1.0",
|
|
41
|
+
"@types/node": "^20",
|
|
42
|
+
"@types/react": "^18",
|
|
43
|
+
"@types/react-dom": "^18",
|
|
44
|
+
"antd": "^5.22.2",
|
|
45
|
+
"classnames": "^2.5.1",
|
|
46
|
+
"eslint-config-varp": "^1.10.0",
|
|
47
|
+
"next": "14.2.16",
|
|
48
|
+
"postcss": "^8",
|
|
49
|
+
"rollup": "^4.24.4",
|
|
50
|
+
"rollup-obfuscator": "^4.1.1",
|
|
51
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
52
|
+
"rollup-plugin-scss": "^4.0.0",
|
|
53
|
+
"sass": "^1.81.0",
|
|
54
|
+
"storybook": "^8.4.5",
|
|
55
|
+
"stylelint-config-varp": "^1.7.2",
|
|
56
|
+
"typescript": "^5"
|
|
57
|
+
}
|
|
58
|
+
}
|