@zimyo/ui 1.2.0 → 1.3.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/dist/Accordion/index.esm.js +5 -218
- package/dist/Accordion/index.js +5 -225
- package/dist/Badge/index.d.ts +29 -0
- package/dist/Badge/index.esm.js +1 -0
- package/dist/Badge/index.js +1 -0
- package/dist/Button/index.esm.js +1 -13
- package/dist/Button/index.js +1 -18
- package/dist/Card/index.esm.js +1 -36
- package/dist/Card/index.js +1 -38
- package/dist/Input/index.d.ts +18 -0
- package/dist/Input/index.esm.js +26 -0
- package/dist/Input/index.js +26 -0
- package/dist/Modal/index.d.ts +11 -9
- package/dist/Modal/index.esm.js +5 -123
- package/dist/Modal/index.js +5 -128
- package/dist/Notice/index.d.ts +19 -0
- package/dist/Notice/index.esm.js +26 -0
- package/dist/Notice/index.js +26 -0
- package/dist/Popover/index.esm.js +1 -22
- package/dist/Popover/index.js +1 -27
- package/dist/RadioGroup/index.esm.js +1 -91
- package/dist/RadioGroup/index.js +1 -96
- package/dist/Select/index.d.ts +15 -13
- package/dist/Select/index.esm.js +5 -173
- package/dist/Select/index.js +5 -178
- package/dist/Switch/index.esm.js +1 -9
- package/dist/Switch/index.js +1 -14
- package/dist/Tabs/index.esm.js +1 -202
- package/dist/Tabs/index.js +1 -207
- package/dist/Typography/index.esm.js +1 -57
- package/dist/Typography/index.js +1 -66
- package/dist/index.d.ts +120 -39
- package/dist/index.esm.js +5 -739
- package/dist/index.js +5 -762
- package/dist/theme/index.esm.js +1 -234
- package/dist/theme/index.js +1 -239
- package/package.json +33 -3
- package/dist/TextInput/index.d.ts +0 -18
- package/dist/TextInput/index.esm.js +0 -33
- package/dist/TextInput/index.js +0 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zimyo/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Zimyo UI library built on MUI Material",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -63,6 +63,21 @@
|
|
|
63
63
|
"require": "./dist/Modal/index.js",
|
|
64
64
|
"types": "./dist/Modal/index.d.ts"
|
|
65
65
|
},
|
|
66
|
+
"./Badge": {
|
|
67
|
+
"import": "./dist/Badge/index.esm.js",
|
|
68
|
+
"require": "./dist/Badge/index.js",
|
|
69
|
+
"types": "./dist/Badge/index.d.ts"
|
|
70
|
+
},
|
|
71
|
+
"./Input": {
|
|
72
|
+
"import": "./dist/Input/index.esm.js",
|
|
73
|
+
"require": "./dist/Input/index.js",
|
|
74
|
+
"types": "./dist/Input/index.d.ts"
|
|
75
|
+
},
|
|
76
|
+
"./Notice": {
|
|
77
|
+
"import": "./dist/Notice/index.esm.js",
|
|
78
|
+
"require": "./dist/Notice/index.js",
|
|
79
|
+
"types": "./dist/Notice/index.d.ts"
|
|
80
|
+
},
|
|
66
81
|
"./theme": {
|
|
67
82
|
"import": "./dist/theme/index.esm.js",
|
|
68
83
|
"require": "./dist/theme/index.js",
|
|
@@ -74,6 +89,7 @@
|
|
|
74
89
|
],
|
|
75
90
|
"scripts": {
|
|
76
91
|
"build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 rollup -c --bundleConfigAsCjs",
|
|
92
|
+
"build:css": "tailwindcss -i src/index.css -o dist/index.css --minify",
|
|
77
93
|
"build:watch": "rollup -c -w",
|
|
78
94
|
"storybook": "storybook dev -p 6006",
|
|
79
95
|
"build-storybook": "storybook build",
|
|
@@ -95,20 +111,26 @@
|
|
|
95
111
|
"@changesets/cli": "^2.29.5",
|
|
96
112
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
97
113
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
114
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
98
115
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
99
116
|
"@storybook/addon-docs": "^9.0.15",
|
|
100
117
|
"@storybook/addon-themes": "^9.0.15",
|
|
101
118
|
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
|
|
102
119
|
"@storybook/react-webpack5": "^9.0.14",
|
|
120
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
103
121
|
"@testing-library/jest-dom": "^6.6.3",
|
|
104
122
|
"@testing-library/react": "^13.4.0",
|
|
105
123
|
"@types/jest": "^30.0.0",
|
|
106
124
|
"@types/node": "^20.9.0",
|
|
107
125
|
"@types/react": "^18.0.0",
|
|
126
|
+
"autoprefixer": "^10.4.21",
|
|
108
127
|
"cross-env": "^7.0.3",
|
|
128
|
+
"css-loader": "^7.1.2",
|
|
109
129
|
"eslint": "^8.0.0",
|
|
110
130
|
"eslint-plugin-storybook": "^9.0.14",
|
|
111
131
|
"jest": "^29.7.0",
|
|
132
|
+
"postcss": "^8.5.6",
|
|
133
|
+
"postcss-loader": "^8.1.1",
|
|
112
134
|
"react": "^18.0.0",
|
|
113
135
|
"react-dom": "^18.0.0",
|
|
114
136
|
"rollup": "^3.0.0",
|
|
@@ -116,6 +138,8 @@
|
|
|
116
138
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
117
139
|
"rollup-plugin-postcss": "^4.0.2",
|
|
118
140
|
"storybook": "^9.0.14",
|
|
141
|
+
"style-loader": "^4.0.0",
|
|
142
|
+
"tailwindcss": "^4.1.11",
|
|
119
143
|
"typescript": "^5.0.0"
|
|
120
144
|
},
|
|
121
145
|
"dependencies": {
|
|
@@ -123,7 +147,13 @@
|
|
|
123
147
|
"@emotion/styled": ">=11.0.0",
|
|
124
148
|
"@fontsource/inter": "^5.2.6",
|
|
125
149
|
"@mui/material": ">=5.0.0",
|
|
126
|
-
"
|
|
150
|
+
"class-variance-authority": "^0.7.1",
|
|
151
|
+
"dayjs": "^1.11.13",
|
|
152
|
+
"lucide-react": "^0.525.0",
|
|
153
|
+
"react-day-picker": "^9.8.0",
|
|
154
|
+
"react-hook-form": "^7.60.0",
|
|
155
|
+
"react-select": "^5.10.1",
|
|
156
|
+
"tailwind-merge": "^3.3.1"
|
|
127
157
|
},
|
|
128
158
|
"eslintConfig": {
|
|
129
159
|
"extends": [
|
|
@@ -147,4 +177,4 @@
|
|
|
147
177
|
"component-library",
|
|
148
178
|
"design-system"
|
|
149
179
|
]
|
|
150
|
-
}
|
|
180
|
+
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TextFieldProps } from '@mui/material';
|
|
3
|
-
|
|
4
|
-
interface TextInputProps extends Omit<TextFieldProps, 'variant'> {
|
|
5
|
-
label?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
IS_MANDATORY?: boolean | number | string;
|
|
8
|
-
startIcon?: React.ReactNode;
|
|
9
|
-
endIcon?: React.ReactNode;
|
|
10
|
-
error?: boolean;
|
|
11
|
-
variant?: 'outlined' | 'filled' | 'standard';
|
|
12
|
-
helperText?: string;
|
|
13
|
-
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'search';
|
|
14
|
-
}
|
|
15
|
-
declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
16
|
-
|
|
17
|
-
export { TextInput, TextInput as default };
|
|
18
|
-
export type { TextInputProps };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TextField, InputAdornment } from '@mui/material';
|
|
4
|
-
|
|
5
|
-
const TextInput = React.forwardRef(({ label = '', placeholder, IS_MANDATORY = false,
|
|
6
|
-
// multiline = false,
|
|
7
|
-
startIcon, endIcon, error = false, helperText, type = 'text', variant = 'outlined', ...rest }, ref) => {
|
|
8
|
-
return (jsx(TextField, { fullWidth: true, inputRef: ref, type: type,
|
|
9
|
-
// multiline={multiline}
|
|
10
|
-
label: label, placeholder: placeholder, required: (IS_MANDATORY == 1 || IS_MANDATORY == true) ? true : false, error: error, InputLabelProps: !label ? { shrink: false } : undefined, sx: {
|
|
11
|
-
'& .MuiInputLabel-outlined': {
|
|
12
|
-
top: '-4px',
|
|
13
|
-
fontSize: '13px',
|
|
14
|
-
fontWeight: 500,
|
|
15
|
-
},
|
|
16
|
-
'& .MuiOutlinedInput-root': {
|
|
17
|
-
minHeight: '44px',
|
|
18
|
-
borderRadius: '10px',
|
|
19
|
-
},
|
|
20
|
-
'& input': {
|
|
21
|
-
padding: '10.5px 14px',
|
|
22
|
-
},
|
|
23
|
-
'& input::placeholder': {
|
|
24
|
-
fontSize: '13px',
|
|
25
|
-
opacity: 0.5,
|
|
26
|
-
},
|
|
27
|
-
}, helperText: helperText, InputProps: {
|
|
28
|
-
startAdornment: startIcon ? (jsx(InputAdornment, { position: "start", children: startIcon })) : undefined,
|
|
29
|
-
endAdornment: endIcon ? (jsx(InputAdornment, { position: "end", children: endIcon })) : undefined,
|
|
30
|
-
}, variant: variant, ...rest }));
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export { TextInput, TextInput as default };
|
package/dist/TextInput/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var React = require('react');
|
|
7
|
-
var material = require('@mui/material');
|
|
8
|
-
|
|
9
|
-
const TextInput = React.forwardRef(({ label = '', placeholder, IS_MANDATORY = false,
|
|
10
|
-
// multiline = false,
|
|
11
|
-
startIcon, endIcon, error = false, helperText, type = 'text', variant = 'outlined', ...rest }, ref) => {
|
|
12
|
-
return (jsxRuntime.jsx(material.TextField, { fullWidth: true, inputRef: ref, type: type,
|
|
13
|
-
// multiline={multiline}
|
|
14
|
-
label: label, placeholder: placeholder, required: (IS_MANDATORY == 1 || IS_MANDATORY == true) ? true : false, error: error, InputLabelProps: !label ? { shrink: false } : undefined, sx: {
|
|
15
|
-
'& .MuiInputLabel-outlined': {
|
|
16
|
-
top: '-4px',
|
|
17
|
-
fontSize: '13px',
|
|
18
|
-
fontWeight: 500,
|
|
19
|
-
},
|
|
20
|
-
'& .MuiOutlinedInput-root': {
|
|
21
|
-
minHeight: '44px',
|
|
22
|
-
borderRadius: '10px',
|
|
23
|
-
},
|
|
24
|
-
'& input': {
|
|
25
|
-
padding: '10.5px 14px',
|
|
26
|
-
},
|
|
27
|
-
'& input::placeholder': {
|
|
28
|
-
fontSize: '13px',
|
|
29
|
-
opacity: 0.5,
|
|
30
|
-
},
|
|
31
|
-
}, helperText: helperText, InputProps: {
|
|
32
|
-
startAdornment: startIcon ? (jsxRuntime.jsx(material.InputAdornment, { position: "start", children: startIcon })) : undefined,
|
|
33
|
-
endAdornment: endIcon ? (jsxRuntime.jsx(material.InputAdornment, { position: "end", children: endIcon })) : undefined,
|
|
34
|
-
}, variant: variant, ...rest }));
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
exports.TextInput = TextInput;
|
|
38
|
-
exports.default = TextInput;
|