armtek-uikit-react 1.0.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 (50) hide show
  1. package/README.md +1 -0
  2. package/lib/Button/package.json +7 -0
  3. package/lib/cjs/assets/fonts.scss +20 -0
  4. package/lib/cjs/assets/global.css +35 -0
  5. package/lib/cjs/assets/index.d.ts +16 -0
  6. package/lib/cjs/assets/styles.scss +132 -0
  7. package/lib/cjs/index.d.ts +29 -0
  8. package/lib/cjs/index.js +7 -0
  9. package/lib/cjs/shared/hooks/useClickOutside.d.ts +3 -0
  10. package/lib/cjs/shared/hooks/useClickOutside.js +22 -0
  11. package/lib/cjs/shared/services/DateService.d.ts +12 -0
  12. package/lib/cjs/shared/services/DateService.js +48 -0
  13. package/lib/cjs/shared/types/theme.d.ts +10 -0
  14. package/lib/cjs/shared/types/theme.js +3 -0
  15. package/lib/cjs/shared/utils/helpers.d.ts +5 -0
  16. package/lib/cjs/shared/utils/helpers.js +48 -0
  17. package/lib/cjs/ui/Button/Button.d.ts +15 -0
  18. package/lib/cjs/ui/Button/Button.js +44 -0
  19. package/lib/cjs/ui/Button/Button.module.scss +298 -0
  20. package/lib/cjs/ui/Button/ButtonGroup.d.ts +6 -0
  21. package/lib/cjs/ui/Button/ButtonGroup.js +26 -0
  22. package/lib/cjs/ui/Button/ButtonIcon.d.ts +3 -0
  23. package/lib/cjs/ui/Button/ButtonIcon.js +21 -0
  24. package/lib/cjs/ui/Button/style.css +299 -0
  25. package/lib/dist/armtek-uikit-react-index.js +1335 -0
  26. package/lib/dist/armtek-uikit-react-index.min.js +2 -0
  27. package/lib/dist/armtek-uikit-react-index.min.js.LICENSE.txt +15 -0
  28. package/lib/esm/assets/fonts.scss +20 -0
  29. package/lib/esm/assets/global.css +35 -0
  30. package/lib/esm/assets/index.d.ts +16 -0
  31. package/lib/esm/assets/styles.scss +132 -0
  32. package/lib/esm/index.d.ts +29 -0
  33. package/lib/esm/index.js +1 -0
  34. package/lib/esm/shared/hooks/useClickOutside.d.ts +3 -0
  35. package/lib/esm/shared/hooks/useClickOutside.js +17 -0
  36. package/lib/esm/shared/services/DateService.d.ts +12 -0
  37. package/lib/esm/shared/services/DateService.js +42 -0
  38. package/lib/esm/shared/types/theme.d.ts +10 -0
  39. package/lib/esm/shared/types/theme.js +1 -0
  40. package/lib/esm/shared/utils/helpers.d.ts +5 -0
  41. package/lib/esm/shared/utils/helpers.js +40 -0
  42. package/lib/esm/ui/Button/Button.d.ts +15 -0
  43. package/lib/esm/ui/Button/Button.js +38 -0
  44. package/lib/esm/ui/Button/Button.module.scss +298 -0
  45. package/lib/esm/ui/Button/ButtonGroup.d.ts +6 -0
  46. package/lib/esm/ui/Button/ButtonGroup.js +20 -0
  47. package/lib/esm/ui/Button/ButtonIcon.d.ts +3 -0
  48. package/lib/esm/ui/Button/ButtonIcon.js +15 -0
  49. package/lib/esm/ui/Button/style.css +299 -0
  50. package/package.json +94 -0
@@ -0,0 +1,299 @@
1
+ .text_error {
2
+ color: #cc2935;
3
+ }
4
+ .text_success {
5
+ color: #0bd998;
6
+ }
7
+ .adornmentContainer {
8
+ display: flex;
9
+ }
10
+ .adornmentContainer_end {
11
+ margin-left: auto;
12
+ }
13
+ .adornment_end + * {
14
+ margin-left: 8px;
15
+ }
16
+ .adornment_start + * {
17
+ margin-left: 8px;
18
+ }
19
+ .button {
20
+ outline: none;
21
+ border: 1px solid transparent;
22
+ border-radius: 4px;
23
+ text-transform: uppercase;
24
+ padding: 8px 24px;
25
+ cursor: pointer;
26
+ transition: 0.3s all ease;
27
+ font-weight: 500;
28
+ font-size: 16px;
29
+ height: 56px;
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ }
34
+ .button:disabled {
35
+ cursor: initial;
36
+ }
37
+ .button_contained.button_primary {
38
+ color: #fff;
39
+ background: #0d46ff;
40
+ }
41
+ .button_contained.button_primary:hover {
42
+ background: #0b3cd9;
43
+ }
44
+ .button_contained.button_primary:active {
45
+ background: #406dff;
46
+ }
47
+ .button_contained.button_primary:disabled {
48
+ background: #0b3cd9;
49
+ }
50
+ .button_contained.button_secondary {
51
+ background: #ff7f00;
52
+ color: #fff;
53
+ }
54
+ .button_contained.button_secondary:hover {
55
+ background: #d96c00;
56
+ }
57
+ .button_contained.button_secondary:active {
58
+ background: #ff9426;
59
+ }
60
+ .button_contained.button_secondary:disabled {
61
+ background: #ffa140;
62
+ }
63
+ .button_contained.button_neutral {
64
+ background: #4d5359;
65
+ }
66
+ .button_contained.button_neutral:hover {
67
+ background: #40454a;
68
+ }
69
+ .button_contained.button_neutral:active {
70
+ background: #6c757d;
71
+ }
72
+ .button_contained.button_neutral:disabled {
73
+ background: #ffa140;
74
+ }
75
+ .button_contained.button_black {
76
+ background: #212529;
77
+ }
78
+ .button_contained.button_black:hover {
79
+ background: #40454a;
80
+ }
81
+ .button_contained.button_black:active {
82
+ background: #6c757d;
83
+ }
84
+ .button_contained.button_black:disabled {
85
+ background: #ffa140;
86
+ }
87
+ .button_outlined {
88
+ background: transparent;
89
+ }
90
+ .button_outlined.button_primary {
91
+ color: #0d46ff;
92
+ border-color: #0d46ff;
93
+ background: transparent;
94
+ }
95
+ .button_outlined.button_primary:hover {
96
+ background: rgba(13, 70, 255, 0.1);
97
+ }
98
+ .button_outlined.button_primary:active {
99
+ background: #d9e2ff;
100
+ }
101
+ .button_outlined.button_primary:disabled {
102
+ color: #0b3cd9;
103
+ border-color: #0b3cd9;
104
+ }
105
+ .button_outlined.button_secondary {
106
+ border-color: #ff7f00;
107
+ color: #ff7f00;
108
+ }
109
+ .button_outlined.button_secondary:hover {
110
+ background: rgba(255, 127, 0, 0.1);
111
+ }
112
+ .button_outlined.button_secondary:active {
113
+ background: #ffe6cc;
114
+ }
115
+ .button_outlined.button_secondary:disabled {
116
+ color: #0b3cd9;
117
+ border-color: #0b3cd9;
118
+ }
119
+ .button_outlined.button_neutral, .button_outlined.button_black {
120
+ border-color: #212529;
121
+ color: #212529;
122
+ }
123
+ .button_outlined.button_neutral:hover, .button_outlined.button_black:hover {
124
+ background: rgba(77, 83, 89, 0.1);
125
+ }
126
+ .button_outlined.button_neutral:active, .button_outlined.button_black:active {
127
+ background: #d3dae1;
128
+ }
129
+ .button_outlined.button_neutral:disabled, .button_outlined.button_black:disabled {
130
+ color: #9aa4ae;
131
+ border-color: #9aa4ae;
132
+ }
133
+ .button_transparent {
134
+ background: transparent;
135
+ }
136
+ .button_transparent.button_primary {
137
+ color: #0d46ff;
138
+ background: transparent;
139
+ }
140
+ .button_transparent.button_primary:hover {
141
+ background: rgba(13, 70, 255, 0.1);
142
+ }
143
+ .button_transparent.button_primary:active {
144
+ background: #d9e2ff;
145
+ }
146
+ .button_transparent.button_primary:disabled {
147
+ color: #0b3cd9;
148
+ background: none;
149
+ }
150
+ .button_transparent.button_secondary {
151
+ color: #ff7f00;
152
+ }
153
+ .button_transparent.button_secondary:hover {
154
+ background: rgba(255, 127, 0, 0.1);
155
+ }
156
+ .button_transparent.button_secondary:active {
157
+ background: #ffe6cc;
158
+ }
159
+ .button_transparent.button_secondary:disabled {
160
+ color: #0b3cd9;
161
+ background: none;
162
+ }
163
+ .button_transparent.button_neutral, .button_transparent.button_black {
164
+ color: #212529;
165
+ }
166
+ .button_transparent.button_neutral:hover, .button_transparent.button_black:hover {
167
+ background: rgba(77, 83, 89, 0.1);
168
+ }
169
+ .button_transparent.button_neutral:active, .button_transparent.button_black:active {
170
+ background: #d3dae1;
171
+ }
172
+ .button_transparent.button_neutral:disabled, .button_transparent.button_black:disabled {
173
+ color: #9aa4ae;
174
+ background: none;
175
+ }
176
+ .button__adornment {
177
+ font-size: inherit;
178
+ }
179
+ .button__adornment_end {
180
+ margin-left: 8px;
181
+ }
182
+ .button__adornment_start {
183
+ margin-right: 8px;
184
+ }
185
+ .button_large {
186
+ height: 42px;
187
+ font-size: 15px;
188
+ }
189
+ .button_medium {
190
+ height: 36px;
191
+ font-size: 14px;
192
+ }
193
+ .button_small {
194
+ height: 30px;
195
+ font-size: 13px;
196
+ }
197
+ .button_icon {
198
+ padding: 8px;
199
+ width: 56px;
200
+ border-radius: 50%;
201
+ display: flex;
202
+ align-items: center;
203
+ justify-content: center;
204
+ font-size: 30px;
205
+ }
206
+ .button_icon.button_large {
207
+ width: 42px;
208
+ font-size: 24px;
209
+ }
210
+ .button_icon.button_medium {
211
+ width: 36px;
212
+ font-size: 20px;
213
+ }
214
+ .button_icon.button_small {
215
+ width: 30px;
216
+ padding: 4px;
217
+ font-size: 16px;
218
+ }
219
+ .button_group {
220
+ display: flex;
221
+ align-items: center;
222
+ }
223
+ .button_group_inline {
224
+ flex-direction: row;
225
+ }
226
+ .button_group_column {
227
+ flex-direction: column;
228
+ }
229
+ .button_grouped_inline {
230
+ border-radius: 0;
231
+ }
232
+ .button_grouped_inline:first-child {
233
+ border-top-left-radius: 4px;
234
+ border-bottom-left-radius: 4px;
235
+ }
236
+ .button_grouped_inline:last-child {
237
+ border-top-right-radius: 4px;
238
+ border-bottom-right-radius: 4px;
239
+ }
240
+ .button_grouped_inline.button_contained.button_primary + * {
241
+ border-left-color: #0b3cd9;
242
+ }
243
+ .button_grouped_inline.button_contained.button_secondary + * {
244
+ border-left-color: #0b3cd9;
245
+ }
246
+ .button_grouped_inline.button_contained.button_neutral + * {
247
+ border-left-color: #40454a;
248
+ }
249
+ .button_grouped_inline.button_contained.button_black + * {
250
+ border-left-color: #40454a;
251
+ }
252
+ .button_grouped_inline.button_outlined.button_primary + * {
253
+ border-left-color: #0b3cd9;
254
+ }
255
+ .button_grouped_inline.button_outlined.button_primary:not(:last-child) {
256
+ border-right: 0;
257
+ }
258
+ .button_grouped_inline.button_outlined.button_secondary + * {
259
+ border-left-color: #ff7f00;
260
+ }
261
+ .button_grouped_inline.button_outlined.button_secondary:not(:last-child) {
262
+ border-right: 0;
263
+ }
264
+ .button_grouped_inline.button_outlined.button_neutral + * {
265
+ border-left-color: #4d5359;
266
+ }
267
+ .button_grouped_inline.button_outlined.button_neutral:not(:last-child) {
268
+ border-right: 0;
269
+ }
270
+ .button_grouped_inline.button_outlined.button_black + * {
271
+ border-left-color: #4d5359;
272
+ }
273
+ .button_grouped_inline.button_outlined.button_black:not(:last-child) {
274
+ border-right: 0;
275
+ }
276
+ .button_grouped_inline.button_transparent.button_primary + * {
277
+ border-left-color: #dfe2e6;
278
+ }
279
+ .button_grouped_inline.button_transparent.button_secondary + * {
280
+ border-left-color: #dfe2e6;
281
+ }
282
+ .button_grouped_inline.button_transparent.button_neutral + * {
283
+ border-left-color: #dfe2e6;
284
+ }
285
+ .button_grouped_inline.button_transparent.button_black + * {
286
+ border-left-color: #dfe2e6;
287
+ }
288
+ .button_grouped_column {
289
+ border-radius: 0;
290
+ }
291
+ .button_grouped_column:first-child {
292
+ border-top-left-radius: 4px;
293
+ border-top-right-radius: 4px;
294
+ }
295
+ .button_grouped_column:last-child {
296
+ border-bottom-left-radius: 4px;
297
+ border-bottom-right-radius: 4px;
298
+ }
299
+
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "armtek-uikit-react",
3
+ "version": "1.0.2",
4
+ "description": "Armtek UIKit for React",
5
+ "main": "lib/cjs/index.js",
6
+ "module": "lib/esm/index.js",
7
+ "types": "lib/esm/index.d.ts",
8
+ "files": [
9
+ "lib"
10
+ ],
11
+ "scripts": {
12
+ "start": "storybook dev -p 3000",
13
+ "build": "node tools/build.js",
14
+ "build-types": "tsc -d --emitDeclarationOnly --outDir types",
15
+ "test": "echo \"Error: no test specified\" && exit 1",
16
+ "storybook": "storybook dev -p 6006",
17
+ "publish": "node tools/build.js && npm version patch && npm publish"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "ssh://git@gl.corp:10022/int/uikit/uikit_react.git"
22
+ },
23
+ "author": "",
24
+ "license": "ISC",
25
+ "dependencies": {
26
+ "rc-slider": "^10.2.1",
27
+ "react": "*",
28
+ "react-datepicker": "^4.16.0",
29
+ "react-dom": "*"
30
+ },
31
+ "devDependencies": {
32
+ "@babel/cli": "^7.22.15",
33
+ "@babel/core": "^7.22.17",
34
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
35
+ "@babel/plugin-proposal-export-default-from": "^7.22.17",
36
+ "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
37
+ "@babel/plugin-proposal-private-methods": "^7.18.6",
38
+ "@babel/plugin-transform-export-namespace-from": "^7.22.11",
39
+ "@babel/plugin-transform-runtime": "^7.22.15",
40
+ "@babel/preset-env": "^7.22.10",
41
+ "@babel/preset-react": "^7.22.5",
42
+ "@babel/preset-typescript": "^7.22.5",
43
+ "@storybook/addon-actions": "^7.2.3",
44
+ "@storybook/addon-essentials": "^7.2.3",
45
+ "@storybook/addon-interactions": "^7.2.3",
46
+ "@storybook/addon-links": "^7.2.3",
47
+ "@storybook/addon-mdx-gfm": "^7.2.3",
48
+ "@storybook/cli": "^7.2.3",
49
+ "@storybook/react": "^7.2.3",
50
+ "@storybook/react-webpack5": "^7.2.3",
51
+ "@storybook/testing-library": "^0.2.0",
52
+ "@types/react": "^18.2.20",
53
+ "@types/react-datepicker": "^4.15.0",
54
+ "@types/react-dom": "^18.2.7",
55
+ "@typescript-eslint/eslint-plugin": "^6.4.0",
56
+ "@typescript-eslint/parser": "^6.4.0",
57
+ "babel-loader": "^9.1.3",
58
+ "babel-plugin-add-module-exports": "^1.0.4",
59
+ "babel-plugin-dev-expression": "^0.2.3",
60
+ "babel-plugin-transform-next-use-client": "^1.1.1",
61
+ "babel-preset-env-modules": "^1.0.1",
62
+ "cherry-pick": "^0.5.0",
63
+ "clsx": "^2.0.0",
64
+ "css-loader": "^6.8.1",
65
+ "eslint": "^8.47.0",
66
+ "eslint-config-prettier": "^9.0.0",
67
+ "eslint-plugin-import": "^2.28.0",
68
+ "eslint-plugin-jsx-a11y": "^6.7.1",
69
+ "eslint-plugin-react": "^7.33.1",
70
+ "eslint-plugin-react-hooks": "^4.6.0",
71
+ "eslint-plugin-storybook": "^0.6.13",
72
+ "execa": "^8.0.1",
73
+ "file-loader": "^6.2.0",
74
+ "filemanager-webpack-plugin": "^8.0.0",
75
+ "fs-extra": "^11.1.1",
76
+ "glob": "^10.3.4",
77
+ "html-webpack-plugin": "^5.5.3",
78
+ "modify-source-webpack-plugin": "^4.1.0",
79
+ "prettier": "^3.0.1",
80
+ "sass": "^1.65.1",
81
+ "sass-loader": "^13.3.2",
82
+ "storybook": "^7.2.3",
83
+ "style-loader": "^3.3.3",
84
+ "ts-loader": "^9.4.4",
85
+ "typescript": "^5.1.6",
86
+ "webpack": "^5.88.2",
87
+ "webpack-cli": "^5.1.4",
88
+ "webpack-dev-server": "^4.15.1"
89
+ },
90
+ "peerDependencies": {
91
+ "react": "*",
92
+ "react-dom": "*"
93
+ }
94
+ }