@citolab/qti-components 6.9.1-beta.50 → 6.9.1-beta.52

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/item.css CHANGED
@@ -1949,11 +1949,13 @@ qti-response-declaration {
1949
1949
  display: none;
1950
1950
  }
1951
1951
 
1952
+ &:state(checked),
1952
1953
  &[aria-checked='true'] {
1953
1954
  border-color: var(--qti-bg-primary);
1954
1955
  background-color: var(--qti-primary-light);
1955
1956
  }
1956
1957
 
1958
+ &:state(readonly),
1957
1959
  &[aria-readonly='true'] {
1958
1960
  cursor: pointer;
1959
1961
  background-color: white;
@@ -1961,6 +1963,7 @@ qti-response-declaration {
1961
1963
  border: none;
1962
1964
  }
1963
1965
 
1966
+ &:state(disabled),
1964
1967
  &[aria-disabled='true'] {
1965
1968
  cursor: not-allowed;
1966
1969
  background-color: var(--qti-bg-gray-100);
@@ -1984,7 +1987,7 @@ qti-response-declaration {
1984
1987
  &:not(.qti-input-control-hidden) {
1985
1988
  & qti-simple-choice {
1986
1989
 
1987
- &:not([aria-disabled='true'], [aria-readonly='true'], [aria-checked='true']):hover {
1990
+ &:not([aria-disabled='true'], [aria-readonly='true'], :state(checked)):hover {
1988
1991
  background-color: var(--qti-bg-gray-50);
1989
1992
  }
1990
1993
 
@@ -1992,11 +1995,13 @@ qti-response-declaration {
1992
1995
  outline: var(--qti-focus-border-width) solid var(--qti-focus-color);
1993
1996
  }
1994
1997
 
1998
+ &:state(checked),
1995
1999
  &[aria-checked='true'] {
1996
2000
  border-color: var(--qti-bg-primary);
1997
2001
  background-color: var(--qti-primary-light);
1998
2002
  }
1999
2003
 
2004
+ &:state(readonly),
2000
2005
  &[aria-readonly='true'] {
2001
2006
  cursor: pointer;
2002
2007
  background-color: white;
@@ -2004,6 +2009,7 @@ qti-response-declaration {
2004
2009
  border: none;
2005
2010
  }
2006
2011
 
2012
+ &:state(disabled),
2007
2013
  &[aria-disabled='true'] {
2008
2014
  cursor: not-allowed;
2009
2015
  background-color: var(--qti-bg-gray-100);
@@ -2017,7 +2023,7 @@ qti-response-declaration {
2017
2023
  height: calc(var(--qti-form-size) - 6px);
2018
2024
  }
2019
2025
 
2020
- &[role='radio']::part(ch) {
2026
+ &:state(radio)::part(ch) {
2021
2027
  border-radius: var(--qti-border-radius-full);
2022
2028
  display: grid;
2023
2029
  place-content: center;
@@ -2027,12 +2033,12 @@ qti-response-declaration {
2027
2033
  outline: none;
2028
2034
  }
2029
2035
 
2030
- &[role='radio'][aria-checked='true']::part(cha) {
2036
+ &:state(radio):state(--checked)::part(cha) {
2031
2037
  background-color: var(--qti-bg-primary);
2032
2038
  border-radius: var(--qti-border-radius-full);
2033
2039
  }
2034
2040
 
2035
- &[role='checkbox']::part(ch) {
2041
+ &:state(checkbox)::part(ch) {
2036
2042
  display: flex;
2037
2043
  place-items: center;
2038
2044
  border-radius: var(--qti-border-radius-sm);
@@ -2044,7 +2050,7 @@ qti-response-declaration {
2044
2050
  outline: none;
2045
2051
  }
2046
2052
 
2047
- &[role='checkbox'][aria-checked='true']::part(cha) {
2053
+ &:state(checkbox):state(--checked)::part(cha) {
2048
2054
  background-color: var(--qti-bg-primary);
2049
2055
  -webkit-mask-image: var(--check-mask);
2050
2056
  mask-image: var(--check-mask);
@@ -1,5 +1,5 @@
1
- import { Q as QtiRule, a as QtiRuleBase, b as QtiExpressionBase, c as QtiExpression, B as BaseType, d as QtiConditionExpression, R as ResponseVariable, V as VariableDeclaration, I as ItemContext } from '../qti-simple-choice-Bil0gmT4.js';
2
- export { A as ActiveElementMixin, C as Calculate, m as Cardinality, r as ChoiceInterface, ae as Interaction, e as InteractionChangedDetails, U as MockQtiExpression, M as Multiple, l as Ordered, O as OutcomeChangedDetails, o as OutcomeVariable, T as QtiAnd, p as QtiAssessmentItem, q as QtiAssessmentStimulusRef, af as QtiAssociableHotspot, Z as QtiAssociateInteraction, K as QtiChoiceInteraction, w as QtiCompanionMaterialsInfo, x as QtiContentBody, _ as QtiCustomInteraction, ad as QtiCustomOperator, $ as QtiEndAttemptInteraction, F as QtiExtendedTextInteraction, z as QtiFeedbackBlock, D as QtiFeedbackInline, ag as QtiGap, ah as QtiGapImg, a0 as QtiGapMatchInteraction, ai as QtiGapText, a1 as QtiGraphicAssociateInteraction, a2 as QtiGraphicGapMatchInteraction, a3 as QtiGraphicOrderInteraction, aj as QtiHotspotChoice, a4 as QtiHotspotInteraction, ak as QtiHottext, H as QtiHottextInteraction, al as QtiInlineChoice, J as QtiInlineChoiceInteraction, f as QtiInteractionChanged, S as QtiLookupOutcomeValue, X as QtiMapping, a5 as QtiMatchInteraction, a6 as QtiMediaInteraction, E as QtiModalFeedback, a7 as QtiOrderInteraction, g as QtiOutcomeChanged, u as QtiOutcomeDeclaration, L as QtiOutcomeProcessing, N as QtiOutcomeProcessingProcessor, Y as QtiPortableCustomInteraction, a8 as QtiPositionObjectStage, s as QtiPrompt, v as QtiResponseDeclaration, P as QtiResponseProcessing, y as QtiRubricBlock, a9 as QtiSelectPointInteraction, am as QtiSimpleAssociableChoice, an as QtiSimpleChoice, aa as QtiSliderInteraction, t as QtiStylesheet, G as QtiTextEntryInteraction, i as ResponseInteraction, n as VariableValue, h as directedPair, j as float, k as integer, ac as itemContext, ab as itemContextVariables, W as qtiAndMixin } from '../qti-simple-choice-Bil0gmT4.js';
1
+ import { Q as QtiRule, a as QtiRuleBase, b as QtiExpressionBase, c as QtiExpression, B as BaseType, d as QtiConditionExpression, R as ResponseVariable, V as VariableDeclaration, I as ItemContext } from '../qti-simple-choice-CFhbe77e.js';
2
+ export { s as ActiveElementMixin, A as ActiveElementMixinInterface, C as Calculate, m as Cardinality, r as ChoiceInterface, ag as Interaction, e as InteractionChangedDetails, X as MockQtiExpression, M as Multiple, l as Ordered, O as OutcomeChangedDetails, o as OutcomeVariable, W as QtiAnd, p as QtiAssessmentItem, q as QtiAssessmentStimulusRef, ah as QtiAssociableHotspot, $ as QtiAssociateInteraction, N as QtiChoiceInteraction, y as QtiCompanionMaterialsInfo, z as QtiContentBody, a0 as QtiCustomInteraction, af as QtiCustomOperator, a1 as QtiEndAttemptInteraction, H as QtiExtendedTextInteraction, E as QtiFeedbackBlock, F as QtiFeedbackInline, ai as QtiGap, aj as QtiGapImg, a2 as QtiGapMatchInteraction, ak as QtiGapText, a3 as QtiGraphicAssociateInteraction, a4 as QtiGraphicGapMatchInteraction, a5 as QtiGraphicOrderInteraction, al as QtiHotspotChoice, a6 as QtiHotspotInteraction, am as QtiHottext, K as QtiHottextInteraction, an as QtiInlineChoice, L as QtiInlineChoiceInteraction, f as QtiInteractionChanged, t as QtiItemBody, U as QtiLookupOutcomeValue, Z as QtiMapping, a7 as QtiMatchInteraction, a8 as QtiMediaInteraction, G as QtiModalFeedback, a9 as QtiOrderInteraction, g as QtiOutcomeChanged, w as QtiOutcomeDeclaration, P as QtiOutcomeProcessing, S as QtiOutcomeProcessingProcessor, _ as QtiPortableCustomInteraction, aa as QtiPositionObjectStage, u as QtiPrompt, x as QtiResponseDeclaration, T as QtiResponseProcessing, D as QtiRubricBlock, ab as QtiSelectPointInteraction, ao as QtiSimpleAssociableChoice, ap as QtiSimpleChoice, ac as QtiSliderInteraction, v as QtiStylesheet, J as QtiTextEntryInteraction, i as ResponseInteraction, n as VariableValue, h as directedPair, j as float, k as integer, ae as itemContext, ad as itemContextVariables, Y as qtiAndMixin } from '../qti-simple-choice-CFhbe77e.js';
3
3
  import * as lit_html from 'lit-html';
4
4
  import * as lit from 'lit';
5
5
  import { LitElement } from 'lit';