@atom-learning/components 1.2.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/action-icon/ActionIcon.d.ts +1 -1
- package/dist/components/action-icon/ActionIcon.js +1 -1
- package/dist/components/table/Table.d.ts +1 -0
- package/dist/components/table/Table.js +1 -1
- package/dist/components/table/TableHeader.d.ts +7 -1
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/table/TableHeaderCell.js +1 -1
- package/dist/components/table/TableRow.js +1 -1
- package/dist/components/tabs/TabTrigger.d.ts +5 -3
- package/dist/components/tabs/TabTrigger.js +1 -1
- package/dist/components/tabs/Tabs.d.ts +8 -268
- package/dist/components/tabs/Tabs.js +1 -1
- package/dist/components/tabs/TabsTriggerList.d.ts +273 -0
- package/dist/components/tabs/TabsTriggerList.js +1 -0
- package/dist/components/tabs/utils.d.ts +2 -0
- package/dist/components/tabs/utils.js +1 -0
- package/dist/components/video/Video.d.ts +265 -1
- package/dist/components/video/Video.js +1 -1
- package/dist/docgen.json +1 -1
- package/dist/docs/Table.mdx +14 -0
- package/dist/docs/Tabs.mdx +9 -1
- package/dist/index.cjs.js +1 -1
- package/package.json +3 -1
|
@@ -5,7 +5,7 @@ import { Override } from '../../utilities';
|
|
|
5
5
|
declare const StyledButton: import("@stitches/react/types/styled-component").StyledComponent<"button", {
|
|
6
6
|
theme?: "primary" | "success" | "danger" | "warning" | "neutral" | undefined;
|
|
7
7
|
appearance?: "outline" | "solid" | "simple" | undefined;
|
|
8
|
-
size?: "md" | "lg" | undefined;
|
|
8
|
+
size?: "md" | "lg" | "xl" | undefined;
|
|
9
9
|
isRounded?: boolean | "true" | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
sm: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=["children","theme","appearance","size","label","href","disabled"];function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}import a from"invariant";import{forwardRef as
|
|
1
|
+
const e=["children","theme","appearance","size","label","href","disabled"];function r(){return(r=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}import a from"invariant";import{darken as s}from"polished";import{forwardRef as i,Children as n,createElement as o,isValidElement as c,cloneElement as t}from"react";import{styled as l,theme as p}from"../../stitches.js";import{Icon as d}from"../icon/Icon.js";const m=(e,r,a)=>({bg:"transparent",color:e,"&:not(:disabled):hover, &:not(:disabled):focus":{color:r},"&:not(:disabled):active":{color:a},"&[disabled]":{color:"$tonal400",cursor:"not-allowed"}}),u=(e,r,a)=>({bg:e,color:"white","&:not(:disabled):hover, &:not(:disabled):focus":{bg:r,color:"white"},"&:not(:disabled):active":{bg:a},"&[disabled]":{bg:"$tonal100",color:"$tonal400",cursor:"not-allowed"}}),$=(e,r,a)=>({border:"1px solid",borderColor:"currentColor",color:e,"&:not(:disabled):hover, &:not(:disabled):focus":{color:r},"&:not(:disabled):active":{color:a},"&[disabled]":{borderColor:"$tonal400",color:"$tonal400",cursor:"not-allowed"}}),y=l("button",{alignItems:"center",appearance:"none",bg:"white",border:"unset",borderRadius:"$0",boxSizing:"border-box",cursor:"pointer",display:"flex",justifyContent:"center",p:"unset",transition:"all 100ms ease-out",variants:{theme:{neutral:{},primary:{},success:{},warning:{},danger:{}},appearance:{simple:{},outline:{},solid:{}},size:{md:{size:"$3"},lg:{size:"$4"},xl:{size:"$5"}},isRounded:{true:{borderRadius:"$round"}}},compoundVariants:[{theme:"neutral",appearance:"simple",css:m("$tonal300","$primaryMid","$primaryDark")},{theme:"primary",appearance:"simple",css:m("$primary","$primaryMid","$primaryDark")},{theme:"primaryDark",appearance:"simple",css:m("$primaryDark",s(.1,p.colors.primaryDark.value),s(.15,p.colors.primaryDark.value))},{theme:"success",appearance:"simple",css:m("$success","$successMid","$successDark")},{theme:"warning",appearance:"simple",css:m("$warning","$warningMid","$warningDark")},{theme:"danger",appearance:"simple",css:m("$danger","$dangerMid","$dangerDark")},{theme:"primary",appearance:"solid",css:u("$primary","$primaryMid","$primaryDark")},{theme:"primaryDark",appearance:"solid",css:u("$primaryDark",s(.1,p.colors.primaryDark.value),s(.15,p.colors.primaryDark.value))},{theme:"success",appearance:"solid",css:u("$success","$successMid","$successDark")},{theme:"warning",appearance:"solid",css:u("$warning","$warningMid","$warningDark")},{theme:"danger",appearance:"solid",css:u("$danger","$dangerMid","$dangerDark")},{theme:"primary",appearance:"outline",css:$("$primary","$primaryMid","$primaryDark")},{theme:"primaryDark",appearance:"outline",css:$("$primaryDark",s(.1,p.colors.primaryDark.value),s(.15,p.colors.primaryDark.value))},{theme:"success",appearance:"outline",css:$("$success","$successMid","$successDark")},{theme:"warning",appearance:"outline",css:$("$warning","$warningMid","$warningDark")},{theme:"danger",appearance:"outline",css:$("$danger","$dangerMid","$dangerDark")}]}),g=i(((s,i)=>{let{children:l,theme:p="primary",appearance:m="simple",size:u="md",label:$,href:b,disabled:h}=s,k=function(e,r){if(null==e)return{};var a,s,i={},n=Object.keys(e);for(s=0;s<n.length;s++)a=n[s],r.indexOf(a)>=0||(i[a]=e[a]);return i}(s,e);const f=`A single ${d.displayName} component is permitted as a child of ${g.displayName}`;a(1===n.count(l),f);const D=b?{as:"a",href:h?null:b,onClick:void 0,"aria-disabled":!!h}:{type:"button"};return o(y,Object.assign({},k,D,{"aria-label":$,theme:p,appearance:m,size:u,ref:i,disabled:h}),n.map(l,(e=>{if(!c(e))throw new Error(f);return a(e.type===d,`Children of type ${null==e?void 0:e.type} aren't permitted. Only an ${d.displayName} component is allowed in ${g.displayName}`),t(e,{css:r({size:["lg","xl"].includes(u)?20:16},e.props.css?e.props.css:{})})})))}));g.displayName="ActionIcon";export{g as ActionIcon};
|
|
@@ -17,6 +17,7 @@ declare type TableSubComponents = {
|
|
|
17
17
|
};
|
|
18
18
|
declare const StyledTable: import("@stitches/react/types/styled-component").StyledComponent<"table", {
|
|
19
19
|
size?: "md" | "lg" | undefined;
|
|
20
|
+
corners?: "round" | "square" | undefined;
|
|
20
21
|
}, {
|
|
21
22
|
sm: string;
|
|
22
23
|
md: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=["size"];import{createElement as r}from"react";import{styled as o}from"../../stitches.js";import{TableBody as t}from"./TableBody.js";import{TableCell as
|
|
1
|
+
const e=["size","corners"];import{createElement as r}from"react";import{styled as o}from"../../stitches.js";import{TableBody as t}from"./TableBody.js";import{TableCell as s}from"./TableCell.js";import{TableFooter as i}from"./TableFooter.js";import{TableFooterCell as l}from"./TableFooterCell.js";import{TableHeader as a}from"./TableHeader.js";import{TableHeaderCell as d}from"./TableHeaderCell.js";import{TableRow as m}from"./TableRow.js";const n=o("table",{borderCollapse:"separate",borderSpacing:0,fontFamily:"$sans",fontSize:"$sm",width:"100%",variants:{size:{md:{[`${s}, ${d}, ${l}`]:{height:"$4"}},lg:{[`${s}, ${d}, ${l}`]:{height:"$5"}}},corners:{round:{[`${d}`]:{"&:first-of-type":{borderTopLeftRadius:"$0"},"&:last-of-type":{borderTopRightRadius:"$0"}},[`${m}:last-child`]:{[`${s}:first-child`]:{borderBottomLeftRadius:"$0"},[`${s}:last-child`]:{borderBottomRightRadius:"$0"}}},square:{}}}}),f=o=>{let{size:t="md",corners:s="round"}=o,i=function(e,r){if(null==e)return{};var o,t,s={},i=Object.keys(e);for(t=0;t<i.length;t++)o=i[t],r.indexOf(o)>=0||(s[o]=e[o]);return s}(o,e);return r(n,Object.assign({size:t,corners:s},i))};f.Body=t,f.Cell=s,f.Footer=i,f.FooterCell=l,f.Header=a,f.HeaderCell=d,f.Row=m,f.displayName="Table";export{f as Table};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const StyledTableHeader: import("@stitches/react/types/styled-component").StyledComponent<"thead", {
|
|
3
|
+
theme?: "primary" | "primaryDark" | undefined;
|
|
4
|
+
}, {
|
|
2
5
|
sm: string;
|
|
3
6
|
md: string;
|
|
4
7
|
lg: string;
|
|
@@ -263,3 +266,6 @@ export declare const TableHeader: import("@stitches/react/types/styled-component
|
|
|
263
266
|
};
|
|
264
267
|
};
|
|
265
268
|
}>>;
|
|
269
|
+
declare type TableHeaderProps = React.ComponentProps<typeof StyledTableHeader>;
|
|
270
|
+
export declare const TableHeader: React.FC<TableHeaderProps>;
|
|
271
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as
|
|
1
|
+
const e=["theme"];import{styled as r}from"../../stitches.js";import t from"react";import{TableHeaderCell as a}from"./TableHeaderCell.js";const m=r("thead",{variants:{theme:{primary:{[`${a}`]:{bg:"$primary"}},primaryDark:{[`${a}`]:{bg:"$primaryDark"}}}}}),i=r=>{let{theme:a="primaryDark"}=r,i=function(e,r){if(null==e)return{};var t,a,m={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],r.indexOf(t)>=0||(m[t]=e[t]);return m}(r,e);return t.createElement(m,Object.assign({theme:a},i))};i.displayName="TableHeader";export{i as TableHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as
|
|
1
|
+
import{styled as e}from"../../stitches.js";const t=e("th",{color:"white",fontFamily:"$body",fontWeight:600,lineHeight:1.5,p:"$2 $3",textAlign:"left",verticalAlign:"middle"});t.displayName="TableHeaderCell";export{t as TableHeaderCell};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{styled as t}from"../../stitches.js";const o=t("tr",{
|
|
1
|
+
import{styled as t}from"../../stitches.js";const o=t("tr",{});o.displayName="TableRow";export{o as TableRow};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const StyledTabTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<HTMLDivElement>>, {
|
|
2
|
+
declare const StyledTabTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<HTMLDivElement>>, {
|
|
3
|
+
theme?: "dark" | "light" | undefined;
|
|
4
|
+
}, {
|
|
3
5
|
sm: string;
|
|
4
6
|
md: string;
|
|
5
7
|
lg: string;
|
|
@@ -264,9 +266,9 @@ declare const StyledTabTrigger: import("@stitches/react/types/styled-component")
|
|
|
264
266
|
};
|
|
265
267
|
};
|
|
266
268
|
}>>;
|
|
267
|
-
|
|
269
|
+
interface TabTriggerProps extends React.ComponentProps<typeof StyledTabTrigger> {
|
|
268
270
|
value: string;
|
|
269
271
|
disabled?: boolean;
|
|
270
|
-
}
|
|
272
|
+
}
|
|
271
273
|
export declare const TabTrigger: React.FC<TabTriggerProps>;
|
|
272
274
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e=["children","theme","disabled"];import{Trigger as t}from"@radix-ui/react-tabs";import{createElement as a}from"react";import{opacify as o}from"polished";import{styled as r,theme as i}from"../../stitches.js";const d=r(t,{textTransform:"uppercase",cursor:"pointer",flexShrink:0,fontFamily:"$body",p:"$4",height:"$5",userSelect:"none",transition:"0.3s",variants:{theme:{light:{bg:"white",'&[data-state="active"]':{color:"$primary",fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},'&[data-state="inactive"]':{color:"$tonal500"},"&:not([data-disabled]):hover":{color:"$primary",bg:o(-.9,i.colors.primary.value)},"&:not([data-disabled]):active":{color:"$primary",bg:o(-.8,i.colors.primary.value),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}},dark:{color:"white",'&[data-state="active"]':{fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},"&:not([data-disabled]):hover":{bg:o(-.8,"white")},"&:not([data-disabled]):active":{bg:o(-.7,"white"),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}}}}}),l=t=>{let{children:o,theme:r,disabled:i=!1}=t,l=function(e,t){if(null==e)return{};var a,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)a=i[o],t.indexOf(a)>=0||(r[a]=e[a]);return r}(t,e);return a(d,Object.assign({disabled:i,theme:r},l),o)};l.displayName="TabTrigger";export{l as TabTrigger};
|
|
@@ -1,271 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TabTrigger } from './TabTrigger';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
xl: string;
|
|
8
|
-
reducedMotion: string;
|
|
9
|
-
allowMotion: string;
|
|
10
|
-
hover: string;
|
|
11
|
-
}, import("@stitches/react/types/css-util").CSS<{
|
|
12
|
-
sm: string;
|
|
13
|
-
md: string;
|
|
14
|
-
lg: string;
|
|
15
|
-
xl: string;
|
|
16
|
-
reducedMotion: string;
|
|
17
|
-
allowMotion: string;
|
|
18
|
-
hover: string;
|
|
3
|
+
import { TriggerListWrapper } from './TabsTriggerList';
|
|
4
|
+
declare type TabsProps = React.ComponentProps<typeof StyledRoot>;
|
|
5
|
+
declare const StyledRoot: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsProps & React.RefAttributes<HTMLDivElement>>, {
|
|
6
|
+
theme?: "dark" | "light" | undefined;
|
|
19
7
|
}, {
|
|
20
|
-
colors: {
|
|
21
|
-
textForeground: any;
|
|
22
|
-
textSubtle: any;
|
|
23
|
-
textPlaceholder: any;
|
|
24
|
-
background: any;
|
|
25
|
-
backgroundAccent: any;
|
|
26
|
-
tonal50: any;
|
|
27
|
-
tonal100: any;
|
|
28
|
-
tonal200: any;
|
|
29
|
-
tonal300: any;
|
|
30
|
-
tonal400: any;
|
|
31
|
-
tonal500: any;
|
|
32
|
-
tonal600: any;
|
|
33
|
-
alpha100: any;
|
|
34
|
-
alpha150: any;
|
|
35
|
-
alpha200: any;
|
|
36
|
-
alpha250: any;
|
|
37
|
-
alpha600: any;
|
|
38
|
-
primaryLight: any;
|
|
39
|
-
primary: any;
|
|
40
|
-
primaryMid: any;
|
|
41
|
-
primaryDark: any;
|
|
42
|
-
secondary: any;
|
|
43
|
-
brandRed: any;
|
|
44
|
-
brandRedAccent: any;
|
|
45
|
-
brandGreen: any;
|
|
46
|
-
brandGreenAccent: any;
|
|
47
|
-
brandPurple: any;
|
|
48
|
-
brandPurpleAccent: any;
|
|
49
|
-
brandYellow: any;
|
|
50
|
-
brandYellowAccent: any;
|
|
51
|
-
successLight: any;
|
|
52
|
-
success: any;
|
|
53
|
-
successMid: any;
|
|
54
|
-
successDark: any;
|
|
55
|
-
dangerLight: any;
|
|
56
|
-
danger: any;
|
|
57
|
-
dangerMid: any;
|
|
58
|
-
dangerDark: any;
|
|
59
|
-
warningLight: any;
|
|
60
|
-
warning: any;
|
|
61
|
-
warningMid: any;
|
|
62
|
-
warningDark: 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: {
|
|
125
|
-
readonly [$$PropertyValue]: "background";
|
|
126
|
-
}) => {
|
|
127
|
-
background: {
|
|
128
|
-
readonly [$$PropertyValue]: "background";
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
inset: (value: string | number | {
|
|
132
|
-
readonly [$$ScaleValue]: "space";
|
|
133
|
-
}) => {
|
|
134
|
-
top: string | number | {
|
|
135
|
-
readonly [$$ScaleValue]: "space";
|
|
136
|
-
};
|
|
137
|
-
right: string | number | {
|
|
138
|
-
readonly [$$ScaleValue]: "space";
|
|
139
|
-
};
|
|
140
|
-
bottom: string | number | {
|
|
141
|
-
readonly [$$ScaleValue]: "space";
|
|
142
|
-
};
|
|
143
|
-
left: string | number | {
|
|
144
|
-
readonly [$$ScaleValue]: "space";
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
size: (value: string | number | {
|
|
148
|
-
readonly [$$ScaleValue]: "size";
|
|
149
|
-
}) => {
|
|
150
|
-
height: string | number | {
|
|
151
|
-
readonly [$$ScaleValue]: "size";
|
|
152
|
-
};
|
|
153
|
-
width: string | number | {
|
|
154
|
-
readonly [$$ScaleValue]: "size";
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
p: (value: string | number | {
|
|
158
|
-
readonly [$$ScaleValue]: "space";
|
|
159
|
-
}) => {
|
|
160
|
-
padding: string | number | {
|
|
161
|
-
readonly [$$ScaleValue]: "space";
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
pt: (value: string | number | {
|
|
165
|
-
readonly [$$ScaleValue]: "space";
|
|
166
|
-
}) => {
|
|
167
|
-
paddingTop: string | number | {
|
|
168
|
-
readonly [$$ScaleValue]: "space";
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
pr: (value: string | number | {
|
|
172
|
-
readonly [$$ScaleValue]: "space";
|
|
173
|
-
}) => {
|
|
174
|
-
paddingRight: string | number | {
|
|
175
|
-
readonly [$$ScaleValue]: "space";
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
pb: (value: string | number | {
|
|
179
|
-
readonly [$$ScaleValue]: "space";
|
|
180
|
-
}) => {
|
|
181
|
-
paddingBottom: string | number | {
|
|
182
|
-
readonly [$$ScaleValue]: "space";
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
pl: (value: string | number | {
|
|
186
|
-
readonly [$$ScaleValue]: "space";
|
|
187
|
-
}) => {
|
|
188
|
-
paddingLeft: string | number | {
|
|
189
|
-
readonly [$$ScaleValue]: "space";
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
px: (value: string | number | {
|
|
193
|
-
readonly [$$ScaleValue]: "space";
|
|
194
|
-
}) => {
|
|
195
|
-
paddingLeft: string | number | {
|
|
196
|
-
readonly [$$ScaleValue]: "space";
|
|
197
|
-
};
|
|
198
|
-
paddingRight: string | number | {
|
|
199
|
-
readonly [$$ScaleValue]: "space";
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
py: (value: string | number | {
|
|
203
|
-
readonly [$$ScaleValue]: "space";
|
|
204
|
-
}) => {
|
|
205
|
-
paddingTop: string | number | {
|
|
206
|
-
readonly [$$ScaleValue]: "space";
|
|
207
|
-
};
|
|
208
|
-
paddingBottom: string | number | {
|
|
209
|
-
readonly [$$ScaleValue]: "space";
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
m: (value: string | number | {
|
|
213
|
-
readonly [$$ScaleValue]: "space";
|
|
214
|
-
}) => {
|
|
215
|
-
margin: string | number | {
|
|
216
|
-
readonly [$$ScaleValue]: "space";
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
mt: (value: string | number | {
|
|
220
|
-
readonly [$$ScaleValue]: "space";
|
|
221
|
-
}) => {
|
|
222
|
-
marginTop: string | number | {
|
|
223
|
-
readonly [$$ScaleValue]: "space";
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
mr: (value: string | number | {
|
|
227
|
-
readonly [$$ScaleValue]: "space";
|
|
228
|
-
}) => {
|
|
229
|
-
marginRight: string | number | {
|
|
230
|
-
readonly [$$ScaleValue]: "space";
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
mb: (value: string | number | {
|
|
234
|
-
readonly [$$ScaleValue]: "space";
|
|
235
|
-
}) => {
|
|
236
|
-
marginBottom: string | number | {
|
|
237
|
-
readonly [$$ScaleValue]: "space";
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
ml: (value: string | number | {
|
|
241
|
-
readonly [$$ScaleValue]: "space";
|
|
242
|
-
}) => {
|
|
243
|
-
marginLeft: string | number | {
|
|
244
|
-
readonly [$$ScaleValue]: "space";
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
mx: (value: string | number | {
|
|
248
|
-
readonly [$$ScaleValue]: "space";
|
|
249
|
-
}) => {
|
|
250
|
-
marginLeft: string | number | {
|
|
251
|
-
readonly [$$ScaleValue]: "space";
|
|
252
|
-
};
|
|
253
|
-
marginRight: string | number | {
|
|
254
|
-
readonly [$$ScaleValue]: "space";
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
|
-
my: (value: string | number | {
|
|
258
|
-
readonly [$$ScaleValue]: "space";
|
|
259
|
-
}) => {
|
|
260
|
-
marginTop: string | number | {
|
|
261
|
-
readonly [$$ScaleValue]: "space";
|
|
262
|
-
};
|
|
263
|
-
marginBottom: string | number | {
|
|
264
|
-
readonly [$$ScaleValue]: "space";
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
}>>;
|
|
268
|
-
declare const StyledTabContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsContentProps & React.RefAttributes<HTMLDivElement>>, {}, {
|
|
269
8
|
sm: string;
|
|
270
9
|
md: string;
|
|
271
10
|
lg: string;
|
|
@@ -530,7 +269,9 @@ declare const StyledTabContent: import("@stitches/react/types/styled-component")
|
|
|
530
269
|
};
|
|
531
270
|
};
|
|
532
271
|
}>>;
|
|
533
|
-
declare const
|
|
272
|
+
declare const StyledTabContent: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsContentProps & React.RefAttributes<HTMLDivElement>>, {
|
|
273
|
+
theme?: "dark" | "light" | undefined;
|
|
274
|
+
}, {
|
|
534
275
|
sm: string;
|
|
535
276
|
md: string;
|
|
536
277
|
lg: string;
|
|
@@ -795,9 +536,8 @@ declare const StyledTriggerList: import("@stitches/react/types/styled-component"
|
|
|
795
536
|
};
|
|
796
537
|
};
|
|
797
538
|
}>>;
|
|
798
|
-
declare type TabsProps = React.ComponentProps<typeof StyledRoot>;
|
|
799
539
|
export declare const Tabs: React.FC<TabsProps> & {
|
|
800
|
-
TriggerList: typeof
|
|
540
|
+
TriggerList: typeof TriggerListWrapper;
|
|
801
541
|
Trigger: typeof TabTrigger;
|
|
802
542
|
Content: typeof StyledTabContent;
|
|
803
543
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const r=["children"];import{Root as
|
|
1
|
+
const r=["theme","children"];import{Root as t,Content as e}from"@radix-ui/react-tabs";import{createElement as i}from"react";import{styled as o}from"../../stitches.js";import{TabTrigger as m}from"./TabTrigger.js";import{TriggerListWrapper as a}from"./TabsTriggerList.js";import{passPropsToChildren as l}from"./utils.js";const n=o(t,{display:"flex",flexDirection:"column",variants:{theme:{light:{color:"$primary"},dark:{color:"white"}}}}),s=o(e,{flexGrow:1,fontFamily:"$body",variants:{theme:{light:{bg:"white",color:"$textForeground"},dark:{bg:"$primaryDark",color:"white"}}}}),c=t=>{let{theme:e="light",children:o}=t,m=function(r,t){if(null==r)return{};var e,i,o={},m=Object.keys(r);for(i=0;i<m.length;i++)e=m[i],t.indexOf(e)>=0||(o[e]=r[e]);return o}(t,r);return i(n,Object.assign({theme:e},m),l(o,{theme:e},[a,s]))};c.TriggerList=a,c.Trigger=m,c.Content=s,c.displayName="Tabs";export{c as Tabs};
|