@atom-learning/components 2.1.0 → 2.3.0

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 (117) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/components/accordion/AccordionContent.js +1 -1
  3. package/dist/components/accordion/AccordionItem.js +1 -1
  4. package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
  5. package/dist/components/badge/Badge.js +1 -1
  6. package/dist/components/button/Button.js +1 -1
  7. package/dist/components/calendar/Calendar.js +1 -1
  8. package/dist/components/carousel/CarouselArrows.js +1 -1
  9. package/dist/components/checkbox/Checkbox.js +1 -1
  10. package/dist/components/chip/Chip.d.ts +1898 -0
  11. package/dist/components/chip/Chip.js +1 -0
  12. package/dist/components/chip/ChipGroup.d.ts +7 -0
  13. package/dist/components/chip/ChipGroup.js +1 -0
  14. package/dist/components/chip/index.d.ts +2 -0
  15. package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +553 -0
  16. package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.js +1 -0
  17. package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.d.ts +6 -0
  18. package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.js +1 -0
  19. package/dist/components/chip-dismissible-group/index.d.ts +7 -0
  20. package/dist/components/chip-dismissible-group/index.js +1 -0
  21. package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +551 -0
  22. package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -0
  23. package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +563 -0
  24. package/dist/components/chip-toggle-group/ChipToggleGroupRoot.js +1 -0
  25. package/dist/components/chip-toggle-group/index.d.ts +7 -0
  26. package/dist/components/chip-toggle-group/index.js +1 -0
  27. package/dist/components/combobox/Combobox.js +1 -1
  28. package/dist/components/dialog/DialogContent.js +1 -1
  29. package/dist/components/dismissible/DismissibleRoot.d.ts +17 -0
  30. package/dist/components/dismissible/DismissibleRoot.js +1 -0
  31. package/dist/components/dismissible/DismissibleTrigger.d.ts +5 -0
  32. package/dist/components/dismissible/DismissibleTrigger.js +1 -0
  33. package/dist/components/dismissible/index.d.ts +7 -0
  34. package/dist/components/dismissible/index.js +1 -0
  35. package/dist/components/dismissible-group/DismissibleGroupItem.d.ts +6 -0
  36. package/dist/components/dismissible-group/DismissibleGroupItem.js +1 -0
  37. package/dist/components/dismissible-group/DismissibleGroupRoot.d.ts +15 -0
  38. package/dist/components/dismissible-group/DismissibleGroupRoot.js +1 -0
  39. package/dist/components/dismissible-group/index.d.ts +9 -0
  40. package/dist/components/dismissible-group/index.js +1 -0
  41. package/dist/components/divider/Divider.js +1 -1
  42. package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +1 -1
  43. package/dist/components/field-wrapper/FieldDescription.js +1 -1
  44. package/dist/components/field-wrapper/FieldWrapper.js +1 -1
  45. package/dist/components/field-wrapper/InlineFieldWrapper.js +1 -1
  46. package/dist/components/file-input/FileInput.js +1 -1
  47. package/dist/components/grid/Grid.js +1 -1
  48. package/dist/components/heading/Heading.js +1 -1
  49. package/dist/components/index.d.ts +7 -0
  50. package/dist/components/inline-message/InlineMessage.js +1 -1
  51. package/dist/components/label/Label.js +1 -1
  52. package/dist/components/link/Link.js +1 -1
  53. package/dist/components/markdown-content/MarkdownContent.js +1 -1
  54. package/dist/components/markdown-content/components/MarkdownCode.js +1 -1
  55. package/dist/components/markdown-content/components/MarkdownEmphasis.js +1 -1
  56. package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
  57. package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
  58. package/dist/components/markdown-content/components/MarkdownLink.js +1 -1
  59. package/dist/components/markdown-content/components/MarkdownListItem.js +1 -1
  60. package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -1
  61. package/dist/components/markdown-content/components/MarkdownStrong.js +1 -1
  62. package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
  63. package/dist/components/navigation/NavigationMenu.d.ts +15 -0
  64. package/dist/components/navigation/NavigationMenu.js +1 -0
  65. package/dist/components/navigation/NavigationMenuContext.d.ts +7 -0
  66. package/dist/components/navigation/NavigationMenuContext.js +1 -0
  67. package/dist/components/navigation/NavigationMenuDropdown.d.ts +7 -0
  68. package/dist/components/navigation/NavigationMenuDropdown.js +1 -0
  69. package/dist/components/navigation/NavigationMenuItem.d.ts +287 -0
  70. package/dist/components/navigation/NavigationMenuItem.js +1 -0
  71. package/dist/components/navigation/index.d.ts +1 -0
  72. package/dist/components/notification-badge/NotificationBadge.js +1 -1
  73. package/dist/components/radio-button-field/RadioButtonField.js +1 -1
  74. package/dist/components/radio-card/RadioCardGroup.js +1 -1
  75. package/dist/components/search-input/SearchInput.js +1 -1
  76. package/dist/components/slider-field/SliderField.js +1 -1
  77. package/dist/components/stack/Stack.d.ts +2 -1
  78. package/dist/components/stack/Stack.js +1 -1
  79. package/dist/components/stack-content/StackContent.js +1 -1
  80. package/dist/components/stepper/StepperStepForward.js +1 -1
  81. package/dist/components/stepper/StepperSteps.js +1 -1
  82. package/dist/components/switch/Switch.js +1 -1
  83. package/dist/components/table/TableBody.js +1 -1
  84. package/dist/components/table/TableHeader.js +1 -1
  85. package/dist/components/tabs/TabTrigger.js +1 -1
  86. package/dist/components/tabs/Tabs.js +1 -1
  87. package/dist/components/tabs/utils.js +1 -1
  88. package/dist/components/toast/Toast.js +1 -1
  89. package/dist/components/toast/ToastProvider.js +1 -1
  90. package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
  91. package/dist/components/top-bar/TopBar.d.ts +17 -0
  92. package/dist/components/top-bar/TopBar.js +1 -0
  93. package/dist/components/top-bar/TopBarActionIcon.d.ts +8 -0
  94. package/dist/components/top-bar/TopBarActionIcon.js +1 -0
  95. package/dist/components/top-bar/TopBarBrand.d.ts +814 -0
  96. package/dist/components/top-bar/TopBarBrand.js +1 -0
  97. package/dist/components/top-bar/index.d.ts +1 -0
  98. package/dist/constants/zIndices.d.ts +3 -0
  99. package/dist/constants/zIndices.js +1 -0
  100. package/dist/docgen.json +1 -1
  101. package/dist/docs/Chip.mdx +118 -0
  102. package/dist/docs/ChipDismissibleGroup.mdx +33 -0
  103. package/dist/docs/ChipToggleGroup.mdx +27 -0
  104. package/dist/docs/Dismissible.mdx +48 -0
  105. package/dist/docs/DismissibleGroup.mdx +29 -0
  106. package/dist/docs/NavigationMenu.mdx +113 -0
  107. package/dist/docs/TopBar.mdx +59 -0
  108. package/dist/index.cjs.js +1 -1
  109. package/dist/index.js +1 -1
  110. package/dist/utilities/hooks/useCallbackRef.js +1 -1
  111. package/dist/utilities/hooks/useScrollPosition.d.ts +4 -0
  112. package/dist/utilities/hooks/useScrollPosition.js +1 -0
  113. package/dist/utilities/override-stitches-variant-value/overrideStitchesVariantValue.d.ts +1 -0
  114. package/dist/utilities/override-stitches-variant-value/overrideStitchesVariantValue.js +1 -0
  115. package/package.json +3 -1
  116. package/dist/constants/dialog.d.ts +0 -1
  117. package/dist/constants/dialog.js +0 -1
@@ -0,0 +1 @@
1
+ import*as e from"react";import{Box as x}from"../box/Box.js";import{Flex as z}from"../flex/Flex.js";import{Icon as d}from"../icon/Icon.js";import{textVariantSize as a}from"../text/Text.js";import{styled as m}from"../../stitches.js";import{overrideStitchesVariantValue as g}from"../../utilities/override-stitches-variant-value/overrideStitchesVariantValue.js";const c={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},h=m("span",{display:"inline-flex",alignItems:"center",px:"$1",flexGrow:1,...c,"& > *:not(:last-child)":{mr:"$1"}}),$={sm:"sm",md:"sm",lg:"md"},y=m(d,{flexShrink:0}),l=({...r})=>{const i=e.useContext(p),{size:t}=i,n=e.useMemo(()=>g(t,o=>$[o]),[t]);return e.createElement(y,{...r,size:n})},u=({children:r,...i})=>{const t=e.Children.toArray(r),n=t.length<=1;return e.createElement(h,{...i},t.map(o=>!n&&typeof o=="string"?e.createElement(x,{as:"span",css:c,key:o},o):e.isValidElement(o)&&o.type===d?e.createElement(l,{...o.props}):o))},f=m(z,{px:"$2",border:"1px solid",borderRadius:"$0",alignItems:"center",fontFamily:"$body",maxWidth:"100%",borderColor:"$primary",color:"$primaryMid",bg:"$primaryLight","&[data-disabled]":{opacity:"0.3",pointerEvents:"none"},variants:{size:{sm:{height:"$2",...a({applyCapsize:!0}).sm},md:{height:"$3",...a({applyCapsize:!0}).sm},lg:{height:"$4",...a({applyCapsize:!0}).md}}}}),p=e.createContext({}),C=({size:r,children:i})=>{const t=e.useMemo(()=>({size:r}),[r]);return e.createElement(p.Provider,{value:t},i)},E=e.forwardRef(({asWorkaround:r,size:i="md",...t},n)=>e.createElement(C,{size:i},e.createElement(f,{ref:n,as:r,size:i,...t}))),s=E;s.Content=u,s.Icon=l,s.displayName="Chip";export{s as Chip,l as ChipIcon,p as ChipRootContext,C as ChipRootProvider,h as StyledChipContent,y as StyledChipIcon,f as StyledRoot};
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { Stack } from '../../components/stack';
3
+ declare type TChipGroupProps = {
4
+ gap: 1 | 2 | 3;
5
+ };
6
+ export declare const ChipGroup: React.ForwardRefExoticComponent<TChipGroupProps & React.ComponentProps<typeof Stack>>;
7
+ export {};
@@ -0,0 +1 @@
1
+ import*as r from"react";import{Stack as a}from"../stack/Stack.js";const p=r.forwardRef(({gap:o=2,...e},t)=>r.createElement(a,{ref:t,direction:"row",gap:o,align:!1,...e}));export{p as ChipGroup};
@@ -0,0 +1,2 @@
1
+ export { Chip } from './Chip';
2
+ export { ChipGroup } from './ChipGroup';
@@ -0,0 +1,553 @@
1
+ import * as React from 'react';
2
+ import { DismissibleGroup } from '../../components/dismissible-group';
3
+ declare const StyledChipDismissibleGroupItem: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("../chip/Chip").TChipRootProps> & {
4
+ Content: ({ children, ...rest }: {
5
+ [x: string]: any;
6
+ children: any;
7
+ }) => JSX.Element;
8
+ Icon: React.FC<Omit<Omit<Pick<React.SVGProps<SVGSVGElement>, "string" | "clipPath" | "color" | "cursor" | "direction" | "display" | "filter" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "mask" | "offset" | "overflow" | "textDecoration" | "alignmentBaseline" | "baselineShift" | "clip" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "local" | "media" | "onBlur" | "onChange" | "onSubmit" | "style" | "path" | "key" | "method" | "name" | "target" | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "mode" | "min" | "max" | "end" | "x" | "y" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "type" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
9
+ ref?: ((instance: SVGSVGElement | null) => void) | React.RefObject<SVGSVGElement> | null | undefined;
10
+ }, "size" | "css"> & import("@stitches/react/types/styled-component").TransformProps<{
11
+ size?: "sm" | "md" | "lg" | undefined;
12
+ }, {
13
+ sm: string;
14
+ md: string;
15
+ lg: string;
16
+ xl: string;
17
+ reducedMotion: string;
18
+ allowMotion: string;
19
+ hover: string;
20
+ }> & {
21
+ css?: import("@stitches/react/types/css-util").CSS<{
22
+ sm: string;
23
+ md: string;
24
+ lg: string;
25
+ xl: string;
26
+ reducedMotion: string;
27
+ allowMotion: string;
28
+ hover: string;
29
+ }, {
30
+ colors: {
31
+ textForeground: any;
32
+ textSubtle: any;
33
+ textPlaceholder: any;
34
+ background: any;
35
+ backgroundAccent: any;
36
+ tonal50: any;
37
+ tonal100: any;
38
+ tonal200: any;
39
+ tonal300: any;
40
+ tonal400: any;
41
+ tonal500: any;
42
+ tonal600: any;
43
+ alpha100: any;
44
+ alpha150: any;
45
+ alpha200: any;
46
+ alpha250: any;
47
+ alpha600: any;
48
+ primaryLight: any;
49
+ primary: any;
50
+ primaryMid: any;
51
+ primaryDark: any;
52
+ secondary: any;
53
+ brandRed: any;
54
+ brandRedAccent: any;
55
+ brandGreen: any;
56
+ brandGreenAccent: any;
57
+ brandPurple: any;
58
+ brandPurpleAccent: any;
59
+ brandYellow: any;
60
+ brandYellowAccent: any;
61
+ successLight: any;
62
+ success: any;
63
+ successMid: any;
64
+ successDark: any;
65
+ dangerLight: any;
66
+ danger: any;
67
+ dangerMid: any;
68
+ dangerDark: any;
69
+ warningLight: any;
70
+ warning: any;
71
+ warningMid: any;
72
+ warningDark: any;
73
+ warningText: any;
74
+ subjectEnglish: any;
75
+ subjectMaths: any;
76
+ subjectScience: any;
77
+ subjectVerbalReasoning: any;
78
+ subjectNonVerbalReasoning: any;
79
+ subjectCreativeWriting: any;
80
+ subjectExamSkills: any;
81
+ };
82
+ space: {
83
+ "0": any;
84
+ "1": any;
85
+ "2": any;
86
+ "3": any;
87
+ "4": any;
88
+ "5": any;
89
+ "6": any;
90
+ "7": any;
91
+ "8": any;
92
+ "9": any;
93
+ };
94
+ fontSizes: {
95
+ xs: any;
96
+ sm: any;
97
+ md: any;
98
+ lg: any;
99
+ xl: any;
100
+ "2xl": any;
101
+ "3xl": any;
102
+ "4xl": any;
103
+ };
104
+ fonts: {
105
+ sans: any;
106
+ mono: any;
107
+ display: any;
108
+ body: any;
109
+ };
110
+ sizes: {
111
+ "0": any;
112
+ "1": any;
113
+ "2": any;
114
+ "3": any;
115
+ "4": any;
116
+ "5": any;
117
+ "6": any;
118
+ "7": any;
119
+ "8": any;
120
+ };
121
+ radii: {
122
+ "0": any;
123
+ "1": any;
124
+ "2": any;
125
+ "3": any;
126
+ round: any;
127
+ };
128
+ shadows: {
129
+ "0": any;
130
+ "1": any;
131
+ "2": any;
132
+ "3": any;
133
+ };
134
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
135
+ bg: (value: {
136
+ readonly [$$PropertyValue]: "background";
137
+ }) => {
138
+ background: {
139
+ readonly [$$PropertyValue]: "background";
140
+ };
141
+ };
142
+ inset: (value: string | number | {
143
+ readonly [$$ScaleValue]: "space";
144
+ }) => {
145
+ top: string | number | {
146
+ readonly [$$ScaleValue]: "space";
147
+ };
148
+ right: string | number | {
149
+ readonly [$$ScaleValue]: "space";
150
+ };
151
+ bottom: string | number | {
152
+ readonly [$$ScaleValue]: "space";
153
+ };
154
+ left: string | number | {
155
+ readonly [$$ScaleValue]: "space";
156
+ };
157
+ };
158
+ size: (value: string | number | {
159
+ readonly [$$ScaleValue]: "size";
160
+ }) => {
161
+ height: string | number | {
162
+ readonly [$$ScaleValue]: "size";
163
+ };
164
+ width: string | number | {
165
+ readonly [$$ScaleValue]: "size";
166
+ };
167
+ };
168
+ p: (value: string | number | {
169
+ readonly [$$ScaleValue]: "space";
170
+ }) => {
171
+ padding: string | number | {
172
+ readonly [$$ScaleValue]: "space";
173
+ };
174
+ };
175
+ pt: (value: string | number | {
176
+ readonly [$$ScaleValue]: "space";
177
+ }) => {
178
+ paddingTop: string | number | {
179
+ readonly [$$ScaleValue]: "space";
180
+ };
181
+ };
182
+ pr: (value: string | number | {
183
+ readonly [$$ScaleValue]: "space";
184
+ }) => {
185
+ paddingRight: string | number | {
186
+ readonly [$$ScaleValue]: "space";
187
+ };
188
+ };
189
+ pb: (value: string | number | {
190
+ readonly [$$ScaleValue]: "space";
191
+ }) => {
192
+ paddingBottom: string | number | {
193
+ readonly [$$ScaleValue]: "space";
194
+ };
195
+ };
196
+ pl: (value: string | number | {
197
+ readonly [$$ScaleValue]: "space";
198
+ }) => {
199
+ paddingLeft: string | number | {
200
+ readonly [$$ScaleValue]: "space";
201
+ };
202
+ };
203
+ px: (value: string | number | {
204
+ readonly [$$ScaleValue]: "space";
205
+ }) => {
206
+ paddingLeft: string | number | {
207
+ readonly [$$ScaleValue]: "space";
208
+ };
209
+ paddingRight: string | number | {
210
+ readonly [$$ScaleValue]: "space";
211
+ };
212
+ };
213
+ py: (value: string | number | {
214
+ readonly [$$ScaleValue]: "space";
215
+ }) => {
216
+ paddingTop: string | number | {
217
+ readonly [$$ScaleValue]: "space";
218
+ };
219
+ paddingBottom: string | number | {
220
+ readonly [$$ScaleValue]: "space";
221
+ };
222
+ };
223
+ m: (value: string | number | {
224
+ readonly [$$ScaleValue]: "space";
225
+ }) => {
226
+ margin: string | number | {
227
+ readonly [$$ScaleValue]: "space";
228
+ };
229
+ };
230
+ mt: (value: string | number | {
231
+ readonly [$$ScaleValue]: "space";
232
+ }) => {
233
+ marginTop: string | number | {
234
+ readonly [$$ScaleValue]: "space";
235
+ };
236
+ };
237
+ mr: (value: string | number | {
238
+ readonly [$$ScaleValue]: "space";
239
+ }) => {
240
+ marginRight: string | number | {
241
+ readonly [$$ScaleValue]: "space";
242
+ };
243
+ };
244
+ mb: (value: string | number | {
245
+ readonly [$$ScaleValue]: "space";
246
+ }) => {
247
+ marginBottom: string | number | {
248
+ readonly [$$ScaleValue]: "space";
249
+ };
250
+ };
251
+ ml: (value: string | number | {
252
+ readonly [$$ScaleValue]: "space";
253
+ }) => {
254
+ marginLeft: string | number | {
255
+ readonly [$$ScaleValue]: "space";
256
+ };
257
+ };
258
+ mx: (value: string | number | {
259
+ readonly [$$ScaleValue]: "space";
260
+ }) => {
261
+ marginLeft: string | number | {
262
+ readonly [$$ScaleValue]: "space";
263
+ };
264
+ marginRight: string | number | {
265
+ readonly [$$ScaleValue]: "space";
266
+ };
267
+ };
268
+ my: (value: string | number | {
269
+ readonly [$$ScaleValue]: "space";
270
+ }) => {
271
+ marginTop: string | number | {
272
+ readonly [$$ScaleValue]: "space";
273
+ };
274
+ marginBottom: string | number | {
275
+ readonly [$$ScaleValue]: "space";
276
+ };
277
+ };
278
+ }> | undefined;
279
+ }, "is" | "as"> & {
280
+ is: React.FC<React.SVGProps<SVGSVGElement>>;
281
+ as?: undefined;
282
+ }>;
283
+ }, {}, {
284
+ sm: string;
285
+ md: string;
286
+ lg: string;
287
+ xl: string;
288
+ reducedMotion: string;
289
+ allowMotion: string;
290
+ hover: string;
291
+ }, import("@stitches/react/types/css-util").CSS<{
292
+ sm: string;
293
+ md: string;
294
+ lg: string;
295
+ xl: string;
296
+ reducedMotion: string;
297
+ allowMotion: string;
298
+ hover: string;
299
+ }, {
300
+ colors: {
301
+ textForeground: any;
302
+ textSubtle: any;
303
+ textPlaceholder: any;
304
+ background: any;
305
+ backgroundAccent: any;
306
+ tonal50: any;
307
+ tonal100: any;
308
+ tonal200: any;
309
+ tonal300: any;
310
+ tonal400: any;
311
+ tonal500: any;
312
+ tonal600: any;
313
+ alpha100: any;
314
+ alpha150: any;
315
+ alpha200: any;
316
+ alpha250: any;
317
+ alpha600: any;
318
+ primaryLight: any;
319
+ primary: any;
320
+ primaryMid: any;
321
+ primaryDark: any;
322
+ secondary: any;
323
+ brandRed: any;
324
+ brandRedAccent: any;
325
+ brandGreen: any;
326
+ brandGreenAccent: any;
327
+ brandPurple: any;
328
+ brandPurpleAccent: any;
329
+ brandYellow: any;
330
+ brandYellowAccent: any;
331
+ successLight: any;
332
+ success: any;
333
+ successMid: any;
334
+ successDark: any;
335
+ dangerLight: any;
336
+ danger: any;
337
+ dangerMid: any;
338
+ dangerDark: any;
339
+ warningLight: any;
340
+ warning: any;
341
+ warningMid: any;
342
+ warningDark: any;
343
+ warningText: any;
344
+ subjectEnglish: any;
345
+ subjectMaths: any;
346
+ subjectScience: any;
347
+ subjectVerbalReasoning: any;
348
+ subjectNonVerbalReasoning: any;
349
+ subjectCreativeWriting: any;
350
+ subjectExamSkills: any;
351
+ };
352
+ space: {
353
+ "0": any;
354
+ "1": any;
355
+ "2": any;
356
+ "3": any;
357
+ "4": any;
358
+ "5": any;
359
+ "6": any;
360
+ "7": any;
361
+ "8": any;
362
+ "9": any;
363
+ };
364
+ fontSizes: {
365
+ xs: any;
366
+ sm: any;
367
+ md: any;
368
+ lg: any;
369
+ xl: any;
370
+ "2xl": any;
371
+ "3xl": any;
372
+ "4xl": any;
373
+ };
374
+ fonts: {
375
+ sans: any;
376
+ mono: any;
377
+ display: any;
378
+ body: any;
379
+ };
380
+ sizes: {
381
+ "0": any;
382
+ "1": any;
383
+ "2": any;
384
+ "3": any;
385
+ "4": any;
386
+ "5": any;
387
+ "6": any;
388
+ "7": any;
389
+ "8": any;
390
+ };
391
+ radii: {
392
+ "0": any;
393
+ "1": any;
394
+ "2": any;
395
+ "3": any;
396
+ round: any;
397
+ };
398
+ shadows: {
399
+ "0": any;
400
+ "1": any;
401
+ "2": any;
402
+ "3": any;
403
+ };
404
+ }, import("@stitches/react/types/config").DefaultThemeMap, {
405
+ bg: (value: {
406
+ readonly [$$PropertyValue]: "background";
407
+ }) => {
408
+ background: {
409
+ readonly [$$PropertyValue]: "background";
410
+ };
411
+ };
412
+ inset: (value: string | number | {
413
+ readonly [$$ScaleValue]: "space";
414
+ }) => {
415
+ top: string | number | {
416
+ readonly [$$ScaleValue]: "space";
417
+ };
418
+ right: string | number | {
419
+ readonly [$$ScaleValue]: "space";
420
+ };
421
+ bottom: string | number | {
422
+ readonly [$$ScaleValue]: "space";
423
+ };
424
+ left: string | number | {
425
+ readonly [$$ScaleValue]: "space";
426
+ };
427
+ };
428
+ size: (value: string | number | {
429
+ readonly [$$ScaleValue]: "size";
430
+ }) => {
431
+ height: string | number | {
432
+ readonly [$$ScaleValue]: "size";
433
+ };
434
+ width: string | number | {
435
+ readonly [$$ScaleValue]: "size";
436
+ };
437
+ };
438
+ p: (value: string | number | {
439
+ readonly [$$ScaleValue]: "space";
440
+ }) => {
441
+ padding: string | number | {
442
+ readonly [$$ScaleValue]: "space";
443
+ };
444
+ };
445
+ pt: (value: string | number | {
446
+ readonly [$$ScaleValue]: "space";
447
+ }) => {
448
+ paddingTop: string | number | {
449
+ readonly [$$ScaleValue]: "space";
450
+ };
451
+ };
452
+ pr: (value: string | number | {
453
+ readonly [$$ScaleValue]: "space";
454
+ }) => {
455
+ paddingRight: string | number | {
456
+ readonly [$$ScaleValue]: "space";
457
+ };
458
+ };
459
+ pb: (value: string | number | {
460
+ readonly [$$ScaleValue]: "space";
461
+ }) => {
462
+ paddingBottom: string | number | {
463
+ readonly [$$ScaleValue]: "space";
464
+ };
465
+ };
466
+ pl: (value: string | number | {
467
+ readonly [$$ScaleValue]: "space";
468
+ }) => {
469
+ paddingLeft: string | number | {
470
+ readonly [$$ScaleValue]: "space";
471
+ };
472
+ };
473
+ px: (value: string | number | {
474
+ readonly [$$ScaleValue]: "space";
475
+ }) => {
476
+ paddingLeft: string | number | {
477
+ readonly [$$ScaleValue]: "space";
478
+ };
479
+ paddingRight: string | number | {
480
+ readonly [$$ScaleValue]: "space";
481
+ };
482
+ };
483
+ py: (value: string | number | {
484
+ readonly [$$ScaleValue]: "space";
485
+ }) => {
486
+ paddingTop: string | number | {
487
+ readonly [$$ScaleValue]: "space";
488
+ };
489
+ paddingBottom: string | number | {
490
+ readonly [$$ScaleValue]: "space";
491
+ };
492
+ };
493
+ m: (value: string | number | {
494
+ readonly [$$ScaleValue]: "space";
495
+ }) => {
496
+ margin: string | number | {
497
+ readonly [$$ScaleValue]: "space";
498
+ };
499
+ };
500
+ mt: (value: string | number | {
501
+ readonly [$$ScaleValue]: "space";
502
+ }) => {
503
+ marginTop: string | number | {
504
+ readonly [$$ScaleValue]: "space";
505
+ };
506
+ };
507
+ mr: (value: string | number | {
508
+ readonly [$$ScaleValue]: "space";
509
+ }) => {
510
+ marginRight: string | number | {
511
+ readonly [$$ScaleValue]: "space";
512
+ };
513
+ };
514
+ mb: (value: string | number | {
515
+ readonly [$$ScaleValue]: "space";
516
+ }) => {
517
+ marginBottom: string | number | {
518
+ readonly [$$ScaleValue]: "space";
519
+ };
520
+ };
521
+ ml: (value: string | number | {
522
+ readonly [$$ScaleValue]: "space";
523
+ }) => {
524
+ marginLeft: string | number | {
525
+ readonly [$$ScaleValue]: "space";
526
+ };
527
+ };
528
+ mx: (value: string | number | {
529
+ readonly [$$ScaleValue]: "space";
530
+ }) => {
531
+ marginLeft: string | number | {
532
+ readonly [$$ScaleValue]: "space";
533
+ };
534
+ marginRight: string | number | {
535
+ readonly [$$ScaleValue]: "space";
536
+ };
537
+ };
538
+ my: (value: string | number | {
539
+ readonly [$$ScaleValue]: "space";
540
+ }) => {
541
+ marginTop: string | number | {
542
+ readonly [$$ScaleValue]: "space";
543
+ };
544
+ marginBottom: string | number | {
545
+ readonly [$$ScaleValue]: "space";
546
+ };
547
+ };
548
+ }>>;
549
+ export declare type TChipDismissibleGroupItem = React.ComponentProps<typeof DismissibleGroup.Item> & React.ComponentProps<typeof StyledChipDismissibleGroupItem> & {
550
+ dismissActionLabel: string;
551
+ };
552
+ export declare const ChipDismissibleGroupItem: React.FC<TChipDismissibleGroupItem>;
553
+ export {};
@@ -0,0 +1 @@
1
+ import*as e from"react";import{styled as l}from"../../stitches.js";import{Chip as i}from"../chip/Chip.js";import"../chip/ChipGroup.js";import{DismissibleGroup as m}from"../dismissible-group/index.js";import{ActionIcon as n}from"../action-icon/ActionIcon.js";import{Icon as c}from"../icon/Icon.js";import{Close as p}from"@atom-learning/icons";const a=l(i,{px:"$1"}),f=({size:t="md",children:o,dismissActionLabel:r="Dismiss",...s})=>e.createElement(m.Item,{asChild:!0,...s},e.createElement(a,{size:t},e.createElement(i.Content,null,o),e.createElement(m.Trigger,{asChild:!0},e.createElement(n,{label:r,css:{color:"$tonal200"},size:t==="sm"?"xs":"sm"},e.createElement(c,{is:p})))));export{f as ChipDismissibleGroupItem};
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import { ChipGroup } from '../../components/chip';
3
+ import { DismissibleGroup } from '../../components/dismissible-group';
4
+ declare type TChipDismissibleGroupRootProps = React.ComponentProps<typeof ChipGroup> & React.ComponentProps<typeof DismissibleGroup>;
5
+ export declare const ChipDismissibleGroupRoot: React.ForwardRefExoticComponent<Pick<TChipDismissibleGroupRootProps, "direction" | "gap" | "css" | "key" | "wrap" | "justify" | keyof React.HTMLAttributes<HTMLDivElement> | "align" | keyof import("../dismissible-group/DismissibleGroupRoot").IDismissibleGroupRootProps> & React.RefAttributes<HTMLDivElement>>;
6
+ export {};
@@ -0,0 +1 @@
1
+ import*as o from"react";import"../chip/Chip.js";import{ChipGroup as m}from"../chip/ChipGroup.js";import{DismissibleGroup as p}from"../dismissible-group/index.js";const e=o.forwardRef((r,i)=>o.createElement(m,{as:p,ref:i,...r}));export{e as ChipDismissibleGroupRoot};
@@ -0,0 +1,7 @@
1
+ import { ChipDismissibleGroupItem } from './ChipDismissibleGroupItem';
2
+ import { ChipDismissibleGroupRoot } from './ChipDismissibleGroupRoot';
3
+ declare type TChipDismissibleGroup = typeof ChipDismissibleGroupRoot & {
4
+ Item: typeof ChipDismissibleGroupItem;
5
+ };
6
+ export declare const ChipDismissibleGroup: TChipDismissibleGroup;
7
+ export {};
@@ -0,0 +1 @@
1
+ import{ChipDismissibleGroupItem as s}from"./ChipDismissibleGroupItem.js";import{ChipDismissibleGroupRoot as o}from"./ChipDismissibleGroupRoot.js";const i=o;i.Item=s,i.displayName="ChipDismissibleGroup";export{i as ChipDismissibleGroup};