@citolab/qti-components 6.5.1 → 6.5.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.
- package/dist/custom-elements.json +359 -359
- package/dist/index.cjs +87 -48
- package/dist/index.d.cts +46 -1
- package/dist/index.d.ts +46 -1
- package/dist/index.js +86 -47
- package/dist/qti-components/index.cjs +23 -19
- package/dist/qti-components/index.d.cts +1 -0
- package/dist/qti-components/index.d.ts +1 -0
- package/dist/qti-components/index.js +50 -46
- package/dist/styles.bundled.css +3 -0
- package/package.json +4 -7
- package/src/styles/qti/qti-input-width.css +0 -36
- package/src/styles/qti/qti-layout.css +0 -119
- package/src/styles/qti/qti-styles.css +0 -58
- package/src/styles/qti-components.css +0 -158
- package/src/styles/qti-interactions.css +0 -299
- package/src/styles/qti-interactions.layout.css +0 -36
- package/src/styles/qti-styles.css +0 -50
- package/src/styles/stories/qti-components.stories.css +0 -11
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
qti-choice-interaction {
|
|
2
|
-
&.qti-choices-stacking-2 {
|
|
3
|
-
@apply grid;
|
|
4
|
-
@apply grid-cols-2;
|
|
5
|
-
qti-prompt {
|
|
6
|
-
@apply col-span-2;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
&.qti-choices-stacking-3 {
|
|
10
|
-
@apply grid;
|
|
11
|
-
@apply grid-cols-3;
|
|
12
|
-
qti-prompt {
|
|
13
|
-
@apply col-span-3;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
&.qti-choices-stacking-4 {
|
|
17
|
-
@apply grid;
|
|
18
|
-
@apply grid-cols-4;
|
|
19
|
-
qti-prompt {
|
|
20
|
-
@apply col-span-4;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
&.qti-choices-stacking-5 {
|
|
24
|
-
@apply grid;
|
|
25
|
-
@apply grid-cols-5;
|
|
26
|
-
qti-prompt {
|
|
27
|
-
@apply col-span-5;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
&.qti-orientation-horizontal {
|
|
31
|
-
/* is the default layout */
|
|
32
|
-
}
|
|
33
|
-
&[orientation='horizontal'] {
|
|
34
|
-
flex-direction: row;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/* PK: Tailwind theming file for all qti-components
|
|
2
|
-
Uses tailwind components and utilities from the other files
|
|
3
|
-
|
|
4
|
-
https://play.tailwindcss.com/OFThGk8CbR
|
|
5
|
-
https://play.tailwindcss.com/CeHVrnwgXR
|
|
6
|
-
https://play.tailwindcss.com/JOgoCf81JM
|
|
7
|
-
|
|
8
|
-
You should in you project include modern-normalize.css
|
|
9
|
-
|
|
10
|
-
Then we create tailwind components
|
|
11
|
-
Then we consume these components in our qti-webcomponents
|
|
12
|
-
|
|
13
|
-
outline: used for focus
|
|
14
|
-
ring: used for border around the elements, can be active, its an inner ring, except for
|
|
15
|
-
the dropping well, because that has to surround the drag with the inner ring
|
|
16
|
-
|
|
17
|
-
There are 6 types
|
|
18
|
-
- text : text-entry and extended-text
|
|
19
|
-
- select : inline-choice
|
|
20
|
-
- button : .input-control-hidden qti-choice, qti-hotspot
|
|
21
|
-
- check : qti-choice, qti-hotspot
|
|
22
|
-
- drag : gap-match, match, order, associate
|
|
23
|
-
- drop : gap-match, match, order, associate
|
|
24
|
-
- spot : gap-select-point, graphic-order, qti-graphic-associate
|
|
25
|
-
|
|
26
|
-
trying to get the follower modifiers to work:
|
|
27
|
-
|
|
28
|
-
- sm , for elements inside text
|
|
29
|
-
- lg, , for large readable containers
|
|
30
|
-
- in , inline in text
|
|
31
|
-
|
|
32
|
-
taking into account cursors, select-none for some of the elements
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
/* FIXMEs
|
|
36
|
-
Outline always on top, sometimes it slips under the hover background
|
|
37
|
-
Intext with inline gaps does not align nicely with existing text https://play.tailwindcss.com/cJEGhvANwM
|
|
38
|
-
modifiers can not be in components, like this example where red should be a modifier inside base https://play.tailwindcss.com/JSnnv1Vvab?file=css
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
/* @layer base, components, utilities, variants; */
|
|
42
|
-
|
|
43
|
-
/* layout, dimensions, design */
|
|
44
|
-
/* QTI Interactions */
|
|
45
|
-
@import './qti-components.css';
|
|
46
|
-
@import './qti/qti-styles.css';
|
|
47
|
-
@import './qti/qti-layout.css';
|
|
48
|
-
@import './qti/qti-input-width.css';
|
|
49
|
-
@import './qti-interactions.css';
|
|
50
|
-
@import './qti-interactions.layout.css';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* TEST TEST TEST TEMPLATE, just for storybook */
|
|
2
|
-
/* IS NOT EXPORTED IN ANY WAY TO THE LIBRARY */
|
|
3
|
-
|
|
4
|
-
@import 'tailwindcss/base';
|
|
5
|
-
|
|
6
|
-
@import 'tailwindcss/components';
|
|
7
|
-
@import '../qti-components.css';
|
|
8
|
-
|
|
9
|
-
@import 'tailwindcss/utilities';
|
|
10
|
-
|
|
11
|
-
@config "./tailwind.config.qti-components.cjs";
|