@jk-core/components 0.0.6 → 0.0.62

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/style.css ADDED
@@ -0,0 +1 @@
1
+ .Calendar-module__calendar___SH8Oi{width:100%;min-width:300px;border:1px solid var(--G-30);border-radius:10px;overflow:hidden;color:var(--G-80);background-color:var(--white)}.Calendar-module__calendar__close___JvLIp{display:flex;justify-content:flex-end;align-items:center;padding:5px 5px 0 0}.Calendar-module__calendar__close___JvLIp svg{width:15px;height:15px;cursor:pointer}.Calendar-module__view___7exi2{position:relative;margin:0 auto;width:90%;display:flex;justify-content:space-between;align-items:center;background-color:#f3f4f8;border-radius:10px}.Calendar-module__view__block___WoTRz{position:absolute;background-color:#fff;left:0;height:100%;border:2px solid var(--G-30);width:33.3%;border-radius:10px;transition:.3s}.Calendar-module__view__block--second___g9PBT{left:33%}.Calendar-module__view__block--last___lTIPU{left:66.6%}.Calendar-module__view__selector___2scy1{position:relative;height:40px;flex:1 0;display:flex;align-items:center;justify-content:center;color:var(--G-60);font-size:1em;font-weight:400}.Calendar-module__view__selector--selected___-RTyq{color:var(--G-80);font-size:1em;font-weight:600}.Calendar-module__nav___XySNj{height:60px;display:flex;justify-content:space-between;align-items:center;padding:0 5px;border-bottom:1px solid var(--G-30);font-size:1.3em;font-weight:400}.Calendar-module__nav__button___1p9K2{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:10px;border-radius:100%}.Calendar-module__nav__button___1p9K2:active{background-color:var(--G-30)}.Calendar-module__nav__button___1p9K2:disabled{cursor:not-allowed;fill:var(--G-40);background-color:transparent}.Calendar-module__nav__label___1FuFb{flex:1 0;display:flex;align-items:center;justify-content:space-around;font-size:1.1em;font-weight:400}.Calendar-module__nav__label--date___-aPkb{display:flex;align-items:center;justify-content:center;border-radius:5px;padding:5px 10px;font-size:1.2em;font-weight:400}.Calendar-module__nav__label--date___-aPkb svg{width:15px;height:15px}.Calendar-module__nav__label--date-selected___Hzv6l{background-color:var(--S-10)}.DayTile-module__body___lsW-K{min-height:310px;padding:5px;background-color:var(--white)}.DayTile-module__body__tile___9WIwL{display:flex;flex-direction:column;justify-content:space-between;gap:5px}.DayTile-module__body__weeks___DSCMe{display:flex;justify-content:space-between;font-weight:400;font-size:1em}.DayTile-module__body__weeks--date___IaXNj{flex:1 0;display:flex;justify-content:center;align-items:center;min-width:40px;padding:5px 0}.DayTile-module__body__week___asdpo{display:flex;justify-content:space-between}.DayTile-module__body__day___dP1SN{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;min-width:40px;min-height:40px;border-radius:100%;padding:5px;border:none;font-weight:400;font-size:1em}@media (min-width: 1396px){.DayTile-module__body__day___dP1SN:hover{background-color:var(--G-5)}}.DayTile-module__body__day___dP1SN:active{background-color:var(--G-10)}.DayTile-module__body__day--today___A2Enr{color:var(--P-50);font-weight:600}.DayTile-module__body__day--selected___vlYLu{background-color:var(--P-50)!important;color:var(--white)!important;font-weight:600}.DayTile-module__body__day--before___sHkix{color:var(--G-40)}.DayTile-module__body__day--tile___XDQvk{border-radius:10px;gap:5px}.MonthTile-module__body___-RwSa{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);gap:5px;min-height:310px;padding:5px;background-color:var(--white)}.MonthTile-module__body__month___0Jcso{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;border-radius:10px}.MonthTile-module__body__month___0Jcso svg{width:15px;height:15px;cursor:pointer}.MonthTile-module__body__month___0Jcso:active{background-color:var(--G-10)}.MonthTile-module__body__month--selected___BlifI{background-color:var(--P-50)!important;color:var(--white)!important}.MonthTile-module__body__month--today___Pwqqz{color:var(--P-50);font-weight:600}.MonthTile-module__body__month--tile___mmoOD{justify-content:flex-start;gap:5px}.YearTile-module__body___X4k9L{min-height:310px;padding:5px;background-color:var(--white);position:relative;height:310px;display:flex;flex-direction:column;align-items:center;overflow:auto;gap:10px}.YearTile-module__body___X4k9L::-webkit-scrollbar{display:none}.YearTile-module__body__blank___hxBpz{height:calc(50% - 40px);flex-shrink:0}.YearTile-module__body__blank___hxBpz:last-child{height:50%}.YearTile-module__body__year___TTehK{min-width:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:40px;border-radius:6px;flex-shrink:0;overflow:hidden;font-weight:400;font-size:1.2em}@media (min-width: 1396px){.YearTile-module__body__year___TTehK:hover{background-color:var(--P-5)}}.YearTile-module__body__year___TTehK:active{background-color:var(--P-10)}.YearTile-module__body__year--border___XcEpg{border:1px solid var(--G-30);background-color:var(--P-5)}@media (min-width: 1396px){.YearTile-module__body__year--border___XcEpg:hover{background-color:var(--P-10)}}.YearTile-module__body__year--year___YaqCc{height:40px;display:flex;align-items:center;justify-content:center}.YearTile-module__body__year--selected___Ietiw{color:var(--white);background-color:var(--P-50)!important}.YearTile-module__body__year--tile___v4tAt{display:flex;align-items:center;justify-content:center;min-height:40px;color:var(--G-80);width:100%;background-color:var(--white);border-top:var(--P-50)}:root{--white: #ffffff;--black: #000000;--P-5: #eff5ff;--P-10: #d3e1fb;--P-20: #a7c4f7;--P-30: #7ca6f3;--P-40: #5089ef;--P-50: #246beb;--P-60: #1d56bc;--P-70: #16408d;--P-90: #07152f;--P-100: #000000;--S-5: #edf1f5;--S-10: #cdd7e4;--S-20: #b4c4d6;--S-30: #99b0cb;--S-40: #2a5c96;--S-50: #003675;--S-60: #002b5e;--S-70: #002036;--S-80: #00162f;--S-90: #000b17;--G-5: #f8f8f8;--G-10: #f0f0f0;--G-20: #e4e4e4;--G-30: #d8d8d8;--G-40: #c6c6c6;--G-50: #8e8e8e;--G-60: #717171;--G-70: #555555;--G-80: #2d2d2d;--G-90: #1d1d1d;--Point-5: #fdf2f3;--Point-10: #f8d6d8;--Point-20: #f5a3a8;--Point-30: #f1747c;--Point-40: #ec4651;--Point-50: #e71825;--Point-60: #b9131e;--Point-70: #8b0e16;--Point-80: #5c0a0f;--Point-90: #2e0507;--Warning-5: #fff8e9;--Warning-10: #ffeac1;--Warning-20: #ffe2a7;--Warning-30: #ffd47c;--Warning-40: #ffc550;--Warning-50: #ffb724;--Warning-60: #98690a;--Warning-70: #66490e;--Warning-80: #4d370b;--Warning-90: #332507;--Success-5: #eef7f0;--Success-10: #cee9d4;--Success-20: #b2dcbb;--Success-30: #8cca99;--Success-40: #33a14b;--Success-50: #008a1e;--Success-60: #006e18;--Success-70: #005312;--Success-80: #00370c;--Success-90: #002207;--Info-5: #e9f0ff;--Info-10: #d4e1ff;--Info-20: #a9c3ff;--Info-30: #7da4ff;--Info-40: #5286ff;--Info-50: #2768ff;--Info-60: #1f53cc;--Info-70: #173e99;--Info-80: #0c1f4d;--Info-90: #040a1a;--Red: #e40000;--Red2: #ffe4e4;--Green: #2fb400;--Green-2: #d7ffe0;--Orange: #ff8800;--Orange-5: #ffead1;--Orange-10: #ffdacc;--Orange-30: #ff8f66;--Orange-40: #ff6a33;--Orange-50: #ff4500;--Orange-60: #d53209;--Orange-70: #992900;--Orange-80: #661c00;--Orange-90: #330e00;--Modal-Shadow: #0000005a;--Modal-Background: #6666663a;--Calendar-Background: #ffffff}
package/package.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "@jk-core/components",
3
- "version": "0.0.6",
3
+ "version": "0.0.62",
4
4
  "type": "module",
5
- "main": "./dist/index.js",
5
+ "main": "./dist/index.umd.cjs",
6
+ "types": "./dist/index.d.ts",
7
+ "module": "./dist/index.js",
6
8
  "license": "MIT",
7
9
  "description": "components for jk",
8
10
  "author": "KimKyungYun <kky38225221@gmail.com>",
@@ -19,11 +21,15 @@
19
21
  },
20
22
  "exports": {
21
23
  ".": {
22
- "types": "./dist/index.d.ts",
23
24
  "import": "./dist/index.js",
24
- "require": "./dist/index.cjs"
25
+ "require": "./dist/index.umd.cjs"
25
26
  }
26
27
  },
28
+ "files": [
29
+ "dist",
30
+ "dist/style.css",
31
+ "src"
32
+ ],
27
33
  "keywords": [
28
34
  "utils",
29
35
  "kyungyun",
package/.eslintrc.json DELETED
@@ -1,63 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es2021": true
5
- },
6
- "extends": [
7
- "eslint:recommended",
8
- "plugin:@typescript-eslint/recommended",
9
- "plugin:react/recommended",
10
- "airbnb",
11
- "airbnb/hooks",
12
- "airbnb-typescript"
13
- ],
14
- "parser": "@typescript-eslint/parser",
15
- "parserOptions": {
16
- "ecmaVersion": "latest",
17
- "sourceType": "module",
18
- "project": ["./tsconfig.json"]
19
- },
20
- "plugins": [
21
- "@typescript-eslint",
22
- "react"
23
- ],
24
- "rules": {
25
- "import/prefer-default-export":"off",
26
- "no-var": "error",
27
- "jsx-a11y/control-has-associated-label":"off",
28
- "jsx-a11y/label-has-associated-control": [
29
- 2,
30
- {
31
- "labelAttributes": ["htmlFor"],
32
- "depth": 3
33
- }
34
- ],
35
- "react/react-in-jsx-scope": "off",
36
- "react/jsx-props-no-spreading": "off",
37
- "react/require-default-props": "off",
38
- "react/jsx-one-expression-per-line": "off",
39
- "implicit-arrow-linebreak": "off",
40
- "linebreak-style" : "off",
41
- "import/no-extraneous-dependencies": ["error", {"devDependencies": true}],
42
- "no-restricted-imports": [
43
- "error",
44
- {
45
- "patterns": [
46
- {
47
- "group": ["../../../*"],
48
- "message": "Please use absolute path."
49
- }
50
- ]
51
- }
52
- ],
53
- "sort-imports": [
54
- "error",
55
- {
56
- "ignoreCase": true,
57
- "ignoreDeclarationSort": true,
58
- "ignoreMemberSort": false,
59
- "memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
60
- }
61
- ]
62
- }
63
- }
package/.stylelintrc.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "extends": [
3
- "stylelint-config-standard",
4
- "stylelint-config-standard-scss"
5
- ],
6
- "plugins": ["stylelint-scss","stylelint-selector-bem-pattern"],
7
- "recommendations": ["stylelint.vscode-stylelint"],
8
- "rules": {
9
- "property-no-vendor-prefix":null,
10
- "import-notation": "string",
11
- "selector-class-pattern": null,
12
- "color-hex-length": null,
13
- "no-descending-specificity": null,
14
- "color-function-notation":null,
15
- "alpha-value-notation":null,
16
- "scss/percent-placeholder-pattern":null,
17
- "custom-property-pattern":null,
18
- "declaration-empty-line-before":null,
19
- "scss/at-mixin-pattern":null,
20
- "plugin/selector-bem-pattern": {
21
- "componentName": "[A-Z]+",
22
- "componentSelectors": {
23
- "initial": "^\\.{componentName}(?:-[a-z]+)?$",
24
- "combined": "^\\.combined-{componentName}-[a-z]+$"
25
- },
26
- "utilitySelectors": "^\\.util-[a-z]+$"
27
- }
28
- }
29
- }
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "composite": true,
5
- "baseUrl": "./src",
6
- "outDir": "dist",
7
- "rootDir": "./src",
8
- "jsx": "react-jsx",
9
- "emitDeclarationOnly": true,
10
- "types": ["node", "vite/client","vite-plugin-svgr/client"],
11
- },
12
- "include": ["./src", "./src/svg.d.ts"]
13
- }
package/vite.config.ts DELETED
@@ -1,58 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react-swc'
3
- import tsconfigPaths from 'vite-tsconfig-paths';
4
- import svgr from 'vite-plugin-svgr';
5
- import checker from 'vite-plugin-checker';
6
- import { resolve } from 'path'
7
- import dts from 'vite-plugin-dts'
8
- import sassDts from 'vite-plugin-sass-dts';
9
-
10
- // https://vitejs.dev/config/
11
- export default defineConfig({
12
- plugins: [
13
- react(),
14
- tsconfigPaths(),
15
- dts(),
16
- sassDts(),
17
- svgr({ include: '**/*.svg' }),
18
- checker({
19
- typescript: true,
20
- eslint: {
21
- lintCommand: 'eslint "./src/**/*.{ts,tsx}"',
22
- },
23
- overlay: {
24
- badgeStyle: 'width:fit-content;font-size:14px;',
25
- },
26
- }),
27
- ],
28
- css: {
29
- modules: {
30
- scopeBehaviour: 'local',
31
- generateScopedName: '[name]__[local]___[hash:base64:5]'
32
- },
33
- preprocessorOptions: {
34
- scss: {
35
- api:'modern-compiler'
36
- }
37
- }
38
- },
39
- build: {
40
- lib: {
41
- entry: resolve(__dirname, './src/index.tsx'),
42
- name:'index',
43
- fileName: 'index'
44
- },
45
- sourcemap: true,
46
- rollupOptions: {
47
- external: ['react', 'sass'],
48
- output: {
49
- assetFileNames:'style.css',
50
- globals: {
51
- react: 'React',
52
- sass: 'sass'
53
- },
54
- }
55
- },
56
- outDir: 'dist'
57
- }
58
- })