@beryl-ui/react 2.1.0 → 2.1.1
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/LICENSE +21 -0
- package/dist/index.js +16 -5
- package/dist/index.mjs +16 -5
- package/package.json +5 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Robson H. Rodrigues
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.js
CHANGED
|
@@ -81,8 +81,8 @@ var import_styled_components = __toESM(require("styled-components"));
|
|
|
81
81
|
var AvatarContainer = (0, import_styled_components.default)(Avatar.Root)`
|
|
82
82
|
border-radius: ${({ theme: theme2 }) => theme2.radii.full};
|
|
83
83
|
display: inline-block;
|
|
84
|
-
width: ${({ theme: theme2 }) => theme2.space[
|
|
85
|
-
height: ${({ theme: theme2 }) => theme2.space[
|
|
84
|
+
width: ${({ theme: theme2 }) => theme2.space[16]};
|
|
85
|
+
height: ${({ theme: theme2 }) => theme2.space[16]};
|
|
86
86
|
overflow: hidden;
|
|
87
87
|
`;
|
|
88
88
|
var AvatarImage = (0, import_styled_components.default)(Avatar.Image)`
|
|
@@ -119,7 +119,7 @@ Avatar2.displayName = "Avatar";
|
|
|
119
119
|
// src/components/Box/styles.ts
|
|
120
120
|
var import_styled_components2 = require("styled-components");
|
|
121
121
|
var BoxContainer = import_styled_components2.styled.div`
|
|
122
|
-
padding: ${({ theme: theme2 }) => theme2.space[
|
|
122
|
+
padding: ${({ theme: theme2 }) => theme2.space[6]};
|
|
123
123
|
border-radius: ${({ theme: theme2 }) => theme2.radii.md};
|
|
124
124
|
background-color: ${({ theme: theme2 }) => theme2.colors.gray800};
|
|
125
125
|
border: 1px solid ${({ theme: theme2 }) => theme2.colors.gray600};
|
|
@@ -157,6 +157,10 @@ var ButtonContainer = import_styled_components3.styled.button`
|
|
|
157
157
|
cursor: not-allowed;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
&:focus {
|
|
161
|
+
box-shadow: 0 0 0 2px ${({ theme: theme2 }) => theme2.colors.gray100};
|
|
162
|
+
}
|
|
163
|
+
|
|
160
164
|
svg {
|
|
161
165
|
width: ${({ theme: theme2 }) => theme2.space[4]};
|
|
162
166
|
height: ${({ theme: theme2 }) => theme2.space[4]};
|
|
@@ -437,12 +441,19 @@ var import_react2 = require("react");
|
|
|
437
441
|
var import_styled_components9 = require("styled-components");
|
|
438
442
|
var TextInputContainer = import_styled_components9.styled.div`
|
|
439
443
|
background-color: ${({ theme: theme2 }) => theme2.colors.gray900};
|
|
440
|
-
padding: ${({ theme: theme2 }) => `${theme2.space[3]} ${theme2.space[4]}`};
|
|
441
444
|
border-radius: ${({ theme: theme2 }) => theme2.radii.sm};
|
|
442
445
|
box-sizing: border-box;
|
|
443
446
|
border: 2px solid ${({ theme: theme2 }) => theme2.colors.gray900};
|
|
444
447
|
display: flex;
|
|
445
|
-
align-items:
|
|
448
|
+
align-items: center;
|
|
449
|
+
|
|
450
|
+
padding: ${({ theme: theme2, size = "md" }) => {
|
|
451
|
+
const paddingMap = {
|
|
452
|
+
sm: `${theme2.space[2]} ${theme2.space[3]}`,
|
|
453
|
+
md: `${theme2.space[3]} ${theme2.space[4]}`
|
|
454
|
+
};
|
|
455
|
+
return paddingMap[size];
|
|
456
|
+
}};
|
|
446
457
|
|
|
447
458
|
&:has(input:focus) {
|
|
448
459
|
border-color: ${({ theme: theme2 }) => theme2.colors.emerald300};
|
package/dist/index.mjs
CHANGED
|
@@ -39,8 +39,8 @@ import styled from "styled-components";
|
|
|
39
39
|
var AvatarContainer = styled(Avatar.Root)`
|
|
40
40
|
border-radius: ${({ theme: theme2 }) => theme2.radii.full};
|
|
41
41
|
display: inline-block;
|
|
42
|
-
width: ${({ theme: theme2 }) => theme2.space[
|
|
43
|
-
height: ${({ theme: theme2 }) => theme2.space[
|
|
42
|
+
width: ${({ theme: theme2 }) => theme2.space[16]};
|
|
43
|
+
height: ${({ theme: theme2 }) => theme2.space[16]};
|
|
44
44
|
overflow: hidden;
|
|
45
45
|
`;
|
|
46
46
|
var AvatarImage = styled(Avatar.Image)`
|
|
@@ -77,7 +77,7 @@ Avatar2.displayName = "Avatar";
|
|
|
77
77
|
// src/components/Box/styles.ts
|
|
78
78
|
import { styled as styled2 } from "styled-components";
|
|
79
79
|
var BoxContainer = styled2.div`
|
|
80
|
-
padding: ${({ theme: theme2 }) => theme2.space[
|
|
80
|
+
padding: ${({ theme: theme2 }) => theme2.space[6]};
|
|
81
81
|
border-radius: ${({ theme: theme2 }) => theme2.radii.md};
|
|
82
82
|
background-color: ${({ theme: theme2 }) => theme2.colors.gray800};
|
|
83
83
|
border: 1px solid ${({ theme: theme2 }) => theme2.colors.gray600};
|
|
@@ -115,6 +115,10 @@ var ButtonContainer = styled3.button`
|
|
|
115
115
|
cursor: not-allowed;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
&:focus {
|
|
119
|
+
box-shadow: 0 0 0 2px ${({ theme: theme2 }) => theme2.colors.gray100};
|
|
120
|
+
}
|
|
121
|
+
|
|
118
122
|
svg {
|
|
119
123
|
width: ${({ theme: theme2 }) => theme2.space[4]};
|
|
120
124
|
height: ${({ theme: theme2 }) => theme2.space[4]};
|
|
@@ -395,12 +399,19 @@ import { forwardRef as forwardRef2 } from "react";
|
|
|
395
399
|
import { styled as styled9 } from "styled-components";
|
|
396
400
|
var TextInputContainer = styled9.div`
|
|
397
401
|
background-color: ${({ theme: theme2 }) => theme2.colors.gray900};
|
|
398
|
-
padding: ${({ theme: theme2 }) => `${theme2.space[3]} ${theme2.space[4]}`};
|
|
399
402
|
border-radius: ${({ theme: theme2 }) => theme2.radii.sm};
|
|
400
403
|
box-sizing: border-box;
|
|
401
404
|
border: 2px solid ${({ theme: theme2 }) => theme2.colors.gray900};
|
|
402
405
|
display: flex;
|
|
403
|
-
align-items:
|
|
406
|
+
align-items: center;
|
|
407
|
+
|
|
408
|
+
padding: ${({ theme: theme2, size = "md" }) => {
|
|
409
|
+
const paddingMap = {
|
|
410
|
+
sm: `${theme2.space[2]} ${theme2.space[3]}`,
|
|
411
|
+
md: `${theme2.space[3]} ${theme2.space[4]}`
|
|
412
|
+
};
|
|
413
|
+
return paddingMap[size];
|
|
414
|
+
}};
|
|
404
415
|
|
|
405
416
|
&:has(input:focus) {
|
|
406
417
|
border-color: ${({ theme: theme2 }) => theme2.colors.emerald300};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beryl-ui/react",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "React components for the beryl-ui Design System.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
"url": "https://github.com/Robson16"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
|
-
"
|
|
18
|
-
"
|
|
17
|
+
"design-system",
|
|
18
|
+
"react",
|
|
19
|
+
"components",
|
|
19
20
|
"typescript",
|
|
20
|
-
"
|
|
21
|
+
"styled-components"
|
|
21
22
|
],
|
|
22
23
|
"scripts": {
|
|
23
24
|
"build": "tsup src/index.tsx --format esm,cjs --dts --external react,styled-components",
|