@cambly/syntax-core 9.6.0 → 9.7.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/Avatar/Avatar.css +28 -0
- package/dist/Avatar/Avatar.css.map +1 -0
- package/dist/Avatar/Avatar.d.ts +27 -0
- package/dist/Avatar/Avatar.js +8 -0
- package/dist/Avatar/Avatar.js.map +1 -0
- package/dist/Avatar/Avatar.mjs +8 -0
- package/dist/Avatar/Avatar.mjs.map +1 -0
- package/dist/Badge/Badge.css +1870 -0
- package/dist/Badge/Badge.css.map +1 -0
- package/dist/Badge/Badge.d.ts +25 -0
- package/dist/Badge/Badge.js +13 -0
- package/dist/Badge/Badge.js.map +1 -0
- package/dist/Badge/Badge.mjs +13 -0
- package/dist/Badge/Badge.mjs.map +1 -0
- package/dist/Box/Box.css +1783 -0
- package/dist/Box/Box.css.map +1 -0
- package/dist/Box/Box.d.ts +371 -0
- package/dist/Box/Box.js +11 -0
- package/dist/Box/Box.js.map +1 -0
- package/dist/Box/Box.mjs +11 -0
- package/dist/Box/Box.mjs.map +1 -0
- package/dist/Button/Button.css +1956 -0
- package/dist/Button/Button.css.map +1 -0
- package/dist/Button/Button.d.ts +85 -0
- package/dist/Button/Button.js +21 -0
- package/dist/Button/Button.js.map +1 -0
- package/dist/Button/Button.mjs +21 -0
- package/dist/Button/Button.mjs.map +1 -0
- package/dist/Button/constants/iconSize.css +92 -0
- package/dist/Button/constants/iconSize.css.map +1 -0
- package/dist/Button/constants/iconSize.d.ts +7 -0
- package/dist/Button/constants/iconSize.js +8 -0
- package/dist/Button/constants/iconSize.js.map +1 -0
- package/dist/Button/constants/iconSize.mjs +8 -0
- package/dist/Button/constants/iconSize.mjs.map +1 -0
- package/dist/Button/constants/loadingIconSize.d.ts +7 -0
- package/dist/Button/constants/loadingIconSize.js +8 -0
- package/dist/Button/constants/loadingIconSize.js.map +1 -0
- package/dist/Button/constants/loadingIconSize.mjs +8 -0
- package/dist/Button/constants/loadingIconSize.mjs.map +1 -0
- package/dist/Button/constants/textVariant.d.ts +7 -0
- package/dist/Button/constants/textVariant.js +8 -0
- package/dist/Button/constants/textVariant.js.map +1 -0
- package/dist/Button/constants/textVariant.mjs +8 -0
- package/dist/Button/constants/textVariant.mjs.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.css +20 -0
- package/dist/ButtonGroup/ButtonGroup.css.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.d.ts +29 -0
- package/dist/ButtonGroup/ButtonGroup.js +8 -0
- package/dist/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/ButtonGroup/ButtonGroup.mjs +8 -0
- package/dist/ButtonGroup/ButtonGroup.mjs.map +1 -0
- package/dist/Card/Card.css +1783 -0
- package/dist/Card/Card.css.map +1 -0
- package/dist/Card/Card.d.ts +27 -0
- package/dist/Card/Card.js +12 -0
- package/dist/Card/Card.js.map +1 -0
- package/dist/Card/Card.mjs +12 -0
- package/dist/Card/Card.mjs.map +1 -0
- package/dist/Checkbox/Checkbox.css +313 -0
- package/dist/Checkbox/Checkbox.css.map +1 -0
- package/dist/Checkbox/Checkbox.d.ts +48 -0
- package/dist/Checkbox/Checkbox.js +14 -0
- package/dist/Checkbox/Checkbox.js.map +1 -0
- package/dist/Checkbox/Checkbox.mjs +14 -0
- package/dist/Checkbox/Checkbox.mjs.map +1 -0
- package/dist/Chip/Chip.css +1902 -0
- package/dist/Chip/Chip.css.map +1 -0
- package/dist/Chip/Chip.d.ts +45 -0
- package/dist/Chip/Chip.js +14 -0
- package/dist/Chip/Chip.js.map +1 -0
- package/dist/Chip/Chip.mjs +14 -0
- package/dist/Chip/Chip.mjs.map +1 -0
- package/dist/Divider/Divider.css +10 -0
- package/dist/Divider/Divider.css.map +1 -0
- package/dist/Divider/Divider.d.ts +9 -0
- package/dist/Divider/Divider.js +8 -0
- package/dist/Divider/Divider.js.map +1 -0
- package/dist/Divider/Divider.mjs +8 -0
- package/dist/Divider/Divider.mjs.map +1 -0
- package/dist/Heading/Heading.css +248 -0
- package/dist/Heading/Heading.css.map +1 -0
- package/dist/Heading/Heading.d.ts +52 -0
- package/dist/Heading/Heading.js +11 -0
- package/dist/Heading/Heading.js.map +1 -0
- package/dist/Heading/Heading.mjs +11 -0
- package/dist/Heading/Heading.mjs.map +1 -0
- package/dist/IconButton/IconButton.css +227 -0
- package/dist/IconButton/IconButton.css.map +1 -0
- package/dist/IconButton/IconButton.d.ts +55 -0
- package/dist/IconButton/IconButton.js +13 -0
- package/dist/IconButton/IconButton.js.map +1 -0
- package/dist/IconButton/IconButton.mjs +13 -0
- package/dist/IconButton/IconButton.mjs.map +1 -0
- package/dist/LinkButton/LinkButton.css +353 -0
- package/dist/LinkButton/LinkButton.css.map +1 -0
- package/dist/LinkButton/LinkButton.d.ts +72 -0
- package/dist/LinkButton/LinkButton.js +17 -0
- package/dist/LinkButton/LinkButton.js.map +1 -0
- package/dist/LinkButton/LinkButton.mjs +17 -0
- package/dist/LinkButton/LinkButton.mjs.map +1 -0
- package/dist/Modal/FocusTrap.d.ts +10 -0
- package/dist/Modal/FocusTrap.js +8 -0
- package/dist/Modal/FocusTrap.js.map +1 -0
- package/dist/Modal/FocusTrap.mjs +8 -0
- package/dist/Modal/FocusTrap.mjs.map +1 -0
- package/dist/Modal/Layer.css +1783 -0
- package/dist/Modal/Layer.css.map +1 -0
- package/dist/Modal/Layer.d.ts +8 -0
- package/dist/Modal/Layer.js +12 -0
- package/dist/Modal/Layer.js.map +1 -0
- package/dist/Modal/Layer.mjs +12 -0
- package/dist/Modal/Layer.mjs.map +1 -0
- package/dist/Modal/Modal.css +1898 -0
- package/dist/Modal/Modal.css.map +1 -0
- package/dist/Modal/Modal.d.ts +113 -0
- package/dist/Modal/Modal.js +17 -0
- package/dist/Modal/Modal.js.map +1 -0
- package/dist/Modal/Modal.mjs +17 -0
- package/dist/Modal/Modal.mjs.map +1 -0
- package/dist/Modal/StopScroll.d.ts +7 -0
- package/dist/Modal/StopScroll.js +8 -0
- package/dist/Modal/StopScroll.js.map +1 -0
- package/dist/Modal/StopScroll.mjs +8 -0
- package/dist/Modal/StopScroll.mjs.map +1 -0
- package/dist/RadioButton/RadioButton.css +318 -0
- package/dist/RadioButton/RadioButton.css.map +1 -0
- package/dist/RadioButton/RadioButton.d.ts +60 -0
- package/dist/RadioButton/RadioButton.js +14 -0
- package/dist/RadioButton/RadioButton.js.map +1 -0
- package/dist/RadioButton/RadioButton.mjs +14 -0
- package/dist/RadioButton/RadioButton.mjs.map +1 -0
- package/dist/SelectList/SelectList.css +335 -0
- package/dist/SelectList/SelectList.css.map +1 -0
- package/dist/SelectList/SelectList.d.ts +72 -0
- package/dist/SelectList/SelectList.js +15 -0
- package/dist/SelectList/SelectList.js.map +1 -0
- package/dist/SelectList/SelectList.mjs +15 -0
- package/dist/SelectList/SelectList.mjs.map +1 -0
- package/dist/SelectList/SelectOption.d.ts +10 -0
- package/dist/SelectList/SelectOption.js +8 -0
- package/dist/SelectList/SelectOption.js.map +1 -0
- package/dist/SelectList/SelectOption.mjs +8 -0
- package/dist/SelectList/SelectOption.mjs.map +1 -0
- package/dist/TapArea/TapArea.css +53 -0
- package/dist/TapArea/TapArea.css.map +1 -0
- package/dist/TapArea/TapArea.d.ts +53 -0
- package/dist/TapArea/TapArea.js +10 -0
- package/dist/TapArea/TapArea.js.map +1 -0
- package/dist/TapArea/TapArea.mjs +10 -0
- package/dist/TapArea/TapArea.mjs.map +1 -0
- package/dist/TextField/TextField.css +1913 -0
- package/dist/TextField/TextField.css.map +1 -0
- package/dist/TextField/TextField.d.ts +68 -0
- package/dist/TextField/TextField.js +14 -0
- package/dist/TextField/TextField.js.map +1 -0
- package/dist/TextField/TextField.mjs +14 -0
- package/dist/TextField/TextField.mjs.map +1 -0
- package/dist/Typography/Typography.css +248 -0
- package/dist/Typography/Typography.css.map +1 -0
- package/dist/Typography/Typography.d.ts +83 -0
- package/dist/Typography/Typography.js +10 -0
- package/dist/Typography/Typography.js.map +1 -0
- package/dist/Typography/Typography.mjs +10 -0
- package/dist/Typography/Typography.mjs.map +1 -0
- package/dist/__chunks/2JWMSFS7.js +31 -0
- package/dist/__chunks/2JWMSFS7.js.map +1 -0
- package/dist/__chunks/2O6FDRTF.js +7 -0
- package/dist/__chunks/2O6FDRTF.js.map +1 -0
- package/dist/__chunks/2PHVTRWC.js +86 -0
- package/dist/__chunks/2PHVTRWC.js.map +1 -0
- package/dist/__chunks/37CQV3RS.js +111 -0
- package/dist/__chunks/37CQV3RS.js.map +1 -0
- package/dist/__chunks/3PCHHAIY.mjs +7 -0
- package/dist/__chunks/3PCHHAIY.mjs.map +1 -0
- package/dist/__chunks/3VUMTAUX.js +68 -0
- package/dist/__chunks/3VUMTAUX.js.map +1 -0
- package/dist/__chunks/42YPEAFS.js +70 -0
- package/dist/__chunks/42YPEAFS.js.map +1 -0
- package/dist/__chunks/4PWSK5GI.js +15 -0
- package/dist/__chunks/4PWSK5GI.js.map +1 -0
- package/dist/__chunks/5AR53MHD.js +1 -0
- package/dist/__chunks/5AR53MHD.js.map +1 -0
- package/dist/__chunks/5DBWL6IK.js +12 -0
- package/dist/__chunks/5DBWL6IK.js.map +1 -0
- package/dist/__chunks/5R6HCJP6.mjs +68 -0
- package/dist/__chunks/5R6HCJP6.mjs.map +1 -0
- package/dist/__chunks/6VWFOSQZ.js +14 -0
- package/dist/__chunks/6VWFOSQZ.js.map +1 -0
- package/dist/__chunks/A7UVLRKG.mjs +15 -0
- package/dist/__chunks/A7UVLRKG.mjs.map +1 -0
- package/dist/__chunks/AFINOME7.js +17 -0
- package/dist/__chunks/AFINOME7.js.map +1 -0
- package/dist/__chunks/AGAHNSZM.js +127 -0
- package/dist/__chunks/AGAHNSZM.js.map +1 -0
- package/dist/__chunks/AMBZXKUQ.mjs +12 -0
- package/dist/__chunks/AMBZXKUQ.mjs.map +1 -0
- package/dist/__chunks/BCWLWS7W.mjs +74 -0
- package/dist/__chunks/BCWLWS7W.mjs.map +1 -0
- package/dist/__chunks/BJXYKZMK.mjs +53 -0
- package/dist/__chunks/BJXYKZMK.mjs.map +1 -0
- package/dist/__chunks/BSFWQWVJ.js +36 -0
- package/dist/__chunks/BSFWQWVJ.js.map +1 -0
- package/dist/__chunks/BSWWGQAS.js +111 -0
- package/dist/__chunks/BSWWGQAS.js.map +1 -0
- package/dist/__chunks/BWTLHCW3.mjs +111 -0
- package/dist/__chunks/BWTLHCW3.mjs.map +1 -0
- package/dist/__chunks/CATJI2RJ.js +26 -0
- package/dist/__chunks/CATJI2RJ.js.map +1 -0
- package/dist/__chunks/CGGEM6XS.mjs +96 -0
- package/dist/__chunks/CGGEM6XS.mjs.map +1 -0
- package/dist/__chunks/CPBWDVD4.mjs +110 -0
- package/dist/__chunks/CPBWDVD4.mjs.map +1 -0
- package/dist/__chunks/CQ2HIJ62.js +35 -0
- package/dist/__chunks/CQ2HIJ62.js.map +1 -0
- package/dist/__chunks/CUDAH5IW.mjs +38 -0
- package/dist/__chunks/CUDAH5IW.mjs.map +1 -0
- package/dist/__chunks/D24RSGYP.js +7 -0
- package/dist/__chunks/D24RSGYP.js.map +1 -0
- package/dist/__chunks/DVVFHZBW.mjs +120 -0
- package/dist/__chunks/DVVFHZBW.mjs.map +1 -0
- package/dist/__chunks/EKJ4XOIM.mjs +12 -0
- package/dist/__chunks/EKJ4XOIM.mjs.map +1 -0
- package/dist/__chunks/ERJ5XXDH.js +96 -0
- package/dist/__chunks/ERJ5XXDH.js.map +1 -0
- package/dist/__chunks/ERXGNP37.js +7 -0
- package/dist/__chunks/ERXGNP37.js.map +1 -0
- package/dist/__chunks/F3ZST4RL.js +74 -0
- package/dist/__chunks/F3ZST4RL.js.map +1 -0
- package/dist/__chunks/FCX7QDZS.mjs +94 -0
- package/dist/__chunks/FCX7QDZS.mjs.map +1 -0
- package/dist/__chunks/FOTKCGZZ.js +53 -0
- package/dist/__chunks/FOTKCGZZ.js.map +1 -0
- package/dist/__chunks/FUBK3VZO.js +28 -0
- package/dist/__chunks/FUBK3VZO.js.map +1 -0
- package/dist/__chunks/FWVHWU47.mjs +7 -0
- package/dist/__chunks/FWVHWU47.mjs.map +1 -0
- package/dist/__chunks/G4DDTGDI.js +31 -0
- package/dist/__chunks/G4DDTGDI.js.map +1 -0
- package/dist/__chunks/GPS2XNQI.js +120 -0
- package/dist/__chunks/GPS2XNQI.js.map +1 -0
- package/dist/__chunks/GVNDZZAU.mjs +14 -0
- package/dist/__chunks/GVNDZZAU.mjs.map +1 -0
- package/dist/__chunks/HAZN2FCY.mjs +28 -0
- package/dist/__chunks/HAZN2FCY.mjs.map +1 -0
- package/dist/__chunks/HOUO3WV6.js +14 -0
- package/dist/__chunks/HOUO3WV6.js.map +1 -0
- package/dist/__chunks/HQVZUEWO.js +22 -0
- package/dist/__chunks/HQVZUEWO.js.map +1 -0
- package/dist/__chunks/IXDA4ZXP.mjs +1 -0
- package/dist/__chunks/IXDA4ZXP.mjs.map +1 -0
- package/dist/__chunks/JSEHOGL7.mjs +7 -0
- package/dist/__chunks/JSEHOGL7.mjs.map +1 -0
- package/dist/__chunks/LJHH6KUW.js +28 -0
- package/dist/__chunks/LJHH6KUW.js.map +1 -0
- package/dist/__chunks/LKQ7PJ4S.mjs +229 -0
- package/dist/__chunks/LKQ7PJ4S.mjs.map +1 -0
- package/dist/__chunks/LULBCTQR.js +38 -0
- package/dist/__chunks/LULBCTQR.js.map +1 -0
- package/dist/__chunks/LZSDWT4M.mjs +110 -0
- package/dist/__chunks/LZSDWT4M.mjs.map +1 -0
- package/dist/__chunks/M6YFAP6P.mjs +28 -0
- package/dist/__chunks/M6YFAP6P.mjs.map +1 -0
- package/dist/__chunks/MX7C572C.mjs +36 -0
- package/dist/__chunks/MX7C572C.mjs.map +1 -0
- package/dist/__chunks/MZEIZAZH.mjs +35 -0
- package/dist/__chunks/MZEIZAZH.mjs.map +1 -0
- package/dist/__chunks/OGJDUOWP.js +94 -0
- package/dist/__chunks/OGJDUOWP.js.map +1 -0
- package/dist/__chunks/OQ26OWU4.mjs +111 -0
- package/dist/__chunks/OQ26OWU4.mjs.map +1 -0
- package/dist/__chunks/PGVLU6C3.mjs +70 -0
- package/dist/__chunks/PGVLU6C3.mjs.map +1 -0
- package/dist/__chunks/PYNS67IV.js +229 -0
- package/dist/__chunks/PYNS67IV.js.map +1 -0
- package/dist/__chunks/Q2TIB7ZC.mjs +26 -0
- package/dist/__chunks/Q2TIB7ZC.mjs.map +1 -0
- package/dist/__chunks/R6CDK4GP.mjs +31 -0
- package/dist/__chunks/R6CDK4GP.mjs.map +1 -0
- package/dist/__chunks/RRE7PRE5.mjs +86 -0
- package/dist/__chunks/RRE7PRE5.mjs.map +1 -0
- package/dist/__chunks/RSU3GDHB.mjs +73 -0
- package/dist/__chunks/RSU3GDHB.mjs.map +1 -0
- package/dist/__chunks/RVT6EXR3.mjs +31 -0
- package/dist/__chunks/RVT6EXR3.mjs.map +1 -0
- package/dist/__chunks/SAEVPDUP.js +12 -0
- package/dist/__chunks/SAEVPDUP.js.map +1 -0
- package/dist/__chunks/SXTRSFG5.mjs +14 -0
- package/dist/__chunks/SXTRSFG5.mjs.map +1 -0
- package/dist/__chunks/TKYRBLSM.js +110 -0
- package/dist/__chunks/TKYRBLSM.js.map +1 -0
- package/dist/__chunks/TPMQI44L.js +7 -0
- package/dist/__chunks/TPMQI44L.js.map +1 -0
- package/dist/__chunks/UCMB6MFN.mjs +17 -0
- package/dist/__chunks/UCMB6MFN.mjs.map +1 -0
- package/dist/__chunks/UNIBFDXV.js +73 -0
- package/dist/__chunks/UNIBFDXV.js.map +1 -0
- package/dist/__chunks/WCEOAOUO.mjs +127 -0
- package/dist/__chunks/WCEOAOUO.mjs.map +1 -0
- package/dist/__chunks/WJDAVT5R.mjs +7 -0
- package/dist/__chunks/WJDAVT5R.mjs.map +1 -0
- package/dist/__chunks/X74O4HUS.js +110 -0
- package/dist/__chunks/X74O4HUS.js.map +1 -0
- package/dist/__chunks/XFKGXL73.mjs +14 -0
- package/dist/__chunks/XFKGXL73.mjs.map +1 -0
- package/dist/__chunks/XN5AALLC.mjs +22 -0
- package/dist/__chunks/XN5AALLC.mjs.map +1 -0
- package/dist/__chunks/YJ7YDIGB.js +14 -0
- package/dist/__chunks/YJ7YDIGB.js.map +1 -0
- package/dist/colors/allColors.d.ts +3 -0
- package/dist/colors/allColors.js +58 -0
- package/dist/colors/allColors.js.map +1 -0
- package/dist/colors/allColors.mjs +58 -0
- package/dist/colors/allColors.mjs.map +1 -0
- package/dist/colors/backgroundColor.css +167 -0
- package/dist/colors/backgroundColor.css.map +1 -0
- package/dist/colors/backgroundColor.d.ts +5 -0
- package/dist/colors/backgroundColor.js +10 -0
- package/dist/colors/backgroundColor.js.map +1 -0
- package/dist/colors/backgroundColor.mjs +10 -0
- package/dist/colors/backgroundColor.mjs.map +1 -0
- package/dist/colors/foregroundColor.css +167 -0
- package/dist/colors/foregroundColor.css.map +1 -0
- package/dist/colors/foregroundColor.d.ts +5 -0
- package/dist/colors/foregroundColor.js +10 -0
- package/dist/colors/foregroundColor.js.map +1 -0
- package/dist/colors/foregroundColor.mjs +10 -0
- package/dist/colors/foregroundColor.mjs.map +1 -0
- package/dist/colors/foregroundTypographyColor.d.ts +5 -0
- package/dist/colors/foregroundTypographyColor.js +8 -0
- package/dist/colors/foregroundTypographyColor.js.map +1 -0
- package/dist/colors/foregroundTypographyColor.mjs +8 -0
- package/dist/colors/foregroundTypographyColor.mjs.map +1 -0
- package/dist/constants.d.ts +4 -0
- package/dist/constants.js +26 -0
- package/dist/constants.js.map +1 -0
- package/dist/constants.mjs +26 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/index.d.ts +21 -1250
- package/dist/index.js +38 -1676
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -1682
- package/dist/index.mjs.map +1 -1
- package/dist/useFocusVisible.d.ts +5 -0
- package/dist/useFocusVisible.js +8 -0
- package/dist/useFocusVisible.js.map +1 -0
- package/dist/useFocusVisible.mjs +8 -0
- package/dist/useFocusVisible.mjs.map +1 -0
- package/dist/useIsHydrated.d.ts +3 -0
- package/dist/useIsHydrated.js +8 -0
- package/dist/useIsHydrated.js.map +1 -0
- package/dist/useIsHydrated.mjs +8 -0
- package/dist/useIsHydrated.mjs.map +1 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,1250 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* * `lg`: 72px
|
|
23
|
-
* * `xl`: 128px
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue `md`
|
|
26
|
-
*/
|
|
27
|
-
size?: "sm" | "md" | "lg" | "xl" | undefined;
|
|
28
|
-
}) => JSX.Element;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* [Badge](https://cambly-syntax.vercel.app/?path=/docs/components-badge--docs) is a component to display short text and give additional context to features and other components.
|
|
32
|
-
*/
|
|
33
|
-
declare const Badge: ({ icon: Icon, text, color, }: {
|
|
34
|
-
/**
|
|
35
|
-
* The icon to be displayed. Please use a [Material Icon](https://material.io/resources/icons/)
|
|
36
|
-
*/
|
|
37
|
-
icon?: React$1.ComponentType<{
|
|
38
|
-
className?: string | undefined;
|
|
39
|
-
}> | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* The text to display inside the badge
|
|
42
|
-
*/
|
|
43
|
-
text: string;
|
|
44
|
-
/**
|
|
45
|
-
* The color of the badge
|
|
46
|
-
*
|
|
47
|
-
* @defaultValue "primary700"
|
|
48
|
-
*/
|
|
49
|
-
color?: "gray200" | "gray900" | "destructive700" | "orange700" | "yellow700" | "success700" | "primary700" | "purple700" | undefined;
|
|
50
|
-
}) => JSX.Element;
|
|
51
|
-
|
|
52
|
-
declare const colors: readonly ["black", "destructive100", "destructive200", "destructive300", "destructive700", "destructive800", "destructive900", "gray10", "gray100", "gray200", "gray30", "gray60", "gray300", "gray700", "gray80", "gray800", "gray900", "orange100", "orange200", "orange300", "orange700", "orange800", "orange900", "primary100", "primary200", "primary300", "primary700", "primary800", "primary900", "purple100", "purple200", "purple300", "purple700", "purple800", "purple900", "success100", "success200", "success300", "success700", "success800", "success900", "white", "yellow100", "yellow200", "yellow300", "yellow700", "yellow800", "yellow900"];
|
|
53
|
-
|
|
54
|
-
type AlignItems = "baseline" | "center" | "end" | "start" | "stretch";
|
|
55
|
-
type As = "article" | "aside" | "caption" | "div" | "figcaption" | "figure" | "footer" | "header" | "main" | "nav" | "section" | "summary";
|
|
56
|
-
type Dimension = number | string;
|
|
57
|
-
type Direction = "row" | "column";
|
|
58
|
-
type Display = "none" | "flex" | "block" | "inlineBlock" | "visuallyHidden";
|
|
59
|
-
type Gap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
60
|
-
type JustifyContent = "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
61
|
-
type Margin = -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "auto";
|
|
62
|
-
type Padding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
63
|
-
type Overflow = "visible" | "hidden" | "scroll" | "auto" | "inherit" | "initial";
|
|
64
|
-
type BoxProps = {
|
|
65
|
-
/**
|
|
66
|
-
* The alignment of the box on the cross axis.
|
|
67
|
-
*
|
|
68
|
-
* Responsive props:
|
|
69
|
-
* * `smAlignItems`
|
|
70
|
-
* * `lgAlignItems`
|
|
71
|
-
*/
|
|
72
|
-
alignItems?: AlignItems;
|
|
73
|
-
/**
|
|
74
|
-
* Allows the default alignment (or the one specified by align-items) to be overridden for individual flex items.
|
|
75
|
-
*/
|
|
76
|
-
alignSelf?: "auto" | "start" | "end" | "center" | "baseline" | "stretch";
|
|
77
|
-
/**
|
|
78
|
-
* The underlying DOM element usually set for accessibility or SEO reasons.
|
|
79
|
-
*
|
|
80
|
-
* @defaultValue "div"
|
|
81
|
-
*/
|
|
82
|
-
as?: As;
|
|
83
|
-
/**
|
|
84
|
-
* The background color of the box.
|
|
85
|
-
*/
|
|
86
|
-
backgroundColor?: (typeof colors)[number];
|
|
87
|
-
/**
|
|
88
|
-
* The children to be rendered inside the box.
|
|
89
|
-
*/
|
|
90
|
-
children?: ReactNode;
|
|
91
|
-
/**
|
|
92
|
-
* An "escape hatch" used to apply styles not otherwise available on Box.
|
|
93
|
-
*
|
|
94
|
-
* Please use this sparingly and only when you have a good reason to.
|
|
95
|
-
*/
|
|
96
|
-
dangerouslySetInlineStyle?: {
|
|
97
|
-
__style: Record<string, string | number | null>;
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* The flex direction of the box.
|
|
101
|
-
*
|
|
102
|
-
* Responsive props:
|
|
103
|
-
* * `smDirection`
|
|
104
|
-
* * `lgDirection`
|
|
105
|
-
*
|
|
106
|
-
* @defaultValue `row`
|
|
107
|
-
*/
|
|
108
|
-
direction?: Direction;
|
|
109
|
-
/**
|
|
110
|
-
* The display property specifies the display behavior (the type of rendering box) of an element.
|
|
111
|
-
*
|
|
112
|
-
* Responsive props:
|
|
113
|
-
* * `smDisplay`
|
|
114
|
-
* * `lgDisplay`
|
|
115
|
-
*
|
|
116
|
-
* @defaultValue `block`
|
|
117
|
-
*/
|
|
118
|
-
display?: Display;
|
|
119
|
-
/**
|
|
120
|
-
* Sets the flex behavior of a flex item.
|
|
121
|
-
*
|
|
122
|
-
* * `none`: The item will not grow or shrink
|
|
123
|
-
* * `shrink`: The item will shrink if necessary (default browser behavior)
|
|
124
|
-
* * `grow`: The item will grow if necessary
|
|
125
|
-
*
|
|
126
|
-
* @defaultValue `shrink`
|
|
127
|
-
*/
|
|
128
|
-
flex?: "none" | "shrink" | "grow";
|
|
129
|
-
/**
|
|
130
|
-
* By default, flex items will all try to fit onto one line. But if you specify `flexWrap="wrap"`, the flex items will wrap onto multiple lines.
|
|
131
|
-
*
|
|
132
|
-
* @defaultValue `nowrap`
|
|
133
|
-
*/
|
|
134
|
-
flexWrap?: "wrap" | "nowrap";
|
|
135
|
-
/**
|
|
136
|
-
* The gap between the children of the box.
|
|
137
|
-
*/
|
|
138
|
-
gap?: Gap;
|
|
139
|
-
/**
|
|
140
|
-
* The id of the element.
|
|
141
|
-
*/
|
|
142
|
-
id?: string;
|
|
143
|
-
/**
|
|
144
|
-
* The alignment of the box on the cross axis on lg (960px) or larger viewports.
|
|
145
|
-
*/
|
|
146
|
-
lgAlignItems?: AlignItems;
|
|
147
|
-
/**
|
|
148
|
-
* The flex direction on lg (960px) or larger viewports.
|
|
149
|
-
*/
|
|
150
|
-
lgDirection?: Direction;
|
|
151
|
-
/**
|
|
152
|
-
* The display style on lg (960px) or larger viewports.
|
|
153
|
-
*/
|
|
154
|
-
lgDisplay?: Display;
|
|
155
|
-
/**
|
|
156
|
-
* The alignment of the box on the cross axis on lg (960px) or larger viewports.
|
|
157
|
-
*/
|
|
158
|
-
lgJustifyContent?: JustifyContent;
|
|
159
|
-
/**
|
|
160
|
-
* Margin on lg (960px) or larger viewports.
|
|
161
|
-
*/
|
|
162
|
-
lgMargin?: Margin;
|
|
163
|
-
/**
|
|
164
|
-
* Bottom margin on lg (960px) or larger viewports.
|
|
165
|
-
*/
|
|
166
|
-
lgMarginBottom?: Margin;
|
|
167
|
-
/**
|
|
168
|
-
* Margin to the right in left-to-right languages, and to the left in right-to-left languages on lg (960px) or larger viewports.
|
|
169
|
-
*/
|
|
170
|
-
lgMarginEnd?: Margin;
|
|
171
|
-
/**
|
|
172
|
-
* Margin to the left in left-to-right languages, and to the right in right-to-left languages on lg (960px) or larger viewports.
|
|
173
|
-
*/
|
|
174
|
-
lgMarginStart?: Margin;
|
|
175
|
-
/**
|
|
176
|
-
* Top margin on lg (960px) or larger viewports.
|
|
177
|
-
*/
|
|
178
|
-
lgMarginTop?: Margin;
|
|
179
|
-
/**
|
|
180
|
-
* The padding of the box on lg (960px) or larger viewports.
|
|
181
|
-
*/
|
|
182
|
-
lgPadding?: Padding;
|
|
183
|
-
/**
|
|
184
|
-
* The padding of the box on the x-axis on lg (960px) or larger viewports.
|
|
185
|
-
*/
|
|
186
|
-
lgPaddingX?: Padding;
|
|
187
|
-
/**
|
|
188
|
-
* The padding of the box on the y-axis on lg (960px) or larger viewports.
|
|
189
|
-
*/
|
|
190
|
-
lgPaddingY?: Padding;
|
|
191
|
-
/**
|
|
192
|
-
* The margin of the box.
|
|
193
|
-
*
|
|
194
|
-
* Responsive props:
|
|
195
|
-
* * `smMargin`
|
|
196
|
-
* * `lgMargin`
|
|
197
|
-
*
|
|
198
|
-
* @defaultValue 0
|
|
199
|
-
*/
|
|
200
|
-
margin?: Margin;
|
|
201
|
-
/**
|
|
202
|
-
* Bottom margin of the box.
|
|
203
|
-
*
|
|
204
|
-
* Responsive props:
|
|
205
|
-
* * `smMarginBottom`
|
|
206
|
-
* * `lgMarginBottom`
|
|
207
|
-
*
|
|
208
|
-
*/
|
|
209
|
-
marginBottom?: Margin;
|
|
210
|
-
/**
|
|
211
|
-
* Margin to the right in left-to-right languages, and to the left in right-to-left languages.
|
|
212
|
-
*
|
|
213
|
-
* Responsive props:
|
|
214
|
-
* * `smMarginEnd`
|
|
215
|
-
* * `lgMarginEnd`
|
|
216
|
-
*
|
|
217
|
-
*/
|
|
218
|
-
marginEnd?: Margin;
|
|
219
|
-
/**
|
|
220
|
-
* Margin to the left in left-to-right languages, and to the right in right-to-left languages.
|
|
221
|
-
*
|
|
222
|
-
* Responsive props:
|
|
223
|
-
* * `smMarginStart`
|
|
224
|
-
* * `lgMarginStart`
|
|
225
|
-
*
|
|
226
|
-
*/
|
|
227
|
-
marginStart?: Margin;
|
|
228
|
-
/**
|
|
229
|
-
* Top margin of the box.
|
|
230
|
-
*
|
|
231
|
-
* Responsive props:
|
|
232
|
-
* * `smMarginTop`
|
|
233
|
-
* * `lgMarginTop`
|
|
234
|
-
*
|
|
235
|
-
*/
|
|
236
|
-
marginTop?: Margin;
|
|
237
|
-
/**
|
|
238
|
-
* The maximum height of the box.
|
|
239
|
-
*/
|
|
240
|
-
maxHeight?: Dimension;
|
|
241
|
-
/**
|
|
242
|
-
* The maximum width of the box.
|
|
243
|
-
*/
|
|
244
|
-
maxWidth?: Dimension;
|
|
245
|
-
/**
|
|
246
|
-
* The minimum height of the box.
|
|
247
|
-
*/
|
|
248
|
-
minHeight?: Dimension;
|
|
249
|
-
/**
|
|
250
|
-
* The minimum width of the box.
|
|
251
|
-
*/
|
|
252
|
-
minWidth?: Dimension;
|
|
253
|
-
/**
|
|
254
|
-
* The height of the box.
|
|
255
|
-
*/
|
|
256
|
-
height?: Dimension;
|
|
257
|
-
/**
|
|
258
|
-
* The alignment of the box on the main axis.
|
|
259
|
-
*
|
|
260
|
-
* Responsive props:
|
|
261
|
-
* * `smJustifyContent`
|
|
262
|
-
* * `lgJustifyContent`
|
|
263
|
-
*
|
|
264
|
-
* @defaultValue "start"
|
|
265
|
-
*/
|
|
266
|
-
justifyContent?: JustifyContent;
|
|
267
|
-
/**
|
|
268
|
-
* How box behaves when content does not fit in the box on both axes.
|
|
269
|
-
*
|
|
270
|
-
* * `visible`
|
|
271
|
-
* * `hidden`
|
|
272
|
-
* * `scroll`
|
|
273
|
-
* * `auto`
|
|
274
|
-
* * `inherit`
|
|
275
|
-
* * `initial`
|
|
276
|
-
*
|
|
277
|
-
* @defaultValue "visible"
|
|
278
|
-
*/
|
|
279
|
-
overflow?: Overflow;
|
|
280
|
-
/**
|
|
281
|
-
* How box behaves when content does not fit in the box on the X axis.
|
|
282
|
-
*
|
|
283
|
-
* * `visible`
|
|
284
|
-
* * `hidden`
|
|
285
|
-
* * `scroll`
|
|
286
|
-
* * `auto`
|
|
287
|
-
* * `inherit`
|
|
288
|
-
* * `initial`
|
|
289
|
-
*
|
|
290
|
-
* @defaultValue "visible"
|
|
291
|
-
*/
|
|
292
|
-
overflowX?: Overflow;
|
|
293
|
-
/**
|
|
294
|
-
* How box behaves when content does not fit in the box on the Y axis.
|
|
295
|
-
*
|
|
296
|
-
* * `visible`
|
|
297
|
-
* * `hidden`
|
|
298
|
-
* * `scroll`
|
|
299
|
-
* * `auto`
|
|
300
|
-
* * `inherit`
|
|
301
|
-
* * `initial`
|
|
302
|
-
*
|
|
303
|
-
* @defaultValue "visible"
|
|
304
|
-
*/
|
|
305
|
-
overflowY?: Overflow;
|
|
306
|
-
/**
|
|
307
|
-
* The padding of the box.
|
|
308
|
-
*
|
|
309
|
-
* Responsive props:
|
|
310
|
-
* * `smPadding`
|
|
311
|
-
* * `lgPadding`
|
|
312
|
-
*
|
|
313
|
-
* @defaultValue 0
|
|
314
|
-
*/
|
|
315
|
-
padding?: Padding;
|
|
316
|
-
/**
|
|
317
|
-
* The padding of the box on the x-axis.
|
|
318
|
-
*
|
|
319
|
-
* Responsive props:
|
|
320
|
-
* * `smPaddingX`
|
|
321
|
-
* * `lgPaddingX`
|
|
322
|
-
*
|
|
323
|
-
*/
|
|
324
|
-
paddingX?: Padding;
|
|
325
|
-
/**
|
|
326
|
-
* The padding of the box on the y-axis.
|
|
327
|
-
*
|
|
328
|
-
* Responsive props:
|
|
329
|
-
* * `smPaddingY`
|
|
330
|
-
* * `lgPaddingY`
|
|
331
|
-
*/
|
|
332
|
-
paddingY?: Padding;
|
|
333
|
-
/**
|
|
334
|
-
* The position of the box.
|
|
335
|
-
*
|
|
336
|
-
* @defaultValue "static"
|
|
337
|
-
*/
|
|
338
|
-
position?: "absolute" | "fixed" | "relative" | "static" | "sticky";
|
|
339
|
-
/**
|
|
340
|
-
* The role attribute of the box.
|
|
341
|
-
*
|
|
342
|
-
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) for the list of valid roles.
|
|
343
|
-
*/
|
|
344
|
-
role?: AriaRole;
|
|
345
|
-
/**
|
|
346
|
-
* Border radius of the box.
|
|
347
|
-
*
|
|
348
|
-
* * `none`: 0px
|
|
349
|
-
* * `sm`: 8px
|
|
350
|
-
* * `md`: 12px
|
|
351
|
-
* * `lg`: 16px
|
|
352
|
-
* * `xl`: 24px
|
|
353
|
-
* * `full`: 999px
|
|
354
|
-
*
|
|
355
|
-
* @defaultValue "none"
|
|
356
|
-
*/
|
|
357
|
-
rounding?: "xl" | "lg" | "md" | "sm" | "full" | "none";
|
|
358
|
-
/**
|
|
359
|
-
* The alignment of the box on the cross axis on sm (480px) or larger viewports.
|
|
360
|
-
*/
|
|
361
|
-
smAlignItems?: AlignItems;
|
|
362
|
-
/**
|
|
363
|
-
* The flex direction on sm (480px) or larger viewports.
|
|
364
|
-
*/
|
|
365
|
-
smDirection?: Direction;
|
|
366
|
-
/**
|
|
367
|
-
* The display style on sm (480px) or larger viewports.
|
|
368
|
-
*/
|
|
369
|
-
smDisplay?: Display;
|
|
370
|
-
/**
|
|
371
|
-
* The alignment of the box on the main axis on sm (480px) or larger viewports.
|
|
372
|
-
*/
|
|
373
|
-
smJustifyContent?: JustifyContent;
|
|
374
|
-
/**
|
|
375
|
-
* Margin on sm (480px) or larger viewports.
|
|
376
|
-
*/
|
|
377
|
-
smMargin?: Margin;
|
|
378
|
-
/**
|
|
379
|
-
* Bottom margin on sm (480px) or larger viewports.
|
|
380
|
-
*/
|
|
381
|
-
smMarginBottom?: Margin;
|
|
382
|
-
/**
|
|
383
|
-
* Margin to the right in left-to-right languages, and to the left in right-to-left languages on sm (480px) or larger viewports.
|
|
384
|
-
*/
|
|
385
|
-
smMarginEnd?: Margin;
|
|
386
|
-
/**
|
|
387
|
-
* Margin to the left in left-to-right languages, and to the right in right-to-left languages on sm (480px) or larger viewports.
|
|
388
|
-
*/
|
|
389
|
-
smMarginStart?: Margin;
|
|
390
|
-
/**
|
|
391
|
-
* Top margin on sm (480px) or larger viewports.
|
|
392
|
-
*/
|
|
393
|
-
smMarginTop?: Margin;
|
|
394
|
-
/**
|
|
395
|
-
* The padding of the box on sm (480px) or larger viewports.
|
|
396
|
-
*/
|
|
397
|
-
smPadding?: Padding;
|
|
398
|
-
/**
|
|
399
|
-
* The padding of the box on the x-axis on sm (480px) or larger viewports.
|
|
400
|
-
*/
|
|
401
|
-
smPaddingX?: Padding;
|
|
402
|
-
/**
|
|
403
|
-
* The padding of the box on the y-axis on sm (480px) or larger viewports.
|
|
404
|
-
*/
|
|
405
|
-
smPaddingY?: Padding;
|
|
406
|
-
/**
|
|
407
|
-
* The width of the box.
|
|
408
|
-
*/
|
|
409
|
-
width?: Dimension;
|
|
410
|
-
};
|
|
411
|
-
/**
|
|
412
|
-
* [Box](https://cambly-syntax.vercel.app/?path=/docs/components-box--docs) is primitive design component and is used by lots of other components. It keeps details like spacing, borders and colors consistent across all of Syntax.
|
|
413
|
-
*
|
|
414
|
-
* Passthrough props:
|
|
415
|
-
* * `aria-*`
|
|
416
|
-
* * `data-testid`
|
|
417
|
-
*/
|
|
418
|
-
declare const Box: React$1.ForwardRefExoticComponent<BoxProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
419
|
-
|
|
420
|
-
declare const Color: readonly ["primary", "secondary", "tertiary", "branded", "inverse", "destructive-primary", "destructive-secondary", "destructive-tertiary", "success", "gray200", "gray700", "gray800", "gray900", "white", "inherit"];
|
|
421
|
-
declare const Size: readonly ["sm", "md", "lg"];
|
|
422
|
-
|
|
423
|
-
type ButtonProps = {
|
|
424
|
-
/**
|
|
425
|
-
* Test id for the button
|
|
426
|
-
*/
|
|
427
|
-
"data-testid"?: string;
|
|
428
|
-
/**
|
|
429
|
-
* The text to be displayed inside the button
|
|
430
|
-
*/
|
|
431
|
-
text: string;
|
|
432
|
-
/**
|
|
433
|
-
* The text to be displayed inside the button when it is in a loading state
|
|
434
|
-
*/
|
|
435
|
-
loadingText?: string;
|
|
436
|
-
/**
|
|
437
|
-
* The color of the button
|
|
438
|
-
*
|
|
439
|
-
* @defaultValue "primary"
|
|
440
|
-
*/
|
|
441
|
-
color?: "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "inverse";
|
|
442
|
-
/**
|
|
443
|
-
* The size of the button
|
|
444
|
-
*
|
|
445
|
-
* * `sm`: 32px
|
|
446
|
-
* * `md`: 40px
|
|
447
|
-
* * `lg`: 48px
|
|
448
|
-
*
|
|
449
|
-
* @defaultValue "md"
|
|
450
|
-
*/
|
|
451
|
-
size?: (typeof Size)[number];
|
|
452
|
-
/**
|
|
453
|
-
* The label to be used for accessibility
|
|
454
|
-
*/
|
|
455
|
-
accessibilityLabel?: string;
|
|
456
|
-
/**
|
|
457
|
-
* If `true`, the button will be disabled
|
|
458
|
-
*
|
|
459
|
-
* @defaultValue false
|
|
460
|
-
*/
|
|
461
|
-
disabled?: boolean;
|
|
462
|
-
/**
|
|
463
|
-
* If `true`, the button will be in a loading state
|
|
464
|
-
*
|
|
465
|
-
* @defaultValue false
|
|
466
|
-
*/
|
|
467
|
-
loading?: boolean;
|
|
468
|
-
/**
|
|
469
|
-
* If `true`, the button will take up the full width of its container
|
|
470
|
-
*
|
|
471
|
-
* @defaultValue false
|
|
472
|
-
*/
|
|
473
|
-
fullWidth?: boolean;
|
|
474
|
-
/**
|
|
475
|
-
* The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)
|
|
476
|
-
*/
|
|
477
|
-
startIcon?: React__default.ComponentType<{
|
|
478
|
-
className?: string;
|
|
479
|
-
}>;
|
|
480
|
-
/**
|
|
481
|
-
* The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)
|
|
482
|
-
*/
|
|
483
|
-
endIcon?: React__default.ComponentType<{
|
|
484
|
-
className?: string;
|
|
485
|
-
}>;
|
|
486
|
-
/**
|
|
487
|
-
* The callback to be called when the button is clicked
|
|
488
|
-
*/
|
|
489
|
-
onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
|
|
490
|
-
/**
|
|
491
|
-
* The tooltip to be displayed when the user hovers over the button
|
|
492
|
-
*/
|
|
493
|
-
tooltip?: string;
|
|
494
|
-
/**
|
|
495
|
-
* The type you want to set for the primitive <button/>
|
|
496
|
-
*/
|
|
497
|
-
type?: "button" | "submit" | "reset";
|
|
498
|
-
};
|
|
499
|
-
/**
|
|
500
|
-
* [Button](https://cambly-syntax.vercel.app/?path=/docs/components-button--docs) is used to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.
|
|
501
|
-
*/
|
|
502
|
-
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* [ButtonGroup](https://cambly-syntax.vercel.app/?path=/docs/components-buttongroup--docs) groups buttons in a row or column with consistent spacing between each button.
|
|
506
|
-
*/
|
|
507
|
-
declare const ButtonGroup: ({ orientation, size, children, }: {
|
|
508
|
-
/**
|
|
509
|
-
* The orientation of the button group
|
|
510
|
-
*
|
|
511
|
-
* @defaultValue "horizontal"
|
|
512
|
-
*/
|
|
513
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
514
|
-
/**
|
|
515
|
-
* The size of the button group defines the spacing between each button
|
|
516
|
-
*
|
|
517
|
-
* * `sm`: 8px
|
|
518
|
-
* * `md`: 12px
|
|
519
|
-
* * `lg`: 16px
|
|
520
|
-
*
|
|
521
|
-
* @defaultValue "md"
|
|
522
|
-
*/
|
|
523
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
524
|
-
/**
|
|
525
|
-
* Buttons to be rendered inside the button group
|
|
526
|
-
*/
|
|
527
|
-
children?: ReactNode;
|
|
528
|
-
}) => ReactElement;
|
|
529
|
-
|
|
530
|
-
declare const DeprecatedCardSizes: readonly ["sm", "lg"];
|
|
531
|
-
type CardType = {
|
|
532
|
-
/**
|
|
533
|
-
* Test id for the button
|
|
534
|
-
*/
|
|
535
|
-
"data-testid"?: string;
|
|
536
|
-
/**
|
|
537
|
-
* The child components to render within Card.
|
|
538
|
-
*/
|
|
539
|
-
children: JSX.Element;
|
|
540
|
-
/**
|
|
541
|
-
* The size of the card
|
|
542
|
-
*
|
|
543
|
-
* `sm`: 352px
|
|
544
|
-
* `lg`: 744px
|
|
545
|
-
*
|
|
546
|
-
* @deprecated Card width should be controlled by the parent container
|
|
547
|
-
* @defaultValue `undefined`
|
|
548
|
-
*/
|
|
549
|
-
size?: (typeof DeprecatedCardSizes)[number];
|
|
550
|
-
};
|
|
551
|
-
/**
|
|
552
|
-
* [Card](https://cambly-syntax.vercel.app/?path=/docs/components-card--docs) is a basic container component to apply consistent styling and render child components.
|
|
553
|
-
*/
|
|
554
|
-
declare function Card({ children, size, "data-testid": dataTestId, }: CardType): JSX.Element;
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* [Checkbox](https://cambly-syntax.vercel.app/?path=/docs/components-checkbox--docs) is a clickable element that will show if an option has been selected or not.
|
|
558
|
-
*/
|
|
559
|
-
declare const Checkbox: ({ checked, "data-testid": dataTestId, disabled: disabledProp, size, label, error, onChange, }: {
|
|
560
|
-
/**
|
|
561
|
-
* Whether or not the box has been clicked
|
|
562
|
-
*
|
|
563
|
-
* @defaultValue false
|
|
564
|
-
*/
|
|
565
|
-
checked: boolean;
|
|
566
|
-
/**
|
|
567
|
-
* Test id for the checkbox
|
|
568
|
-
*/
|
|
569
|
-
"data-testid"?: string | undefined;
|
|
570
|
-
/**
|
|
571
|
-
* The callback to be called when the checkbox value changes
|
|
572
|
-
*/
|
|
573
|
-
onChange: React__default.ChangeEventHandler<HTMLInputElement>;
|
|
574
|
-
/**
|
|
575
|
-
* Whether or not the box is disabled
|
|
576
|
-
*
|
|
577
|
-
* @defaultValue false
|
|
578
|
-
*/
|
|
579
|
-
disabled?: boolean | undefined;
|
|
580
|
-
/**
|
|
581
|
-
* The size of the checkbox and icon
|
|
582
|
-
*
|
|
583
|
-
* * `sm`: 16px
|
|
584
|
-
* * `md`: 24px
|
|
585
|
-
*
|
|
586
|
-
* @defaultValue "md"
|
|
587
|
-
*/
|
|
588
|
-
size?: "sm" | "md" | undefined;
|
|
589
|
-
/**
|
|
590
|
-
* The text accompanying the checkbox
|
|
591
|
-
*/
|
|
592
|
-
label: string;
|
|
593
|
-
/**
|
|
594
|
-
* Whether or not there is an error with the input
|
|
595
|
-
*
|
|
596
|
-
* @defaultValue false
|
|
597
|
-
*/
|
|
598
|
-
error?: boolean | undefined;
|
|
599
|
-
}) => ReactElement;
|
|
600
|
-
|
|
601
|
-
type ChipProps = {
|
|
602
|
-
/**
|
|
603
|
-
* Sets the initial status of this chip component.
|
|
604
|
-
* * `true` will display a grey chip.
|
|
605
|
-
* * `false` will display a premium800 color chip.
|
|
606
|
-
*
|
|
607
|
-
* @defaultValue "false"
|
|
608
|
-
*/
|
|
609
|
-
selected?: boolean;
|
|
610
|
-
/**
|
|
611
|
-
* Test id for the button
|
|
612
|
-
*/
|
|
613
|
-
"data-testid"?: string;
|
|
614
|
-
/**
|
|
615
|
-
* Size of the chip.
|
|
616
|
-
*
|
|
617
|
-
* * `sm`: 32px
|
|
618
|
-
* * `lg`: 48px
|
|
619
|
-
*
|
|
620
|
-
* @defaultValue sm
|
|
621
|
-
*/
|
|
622
|
-
size?: "sm" | "lg";
|
|
623
|
-
/**
|
|
624
|
-
* The text to be displayed on the chip
|
|
625
|
-
*/
|
|
626
|
-
text: string;
|
|
627
|
-
/**
|
|
628
|
-
* The callback to be called when the chip is clicked
|
|
629
|
-
*/
|
|
630
|
-
onChange: React__default.MouseEventHandler<HTMLButtonElement>;
|
|
631
|
-
/**
|
|
632
|
-
* The icon to be displayed.
|
|
633
|
-
*/
|
|
634
|
-
icon?: React__default.ComponentType<{
|
|
635
|
-
className?: string;
|
|
636
|
-
}>;
|
|
637
|
-
};
|
|
638
|
-
/**
|
|
639
|
-
* [Chip](https://cambly-syntax.vercel.app/?path=/docs/components-chip--docs) is used to show status (selected/not selected) like a toggle button.
|
|
640
|
-
*/
|
|
641
|
-
declare const Chip: React__default.ForwardRefExoticComponent<ChipProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
642
|
-
|
|
643
|
-
/**
|
|
644
|
-
* [Divider](https://cambly-syntax.vercel.app/?path=/docs/components-divider--docs) is a thin horizontal line to group content in lists and layouts.
|
|
645
|
-
*/
|
|
646
|
-
declare function Divider(): React.ReactElement;
|
|
647
|
-
declare namespace Divider {
|
|
648
|
-
var displayName: string;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* [Heading](https://cambly-syntax.vercel.app/?path=/docs/components-heading--docs) enforces a consistent style & accessibility best practices for headings.
|
|
653
|
-
*/
|
|
654
|
-
declare const Heading: ({ align, as, children, color, "data-testid": dataTestId, lineClamp, size, }: {
|
|
655
|
-
/**
|
|
656
|
-
* Aligns the text to the left, right, or center of the container.
|
|
657
|
-
* * `start` and `end` will align the text to the left or right of the container depending on the locale.
|
|
658
|
-
* * `forceLeft` and `forceRight` will align the text to the left or right of the container regardless of the locale (should be used sparingly).
|
|
659
|
-
*
|
|
660
|
-
* @defaultValue "start"
|
|
661
|
-
*/
|
|
662
|
-
align?: "start" | "end" | "forceLeft" | "center" | "forceRight" | undefined;
|
|
663
|
-
/**
|
|
664
|
-
* DOM element to render as.
|
|
665
|
-
*
|
|
666
|
-
* @defaultValue "h1"
|
|
667
|
-
*/
|
|
668
|
-
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
669
|
-
/**
|
|
670
|
-
* The text to be rendered
|
|
671
|
-
*/
|
|
672
|
-
children?: ReactNode;
|
|
673
|
-
/**
|
|
674
|
-
* The color of the text.
|
|
675
|
-
*
|
|
676
|
-
* @defaultValue "gray900"
|
|
677
|
-
*/
|
|
678
|
-
color?: "gray200" | "gray900" | "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "inverse" | "gray700" | "gray800" | "white" | "inherit" | undefined;
|
|
679
|
-
/**
|
|
680
|
-
* Test id for the text.
|
|
681
|
-
*/
|
|
682
|
-
"data-testid"?: string | undefined;
|
|
683
|
-
/**
|
|
684
|
-
* The number of lines we should truncate the text at
|
|
685
|
-
*/
|
|
686
|
-
lineClamp?: number | undefined;
|
|
687
|
-
/**
|
|
688
|
-
* Size of the text.
|
|
689
|
-
*
|
|
690
|
-
* * `500`: 20px
|
|
691
|
-
* * `600`: 28px
|
|
692
|
-
* * `700`: 40px
|
|
693
|
-
* * `800`: 64px
|
|
694
|
-
*
|
|
695
|
-
* @defaultValue 500
|
|
696
|
-
*/
|
|
697
|
-
size?: 500 | 600 | 700 | 800 | undefined;
|
|
698
|
-
}) => ReactElement;
|
|
699
|
-
|
|
700
|
-
type IconButtonProps = {
|
|
701
|
-
/**
|
|
702
|
-
* The color of the button
|
|
703
|
-
*
|
|
704
|
-
* @defaultValue "primary"
|
|
705
|
-
*/
|
|
706
|
-
color?: (typeof Color)[number];
|
|
707
|
-
/**
|
|
708
|
-
* Test id for the button
|
|
709
|
-
*/
|
|
710
|
-
"data-testid"?: string;
|
|
711
|
-
/**
|
|
712
|
-
* The size of the button
|
|
713
|
-
*
|
|
714
|
-
* * `sm`: 32px
|
|
715
|
-
* * `md`: 40px
|
|
716
|
-
* * `lg`: 48px
|
|
717
|
-
*
|
|
718
|
-
* @defaultValue "md"
|
|
719
|
-
*/
|
|
720
|
-
size?: (typeof Size)[number];
|
|
721
|
-
/**
|
|
722
|
-
* The label to be used for accessibility
|
|
723
|
-
*/
|
|
724
|
-
accessibilityLabel: string;
|
|
725
|
-
/**
|
|
726
|
-
* The icon to be displayed. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)
|
|
727
|
-
*/
|
|
728
|
-
icon: React__default.ComponentType<{
|
|
729
|
-
className?: string;
|
|
730
|
-
}>;
|
|
731
|
-
/**
|
|
732
|
-
* If `true`, the button will be disabled
|
|
733
|
-
*
|
|
734
|
-
* @defaultValue false
|
|
735
|
-
*/
|
|
736
|
-
disabled?: boolean;
|
|
737
|
-
/**
|
|
738
|
-
* The callback to be called when the button is clicked
|
|
739
|
-
*/
|
|
740
|
-
onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
|
|
741
|
-
/**
|
|
742
|
-
* The tooltip to be displayed when the user hovers over the button
|
|
743
|
-
*/
|
|
744
|
-
tooltip?: string;
|
|
745
|
-
};
|
|
746
|
-
/**
|
|
747
|
-
* [IconButton](https://cambly-syntax.vercel.app/?path=/docs/components-iconbutton--docs) is a clickable element that is used to perform an action.
|
|
748
|
-
*/
|
|
749
|
-
declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
750
|
-
|
|
751
|
-
type LinkButtonProps = {
|
|
752
|
-
/**
|
|
753
|
-
* Test id for the button
|
|
754
|
-
*/
|
|
755
|
-
"data-testid"?: string;
|
|
756
|
-
/**
|
|
757
|
-
* The text to be displayed inside the button
|
|
758
|
-
*/
|
|
759
|
-
text: string;
|
|
760
|
-
/**
|
|
761
|
-
* The link that the LinkButton should route to.
|
|
762
|
-
*
|
|
763
|
-
*/
|
|
764
|
-
href?: string;
|
|
765
|
-
/**
|
|
766
|
-
* The target attribute specifies where to open the linked document.
|
|
767
|
-
*
|
|
768
|
-
*/
|
|
769
|
-
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
770
|
-
/**
|
|
771
|
-
* The rel attribute specifies the relationship between the document and the link.
|
|
772
|
-
*
|
|
773
|
-
*/
|
|
774
|
-
rel?: HtmlHTMLAttributes<HTMLAnchorElement>["rel"];
|
|
775
|
-
/**
|
|
776
|
-
* The color of the button
|
|
777
|
-
*
|
|
778
|
-
* @defaultValue "primary"
|
|
779
|
-
*/
|
|
780
|
-
color?: "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success";
|
|
781
|
-
/**
|
|
782
|
-
* The size of the button
|
|
783
|
-
*
|
|
784
|
-
* * `sm`: 32px
|
|
785
|
-
* * `md`: 40px
|
|
786
|
-
* * `lg`: 48px
|
|
787
|
-
*
|
|
788
|
-
* @defaultValue "md"
|
|
789
|
-
*/
|
|
790
|
-
size?: (typeof Size)[number];
|
|
791
|
-
/**
|
|
792
|
-
* If `true`, the button will take up the full width of its container
|
|
793
|
-
*
|
|
794
|
-
* @defaultValue false
|
|
795
|
-
*/
|
|
796
|
-
fullWidth?: boolean;
|
|
797
|
-
/**
|
|
798
|
-
* The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)
|
|
799
|
-
*/
|
|
800
|
-
startIcon?: React__default.ComponentType<{
|
|
801
|
-
className?: string;
|
|
802
|
-
}>;
|
|
803
|
-
/**
|
|
804
|
-
* The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)
|
|
805
|
-
*/
|
|
806
|
-
endIcon?: React__default.ComponentType<{
|
|
807
|
-
className?: string;
|
|
808
|
-
}>;
|
|
809
|
-
/**
|
|
810
|
-
* An optional onClick event. This is used for certain wrapper's support (such as react-router-dom).
|
|
811
|
-
*/
|
|
812
|
-
onClick?: React__default.MouseEventHandler<HTMLAnchorElement>;
|
|
813
|
-
};
|
|
814
|
-
/**
|
|
815
|
-
* [LinkButton](https://cambly-syntax.vercel.app/?path=/docs/components-linkbutton--docs) is a "variation" of Button that should look identical to Button, but should be used to render links instead.
|
|
816
|
-
*/
|
|
817
|
-
declare const LinkButton: React__default.ForwardRefExoticComponent<LinkButtonProps & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
818
|
-
|
|
819
|
-
declare const sizeWidth: {
|
|
820
|
-
readonly sm: 400;
|
|
821
|
-
readonly lg: 600;
|
|
822
|
-
};
|
|
823
|
-
/**
|
|
824
|
-
* [Modal](https://cambly-syntax.vercel.app/?path=/docs/components-modal--docs) is a dialog that appears on top of the main content and locks user interaction within the modal.
|
|
825
|
-
*
|
|
826
|
-
```
|
|
827
|
-
const [showModal, setShowModal] = useState(false)
|
|
828
|
-
|
|
829
|
-
return (
|
|
830
|
-
<>
|
|
831
|
-
{showModal && <Modal
|
|
832
|
-
header="header text"
|
|
833
|
-
onDismiss={() => setShowModal(false)}
|
|
834
|
-
footer={
|
|
835
|
-
<>
|
|
836
|
-
<Button
|
|
837
|
-
text="Cancel"
|
|
838
|
-
color="secondary"
|
|
839
|
-
onClick={() => {}}
|
|
840
|
-
/>
|
|
841
|
-
<Button
|
|
842
|
-
text="Confirm"
|
|
843
|
-
onClick={() => {}}
|
|
844
|
-
/>
|
|
845
|
-
</>
|
|
846
|
-
}
|
|
847
|
-
>
|
|
848
|
-
<Typography>
|
|
849
|
-
Body text goes here!
|
|
850
|
-
</Typography>
|
|
851
|
-
</Modal> }
|
|
852
|
-
</>
|
|
853
|
-
)
|
|
854
|
-
```
|
|
855
|
-
*/
|
|
856
|
-
declare function Modal({ header, children, image, onDismiss, footer, accessibilityCloseLabel, size, zIndex, "data-testid": dataTestId, }: {
|
|
857
|
-
/**
|
|
858
|
-
* The modal's main content. Should typically take in `Typography`'d text.
|
|
859
|
-
*/
|
|
860
|
-
children: JSX.Element;
|
|
861
|
-
/**
|
|
862
|
-
* The header inside a modal as a string.
|
|
863
|
-
*/
|
|
864
|
-
header: string;
|
|
865
|
-
/**
|
|
866
|
-
* What the X button (or clicking out of the modal area) does.
|
|
867
|
-
* Typically used for closing the Modal
|
|
868
|
-
*/
|
|
869
|
-
onDismiss: () => void;
|
|
870
|
-
/**
|
|
871
|
-
* The optional image rendered above the Modal.
|
|
872
|
-
* Image size should be 400w x 200h.
|
|
873
|
-
* If images aren't that sized, should ask design to give another image.
|
|
874
|
-
*/
|
|
875
|
-
image?: JSX.Element;
|
|
876
|
-
/**
|
|
877
|
-
* The footer for the bottom area of the Modal. Typically used for rendering buttons.
|
|
878
|
-
* * Use Syntax `Button` and pass it into footer.
|
|
879
|
-
* * If one button, just pass it in. If two, wrap in a React fragment (`<> </>`)
|
|
880
|
-
* * If two(2) buttons, put primary button _second_.
|
|
881
|
-
*
|
|
882
|
-
<>
|
|
883
|
-
<Button
|
|
884
|
-
text="Cancel"
|
|
885
|
-
color="secondary"
|
|
886
|
-
onClick={() => {}}
|
|
887
|
-
/>
|
|
888
|
-
<Button
|
|
889
|
-
text="Confirm"
|
|
890
|
-
onClick={() => {}}
|
|
891
|
-
/>
|
|
892
|
-
</>
|
|
893
|
-
*/
|
|
894
|
-
footer?: JSX.Element;
|
|
895
|
-
/**
|
|
896
|
-
* The accessibilty text on the close button.
|
|
897
|
-
* (Sets the aria-label of the button)
|
|
898
|
-
*
|
|
899
|
-
*
|
|
900
|
-
* @defaultValue close modal
|
|
901
|
-
*/
|
|
902
|
-
accessibilityCloseLabel?: string;
|
|
903
|
-
/**
|
|
904
|
-
* The size of the card
|
|
905
|
-
*
|
|
906
|
-
* * `sm`: 400px
|
|
907
|
-
* * `lg`: 600px
|
|
908
|
-
*
|
|
909
|
-
*
|
|
910
|
-
* @defaultValue sm
|
|
911
|
-
*/
|
|
912
|
-
size?: keyof typeof sizeWidth;
|
|
913
|
-
/**
|
|
914
|
-
* The z-index for the modal.
|
|
915
|
-
* Typically used if there are other things on the page with higher z-index and you need this overlayed on top.
|
|
916
|
-
*
|
|
917
|
-
* @defaultValue 0
|
|
918
|
-
*/
|
|
919
|
-
zIndex?: number;
|
|
920
|
-
/**
|
|
921
|
-
* Test id for the modal
|
|
922
|
-
*/
|
|
923
|
-
"data-testid"?: string;
|
|
924
|
-
}): ReactElement;
|
|
925
|
-
declare namespace Modal {
|
|
926
|
-
var displayName: string;
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
/**
|
|
930
|
-
* [RadioButton](https://cambly-syntax.vercel.app/?path=/docs/components-radiobutton--docs) is a radio button with accompanying text
|
|
931
|
-
*/
|
|
932
|
-
declare const RadioButton: ({ checked, "data-testid": dataTestId, disabled: disabledProp, error, id, label, name, onChange, size, value, }: {
|
|
933
|
-
/**
|
|
934
|
-
* Whether or not the radio button is checked
|
|
935
|
-
*
|
|
936
|
-
* @defaultValue false
|
|
937
|
-
*/
|
|
938
|
-
checked?: boolean | undefined;
|
|
939
|
-
/**
|
|
940
|
-
* Test id for the radio button
|
|
941
|
-
*/
|
|
942
|
-
"data-testid"?: string | undefined;
|
|
943
|
-
/**
|
|
944
|
-
* Whether or not the radio button is disabled
|
|
945
|
-
*
|
|
946
|
-
* @defaultValue false
|
|
947
|
-
*/
|
|
948
|
-
disabled?: boolean | undefined;
|
|
949
|
-
/**
|
|
950
|
-
* Whether to show error color schema
|
|
951
|
-
*
|
|
952
|
-
* @defaultValue false
|
|
953
|
-
*/
|
|
954
|
-
error?: boolean | undefined;
|
|
955
|
-
/**
|
|
956
|
-
* Id for the the radio button
|
|
957
|
-
*/
|
|
958
|
-
id?: string | undefined;
|
|
959
|
-
/**
|
|
960
|
-
* Value to show end user
|
|
961
|
-
*/
|
|
962
|
-
label: string;
|
|
963
|
-
/**
|
|
964
|
-
* The name of the grouping the radio buttons are in
|
|
965
|
-
*/
|
|
966
|
-
name: string;
|
|
967
|
-
/**
|
|
968
|
-
* The callback to be called when the radio button is clicked
|
|
969
|
-
*/
|
|
970
|
-
onChange: React__default.ChangeEventHandler<HTMLInputElement>;
|
|
971
|
-
/**
|
|
972
|
-
* Size of the components
|
|
973
|
-
*
|
|
974
|
-
* * `sm`: 16px
|
|
975
|
-
* * `md`: 24px
|
|
976
|
-
*
|
|
977
|
-
* @defaultValue "md"
|
|
978
|
-
*/
|
|
979
|
-
size?: "sm" | "md" | undefined;
|
|
980
|
-
/**
|
|
981
|
-
* Value of the selected radio option
|
|
982
|
-
*/
|
|
983
|
-
value: string | number;
|
|
984
|
-
}) => ReactElement;
|
|
985
|
-
|
|
986
|
-
/**
|
|
987
|
-
* [SelectList](https://cambly-syntax.vercel.app/?path=/docs/components-selectlist--docs) is a dropdown menu that allows users to select one option from a list.
|
|
988
|
-
*/
|
|
989
|
-
declare function SelectList({ children, "data-testid": dataTestId, disabled: disabledProp, errorText, helperText, id, label, onChange, onClick, placeholderText, selectedValue, size, }: {
|
|
990
|
-
/**
|
|
991
|
-
* One or more SelectList.Option components.
|
|
992
|
-
*/
|
|
993
|
-
children: ReactNode;
|
|
994
|
-
/**
|
|
995
|
-
* Test id for the select element
|
|
996
|
-
*/
|
|
997
|
-
"data-testid"?: string;
|
|
998
|
-
/**
|
|
999
|
-
* true if the select dropdown is disabled
|
|
1000
|
-
* @defaultValue false
|
|
1001
|
-
*/
|
|
1002
|
-
disabled?: boolean;
|
|
1003
|
-
/**
|
|
1004
|
-
* Callback to be called when select is clicked
|
|
1005
|
-
*/
|
|
1006
|
-
onClick?: React__default.MouseEventHandler<HTMLSelectElement>;
|
|
1007
|
-
/**
|
|
1008
|
-
* Text shown below select box if there is an input error.
|
|
1009
|
-
*/
|
|
1010
|
-
errorText?: string;
|
|
1011
|
-
/**
|
|
1012
|
-
* Text shown below select box
|
|
1013
|
-
*/
|
|
1014
|
-
helperText?: string;
|
|
1015
|
-
/**
|
|
1016
|
-
* Id of the select element
|
|
1017
|
-
*/
|
|
1018
|
-
id?: string;
|
|
1019
|
-
/**
|
|
1020
|
-
* Text shown above select box
|
|
1021
|
-
*/
|
|
1022
|
-
label: string;
|
|
1023
|
-
/**
|
|
1024
|
-
* The callback to be called when an option is selected
|
|
1025
|
-
*/
|
|
1026
|
-
onChange: React__default.ChangeEventHandler<HTMLSelectElement>;
|
|
1027
|
-
/**
|
|
1028
|
-
* Text showing in select box if no option has been chosen.
|
|
1029
|
-
* We should always have a placeholder unless there is a default option selected
|
|
1030
|
-
*/
|
|
1031
|
-
placeholderText?: string;
|
|
1032
|
-
/**
|
|
1033
|
-
* Value of the currently selected option
|
|
1034
|
-
*/
|
|
1035
|
-
selectedValue?: string;
|
|
1036
|
-
/**
|
|
1037
|
-
* Size of the select box
|
|
1038
|
-
* * `sm`: 32px
|
|
1039
|
-
* * `md`: 40px
|
|
1040
|
-
* * `lg`: 48px
|
|
1041
|
-
*
|
|
1042
|
-
* @defaultValue "md"
|
|
1043
|
-
*/
|
|
1044
|
-
size?: "sm" | "md" | "lg";
|
|
1045
|
-
}): ReactElement;
|
|
1046
|
-
declare namespace SelectList {
|
|
1047
|
-
var Option: ({ "data-testid": dataTestId, value, label, disabled, }: {
|
|
1048
|
-
"data-testid"?: string | undefined;
|
|
1049
|
-
value: string;
|
|
1050
|
-
label: string;
|
|
1051
|
-
disabled?: boolean | undefined;
|
|
1052
|
-
}) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>>;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
type TapAreaProps = {
|
|
1056
|
-
/**
|
|
1057
|
-
* The children to be rendered inside the tap area.
|
|
1058
|
-
*/
|
|
1059
|
-
children?: ReactNode;
|
|
1060
|
-
/**
|
|
1061
|
-
* The label to be used for accessibility
|
|
1062
|
-
*/
|
|
1063
|
-
accessibilityLabel?: string;
|
|
1064
|
-
/**
|
|
1065
|
-
* Test id for the tap area
|
|
1066
|
-
*/
|
|
1067
|
-
"data-testid"?: string;
|
|
1068
|
-
/**
|
|
1069
|
-
* If `true`, the tap area will be disabled
|
|
1070
|
-
*
|
|
1071
|
-
* @defaultValue false
|
|
1072
|
-
*/
|
|
1073
|
-
disabled?: boolean;
|
|
1074
|
-
/**
|
|
1075
|
-
* If `true`, the tap area will be full width
|
|
1076
|
-
*/
|
|
1077
|
-
fullWidth?: boolean;
|
|
1078
|
-
/**
|
|
1079
|
-
* The callback to be called when the tap area is clicked
|
|
1080
|
-
*/
|
|
1081
|
-
onClick: (event: React__default.SyntheticEvent<HTMLDivElement>) => void;
|
|
1082
|
-
/**
|
|
1083
|
-
* Border radius of the tap area.
|
|
1084
|
-
*
|
|
1085
|
-
* * `none`: 0px
|
|
1086
|
-
* * `sm`: 8px
|
|
1087
|
-
* * `md`: 12px
|
|
1088
|
-
* * `lg`: 16px
|
|
1089
|
-
* * `xl`: 32px
|
|
1090
|
-
* * `full`: 999px
|
|
1091
|
-
*
|
|
1092
|
-
* @defaultValue "none"
|
|
1093
|
-
*/
|
|
1094
|
-
rounding?: "xl" | "lg" | "md" | "sm" | "full" | "none";
|
|
1095
|
-
/**
|
|
1096
|
-
* The tab index of the tap area
|
|
1097
|
-
*/
|
|
1098
|
-
tabIndex?: 0 | -1;
|
|
1099
|
-
};
|
|
1100
|
-
/**
|
|
1101
|
-
* [TapArea](https://cambly-syntax.vercel.app/?path=/docs/components-taparea--docs) allows components to be clickable and touchable in an accessible way.
|
|
1102
|
-
*/
|
|
1103
|
-
declare const TapArea: React__default.ForwardRefExoticComponent<TapAreaProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1104
|
-
|
|
1105
|
-
/**
|
|
1106
|
-
* [TextField](https://cambly-syntax.vercel.app/?path=/docs/components-textfield--docs) is a component that allows users to enter text.
|
|
1107
|
-
*/
|
|
1108
|
-
declare function TextField({ autoComplete, "data-testid": dataTestId, disabled: disabledProp, errorText, helperText, id, label, onChange, placeholder, size, type, value, }: {
|
|
1109
|
-
/**
|
|
1110
|
-
* The autocomplete attribute specifies whether or not an input field should have autocomplete enabled.
|
|
1111
|
-
*
|
|
1112
|
-
* Feel free to add new values from the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) as needed
|
|
1113
|
-
*/
|
|
1114
|
-
autoComplete?: "current-password" | "new-password" | "off" | "on" | "email";
|
|
1115
|
-
/**
|
|
1116
|
-
* A data-testid to make querying for the TextField easier.
|
|
1117
|
-
*/
|
|
1118
|
-
"data-testid"?: string;
|
|
1119
|
-
/**
|
|
1120
|
-
* If true, the TextField will be disabled.
|
|
1121
|
-
*
|
|
1122
|
-
* @defaultValue false
|
|
1123
|
-
*/
|
|
1124
|
-
disabled?: boolean;
|
|
1125
|
-
/**
|
|
1126
|
-
* Text shown below TextField if there is an input error.
|
|
1127
|
-
*/
|
|
1128
|
-
errorText?: string;
|
|
1129
|
-
/**
|
|
1130
|
-
* Informative helper text shown below TextField
|
|
1131
|
-
*/
|
|
1132
|
-
helperText?: string;
|
|
1133
|
-
/**
|
|
1134
|
-
* TextField id, if not provided, a unique id will be generated
|
|
1135
|
-
*/
|
|
1136
|
-
id?: string;
|
|
1137
|
-
/**
|
|
1138
|
-
* TextField visible label
|
|
1139
|
-
*/
|
|
1140
|
-
label: string;
|
|
1141
|
-
/**
|
|
1142
|
-
* The callback to be called the input changes
|
|
1143
|
-
*/
|
|
1144
|
-
onChange: React__default.ChangeEventHandler<HTMLInputElement>;
|
|
1145
|
-
/**
|
|
1146
|
-
* Optional TextField placeholder text
|
|
1147
|
-
*/
|
|
1148
|
-
placeholder?: string;
|
|
1149
|
-
/**
|
|
1150
|
-
* Size of the TextField
|
|
1151
|
-
* * `sm`: 32px
|
|
1152
|
-
* * `md`: 40px
|
|
1153
|
-
* * `lg`: 48px
|
|
1154
|
-
*
|
|
1155
|
-
* @defaultValue "md"
|
|
1156
|
-
*/
|
|
1157
|
-
size?: "sm" | "md" | "lg";
|
|
1158
|
-
/**
|
|
1159
|
-
* Input type of the TextField
|
|
1160
|
-
*
|
|
1161
|
-
* See [full list of input types](https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types)
|
|
1162
|
-
*/
|
|
1163
|
-
type?: HTMLInputTypeAttribute;
|
|
1164
|
-
/**
|
|
1165
|
-
* Value of the TextField
|
|
1166
|
-
*/
|
|
1167
|
-
value: string;
|
|
1168
|
-
}): ReactElement;
|
|
1169
|
-
|
|
1170
|
-
/**
|
|
1171
|
-
* [Typography](https://cambly-syntax.vercel.app/?path=/docs/components-typography--docs) is a component that renders text.
|
|
1172
|
-
*/
|
|
1173
|
-
declare const Typography: ({ align, as, children, color, "data-testid": dataTestId, inline, lineClamp, size, tooltip, transform, underline, weight, }: {
|
|
1174
|
-
/**
|
|
1175
|
-
* Aligns the text to the left, right, or center of the container.
|
|
1176
|
-
* * `start` and `end` will align the text to the left or right of the container depending on the locale.
|
|
1177
|
-
* * `forceLeft` and `forceRight` will align the text to the left or right of the container regardless of the locale (should be used sparingly).
|
|
1178
|
-
*
|
|
1179
|
-
* @defaultValue "start"
|
|
1180
|
-
*/
|
|
1181
|
-
align?: "start" | "end" | "forceLeft" | "center" | "forceRight" | undefined;
|
|
1182
|
-
/**
|
|
1183
|
-
* DOM element to render as.
|
|
1184
|
-
*
|
|
1185
|
-
* @defaultValue "div"
|
|
1186
|
-
*/
|
|
1187
|
-
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | undefined;
|
|
1188
|
-
/**
|
|
1189
|
-
* The text to be rendered
|
|
1190
|
-
*/
|
|
1191
|
-
children?: ReactNode;
|
|
1192
|
-
/**
|
|
1193
|
-
* The color of the text.
|
|
1194
|
-
*
|
|
1195
|
-
* @defaultValue "gray900"
|
|
1196
|
-
*/
|
|
1197
|
-
color?: "gray200" | "gray900" | "primary" | "secondary" | "tertiary" | "destructive-primary" | "destructive-secondary" | "destructive-tertiary" | "branded" | "success" | "inverse" | "gray700" | "gray800" | "white" | "inherit" | undefined;
|
|
1198
|
-
/**
|
|
1199
|
-
* Test id for the text
|
|
1200
|
-
*/
|
|
1201
|
-
"data-testid"?: string | undefined;
|
|
1202
|
-
/**
|
|
1203
|
-
* Whether the text should flow inline with other elements.
|
|
1204
|
-
*
|
|
1205
|
-
* @defaultValue false
|
|
1206
|
-
*/
|
|
1207
|
-
inline?: boolean | undefined;
|
|
1208
|
-
/**
|
|
1209
|
-
* The number of lines we should truncate the text at
|
|
1210
|
-
*/
|
|
1211
|
-
lineClamp?: number | undefined;
|
|
1212
|
-
/**
|
|
1213
|
-
* Size of the text.
|
|
1214
|
-
*
|
|
1215
|
-
* * `100`: 12px
|
|
1216
|
-
* * `200`: 14px
|
|
1217
|
-
* * `300`: 16px
|
|
1218
|
-
* * `500`: 20px
|
|
1219
|
-
* * `600`: 28px
|
|
1220
|
-
* * `700`: 40px
|
|
1221
|
-
* * `800`: 64px
|
|
1222
|
-
*
|
|
1223
|
-
* @defaultValue 200
|
|
1224
|
-
*/
|
|
1225
|
-
size?: 500 | 600 | 700 | 800 | 100 | 200 | 300 | undefined;
|
|
1226
|
-
/**
|
|
1227
|
-
* The tooltip to be displayed when the user hovers the text
|
|
1228
|
-
*/
|
|
1229
|
-
tooltip?: string | undefined;
|
|
1230
|
-
/**
|
|
1231
|
-
* Whether the text should be transformed to uppercase.
|
|
1232
|
-
*
|
|
1233
|
-
* @defaultValue "none"
|
|
1234
|
-
*/
|
|
1235
|
-
transform?: "none" | "uppercase" | undefined;
|
|
1236
|
-
/**
|
|
1237
|
-
* Whether the text has an underline.
|
|
1238
|
-
*
|
|
1239
|
-
* @defaultValue false
|
|
1240
|
-
*/
|
|
1241
|
-
underline?: boolean | undefined;
|
|
1242
|
-
/**
|
|
1243
|
-
* Indicates the boldness of the text.
|
|
1244
|
-
*
|
|
1245
|
-
* @defaultValue "regular"
|
|
1246
|
-
*/
|
|
1247
|
-
weight?: "regular" | "interactive" | "semiBold" | "bold" | "heavy" | undefined;
|
|
1248
|
-
}) => ReactElement;
|
|
1249
|
-
|
|
1250
|
-
export { Avatar, Badge, Box, Button, ButtonGroup, Card, Checkbox, Chip, Divider, Heading, IconButton, LinkButton, Modal, RadioButton, SelectList, TapArea, TextField, Typography };
|
|
1
|
+
export { default as Avatar } from './Avatar/Avatar.js';
|
|
2
|
+
export { default as Badge } from './Badge/Badge.js';
|
|
3
|
+
export { default as Box } from './Box/Box.js';
|
|
4
|
+
export { default as Button } from './Button/Button.js';
|
|
5
|
+
export { default as ButtonGroup } from './ButtonGroup/ButtonGroup.js';
|
|
6
|
+
export { default as Card } from './Card/Card.js';
|
|
7
|
+
export { default as Checkbox } from './Checkbox/Checkbox.js';
|
|
8
|
+
export { default as Chip } from './Chip/Chip.js';
|
|
9
|
+
export { default as Divider } from './Divider/Divider.js';
|
|
10
|
+
export { default as Heading } from './Heading/Heading.js';
|
|
11
|
+
export { default as IconButton } from './IconButton/IconButton.js';
|
|
12
|
+
export { default as LinkButton } from './LinkButton/LinkButton.js';
|
|
13
|
+
export { default as Modal } from './Modal/Modal.js';
|
|
14
|
+
export { default as RadioButton } from './RadioButton/RadioButton.js';
|
|
15
|
+
export { default as SelectList } from './SelectList/SelectList.js';
|
|
16
|
+
export { default as TapArea } from './TapArea/TapArea.js';
|
|
17
|
+
export { default as TextField } from './TextField/TextField.js';
|
|
18
|
+
export { default as Typography } from './Typography/Typography.js';
|
|
19
|
+
import 'react';
|
|
20
|
+
import './colors/allColors.js';
|
|
21
|
+
import './constants.js';
|