@sunggang/ui-lib 0.0.5 → 0.0.6
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/index.esm.d.ts +1 -0
- package/index.esm.js +5870 -0
- package/package.json +5 -2
- package/src/components/ui/switch.d.ts +4 -0
- package/src/{index.ts → index.d.ts} +0 -2
- package/src/lib/DropImage/index.d.ts +14 -0
- package/src/lib/Modal/ErrorContent.d.ts +7 -0
- package/src/lib/Modal/Modal.d.ts +7 -0
- package/src/lib/Modal/ModalContent.d.ts +10 -0
- package/src/lib/Spin/index.d.ts +5 -0
- package/src/lib/UploadImage/BaseTemplate.d.ts +7 -0
- package/src/lib/UploadImage/CustomUpload.d.ts +10 -0
- package/src/lib/hello-server.d.ts +1 -0
- package/src/lib/uiLibrary.d.ts +4 -0
- package/src/lib/utils.d.ts +2 -0
- package/src/server.d.ts +1 -0
- package/.eslintrc.json +0 -18
- package/.storybook/main.js +0 -14
- package/.storybook/preview.js +0 -1
- package/.storybook/tailwind-imports.css +0 -81
- package/components.json +0 -15
- package/postcss.config.js +0 -10
- package/project.json +0 -31
- package/src/components/ui/switch.tsx +0 -27
- package/src/lib/DropImage/index.stories.tsx +0 -42
- package/src/lib/DropImage/index.tsx +0 -110
- package/src/lib/Modal/BaseModal.jsx +0 -52
- package/src/lib/Modal/ErrorContent.tsx +0 -21
- package/src/lib/Modal/FullScreenModal.jsx +0 -39
- package/src/lib/Modal/Modal.tsx +0 -36
- package/src/lib/Modal/ModalContent.tsx +0 -60
- package/src/lib/Modal/NoticeModal.jsx +0 -91
- package/src/lib/Modal/index.jsx +0 -1
- package/src/lib/Spin/index.tsx +0 -20
- package/src/lib/Switch/index.stories.tsx +0 -24
- package/src/lib/UploadImage/BaseTemplate.tsx +0 -73
- package/src/lib/UploadImage/CustomUpload.stories.tsx +0 -52
- package/src/lib/UploadImage/CustomUpload.tsx +0 -95
- package/src/lib/hello-server.tsx +0 -4
- package/src/lib/uiLibrary.spec.tsx +0 -10
- package/src/lib/uiLibrary.tsx +0 -14
- package/src/lib/utils.ts +0 -6
- package/src/server.ts +0 -2
- package/storybook-static/249.d700bcb8.iframe.bundle.js +0 -95
- package/storybook-static/249.d700bcb8.iframe.bundle.js.LICENSE.txt +0 -25
- package/storybook-static/249.d700bcb8.iframe.bundle.js.map +0 -1
- package/storybook-static/272.859c45b5.iframe.bundle.js +0 -1
- package/storybook-static/297.86b29044.iframe.bundle.js +0 -1
- package/storybook-static/301.7b83a51f.iframe.bundle.js +0 -1
- package/storybook-static/311.5beb2d3d.iframe.bundle.js +0 -1
- package/storybook-static/312.aa18d841.iframe.bundle.js +0 -1
- package/storybook-static/501.1fba3663.iframe.bundle.js +0 -1
- package/storybook-static/754.9ec23ac4.iframe.bundle.js +0 -1
- package/storybook-static/777.4b1d90f9.iframe.bundle.js +0 -1
- package/storybook-static/794.2230a3f3.iframe.bundle.js +0 -1
- package/storybook-static/852.18487f4c.iframe.bundle.js +0 -402
- package/storybook-static/852.18487f4c.iframe.bundle.js.LICENSE.txt +0 -23
- package/storybook-static/852.18487f4c.iframe.bundle.js.map +0 -1
- package/storybook-static/DropImage-index-stories.befa1b35.iframe.bundle.js +0 -1
- package/storybook-static/Switch-index-stories.9cfb2ba1.iframe.bundle.js +0 -1
- package/storybook-static/UploadImage-CustomUpload-stories.521444aa.iframe.bundle.js +0 -1
- package/storybook-static/favicon.svg +0 -7
- package/storybook-static/iframe.html +0 -370
- package/storybook-static/index.html +0 -151
- package/storybook-static/index.json +0 -1
- package/storybook-static/main.6f3c811b.iframe.bundle.js +0 -1
- package/storybook-static/project.json +0 -1
- package/storybook-static/runtime~main.28408b82.iframe.bundle.js +0 -1
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
- 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 +0 -12
- 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 +0 -79
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -28
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -31
- 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 +0 -1
- package/storybook-static/sb-manager/chunk-3F3RRPB3.js +0 -347
- package/storybook-static/sb-manager/chunk-62YMTM65.js +0 -6
- package/storybook-static/sb-manager/chunk-AQBE2B7B.js +0 -183
- package/storybook-static/sb-manager/chunk-Q3RBXCN3.js +0 -231
- package/storybook-static/sb-manager/chunk-XP3HGWTR.js +0 -1
- package/storybook-static/sb-manager/chunk-YME6VNXZ.js +0 -9
- package/storybook-static/sb-manager/formatter-B5HCVTEV-7DCBOGO6.js +0 -58
- package/storybook-static/sb-manager/globals-module-info.js +0 -1
- package/storybook-static/sb-manager/globals-runtime.js +0 -1
- package/storybook-static/sb-manager/globals.js +0 -1
- package/storybook-static/sb-manager/index.js +0 -1
- package/storybook-static/sb-manager/runtime.js +0 -1
- package/storybook-static/sb-manager/syntaxhighlighter-JOJW2KGS-WAFIMSO6.js +0 -1
- package/storybook-static/sb-preview/globals.js +0 -1
- package/storybook-static/sb-preview/runtime.js +0 -128
- package/tailwind.config.js +0 -76
- package/tsconfig.json +0 -25
- package/tsconfig.lib.json +0 -29
- package/tsconfig.storybook.json +0 -31
- /package/{src/lib/uiLibrary.module.css → index.esm.css} +0 -0
package/tailwind.config.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
}
|
package/tsconfig.lib.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
}
|
package/tsconfig.storybook.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|