@grazziotin/react-components 1.0.1 → 1.0.3

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.
@@ -1,28 +1,9 @@
1
1
  /**
2
2
  * @license React
3
- * react-is.production.js
3
+ * react-jsx-runtime.production.js
4
4
  *
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
-
11
- /**
12
- * @license React
13
- * react-jsx-runtime.production.min.js
14
- *
15
- * Copyright (c) Facebook, Inc. and its affiliates.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
-
21
- /** @license React v16.13.1
22
- * react-is.production.min.js
23
- *
24
- * Copyright (c) Facebook, Inc. and its affiliates.
25
- *
26
- * This source code is licensed under the MIT license found in the
27
- * LICENSE file in the root directory of this source tree.
28
- */
package/dist/theme.css ADDED
@@ -0,0 +1,500 @@
1
+ /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
3
+ @layer theme, base, components, utilities;
4
+ @layer theme {
5
+ :root, :host {
6
+ --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
7
+ "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
8
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
9
+ "Courier New", monospace;
10
+ --color-gray-900: oklch(21% 0.034 264.665);
11
+ --color-black: #000;
12
+ --color-white: #fff;
13
+ --spacing: 0.25rem;
14
+ --text-sm: 0.875rem;
15
+ --text-sm--line-height: calc(1.25 / 0.875);
16
+ --text-base: 1rem;
17
+ --text-base--line-height: calc(1.5 / 1);
18
+ --text-lg: 1.125rem;
19
+ --text-lg--line-height: calc(1.75 / 1.125);
20
+ --font-weight-semibold: 600;
21
+ --radius-md: calc(var(--radius) - 2px);
22
+ --default-transition-duration: 150ms;
23
+ --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
24
+ --default-font-family: var(--font-sans);
25
+ --default-mono-font-family: var(--font-mono);
26
+ --color-grzprimary: #00b2a6;
27
+ --color-grzsecondary: #00a095;
28
+ --color-system-100: #cadcee;
29
+ --color-system-700: #435c75;
30
+ --color-system-900: #233446;
31
+ --spacing-15: 3.75rem;
32
+ --spacing-2: 0.5rem;
33
+ --spacing-3: 0.75rem;
34
+ --spacing-4: 1rem;
35
+ --spacing-10: 2.5rem;
36
+ }
37
+ }
38
+ @layer base {
39
+ *, ::after, ::before, ::backdrop, ::file-selector-button {
40
+ box-sizing: border-box;
41
+ margin: 0;
42
+ padding: 0;
43
+ border: 0 solid;
44
+ }
45
+ html, :host {
46
+ line-height: 1.5;
47
+ -webkit-text-size-adjust: 100%;
48
+ tab-size: 4;
49
+ font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
50
+ font-feature-settings: var(--default-font-feature-settings, normal);
51
+ font-variation-settings: var(--default-font-variation-settings, normal);
52
+ -webkit-tap-highlight-color: transparent;
53
+ }
54
+ hr {
55
+ height: 0;
56
+ color: inherit;
57
+ border-top-width: 1px;
58
+ }
59
+ abbr:where([title]) {
60
+ -webkit-text-decoration: underline dotted;
61
+ text-decoration: underline dotted;
62
+ }
63
+ h1, h2, h3, h4, h5, h6 {
64
+ font-size: inherit;
65
+ font-weight: inherit;
66
+ }
67
+ a {
68
+ color: inherit;
69
+ -webkit-text-decoration: inherit;
70
+ text-decoration: inherit;
71
+ }
72
+ b, strong {
73
+ font-weight: bolder;
74
+ }
75
+ code, kbd, samp, pre {
76
+ font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
77
+ font-feature-settings: var(--default-mono-font-feature-settings, normal);
78
+ font-variation-settings: var(--default-mono-font-variation-settings, normal);
79
+ font-size: 1em;
80
+ }
81
+ small {
82
+ font-size: 80%;
83
+ }
84
+ sub, sup {
85
+ font-size: 75%;
86
+ line-height: 0;
87
+ position: relative;
88
+ vertical-align: baseline;
89
+ }
90
+ sub {
91
+ bottom: -0.25em;
92
+ }
93
+ sup {
94
+ top: -0.5em;
95
+ }
96
+ table {
97
+ text-indent: 0;
98
+ border-color: inherit;
99
+ border-collapse: collapse;
100
+ }
101
+ :-moz-focusring {
102
+ outline: auto;
103
+ }
104
+ progress {
105
+ vertical-align: baseline;
106
+ }
107
+ summary {
108
+ display: list-item;
109
+ }
110
+ ol, ul, menu {
111
+ list-style: none;
112
+ }
113
+ img, svg, video, canvas, audio, iframe, embed, object {
114
+ display: block;
115
+ vertical-align: middle;
116
+ }
117
+ img, video {
118
+ max-width: 100%;
119
+ height: auto;
120
+ }
121
+ button, input, select, optgroup, textarea, ::file-selector-button {
122
+ font: inherit;
123
+ font-feature-settings: inherit;
124
+ font-variation-settings: inherit;
125
+ letter-spacing: inherit;
126
+ color: inherit;
127
+ border-radius: 0;
128
+ background-color: transparent;
129
+ opacity: 1;
130
+ }
131
+ :where(select:is([multiple], [size])) optgroup {
132
+ font-weight: bolder;
133
+ }
134
+ :where(select:is([multiple], [size])) optgroup option {
135
+ padding-inline-start: 20px;
136
+ }
137
+ ::file-selector-button {
138
+ margin-inline-end: 4px;
139
+ }
140
+ ::placeholder {
141
+ opacity: 1;
142
+ }
143
+ @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
144
+ ::placeholder {
145
+ color: currentcolor;
146
+ @supports (color: color-mix(in lab, red, red)) {
147
+ color: color-mix(in oklab, currentcolor 50%, transparent);
148
+ }
149
+ }
150
+ }
151
+ textarea {
152
+ resize: vertical;
153
+ }
154
+ ::-webkit-search-decoration {
155
+ -webkit-appearance: none;
156
+ }
157
+ ::-webkit-date-and-time-value {
158
+ min-height: 1lh;
159
+ text-align: inherit;
160
+ }
161
+ ::-webkit-datetime-edit {
162
+ display: inline-flex;
163
+ }
164
+ ::-webkit-datetime-edit-fields-wrapper {
165
+ padding: 0;
166
+ }
167
+ ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
168
+ padding-block: 0;
169
+ }
170
+ ::-webkit-calendar-picker-indicator {
171
+ line-height: 1;
172
+ }
173
+ :-moz-ui-invalid {
174
+ box-shadow: none;
175
+ }
176
+ button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
177
+ appearance: button;
178
+ }
179
+ ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
180
+ height: auto;
181
+ }
182
+ [hidden]:where(:not([hidden="until-found"])) {
183
+ display: none !important;
184
+ }
185
+ }
186
+ @layer utilities {
187
+ .container {
188
+ width: 100%;
189
+ @media (width >= 40rem) {
190
+ max-width: 40rem;
191
+ }
192
+ @media (width >= 48rem) {
193
+ max-width: 48rem;
194
+ }
195
+ @media (width >= 64rem) {
196
+ max-width: 64rem;
197
+ }
198
+ @media (width >= 80rem) {
199
+ max-width: 80rem;
200
+ }
201
+ @media (width >= 87.5rem) {
202
+ max-width: 87.5rem;
203
+ }
204
+ }
205
+ .mb-2 {
206
+ margin-bottom: var(--spacing-2);
207
+ }
208
+ .ml-1 {
209
+ margin-left: calc(var(--spacing) * 1);
210
+ }
211
+ .flex {
212
+ display: flex;
213
+ }
214
+ .hidden {
215
+ display: none;
216
+ }
217
+ .h-7 {
218
+ height: calc(var(--spacing) * 7);
219
+ }
220
+ .h-10 {
221
+ height: var(--spacing-10);
222
+ }
223
+ .h-15 {
224
+ height: var(--spacing-15);
225
+ }
226
+ .h-full {
227
+ height: 100%;
228
+ }
229
+ .min-h-10 {
230
+ min-height: var(--spacing-10);
231
+ }
232
+ .w-2 {
233
+ width: var(--spacing-2);
234
+ }
235
+ .w-7 {
236
+ width: calc(var(--spacing) * 7);
237
+ }
238
+ .w-10 {
239
+ width: var(--spacing-10);
240
+ }
241
+ .w-full {
242
+ width: 100%;
243
+ }
244
+ .min-w-10 {
245
+ min-width: var(--spacing-10);
246
+ }
247
+ .shrink {
248
+ flex-shrink: 1;
249
+ }
250
+ .resize {
251
+ resize: both;
252
+ }
253
+ .flex-col {
254
+ flex-direction: column;
255
+ }
256
+ .items-center {
257
+ align-items: center;
258
+ }
259
+ .justify-between {
260
+ justify-content: space-between;
261
+ }
262
+ .justify-center {
263
+ justify-content: center;
264
+ }
265
+ .justify-end {
266
+ justify-content: flex-end;
267
+ }
268
+ .gap-4 {
269
+ gap: var(--spacing-4);
270
+ }
271
+ .overflow-hidden {
272
+ overflow: hidden;
273
+ }
274
+ .rounded-md {
275
+ border-radius: var(--radius-md);
276
+ }
277
+ .rounded-tl-md {
278
+ border-top-left-radius: var(--radius-md);
279
+ }
280
+ .rounded-bl-md {
281
+ border-bottom-left-radius: var(--radius-md);
282
+ }
283
+ .bg-grzprimary {
284
+ background-color: var(--color-grzprimary);
285
+ }
286
+ .bg-system-100 {
287
+ background-color: var(--color-system-100);
288
+ }
289
+ .bg-white {
290
+ background-color: var(--color-white);
291
+ }
292
+ .p-3 {
293
+ padding: var(--spacing-3);
294
+ }
295
+ .py-4 {
296
+ padding-block: var(--spacing-4);
297
+ }
298
+ .pt-1 {
299
+ padding-top: calc(var(--spacing) * 1);
300
+ }
301
+ .pt-4 {
302
+ padding-top: var(--spacing-4);
303
+ }
304
+ .pr-4 {
305
+ padding-right: var(--spacing-4);
306
+ }
307
+ .pb-5 {
308
+ padding-bottom: calc(var(--spacing) * 5);
309
+ }
310
+ .pl-5 {
311
+ padding-left: calc(var(--spacing) * 5);
312
+ }
313
+ .text-base {
314
+ font-size: var(--text-base);
315
+ line-height: var(--tw-leading, var(--text-base--line-height));
316
+ }
317
+ .text-lg {
318
+ font-size: var(--text-lg);
319
+ line-height: var(--tw-leading, var(--text-lg--line-height));
320
+ }
321
+ .text-sm {
322
+ font-size: var(--text-sm);
323
+ line-height: var(--tw-leading, var(--text-sm--line-height));
324
+ }
325
+ .font-semibold {
326
+ --tw-font-weight: var(--font-weight-semibold);
327
+ font-weight: var(--font-weight-semibold);
328
+ }
329
+ .text-ellipsis {
330
+ text-overflow: ellipsis;
331
+ }
332
+ .whitespace-nowrap {
333
+ white-space: nowrap;
334
+ }
335
+ .text-black {
336
+ color: var(--color-black);
337
+ }
338
+ .text-black\/80 {
339
+ color: color-mix(in srgb, #000 80%, transparent);
340
+ @supports (color: color-mix(in lab, red, red)) {
341
+ color: color-mix(in oklab, var(--color-black) 80%, transparent);
342
+ }
343
+ }
344
+ .text-system-700 {
345
+ color: var(--color-system-700);
346
+ }
347
+ .text-system-900 {
348
+ color: var(--color-system-900);
349
+ }
350
+ .text-white {
351
+ color: var(--color-white);
352
+ }
353
+ .shadow-full {
354
+ --tw-shadow: 0rem 0.15rem 1.25rem var(--tw-shadow-color, rgba(0, 0, 0, 0.16));
355
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
356
+ }
357
+ .shadow-md {
358
+ --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 2px 4px -2px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
359
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
360
+ }
361
+ .shadow-gray-900\/10 {
362
+ --tw-shadow-color: color-mix(in srgb, oklch(21% 0.034 264.665) 10%, transparent);
363
+ @supports (color: color-mix(in lab, red, red)) {
364
+ --tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-gray-900) 10%, transparent) var(--tw-shadow-alpha), transparent);
365
+ }
366
+ }
367
+ .transition-all {
368
+ transition-property: all;
369
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
370
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
371
+ }
372
+ .duration-500 {
373
+ --tw-duration: 500ms;
374
+ transition-duration: 500ms;
375
+ }
376
+ .select-none {
377
+ -webkit-user-select: none;
378
+ user-select: none;
379
+ }
380
+ .hover\:bg-grzsecondary {
381
+ &:hover {
382
+ @media (hover: hover) {
383
+ background-color: var(--color-grzsecondary);
384
+ }
385
+ }
386
+ }
387
+ .hover\:shadow-lg {
388
+ &:hover {
389
+ @media (hover: hover) {
390
+ --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
391
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
392
+ }
393
+ }
394
+ }
395
+ .hover\:shadow-gray-900\/20 {
396
+ &:hover {
397
+ @media (hover: hover) {
398
+ --tw-shadow-color: color-mix(in srgb, oklch(21% 0.034 264.665) 20%, transparent);
399
+ @supports (color: color-mix(in lab, red, red)) {
400
+ --tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-gray-900) 20%, transparent) var(--tw-shadow-alpha), transparent);
401
+ }
402
+ }
403
+ }
404
+ }
405
+ }
406
+ @property --tw-font-weight {
407
+ syntax: "*";
408
+ inherits: false;
409
+ }
410
+ @property --tw-shadow {
411
+ syntax: "*";
412
+ inherits: false;
413
+ initial-value: 0 0 #0000;
414
+ }
415
+ @property --tw-shadow-color {
416
+ syntax: "*";
417
+ inherits: false;
418
+ }
419
+ @property --tw-shadow-alpha {
420
+ syntax: "<percentage>";
421
+ inherits: false;
422
+ initial-value: 100%;
423
+ }
424
+ @property --tw-inset-shadow {
425
+ syntax: "*";
426
+ inherits: false;
427
+ initial-value: 0 0 #0000;
428
+ }
429
+ @property --tw-inset-shadow-color {
430
+ syntax: "*";
431
+ inherits: false;
432
+ }
433
+ @property --tw-inset-shadow-alpha {
434
+ syntax: "<percentage>";
435
+ inherits: false;
436
+ initial-value: 100%;
437
+ }
438
+ @property --tw-ring-color {
439
+ syntax: "*";
440
+ inherits: false;
441
+ }
442
+ @property --tw-ring-shadow {
443
+ syntax: "*";
444
+ inherits: false;
445
+ initial-value: 0 0 #0000;
446
+ }
447
+ @property --tw-inset-ring-color {
448
+ syntax: "*";
449
+ inherits: false;
450
+ }
451
+ @property --tw-inset-ring-shadow {
452
+ syntax: "*";
453
+ inherits: false;
454
+ initial-value: 0 0 #0000;
455
+ }
456
+ @property --tw-ring-inset {
457
+ syntax: "*";
458
+ inherits: false;
459
+ }
460
+ @property --tw-ring-offset-width {
461
+ syntax: "<length>";
462
+ inherits: false;
463
+ initial-value: 0px;
464
+ }
465
+ @property --tw-ring-offset-color {
466
+ syntax: "*";
467
+ inherits: false;
468
+ initial-value: #fff;
469
+ }
470
+ @property --tw-ring-offset-shadow {
471
+ syntax: "*";
472
+ inherits: false;
473
+ initial-value: 0 0 #0000;
474
+ }
475
+ @property --tw-duration {
476
+ syntax: "*";
477
+ inherits: false;
478
+ }
479
+ @layer properties {
480
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
481
+ *, ::before, ::after, ::backdrop {
482
+ --tw-font-weight: initial;
483
+ --tw-shadow: 0 0 #0000;
484
+ --tw-shadow-color: initial;
485
+ --tw-shadow-alpha: 100%;
486
+ --tw-inset-shadow: 0 0 #0000;
487
+ --tw-inset-shadow-color: initial;
488
+ --tw-inset-shadow-alpha: 100%;
489
+ --tw-ring-color: initial;
490
+ --tw-ring-shadow: 0 0 #0000;
491
+ --tw-inset-ring-color: initial;
492
+ --tw-inset-ring-shadow: 0 0 #0000;
493
+ --tw-ring-inset: initial;
494
+ --tw-ring-offset-width: 0px;
495
+ --tw-ring-offset-color: #fff;
496
+ --tw-ring-offset-shadow: 0 0 #0000;
497
+ --tw-duration: initial;
498
+ }
499
+ }
500
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grazziotin/react-components",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Biblioteca de componentes React em TypeScript desenvolvida para uso interno",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,13 +10,17 @@
10
10
  ],
11
11
  "scripts": {
12
12
  "build": "webpack",
13
+ "build:css": "npx @tailwindcss/cli -i src/theme.css -o dist/theme.css",
14
+ "build-storybook": "storybook build",
15
+ "lint": "eslint src --ext .ts,.tsx",
16
+ "storybook": "storybook dev -p 6006",
13
17
  "test": "echo \"Error: no test specified\" && exit 1",
14
18
  "tsc": "tsc -d",
15
- "prepublishOnly": "npm run tsc && npm run build"
19
+ "prepublishOnly": "npm run tsc && npm run build && npm run build:css"
16
20
  },
17
21
  "repository": {
18
22
  "type": "git",
19
- "url": "https://github.com/GrazziotinSA/react-components.git"
23
+ "url": "git+https://github.com/GrazziotinSA/react-components.git"
20
24
  },
21
25
  "keywords": [
22
26
  "react",
@@ -31,6 +35,10 @@
31
35
  {
32
36
  "name": "Nicolas Ferreira",
33
37
  "email": "nicolas.ferreira@grazziotin.com.br"
38
+ },
39
+ {
40
+ "name": "Vinicius do Carmo Loeblein",
41
+ "email": "vinicius.carmo@grazziotin.com.br"
34
42
  }
35
43
  ],
36
44
  "license": "MIT",
@@ -45,16 +53,40 @@
45
53
  "peerDependencies": {
46
54
  "react": ">=17.0.0",
47
55
  "react-dom": ">=17.0.0",
48
- "@mui/material": ">=5.0.0",
49
- "@mui/icons-material": ">=5.0.0"
56
+ "@mui/material": ">=7.0.0",
57
+ "@mui/icons-material": ">=7.0.0"
50
58
  },
51
59
  "devDependencies": {
60
+ "@mui/icons-material": "^7.3.7",
61
+ "@mui/material": "^7.3.7",
62
+ "@rocketseat/eslint-config": "^2.2.2",
63
+ "@storybook/addon-essentials": "^8.6.14",
64
+ "@storybook/addon-interactions": "^8.6.14",
65
+ "@storybook/blocks": "^8.6.14",
66
+ "@storybook/react": "^8.6.15",
67
+ "@storybook/react-vite": "^8.6.15",
68
+ "@storybook/test": "^8.6.15",
69
+ "@tailwindcss/cli": "^4.0.0",
70
+ "@tailwindcss/postcss": "^4.0.0",
71
+ "@tanstack/eslint-plugin-query": "^5.28.0",
52
72
  "@types/node": "^20.14.11",
53
73
  "@types/react": "^17.0.0",
54
74
  "@types/react-dom": "^17.0.0",
75
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
76
+ "@typescript-eslint/parser": "^6.21.0",
77
+ "@vitejs/plugin-react": "^5.1.4",
78
+ "eslint": "^8.57.0",
79
+ "eslint-plugin-react": "^7.33.2",
80
+ "eslint-plugin-react-hooks": "^4.6.0",
81
+ "postcss": "^8.4.0",
82
+ "react": "^19.2.4",
83
+ "react-dom": "^19.2.4",
84
+ "storybook": "^8.6.15",
55
85
  "tailwind-merge": "^2.3.0",
86
+ "tailwindcss": "^4.0.0",
56
87
  "ts-loader": "^8.0.0",
57
88
  "typescript": "^5.1.3",
89
+ "vite": "^5.4.21",
58
90
  "webpack": "^5.0.0",
59
91
  "webpack-cli": "^4.0.0"
60
92
  }