@atom-learning/components 2.46.0 → 2.48.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.
- package/CHANGELOG.md +3 -14
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionContent.js.map +1 -1
- package/dist/components/accordion/AccordionTrigger.d.ts +2 -2
- package/dist/components/accordion/AccordionTrigger.js +1 -1
- package/dist/components/accordion/AccordionTrigger.js.map +1 -1
- package/dist/components/chip/Chip.d.ts +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/tabs/TabsTrigger.js +1 -1
- package/dist/components/tabs/TabsTrigger.js.map +1 -1
- package/dist/components/tabs/TabsTriggerList.d.ts +2 -2
- package/dist/components/tabs/TabsTriggerList.js +1 -1
- package/dist/components/tabs/TabsTriggerList.js.map +1 -1
- package/dist/components/tile/Tile.d.ts +224 -0
- package/dist/components/tile/Tile.js +2 -0
- package/dist/components/tile/Tile.js.map +1 -0
- package/dist/components/tile/TileGroup.d.ts +227 -0
- package/dist/components/tile/TileGroup.js +2 -0
- package/dist/components/tile/TileGroup.js.map +1 -0
- package/dist/components/tile/TileNoOverflowContainer.d.ts +425 -0
- package/dist/components/tile/TileNoOverflowContainer.js +2 -0
- package/dist/components/tile/TileNoOverflowContainer.js.map +1 -0
- package/dist/components/tile/index.d.ts +7 -0
- package/dist/components/tile/index.js +2 -0
- package/dist/components/tile/index.js.map +1 -0
- package/dist/components/tile-interactive/TileInteractive.d.ts +868 -0
- package/dist/components/tile-interactive/TileInteractive.js +2 -0
- package/dist/components/tile-interactive/TileInteractive.js.map +1 -0
- package/dist/components/tile-interactive/index.d.ts +1 -0
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +656 -0
- package/dist/components/tile-toggle-group/TileToggleGroupItem.js +2 -0
- package/dist/components/tile-toggle-group/TileToggleGroupItem.js.map +1 -0
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.d.ts +453 -0
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.js +2 -0
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.js.map +1 -0
- package/dist/components/tile-toggle-group/index.d.ts +7 -0
- package/dist/components/tile-toggle-group/index.js +2 -0
- package/dist/components/tile-toggle-group/index.js.map +1 -0
- package/dist/components/toggle-group/ToggleGroupRoot.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/experiments/color-scheme/ColorScheme.d.ts +143 -25
- package/dist/experiments/color-scheme/ColorScheme.js +1 -1
- package/dist/experiments/color-scheme/ColorScheme.js.map +1 -1
- package/dist/experiments/color-scheme/index.d.ts +1 -0
- package/dist/experiments/color-scheme/stitches.colorscheme.config.d.ts +33 -242
- package/dist/experiments/color-scheme/stitches.colorscheme.config.js +1 -1
- package/dist/experiments/color-scheme/stitches.colorscheme.config.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/utilities/no-overflow-container/NoOverflowContainer.d.ts +425 -0
- package/dist/utilities/no-overflow-container/NoOverflowContainer.js +2 -0
- package/dist/utilities/no-overflow-container/NoOverflowContainer.js.map +1 -0
- package/dist/utilities/no-overflow-container/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/experiments/color-scheme/blue.json.js +0 -2
- package/dist/experiments/color-scheme/blue.json.js.map +0 -1
- package/dist/experiments/color-scheme/generateAlphaColors.d.ts +0 -1
- package/dist/experiments/color-scheme/generateAlphaColors.js +0 -2
- package/dist/experiments/color-scheme/generateAlphaColors.js.map +0 -1
- package/dist/experiments/color-scheme/slate.json.js +0 -2
- package/dist/experiments/color-scheme/slate.json.js.map +0 -1
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import * as ToggleGroup from '@radix-ui/react-toggle-group';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export declare const TileToggleGroupRoot: React.ForwardRefExoticComponent<(Pick<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, "direction" | "gap" | "css" | "wrap" | "justify" | "align"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
6
|
+
direction?: "row" | "column" | "row-reverse" | undefined;
|
|
7
|
+
wrap?: "wrap" | "wrap-reverse" | "no-wrap" | undefined;
|
|
8
|
+
justify?: boolean | "center" | "false" | "end" | "start" | undefined;
|
|
9
|
+
align?: boolean | "center" | "false" | "end" | "start" | undefined;
|
|
10
|
+
gap?: number | boolean | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "24" | "false" | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
sm: string;
|
|
13
|
+
md: string;
|
|
14
|
+
lg: string;
|
|
15
|
+
xl: string;
|
|
16
|
+
reducedMotion: string;
|
|
17
|
+
allowMotion: string;
|
|
18
|
+
hover: string;
|
|
19
|
+
}> & {
|
|
20
|
+
css?: import("@stitches/react/types/css-util").CSS<{
|
|
21
|
+
sm: string;
|
|
22
|
+
md: string;
|
|
23
|
+
lg: string;
|
|
24
|
+
xl: string;
|
|
25
|
+
reducedMotion: string;
|
|
26
|
+
allowMotion: string;
|
|
27
|
+
hover: string;
|
|
28
|
+
}, {
|
|
29
|
+
colors: {
|
|
30
|
+
textForeground: any;
|
|
31
|
+
textSubtle: any;
|
|
32
|
+
textPlaceholder: any;
|
|
33
|
+
background: any;
|
|
34
|
+
backgroundAccent: any;
|
|
35
|
+
grey100: any;
|
|
36
|
+
grey200: any;
|
|
37
|
+
grey300: any;
|
|
38
|
+
grey400: any;
|
|
39
|
+
grey500: any;
|
|
40
|
+
grey600: any;
|
|
41
|
+
grey700: any;
|
|
42
|
+
grey800: any;
|
|
43
|
+
grey900: any;
|
|
44
|
+
grey1000: any;
|
|
45
|
+
grey1100: any;
|
|
46
|
+
grey1200: any;
|
|
47
|
+
blue100: any;
|
|
48
|
+
blue200: any;
|
|
49
|
+
blue300: any;
|
|
50
|
+
blue400: any;
|
|
51
|
+
blue500: any;
|
|
52
|
+
blue600: any;
|
|
53
|
+
blue700: any;
|
|
54
|
+
blue800: any;
|
|
55
|
+
blue900: any;
|
|
56
|
+
blue1000: any;
|
|
57
|
+
blue1100: any;
|
|
58
|
+
blue1200: any;
|
|
59
|
+
purple100: any;
|
|
60
|
+
purple200: any;
|
|
61
|
+
purple300: any;
|
|
62
|
+
purple400: any;
|
|
63
|
+
purple500: any;
|
|
64
|
+
purple600: any;
|
|
65
|
+
purple700: any;
|
|
66
|
+
purple800: any;
|
|
67
|
+
purple900: any;
|
|
68
|
+
purple1000: any;
|
|
69
|
+
purple1100: any;
|
|
70
|
+
purple1200: any;
|
|
71
|
+
tonal50: any;
|
|
72
|
+
tonal100: any;
|
|
73
|
+
tonal200: any;
|
|
74
|
+
tonal300: any;
|
|
75
|
+
tonal400: any;
|
|
76
|
+
tonal500: any;
|
|
77
|
+
tonal600: any;
|
|
78
|
+
alpha100: any;
|
|
79
|
+
alpha150: any;
|
|
80
|
+
alpha200: any;
|
|
81
|
+
alpha250: any;
|
|
82
|
+
alpha600: any;
|
|
83
|
+
primaryLight: any;
|
|
84
|
+
primary: any;
|
|
85
|
+
primaryMid: any;
|
|
86
|
+
primaryDark: any;
|
|
87
|
+
secondary: any;
|
|
88
|
+
brandRed: any;
|
|
89
|
+
brandRedAccent: any;
|
|
90
|
+
brandGreen: any;
|
|
91
|
+
brandGreenAccent: any;
|
|
92
|
+
brandPurple: any;
|
|
93
|
+
brandPurpleAccent: any;
|
|
94
|
+
brandYellow: any;
|
|
95
|
+
brandYellowAccent: any;
|
|
96
|
+
successLight: any;
|
|
97
|
+
success: any;
|
|
98
|
+
successMid: any;
|
|
99
|
+
successDark: any;
|
|
100
|
+
dangerLight: any;
|
|
101
|
+
danger: any;
|
|
102
|
+
dangerMid: any;
|
|
103
|
+
dangerDark: any;
|
|
104
|
+
warningLight: any;
|
|
105
|
+
warning: any;
|
|
106
|
+
warningMid: any;
|
|
107
|
+
warningDark: any;
|
|
108
|
+
warningText: any;
|
|
109
|
+
subjectEnglish: any;
|
|
110
|
+
subjectMaths: any;
|
|
111
|
+
subjectScience: any;
|
|
112
|
+
subjectVerbalReasoning: any;
|
|
113
|
+
subjectNonVerbalReasoning: any;
|
|
114
|
+
subjectCreativeWriting: any;
|
|
115
|
+
subjectExamSkills: any;
|
|
116
|
+
};
|
|
117
|
+
space: {
|
|
118
|
+
"0": any;
|
|
119
|
+
"1": any;
|
|
120
|
+
"2": any;
|
|
121
|
+
"3": any;
|
|
122
|
+
"4": any;
|
|
123
|
+
"5": any;
|
|
124
|
+
"6": any;
|
|
125
|
+
"7": any;
|
|
126
|
+
"8": any;
|
|
127
|
+
"9": any;
|
|
128
|
+
"24": any;
|
|
129
|
+
};
|
|
130
|
+
fontSizes: {
|
|
131
|
+
xs: any;
|
|
132
|
+
sm: any;
|
|
133
|
+
md: any;
|
|
134
|
+
lg: any;
|
|
135
|
+
xl: any;
|
|
136
|
+
"2xl": any;
|
|
137
|
+
"3xl": any;
|
|
138
|
+
"4xl": any;
|
|
139
|
+
};
|
|
140
|
+
fonts: {
|
|
141
|
+
sans: any;
|
|
142
|
+
mono: any;
|
|
143
|
+
display: any;
|
|
144
|
+
body: any;
|
|
145
|
+
};
|
|
146
|
+
sizes: {
|
|
147
|
+
"0": any;
|
|
148
|
+
"1": any;
|
|
149
|
+
"2": any;
|
|
150
|
+
"3": any;
|
|
151
|
+
"4": any;
|
|
152
|
+
"5": any;
|
|
153
|
+
"6": any;
|
|
154
|
+
"7": any;
|
|
155
|
+
"8": any;
|
|
156
|
+
};
|
|
157
|
+
radii: {
|
|
158
|
+
"0": any;
|
|
159
|
+
"1": any;
|
|
160
|
+
"2": any;
|
|
161
|
+
"3": any;
|
|
162
|
+
round: any;
|
|
163
|
+
};
|
|
164
|
+
shadows: {
|
|
165
|
+
"0": any;
|
|
166
|
+
"1": any;
|
|
167
|
+
"2": any;
|
|
168
|
+
"3": any;
|
|
169
|
+
};
|
|
170
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
171
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
172
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
173
|
+
};
|
|
174
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
175
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
176
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
177
|
+
};
|
|
178
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
179
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
180
|
+
};
|
|
181
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
182
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
183
|
+
};
|
|
184
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
185
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
186
|
+
};
|
|
187
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
188
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
189
|
+
};
|
|
190
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
191
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
192
|
+
};
|
|
193
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
194
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
195
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
196
|
+
};
|
|
197
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
198
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
199
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
200
|
+
};
|
|
201
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
202
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
203
|
+
};
|
|
204
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
205
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
206
|
+
};
|
|
207
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
208
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
209
|
+
};
|
|
210
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
211
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
212
|
+
};
|
|
213
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
214
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
215
|
+
};
|
|
216
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
217
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
218
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
219
|
+
};
|
|
220
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
221
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
222
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
223
|
+
};
|
|
224
|
+
}> | undefined;
|
|
225
|
+
} & {
|
|
226
|
+
css?: import("../..").CSS | undefined;
|
|
227
|
+
as?: any;
|
|
228
|
+
} & ToggleGroup.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "color" | "direction" | "translate" | "gap" | "css" | "onBlur" | "onChange" | "onSubmit" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "as" | "wrap" | "justify" | "asChild" | "disabled" | "value" | "type" | "orientation" | "onValueChange" | "align" | "loop" | "rovingFocus"> | Pick<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
229
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
230
|
+
}, "direction" | "gap" | "css" | "wrap" | "justify" | "align"> & import("@stitches/react/types/styled-component").TransformProps<{
|
|
231
|
+
direction?: "row" | "column" | "row-reverse" | undefined;
|
|
232
|
+
wrap?: "wrap" | "wrap-reverse" | "no-wrap" | undefined;
|
|
233
|
+
justify?: boolean | "center" | "false" | "end" | "start" | undefined;
|
|
234
|
+
align?: boolean | "center" | "false" | "end" | "start" | undefined;
|
|
235
|
+
gap?: number | boolean | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "24" | "false" | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
sm: string;
|
|
238
|
+
md: string;
|
|
239
|
+
lg: string;
|
|
240
|
+
xl: string;
|
|
241
|
+
reducedMotion: string;
|
|
242
|
+
allowMotion: string;
|
|
243
|
+
hover: string;
|
|
244
|
+
}> & {
|
|
245
|
+
css?: import("@stitches/react/types/css-util").CSS<{
|
|
246
|
+
sm: string;
|
|
247
|
+
md: string;
|
|
248
|
+
lg: string;
|
|
249
|
+
xl: string;
|
|
250
|
+
reducedMotion: string;
|
|
251
|
+
allowMotion: string;
|
|
252
|
+
hover: string;
|
|
253
|
+
}, {
|
|
254
|
+
colors: {
|
|
255
|
+
textForeground: any;
|
|
256
|
+
textSubtle: any;
|
|
257
|
+
textPlaceholder: any;
|
|
258
|
+
background: any;
|
|
259
|
+
backgroundAccent: any;
|
|
260
|
+
grey100: any;
|
|
261
|
+
grey200: any;
|
|
262
|
+
grey300: any;
|
|
263
|
+
grey400: any;
|
|
264
|
+
grey500: any;
|
|
265
|
+
grey600: any;
|
|
266
|
+
grey700: any;
|
|
267
|
+
grey800: any;
|
|
268
|
+
grey900: any;
|
|
269
|
+
grey1000: any;
|
|
270
|
+
grey1100: any;
|
|
271
|
+
grey1200: any;
|
|
272
|
+
blue100: any;
|
|
273
|
+
blue200: any;
|
|
274
|
+
blue300: any;
|
|
275
|
+
blue400: any;
|
|
276
|
+
blue500: any;
|
|
277
|
+
blue600: any;
|
|
278
|
+
blue700: any;
|
|
279
|
+
blue800: any;
|
|
280
|
+
blue900: any;
|
|
281
|
+
blue1000: any;
|
|
282
|
+
blue1100: any;
|
|
283
|
+
blue1200: any;
|
|
284
|
+
purple100: any;
|
|
285
|
+
purple200: any;
|
|
286
|
+
purple300: any;
|
|
287
|
+
purple400: any;
|
|
288
|
+
purple500: any;
|
|
289
|
+
purple600: any;
|
|
290
|
+
purple700: any;
|
|
291
|
+
purple800: any;
|
|
292
|
+
purple900: any;
|
|
293
|
+
purple1000: any;
|
|
294
|
+
purple1100: any;
|
|
295
|
+
purple1200: any;
|
|
296
|
+
tonal50: any;
|
|
297
|
+
tonal100: any;
|
|
298
|
+
tonal200: any;
|
|
299
|
+
tonal300: any;
|
|
300
|
+
tonal400: any;
|
|
301
|
+
tonal500: any;
|
|
302
|
+
tonal600: any;
|
|
303
|
+
alpha100: any;
|
|
304
|
+
alpha150: any;
|
|
305
|
+
alpha200: any;
|
|
306
|
+
alpha250: any;
|
|
307
|
+
alpha600: any;
|
|
308
|
+
primaryLight: any;
|
|
309
|
+
primary: any;
|
|
310
|
+
primaryMid: any;
|
|
311
|
+
primaryDark: any;
|
|
312
|
+
secondary: any;
|
|
313
|
+
brandRed: any;
|
|
314
|
+
brandRedAccent: any;
|
|
315
|
+
brandGreen: any;
|
|
316
|
+
brandGreenAccent: any;
|
|
317
|
+
brandPurple: any;
|
|
318
|
+
brandPurpleAccent: any;
|
|
319
|
+
brandYellow: any;
|
|
320
|
+
brandYellowAccent: any;
|
|
321
|
+
successLight: any;
|
|
322
|
+
success: any;
|
|
323
|
+
successMid: any;
|
|
324
|
+
successDark: any;
|
|
325
|
+
dangerLight: any;
|
|
326
|
+
danger: any;
|
|
327
|
+
dangerMid: any;
|
|
328
|
+
dangerDark: any;
|
|
329
|
+
warningLight: any;
|
|
330
|
+
warning: any;
|
|
331
|
+
warningMid: any;
|
|
332
|
+
warningDark: any;
|
|
333
|
+
warningText: any;
|
|
334
|
+
subjectEnglish: any;
|
|
335
|
+
subjectMaths: any;
|
|
336
|
+
subjectScience: any;
|
|
337
|
+
subjectVerbalReasoning: any;
|
|
338
|
+
subjectNonVerbalReasoning: any;
|
|
339
|
+
subjectCreativeWriting: any;
|
|
340
|
+
subjectExamSkills: any;
|
|
341
|
+
};
|
|
342
|
+
space: {
|
|
343
|
+
"0": any;
|
|
344
|
+
"1": any;
|
|
345
|
+
"2": any;
|
|
346
|
+
"3": any;
|
|
347
|
+
"4": any;
|
|
348
|
+
"5": any;
|
|
349
|
+
"6": any;
|
|
350
|
+
"7": any;
|
|
351
|
+
"8": any;
|
|
352
|
+
"9": any;
|
|
353
|
+
"24": any;
|
|
354
|
+
};
|
|
355
|
+
fontSizes: {
|
|
356
|
+
xs: any;
|
|
357
|
+
sm: any;
|
|
358
|
+
md: any;
|
|
359
|
+
lg: any;
|
|
360
|
+
xl: any;
|
|
361
|
+
"2xl": any;
|
|
362
|
+
"3xl": any;
|
|
363
|
+
"4xl": any;
|
|
364
|
+
};
|
|
365
|
+
fonts: {
|
|
366
|
+
sans: any;
|
|
367
|
+
mono: any;
|
|
368
|
+
display: any;
|
|
369
|
+
body: any;
|
|
370
|
+
};
|
|
371
|
+
sizes: {
|
|
372
|
+
"0": any;
|
|
373
|
+
"1": any;
|
|
374
|
+
"2": any;
|
|
375
|
+
"3": any;
|
|
376
|
+
"4": any;
|
|
377
|
+
"5": any;
|
|
378
|
+
"6": any;
|
|
379
|
+
"7": any;
|
|
380
|
+
"8": any;
|
|
381
|
+
};
|
|
382
|
+
radii: {
|
|
383
|
+
"0": any;
|
|
384
|
+
"1": any;
|
|
385
|
+
"2": any;
|
|
386
|
+
"3": any;
|
|
387
|
+
round: any;
|
|
388
|
+
};
|
|
389
|
+
shadows: {
|
|
390
|
+
"0": any;
|
|
391
|
+
"1": any;
|
|
392
|
+
"2": any;
|
|
393
|
+
"3": any;
|
|
394
|
+
};
|
|
395
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
396
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
397
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
398
|
+
};
|
|
399
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
400
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
401
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
402
|
+
};
|
|
403
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
404
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
405
|
+
};
|
|
406
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
407
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
408
|
+
};
|
|
409
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
410
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
411
|
+
};
|
|
412
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
413
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
414
|
+
};
|
|
415
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
416
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
417
|
+
};
|
|
418
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
419
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
420
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
421
|
+
};
|
|
422
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
423
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
424
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
425
|
+
};
|
|
426
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
427
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
428
|
+
};
|
|
429
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
430
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
431
|
+
};
|
|
432
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
433
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
434
|
+
};
|
|
435
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
436
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
437
|
+
};
|
|
438
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
439
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
440
|
+
};
|
|
441
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
442
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
443
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
444
|
+
};
|
|
445
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
446
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
447
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
448
|
+
};
|
|
449
|
+
}> | undefined;
|
|
450
|
+
} & {
|
|
451
|
+
css?: import("../..").CSS | undefined;
|
|
452
|
+
as?: any;
|
|
453
|
+
} & ToggleGroup.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "color" | "direction" | "translate" | "gap" | "css" | "onBlur" | "onChange" | "onSubmit" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "as" | "wrap" | "justify" | "asChild" | "disabled" | "value" | "type" | "orientation" | "onValueChange" | "align" | "loop" | "rovingFocus">) & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as i from"@radix-ui/react-toggle-group";import*as r from"react";import"../tile/index.js";import{TileGroup as n}from"../tile/TileGroup.js";const a=o=>o==="horizontal"?"row":o==="vertical"?"column":void 0,m=r.forwardRef((o,t)=>{const e=a(o.orientation);return r.createElement(n,{ref:t,as:i.Root,direction:e,align:!1,...o})});export{m as TileToggleGroupRoot};
|
|
2
|
+
//# sourceMappingURL=TileToggleGroupRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TileToggleGroupRoot.js","sources":["../../../src/components/tile-toggle-group/TileToggleGroupRoot.tsx"],"sourcesContent":["import * as ToggleGroup from '@radix-ui/react-toggle-group'\nimport * as React from 'react'\n\nimport { TileGroup } from '~/components/tile'\n\ntype TTileToggleGroupRootProps = React.ComponentProps<typeof TileGroup> &\n React.ComponentProps<typeof ToggleGroup.Root>\n\nconst orientationToDirection = (orientation) =>\n orientation === 'horizontal'\n ? 'row'\n : orientation === 'vertical'\n ? 'column'\n : undefined\n\nexport const TileToggleGroupRoot = React.forwardRef<\n HTMLDivElement,\n TTileToggleGroupRootProps\n>((props, ref) => {\n const direction = orientationToDirection(props.orientation)\n return (\n <TileGroup\n ref={ref}\n as={ToggleGroup.Root}\n direction={direction}\n align={false}\n {...props}\n />\n )\n})\n"],"names":["orientationToDirection","orientation","TileToggleGroupRoot","React","props","ref","direction","TileGroup","ToggleGroup"],"mappings":"iJAQA,MAAMA,EAA0BC,GAC9BA,IAAgB,aACZ,MACAA,IAAgB,WAChB,SACA,OAEOC,EAAsBC,EAAM,WAGvC,CAACC,EAAOC,IAAQ,CAChB,MAAMC,EAAYN,EAAuBI,EAAM,WAAW,EAC1D,OACED,EAAA,cAACI,EAAA,CACC,IAAKF,EACL,GAAIG,EAAY,KAChB,UAAWF,EACX,MAAO,GACN,GAAGF,CACN,CAAA,CAEJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TileToggleGroupItem } from './TileToggleGroupItem';
|
|
2
|
+
import { TileToggleGroupRoot } from './TileToggleGroupRoot';
|
|
3
|
+
declare type TTileToggleGroup = typeof TileToggleGroupRoot & {
|
|
4
|
+
Item: typeof TileToggleGroupItem;
|
|
5
|
+
};
|
|
6
|
+
export declare const TileToggleGroup: TTileToggleGroup;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/tile-toggle-group/index.ts"],"sourcesContent":["import { TileToggleGroupItem } from './TileToggleGroupItem'\nimport { TileToggleGroupRoot } from './TileToggleGroupRoot'\n\ntype TTileToggleGroup = typeof TileToggleGroupRoot & {\n Item: typeof TileToggleGroupItem\n}\n\nexport const TileToggleGroup = TileToggleGroupRoot as TTileToggleGroup\nTileToggleGroup.Item = TileToggleGroupItem\nTileToggleGroup.displayName = 'TileToggleGroup'\n"],"names":["TileToggleGroup","TileToggleGroupRoot","TileToggleGroupItem"],"mappings":"8HAOa,MAAAA,EAAkBC,EAC/BD,EAAgB,KAAOE,EACvBF,EAAgB,YAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as h from"@radix-ui/react-toggle-group";import*as r from"react";import{Stack as f}from"../stack/Stack.js";import{styled as m}from"../../stitches.js";import{StyledItem as t}from"./ToggleGroupItem.js";const s=m(h.Root,{width:"fit-content",variants:{isFullWidth:{true:{width:"100%",[`& ${t}`]:{flexBasis:0,flexGrow:1}}},hasGap:{true:{[`& ${t}`]:{borderRadius:"$0"}},false:{borderRadius:"$0",bg:"white",[`& ${t}`]:{bg:"transparent",borderRadius:0,position:"relative","&:not(:last-child)::before":{content:"",position:"absolute"}}}},direction:{column:{},row:{}}},compoundVariants:[{hasGap:!1,direction:"row",css:{[`& ${t}`]:{"&:not(:last-child)::before":{top:"-1px",height:"calc(100% + 2px)",width:"1px",right:"0",transform:"translateX(150%)"},"&:not(:first-child)":{borderLeftColor:"transparent"},"&:not(:last-child)":{borderRightColor:"transparent"},"&:first-child":{borderTopLeftRadius:"$0",borderBottomLeftRadius:"$0"},"&:last-child":{borderTopRightRadius:"$0",borderBottomRightRadius:"$0"}}}},{hasGap:!1,direction:"column",css:{[`& ${t}`]:{"&:not(:last-child)::before":{bottom:0,left:"-1px",height:"1px",width:"calc(100% + 2px)",transform:"translateY(150%)"},"&:first-child":{borderTopLeftRadius:"$0",borderTopRightRadius:"$0"},"&:last-child":{borderBottomLeftRadius:"$0",borderBottomRightRadius:"$0"},"&:not(:first-child)":{borderTopColor:"transparent"},"&:not(:last-child)":{borderBottomColor:"transparent"}}}}]}),u=o=>o==="horizontal"?"row":"column",b=r.forwardRef(({orientation:o="horizontal",gap:i=!1,isFullWidth:
|
|
1
|
+
import*as h from"@radix-ui/react-toggle-group";import*as r from"react";import{Stack as f}from"../stack/Stack.js";import{styled as m}from"../../stitches.js";import{StyledItem as t}from"./ToggleGroupItem.js";const s=m(h.Root,{width:"fit-content",variants:{isFullWidth:{true:{width:"100%",[`& ${t}`]:{flexBasis:0,flexGrow:1}}},hasGap:{true:{[`& ${t}`]:{borderRadius:"$0"}},false:{borderRadius:"$0",bg:"white",[`& ${t}`]:{bg:"transparent",borderRadius:0,position:"relative","&:not(:last-child)::before":{content:"",position:"absolute"}}}},direction:{column:{},row:{}}},compoundVariants:[{hasGap:!1,direction:"row",css:{[`& ${t}`]:{"&:not(:last-child)::before":{top:"-1px",height:"calc(100% + 2px)",width:"1px",right:"0",transform:"translateX(150%)"},"&:not(:first-child)":{borderLeftColor:"transparent"},"&:not(:last-child)":{borderRightColor:"transparent"},"&:first-child":{borderTopLeftRadius:"$0",borderBottomLeftRadius:"$0"},"&:last-child":{borderTopRightRadius:"$0",borderBottomRightRadius:"$0"}}}},{hasGap:!1,direction:"column",css:{[`& ${t}`]:{"&:not(:last-child)::before":{bottom:0,left:"-1px",height:"1px",width:"calc(100% + 2px)",transform:"translateY(150%)"},"&:first-child":{borderTopLeftRadius:"$0",borderTopRightRadius:"$0"},"&:last-child":{borderBottomLeftRadius:"$0",borderBottomRightRadius:"$0"},"&:not(:first-child)":{borderTopColor:"transparent"},"&:not(:last-child)":{borderBottomColor:"transparent"}}}}]}),u=o=>o==="horizontal"?"row":"column",b=r.forwardRef(({orientation:o="horizontal",gap:i=!1,isFullWidth:d,children:n,wrap:l="no-wrap",...p},c)=>{const e=typeof i=="number",a=u(o);return r.createElement(s,{ref:c,direction:a,hasGap:e,isFullWidth:d,orientation:o,...p},r.createElement(f,{direction:a,gap:e&&i,align:!1,wrap:l},n))});export{s as StyledRoot,b as ToggleGroupRoot};
|
|
2
2
|
//# sourceMappingURL=ToggleGroupRoot.js.map
|