@onepercentio/one-ui 0.8.1 → 0.8.2

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 (74) hide show
  1. package/dist/hooks/usePagination.d.ts +1 -0
  2. package/dist/hooks/usePagination.js +2 -2
  3. package/dist/hooks/usePagination.js.map +1 -1
  4. package/package.json +1 -1
  5. package/dist/assets/img/svg/checkbox.svg +0 -3
  6. package/dist/assets/styles/index.scss +0 -2
  7. package/dist/assets/styles/mixins.scss +0 -12
  8. package/dist/assets/styles/variables.scss +0 -51
  9. package/dist/components/AdaptiveButton/AdaptiveButton.module.scss +0 -51
  10. package/dist/components/AdaptiveContainer/AdaptiveContainer.module.scss +0 -51
  11. package/dist/components/AdaptiveDialog/AdaptiveDialog.module.scss +0 -145
  12. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.module.scss +0 -52
  13. package/dist/components/AnchoredTooltip/AnchoredTooltip.module.scss +0 -62
  14. package/dist/components/AnimatedEntrance/AnimatedEntrance.module.scss +0 -107
  15. package/dist/components/Avatar/Avatar.module.scss +0 -22
  16. package/dist/components/Background/Background.d.ts +0 -7
  17. package/dist/components/Background/Background.js +0 -58
  18. package/dist/components/Background/Background.js.map +0 -1
  19. package/dist/components/Background/Background.module.scss +0 -106
  20. package/dist/components/Background/Background.stories.d.ts +0 -7
  21. package/dist/components/Background/Background.stories.js +0 -30
  22. package/dist/components/Background/Background.stories.js.map +0 -1
  23. package/dist/components/Background/ground-tile.svg +0 -9
  24. package/dist/components/Background/index.d.ts +0 -1
  25. package/dist/components/Background/index.js +0 -9
  26. package/dist/components/Background/index.js.map +0 -1
  27. package/dist/components/BucketFill/BucketFill.module.scss +0 -36
  28. package/dist/components/BucketFill/BucketFill.stories.module.scss +0 -3
  29. package/dist/components/Button/Button.module.scss +0 -42
  30. package/dist/components/Card/Card.module.scss +0 -12
  31. package/dist/components/CheckBox/CheckBox.module.scss +0 -25
  32. package/dist/components/Collapsable/Collapsable.module.scss +0 -34
  33. package/dist/components/Divider/Divider.module.scss +0 -7
  34. package/dist/components/EmailInput/EmailInput.module.scss +0 -0
  35. package/dist/components/FadeIn/FadeIn.module.scss +0 -18
  36. package/dist/components/FileInput/FileInput.module.scss +0 -27
  37. package/dist/components/FlowController/FlowController.module.scss +0 -47
  38. package/dist/components/Header/Header.module.scss +0 -119
  39. package/dist/components/HeaderCloseBtn/HeaderCloseBtn.module.scss +0 -44
  40. package/dist/components/InfinityScroll/InfinityScroll.module.scss +0 -30
  41. package/dist/components/Input/Input.module.scss +0 -69
  42. package/dist/components/LinkToId/LinkToId.module.scss +0 -4
  43. package/dist/components/Loader/Loader.module.scss +0 -40
  44. package/dist/components/MainGrid/MainGrid.module.scss +0 -28
  45. package/dist/components/MutableHamburgerButton/MutableHamburgerButton.module.scss +0 -179
  46. package/dist/components/Notification/Notification.module.scss +0 -25
  47. package/dist/components/Parallax/Parallax.module.scss +0 -28
  48. package/dist/components/PasswordInput/PasswordInput.module.scss +0 -11
  49. package/dist/components/PixelatedScan/PixelatedScan.module.scss +0 -86
  50. package/dist/components/Portal/Portal.module.scss +0 -3
  51. package/dist/components/ProgressBar/ProgressBar.module.scss +0 -32
  52. package/dist/components/ProgressTexts/ProgressTexts.module.scss +0 -37
  53. package/dist/components/SectionContainer/SectionContainer.module.scss +0 -30
  54. package/dist/components/Select/Select.module.scss +0 -46
  55. package/dist/components/Spacing/Spacing.module.scss +0 -13
  56. package/dist/components/Table/Table.module.scss +0 -76
  57. package/dist/components/Tabs/Tabs.module.scss +0 -22
  58. package/dist/components/Text/Text.module.scss +0 -77
  59. package/dist/components/Transition/Transition.module.scss +0 -188
  60. package/dist/components/Transition/TransitionContainer/TransitionContainer.d.ts +0 -4
  61. package/dist/components/Transition/TransitionContainer/TransitionContainer.js +0 -14
  62. package/dist/components/Transition/TransitionContainer/TransitionContainer.js.map +0 -1
  63. package/dist/components/Transition/TransitionContainer/index.d.ts +0 -1
  64. package/dist/components/Transition/TransitionContainer/index.js +0 -9
  65. package/dist/components/Transition/TransitionContainer/index.js.map +0 -1
  66. package/dist/components/UncontrolledTransition/UncontrolledTransition.stories.module.scss +0 -66
  67. package/dist/components/utilitary/ScrollAndFocusLock/ScrollAndFocusLock.module.scss +0 -5
  68. package/dist/context/AsyncProcessQueue.d.ts +0 -37
  69. package/dist/context/AsyncProcessQueue.js +0 -160
  70. package/dist/context/AsyncProcessQueue.js.map +0 -1
  71. package/dist/context/OneUIProvider.test.d.ts +0 -1
  72. package/dist/context/OneUIProvider.test.js +0 -45
  73. package/dist/context/OneUIProvider.test.js.map +0 -1
  74. package/dist/types.d.ts +0 -85
@@ -1,69 +0,0 @@
1
- @import "../../assets/styles/index.scss";
2
-
3
- .inputContainer {
4
- position: relative;
5
- display: flex;
6
- .icon {
7
- position: absolute;
8
- top: 1.5px;
9
- right: 1.5px;
10
- min-height: 30px;
11
- min-width: 30px;
12
- cursor: pointer;
13
- user-select: none;
14
- &img {
15
- height: 30px;
16
- width: 30px;
17
- }
18
- }
19
- &.withIcon {
20
- padding-right: 33px;
21
- }
22
- input,
23
- textarea {
24
- border: none;
25
- background-color: transparent;
26
- width: 100%;
27
- font-size: 22px;
28
- line-height: 33px;
29
- font-family: $mainFontFamily;
30
- color: var(--input-text-color, $spaceBlue);
31
- margin-bottom: 18px;
32
- outline: none;
33
- &:placeholder-shown ~ .border {
34
- animation-iteration-count: infinite;
35
- animation-duration: $verySlow;
36
- animation-name: pulse;
37
- animation-delay: $slow;
38
- }
39
- }
40
- & .border {
41
- position: absolute;
42
- left: 0px;
43
- right: 0px;
44
- bottom: 18px;
45
- height: 1px;
46
- background-color: $spaceBlue;
47
- opacity: 0;
48
- }
49
- .caption {
50
- position: absolute;
51
- bottom: 0px;
52
- white-space: nowrap;
53
- text-overflow: ellipsis;
54
- overflow: hidden;
55
- max-width: 100%;
56
- }
57
- }
58
-
59
- @keyframes pulse {
60
- 0% {
61
- opacity: 0;
62
- }
63
- 50% {
64
- opacity: 0.1;
65
- }
66
- 100% {
67
- opacity: 0;
68
- }
69
- }
@@ -1,4 +0,0 @@
1
- .root:hover {
2
- text-decoration: underline;
3
- cursor: pointer;
4
- }
@@ -1,40 +0,0 @@
1
- @import "../../assets/styles/variables.scss";
2
-
3
- .indicator {
4
- white-space: nowrap;
5
- font-size: 14px;
6
- & span {
7
- display: inline-block;
8
- width: 0.75em;
9
- height: 0.75em;
10
- border-radius: 0.375em;
11
- margin-left: 4px;
12
- background-color: $digitalBlue;
13
- animation-name: transparentToOpaque;
14
- animation-duration: $normal;
15
- animation-iteration-count: infinite;
16
- animation-timing-function: ease-out;
17
- &:nth-child(1) {
18
- margin-left: initial;
19
- animation-delay: 0;
20
- }
21
- &:nth-child(2) {
22
- animation-delay: $veryFast;
23
- }
24
- &:nth-child(3) {
25
- animation-delay: $fast;
26
- }
27
- }
28
- }
29
-
30
- @keyframes transparentToOpaque {
31
- 0% {
32
- opacity: 0;
33
- }
34
- 50% {
35
- opacity: 1;
36
- }
37
- 100% {
38
- opacity: 0;
39
- }
40
- }
@@ -1,28 +0,0 @@
1
- .container {
2
- display: flex;
3
- flex-wrap: wrap;
4
- align-items: flex-start;
5
- justify-content: space-between;
6
-
7
- // TODO: Priorize reducing width of empty elements insteas of the main container
8
- > :nth-child(1),
9
- > :nth-child(3) {
10
- flex: 1;
11
- max-width: 250px;
12
- min-width: 150px;
13
- }
14
-
15
- .content {
16
- min-width: 250px;
17
- }
18
-
19
- > :nth-child(2) {
20
- flex: 1;
21
- max-width: 1200px;
22
- }
23
- }
24
-
25
- .section {
26
- align-items: flex-start;
27
- min-height: initial;
28
- }
@@ -1,179 +0,0 @@
1
- @use 'sass:math';
2
- @import "../../assets/styles/index.scss";
3
-
4
- $slice: math.div(1, 7);
5
-
6
- .container {
7
- box-sizing: content-box;
8
- cursor: pointer;
9
- width: 1em;
10
- height: 1em;
11
- display: flex;
12
- flex-direction: column;
13
- align-items: center;
14
- justify-content: space-evenly;
15
- background-size: 0 0;
16
- background-repeat: no-repeat;
17
- transition: transform 250ms;
18
- transition-timing-function: ease-in-out;
19
- &:active {
20
- transform: scale(0.9);
21
- }
22
- > * {
23
- position: relative;
24
- flex-shrink: 0;
25
- box-sizing: border-box;
26
- width: 0.8em;
27
- height: #{$slice}em;
28
- border-radius: #{math.div($slice, 2)}em;
29
- transition: transform $veryFast, width $veryFast, height $veryFast,
30
- border-width $veryFast, background-color $veryFast,
31
- border-radius $veryFast, top $veryFast;
32
- background: var(--mutable-hamburger-background, $digitalBlue);
33
- background-size: 1em 1em;
34
- background-repeat: no-repeat;
35
- border: 0em solid #0000;
36
- top: 0px;
37
- &:nth-child(1) {
38
- border-top-color: var(--mutable-hamburger-background, $digitalBlue);
39
- }
40
- &:nth-child(2) {
41
- border-right-color: var(--mutable-hamburger-background, $digitalBlue);
42
- }
43
- &:nth-child(3) {
44
- border-bottom-color: var(--mutable-hamburger-background, $digitalBlue);
45
- border-left-color: var(--mutable-hamburger-background, $digitalBlue);
46
- }
47
- }
48
- & > * {
49
- background-position-x: -0.1em;
50
- }
51
- & > :nth-child(1) {
52
- background-position-y: #{$slice * -1}em;
53
- }
54
- & > :nth-child(2) {
55
- background-position-y: #{$slice * -3}em;
56
- }
57
- & > :nth-child(3) {
58
- background-position-y: #{$slice * -5}em;
59
- }
60
-
61
- &.closed {
62
- > :nth-child(1) {
63
- transform: translateY(#{$slice * 2}em) rotateZ(-45deg);
64
- }
65
- > :nth-child(2) {
66
- transform: rotateZ(45deg);
67
- }
68
- > :nth-child(3) {
69
- transform: translateY(-#{$slice * 2}em) rotateZ(-45deg);
70
- }
71
- }
72
-
73
- &.arrow-up {
74
- > * {
75
- width: 0.4em;
76
- }
77
- > :nth-child(1) {
78
- transform: translateX(0.1em) translateY(#{$slice * 2}em) rotateZ(45deg);
79
- }
80
- > :nth-child(2) {
81
- transform: translateX(0.1em) rotateZ(45deg);
82
- }
83
- > :nth-child(3) {
84
- transform: translateX(-0.1em) translateY(-#{$slice * 2}em) rotateZ(-45deg);
85
- }
86
- }
87
-
88
- &.arrow-down {
89
- > * {
90
- width: 0.4em;
91
- }
92
- > :nth-child(1) {
93
- transform: translateX(0.1em) translateY(#{$slice * 2}em) rotateZ(-45deg);
94
- }
95
- > :nth-child(2) {
96
- transform: translateX(0.1em) rotateZ(-45deg);
97
- }
98
- > :nth-child(3) {
99
- transform: translateX(-0.1em) translateY(-#{$slice * 2}em) rotateZ(45deg);
100
- }
101
- }
102
-
103
- &.search {
104
- > :nth-child(1) {
105
- $rate: 1.8;
106
- width: #{$slice * $rate + math.div($slice, 1.35)}em;
107
- height: #{$slice * $rate + math.div($slice, 1.35)}em;
108
- border-radius: #{$slice * $rate * 2}em;
109
- background-color: transparent;
110
- border: #{math.div($slice, 1.35)}em solid
111
- var(--mutable-hamburger-background, $digitalBlue);
112
- transform: translateX(-0.15em);
113
- }
114
- > :nth-child(2) {
115
- transform: translateX(0.12em) translateY(-0.05em) rotateZ(45deg);
116
- height: #{math.div($slice, 1.35)}em;
117
- width: 0.55em;
118
- }
119
- > :nth-child(3) {
120
- transform: translateX(0.12em) translateY(-#{($slice * 1.3) + 0.085}em)
121
- rotateZ(45deg);
122
- height: #{math.div($slice, 1.35)}em;
123
- width: 0.55em;
124
- }
125
- }
126
-
127
- &.checkmark {
128
- > :nth-child(1) {
129
- transform: translateY(#{$slice * 2}em) translateX(-0.178em)
130
- translateY(0.13em) rotate(45deg);
131
- height: #{$slice}em;
132
- width: 0.45em;
133
- }
134
- > :nth-child(2) {
135
- height: #{$slice}em;
136
- width: 0.7em;
137
- transform: translateX(0.1em) rotate(-55deg);
138
- }
139
- > :nth-child(3) {
140
- transform: translateY(-#{$slice * 2}em) translateX(0.1em) rotate(-55deg);
141
- height: #{$slice}em;
142
- width: 0.7em;
143
- }
144
- }
145
-
146
- &.loading {
147
- $slice: math.div(1, 6);
148
- @keyframes rotate {
149
- 0% {
150
- transform: rotate(0deg);
151
- }
152
- 100% {
153
- transform: rotate(360deg);
154
- }
155
- }
156
- animation-name: rotate;
157
- animation-duration: 1s;
158
- animation-delay: $veryFast;
159
- animation-iteration-count: infinite;
160
- animation-timing-function: linear;
161
- > * {
162
- background-color: #0000;
163
- width: #{$slice * 4.5}em;
164
- height: #{$slice * 4.5}em;
165
- border-radius: #{$slice * 4.5}em;
166
- border-width: #{$slice}em;
167
- }
168
- > :nth-child(1) {
169
- top: (#{$slice * 4.5}em);
170
- }
171
- > :nth-child(2) {
172
- transform: rotateZ(-5deg);
173
- }
174
- > :nth-child(3) {
175
- transform: rotateZ(-95deg);
176
- top: (-#{$slice * 4.5}em);
177
- }
178
- }
179
- }
@@ -1,25 +0,0 @@
1
- @import "../../assets/styles/variables.scss";
2
-
3
- .container {
4
- animation-fill-mode: forwards;
5
- animation-duration: $fast;
6
- animation-name: expand;
7
- width: auto;
8
- min-width: 250px;
9
- }
10
-
11
- .success {
12
- background-color: $success;
13
- }
14
-
15
- @keyframes expand {
16
- 0% {
17
- padding: 0px 12px;
18
- max-height: 0%;
19
- }
20
-
21
- 100% {
22
- padding: 12px 12px;
23
- max-height: 100%;
24
- }
25
- }
@@ -1,28 +0,0 @@
1
- @import "../../assets/styles/index.scss";
2
-
3
- .parallax {
4
- display: flex;
5
- position: relative;
6
- transition: transform $fast;
7
- overflow: hidden;
8
- user-select: none;
9
- transform: translate3d(0, 0, 0);
10
- }
11
-
12
- .reflection {
13
- transform: translateX(-50%) translateY(-50%);
14
- width: 40%;
15
- pointer-events: none;
16
- &::after {
17
- background: radial-gradient(#fff2, #fff2 5%, #aaa0 50%);
18
- background-size: 100% 100%;
19
- content: "";
20
- display: block;
21
- padding-bottom: 100%;
22
- border-radius: 50%;
23
- background-repeat: no-repeat;
24
- }
25
- position: absolute;
26
- left: -50%;
27
- top: -50%;
28
- }
@@ -1,11 +0,0 @@
1
- .inputContainer {
2
- &.creation {
3
- padding-bottom: 54px;
4
- }
5
- position: relative;
6
-
7
- .rules {
8
- position: absolute;
9
- bottom: 0px;
10
- }
11
- }
@@ -1,86 +0,0 @@
1
- @import "../../assets/styles/index.scss";
2
-
3
- $animationDurationMs: 2000;
4
-
5
- @value animationDuration #{$animationDurationMs};
6
-
7
- $animationDuration: #{$animationDurationMs}ms;
8
-
9
- .guide {
10
- width: 100%;
11
- position: absolute;
12
- animation-duration: $animationDuration;
13
- display: flex;
14
- flex-direction: column;
15
- justify-content: flex-end;
16
- animation-fill-mode: forwards;
17
- animation-timing-function: linear;
18
- min-height: 10px;
19
- top: 0;
20
- &::after {
21
- content: " ";
22
- width: 100%;
23
- height: 10px;
24
- background: $pixelatedGuideBackground;
25
- }
26
- }
27
-
28
- .grid {
29
- position: absolute;
30
- top: 0px;
31
- right: 0px;
32
- left: 0px;
33
- bottom: 0px;
34
- overflow: hidden;
35
- > * {
36
- display: flex;
37
- opacity: 0;
38
- &.guide {
39
- opacity: 1;
40
- }
41
- }
42
- &.inverse {
43
- transform: rotateX(180deg);
44
- }
45
- }
46
-
47
- .gridItem {
48
- background-color: var(--pixel-color);
49
- }
50
-
51
- .gridAnimate {
52
- animation-duration: #{$animationDurationMs}ms;
53
- }
54
-
55
- .iterate {
56
- .guide {
57
- animation-name: upAndDown;
58
- }
59
- .gridAnimate {
60
- animation-name: onAndOff;
61
- will-change: opacity;
62
- }
63
- }
64
-
65
- @keyframes onAndOff {
66
- 0% {
67
- opacity: 0;
68
- }
69
-
70
- 10% {
71
- opacity: 1;
72
- }
73
-
74
- 100% {
75
- opacity: 0;
76
- }
77
- }
78
-
79
- @keyframes upAndDown {
80
- 0% {
81
- height: 0%;
82
- }
83
- 100% {
84
- height: 100%;
85
- }
86
- }
@@ -1,3 +0,0 @@
1
- .portal > :not(:last-child) {
2
- display: none;
3
- }
@@ -1,32 +0,0 @@
1
- @use "sass:math";
2
- @import "../../assets/styles/index.scss";
3
-
4
- .container {
5
- margin: 0.375em;
6
- height: 0.25em;
7
- background-color: red;
8
- position: relative;
9
- border-radius: math.div(0.25em, 2);
10
- background: var(--progress-bar-bg, #0000);
11
- > :first-child {
12
- position: absolute;
13
- top: 0;
14
- left: 0;
15
- background-color: green;
16
- height: inherit;
17
- border-top-left-radius: math.div(0.25em, 2);
18
- border-bottom-left-radius: math.div(0.25em, 2);
19
- background: var(--progress-bar-bar, var(--digital-blue));
20
- transition: width var(--animation-speed-transition, $fast) ease-out;
21
- }
22
- > :last-child {
23
- position: absolute;
24
- margin-top: math.div(-0.5em, 1.25);
25
- margin-left: -0.5em;
26
- height: 1em;
27
- width: 1em;
28
- border-radius: 0.5em;
29
- transition: left var(--animation-speed-transition, $fast) ease-out;
30
- background: var(--progress-bar-guide, var(--digital-blue));
31
- }
32
- }
@@ -1,37 +0,0 @@
1
- @import "../../assets/styles/index.scss";
2
-
3
- .container {
4
- font-family: Manrope;
5
- transition: max-height $slow;
6
- overflow: hidden;
7
- max-height: 0px;
8
- * {
9
- text-align: left;
10
- }
11
- button {
12
- text-align: center;
13
- }
14
- h1 {
15
- font-weight: bold;
16
- font-size: 34px;
17
- line-height: 41px;
18
- color: $spaceBlue !important;
19
- }
20
- p {
21
- font-family: Roboto;
22
- font-size: 22px;
23
- line-height: 33px;
24
- }
25
- }
26
-
27
- .hidden {
28
- max-height: 0px !important;
29
- }
30
-
31
- .loading * {
32
- color: $spaceBlue !important;
33
- }
34
-
35
- .disabled * {
36
- color: $mediumGray !important;
37
- }
@@ -1,30 +0,0 @@
1
- .root {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- width: 100%;
6
- height: 100%;
7
- .content {
8
- width: 100%;
9
- max-width: 1200px;
10
- &.decorated {
11
- position: relative;
12
- }
13
- }
14
- .decoration {
15
- position: absolute;
16
- bottom: 0px;
17
- left: 0px;
18
- width: 16px;
19
- height: 16px;
20
- &.light {
21
- background-color: white;
22
- }
23
- &.dark {
24
- background-color: black;
25
- }
26
- }
27
- h1 {
28
- margin-bottom: 24px;
29
- }
30
- }
@@ -1,46 +0,0 @@
1
- @import "../../assets/styles/index.scss";
2
-
3
- > :last-child {
4
- position: absolute;
5
- right: 0px;
6
- z-index: 100;
7
- }
8
- .items > * {
9
- cursor: pointer;
10
- background: $mainBackgroundColor;
11
- padding: 12px 32px;
12
- margin-bottom: 8px;
13
- margin-left: 4px;
14
- margin-right: 4px;
15
- text-align: left;
16
- border-radius: 4px;
17
- font-size: 14px;
18
- &.selected {
19
- background-color: $lightGray;
20
- }
21
- }
22
- .empty {
23
- opacity: 0.3;
24
- }
25
- .input {
26
- transition: opacity $fast;
27
- cursor: pointer;
28
- padding-right: 30px;
29
- overflow: hidden;
30
- text-overflow: ellipsis;
31
- }
32
- .indicator {
33
- display: flex;
34
- align-items: center;
35
- justify-content: center;
36
- transition: transform $fast;
37
- min-height: inherit;
38
- transform: rotateX(0deg);
39
- }
40
- .open {
41
- transform: rotateX(180deg);
42
- }
43
- .optionsContainer {
44
- margin: 0px 8px;
45
- box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.16);
46
- }
@@ -1,13 +0,0 @@
1
- .spacing_large {
2
- height: 33px;
3
- }
4
- .spacing_small {
5
- height: 15px;
6
- }
7
- .spacing_stretch {
8
- flex: 1;
9
- }
10
-
11
- .spacing {
12
- display: block;
13
- }