@prom-ui/core 0.0.13 → 0.0.16

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 (76) hide show
  1. package/Body/index.js +1 -1
  2. package/Body/package.json +2 -2
  3. package/Body/style.css +741 -1
  4. package/Box/index.js +1 -1
  5. package/Box/package.json +2 -2
  6. package/Box/style.css +9676 -1
  7. package/Button/index.js +1 -1
  8. package/Button/package.json +2 -2
  9. package/Button/style.css +3393 -1
  10. package/ButtonPageUp/index.js +0 -2
  11. package/ButtonPageUp/package.json +3 -3
  12. package/Checkbox/index.js +1 -1
  13. package/Checkbox/package.json +3 -3
  14. package/Checkbox/style.css +133 -1
  15. package/Flex/index.js +1 -1
  16. package/Flex/package.json +2 -2
  17. package/Flex/style.css +786 -1
  18. package/Grid/index.js +1 -1
  19. package/Grid/package.json +2 -2
  20. package/Grid/style.css +7350 -1
  21. package/Icon/index.js +1 -1
  22. package/Icon/package.json +2 -2
  23. package/Icon/style.css +46 -1
  24. package/Image/index.js +1 -1
  25. package/Image/package.json +2 -2
  26. package/Image/style.css +664 -1
  27. package/ImageEmoji/package.json +2 -2
  28. package/Input/index.js +1 -1
  29. package/Input/package.json +2 -2
  30. package/Input/style.css +345 -1
  31. package/KeyPress/package.json +1 -1
  32. package/Line/index.js +1 -1
  33. package/Line/package.json +2 -2
  34. package/Line/style.css +138 -1
  35. package/Link/index.js +1 -1
  36. package/Link/package.json +2 -2
  37. package/Link/style.css +259 -1
  38. package/List/index.js +1 -1
  39. package/List/package.json +2 -2
  40. package/List/style.css +312 -1
  41. package/OutsideClick/package.json +1 -1
  42. package/Picture/index.js +1 -1
  43. package/Picture/package.json +2 -2
  44. package/Picture/style.css +1426 -1
  45. package/Portal/package.json +1 -1
  46. package/Rating/index.js +1 -1
  47. package/Rating/package.json +2 -2
  48. package/Rating/style.css +26 -1
  49. package/Scroll/index.js +1 -1
  50. package/Scroll/package.json +2 -2
  51. package/Scroll/style.css +169 -1
  52. package/ScrollControls/ScrollControlsButton.d.ts +12 -0
  53. package/ScrollControls/index.d.ts +8 -0
  54. package/ScrollControls/index.js +250 -0
  55. package/ScrollControls/package.json +11 -0
  56. package/ScrollControls/style.css +67 -0
  57. package/Skeleton/index.js +1 -1
  58. package/Skeleton/package.json +2 -2
  59. package/Skeleton/style.css +145 -1
  60. package/Spinner/index.js +1 -1
  61. package/Spinner/package.json +2 -2
  62. package/Spinner/style.css +80 -1
  63. package/Text/index.js +1 -1
  64. package/Text/package.json +2 -2
  65. package/Text/style.css +840 -1
  66. package/TextEmoji/package.json +2 -2
  67. package/Tumbler/index.js +1 -1
  68. package/Tumbler/package.json +3 -3
  69. package/Tumbler/style.css +118 -1
  70. package/base/colors.css +80 -0
  71. package/base/media.css +5 -0
  72. package/base/reset.css +120 -0
  73. package/base/round.css +12 -0
  74. package/base/spacing.css +12 -0
  75. package/base/typography.css +12 -0
  76. package/package.json +21 -21
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@prom-ui/core/TextEmoji",
3
- "version": "0.0.13",
3
+ "version": "0.0.16",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "dependencies": {
7
- "@evo/emoji-text": "0.1.1"
7
+ "@evo/emoji-text": "^0.1.1"
8
8
  }
9
9
  }
package/Tumbler/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- require("./style.css");
3
+ require('./style.css');
4
4
 
5
5
  Object.defineProperty(exports, '__esModule', { value: true });
6
6
 
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@prom-ui/core/Tumbler",
3
- "version": "0.0.13",
3
+ "version": "0.0.16",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "dependencies": {
7
- "classnames": "2.3.1",
8
- "react-transition-group": "4.4.2"
7
+ "classnames": "^2.3.1",
8
+ "react-transition-group": "^4.4.2"
9
9
  }
10
10
  }
package/Tumbler/style.css CHANGED
@@ -1 +1,118 @@
1
- .Tumbler__root___17yYC{position:relative;display:block;width:34px;height:20px;padding:3px 0;box-sizing:border-box;margin:calc((var(--pds-line-height) - 20px)/2)0;flex-shrink:0}.Tumbler__view___w66K2{height:100%;border-radius:1em;background:var(--black-400);transition:background-color 120ms ease-in-out}.Tumbler__viewCircle___xvJqd{box-sizing:border-box;position:absolute;top:0;left:0;width:20px;height:20px;border-radius:100%;transform:translateX(0);display:flex;align-items:center;justify-content:center;color:var(--violet-500);background:var(--white);border:1px var(--black-400) solid;box-shadow:1px 1px 4px 0 var(--black-400);transition:120ms ease-in-out;transition-property:background-color,border-color,transform}.Tumbler__input___Kg91O{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1;cursor:pointer}.Tumbler__input___Kg91O:disabled{cursor:default}.Tumbler__input___Kg91O:focus-visible+.Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd{outline:var(--pds-round-xxs) auto Highlight;outline:var(--pds-round-xxs) auto -webkit-focus-ring-color}.Tumbler__input___Kg91O:checked+.Tumbler__view___w66K2{background-color:var(--violet-50)}.Tumbler__input___Kg91O:checked+.Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd{transform:translateX(14px);color:var(--white);background-color:var(--violet-500);border-color:var(--violet-500)}.Tumbler__input___Kg91O:disabled+.Tumbler__view___w66K2{background-color:var(--black-200)}.Tumbler__input___Kg91O:disabled+.Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd{box-shadow:none;color:var(--violet-500);background-color:var(--black-400);border-color:var(--black-400)}.Tumbler__inputLoading___y1iJD{pointer-events:none;cursor:default}.Tumbler__spinner___CNMl7{opacity:0;transition:opacity 100ms ease-in-out;width:1em;height:1em}.Tumbler__spinnerEnterActive___C2P5b,.Tumbler__spinnerEnterDone___cgEXP{opacity:1}.Tumbler__spinnerExitActive___k-mzv,.Tumbler__spinnerExitDone___XD0-8{opacity:0}@media (hover){.Tumbler__input___Kg91O:hover+.Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd{border-color:var(--black-500)}.Tumbler__input___Kg91O:checked:hover+.Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd{border-color:var(--violet-500)}.Tumbler__input___Kg91O:disabled:hover+.Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd{border-color:var(--black-400)}}
1
+ .Tumbler__root___17yYC {
2
+ position: relative;
3
+ display: block;
4
+ width: 34px;
5
+ height: 20px;
6
+ padding: 3px 0;
7
+ box-sizing: border-box;
8
+ margin: calc((var(--pds-line-height) - 20px) / 2) 0;
9
+ flex-shrink: 0;
10
+ }
11
+
12
+ .Tumbler__view___w66K2 {
13
+ height: 100%;
14
+ border-radius: 1em;
15
+ background: var(--black-400);
16
+ transition: background-color 120ms ease-in-out;
17
+ }
18
+
19
+ .Tumbler__viewCircle___xvJqd {
20
+ box-sizing: border-box;
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ width: 20px;
25
+ height: 20px;
26
+ border-radius: 100%;
27
+ transform: translateX(0);
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ color: var(--violet-500);
32
+ background: var(--white);
33
+ border: 1px var(--black-400) solid;
34
+ box-shadow: 1px 1px 4px 0 var(--black-400);
35
+ transition: 120ms ease-in-out;
36
+ transition-property: background-color, border-color, transform;
37
+ }
38
+
39
+ .Tumbler__input___Kg91O {
40
+ position: absolute;
41
+ top: 0;
42
+ left: 0;
43
+ width: 100%;
44
+ height: 100%;
45
+ opacity: 0;
46
+ padding: 0;
47
+ margin: 0;
48
+ -webkit-appearance: none;
49
+ -moz-appearance: none;
50
+ appearance: none;
51
+ z-index: 1;
52
+ cursor: pointer
53
+ }
54
+
55
+ .Tumbler__input___Kg91O:disabled {
56
+ cursor: default;
57
+ }
58
+
59
+ .Tumbler__input___Kg91O:focus-visible + .Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd {
60
+ outline: var(--pds-round-xxs) auto Highlight;
61
+ outline: var(--pds-round-xxs) auto -webkit-focus-ring-color;
62
+ }
63
+
64
+ .Tumbler__input___Kg91O:checked + .Tumbler__view___w66K2 {
65
+ background-color: var(--violet-50)
66
+ }
67
+
68
+ .Tumbler__input___Kg91O:checked + .Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd {
69
+ transform: translateX(14px);
70
+ color: var(--white);
71
+ background-color: var(--violet-500);
72
+ border-color: var(--violet-500);
73
+ }
74
+
75
+ .Tumbler__input___Kg91O:disabled + .Tumbler__view___w66K2 {
76
+ background-color: var(--black-200)
77
+ }
78
+
79
+ .Tumbler__input___Kg91O:disabled + .Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd {
80
+ box-shadow: none;
81
+ color: var(--violet-500);
82
+ background-color: var(--black-400);
83
+ border-color: var(--black-400);
84
+ }
85
+
86
+ .Tumbler__inputLoading___y1iJD {
87
+ pointer-events: none;
88
+ cursor: default;
89
+ }
90
+
91
+ .Tumbler__spinner___CNMl7 {
92
+ opacity: 0;
93
+ transition: opacity 100ms ease-in-out;
94
+ width: 1em;
95
+ height: 1em;
96
+ }
97
+
98
+ .Tumbler__spinnerEnterActive___C2P5b,
99
+ .Tumbler__spinnerEnterDone___cgEXP {
100
+ opacity: 1;
101
+ }
102
+
103
+ .Tumbler__spinnerExitActive___k-mzv,
104
+ .Tumbler__spinnerExitDone___XD0-8 {
105
+ opacity: 0;
106
+ }
107
+
108
+ @media (hover) {
109
+ .Tumbler__input___Kg91O:hover + .Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd {
110
+ border-color: var(--black-500);
111
+ }
112
+ .Tumbler__input___Kg91O:checked:hover + .Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd {
113
+ border-color: var(--violet-500);
114
+ }
115
+ .Tumbler__input___Kg91O:disabled:hover + .Tumbler__view___w66K2 .Tumbler__viewCircle___xvJqd {
116
+ border-color: var(--black-400);
117
+ }
118
+ }
@@ -0,0 +1,80 @@
1
+ :root {
2
+ --violet-900: #3600C4;
3
+ --violet-800: #5300CB;
4
+ --violet-700: #6200D1;
5
+ --violet-600: #7200D9;
6
+ --violet-500: #7B04DF;
7
+ --violet-400: #9242E5;
8
+ --violet-300: #A768EA;
9
+ --violet-200: #C096F0;
10
+ --violet-100: #D9C1F5;
11
+ --violet-50: #F1E6FB;
12
+
13
+ --white: #ffffff;
14
+
15
+ --blue-900: #012070;
16
+ --blue-800: #012d88;
17
+ --blue-700: #0340a9;
18
+ --blue-600: #0456ca;
19
+ --blue-500: #0670eb;
20
+ --blue-400: #419bf3;
21
+ --blue-300: #67b8f9;
22
+ --blue-200: #9ad5fd;
23
+ --blue-100: #ccecfe;
24
+ --blue-50: #e3f5fe;
25
+
26
+ --green-900: #005800;
27
+ --green-800: #027602;
28
+ --green-700: #188711;
29
+ --green-600: #27981E;
30
+ --green-500: #32A727;
31
+ --green-400: #54B44B;
32
+ --green-300: #74C16B;
33
+ --green-200: #9DD296;
34
+ --green-100: #C3E3BF;
35
+ --green-50: #E6F4E5;
36
+
37
+ --yellow-900: #FC7600;
38
+ --yellow-800: #FEA200;
39
+ --yellow-700: #FEBC00;
40
+ --yellow-600: #FFD500;
41
+ --yellow-500: #FFD400;
42
+ --yellow-400: #FEEA3F;
43
+ --yellow-300: #FFEF67;
44
+ --yellow-200: #FFF394;
45
+ --yellow-100: #FFF8BF;
46
+ --yellow-50: #FFFDE5;
47
+
48
+ --orange-900: #CD5915;
49
+ --orange-800: #D86F18;
50
+ --orange-700: #DF7D1C;
51
+ --orange-600: #E58B1F;
52
+ --orange-500: #E99623;
53
+ --orange-400: #ECA537;
54
+ --orange-300: #EFB456;
55
+ --orange-200: #F3CA85;
56
+ --orange-100: #F8DEB5;
57
+ --orange-50: #FCF2E1;
58
+
59
+ --red-900: #DE0404;
60
+ --red-800: #F62513;
61
+ --red-700: #FF3018;
62
+ --red-600: #FF391F;
63
+ --red-500: #FF4023;
64
+ --red-400: #FF6444;
65
+ --red-300: #FF8466;
66
+ --red-200: #FFA992;
67
+ --red-100: #FFCBBD;
68
+ --red-50: #FFE9E8;
69
+
70
+ --black-900: #01011B;
71
+ --black-800: #45455C;
72
+ --black-700: #7D7D91;
73
+ --black-600: #ACACBE;
74
+ --black-500: #C1C1D4;
75
+ --black-400: #DADAE8;
76
+ --black-300: #E8E8F3;
77
+ --black-200: #F1F1F9;
78
+ --black-100: #F4F4F9;
79
+ --black-50: #F9F9FC;
80
+ }
package/base/media.css ADDED
@@ -0,0 +1,5 @@
1
+ @custom-media --pds-media-small only screen and (min-width: 480px);
2
+ @custom-media --pds-media-medium only screen and (min-width: 768px);
3
+ @custom-media --pds-media-large only screen and (min-width: 960px);
4
+ @custom-media --pds-media-wide only screen and (min-width: 1200px);
5
+ @custom-media --pds-media-huge only screen and (min-width: 1400px);
package/base/reset.css ADDED
@@ -0,0 +1,120 @@
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ border: 0;
5
+ }
6
+
7
+ :focus:not(:focus-visible) {
8
+ outline: 0;
9
+ }
10
+
11
+ ol,
12
+ ul {
13
+ list-style: none;
14
+ }
15
+
16
+ blockquote,
17
+ q {
18
+ quotes: none;
19
+ }
20
+
21
+ blockquote::after,
22
+ blockquote::before,
23
+ q::after,
24
+ q::before {
25
+ content: "";
26
+ content: none;
27
+ }
28
+
29
+ table {
30
+ border-spacing: 0;
31
+ border-collapse: collapse;
32
+ }
33
+
34
+ h1,
35
+ h2,
36
+ h3,
37
+ h4,
38
+ h5,
39
+ h6 {
40
+ font-size: inherit;
41
+ font-weight: inherit;
42
+ }
43
+
44
+ body,
45
+ html {
46
+ height: 100%;
47
+ }
48
+
49
+ body {
50
+ text-size-adjust: 100%;
51
+ -webkit-font-smoothing: subpixel-antialiased;
52
+ overflow-anchor: none;
53
+ }
54
+
55
+ a {
56
+ color: inherit;
57
+ cursor: pointer;
58
+ text-decoration: none;
59
+ }
60
+
61
+ b,
62
+ strong {
63
+ font-weight: 700;
64
+ }
65
+
66
+ em,
67
+ i {
68
+ font-style: italic;
69
+ }
70
+
71
+ textarea {
72
+ resize: none;
73
+ }
74
+
75
+ body,
76
+ button,
77
+ input,
78
+ textarea {
79
+ font-family: system-ui;
80
+ }
81
+
82
+ button,
83
+ input {
84
+ background: none;
85
+ font-size: inherit;
86
+ appearance: none;
87
+ }
88
+
89
+ /* recaptcha */
90
+ .grecaptcha-badge {
91
+ visibility: hidden;
92
+ }
93
+
94
+ /* scrollbar */
95
+ @media only screen and (min-width: 960px) {
96
+ div,
97
+ ul {
98
+ &::-webkit-scrollbar {
99
+ width: 6px;
100
+ height: 6px;
101
+ border-radius: var(--pds-round-m);
102
+ background: rgba(0, 0, 0, 0);
103
+ }
104
+
105
+ &::-webkit-scrollbar-thumb {
106
+ border-radius: var(--pds-round-m);
107
+ background-color: rgba(193, 193, 212, 0);
108
+ }
109
+
110
+ &:hover {
111
+ &::-webkit-scrollbar {
112
+ background: rgba(218, 218, 232, 0.5);
113
+ }
114
+
115
+ &::-webkit-scrollbar-thumb {
116
+ background-color: rgba(193, 193, 212, 1);
117
+ }
118
+ }
119
+ }
120
+ }
package/base/round.css ADDED
@@ -0,0 +1,12 @@
1
+ :root {
2
+ --pds-round-xxs: 2px;
3
+ --pds-round-xs: 4px;
4
+ --pds-round-s: 6px;
5
+ --pds-round-m: 8px;
6
+ --pds-round-l: 10px;
7
+ --pds-round-xl: 12px;
8
+ --pds-round-xxl: 14px;
9
+ --pds-round-3xl: 16px;
10
+ --pds-round-4xl: 18px;
11
+ --pds-round-5xl: 20px;
12
+ }
@@ -0,0 +1,12 @@
1
+ :root {
2
+ --pds-spacing-xxs: 4px;
3
+ --pds-spacing-xs: 8px;
4
+ --pds-spacing-s: 12px;
5
+ --pds-spacing-m: 16px;
6
+ --pds-spacing-l: 20px;
7
+ --pds-spacing-xl: 24px;
8
+ --pds-spacing-xxl: 28px;
9
+ --pds-spacing-3xl: 32px;
10
+ --pds-spacing-4xl: 36px;
11
+ --pds-spacing-5xl: 40px;
12
+ }
@@ -0,0 +1,12 @@
1
+ :root {
2
+ --pds-line-height: 1.429em;
3
+ --pds-font-size-small: 0.75rem; /* 12px */
4
+ --pds-font-size-default: 0.875rem; /* 14px */
5
+ --pds-font-size-big: 1rem; /* 16px */
6
+ --pds-font-size-h1: 1.5rem; /* 24px */
7
+ --pds-font-size-h2: 1.375rem; /* 22px */
8
+ --pds-font-size-h3: 1.25rem; /* 20px */
9
+ --pds-font-size-h4: 1.125rem; /* 18px */
10
+ --pds-font-size-h5: 1rem; /* 16px */
11
+ --pds-font-size-h6: 0.875rem; /* 14px */
12
+ }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@prom-ui/core",
3
3
  "author": "e.marchenko",
4
- "version": "0.0.13",
4
+ "version": "0.0.16",
5
5
  "description": "core ui blocks",
6
6
  "scripts": {
7
- "prebuild": "rm -rf dist && mkdir dist && cp -v package.json README.md CHANGELOG.md dist",
7
+ "prebuild": "node ./preBuild.js",
8
8
  "build": "rollup --config ./rollup.config.js",
9
9
  "watch": "rollup --config ./rollup.config.js --watch",
10
10
  "prepublishOnly": "npm run build"
@@ -25,31 +25,31 @@
25
25
  "@prom-ui/icons": "file:../icons/src"
26
26
  },
27
27
  "dependencies": {
28
- "@evo/emoji": "0.2.0",
29
- "@evo/emoji-text": "0.1.1",
28
+ "@evo/emoji": "^0.2.0",
29
+ "@evo/emoji-text": "^0.1.1",
30
30
  "@prom-ui/hooks": "^0.0.3",
31
31
  "@prom-ui/icons": "^0.0.5",
32
- "classnames": "2.3.1",
33
- "evokit": "3.2.3",
34
- "evokit-body": "3.2.0",
35
- "evokit-box": "3.4.0",
36
- "evokit-button": "3.0.1",
37
- "evokit-flex": "3.2.1",
38
- "evokit-grid": "3.3.0",
39
- "evokit-image": "3.2.0",
40
- "evokit-line": "3.1.0",
41
- "evokit-link": "3.2.0",
42
- "evokit-list": "3.3.0",
43
- "evokit-picture": "3.2.0",
44
- "evokit-text": "3.2.0",
45
- "react-transition-group": "4.4.2",
46
- "ts-debounce": "4.0.0",
47
- "ttag": "1.7.24"
32
+ "classnames": "^2.3.1",
33
+ "evokit": "^3.2.3",
34
+ "evokit-body": "^3.2.0",
35
+ "evokit-box": "^3.4.0",
36
+ "evokit-button": "^3.0.1",
37
+ "evokit-flex": "^3.2.1",
38
+ "evokit-grid": "^3.3.0",
39
+ "evokit-image": "^3.2.0",
40
+ "evokit-line": "^3.1.0",
41
+ "evokit-link": "^3.2.0",
42
+ "evokit-list": "^3.3.0",
43
+ "evokit-picture": "^3.2.0",
44
+ "evokit-text": "^3.2.0",
45
+ "react-transition-group": "^4.4.2",
46
+ "ts-debounce": "^4.0.0",
47
+ "ttag": "^1.7.24"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "prop-types": "*",
51
51
  "react": "*",
52
52
  "react-dom": "*"
53
53
  },
54
- "gitHead": "d98ac68fa5d224dc68cebadc95b2a03257f698c2"
54
+ "gitHead": "6b13ce8ae8cef474cf8b201c948f502fee5bd01c"
55
55
  }