@zuzjs/ui 0.3.4 → 0.3.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/src/hooks.tsx DELETED
@@ -1,8 +0,0 @@
1
- import { Provider, createSlice } from './context'
2
-
3
- export * from './hooks/index';
4
-
5
- export {
6
- Provider,
7
- createSlice
8
- }
@@ -1,3 +0,0 @@
1
- @mixin anim($duration: 0.3s) {
2
- transition: all $duration linear 0s;
3
- }
@@ -1,92 +0,0 @@
1
- *, *:before, *:after{
2
- -moz-box-sizing: border-box;
3
- -webkit-box-sizing: border-box;
4
- box-sizing: border-box;
5
- }
6
- *, html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, label, fieldset, input, p, blockquote, th, td{margin: 0;padding: 0;}
7
- table{border-collapse: collapse; border-spacing: 0;}
8
- fieldset, img {border: 0}
9
- address, caption, cite, code, dfn, em, strong, th, var {font-style: normal; font-weight: normal}
10
- ol, ul, li{list-style: none;}
11
- caption, th{text-align: left;}
12
- h1, h2, h3, h4, h5, h6{font-size: 100%; font-weight: normal;}
13
- div, img, button, input, textarea, select{outline: none}
14
- strong{font-weight: bold}
15
- em{font-style: italic;}
16
- a img{border: none;}
17
-
18
- button{cursor: pointer;}
19
- .grid{ display: grid; }
20
- .fixed{
21
- position: fixed;
22
- &.fill{
23
- top: 0px;
24
- left: 0px;
25
- right: 0px;
26
- bottom: 0px;
27
- }
28
- }
29
- .rel{ position: relative; }
30
- .abs{
31
- position: absolute;
32
- &.abc{
33
- top: 50%;
34
- left: 50%;
35
- transform: translate(-50%, -50%);
36
- }
37
- &.fill{
38
- top: 0px;
39
- left: 0px;
40
- right: 0px;
41
- bottom: 0px;
42
- }
43
- }
44
-
45
- .sticky{ position: sticky; }
46
- .block{display: block;}
47
- .iblock{display: inline-block;}
48
- .tdnh, .tdn{ text-decoration: none; }
49
- .tdnh:hover, .tdh:hover{ text-decoration: underline; }
50
-
51
- .flex{
52
- display: flex;
53
- &.ass{align-self: flex-start;}
54
- &.asc{align-self: center;}
55
- &.ase{align-self: flex-end;}
56
- &.ais{align-items: flex-start;}
57
- &.aic{align-items: center;}
58
- &.aie{align-items: flex-end;}
59
- &.jcs{justify-content: flex-start;}
60
- &.jcc{justify-content: center;}
61
- &.jce{justify-content: flex-end;}
62
- &.col{flex-direction: column;}
63
- }
64
-
65
- /*
66
- COLORS
67
- It will generate .cfff { color: #fff; } from 'fff'
68
- */
69
- $colors: 'fff','111','222','333','444','555','666','777','888','999';
70
- @each $n in $colors{
71
- .c#{$n} { color: unquote("#"+#{$n}); }
72
- }
73
-
74
- /*
75
- FONT SIZES
76
- It will generate .s10 { font-size: 12px; } from '12'
77
- */
78
- @for $i from 10 through 72 {
79
- @if $i % 2 == 0 {
80
- .s#{$i} { font-size: #{$i}px; }
81
- }
82
- }
83
-
84
- /*
85
- BoldSize
86
- It will generate .b400 { font-weight: 400; } from '400'
87
- */
88
- $bsizes: 100,200,300,400,500,600,700,800,900;
89
- .bold{ font-weight: bold; }
90
- @each $n in $bsizes{
91
- .b#{$n} { font-weight: #{$n}; }
92
- }
@@ -1,103 +0,0 @@
1
- @import './mixins.scss';
2
- @import './props.scss';
3
-
4
- @keyframes rotate-loop {
5
- from {
6
- -ms-transform: rotate(0deg);
7
- -moz-transform: rotate(0deg);
8
- -webkit-transform: rotate(0deg);
9
- -o-transform: rotate(0deg);
10
- transform: rotate(0deg);
11
- }
12
- to {
13
- -ms-transform: rotate(360deg);
14
- -moz-transform: rotate(360deg);
15
- -webkit-transform: rotate(360deg);
16
- -o-transform: rotate(360deg);
17
- transform: rotate(360deg);
18
- }
19
- }
20
-
21
- .zuz-spinner{
22
- .zuz-loader{
23
- animation: rotate-loop 0.5s linear infinite;
24
- }
25
- }
26
-
27
- .button{
28
- border: 0px;
29
- }
30
-
31
- .zuz-checkbox{
32
- opacity: 0; // hides checkbox
33
- position: absolute;
34
- & + label {
35
- position: relative;
36
- display: inline-block;
37
- user-select: none;
38
- transition: .4s ease;
39
- height: 26px;
40
- width: 44px;
41
- border-radius: 60px;
42
- background: #eee;
43
- &:before {
44
- content: "";
45
- position: absolute;
46
- display: block;
47
- transition: .2s cubic-bezier(.24, 0, .5, 1);
48
- height: 26px;
49
- width: 44px;
50
- top: 0;
51
- left: 0;
52
- border-radius: 30px;
53
- }
54
- &:after {
55
- content: "";
56
- position: absolute;
57
- display: block;
58
- transition: .35s cubic-bezier(.54, 1.60, .5, 1);
59
- background: #fff;
60
- height: 22px;
61
- width: 22px;
62
- top: 2px;
63
- left: 2px;
64
- border-radius: 60px;
65
- }
66
- }
67
- &:checked {
68
- & + label:before {
69
- background: green; // Active Color
70
- transition: width .2s cubic-bezier(0, 0, 0, .1);
71
- }
72
- & + label:after {
73
- left: 20px;
74
- }
75
- }
76
- }
77
-
78
- .zuz-contextmenu{
79
- width: 220px;
80
- border-radius: 5px;
81
- padding: 4px;
82
- background: rgba(34,34,34,0.5);
83
- border: 1px rgba(255,255,255,0.25) solid;
84
- box-shadow: 0px 1px 3px rgba(0, 0, 0, .45);
85
- backdrop-filter: blur(20px);
86
- button{
87
- border: 0px;
88
- text-align: left;
89
- padding: 4px 6px;
90
- background: rgba(0, 0, 0, 0);
91
- cursor: pointer;
92
- color: #fff;
93
- border-radius: 4px;
94
- &:hover{
95
- background: #5183ff;
96
- }
97
- }
98
- .line{
99
- height: 1px;
100
- background: rgba(255,255,255,0.25);
101
- margin: 4px 6px;
102
- }
103
- }
package/src/ui.tsx DELETED
@@ -1,13 +0,0 @@
1
- import './scss/styles.scss'
2
-
3
- export * from "./core"
4
-
5
- export { default as Stylesheet } from "./comps/stylesheet"
6
- export { default as Box } from "./comps/box"
7
- export { default as Heading } from "./comps/heading"
8
- export { default as Input } from "./comps/input"
9
- export { default as Button } from "./comps/button"
10
- export { default as Form } from "./comps/form"
11
- export { default as Icon } from "./comps/icon"
12
- export { default as Spinner } from "./comps/spinner"
13
- export { default as Select } from "./comps/select"
package/tsconfig.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2017",
4
- "jsx": "react-jsx",
5
- "allowJs": true,
6
- "esModuleInterop": true,
7
- "allowSyntheticDefaultImports": true,
8
- "moduleResolution":"node",
9
- "module": "ESNext",
10
- },
11
- "files": [],
12
- "include": [],
13
- "references": [
14
- {
15
- "path": "./tsconfig.lib.json"
16
- },
17
- {
18
- "path": "./tsconfig.spec.json"
19
- }
20
- ]
21
- }
package/tsconfig.lib.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./dist/out-tsc",
5
- "types": ["node","vite/client"]
6
- },
7
- "exclude": ["**/*.spec.ts", "**/*.spec.tsx", "node_modules"],
8
- "include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
9
- }
@@ -1,21 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./dist/out-tsc",
5
- "module": "commonjs",
6
- "types": [
7
- "jest",
8
- "node"
9
- ]
10
- },
11
- "include": [
12
- "**/*.spec.ts",
13
- "**/*.spec.tsx",
14
- "**/*.spec.js",
15
- "**/*.spec.jsx",
16
- "**/*.d.ts"
17
- ],
18
- "exclude": [
19
- "node_modules"
20
- ]
21
- }