@atom-learning/components 5.15.0 → 5.15.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
## [5.15.1](https://github.com/Atom-Learning/components/compare/v5.15.0...v5.15.1) (2026-01-28)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* toggle group modern text color ([2006801](https://github.com/Atom-Learning/components/commit/2006801e3c936ebe2713515267572da714910c07))
|
|
7
7
|
|
|
8
8
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
9
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as r from"@radix-ui/react-toggle-group";import{styled as e}from"../../stitches.js";const o=e(r.Item,{cursor:"pointer","&[disabled]":{opacity:.3,cursor:"not-allowed"},variants:{theme:{standard:{bg:"white",color:"$grey800",border:"1px solid $grey600","&::before":{background:"$grey600"},"&:not([disabled])":{'&:hover, &:focus-visible, &[data-state="on"]':{"&::before":{background:"none"}},"&:hover":{borderColor:"currentColor !important",color:"$primary900"},"&:focus-visible":{outline:"none",position:"relative",zIndex:1,boxShadow:"white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px",'&[data-state="off"]':{borderColor:"$grey600 !important"},'&[data-state="on"]':{boxShadow:"inset currentColor 0px 0px 0px 1px, white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px"}}},'&[data-state="on"]':{color:"$primary800",borderColor:"currentColor !important",boxShadow:"inset currentColor 0px 0px 0px 1px"}},modern:{bg:"$grey200",borderRadius:"$1",overflow:"hidden",border:"0","&:not([disabled])":{"&:hover":{color:"$primary900"},"&:focus-visible":{outline:"none",position:"relative",zIndex:1,boxShadow:"white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px",'&[data-state="off"]':{borderColor:"$grey600 !important"},'&[data-state="on"]':{boxShadow:"inset currentColor 0px 0px 0px 1px white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px"}}},'&[data-state="on"]':{color:"$
|
|
1
|
+
import*as r from"@radix-ui/react-toggle-group";import{styled as e}from"../../stitches.js";const o=e(r.Item,{cursor:"pointer","&[disabled]":{opacity:.3,cursor:"not-allowed"},variants:{theme:{standard:{bg:"white",color:"$grey800",border:"1px solid $grey600","&::before":{background:"$grey600"},"&:not([disabled])":{'&:hover, &:focus-visible, &[data-state="on"]':{"&::before":{background:"none"}},"&:hover":{borderColor:"currentColor !important",color:"$primary900"},"&:focus-visible":{outline:"none",position:"relative",zIndex:1,boxShadow:"white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px",'&[data-state="off"]':{borderColor:"$grey600 !important"},'&[data-state="on"]':{boxShadow:"inset currentColor 0px 0px 0px 1px, white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px"}}},'&[data-state="on"]':{color:"$primary800",borderColor:"currentColor !important",boxShadow:"inset currentColor 0px 0px 0px 1px"}},modern:{bg:"$grey200",borderRadius:"$1",color:"$grey800",overflow:"hidden",border:"0","&:not([disabled])":{"&:hover":{color:"$primary900"},"&:focus-visible":{outline:"none",position:"relative",zIndex:1,boxShadow:"white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px",'&[data-state="off"]':{borderColor:"$grey600 !important"},'&[data-state="on"]':{boxShadow:"inset currentColor 0px 0px 0px 1px white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px"}}},'&[data-state="on"]':{color:"$grey900",border:"1px solid $grey200 !important",bg:"white",boxShadow:"none !important"}}}}}),t=o;export{o as StyledItem,t as ToggleGroupItem};
|
|
2
2
|
//# sourceMappingURL=ToggleGroupItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleGroupItem.js","sources":["../../../src/components/toggle-group/ToggleGroupItem.tsx"],"sourcesContent":["import * as ToggleGroup from '@radix-ui/react-toggle-group'\n\nimport { styled } from '~/stitches'\n\nexport const StyledItem = styled(ToggleGroup.Item, {\n cursor: 'pointer',\n '&[disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n variants: {\n theme: {\n standard: {\n bg: 'white',\n color: '$grey800',\n border: '1px solid $grey600',\n '&::before': {\n background: '$grey600'\n },\n '&:not([disabled])': {\n '&:hover, &:focus-visible, &[data-state=\"on\"]': {\n '&::before': {\n background: 'none'\n }\n },\n '&:hover': {\n borderColor: 'currentColor !important',\n color: '$primary900'\n },\n '&:focus-visible': {\n outline: 'none',\n position: 'relative',\n zIndex: 1,\n boxShadow: `white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px`,\n '&[data-state=\"off\"]': {\n borderColor: '$grey600 !important'\n },\n '&[data-state=\"on\"]': {\n boxShadow: `inset currentColor 0px 0px 0px 1px, white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px`\n }\n }\n },\n '&[data-state=\"on\"]': {\n color: '$primary800',\n borderColor: 'currentColor !important',\n boxShadow: 'inset currentColor 0px 0px 0px 1px'\n }\n },\n modern: {\n bg: '$grey200',\n borderRadius: '$1',\n overflow: 'hidden',\n border: '0',\n '&:not([disabled])': {\n '&:hover': {\n color: '$primary900'\n },\n '&:focus-visible': {\n outline: 'none',\n position: 'relative',\n zIndex: 1,\n boxShadow: `white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px`,\n '&[data-state=\"off\"]': {\n borderColor: '$grey600 !important'\n },\n '&[data-state=\"on\"]': {\n boxShadow: `inset currentColor 0px 0px 0px 1px white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px`\n }\n }\n },\n '&[data-state=\"on\"]': {\n color: '$
|
|
1
|
+
{"version":3,"file":"ToggleGroupItem.js","sources":["../../../src/components/toggle-group/ToggleGroupItem.tsx"],"sourcesContent":["import * as ToggleGroup from '@radix-ui/react-toggle-group'\n\nimport { styled } from '~/stitches'\n\nexport const StyledItem = styled(ToggleGroup.Item, {\n cursor: 'pointer',\n '&[disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n variants: {\n theme: {\n standard: {\n bg: 'white',\n color: '$grey800',\n border: '1px solid $grey600',\n '&::before': {\n background: '$grey600'\n },\n '&:not([disabled])': {\n '&:hover, &:focus-visible, &[data-state=\"on\"]': {\n '&::before': {\n background: 'none'\n }\n },\n '&:hover': {\n borderColor: 'currentColor !important',\n color: '$primary900'\n },\n '&:focus-visible': {\n outline: 'none',\n position: 'relative',\n zIndex: 1,\n boxShadow: `white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px`,\n '&[data-state=\"off\"]': {\n borderColor: '$grey600 !important'\n },\n '&[data-state=\"on\"]': {\n boxShadow: `inset currentColor 0px 0px 0px 1px, white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px`\n }\n }\n },\n '&[data-state=\"on\"]': {\n color: '$primary800',\n borderColor: 'currentColor !important',\n boxShadow: 'inset currentColor 0px 0px 0px 1px'\n }\n },\n modern: {\n bg: '$grey200',\n borderRadius: '$1',\n color: '$grey800',\n overflow: 'hidden',\n border: '0',\n '&:not([disabled])': {\n '&:hover': {\n color: '$primary900'\n },\n '&:focus-visible': {\n outline: 'none',\n position: 'relative',\n zIndex: 1,\n boxShadow: `white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px`,\n '&[data-state=\"off\"]': {\n borderColor: '$grey600 !important'\n },\n '&[data-state=\"on\"]': {\n boxShadow: `inset currentColor 0px 0px 0px 1px white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px`\n }\n }\n },\n '&[data-state=\"on\"]': {\n color: '$grey900',\n border: '1px solid $grey200 !important',\n bg: 'white',\n boxShadow: 'none !important'\n }\n }\n }\n }\n})\n\nexport const ToggleGroupItem = StyledItem\n"],"names":["StyledItem","styled","ToggleGroup","ToggleGroupItem"],"mappings":"0FAIO,MAAMA,EAAaC,EAAOC,EAAY,KAAM,CACjD,OAAQ,UACR,cAAe,CACb,QAAS,GACT,OAAQ,aACV,EACA,SAAU,CACR,MAAO,CACL,SAAU,CACR,GAAI,QACJ,MAAO,WACP,OAAQ,qBACR,YAAa,CACX,WAAY,UACd,EACA,oBAAqB,CACnB,+CAAgD,CAC9C,YAAa,CACX,WAAY,MACd,CACF,EACA,UAAW,CACT,YAAa,0BACb,MAAO,aACT,EACA,kBAAmB,CACjB,QAAS,OACT,SAAU,WACV,OAAQ,EACR,UAAW,4DACX,sBAAuB,CACrB,YAAa,qBACf,EACA,qBAAsB,CACpB,UAAW,+FACb,CACF,CACF,EACA,qBAAsB,CACpB,MAAO,cACP,YAAa,0BACb,UAAW,oCACb,CACF,EACA,OAAQ,CACN,GAAI,WACJ,aAAc,KACd,MAAO,WACP,SAAU,SACV,OAAQ,IACR,oBAAqB,CACnB,UAAW,CACT,MAAO,aACT,EACA,kBAAmB,CACjB,QAAS,OACT,SAAU,WACV,OAAQ,EACR,UAAW,4DACX,sBAAuB,CACrB,YAAa,qBACf,EACA,qBAAsB,CACpB,UAAW,8FACb,CACF,CACF,EACA,qBAAsB,CACpB,MAAO,WACP,OAAQ,gCACR,GAAI,QACJ,UAAW,iBACb,CACF,CACF,CACF,CACF,CAAC,EAEYC,EAAkBH"}
|