@zimyo/ui 1.2.1 → 1.4.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.
Files changed (46) hide show
  1. package/dist/Accordion/index.esm.js +5 -218
  2. package/dist/Accordion/index.js +5 -225
  3. package/dist/Badge/index.d.ts +29 -0
  4. package/dist/Badge/index.esm.js +1 -0
  5. package/dist/Badge/index.js +1 -0
  6. package/dist/Button/index.esm.js +1 -13
  7. package/dist/Button/index.js +1 -18
  8. package/dist/Card/index.esm.js +1 -36
  9. package/dist/Card/index.js +1 -38
  10. package/dist/DatePicker/index.d.ts +38 -0
  11. package/dist/DatePicker/index.esm.js +27 -0
  12. package/dist/DatePicker/index.js +27 -0
  13. package/dist/DateRangePicker/index.d.ts +27 -0
  14. package/dist/DateRangePicker/index.esm.js +27 -0
  15. package/dist/DateRangePicker/index.js +27 -0
  16. package/dist/Input/index.d.ts +18 -0
  17. package/dist/Input/index.esm.js +26 -0
  18. package/dist/Input/index.js +26 -0
  19. package/dist/Modal/index.d.ts +11 -9
  20. package/dist/Modal/index.esm.js +5 -123
  21. package/dist/Modal/index.js +5 -128
  22. package/dist/Notice/index.d.ts +19 -0
  23. package/dist/Notice/index.esm.js +26 -0
  24. package/dist/Notice/index.js +26 -0
  25. package/dist/Popover/index.esm.js +1 -22
  26. package/dist/Popover/index.js +1 -27
  27. package/dist/RadioGroup/index.esm.js +1 -91
  28. package/dist/RadioGroup/index.js +1 -96
  29. package/dist/Select/index.d.ts +15 -13
  30. package/dist/Select/index.esm.js +5 -173
  31. package/dist/Select/index.js +5 -178
  32. package/dist/Switch/index.esm.js +1 -9
  33. package/dist/Switch/index.js +1 -14
  34. package/dist/Tabs/index.esm.js +1 -202
  35. package/dist/Tabs/index.js +1 -207
  36. package/dist/Typography/index.esm.js +1 -57
  37. package/dist/Typography/index.js +1 -66
  38. package/dist/index.d.ts +169 -54
  39. package/dist/index.esm.js +5 -746
  40. package/dist/index.js +5 -770
  41. package/dist/theme/index.esm.js +1 -234
  42. package/dist/theme/index.js +1 -239
  43. package/package.json +44 -8
  44. package/dist/TextInput/index.d.ts +0 -18
  45. package/dist/TextInput/index.esm.js +0 -33
  46. 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.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "Zimyo UI library built on MUI Material",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -48,11 +48,6 @@
48
48
  "require": "./dist/Select/index.js",
49
49
  "types": "./dist/Select/index.d.ts"
50
50
  },
51
- "./TextInput": {
52
- "import": "./dist/Input/index.esm.js",
53
- "require": "./dist/Input/index.js",
54
- "types": "./dist/Input/index.d.ts"
55
- },
56
51
  "./Switch": {
57
52
  "import": "./dist/Switch/index.esm.js",
58
53
  "require": "./dist/Switch/index.js",
@@ -63,6 +58,31 @@
63
58
  "require": "./dist/Modal/index.js",
64
59
  "types": "./dist/Modal/index.d.ts"
65
60
  },
61
+ "./Badge": {
62
+ "import": "./dist/Badge/index.esm.js",
63
+ "require": "./dist/Badge/index.js",
64
+ "types": "./dist/Badge/index.d.ts"
65
+ },
66
+ "./Input": {
67
+ "import": "./dist/Input/index.esm.js",
68
+ "require": "./dist/Input/index.js",
69
+ "types": "./dist/Input/index.d.ts"
70
+ },
71
+ "./Notice": {
72
+ "import": "./dist/Notice/index.esm.js",
73
+ "require": "./dist/Notice/index.js",
74
+ "types": "./dist/Notice/index.d.ts"
75
+ },
76
+ "./DatePicker": {
77
+ "import": "./dist/DatePicker/index.esm.js",
78
+ "require": "./dist/DatePicker/index.js",
79
+ "types": "./dist/DatePicker/index.d.ts"
80
+ },
81
+ "./DateRangePicker": {
82
+ "import": "./dist/DateRangePicker/index.esm.js",
83
+ "require": "./dist/DateRangePicker/index.js",
84
+ "types": "./dist/DateRangePicker/index.d.ts"
85
+ },
66
86
  "./theme": {
67
87
  "import": "./dist/theme/index.esm.js",
68
88
  "require": "./dist/theme/index.js",
@@ -73,7 +93,8 @@
73
93
  "dist"
74
94
  ],
75
95
  "scripts": {
76
- "build": "cross-env NODE_OPTIONS=--max-old-space-size=4096 rollup -c --bundleConfigAsCjs",
96
+ "build": "cross-env NODE_OPTIONS=--max-old-space-size=8096 rollup -c --bundleConfigAsCjs",
97
+ "build:css": "tailwindcss -i src/index.css -o dist/index.css --minify",
77
98
  "build:watch": "rollup -c -w",
78
99
  "storybook": "storybook dev -p 6006",
79
100
  "build-storybook": "storybook build",
@@ -95,20 +116,26 @@
95
116
  "@changesets/cli": "^2.29.5",
96
117
  "@rollup/plugin-commonjs": "^25.0.0",
97
118
  "@rollup/plugin-node-resolve": "^15.0.0",
119
+ "@rollup/plugin-terser": "^0.4.4",
98
120
  "@rollup/plugin-typescript": "^11.0.0",
99
121
  "@storybook/addon-docs": "^9.0.15",
100
122
  "@storybook/addon-themes": "^9.0.15",
101
123
  "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
102
124
  "@storybook/react-webpack5": "^9.0.14",
125
+ "@tailwindcss/postcss": "^4.1.11",
103
126
  "@testing-library/jest-dom": "^6.6.3",
104
127
  "@testing-library/react": "^13.4.0",
105
128
  "@types/jest": "^30.0.0",
106
129
  "@types/node": "^20.9.0",
107
130
  "@types/react": "^18.0.0",
131
+ "autoprefixer": "^10.4.21",
108
132
  "cross-env": "^7.0.3",
133
+ "css-loader": "^7.1.2",
109
134
  "eslint": "^8.0.0",
110
135
  "eslint-plugin-storybook": "^9.0.14",
111
136
  "jest": "^29.7.0",
137
+ "postcss": "^8.5.6",
138
+ "postcss-loader": "^8.1.1",
112
139
  "react": "^18.0.0",
113
140
  "react-dom": "^18.0.0",
114
141
  "rollup": "^3.0.0",
@@ -116,6 +143,8 @@
116
143
  "rollup-plugin-peer-deps-external": "^2.2.4",
117
144
  "rollup-plugin-postcss": "^4.0.2",
118
145
  "storybook": "^9.0.14",
146
+ "style-loader": "^4.0.0",
147
+ "tailwindcss": "^4.1.11",
119
148
  "typescript": "^5.0.0"
120
149
  },
121
150
  "dependencies": {
@@ -123,7 +152,14 @@
123
152
  "@emotion/styled": ">=11.0.0",
124
153
  "@fontsource/inter": "^5.2.6",
125
154
  "@mui/material": ">=5.0.0",
126
- "lucide-react": "^0.525.0"
155
+ "class-variance-authority": "^0.7.1",
156
+ "dayjs": "^1.11.13",
157
+ "lucide-react": "^0.525.0",
158
+ "react-day-picker": "^9.8.0",
159
+ "react-hook-form": "^7.60.0",
160
+ "react-select": "^5.10.1",
161
+ "tailwind-merge": "^3.3.1",
162
+ "uuid": "^11.1.0"
127
163
  },
128
164
  "eslintConfig": {
129
165
  "extends": [
@@ -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 };
@@ -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;