@citolab/qti-components 6.9.1-beta.46 → 6.9.1-beta.47

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 (2) hide show
  1. package/dist/item.css +37 -30
  2. package/package.json +1 -1
package/dist/item.css CHANGED
@@ -35,6 +35,7 @@ https://www.imsglobal.org/spec/qti/v3p0/impl#h.e0onr51nghyl
35
35
  --qti-border-thickness: 1.5px;
36
36
  --qti-border-style: solid;
37
37
  --qti-border-color-gray: #c6cad0; /* Corresponding to border-gray-400 */
38
+ --qti-border-radius-sm: 0.1rem;
38
39
  --qti-border-radius-md: 0.375rem;
39
40
  --qti-border-radius-lg: 0.5rem;
40
41
  --qti-border-radius-full: 9999px;
@@ -108,9 +109,10 @@ https://www.imsglobal.org/spec/qti/v3p0/impl#h.e0onr51nghyl
108
109
 
109
110
  .form {
110
111
 
112
+ display: grid;
113
+ place-content: center;
111
114
  width: var(--qti-form-size);
112
115
  height: var(--qti-form-size);
113
- align-self: 1;
114
116
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);
115
117
  outline: none;
116
118
  }
@@ -229,18 +231,15 @@ https://www.imsglobal.org/spec/qti/v3p0/impl#h.e0onr51nghyl
229
231
  }
230
232
 
231
233
  .check-size {
232
- width: calc(var(--qti-form-size) - 4px);
233
- height: calc(var(--qti-form-size) - 4px);
234
+ width: calc(var(--qti-form-size) - 6px);
235
+ height: calc(var(--qti-form-size) - 6px);
234
236
  }
235
237
 
236
238
  .check {
237
- /* display: flex; */
238
-
239
- /* align-items: center; */
240
239
  gap: 0.5rem;
240
+ border-radius: var(--qti-border-radius-md);
241
241
  padding: var(--qti-padding-md) var(--qti-padding-md); /* Padding shorthand */
242
242
  outline: none;
243
- border-radius: var(--qti-border-radius-md);
244
243
  cursor: pointer;
245
244
  }
246
245
 
@@ -248,12 +247,14 @@ https://www.imsglobal.org/spec/qti/v3p0/impl#h.e0onr51nghyl
248
247
 
249
248
  border-radius: var(--qti-border-radius-full);
250
249
 
250
+ display: grid;
251
+
252
+ place-content: center;
253
+
251
254
  width: var(--qti-form-size);
252
255
 
253
256
  height: var(--qti-form-size);
254
257
 
255
- align-self: 1;
256
-
257
258
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);
258
259
 
259
260
  outline: none;
@@ -266,16 +267,14 @@ https://www.imsglobal.org/spec/qti/v3p0/impl#h.e0onr51nghyl
266
267
 
267
268
  .check-checkbox {
268
269
 
269
- border-radius: var(--qti-border-radius-md);
270
-
270
+ display: flex;
271
+ place-items: center;
272
+ border-radius: var(--qti-border-radius-sm);
273
+ display: grid;
274
+ place-content: center;
271
275
  width: var(--qti-form-size);
272
-
273
276
  height: var(--qti-form-size);
274
-
275
- align-self: 1;
276
-
277
277
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);
278
-
279
278
  outline: none;
280
279
  }
281
280
 
@@ -2014,15 +2013,16 @@ qti-response-declaration {
2014
2013
  }
2015
2014
 
2016
2015
  &::part(cha) {
2017
- width: calc(var(--qti-form-size) - 4px);
2018
- height: calc(var(--qti-form-size) - 4px);
2016
+ width: calc(var(--qti-form-size) - 6px);
2017
+ height: calc(var(--qti-form-size) - 6px);
2019
2018
  }
2020
2019
 
2021
2020
  &[role='radio']::part(ch) {
2022
2021
  border-radius: var(--qti-border-radius-full);
2022
+ display: grid;
2023
+ place-content: center;
2023
2024
  width: var(--qti-form-size);
2024
2025
  height: var(--qti-form-size);
2025
- align-self: 1;
2026
2026
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);
2027
2027
  outline: none;
2028
2028
  }
@@ -2033,10 +2033,13 @@ qti-response-declaration {
2033
2033
  }
2034
2034
 
2035
2035
  &[role='checkbox']::part(ch) {
2036
- border-radius: var(--qti-border-radius-md);
2036
+ display: flex;
2037
+ place-items: center;
2038
+ border-radius: var(--qti-border-radius-sm);
2039
+ display: grid;
2040
+ place-content: center;
2037
2041
  width: var(--qti-form-size);
2038
2042
  height: var(--qti-form-size);
2039
- align-self: 1;
2040
2043
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);
2041
2044
  outline: none;
2042
2045
  }
@@ -2051,12 +2054,12 @@ qti-response-declaration {
2051
2054
 
2052
2055
  gap: 0.5rem;
2053
2056
 
2057
+ border-radius: var(--qti-border-radius-md);
2058
+
2054
2059
  padding: var(--qti-padding-md) var(--qti-padding-md);
2055
2060
 
2056
2061
  outline: none;
2057
2062
 
2058
- border-radius: var(--qti-border-radius-md);
2059
-
2060
2063
  cursor: pointer
2061
2064
  }
2062
2065
  }
@@ -2360,15 +2363,16 @@ qti-response-declaration {
2360
2363
  }
2361
2364
 
2362
2365
  &::part(cha) {
2363
- width: calc(var(--qti-form-size) - 4px);
2364
- height: calc(var(--qti-form-size) - 4px);
2366
+ width: calc(var(--qti-form-size) - 6px);
2367
+ height: calc(var(--qti-form-size) - 6px);
2365
2368
  }
2366
2369
 
2367
2370
  &[role='radio']::part(ch) {
2368
2371
  border-radius: var(--qti-border-radius-full);
2372
+ display: grid;
2373
+ place-content: center;
2369
2374
  width: var(--qti-form-size);
2370
2375
  height: var(--qti-form-size);
2371
- align-self: 1;
2372
2376
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);
2373
2377
  outline: none;
2374
2378
  }
@@ -2379,10 +2383,13 @@ qti-response-declaration {
2379
2383
  }
2380
2384
 
2381
2385
  &[role='checkbox']::part(ch) {
2382
- border-radius: var(--qti-border-radius-md);
2386
+ display: flex;
2387
+ place-items: center;
2388
+ border-radius: var(--qti-border-radius-sm);
2389
+ display: grid;
2390
+ place-content: center;
2383
2391
  width: var(--qti-form-size);
2384
2392
  height: var(--qti-form-size);
2385
- align-self: 1;
2386
2393
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color-gray);
2387
2394
  outline: none;
2388
2395
  }
@@ -2397,12 +2404,12 @@ qti-response-declaration {
2397
2404
 
2398
2405
  gap: 0.5rem;
2399
2406
 
2407
+ border-radius: var(--qti-border-radius-md);
2408
+
2400
2409
  padding: var(--qti-padding-md) var(--qti-padding-md);
2401
2410
 
2402
2411
  outline: none;
2403
2412
 
2404
- border-radius: var(--qti-border-radius-md);
2405
-
2406
2413
  cursor: pointer
2407
2414
  }
2408
2415
 
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "engines": {
22
22
  "node": ">=20.0.0"
23
23
  },
24
- "version": "6.9.1-beta.46",
24
+ "version": "6.9.1-beta.47",
25
25
  "type": "module",
26
26
  "exports": {
27
27
  "./qti-components": "./dist/qti-components/index.js",