ropav 0.0.4 → 0.0.5
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/README.md +11 -2
- package/dist/base.css +15 -14
- package/dist/button.css +1 -1
- package/dist/button.js +2 -11
- package/dist/button.js.map +1 -1
- package/dist/card.css +88 -0
- package/dist/card.js +71 -0
- package/dist/card.js.map +1 -0
- package/dist/checkbox.css +12 -1
- package/dist/components/card/card.d.ts +21 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.js +2 -0
- package/dist/components/card/types.d.ts +11 -0
- package/dist/components/field/field.d.ts +35 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.js +2 -0
- package/dist/components/field/types.d.ts +21 -0
- package/dist/components/icon-button/icon-button.d.ts +21 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/icon-button/index.js +2 -0
- package/dist/components/icon-button/types.d.ts +15 -0
- package/dist/field.css +40 -0
- package/dist/field.js +128 -0
- package/dist/field.js.map +1 -0
- package/dist/icon-button.css +339 -0
- package/dist/icon-button.js +63 -0
- package/dist/icon-button.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -1
- package/dist/input.css +2 -2
- package/dist/loader-circle.js +14 -0
- package/dist/loader-circle.js.map +1 -0
- package/dist/select.css +13 -3
- package/dist/switch.css +10 -1
- package/dist/textarea.css +2 -2
- package/package.json +13 -1
- package/src/styles/_tokens.scss +14 -13
- package/src/styles/_variables.scss +2 -1
package/dist/switch.css
CHANGED
|
@@ -7,12 +7,18 @@
|
|
|
7
7
|
--_thumb-offset: 2px;
|
|
8
8
|
--_track-bg: var(--rp-color-control-track-bg);
|
|
9
9
|
--_thumb-bg: var(--rp-color-control-thumb-bg);
|
|
10
|
+
--_switch-invalid-border: var(--rp-color-danger);
|
|
11
|
+
--_switch-invalid-ring: color-mix(in srgb, var(--rp-color-danger) 32%, transparent);
|
|
10
12
|
display: inline-flex;
|
|
11
13
|
align-items: center;
|
|
12
14
|
cursor: pointer;
|
|
13
15
|
font-family: var(--rp-font-family);
|
|
14
16
|
user-select: none;
|
|
15
17
|
}
|
|
18
|
+
html.dark .rp-switch[data-v-aeef0d94] {
|
|
19
|
+
--_switch-invalid-border: var(--rp-color-danger-fg);
|
|
20
|
+
--_switch-invalid-ring: color-mix(in srgb, var(--rp-color-danger-fg) 32%, transparent);
|
|
21
|
+
}
|
|
16
22
|
.rp-switch--disabled[data-v-aeef0d94] {
|
|
17
23
|
opacity: var(--rp-opacity-disabled);
|
|
18
24
|
cursor: not-allowed;
|
|
@@ -52,9 +58,12 @@
|
|
|
52
58
|
background-color: var(--_switch-color);
|
|
53
59
|
}
|
|
54
60
|
.rp-switch--invalid .rp-switch__track[data-v-aeef0d94] {
|
|
55
|
-
outline: var(--rp-border-width-thin) solid var(--
|
|
61
|
+
outline: var(--rp-border-width-thin) solid var(--_switch-invalid-border);
|
|
56
62
|
outline-offset: var(--_thumb-offset);
|
|
57
63
|
}
|
|
64
|
+
.rp-switch--invalid .rp-switch__native:focus-visible + .rp-switch__track[data-v-aeef0d94] {
|
|
65
|
+
box-shadow: 0 0 0 var(--rp-border-width-medium) var(--_switch-invalid-ring);
|
|
66
|
+
}
|
|
58
67
|
.rp-switch__thumb[data-v-aeef0d94] {
|
|
59
68
|
position: absolute;
|
|
60
69
|
left: var(--_thumb-offset);
|
package/dist/textarea.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
--_rp-textarea-radius: var(--rp-radius-sm);
|
|
6
6
|
--_rp-textarea-valid-border: var(--rp-color-success-border-hover);
|
|
7
7
|
--_rp-textarea-valid-ring: color-mix(in srgb, var(--rp-color-success) 32%, transparent);
|
|
8
|
-
--_rp-textarea-invalid-border: var(--rp-color-danger
|
|
8
|
+
--_rp-textarea-invalid-border: var(--rp-color-danger);
|
|
9
9
|
--_rp-textarea-invalid-ring: color-mix(in srgb, var(--rp-color-danger) 32%, transparent);
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
box-sizing: border-box;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
--_rp-textarea-font-size: var(--rp-font-size-lg);
|
|
55
55
|
}
|
|
56
56
|
.rp-textarea--radius-xs[data-v-2c68871d] {
|
|
57
|
-
--_rp-textarea-radius: var(--rp-radius-
|
|
57
|
+
--_rp-textarea-radius: var(--rp-radius-xs);
|
|
58
58
|
}
|
|
59
59
|
.rp-textarea--radius-sm[data-v-2c68871d] {
|
|
60
60
|
--_rp-textarea-radius: var(--rp-radius-sm);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ropav",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"packageManager": "pnpm@11.9.0",
|
|
6
6
|
"engines": {
|
|
@@ -25,10 +25,22 @@
|
|
|
25
25
|
"types": "./dist/components/button/index.d.ts",
|
|
26
26
|
"import": "./dist/components/button/index.js"
|
|
27
27
|
},
|
|
28
|
+
"./card": {
|
|
29
|
+
"types": "./dist/components/card/index.d.ts",
|
|
30
|
+
"import": "./dist/components/card/index.js"
|
|
31
|
+
},
|
|
28
32
|
"./checkbox": {
|
|
29
33
|
"types": "./dist/components/checkbox/index.d.ts",
|
|
30
34
|
"import": "./dist/components/checkbox/index.js"
|
|
31
35
|
},
|
|
36
|
+
"./field": {
|
|
37
|
+
"types": "./dist/components/field/index.d.ts",
|
|
38
|
+
"import": "./dist/components/field/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./icon-button": {
|
|
41
|
+
"types": "./dist/components/icon-button/index.d.ts",
|
|
42
|
+
"import": "./dist/components/icon-button/index.js"
|
|
43
|
+
},
|
|
32
44
|
"./input": {
|
|
33
45
|
"types": "./dist/components/input/index.d.ts",
|
|
34
46
|
"import": "./dist/components/input/index.js"
|
package/src/styles/_tokens.scss
CHANGED
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
--rp-color-text-disabled : #{$color-text-disabled};
|
|
21
21
|
--rp-color-text-inverted : #{$color-white};
|
|
22
22
|
--rp-color-background : #{$color-background};
|
|
23
|
-
--rp-color-surface : #{$color-
|
|
23
|
+
--rp-color-surface : #{$color-gray-1};
|
|
24
24
|
--rp-color-surface-raised : #{$color-white};
|
|
25
25
|
--rp-color-surface-muted : #{$color-gray-2};
|
|
26
26
|
--rp-color-surface-hover : #{$color-gray-3};
|
|
27
|
-
--rp-color-button-default-bg :
|
|
28
|
-
--rp-color-button-default-bg-hover :
|
|
27
|
+
--rp-color-button-default-bg : var(--rp-color-surface);
|
|
28
|
+
--rp-color-button-default-bg-hover : var(--rp-color-surface-hover);
|
|
29
29
|
--rp-color-button-default-bg-active : #{$color-gray-4};
|
|
30
30
|
--rp-color-surface-inverted : #{$color-gray-12};
|
|
31
31
|
--rp-color-overlay : rgba(17, 17, 17, 0.55);
|
|
32
32
|
--rp-color-border : #{$color-border};
|
|
33
33
|
--rp-color-border-hover : #{$color-border-hover};
|
|
34
34
|
--rp-color-focus-ring : color-mix(in srgb, var(--rp-color-primary) 32%, transparent);
|
|
35
|
-
--rp-color-control-bg :
|
|
35
|
+
--rp-color-control-bg : var(--rp-color-surface);
|
|
36
36
|
--rp-color-control-readonly-bg : var(--rp-color-surface-muted);
|
|
37
37
|
--rp-color-control-fg : var(--rp-color-text);
|
|
38
38
|
--rp-color-control-placeholder : var(--rp-color-text-secondary);
|
|
@@ -144,6 +144,7 @@
|
|
|
144
144
|
|
|
145
145
|
// Border radius
|
|
146
146
|
--rp-radius-none: #{$radius-none};
|
|
147
|
+
--rp-radius-xs : #{$radius-xs};
|
|
147
148
|
--rp-radius-sm : #{$radius-sm};
|
|
148
149
|
--rp-radius-md : #{$radius-md};
|
|
149
150
|
--rp-radius-lg : #{$radius-lg};
|
|
@@ -181,20 +182,20 @@ html.dark {
|
|
|
181
182
|
--rp-color-text-secondary : #b4b4b4;
|
|
182
183
|
--rp-color-text-disabled : #6e6e6e;
|
|
183
184
|
--rp-color-text-inverted : #{$color-gray-12};
|
|
184
|
-
--rp-color-background : #
|
|
185
|
-
--rp-color-surface : #
|
|
186
|
-
--rp-color-surface-raised : #
|
|
187
|
-
--rp-color-surface-muted : #
|
|
188
|
-
--rp-color-surface-hover : #
|
|
189
|
-
--rp-color-button-default-bg :
|
|
190
|
-
--rp-color-button-default-bg-hover :
|
|
191
|
-
--rp-color-button-default-bg-active : #
|
|
185
|
+
--rp-color-background : #191919;
|
|
186
|
+
--rp-color-surface : #222222;
|
|
187
|
+
--rp-color-surface-raised : #2a2a2a;
|
|
188
|
+
--rp-color-surface-muted : #222222;
|
|
189
|
+
--rp-color-surface-hover : #2a2a2a;
|
|
190
|
+
--rp-color-button-default-bg : var(--rp-color-surface);
|
|
191
|
+
--rp-color-button-default-bg-hover : var(--rp-color-surface-hover);
|
|
192
|
+
--rp-color-button-default-bg-active : #313131;
|
|
192
193
|
--rp-color-surface-inverted : #{$color-gray-2};
|
|
193
194
|
--rp-color-overlay : rgba(17, 17, 17, 0.75);
|
|
194
195
|
--rp-color-border : #3a3a3a;
|
|
195
196
|
--rp-color-border-hover : #606060;
|
|
196
197
|
--rp-color-focus-ring : color-mix(in srgb, var(--rp-color-primary) 45%, transparent);
|
|
197
|
-
--rp-color-control-bg :
|
|
198
|
+
--rp-color-control-bg : var(--rp-color-surface);
|
|
198
199
|
--rp-color-control-readonly-bg : var(--rp-color-surface-muted);
|
|
199
200
|
--rp-color-control-fg : #eeeeee;
|
|
200
201
|
--rp-color-control-placeholder : #6e6e6e;
|
|
@@ -29,7 +29,7 @@ $color-gray-12 : #202020 !default;
|
|
|
29
29
|
$color-text : $color-gray-12 !default;
|
|
30
30
|
$color-text-secondary: $color-gray-11 !default;
|
|
31
31
|
$color-text-disabled : $color-gray-9 !default;
|
|
32
|
-
$color-background : $color-
|
|
32
|
+
$color-background : $color-gray-2 !default;
|
|
33
33
|
$color-border : $color-gray-6 !default;
|
|
34
34
|
$color-border-hover : $color-gray-8 !default;
|
|
35
35
|
$color-on-primary : $color-white !default;
|
|
@@ -76,6 +76,7 @@ $spacing-12: 3rem !default;
|
|
|
76
76
|
|
|
77
77
|
// Border radius
|
|
78
78
|
$radius-none: 0 !default;
|
|
79
|
+
$radius-xs : 0.25rem !default;
|
|
79
80
|
$radius-sm : 0.375rem !default;
|
|
80
81
|
$radius-md : 0.75rem !default;
|
|
81
82
|
$radius-lg : 1rem !default;
|