@sunggang/ui-lib 0.0.3 → 0.0.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 +18 -0
- package/.storybook/main.js +14 -0
- package/.storybook/preview.js +1 -0
- package/.storybook/tailwind-imports.css +81 -0
- package/components.json +15 -0
- package/package.json +8 -4
- package/postcss.config.js +10 -0
- package/project.json +31 -0
- package/src/components/ui/switch.tsx +27 -0
- package/src/index.ts +7 -0
- package/src/lib/DropImage/index.stories.tsx +42 -0
- package/src/lib/DropImage/index.tsx +110 -0
- package/src/lib/Modal/BaseModal.jsx +52 -0
- package/src/lib/Modal/ErrorContent.tsx +21 -0
- package/src/lib/Modal/FullScreenModal.jsx +39 -0
- package/src/lib/Modal/Modal.tsx +36 -0
- package/src/lib/Modal/ModalContent.tsx +60 -0
- package/src/lib/Modal/NoticeModal.jsx +91 -0
- package/src/lib/Modal/index.jsx +1 -0
- package/src/lib/Spin/index.tsx +20 -0
- package/src/lib/Switch/index.stories.tsx +24 -0
- package/src/lib/UploadImage/BaseTemplate.tsx +73 -0
- package/src/lib/UploadImage/CustomUpload.stories.tsx +52 -0
- package/src/lib/UploadImage/CustomUpload.tsx +95 -0
- package/src/lib/hello-server.tsx +4 -0
- package/src/lib/uiLibrary.spec.tsx +10 -0
- package/src/lib/uiLibrary.tsx +14 -0
- package/src/lib/utils.ts +6 -0
- package/src/server.ts +2 -0
- package/storybook-static/249.d700bcb8.iframe.bundle.js +95 -0
- package/storybook-static/249.d700bcb8.iframe.bundle.js.LICENSE.txt +25 -0
- package/storybook-static/249.d700bcb8.iframe.bundle.js.map +1 -0
- package/storybook-static/272.859c45b5.iframe.bundle.js +1 -0
- package/storybook-static/297.86b29044.iframe.bundle.js +1 -0
- package/storybook-static/301.7b83a51f.iframe.bundle.js +1 -0
- package/storybook-static/311.5beb2d3d.iframe.bundle.js +1 -0
- package/storybook-static/312.aa18d841.iframe.bundle.js +1 -0
- package/storybook-static/501.1fba3663.iframe.bundle.js +1 -0
- package/storybook-static/754.9ec23ac4.iframe.bundle.js +1 -0
- package/storybook-static/777.4b1d90f9.iframe.bundle.js +1 -0
- package/storybook-static/794.2230a3f3.iframe.bundle.js +1 -0
- package/storybook-static/852.18487f4c.iframe.bundle.js +402 -0
- package/storybook-static/852.18487f4c.iframe.bundle.js.LICENSE.txt +23 -0
- package/storybook-static/852.18487f4c.iframe.bundle.js.map +1 -0
- package/storybook-static/DropImage-index-stories.befa1b35.iframe.bundle.js +1 -0
- package/storybook-static/Switch-index-stories.9cfb2ba1.iframe.bundle.js +1 -0
- package/storybook-static/UploadImage-CustomUpload-stories.521444aa.iframe.bundle.js +1 -0
- package/storybook-static/favicon.svg +7 -0
- package/storybook-static/iframe.html +370 -0
- package/storybook-static/index.html +151 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/main.6f3c811b.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.28408b82.iframe.bundle.js +1 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +79 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +28 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/fonts.css +31 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/WithTooltip-Y7J54OF7-KHQOWZXS.js +1 -0
- package/storybook-static/sb-manager/chunk-3F3RRPB3.js +347 -0
- package/storybook-static/sb-manager/chunk-62YMTM65.js +6 -0
- package/storybook-static/sb-manager/chunk-AQBE2B7B.js +183 -0
- package/storybook-static/sb-manager/chunk-Q3RBXCN3.js +231 -0
- package/storybook-static/sb-manager/chunk-XP3HGWTR.js +1 -0
- package/storybook-static/sb-manager/chunk-YME6VNXZ.js +9 -0
- package/storybook-static/sb-manager/formatter-B5HCVTEV-7DCBOGO6.js +58 -0
- package/storybook-static/sb-manager/globals-module-info.js +1 -0
- package/storybook-static/sb-manager/globals-runtime.js +1 -0
- package/storybook-static/sb-manager/globals.js +1 -0
- package/storybook-static/sb-manager/index.js +1 -0
- package/storybook-static/sb-manager/runtime.js +1 -0
- package/storybook-static/sb-manager/syntaxhighlighter-JOJW2KGS-WAFIMSO6.js +1 -0
- package/storybook-static/sb-preview/globals.js +1 -0
- package/storybook-static/sb-preview/runtime.js +128 -0
- package/tailwind.config.js +76 -0
- package/tsconfig.json +25 -0
- package/tsconfig.lib.json +29 -0
- package/tsconfig.storybook.json +31 -0
- package/index.esm.d.ts +0 -1
- package/index.esm.js +0 -5755
- package/src/index.d.ts +0 -4
- package/src/lib/DropImage/index.d.ts +0 -8
- package/src/lib/Modal/ErrorContent.d.ts +0 -7
- package/src/lib/Modal/Modal.d.ts +0 -7
- package/src/lib/Modal/ModalContent.d.ts +0 -10
- package/src/lib/Spin/index.d.ts +0 -5
- package/src/lib/UploadImage/BaseTemplate.d.ts +0 -7
- package/src/lib/UploadImage/CustomUpload.d.ts +0 -10
- package/src/lib/hello-server.d.ts +0 -1
- package/src/lib/uiLibrary.d.ts +0 -4
- package/src/server.d.ts +0 -1
- /package/{index.esm.css → src/lib/uiLibrary.module.css} +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
const { createGlobPatternsForDependencies } = require('@nx/react/tailwind');
|
|
2
|
+
const { join } = require('path');
|
|
3
|
+
const { fontFamily } = require('tailwindcss/defaultTheme');
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
darkMode: ['class'],
|
|
7
|
+
content: [
|
|
8
|
+
join(
|
|
9
|
+
__dirname,
|
|
10
|
+
'{src,pages,components,app}/**/*!(*.stories|*.spec).{js,jsx,ts,tsx,html}'
|
|
11
|
+
),
|
|
12
|
+
...createGlobPatternsForDependencies(__dirname),
|
|
13
|
+
],
|
|
14
|
+
theme: {
|
|
15
|
+
extend: {
|
|
16
|
+
colors: {
|
|
17
|
+
border: 'hsl(var(--border))',
|
|
18
|
+
input: 'hsl(var(--input))',
|
|
19
|
+
ring: 'hsl(var(--ring))',
|
|
20
|
+
background: 'hsl(var(--background))',
|
|
21
|
+
foreground: 'hsl(var(--foreground))',
|
|
22
|
+
primary: {
|
|
23
|
+
DEFAULT: 'hsl(var(--primary))',
|
|
24
|
+
foreground: 'hsl(var(--primary-foreground))',
|
|
25
|
+
},
|
|
26
|
+
secondary: {
|
|
27
|
+
DEFAULT: 'hsl(var(--secondary))',
|
|
28
|
+
foreground: 'hsl(var(--secondary-foreground))',
|
|
29
|
+
},
|
|
30
|
+
destructive: {
|
|
31
|
+
DEFAULT: 'hsl(var(--destructive))',
|
|
32
|
+
foreground: 'hsl(var(--destructive-foreground))',
|
|
33
|
+
},
|
|
34
|
+
muted: {
|
|
35
|
+
DEFAULT: 'hsl(var(--muted))',
|
|
36
|
+
foreground: 'hsl(var(--muted-foreground))',
|
|
37
|
+
},
|
|
38
|
+
accent: {
|
|
39
|
+
DEFAULT: 'hsl(var(--accent))',
|
|
40
|
+
foreground: 'hsl(var(--accent-foreground))',
|
|
41
|
+
},
|
|
42
|
+
popover: {
|
|
43
|
+
DEFAULT: 'hsl(var(--popover))',
|
|
44
|
+
foreground: 'hsl(var(--popover-foreground))',
|
|
45
|
+
},
|
|
46
|
+
card: {
|
|
47
|
+
DEFAULT: 'hsl(var(--card))',
|
|
48
|
+
foreground: 'hsl(var(--card-foreground))',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
borderRadius: {
|
|
52
|
+
lg: `var(--radius)`,
|
|
53
|
+
md: `calc(var(--radius) - 2px)`,
|
|
54
|
+
sm: 'calc(var(--radius) - 4px)',
|
|
55
|
+
},
|
|
56
|
+
fontFamily: {
|
|
57
|
+
sans: ['var(--font-sans)', ...fontFamily.sans],
|
|
58
|
+
},
|
|
59
|
+
keyframes: {
|
|
60
|
+
'accordion-down': {
|
|
61
|
+
from: { height: '0' },
|
|
62
|
+
to: { height: 'var(--radix-accordion-content-height)' },
|
|
63
|
+
},
|
|
64
|
+
'accordion-up': {
|
|
65
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
|
66
|
+
to: { height: '0' },
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
animation: {
|
|
70
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
71
|
+
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
plugins: [require('tailwindcss-animate')],
|
|
76
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"jsx": "react-jsx",
|
|
4
|
+
"allowJs": false,
|
|
5
|
+
"esModuleInterop": false,
|
|
6
|
+
"allowSyntheticDefaultImports": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noImplicitAny": false,
|
|
9
|
+
"paths": {
|
|
10
|
+
"@sunggang/uiLibrary": ["uiLibrary/src/index.ts"],
|
|
11
|
+
"@sunggang/uiLibrary/*": ["uiLibrary/src/*"]
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [],
|
|
15
|
+
"include": [],
|
|
16
|
+
"references": [
|
|
17
|
+
{
|
|
18
|
+
"path": "./tsconfig.lib.json"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "./tsconfig.storybook.json"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"extends": "../tsconfig.base.json"
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../dist/out-tsc",
|
|
5
|
+
"types": [
|
|
6
|
+
"node",
|
|
7
|
+
"@nx/react/typings/cssmodule.d.ts",
|
|
8
|
+
"@nx/react/typings/image.d.ts",
|
|
9
|
+
"next",
|
|
10
|
+
"@nx/next/typings/image.d.ts"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"exclude": [
|
|
14
|
+
"jest.config.ts",
|
|
15
|
+
"src/**/*.spec.ts",
|
|
16
|
+
"src/**/*.test.ts",
|
|
17
|
+
"src/**/*.spec.tsx",
|
|
18
|
+
"src/**/*.test.tsx",
|
|
19
|
+
"src/**/*.spec.js",
|
|
20
|
+
"src/**/*.test.js",
|
|
21
|
+
"src/**/*.spec.jsx",
|
|
22
|
+
"src/**/*.test.jsx",
|
|
23
|
+
"**/*.stories.ts",
|
|
24
|
+
"**/*.stories.js",
|
|
25
|
+
"**/*.stories.jsx",
|
|
26
|
+
"**/*.stories.tsx"
|
|
27
|
+
],
|
|
28
|
+
"include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"]
|
|
29
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"emitDecoratorMetadata": true,
|
|
5
|
+
"outDir": ""
|
|
6
|
+
},
|
|
7
|
+
"files": [
|
|
8
|
+
"../node_modules/@nx/react/typings/styled-jsx.d.ts",
|
|
9
|
+
"../node_modules/@nx/react/typings/cssmodule.d.ts",
|
|
10
|
+
"../node_modules/@nx/react/typings/image.d.ts"
|
|
11
|
+
],
|
|
12
|
+
"exclude": [
|
|
13
|
+
"src/**/*.spec.ts",
|
|
14
|
+
"src/**/*.test.ts",
|
|
15
|
+
"src/**/*.spec.js",
|
|
16
|
+
"src/**/*.test.js",
|
|
17
|
+
"src/**/*.spec.tsx",
|
|
18
|
+
"src/**/*.test.tsx",
|
|
19
|
+
"src/**/*.spec.jsx",
|
|
20
|
+
"src/**/*.test.js"
|
|
21
|
+
],
|
|
22
|
+
"include": [
|
|
23
|
+
"src/**/*.stories.ts",
|
|
24
|
+
"src/**/*.stories.js",
|
|
25
|
+
"src/**/*.stories.jsx",
|
|
26
|
+
"src/**/*.stories.tsx",
|
|
27
|
+
"src/**/*.stories.mdx",
|
|
28
|
+
".storybook/*.js",
|
|
29
|
+
".storybook/*.ts"
|
|
30
|
+
]
|
|
31
|
+
}
|
package/index.esm.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./src/index";
|