@bodynarf/react.components 1.13.8 → 1.14.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.
Files changed (132) hide show
  1. package/changelog.md +55 -0
  2. package/components/accordion/component/index.js +1 -1
  3. package/components/accordion/component/style.css +21 -0
  4. package/components/anchor/component/style.css +12 -0
  5. package/components/button/component/style.css +10 -0
  6. package/components/dropdown/component/style.css +101 -0
  7. package/components/dropdown/components/compact/index.d.ts.map +1 -1
  8. package/components/dropdown/components/compact/index.js +3 -3
  9. package/components/dropdown/components/label/components/empty/index.js +1 -1
  10. package/components/dropdown/components/label/components/withSearch/style.css +21 -0
  11. package/components/dropdown/types.d.ts +6 -6
  12. package/components/dropdown/types.d.ts.map +1 -1
  13. package/components/file/component/styles.css +74 -0
  14. package/components/icon/component/style.css +19 -0
  15. package/components/index.d.ts +14 -2
  16. package/components/index.d.ts.map +1 -1
  17. package/components/index.js +14 -2
  18. package/components/modal/component/index.d.ts +7 -0
  19. package/components/modal/component/index.d.ts.map +1 -0
  20. package/components/modal/component/index.js +42 -0
  21. package/components/modal/component/style.css +32 -0
  22. package/components/modal/component/style.scss +42 -0
  23. package/components/modal/index.d.ts +3 -0
  24. package/components/modal/index.d.ts.map +1 -0
  25. package/components/modal/index.js +2 -0
  26. package/components/modal/types.d.ts +44 -0
  27. package/components/modal/types.d.ts.map +1 -0
  28. package/components/modal/types.js +1 -0
  29. package/components/multiselect/component/style.css +20 -0
  30. package/components/multiselect/components/withoutLabel/index.d.ts.map +1 -1
  31. package/components/multiselect/components/withoutLabel/index.js +5 -5
  32. package/components/primitives/checkbox/component/style.css +19 -0
  33. package/components/primitives/color/component/style.css +15 -0
  34. package/components/primitives/date/component/style.css +9 -0
  35. package/components/primitives/index.d.ts +4 -0
  36. package/components/primitives/index.d.ts.map +1 -1
  37. package/components/primitives/index.js +4 -0
  38. package/components/primitives/internal/hint/style.css +4 -0
  39. package/components/primitives/number/components/withLabel/index.d.ts.map +1 -1
  40. package/components/primitives/number/components/withLabel/index.js +10 -2
  41. package/components/primitives/number/components/withoutLabel/index.d.ts.map +1 -1
  42. package/components/primitives/number/components/withoutLabel/index.js +12 -4
  43. package/components/primitives/number/types.d.ts +6 -0
  44. package/components/primitives/number/types.d.ts.map +1 -1
  45. package/components/primitives/password/component/style.css +10 -0
  46. package/components/primitives/radioGroup/component/index.d.ts +7 -0
  47. package/components/primitives/radioGroup/component/index.d.ts.map +1 -0
  48. package/components/primitives/radioGroup/component/index.js +42 -0
  49. package/components/primitives/radioGroup/component/style.css +382 -0
  50. package/components/primitives/radioGroup/component/style.scss +271 -0
  51. package/components/primitives/radioGroup/index.d.ts +3 -0
  52. package/components/primitives/radioGroup/index.d.ts.map +1 -0
  53. package/components/primitives/radioGroup/index.js +2 -0
  54. package/components/primitives/radioGroup/types.d.ts +61 -0
  55. package/components/primitives/radioGroup/types.d.ts.map +1 -0
  56. package/components/primitives/radioGroup/types.js +1 -0
  57. package/components/primitives/slider/component/index.d.ts +7 -0
  58. package/components/primitives/slider/component/index.d.ts.map +1 -0
  59. package/components/primitives/slider/component/index.js +47 -0
  60. package/components/primitives/slider/component/style.css +438 -0
  61. package/components/primitives/slider/component/style.scss +321 -0
  62. package/components/primitives/slider/index.d.ts +3 -0
  63. package/components/primitives/slider/index.d.ts.map +1 -0
  64. package/components/primitives/slider/index.js +2 -0
  65. package/components/primitives/slider/types.d.ts +51 -0
  66. package/components/primitives/slider/types.d.ts.map +1 -0
  67. package/components/primitives/slider/types.js +1 -0
  68. package/components/primitives/switch/component/index.d.ts +7 -0
  69. package/components/primitives/switch/component/index.d.ts.map +1 -0
  70. package/components/primitives/switch/component/index.js +39 -0
  71. package/components/primitives/switch/component/style.css +482 -0
  72. package/components/primitives/switch/component/style.scss +216 -0
  73. package/components/primitives/switch/index.d.ts +3 -0
  74. package/components/primitives/switch/index.d.ts.map +1 -0
  75. package/components/primitives/switch/index.js +2 -0
  76. package/components/primitives/switch/types.d.ts +23 -0
  77. package/components/primitives/switch/types.d.ts.map +1 -0
  78. package/components/primitives/switch/types.js +1 -0
  79. package/components/primitives/timePicker/component/index.d.ts +8 -0
  80. package/components/primitives/timePicker/component/index.d.ts.map +1 -0
  81. package/components/primitives/timePicker/component/index.js +65 -0
  82. package/components/primitives/timePicker/component/style.css +21 -0
  83. package/components/primitives/timePicker/component/style.scss +26 -0
  84. package/components/primitives/timePicker/index.d.ts +3 -0
  85. package/components/primitives/timePicker/index.d.ts.map +1 -0
  86. package/components/primitives/timePicker/index.js +2 -0
  87. package/components/primitives/timePicker/types.d.ts +33 -0
  88. package/components/primitives/timePicker/types.d.ts.map +1 -0
  89. package/components/primitives/timePicker/types.js +1 -0
  90. package/components/progress/component/style.css +167 -0
  91. package/components/search/component/index.d.ts.map +1 -1
  92. package/components/search/component/index.js +9 -3
  93. package/components/search/component/style.css +18 -0
  94. package/components/search/types.d.ts +5 -0
  95. package/components/search/types.d.ts.map +1 -1
  96. package/components/stepper/component/index.d.ts +7 -0
  97. package/components/stepper/component/index.d.ts.map +1 -0
  98. package/components/stepper/component/index.js +56 -0
  99. package/components/stepper/component/style.css +510 -0
  100. package/components/stepper/component/style.scss +432 -0
  101. package/components/stepper/index.d.ts +3 -0
  102. package/components/stepper/index.d.ts.map +1 -0
  103. package/components/stepper/index.js +2 -0
  104. package/components/stepper/types.d.ts +65 -0
  105. package/components/stepper/types.d.ts.map +1 -0
  106. package/components/stepper/types.js +1 -0
  107. package/components/table/component/style.css +14 -0
  108. package/components/tabs/component/style.css +6 -0
  109. package/components/tag/component/style.css +19 -0
  110. package/components/timeline/component/index.d.ts +7 -0
  111. package/components/timeline/component/index.d.ts.map +1 -0
  112. package/components/timeline/component/index.js +36 -0
  113. package/components/timeline/component/style.css +488 -0
  114. package/components/timeline/component/style.scss +397 -0
  115. package/components/timeline/index.d.ts +3 -0
  116. package/components/timeline/index.d.ts.map +1 -0
  117. package/components/timeline/index.js +2 -0
  118. package/components/timeline/types.d.ts +55 -0
  119. package/components/timeline/types.d.ts.map +1 -0
  120. package/components/timeline/types.js +1 -0
  121. package/components/tooltip/component/index.d.ts +6 -0
  122. package/components/tooltip/component/index.d.ts.map +1 -0
  123. package/components/tooltip/component/index.js +80 -0
  124. package/components/tooltip/index.d.ts +3 -0
  125. package/components/tooltip/index.d.ts.map +1 -0
  126. package/components/tooltip/index.js +2 -0
  127. package/components/tooltip/types.d.ts +31 -0
  128. package/components/tooltip/types.d.ts.map +1 -0
  129. package/components/tooltip/types.js +1 -0
  130. package/package.json +10 -3
  131. package/readme.md +18 -3
  132. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,382 @@
1
+ .bbr-radio-group {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 0.5rem;
5
+ }
6
+ .bbr-radio-group.is-horizontal {
7
+ flex-direction: row;
8
+ flex-wrap: wrap;
9
+ gap: 1rem;
10
+ }
11
+
12
+ .bbr-radio-item {
13
+ display: flex;
14
+ align-items: center;
15
+ }
16
+
17
+ .is-checkradio.bbr-radio[type=radio] {
18
+ outline: 0;
19
+ user-select: none;
20
+ display: inline-block;
21
+ position: absolute;
22
+ opacity: 0;
23
+ }
24
+ .is-checkradio.bbr-radio[type=radio] + label {
25
+ position: relative;
26
+ display: inline-flex;
27
+ align-items: center;
28
+ padding-left: 1.75rem;
29
+ cursor: pointer;
30
+ font-size: 1rem;
31
+ line-height: 1.25;
32
+ min-height: 1.5rem;
33
+ }
34
+ .is-checkradio.bbr-radio[type=radio] + label::before {
35
+ position: absolute;
36
+ left: 0;
37
+ top: 50%;
38
+ transform: translateY(-50%);
39
+ width: 1.25rem;
40
+ height: 1.25rem;
41
+ border: 0.1rem solid hsl(0, 0%, 86%);
42
+ border-radius: 50%;
43
+ background: transparent;
44
+ content: "";
45
+ transition: background 0.15s ease-out, border-color 0.15s ease-out;
46
+ }
47
+ .is-checkradio.bbr-radio[type=radio] + label::after {
48
+ position: absolute;
49
+ left: 0.3125rem;
50
+ top: 50%;
51
+ transform: translateY(-50%) scale(0);
52
+ width: 0.625rem;
53
+ height: 0.625rem;
54
+ border-radius: 50%;
55
+ background: hsl(171, 100%, 41%);
56
+ content: "";
57
+ transition: transform 0.15s ease-out;
58
+ }
59
+ .is-checkradio.bbr-radio[type=radio]:checked + label::after {
60
+ transform: translateY(-50%) scale(1);
61
+ }
62
+ .is-checkradio.bbr-radio[type=radio]:checked + label::before {
63
+ border-color: hsl(171, 100%, 41%);
64
+ }
65
+ .is-checkradio.bbr-radio[type=radio]:focus + label::before {
66
+ border-color: hsl(171, 100%, 41%);
67
+ box-shadow: 0 0 0 0.125em rgba(0, 209.1, 177.735, 0.25);
68
+ }
69
+ .is-checkradio.bbr-radio[type=radio]:hover:not(:disabled) + label::before {
70
+ border-color: hsl(0, 0%, 71%);
71
+ }
72
+ .is-checkradio.bbr-radio[type=radio]:disabled {
73
+ cursor: not-allowed;
74
+ }
75
+ .is-checkradio.bbr-radio[type=radio]:disabled + label {
76
+ opacity: 0.5;
77
+ cursor: not-allowed;
78
+ }
79
+ .is-checkradio.bbr-radio[type=radio].is-circle + label::before {
80
+ border-radius: 50%;
81
+ }
82
+ .is-checkradio.bbr-radio[type=radio].is-circle + label::after {
83
+ border-radius: 50%;
84
+ }
85
+ .is-checkradio.bbr-radio[type=radio].is-block + label {
86
+ padding: 0.5rem 0.75rem 0.5rem 2.25rem;
87
+ background: hsl(0, 0%, 98%);
88
+ border-radius: 4px;
89
+ width: 100%;
90
+ }
91
+ .is-checkradio.bbr-radio[type=radio].is-block + label::before {
92
+ left: 0.5rem;
93
+ }
94
+ .is-checkradio.bbr-radio[type=radio].is-block + label::after {
95
+ left: 0.8125rem;
96
+ }
97
+ .is-checkradio.bbr-radio[type=radio].is-block + label:hover {
98
+ background: hsl(0, 0%, 96%);
99
+ }
100
+ .is-checkradio.bbr-radio[type=radio].is-block:checked + label {
101
+ background: rgba(0, 209.1, 177.735, 0.1);
102
+ }
103
+ .is-checkradio.bbr-radio[type=radio].has-no-border + label::before {
104
+ border: none;
105
+ background: hsl(0, 0%, 86%);
106
+ }
107
+ .is-checkradio.bbr-radio[type=radio].has-no-border:checked + label::before {
108
+ background: rgba(0, 209.1, 177.735, 0.2);
109
+ }
110
+ .is-checkradio.bbr-radio[type=radio].has-background-color + label::before {
111
+ background: hsl(0, 0%, 96%);
112
+ }
113
+ .is-checkradio.bbr-radio[type=radio].has-background-color:checked + label::before {
114
+ background: rgba(0, 209.1, 177.735, 0.15);
115
+ border-color: hsl(171, 100%, 41%);
116
+ }
117
+ .is-checkradio.bbr-radio[type=radio].is-small + label {
118
+ font-size: 0.75rem;
119
+ padding-left: 1.5rem;
120
+ }
121
+ .is-checkradio.bbr-radio[type=radio].is-small + label::before {
122
+ width: 1rem;
123
+ height: 1rem;
124
+ }
125
+ .is-checkradio.bbr-radio[type=radio].is-small + label::after {
126
+ width: 0.5rem;
127
+ height: 0.5rem;
128
+ left: 0.25rem;
129
+ }
130
+ .is-checkradio.bbr-radio[type=radio].is-small.is-block + label {
131
+ padding-left: 2rem;
132
+ }
133
+ .is-checkradio.bbr-radio[type=radio].is-small.is-block + label::before {
134
+ left: 0.5rem;
135
+ }
136
+ .is-checkradio.bbr-radio[type=radio].is-small.is-block + label::after {
137
+ left: 0.75rem;
138
+ }
139
+ .is-checkradio.bbr-radio[type=radio].is-medium + label {
140
+ font-size: 1.25rem;
141
+ padding-left: 2rem;
142
+ }
143
+ .is-checkradio.bbr-radio[type=radio].is-medium + label::before {
144
+ width: 1.5rem;
145
+ height: 1.5rem;
146
+ }
147
+ .is-checkradio.bbr-radio[type=radio].is-medium + label::after {
148
+ width: 0.75rem;
149
+ height: 0.75rem;
150
+ left: 0.375rem;
151
+ }
152
+ .is-checkradio.bbr-radio[type=radio].is-medium.is-block + label {
153
+ padding-left: 2.5rem;
154
+ }
155
+ .is-checkradio.bbr-radio[type=radio].is-medium.is-block + label::before {
156
+ left: 0.5rem;
157
+ }
158
+ .is-checkradio.bbr-radio[type=radio].is-medium.is-block + label::after {
159
+ left: 0.875rem;
160
+ }
161
+ .is-checkradio.bbr-radio[type=radio].is-large + label {
162
+ font-size: 1.5rem;
163
+ padding-left: 2.25rem;
164
+ }
165
+ .is-checkradio.bbr-radio[type=radio].is-large + label::before {
166
+ width: 1.75rem;
167
+ height: 1.75rem;
168
+ }
169
+ .is-checkradio.bbr-radio[type=radio].is-large + label::after {
170
+ width: 0.875rem;
171
+ height: 0.875rem;
172
+ left: 0.4375rem;
173
+ }
174
+ .is-checkradio.bbr-radio[type=radio].is-large.is-block + label {
175
+ padding-left: 2.75rem;
176
+ }
177
+ .is-checkradio.bbr-radio[type=radio].is-large.is-block + label::before {
178
+ left: 0.5rem;
179
+ }
180
+ .is-checkradio.bbr-radio[type=radio].is-large.is-block + label::after {
181
+ left: 0.9375rem;
182
+ }
183
+ .is-checkradio.bbr-radio[type=radio].is-white:checked + label::before {
184
+ border-color: hsl(0, 0%, 100%);
185
+ }
186
+ .is-checkradio.bbr-radio[type=radio].is-white:checked + label::after {
187
+ background: hsl(0, 0%, 100%);
188
+ }
189
+ .is-checkradio.bbr-radio[type=radio].is-white:focus + label::before {
190
+ border-color: hsl(0, 0%, 100%);
191
+ box-shadow: 0 0 0 0.125em rgba(255, 255, 255, 0.25);
192
+ }
193
+ .is-checkradio.bbr-radio[type=radio].is-white.is-block:checked + label {
194
+ background: rgba(255, 255, 255, 0.1);
195
+ }
196
+ .is-checkradio.bbr-radio[type=radio].is-white.has-background-color:checked + label::before {
197
+ background: rgba(255, 255, 255, 0.15);
198
+ border-color: hsl(0, 0%, 100%);
199
+ }
200
+ .is-checkradio.bbr-radio[type=radio].is-white.has-no-border:checked + label::before {
201
+ background: rgba(255, 255, 255, 0.2);
202
+ }
203
+ .is-checkradio.bbr-radio[type=radio].is-black:checked + label::before {
204
+ border-color: hsl(0, 0%, 4%);
205
+ }
206
+ .is-checkradio.bbr-radio[type=radio].is-black:checked + label::after {
207
+ background: hsl(0, 0%, 4%);
208
+ }
209
+ .is-checkradio.bbr-radio[type=radio].is-black:focus + label::before {
210
+ border-color: hsl(0, 0%, 4%);
211
+ box-shadow: 0 0 0 0.125em rgba(10.2, 10.2, 10.2, 0.25);
212
+ }
213
+ .is-checkradio.bbr-radio[type=radio].is-black.is-block:checked + label {
214
+ background: rgba(10.2, 10.2, 10.2, 0.1);
215
+ }
216
+ .is-checkradio.bbr-radio[type=radio].is-black.has-background-color:checked + label::before {
217
+ background: rgba(10.2, 10.2, 10.2, 0.15);
218
+ border-color: hsl(0, 0%, 4%);
219
+ }
220
+ .is-checkradio.bbr-radio[type=radio].is-black.has-no-border:checked + label::before {
221
+ background: rgba(10.2, 10.2, 10.2, 0.2);
222
+ }
223
+ .is-checkradio.bbr-radio[type=radio].is-light:checked + label::before {
224
+ border-color: hsl(0, 0%, 96%);
225
+ }
226
+ .is-checkradio.bbr-radio[type=radio].is-light:checked + label::after {
227
+ background: hsl(0, 0%, 96%);
228
+ }
229
+ .is-checkradio.bbr-radio[type=radio].is-light:focus + label::before {
230
+ border-color: hsl(0, 0%, 96%);
231
+ box-shadow: 0 0 0 0.125em rgba(244.8, 244.8, 244.8, 0.25);
232
+ }
233
+ .is-checkradio.bbr-radio[type=radio].is-light.is-block:checked + label {
234
+ background: rgba(244.8, 244.8, 244.8, 0.1);
235
+ }
236
+ .is-checkradio.bbr-radio[type=radio].is-light.has-background-color:checked + label::before {
237
+ background: rgba(244.8, 244.8, 244.8, 0.15);
238
+ border-color: hsl(0, 0%, 96%);
239
+ }
240
+ .is-checkradio.bbr-radio[type=radio].is-light.has-no-border:checked + label::before {
241
+ background: rgba(244.8, 244.8, 244.8, 0.2);
242
+ }
243
+ .is-checkradio.bbr-radio[type=radio].is-dark:checked + label::before {
244
+ border-color: hsl(0, 0%, 21%);
245
+ }
246
+ .is-checkradio.bbr-radio[type=radio].is-dark:checked + label::after {
247
+ background: hsl(0, 0%, 21%);
248
+ }
249
+ .is-checkradio.bbr-radio[type=radio].is-dark:focus + label::before {
250
+ border-color: hsl(0, 0%, 21%);
251
+ box-shadow: 0 0 0 0.125em rgba(53.55, 53.55, 53.55, 0.25);
252
+ }
253
+ .is-checkradio.bbr-radio[type=radio].is-dark.is-block:checked + label {
254
+ background: rgba(53.55, 53.55, 53.55, 0.1);
255
+ }
256
+ .is-checkradio.bbr-radio[type=radio].is-dark.has-background-color:checked + label::before {
257
+ background: rgba(53.55, 53.55, 53.55, 0.15);
258
+ border-color: hsl(0, 0%, 21%);
259
+ }
260
+ .is-checkradio.bbr-radio[type=radio].is-dark.has-no-border:checked + label::before {
261
+ background: rgba(53.55, 53.55, 53.55, 0.2);
262
+ }
263
+ .is-checkradio.bbr-radio[type=radio].is-primary:checked + label::before {
264
+ border-color: hsl(171, 100%, 41%);
265
+ }
266
+ .is-checkradio.bbr-radio[type=radio].is-primary:checked + label::after {
267
+ background: hsl(171, 100%, 41%);
268
+ }
269
+ .is-checkradio.bbr-radio[type=radio].is-primary:focus + label::before {
270
+ border-color: hsl(171, 100%, 41%);
271
+ box-shadow: 0 0 0 0.125em rgba(0, 209.1, 177.735, 0.25);
272
+ }
273
+ .is-checkradio.bbr-radio[type=radio].is-primary.is-block:checked + label {
274
+ background: rgba(0, 209.1, 177.735, 0.1);
275
+ }
276
+ .is-checkradio.bbr-radio[type=radio].is-primary.has-background-color:checked + label::before {
277
+ background: rgba(0, 209.1, 177.735, 0.15);
278
+ border-color: hsl(171, 100%, 41%);
279
+ }
280
+ .is-checkradio.bbr-radio[type=radio].is-primary.has-no-border:checked + label::before {
281
+ background: rgba(0, 209.1, 177.735, 0.2);
282
+ }
283
+ .is-checkradio.bbr-radio[type=radio].is-link:checked + label::before {
284
+ border-color: hsl(229, 53%, 53%);
285
+ }
286
+ .is-checkradio.bbr-radio[type=radio].is-link:checked + label::after {
287
+ background: hsl(229, 53%, 53%);
288
+ }
289
+ .is-checkradio.bbr-radio[type=radio].is-link:focus + label::before {
290
+ border-color: hsl(229, 53%, 53%);
291
+ box-shadow: 0 0 0 0.125em rgba(71.6295, 94.92035, 198.6705, 0.25);
292
+ }
293
+ .is-checkradio.bbr-radio[type=radio].is-link.is-block:checked + label {
294
+ background: rgba(71.6295, 94.92035, 198.6705, 0.1);
295
+ }
296
+ .is-checkradio.bbr-radio[type=radio].is-link.has-background-color:checked + label::before {
297
+ background: rgba(71.6295, 94.92035, 198.6705, 0.15);
298
+ border-color: hsl(229, 53%, 53%);
299
+ }
300
+ .is-checkradio.bbr-radio[type=radio].is-link.has-no-border:checked + label::before {
301
+ background: rgba(71.6295, 94.92035, 198.6705, 0.2);
302
+ }
303
+ .is-checkradio.bbr-radio[type=radio].is-info:checked + label::before {
304
+ border-color: hsl(207, 61%, 53%);
305
+ }
306
+ .is-checkradio.bbr-radio[type=radio].is-info:checked + label::after {
307
+ background: hsl(207, 61%, 53%);
308
+ }
309
+ .is-checkradio.bbr-radio[type=radio].is-info:focus + label::before {
310
+ border-color: hsl(207, 61%, 53%);
311
+ box-shadow: 0 0 0 0.125em rgba(62.0415, 142.46085, 208.2585, 0.25);
312
+ }
313
+ .is-checkradio.bbr-radio[type=radio].is-info.is-block:checked + label {
314
+ background: rgba(62.0415, 142.46085, 208.2585, 0.1);
315
+ }
316
+ .is-checkradio.bbr-radio[type=radio].is-info.has-background-color:checked + label::before {
317
+ background: rgba(62.0415, 142.46085, 208.2585, 0.15);
318
+ border-color: hsl(207, 61%, 53%);
319
+ }
320
+ .is-checkradio.bbr-radio[type=radio].is-info.has-no-border:checked + label::before {
321
+ background: rgba(62.0415, 142.46085, 208.2585, 0.2);
322
+ }
323
+ .is-checkradio.bbr-radio[type=radio].is-success:checked + label::before {
324
+ border-color: hsl(153, 53%, 53%);
325
+ }
326
+ .is-checkradio.bbr-radio[type=radio].is-success:checked + label::after {
327
+ background: hsl(153, 53%, 53%);
328
+ }
329
+ .is-checkradio.bbr-radio[type=radio].is-success:focus + label::before {
330
+ border-color: hsl(153, 53%, 53%);
331
+ box-shadow: 0 0 0 0.125em rgba(71.6295, 198.6705, 141.50205, 0.25);
332
+ }
333
+ .is-checkradio.bbr-radio[type=radio].is-success.is-block:checked + label {
334
+ background: rgba(71.6295, 198.6705, 141.50205, 0.1);
335
+ }
336
+ .is-checkradio.bbr-radio[type=radio].is-success.has-background-color:checked + label::before {
337
+ background: rgba(71.6295, 198.6705, 141.50205, 0.15);
338
+ border-color: hsl(153, 53%, 53%);
339
+ }
340
+ .is-checkradio.bbr-radio[type=radio].is-success.has-no-border:checked + label::before {
341
+ background: rgba(71.6295, 198.6705, 141.50205, 0.2);
342
+ }
343
+ .is-checkradio.bbr-radio[type=radio].is-warning:checked + label::before {
344
+ border-color: hsl(44, 100%, 77%);
345
+ }
346
+ .is-checkradio.bbr-radio[type=radio].is-warning:checked + label::after {
347
+ background: hsl(44, 100%, 77%);
348
+ }
349
+ .is-checkradio.bbr-radio[type=radio].is-warning:focus + label::before {
350
+ border-color: hsl(44, 100%, 77%);
351
+ box-shadow: 0 0 0 0.125em rgba(255, 223.72, 137.7, 0.25);
352
+ }
353
+ .is-checkradio.bbr-radio[type=radio].is-warning.is-block:checked + label {
354
+ background: rgba(255, 223.72, 137.7, 0.1);
355
+ }
356
+ .is-checkradio.bbr-radio[type=radio].is-warning.has-background-color:checked + label::before {
357
+ background: rgba(255, 223.72, 137.7, 0.15);
358
+ border-color: hsl(44, 100%, 77%);
359
+ }
360
+ .is-checkradio.bbr-radio[type=radio].is-warning.has-no-border:checked + label::before {
361
+ background: rgba(255, 223.72, 137.7, 0.2);
362
+ }
363
+ .is-checkradio.bbr-radio[type=radio].is-danger:checked + label::before {
364
+ border-color: hsl(348, 86%, 61%);
365
+ }
366
+ .is-checkradio.bbr-radio[type=radio].is-danger:checked + label::after {
367
+ background: hsl(348, 86%, 61%);
368
+ }
369
+ .is-checkradio.bbr-radio[type=radio].is-danger:focus + label::before {
370
+ border-color: hsl(348, 86%, 61%);
371
+ box-shadow: 0 0 0 0.125em rgba(241.077, 70.023, 104.2338, 0.25);
372
+ }
373
+ .is-checkradio.bbr-radio[type=radio].is-danger.is-block:checked + label {
374
+ background: rgba(241.077, 70.023, 104.2338, 0.1);
375
+ }
376
+ .is-checkradio.bbr-radio[type=radio].is-danger.has-background-color:checked + label::before {
377
+ background: rgba(241.077, 70.023, 104.2338, 0.15);
378
+ border-color: hsl(348, 86%, 61%);
379
+ }
380
+ .is-checkradio.bbr-radio[type=radio].is-danger.has-no-border:checked + label::before {
381
+ background: rgba(241.077, 70.023, 104.2338, 0.2);
382
+ }
@@ -0,0 +1,271 @@
1
+ @import "bulma/sass/utilities/derived-variables";
2
+
3
+ .bbr-radio-group {
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 0.5rem;
7
+
8
+ &.is-horizontal {
9
+ flex-direction: row;
10
+ flex-wrap: wrap;
11
+ gap: 1rem;
12
+ }
13
+ }
14
+
15
+ .bbr-radio-item {
16
+ display: flex;
17
+ align-items: center;
18
+ }
19
+
20
+ .is-checkradio.bbr-radio[type="radio"] {
21
+ outline: 0;
22
+ user-select: none;
23
+ display: inline-block;
24
+ position: absolute;
25
+ opacity: 0;
26
+
27
+ + label {
28
+ position: relative;
29
+ display: inline-flex;
30
+ align-items: center;
31
+ padding-left: 1.75rem;
32
+ cursor: pointer;
33
+ font-size: $size-normal;
34
+ line-height: 1.25;
35
+ min-height: 1.5rem;
36
+
37
+ &::before {
38
+ position: absolute;
39
+ left: 0;
40
+ top: 50%;
41
+ transform: translateY(-50%);
42
+ width: 1.25rem;
43
+ height: 1.25rem;
44
+ border: 0.1rem solid $grey-lighter;
45
+ border-radius: 50%;
46
+ background: transparent;
47
+ content: "";
48
+ transition: background 0.15s ease-out, border-color 0.15s ease-out;
49
+ }
50
+
51
+ &::after {
52
+ position: absolute;
53
+ left: 0.3125rem;
54
+ top: 50%;
55
+ transform: translateY(-50%) scale(0);
56
+ width: 0.625rem;
57
+ height: 0.625rem;
58
+ border-radius: 50%;
59
+ background: $primary;
60
+ content: "";
61
+ transition: transform 0.15s ease-out;
62
+ }
63
+ }
64
+
65
+ &:checked + label::after {
66
+ transform: translateY(-50%) scale(1);
67
+ }
68
+
69
+ &:checked + label::before {
70
+ border-color: $primary;
71
+ }
72
+
73
+ &:focus + label::before {
74
+ border-color: $primary;
75
+ box-shadow: 0 0 0 0.125em rgba($primary, 0.25);
76
+ }
77
+
78
+ &:hover:not(:disabled) + label::before {
79
+ border-color: $grey-light;
80
+ }
81
+
82
+ &:disabled {
83
+ cursor: not-allowed;
84
+
85
+ + label {
86
+ opacity: 0.5;
87
+ cursor: not-allowed;
88
+ }
89
+ }
90
+
91
+ // Circle style (default for radio)
92
+ &.is-circle + label {
93
+ &::before {
94
+ border-radius: 50%;
95
+ }
96
+
97
+ &::after {
98
+ border-radius: 50%;
99
+ }
100
+ }
101
+
102
+ // Block style
103
+ &.is-block {
104
+ + label {
105
+ padding: 0.5rem 0.75rem 0.5rem 2.25rem;
106
+ background: $white-bis;
107
+ border-radius: $radius;
108
+ width: 100%;
109
+
110
+ &::before {
111
+ left: 0.5rem;
112
+ }
113
+
114
+ &::after {
115
+ left: 0.8125rem;
116
+ }
117
+
118
+ &:hover {
119
+ background: $white-ter;
120
+ }
121
+ }
122
+
123
+ &:checked + label {
124
+ background: rgba($primary, 0.1);
125
+ }
126
+ }
127
+
128
+ // Without border
129
+ &.has-no-border + label::before {
130
+ border: none;
131
+ background: $grey-lighter;
132
+ }
133
+
134
+ &.has-no-border:checked + label::before {
135
+ background: rgba($primary, 0.2);
136
+ }
137
+
138
+ // Has background color
139
+ &.has-background-color + label::before {
140
+ background: $white-ter;
141
+ }
142
+
143
+ &.has-background-color:checked + label::before {
144
+ background: rgba($primary, 0.15);
145
+ border-color: $primary;
146
+ }
147
+
148
+ // Size variations
149
+ &.is-small {
150
+ + label {
151
+ font-size: $size-small;
152
+ padding-left: 1.5rem;
153
+
154
+ &::before {
155
+ width: 1rem;
156
+ height: 1rem;
157
+ }
158
+
159
+ &::after {
160
+ width: 0.5rem;
161
+ height: 0.5rem;
162
+ left: 0.25rem;
163
+ }
164
+ }
165
+
166
+ &.is-block + label {
167
+ padding-left: 2rem;
168
+
169
+ &::before {
170
+ left: 0.5rem;
171
+ }
172
+
173
+ &::after {
174
+ left: 0.75rem;
175
+ }
176
+ }
177
+ }
178
+
179
+ &.is-medium {
180
+ + label {
181
+ font-size: $size-medium;
182
+ padding-left: 2rem;
183
+
184
+ &::before {
185
+ width: 1.5rem;
186
+ height: 1.5rem;
187
+ }
188
+
189
+ &::after {
190
+ width: 0.75rem;
191
+ height: 0.75rem;
192
+ left: 0.375rem;
193
+ }
194
+ }
195
+
196
+ &.is-block + label {
197
+ padding-left: 2.5rem;
198
+
199
+ &::before {
200
+ left: 0.5rem;
201
+ }
202
+
203
+ &::after {
204
+ left: 0.875rem;
205
+ }
206
+ }
207
+ }
208
+
209
+ &.is-large {
210
+ + label {
211
+ font-size: $size-large;
212
+ padding-left: 2.25rem;
213
+
214
+ &::before {
215
+ width: 1.75rem;
216
+ height: 1.75rem;
217
+ }
218
+
219
+ &::after {
220
+ width: 0.875rem;
221
+ height: 0.875rem;
222
+ left: 0.4375rem;
223
+ }
224
+ }
225
+
226
+ &.is-block + label {
227
+ padding-left: 2.75rem;
228
+
229
+ &::before {
230
+ left: 0.5rem;
231
+ }
232
+
233
+ &::after {
234
+ left: 0.9375rem;
235
+ }
236
+ }
237
+ }
238
+
239
+ // Color variations
240
+ @each $name, $pair in $colors {
241
+ $color: nth($pair, 1);
242
+
243
+ &.is-#{$name} {
244
+ &:checked + label::before {
245
+ border-color: $color;
246
+ }
247
+
248
+ &:checked + label::after {
249
+ background: $color;
250
+ }
251
+
252
+ &:focus + label::before {
253
+ border-color: $color;
254
+ box-shadow: 0 0 0 0.125em rgba($color, 0.25);
255
+ }
256
+
257
+ &.is-block:checked + label {
258
+ background: rgba($color, 0.1);
259
+ }
260
+
261
+ &.has-background-color:checked + label::before {
262
+ background: rgba($color, 0.15);
263
+ border-color: $color;
264
+ }
265
+
266
+ &.has-no-border:checked + label::before {
267
+ background: rgba($color, 0.2);
268
+ }
269
+ }
270
+ }
271
+ }
@@ -0,0 +1,3 @@
1
+ export { default } from "./component";
2
+ export * from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/radioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./component";
2
+ export * from "./types";