@atom-learning/components 2.29.1 → 2.31.0-beta.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/dist/components/accordion/Accordion.d.ts +37 -127
- package/dist/components/accordion/AccordionContent.d.ts +37 -127
- package/dist/components/accordion/AccordionContent.js +1 -1
- package/dist/components/accordion/AccordionItem.d.ts +37 -127
- package/dist/components/accordion/AccordionItem.js +1 -1
- package/dist/components/accordion/AccordionTrigger.d.ts +42 -131
- package/dist/components/accordion/AccordionTrigger.js +1 -1
- package/dist/components/action-icon/ActionIcon.d.ts +37 -127
- package/dist/components/alert-dialog/AlertDialog.d.ts +37 -127
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +37 -127
- package/dist/components/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/components/avatar/Avatar.d.ts +104 -284
- package/dist/components/badge/Badge.d.ts +104 -284
- package/dist/components/box/Box.d.ts +37 -127
- package/dist/components/button/Button.d.ts +37 -127
- package/dist/components/calendar/Day.d.ts +37 -127
- package/dist/components/carousel/CarouselPagination.d.ts +37 -127
- package/dist/components/carousel/CarouselSlide.d.ts +37 -127
- package/dist/components/carousel/CarouselSlider.d.ts +37 -127
- package/dist/components/checkbox/Checkbox.d.ts +37 -127
- package/dist/components/chip/Chip.d.ts +304 -934
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +74 -254
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +74 -254
- package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +104 -284
- package/dist/components/combobox/Combobox.d.ts +37 -127
- package/dist/components/combobox/ComboboxInput.d.ts +37 -127
- package/dist/components/combobox/ComboboxList.d.ts +37 -127
- package/dist/components/combobox/ComboboxOption.d.ts +37 -127
- package/dist/components/combobox/ComboboxPopover.d.ts +37 -127
- package/dist/components/data-table/DataTableLoading.d.ts +37 -127
- package/dist/components/data-table/drag-and-drop/Handle.d.ts +74 -254
- package/dist/components/data-table/pagination/Pagination.d.ts +37 -127
- package/dist/components/dialog/Dialog.d.ts +37 -127
- package/dist/components/dialog/DialogBackground.d.ts +104 -284
- package/dist/components/dialog/DialogClose.d.ts +37 -127
- package/dist/components/dialog/DialogContent.d.ts +37 -127
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/divider/Divider.d.ts +37 -127
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +37 -127
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +37 -127
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +37 -127
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +37 -127
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +37 -127
- package/dist/components/empty-state/EmptyState.d.ts +104 -284
- package/dist/components/empty-state/EmptyStateBody.d.ts +74 -254
- package/dist/components/empty-state/EmptyStateImage.d.ts +74 -254
- package/dist/components/empty-state/EmptyStateTitle.d.ts +37 -127
- package/dist/components/flex/Flex.d.ts +37 -127
- package/dist/components/form/Form.d.ts +37 -127
- package/dist/components/grid/Grid.d.ts +37 -127
- package/dist/components/heading/Heading.d.ts +37 -127
- package/dist/components/icon/Icon.d.ts +37 -127
- package/dist/components/image/Image.d.ts +37 -127
- package/dist/components/inline-message/InlineMessage.d.ts +104 -284
- package/dist/components/input/Input.d.ts +37 -127
- package/dist/components/label/Label.d.ts +37 -127
- package/dist/components/link/Link.d.ts +37 -127
- package/dist/components/list/List.d.ts +104 -284
- package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +37 -127
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +74 -254
- package/dist/components/notification-badge/NotificationBadge.d.ts +104 -284
- package/dist/components/popover/Popover.d.ts +37 -127
- package/dist/components/popover/PopoverContent.d.ts +37 -127
- package/dist/components/progress-bar/ProgressBar.d.ts +37 -127
- package/dist/components/radio-button/RadioButton.d.ts +37 -127
- package/dist/components/radio-button/RadioButtonGroup.d.ts +37 -127
- package/dist/components/radio-card/RadioCard.d.ts +37 -127
- package/dist/components/select/Select.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerContent.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerFooter.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerHeader.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerOverlay.d.ts +37 -127
- package/dist/components/sidedrawer/SidedrawerTrigger.d.ts +37 -127
- package/dist/components/slider/Slider.d.ts +37 -127
- package/dist/components/stack/Stack.d.ts +37 -127
- package/dist/components/stack-content/StackContent.d.ts +37 -127
- package/dist/components/stepper/StepperStepBullet.d.ts +104 -284
- package/dist/components/stepper/StepperStepContainer.d.ts +104 -284
- package/dist/components/stepper/StepperStepLabel.d.ts +74 -254
- package/dist/components/switch/Switch.d.ts +37 -127
- package/dist/components/table/Table.d.ts +37 -127
- package/dist/components/table/TableBody.d.ts +37 -127
- package/dist/components/table/TableCell.d.ts +37 -127
- package/dist/components/table/TableFooter.d.ts +37 -127
- package/dist/components/table/TableFooterCell.d.ts +37 -127
- package/dist/components/table/TableHeader.d.ts +37 -127
- package/dist/components/table/TableHeaderCell.d.ts +37 -127
- package/dist/components/table/TableRow.d.ts +74 -254
- package/dist/components/tabs/Tabs.d.ts +44 -403
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/TabsContent.d.ts +177 -0
- package/dist/components/tabs/TabsContent.js +1 -0
- package/dist/components/tabs/TabsTrigger.d.ts +182 -0
- package/dist/components/tabs/TabsTrigger.js +1 -0
- package/dist/components/tabs/TabsTriggerList.d.ts +42 -136
- package/dist/components/tabs/TabsTriggerList.js +1 -1
- package/dist/components/text/Text.d.ts +37 -127
- package/dist/components/textarea/Textarea.d.ts +37 -127
- package/dist/components/toast/Toast.d.ts +37 -127
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +104 -284
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +104 -284
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +37 -127
- package/dist/components/toggle-group/index.d.ts +245 -695
- package/dist/components/tooltip/TooltipContent.d.ts +37 -127
- package/dist/components/top-bar/TopBar.d.ts +37 -127
- package/dist/components/top-bar/TopBarBrand.d.ts +111 -381
- package/dist/components/video/Video.d.ts +104 -284
- package/dist/docgen.json +1 -1
- package/dist/docs/Accordion.mdx +56 -7
- package/dist/docs/README.mdx +79 -0
- package/dist/docs/Tabs.mdx +31 -57
- package/dist/experiments/color-scheme/ColorScheme.d.ts +111 -0
- package/dist/experiments/color-scheme/ColorScheme.js +1 -0
- package/dist/experiments/color-scheme/blue.json.js +1 -0
- package/dist/experiments/color-scheme/generateAlphaColors.d.ts +1 -0
- package/dist/experiments/color-scheme/generateAlphaColors.js +1 -0
- package/dist/experiments/color-scheme/index.d.ts +1 -0
- package/dist/experiments/color-scheme/slate.json.js +1 -0
- package/dist/experiments/color-scheme/stitches.colorscheme.config.d.ts +256 -0
- package/dist/experiments/color-scheme/stitches.colorscheme.config.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/stitches.d.ts +474 -786
- package/dist/stitches.js +1 -1
- package/dist/utilities/hooks/useCallbackRef.js +1 -1
- package/dist/utilities/hooks/useWindowSize.d.ts +8 -0
- package/dist/utilities/hooks/useWindowSize.js +1 -0
- package/package.json +4 -3
- package/CHANGELOG.md +0 -210
- package/dist/components/tabs/TabTrigger.d.ts +0 -275
- package/dist/components/tabs/TabTrigger.js +0 -1
- package/dist/components/tabs/utils.d.ts +0 -2
- package/dist/components/tabs/utils.js +0 -1
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const StyledTabsTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>, {}, {
|
|
3
|
+
sm: string;
|
|
4
|
+
md: string;
|
|
5
|
+
lg: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
reducedMotion: string;
|
|
8
|
+
allowMotion: string;
|
|
9
|
+
hover: string;
|
|
10
|
+
}, import("@stitches/react/types/css-util").CSS<{
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
xl: string;
|
|
15
|
+
reducedMotion: string;
|
|
16
|
+
allowMotion: string;
|
|
17
|
+
hover: string;
|
|
18
|
+
}, {
|
|
19
|
+
colors: {
|
|
20
|
+
textForeground: any;
|
|
21
|
+
textSubtle: any;
|
|
22
|
+
textPlaceholder: any;
|
|
23
|
+
background: any;
|
|
24
|
+
backgroundAccent: any;
|
|
25
|
+
tonal50: any;
|
|
26
|
+
tonal100: any;
|
|
27
|
+
tonal200: any;
|
|
28
|
+
tonal300: any;
|
|
29
|
+
tonal400: any;
|
|
30
|
+
tonal500: any;
|
|
31
|
+
tonal600: any;
|
|
32
|
+
alpha100: any;
|
|
33
|
+
alpha150: any;
|
|
34
|
+
alpha200: any;
|
|
35
|
+
alpha250: any;
|
|
36
|
+
alpha600: any;
|
|
37
|
+
primaryLight: any;
|
|
38
|
+
primary: any;
|
|
39
|
+
primaryMid: any;
|
|
40
|
+
primaryDark: any;
|
|
41
|
+
secondary: any;
|
|
42
|
+
brandRed: any;
|
|
43
|
+
brandRedAccent: any;
|
|
44
|
+
brandGreen: any;
|
|
45
|
+
brandGreenAccent: any;
|
|
46
|
+
brandPurple: any;
|
|
47
|
+
brandPurpleAccent: any;
|
|
48
|
+
brandYellow: any;
|
|
49
|
+
brandYellowAccent: any;
|
|
50
|
+
successLight: any;
|
|
51
|
+
success: any;
|
|
52
|
+
successMid: any;
|
|
53
|
+
successDark: any;
|
|
54
|
+
dangerLight: any;
|
|
55
|
+
danger: any;
|
|
56
|
+
dangerMid: any;
|
|
57
|
+
dangerDark: any;
|
|
58
|
+
warningLight: any;
|
|
59
|
+
warning: any;
|
|
60
|
+
warningMid: any;
|
|
61
|
+
warningDark: any;
|
|
62
|
+
warningText: any;
|
|
63
|
+
subjectEnglish: any;
|
|
64
|
+
subjectMaths: any;
|
|
65
|
+
subjectScience: any;
|
|
66
|
+
subjectVerbalReasoning: any;
|
|
67
|
+
subjectNonVerbalReasoning: any;
|
|
68
|
+
subjectCreativeWriting: any;
|
|
69
|
+
subjectExamSkills: any;
|
|
70
|
+
};
|
|
71
|
+
space: {
|
|
72
|
+
"0": any;
|
|
73
|
+
"1": any;
|
|
74
|
+
"2": any;
|
|
75
|
+
"3": any;
|
|
76
|
+
"4": any;
|
|
77
|
+
"5": any;
|
|
78
|
+
"6": any;
|
|
79
|
+
"7": any;
|
|
80
|
+
"8": any;
|
|
81
|
+
"9": any;
|
|
82
|
+
};
|
|
83
|
+
fontSizes: {
|
|
84
|
+
xs: any;
|
|
85
|
+
sm: any;
|
|
86
|
+
md: any;
|
|
87
|
+
lg: any;
|
|
88
|
+
xl: any;
|
|
89
|
+
"2xl": any;
|
|
90
|
+
"3xl": any;
|
|
91
|
+
"4xl": any;
|
|
92
|
+
};
|
|
93
|
+
fonts: {
|
|
94
|
+
sans: any;
|
|
95
|
+
mono: any;
|
|
96
|
+
display: any;
|
|
97
|
+
body: any;
|
|
98
|
+
};
|
|
99
|
+
sizes: {
|
|
100
|
+
"0": any;
|
|
101
|
+
"1": any;
|
|
102
|
+
"2": any;
|
|
103
|
+
"3": any;
|
|
104
|
+
"4": any;
|
|
105
|
+
"5": any;
|
|
106
|
+
"6": any;
|
|
107
|
+
"7": any;
|
|
108
|
+
"8": any;
|
|
109
|
+
};
|
|
110
|
+
radii: {
|
|
111
|
+
"0": any;
|
|
112
|
+
"1": any;
|
|
113
|
+
"2": any;
|
|
114
|
+
"3": any;
|
|
115
|
+
round: any;
|
|
116
|
+
};
|
|
117
|
+
shadows: {
|
|
118
|
+
"0": any;
|
|
119
|
+
"1": any;
|
|
120
|
+
"2": any;
|
|
121
|
+
"3": any;
|
|
122
|
+
};
|
|
123
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
124
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
125
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
126
|
+
};
|
|
127
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
128
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
129
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
130
|
+
};
|
|
131
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
132
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
133
|
+
};
|
|
134
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
135
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
136
|
+
};
|
|
137
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
138
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
139
|
+
};
|
|
140
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
141
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
142
|
+
};
|
|
143
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
144
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
145
|
+
};
|
|
146
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
147
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
148
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
149
|
+
};
|
|
150
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
151
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
152
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
153
|
+
};
|
|
154
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
155
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
156
|
+
};
|
|
157
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
158
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
159
|
+
};
|
|
160
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
161
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
162
|
+
};
|
|
163
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
164
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
165
|
+
};
|
|
166
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
167
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
168
|
+
};
|
|
169
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
170
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
171
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
172
|
+
};
|
|
173
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
174
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
175
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
176
|
+
};
|
|
177
|
+
}>>;
|
|
178
|
+
interface TabsTriggerProps extends React.ComponentProps<typeof StyledTabsTrigger> {
|
|
179
|
+
value: string;
|
|
180
|
+
}
|
|
181
|
+
export declare const TabsTrigger: React.FC<TabsTriggerProps>;
|
|
182
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Trigger as i}from"@radix-ui/react-tabs";import*as e from"react";import{styled as a}from"../../stitches.js";import{Text as n}from"../text/Text.js";import{focusVisibleStyleBlock as c}from"../../utilities/style/focus-visible-style-block.js";const s=a(i,{background:"none",border:"none",cursor:"pointer",flexShrink:0,p:"$4",userSelect:"none",borderBottom:"2px solid transparent",'&[data-state="active"]':{color:"$interactive1",fontWeight:600,letterSpacing:"-0.005em",borderColor:"currentColor"},"&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:hover, &:focus-visible":{color:"$interactive2",bg:"$accentA1"},"&:active":{color:"$interactive3"},"&:focus-visible":{...c()}}}),o=({children:r,...t})=>e.createElement(s,{asChild:!0,...t},e.createElement(n,{size:"sm",as:"button"},r));o.displayName="TabsTrigger";export{o as TabsTrigger};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
scrollPercentage?: number;
|
|
5
|
-
}
|
|
6
|
-
declare const StyledTriggerList: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsListProps & React.RefAttributes<HTMLDivElement>>, {
|
|
7
|
-
theme?: "dark" | "light" | undefined;
|
|
8
|
-
appearance?: "uppercase" | undefined;
|
|
9
|
-
}, {
|
|
2
|
+
import { ColorScheme } from '../../experiments/color-scheme';
|
|
3
|
+
declare const StyledTriggerList: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsListProps & React.RefAttributes<HTMLDivElement>>, {}, {
|
|
10
4
|
sm: string;
|
|
11
5
|
md: string;
|
|
12
6
|
lg: string;
|
|
@@ -128,149 +122,61 @@ declare const StyledTriggerList: import("@stitches/react/types/styled-component"
|
|
|
128
122
|
"3": any;
|
|
129
123
|
};
|
|
130
124
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
131
|
-
bg: (value: {
|
|
132
|
-
|
|
133
|
-
}) => {
|
|
134
|
-
background: {
|
|
135
|
-
readonly [$$PropertyValue]: "background";
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
inset: (value: string | number | {
|
|
139
|
-
readonly [$$ScaleValue]: "space";
|
|
140
|
-
}) => {
|
|
141
|
-
top: string | number | {
|
|
142
|
-
readonly [$$ScaleValue]: "space";
|
|
143
|
-
};
|
|
144
|
-
right: string | number | {
|
|
145
|
-
readonly [$$ScaleValue]: "space";
|
|
146
|
-
};
|
|
147
|
-
bottom: string | number | {
|
|
148
|
-
readonly [$$ScaleValue]: "space";
|
|
149
|
-
};
|
|
150
|
-
left: string | number | {
|
|
151
|
-
readonly [$$ScaleValue]: "space";
|
|
152
|
-
};
|
|
125
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
126
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
153
127
|
};
|
|
154
|
-
size: (value: string | number | {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
height: string | number | {
|
|
158
|
-
readonly [$$ScaleValue]: "size";
|
|
159
|
-
};
|
|
160
|
-
width: string | number | {
|
|
161
|
-
readonly [$$ScaleValue]: "size";
|
|
162
|
-
};
|
|
128
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
129
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
130
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
163
131
|
};
|
|
164
|
-
p: (value: string | number | {
|
|
165
|
-
|
|
166
|
-
}) => {
|
|
167
|
-
padding: string | number | {
|
|
168
|
-
readonly [$$ScaleValue]: "space";
|
|
169
|
-
};
|
|
132
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
133
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
170
134
|
};
|
|
171
|
-
pt: (value: string | number | {
|
|
172
|
-
|
|
173
|
-
}) => {
|
|
174
|
-
paddingTop: string | number | {
|
|
175
|
-
readonly [$$ScaleValue]: "space";
|
|
176
|
-
};
|
|
135
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
136
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
177
137
|
};
|
|
178
|
-
pr: (value: string | number | {
|
|
179
|
-
|
|
180
|
-
}) => {
|
|
181
|
-
paddingRight: string | number | {
|
|
182
|
-
readonly [$$ScaleValue]: "space";
|
|
183
|
-
};
|
|
138
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
139
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
184
140
|
};
|
|
185
|
-
pb: (value: string | number | {
|
|
186
|
-
|
|
187
|
-
}) => {
|
|
188
|
-
paddingBottom: string | number | {
|
|
189
|
-
readonly [$$ScaleValue]: "space";
|
|
190
|
-
};
|
|
141
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
142
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
191
143
|
};
|
|
192
|
-
pl: (value: string | number | {
|
|
193
|
-
|
|
194
|
-
}) => {
|
|
195
|
-
paddingLeft: string | number | {
|
|
196
|
-
readonly [$$ScaleValue]: "space";
|
|
197
|
-
};
|
|
144
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
145
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
198
146
|
};
|
|
199
|
-
px: (value: string | number | {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
paddingLeft: string | number | {
|
|
203
|
-
readonly [$$ScaleValue]: "space";
|
|
204
|
-
};
|
|
205
|
-
paddingRight: string | number | {
|
|
206
|
-
readonly [$$ScaleValue]: "space";
|
|
207
|
-
};
|
|
147
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
148
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
149
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
208
150
|
};
|
|
209
|
-
py: (value: string | number | {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
paddingTop: string | number | {
|
|
213
|
-
readonly [$$ScaleValue]: "space";
|
|
214
|
-
};
|
|
215
|
-
paddingBottom: string | number | {
|
|
216
|
-
readonly [$$ScaleValue]: "space";
|
|
217
|
-
};
|
|
151
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
152
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
153
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
218
154
|
};
|
|
219
|
-
m: (value: string | number | {
|
|
220
|
-
|
|
221
|
-
}) => {
|
|
222
|
-
margin: string | number | {
|
|
223
|
-
readonly [$$ScaleValue]: "space";
|
|
224
|
-
};
|
|
155
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
156
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
225
157
|
};
|
|
226
|
-
mt: (value: string | number | {
|
|
227
|
-
|
|
228
|
-
}) => {
|
|
229
|
-
marginTop: string | number | {
|
|
230
|
-
readonly [$$ScaleValue]: "space";
|
|
231
|
-
};
|
|
158
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
159
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
232
160
|
};
|
|
233
|
-
mr: (value: string | number | {
|
|
234
|
-
|
|
235
|
-
}) => {
|
|
236
|
-
marginRight: string | number | {
|
|
237
|
-
readonly [$$ScaleValue]: "space";
|
|
238
|
-
};
|
|
161
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
162
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
239
163
|
};
|
|
240
|
-
mb: (value: string | number | {
|
|
241
|
-
|
|
242
|
-
}) => {
|
|
243
|
-
marginBottom: string | number | {
|
|
244
|
-
readonly [$$ScaleValue]: "space";
|
|
245
|
-
};
|
|
164
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
165
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
246
166
|
};
|
|
247
|
-
ml: (value: string | number | {
|
|
248
|
-
|
|
249
|
-
}) => {
|
|
250
|
-
marginLeft: string | number | {
|
|
251
|
-
readonly [$$ScaleValue]: "space";
|
|
252
|
-
};
|
|
167
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
168
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
253
169
|
};
|
|
254
|
-
mx: (value: string | number | {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
marginLeft: string | number | {
|
|
258
|
-
readonly [$$ScaleValue]: "space";
|
|
259
|
-
};
|
|
260
|
-
marginRight: string | number | {
|
|
261
|
-
readonly [$$ScaleValue]: "space";
|
|
262
|
-
};
|
|
170
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
171
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
172
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
263
173
|
};
|
|
264
|
-
my: (value: string | number | {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
marginTop: string | number | {
|
|
268
|
-
readonly [$$ScaleValue]: "space";
|
|
269
|
-
};
|
|
270
|
-
marginBottom: string | number | {
|
|
271
|
-
readonly [$$ScaleValue]: "space";
|
|
272
|
-
};
|
|
174
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
175
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
176
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
273
177
|
};
|
|
274
178
|
}>>;
|
|
275
|
-
export declare const
|
|
179
|
+
export declare const TabsTriggerList: React.FC<React.ComponentProps<typeof StyledTriggerList> & {
|
|
180
|
+
colorScheme?: typeof ColorScheme;
|
|
181
|
+
}>;
|
|
276
182
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{List as y}from"@radix-ui/react-tabs";import e from"react";import{styled as m}from"../../stitches.js";import{useWindowSize as T}from"../../utilities/hooks/useWindowSize.js";import{useCallbackRefState as x}from"../../utilities/hooks/useCallbackRef.js";import{ActionIcon as z}from"../action-icon/ActionIcon.js";import{Icon as p}from"../icon/Icon.js";import{ChevronLeft as $,ChevronRight as R}from"@atom-learning/icons";import{ColorScheme as I}from"../../experiments/color-scheme/ColorScheme.js";const N=m(I,{position:"relative",borderBottom:"1px solid $base3",width:"100%"}),_=m(y,{flexShrink:0,display:"flex",width:"100%",overflowX:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}),u=m(z,{height:"100% !important",position:"absolute",top:"50%",transform:"translateY(-50%)",cursor:"pointer",background:"$background !important",color:"$interactive1 !important",borderRadius:0,opacity:.9}),A=10,b=({children:g,colorScheme:v={},...C})=>{const[t,k]=x(),{width:W}=T(),[w,i]=e.useState(!1),[E,s]=e.useState(!1),f=e.useCallback(c=>{if(!t)return;const{scrollWidth:r,scrollLeft:l,offsetWidth:a}=t,h=Math.round(r*(A/100));let n=l;if(c==="right"){const o=l+h;n=o+a<=r?o:r-a}else{const o=l-h;n=o>0?o:0}t.scroll({left:n,behavior:"smooth"}),setTimeout(()=>{const{scrollWidth:o,scrollLeft:d,offsetWidth:L}=t,S=o-(d+L);d===0?(i(!1),s(!0)):S<5?(s(!1),i(!0)):(i(!0),s(!0))},500)},[t]);return e.useEffect(()=>{var c;if(!t)return;const{offsetWidth:r,scrollWidth:l}=t,a=l>r;(c=t.scroll)==null||c.call(t,{left:0}),i(!1),s(a)},[t,W]),e.createElement(N,{base:"slate",accent:"blue",interactive:"hiContrast1",...v,...C},w&&e.createElement(u,{label:"scroll left",size:"md",css:{left:0},onClick:()=>f("left")},e.createElement(p,{is:$})),e.createElement(_,{ref:k},g),E&&e.createElement(u,{label:"scroll right",size:"md",css:{right:0},onClick:()=>f("right")},e.createElement(p,{is:R})))};b.displayName="TabsTriggerList";export{b as TabsTriggerList};
|
|
@@ -161,148 +161,58 @@ export declare const StyledText: import("@stitches/react/types/styled-component"
|
|
|
161
161
|
"3": any;
|
|
162
162
|
};
|
|
163
163
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
164
|
-
bg: (value: {
|
|
165
|
-
|
|
166
|
-
}) => {
|
|
167
|
-
background: {
|
|
168
|
-
readonly [$$PropertyValue]: "background";
|
|
169
|
-
};
|
|
164
|
+
bg: (value: import("@stitches/react/types/css-util").WithPropertyValue<"background">) => {
|
|
165
|
+
background: import("@stitches/react/types/css-util").WithPropertyValue<"background">;
|
|
170
166
|
};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
top: string | number | {
|
|
175
|
-
readonly [$$ScaleValue]: "space";
|
|
176
|
-
};
|
|
177
|
-
right: string | number | {
|
|
178
|
-
readonly [$$ScaleValue]: "space";
|
|
179
|
-
};
|
|
180
|
-
bottom: string | number | {
|
|
181
|
-
readonly [$$ScaleValue]: "space";
|
|
182
|
-
};
|
|
183
|
-
left: string | number | {
|
|
184
|
-
readonly [$$ScaleValue]: "space";
|
|
185
|
-
};
|
|
167
|
+
size: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">) => {
|
|
168
|
+
height: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
169
|
+
width: string | number | import("@stitches/react/types/css-util").WithScaleValue<"size">;
|
|
186
170
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}) => {
|
|
190
|
-
height: string | number | {
|
|
191
|
-
readonly [$$ScaleValue]: "size";
|
|
192
|
-
};
|
|
193
|
-
width: string | number | {
|
|
194
|
-
readonly [$$ScaleValue]: "size";
|
|
195
|
-
};
|
|
171
|
+
p: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
172
|
+
padding: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
196
173
|
};
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}) => {
|
|
200
|
-
padding: string | number | {
|
|
201
|
-
readonly [$$ScaleValue]: "space";
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
pt: (value: string | number | {
|
|
205
|
-
readonly [$$ScaleValue]: "space";
|
|
206
|
-
}) => {
|
|
207
|
-
paddingTop: string | number | {
|
|
208
|
-
readonly [$$ScaleValue]: "space";
|
|
209
|
-
};
|
|
174
|
+
pt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
175
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
210
176
|
};
|
|
211
|
-
pr: (value: string | number | {
|
|
212
|
-
|
|
213
|
-
}) => {
|
|
214
|
-
paddingRight: string | number | {
|
|
215
|
-
readonly [$$ScaleValue]: "space";
|
|
216
|
-
};
|
|
177
|
+
pr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
178
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
217
179
|
};
|
|
218
|
-
pb: (value: string | number | {
|
|
219
|
-
|
|
220
|
-
}) => {
|
|
221
|
-
paddingBottom: string | number | {
|
|
222
|
-
readonly [$$ScaleValue]: "space";
|
|
223
|
-
};
|
|
180
|
+
pb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
181
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
224
182
|
};
|
|
225
|
-
pl: (value: string | number | {
|
|
226
|
-
|
|
227
|
-
}) => {
|
|
228
|
-
paddingLeft: string | number | {
|
|
229
|
-
readonly [$$ScaleValue]: "space";
|
|
230
|
-
};
|
|
183
|
+
pl: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
184
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
231
185
|
};
|
|
232
|
-
px: (value: string | number | {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
paddingLeft: string | number | {
|
|
236
|
-
readonly [$$ScaleValue]: "space";
|
|
237
|
-
};
|
|
238
|
-
paddingRight: string | number | {
|
|
239
|
-
readonly [$$ScaleValue]: "space";
|
|
240
|
-
};
|
|
186
|
+
px: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
187
|
+
paddingLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
188
|
+
paddingRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
241
189
|
};
|
|
242
|
-
py: (value: string | number | {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
paddingTop: string | number | {
|
|
246
|
-
readonly [$$ScaleValue]: "space";
|
|
247
|
-
};
|
|
248
|
-
paddingBottom: string | number | {
|
|
249
|
-
readonly [$$ScaleValue]: "space";
|
|
250
|
-
};
|
|
190
|
+
py: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
191
|
+
paddingTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
192
|
+
paddingBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
251
193
|
};
|
|
252
|
-
m: (value: string | number | {
|
|
253
|
-
|
|
254
|
-
}) => {
|
|
255
|
-
margin: string | number | {
|
|
256
|
-
readonly [$$ScaleValue]: "space";
|
|
257
|
-
};
|
|
194
|
+
m: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
195
|
+
margin: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
258
196
|
};
|
|
259
|
-
mt: (value: string | number | {
|
|
260
|
-
|
|
261
|
-
}) => {
|
|
262
|
-
marginTop: string | number | {
|
|
263
|
-
readonly [$$ScaleValue]: "space";
|
|
264
|
-
};
|
|
197
|
+
mt: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
198
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
265
199
|
};
|
|
266
|
-
mr: (value: string | number | {
|
|
267
|
-
|
|
268
|
-
}) => {
|
|
269
|
-
marginRight: string | number | {
|
|
270
|
-
readonly [$$ScaleValue]: "space";
|
|
271
|
-
};
|
|
200
|
+
mr: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
201
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
272
202
|
};
|
|
273
|
-
mb: (value: string | number | {
|
|
274
|
-
|
|
275
|
-
}) => {
|
|
276
|
-
marginBottom: string | number | {
|
|
277
|
-
readonly [$$ScaleValue]: "space";
|
|
278
|
-
};
|
|
203
|
+
mb: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
204
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
279
205
|
};
|
|
280
|
-
ml: (value: string | number | {
|
|
281
|
-
|
|
282
|
-
}) => {
|
|
283
|
-
marginLeft: string | number | {
|
|
284
|
-
readonly [$$ScaleValue]: "space";
|
|
285
|
-
};
|
|
206
|
+
ml: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
207
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
286
208
|
};
|
|
287
|
-
mx: (value: string | number | {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
marginLeft: string | number | {
|
|
291
|
-
readonly [$$ScaleValue]: "space";
|
|
292
|
-
};
|
|
293
|
-
marginRight: string | number | {
|
|
294
|
-
readonly [$$ScaleValue]: "space";
|
|
295
|
-
};
|
|
209
|
+
mx: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
210
|
+
marginLeft: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
211
|
+
marginRight: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
296
212
|
};
|
|
297
|
-
my: (value: string | number | {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
marginTop: string | number | {
|
|
301
|
-
readonly [$$ScaleValue]: "space";
|
|
302
|
-
};
|
|
303
|
-
marginBottom: string | number | {
|
|
304
|
-
readonly [$$ScaleValue]: "space";
|
|
305
|
-
};
|
|
213
|
+
my: (value: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">) => {
|
|
214
|
+
marginTop: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
215
|
+
marginBottom: string | number | import("@stitches/react/types/css-util").WithScaleValue<"space">;
|
|
306
216
|
};
|
|
307
217
|
}>>;
|
|
308
218
|
declare type TextProps = Override<React.ComponentProps<typeof StyledText>, {
|