@cambly/syntax-core 15.6.0 → 16.0.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/Badge/Badge.cjs +4 -4
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +3 -3
- package/dist/Button/Button.cjs +5 -5
- package/dist/Button/Button.js +4 -4
- package/dist/Button/constants/iconSize.cjs +4 -2
- package/dist/Button/constants/iconSize.d.ts +7 -2
- package/dist/Button/constants/iconSize.js +5 -3
- package/dist/Card/Card.cjs +2 -2
- package/dist/Card/Card.d.ts +3 -2
- package/dist/Card/Card.js +3 -3
- package/dist/Checkbox/Checkbox.cjs +4 -4
- package/dist/Checkbox/Checkbox.js +3 -3
- package/dist/Chip/Chip.cjs +4 -4
- package/dist/Chip/Chip.js +3 -3
- package/dist/Dialog/ModalDialog.cjs +4 -3
- package/dist/Dialog/ModalDialog.css +100 -11
- package/dist/Dialog/ModalDialog.css.map +1 -1
- package/dist/Dialog/ModalDialog.js +3 -2
- package/dist/Heading/Heading.cjs +4 -4
- package/dist/Heading/Heading.js +3 -3
- package/dist/Icon/Icon.cjs +3 -3
- package/dist/Icon/Icon.css +29 -5
- package/dist/Icon/Icon.css.map +1 -1
- package/dist/Icon/Icon.d.ts +12 -6
- package/dist/Icon/Icon.js +2 -2
- package/dist/IconButton/IconButton.cjs +3 -2
- package/dist/IconButton/IconButton.css +100 -11
- package/dist/IconButton/IconButton.css.map +1 -1
- package/dist/IconButton/IconButton.js +2 -1
- package/dist/LinkButton/LinkButton.cjs +5 -5
- package/dist/LinkButton/LinkButton.js +4 -4
- package/dist/Modal/Modal.cjs +7 -6
- package/dist/Modal/Modal.css +100 -11
- package/dist/Modal/Modal.css.map +1 -1
- package/dist/Modal/Modal.js +6 -5
- package/dist/Popover/Popover.cjs +5 -4
- package/dist/Popover/Popover.css +100 -11
- package/dist/Popover/Popover.css.map +1 -1
- package/dist/Popover/Popover.js +4 -3
- package/dist/RadioButton/RadioButton.cjs +4 -4
- package/dist/RadioButton/RadioButton.js +3 -3
- package/dist/RichSelect/RichSelectBox.cjs +11 -11
- package/dist/RichSelect/RichSelectBox.js +10 -10
- package/dist/RichSelect/RichSelectChip.cjs +5 -5
- package/dist/RichSelect/RichSelectChip.js +4 -4
- package/dist/RichSelect/RichSelectList.cjs +16 -16
- package/dist/RichSelect/RichSelectList.css +100 -99
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.js +15 -15
- package/dist/RichSelect/RichSelectRadioButton.cjs +5 -5
- package/dist/RichSelect/RichSelectRadioButton.js +4 -4
- package/dist/RichSelect/RichSelectSection.cjs +4 -4
- package/dist/RichSelect/RichSelectSection.js +3 -3
- package/dist/SelectList/SelectList.cjs +5 -5
- package/dist/SelectList/SelectList.js +4 -4
- package/dist/Tabs/TabButton.cjs +5 -5
- package/dist/Tabs/TabButton.js +4 -4
- package/dist/Tabs/TabInternal.cjs +4 -4
- package/dist/Tabs/TabInternal.js +3 -3
- package/dist/Tabs/TabLink.cjs +5 -5
- package/dist/Tabs/TabLink.js +4 -4
- package/dist/Tabs/Tabs.cjs +7 -7
- package/dist/Tabs/Tabs.js +6 -6
- package/dist/TextArea/TextArea.cjs +4 -4
- package/dist/TextArea/TextArea.css +9 -9
- package/dist/TextArea/TextArea.css.map +1 -1
- package/dist/TextArea/TextArea.js +3 -3
- package/dist/TextField/TextField.cjs +4 -4
- package/dist/TextField/TextField.css +9 -9
- package/dist/TextField/TextField.css.map +1 -1
- package/dist/TextField/TextField.js +3 -3
- package/dist/Tooltip/Tooltip.cjs +4 -4
- package/dist/Tooltip/Tooltip.js +3 -3
- package/dist/Typography/Typography.cjs +3 -3
- package/dist/Typography/Typography.js +2 -2
- package/dist/__chunks/{4X7ZC3WT.js → 2GCKYKF3.js} +9 -8
- package/dist/__chunks/2GCKYKF3.js.map +1 -0
- package/dist/__chunks/{JEP2SN7W.cjs → 2PWZPH3R.cjs} +3 -3
- package/dist/__chunks/{LNLOBEMH.cjs → 32CNLC3O.cjs} +3 -3
- package/dist/__chunks/{ZJS5MEKE.cjs → 3TF4GQNL.cjs} +3 -3
- package/dist/__chunks/{M7KSUTKJ.cjs → 3Z5DP4X3.cjs} +5 -5
- package/dist/__chunks/{M7KSUTKJ.cjs.map → 3Z5DP4X3.cjs.map} +1 -1
- package/dist/__chunks/{3BGIBVCR.cjs → 42SXZKBG.cjs} +3 -3
- package/dist/__chunks/{RU5JUMYC.cjs → 43ZVOHDU.cjs} +1 -1
- package/dist/__chunks/{RU5JUMYC.cjs.map → 43ZVOHDU.cjs.map} +1 -1
- package/dist/__chunks/{5RXHG6S5.js → 4C7SU3EM.js} +5 -5
- package/dist/__chunks/{NJ7VV2CH.cjs → 4ENILLBC.cjs} +4 -4
- package/dist/__chunks/{NJ7VV2CH.cjs.map → 4ENILLBC.cjs.map} +1 -1
- package/dist/__chunks/{JL2NIWMQ.js → 4JPHMF5K.js} +4 -4
- package/dist/__chunks/{JL2NIWMQ.js.map → 4JPHMF5K.js.map} +1 -1
- package/dist/__chunks/{BHN2OODF.cjs → 4Y7TNMFL.cjs} +9 -4
- package/dist/__chunks/4Y7TNMFL.cjs.map +1 -0
- package/dist/__chunks/{5CSS7BNE.cjs → 5IOCCDL6.cjs} +10 -10
- package/dist/__chunks/{HUN4OGO5.js → 5KCDVRT6.js} +2 -2
- package/dist/__chunks/{I7BXC2FH.cjs → 6VB3H32I.cjs} +6 -6
- package/dist/__chunks/{P3W4SW6R.cjs → 6ZBLF7S2.cjs} +3 -3
- package/dist/__chunks/{J5NZ55OT.cjs → 7AVZDFCS.cjs} +3 -3
- package/dist/__chunks/{NFSZQICF.cjs → B3O42V6X.cjs} +4 -4
- package/dist/__chunks/{NVHCU2CO.cjs → B3ZOLJLG.cjs} +6 -6
- package/dist/__chunks/{NVHCU2CO.cjs.map → B3ZOLJLG.cjs.map} +1 -1
- package/dist/__chunks/{BS5FRXYG.js → B64Z54QN.js} +2 -2
- package/dist/__chunks/{4DZD4SDJ.js → BB3LT6KA.js} +3 -3
- package/dist/__chunks/{CDU5TH7Y.cjs → BFODXGGO.cjs} +3 -3
- package/dist/__chunks/{VMY3X6VX.js → BG3VB5JF.js} +2 -2
- package/dist/__chunks/{CB66GOW7.js → BXKO34RQ.js} +2 -2
- package/dist/__chunks/{ZYWRMB4F.js → C22XFS4G.js} +2 -2
- package/dist/__chunks/{RE6LUYXB.js → CHMPCLBE.js} +2 -2
- package/dist/__chunks/DCGTTQAX.js +37 -0
- package/dist/__chunks/DCGTTQAX.js.map +1 -0
- package/dist/__chunks/{YPL2E6XO.js → DISIWYT4.js} +3 -3
- package/dist/__chunks/{T6T5FJWJ.js → DJ6I4764.js} +13 -8
- package/dist/__chunks/DJ6I4764.js.map +1 -0
- package/dist/__chunks/{NKGOCFTT.js → E3N5573J.js} +3 -3
- package/dist/__chunks/{NKGOCFTT.js.map → E3N5573J.js.map} +1 -1
- package/dist/__chunks/{C7PW7CPK.js → EH75XYWO.js} +9 -4
- package/dist/__chunks/{C7PW7CPK.js.map → EH75XYWO.js.map} +1 -1
- package/dist/__chunks/{JBFY4F7V.js → EJ2RDUTA.js} +2 -2
- package/dist/__chunks/{MDQYGGZO.cjs → F7FFR34L.cjs} +4 -4
- package/dist/__chunks/{MDQYGGZO.cjs.map → F7FFR34L.cjs.map} +1 -1
- package/dist/__chunks/{OY5QYJVA.cjs → FIPWIWEO.cjs} +9 -8
- package/dist/__chunks/FIPWIWEO.cjs.map +1 -0
- package/dist/__chunks/{RD4EXZDZ.cjs → G4CKRMFW.cjs} +19 -19
- package/dist/__chunks/{262KRHP5.js → GQBD6AND.js} +4 -4
- package/dist/__chunks/{262KRHP5.js.map → GQBD6AND.js.map} +1 -1
- package/dist/__chunks/{CUUBDICM.js → HAXNGRII.js} +1 -1
- package/dist/__chunks/{CUUBDICM.js.map → HAXNGRII.js.map} +1 -1
- package/dist/__chunks/{6AOPOPJT.cjs → J2D7XRV7.cjs} +7 -7
- package/dist/__chunks/{6AOPOPJT.cjs.map → J2D7XRV7.cjs.map} +1 -1
- package/dist/__chunks/{ZPV4YBFX.cjs → KA6GROBD.cjs} +3 -3
- package/dist/__chunks/{ONTB6T6K.cjs → KFQOJ7RG.cjs} +5 -5
- package/dist/__chunks/{TLTSRB3H.js → KGGNBWMV.js} +3 -3
- package/dist/__chunks/{TLTSRB3H.js.map → KGGNBWMV.js.map} +1 -1
- package/dist/__chunks/L32D5WEG.cjs +37 -0
- package/dist/__chunks/L32D5WEG.cjs.map +1 -0
- package/dist/__chunks/{DRQYQTCA.js → NPUDOII6.js} +2 -2
- package/dist/__chunks/{JWGD2JGX.js → NVTSF5NY.js} +2 -2
- package/dist/__chunks/{JWGD2JGX.js.map → NVTSF5NY.js.map} +1 -1
- package/dist/__chunks/{X34FPOWI.cjs → O54TUH3V.cjs} +9 -8
- package/dist/__chunks/O54TUH3V.cjs.map +1 -0
- package/dist/__chunks/{J7224OUT.cjs → OJKBVPRV.cjs} +3 -3
- package/dist/__chunks/{ZAB5SOZP.js → P7YFSOS7.js} +3 -3
- package/dist/__chunks/P7YFSOS7.js.map +1 -0
- package/dist/__chunks/{SW2JQXU6.cjs → POMJQZKJ.cjs} +2 -2
- package/dist/__chunks/{SW2JQXU6.cjs.map → POMJQZKJ.cjs.map} +1 -1
- package/dist/__chunks/{7PXG7CRK.js → Q2KBODSW.js} +8 -8
- package/dist/__chunks/{UXDF6ZIG.js → RCVW5CTF.js} +2 -2
- package/dist/__chunks/{V4M5XFJN.cjs → SEJ4BIQG.cjs} +5 -5
- package/dist/__chunks/SEJ4BIQG.cjs.map +1 -0
- package/dist/__chunks/{K2RGVD55.js → SKVMG4AF.js} +4 -4
- package/dist/__chunks/SKVMG4AF.js.map +1 -0
- package/dist/__chunks/{OMWNK5SA.js → SOR5SSPX.js} +2 -2
- package/dist/__chunks/{3CEGKGV5.js → THO3K5V7.js} +4 -4
- package/dist/__chunks/{3CEGKGV5.js.map → THO3K5V7.js.map} +1 -1
- package/dist/__chunks/{FAOJSMYY.js → UCJSVVK6.js} +2 -2
- package/dist/__chunks/{HM6JHSTR.cjs → UHOT5ZOH.cjs} +6 -6
- package/dist/__chunks/{HM6JHSTR.cjs.map → UHOT5ZOH.cjs.map} +1 -1
- package/dist/__chunks/{SSGQWZJG.cjs → WEOENL5J.cjs} +3 -3
- package/dist/__chunks/{QAH73IJZ.js → WJMQX7BT.js} +2 -2
- package/dist/__chunks/{JAW252M7.cjs → Z66NM3NK.cjs} +3 -3
- package/dist/__chunks/{PIQO2LH2.cjs → ZGOHDWOB.cjs} +13 -8
- package/dist/__chunks/ZGOHDWOB.cjs.map +1 -0
- package/dist/__chunks/{VZWUWOLJ.js → ZH4QTULO.js} +9 -8
- package/dist/__chunks/ZH4QTULO.js.map +1 -0
- package/dist/colors/textColors.cjs +2 -2
- package/dist/colors/textColors.js +1 -1
- package/dist/index.cjs +31 -31
- package/dist/index.css +50 -25
- package/dist/index.css.map +1 -1
- package/dist/index.js +32 -32
- package/package.json +1 -1
- package/dist/__chunks/4X7ZC3WT.js.map +0 -1
- package/dist/__chunks/BHN2OODF.cjs.map +0 -1
- package/dist/__chunks/FGXU5UXA.js +0 -30
- package/dist/__chunks/FGXU5UXA.js.map +0 -1
- package/dist/__chunks/G63LXNMK.cjs +0 -30
- package/dist/__chunks/G63LXNMK.cjs.map +0 -1
- package/dist/__chunks/K2RGVD55.js.map +0 -1
- package/dist/__chunks/OY5QYJVA.cjs.map +0 -1
- package/dist/__chunks/PIQO2LH2.cjs.map +0 -1
- package/dist/__chunks/T6T5FJWJ.js.map +0 -1
- package/dist/__chunks/V4M5XFJN.cjs.map +0 -1
- package/dist/__chunks/VZWUWOLJ.js.map +0 -1
- package/dist/__chunks/X34FPOWI.cjs.map +0 -1
- package/dist/__chunks/ZAB5SOZP.js.map +0 -1
- /package/dist/__chunks/{JEP2SN7W.cjs.map → 2PWZPH3R.cjs.map} +0 -0
- /package/dist/__chunks/{LNLOBEMH.cjs.map → 32CNLC3O.cjs.map} +0 -0
- /package/dist/__chunks/{ZJS5MEKE.cjs.map → 3TF4GQNL.cjs.map} +0 -0
- /package/dist/__chunks/{3BGIBVCR.cjs.map → 42SXZKBG.cjs.map} +0 -0
- /package/dist/__chunks/{5RXHG6S5.js.map → 4C7SU3EM.js.map} +0 -0
- /package/dist/__chunks/{5CSS7BNE.cjs.map → 5IOCCDL6.cjs.map} +0 -0
- /package/dist/__chunks/{HUN4OGO5.js.map → 5KCDVRT6.js.map} +0 -0
- /package/dist/__chunks/{I7BXC2FH.cjs.map → 6VB3H32I.cjs.map} +0 -0
- /package/dist/__chunks/{P3W4SW6R.cjs.map → 6ZBLF7S2.cjs.map} +0 -0
- /package/dist/__chunks/{J5NZ55OT.cjs.map → 7AVZDFCS.cjs.map} +0 -0
- /package/dist/__chunks/{NFSZQICF.cjs.map → B3O42V6X.cjs.map} +0 -0
- /package/dist/__chunks/{BS5FRXYG.js.map → B64Z54QN.js.map} +0 -0
- /package/dist/__chunks/{4DZD4SDJ.js.map → BB3LT6KA.js.map} +0 -0
- /package/dist/__chunks/{CDU5TH7Y.cjs.map → BFODXGGO.cjs.map} +0 -0
- /package/dist/__chunks/{VMY3X6VX.js.map → BG3VB5JF.js.map} +0 -0
- /package/dist/__chunks/{CB66GOW7.js.map → BXKO34RQ.js.map} +0 -0
- /package/dist/__chunks/{ZYWRMB4F.js.map → C22XFS4G.js.map} +0 -0
- /package/dist/__chunks/{RE6LUYXB.js.map → CHMPCLBE.js.map} +0 -0
- /package/dist/__chunks/{YPL2E6XO.js.map → DISIWYT4.js.map} +0 -0
- /package/dist/__chunks/{JBFY4F7V.js.map → EJ2RDUTA.js.map} +0 -0
- /package/dist/__chunks/{RD4EXZDZ.cjs.map → G4CKRMFW.cjs.map} +0 -0
- /package/dist/__chunks/{ZPV4YBFX.cjs.map → KA6GROBD.cjs.map} +0 -0
- /package/dist/__chunks/{ONTB6T6K.cjs.map → KFQOJ7RG.cjs.map} +0 -0
- /package/dist/__chunks/{DRQYQTCA.js.map → NPUDOII6.js.map} +0 -0
- /package/dist/__chunks/{J7224OUT.cjs.map → OJKBVPRV.cjs.map} +0 -0
- /package/dist/__chunks/{7PXG7CRK.js.map → Q2KBODSW.js.map} +0 -0
- /package/dist/__chunks/{UXDF6ZIG.js.map → RCVW5CTF.js.map} +0 -0
- /package/dist/__chunks/{OMWNK5SA.js.map → SOR5SSPX.js.map} +0 -0
- /package/dist/__chunks/{FAOJSMYY.js.map → UCJSVVK6.js.map} +0 -0
- /package/dist/__chunks/{SSGQWZJG.cjs.map → WEOENL5J.cjs.map} +0 -0
- /package/dist/__chunks/{QAH73IJZ.js.map → WJMQX7BT.js.map} +0 -0
- /package/dist/__chunks/{JAW252M7.cjs.map → Z66NM3NK.cjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _POMJQZKJcjs = require('./POMJQZKJ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/Typography/Typography.tsx
|
|
7
7
|
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
@@ -38,7 +38,7 @@ var Typography = _react.forwardRef.call(void 0, function Typography2({
|
|
|
38
38
|
Typography_module_default[align],
|
|
39
39
|
Typography_module_default[weight],
|
|
40
40
|
fontStyle === "serif" ? Typography_module_default.serif : Typography_module_default.sansSerif,
|
|
41
|
-
|
|
41
|
+
_POMJQZKJcjs.textColor.call(void 0, color),
|
|
42
42
|
inline && Typography_module_default.inline,
|
|
43
43
|
Typography_module_default[`size${size}`],
|
|
44
44
|
transform === "uppercase" && Typography_module_default.uppercase,
|
|
@@ -60,4 +60,4 @@ var Typography_default = Typography;
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
exports.Typography_default = Typography_default;
|
|
63
|
-
//# sourceMappingURL=
|
|
63
|
+
//# sourceMappingURL=42SXZKBG.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB","sourcesContent":["/**\n * Do not edit directly\n * Generated on
|
|
1
|
+
{"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"names":[],"mappings":";;;AASO,IAAM,0BAA0B;AAWhC,IAAM,mBAAmB","sourcesContent":["/**\n * Do not edit directly\n * Generated on Fri, 14 Jun 2024 18:08:33 GMT\n */\n\nexport const ColorBaseBlack = \"#000000\";\nexport const ColorBaseDestructive100 = \"#fef3f5\";\nexport const ColorBaseDestructive200 = \"#fad6de\";\nexport const ColorBaseDestructive300 = \"#f2a2b2\";\nexport const ColorBaseDestructive700 = \"#d32a4b\";\nexport const ColorBaseDestructive800 = \"#81162c\";\nexport const ColorBaseDestructive900 = \"#55101d\";\nexport const ColorBaseGray10 = \"#cbcbcb\"; // Used as the default color for dividers and inner strokes\nexport const ColorBaseGray30 = \"#000000\"; // For IconButton background when on top of an image\nexport const ColorBaseGray60 = \"#000000\"; // Used for icon background in classroom video grid\nexport const ColorBaseGray80 = \"#000000\"; // Used as the background for modals\nexport const ColorBaseGray100 = \"#f7f7f7\";\nexport const ColorBaseGray200 = \"#f0f0f0\"; // Used for light mode backgrounds when showing card content on top\nexport const ColorBaseGray300 = \"#d0d0d0\"; // Used for component outlines, eg: select and textfield\nexport const ColorBaseGray700 = \"#767676\"; // For secondary text in light mode\nexport const ColorBaseGray800 = \"#353535\";\nexport const ColorBaseGray900 = \"#191919\"; // Default text color, Classroom background\nexport const ColorBaseOrange100 = \"#fdf2f0\";\nexport const ColorBaseOrange200 = \"#f6cdc4\";\nexport const ColorBaseOrange300 = \"#ec9987\";\nexport const ColorBaseOrange700 = \"#c34124\";\nexport const ColorBaseOrange800 = \"#732818\";\nexport const ColorBaseOrange900 = \"#4d1a10\";\nexport const ColorBasePrimary100 = \"#eff6fa\";\nexport const ColorBasePrimary200 = \"#c1dbe7\";\nexport const ColorBasePrimary300 = \"#84b7d0\";\nexport const ColorBasePrimary700 = \"#236482\";\nexport const ColorBasePrimary800 = \"#274858\";\nexport const ColorBasePrimary900 = \"#1b303b\";\nexport const ColorBaseSuccess100 = \"#eff7f1\";\nexport const ColorBaseSuccess200 = \"#bddcc6\";\nexport const ColorBaseSuccess300 = \"#81ba92\";\nexport const ColorBaseSuccess700 = \"#397b4d\";\nexport const ColorBaseSuccess800 = \"#2d4936\";\nexport const ColorBaseSuccess900 = \"#1e3124\";\nexport const ColorBasePurple100 = \"#f9f5fa\";\nexport const ColorBasePurple200 = \"#e8dceb\";\nexport const ColorBasePurple300 = \"#cdb4d3\";\nexport const ColorBasePurple700 = \"#8b5f95\";\nexport const ColorBasePurple800 = \"#523b58\";\nexport const ColorBasePurple900 = \"#37273b\";\nexport const ColorBaseYellow100 = \"#fdf5d9\";\nexport const ColorBaseYellow200 = \"#fbe8a3\";\nexport const ColorBaseYellow300 = \"#f8d663\";\nexport const ColorBaseYellow700 = \"#ffc929\";\nexport const ColorBaseYellow800 = \"#765f1c\";\nexport const ColorBaseYellow900 = \"#3b3009\";\nexport const ColorBaseWhite = \"#ffffff\";\nexport const ColorCambioBlack = \"#050500\";\nexport const ColorCambioWhite40 = \"#ffffff\";\nexport const ColorCambioWhite70 = \"#ffffff\";\nexport const ColorCambioWhite100 = \"#ffffff\";\nexport const ColorCambioGray100 = \"#faf4eb\";\nexport const ColorCambioGray200 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#888077\";\nexport const ColorCambioGray800 = \"#5c554d\";\nexport const ColorCambioGray870 = \"#5c554d\";\nexport const ColorCambioGray900 = \"#312b23\";\nexport const ColorCambioDestructive100 = \"#ffdeda\";\nexport const ColorCambioDestructive300 = \"#ff8071\";\nexport const ColorCambioDestructive370 = \"#ff8071\";\nexport const ColorCambioDestructive700 = \"#c93f32\";\nexport const ColorCambioDestructive770 = \"#c93f32\";\nexport const ColorCambioDestructive900 = \"#6d0002\";\nexport const ColorCambioSuccess100 = \"#daf2c8\";\nexport const ColorCambioSuccess300 = \"#84ce64\";\nexport const ColorCambioSuccess370 = \"#84ce64\";\nexport const ColorCambioSuccess700 = \"#3c7f20\";\nexport const ColorCambioSuccess770 = \"#3c7f20\";\nexport const ColorCambioSuccess900 = \"#103e00\";\nexport const ColorCambioRed = \"#f56e56\";\nexport const ColorCambioOrange = \"#ff8f57\";\nexport const ColorCambioTan = \"#ffb47d\";\nexport const ColorCambioCream = \"#fffad1\";\nexport const ColorCambioPurple = \"#6840a8\";\nexport const ColorCambioLilac = \"#b59ef0\";\nexport const ColorCambioThistle = \"#d69ca4\";\nexport const ColorCambioPink = \"#ffccea\";\nexport const ColorCambioNavy = \"#191142\";\nexport const ColorCambioTeal = \"#44a6cf\";\nexport const ColorCambioSlate = \"#7c9fc6\";\nexport const ColorCambioSky = \"#b1e8fc\";\nexport const ColorCambioYellow700 = \"#ffe733\";\nexport const ColorCambioTransparentFull = \"#000000\";\nexport const Elevation400 = \"0px 16px 32px 0px #00000040\";\nexport const SyntaxFontSansSerif = \"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Button_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./2GCKYKF3.js";
|
|
5
5
|
import {
|
|
6
6
|
Divider
|
|
7
7
|
} from "./YAZOHZLW.js";
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
} from "./BOX3VY3Q.js";
|
|
11
11
|
import {
|
|
12
12
|
RichSelectSection_default
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./CHMPCLBE.js";
|
|
14
14
|
import {
|
|
15
15
|
RichSelectRadioButton_default
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./B64Z54QN.js";
|
|
17
17
|
import {
|
|
18
18
|
RichSelectChip_default
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./NPUDOII6.js";
|
|
20
20
|
import {
|
|
21
21
|
RichSelectItemContext,
|
|
22
22
|
RichSelect_module_default
|
|
@@ -208,4 +208,4 @@ export {
|
|
|
208
208
|
RichSelectBoxContext,
|
|
209
209
|
RichSelectBox_default
|
|
210
210
|
};
|
|
211
|
-
//# sourceMappingURL=
|
|
211
|
+
//# sourceMappingURL=4C7SU3EM.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _KJLBDAZHcjs = require('./KJLBDAZH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _42SXZKBGcjs = require('./42SXZKBG.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -75,8 +75,8 @@ var Chip = _react.forwardRef.call(void 0,
|
|
|
75
75
|
"aria-pressed": selected,
|
|
76
76
|
onClick: onChange,
|
|
77
77
|
children: [
|
|
78
|
-
Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: iconStyles, size:
|
|
79
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
78
|
+
Icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { className: iconStyles, size: 100 }),
|
|
79
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _42SXZKBGcjs.Typography_default, { size: 100, color, weight: "medium", children: text }) })
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
);
|
|
@@ -88,4 +88,4 @@ var Chip_default = Chip;
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
exports.Chip_default = Chip_default;
|
|
91
|
-
//# sourceMappingURL=
|
|
91
|
+
//# sourceMappingURL=4ENILLBC.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Chip/Chip.tsx","css-module:./Chip.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAgB,YAAY,eAAoC;AAChE,OAAO,gBAAgB;;;ACDiE,IAAO,sBAAQ,EAAC,QAAO,iBAAgB,YAAW,sBAAqB,kBAAiB,4BAA2B,kCAAiC,4CAA2C,gBAAe,0BAAyB,gCAA+B,0CAAyC,QAAO,kBAAiB,gBAAe,0BAAyB,MAAK,gBAAe,cAAa,uBAAsB;;;ADoHxf,SASW,KATX;AA5GN,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AACF,GAGwB;AACtB,MAAI,OAAO,kBAAkB;AAC3B,QAAI,UAAU;AACZ,aAAO;AAAA,IACT,OAAO;AACL,aAAO;AAAA,IACT;AAAA,EACF,OAAO;AACL,QAAI,UAAU;AACZ,aAAO;AAAA,IACT,OAAO;AACL,aAAO;AAAA,IACT;AAAA,EACF;AACF;AA6CA,IAAM,OAAO;AAAA,EACX,CACE;AAAA,IACE,UAAU,eAAe;AAAA,IACzB,WAAW;AAAA,IACX,eAAe;AAAA,IACf;AAAA,IACA,KAAK;AAAA,IACL;AAAA,IACA,MAAM;AAAA,IACN;AAAA,EACF,GACA,QACG;AACH,UAAM,aAAa,cAAc;AACjC,UAAM,WAAW,CAAC,cAAc;AAEhC,UAAM,oBACJ,OAAO,oBACH,oBAAO,eACP,oBAAO;AAEb,UAAM,sBACJ,OAAO,oBACH,oBAAO,iBACP,oBAAO;AAEb,UAAM,aAAa,WAAW,oBAAO,MAAM,oBAAO,IAAI;AAAA,MACpD,CAAC,iBAAiB,GAAG;AAAA,MACrB,CAAC,mBAAmB,GAAG,CAAC;AAAA,MACxB,CAAC,oBAAO,QAAQ,GAAG;AAAA,MACnB,CAAC,oBAAO,UAAU,GAAG;AAAA,IACvB,CAAC;AACD,UAAM,aAAa,WAAW,oBAAO,MAAM;AAAA,MACzC,CAAC,oBAAO,YAAY,GAAG;AAAA,IACzB,CAAC;AAED,UAAM,QAAQ;AAAA,MACZ,MAAM,gBAAgB,EAAE,UAAU,GAAG,CAAC;AAAA,MACtC,CAAC,UAAU,EAAE;AAAA,IACf;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,QACX;AAAA,QACA,eAAa;AAAA,QACb;AAAA,QACA,MAAK;AAAA,QACL,gBAAc;AAAA,QACd,SAAS;AAAA,QAER;AAAA,kBAAQ,oBAAC,QAAK,WAAW,YAAY,
|
|
1
|
+
{"version":3,"sources":["../../src/Chip/Chip.tsx","css-module:./Chip.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAgB,YAAY,eAAoC;AAChE,OAAO,gBAAgB;;;ACDiE,IAAO,sBAAQ,EAAC,QAAO,iBAAgB,YAAW,sBAAqB,kBAAiB,4BAA2B,kCAAiC,4CAA2C,gBAAe,0BAAyB,gCAA+B,0CAAyC,QAAO,kBAAiB,gBAAe,0BAAyB,MAAK,gBAAe,cAAa,uBAAsB;;;ADoHxf,SASW,KATX;AA5GN,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AACF,GAGwB;AACtB,MAAI,OAAO,kBAAkB;AAC3B,QAAI,UAAU;AACZ,aAAO;AAAA,IACT,OAAO;AACL,aAAO;AAAA,IACT;AAAA,EACF,OAAO;AACL,QAAI,UAAU;AACZ,aAAO;AAAA,IACT,OAAO;AACL,aAAO;AAAA,IACT;AAAA,EACF;AACF;AA6CA,IAAM,OAAO;AAAA,EACX,CACE;AAAA,IACE,UAAU,eAAe;AAAA,IACzB,WAAW;AAAA,IACX,eAAe;AAAA,IACf;AAAA,IACA,KAAK;AAAA,IACL;AAAA,IACA,MAAM;AAAA,IACN;AAAA,EACF,GACA,QACG;AACH,UAAM,aAAa,cAAc;AACjC,UAAM,WAAW,CAAC,cAAc;AAEhC,UAAM,oBACJ,OAAO,oBACH,oBAAO,eACP,oBAAO;AAEb,UAAM,sBACJ,OAAO,oBACH,oBAAO,iBACP,oBAAO;AAEb,UAAM,aAAa,WAAW,oBAAO,MAAM,oBAAO,IAAI;AAAA,MACpD,CAAC,iBAAiB,GAAG;AAAA,MACrB,CAAC,mBAAmB,GAAG,CAAC;AAAA,MACxB,CAAC,oBAAO,QAAQ,GAAG;AAAA,MACnB,CAAC,oBAAO,UAAU,GAAG;AAAA,IACvB,CAAC;AACD,UAAM,aAAa,WAAW,oBAAO,MAAM;AAAA,MACzC,CAAC,oBAAO,YAAY,GAAG;AAAA,IACzB,CAAC;AAED,UAAM,QAAQ;AAAA,MACZ,MAAM,gBAAgB,EAAE,UAAU,GAAG,CAAC;AAAA,MACtC,CAAC,UAAU,EAAE;AAAA,IACf;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,QACX;AAAA,QACA,eAAa;AAAA,QACb;AAAA,QACA,MAAK;AAAA,QACL,gBAAc;AAAA,QACd,SAAS;AAAA,QAER;AAAA,kBAAQ,oBAAC,QAAK,WAAW,YAAY,MAAM,KAAK;AAAA,UACjD,oBAAC,eAAI,UAAU,OAAO,IAAI,GACxB,8BAAC,sBAAW,MAAM,KAAK,OAAc,QAAO,UACzC,gBACH,GACF;AAAA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,KAAK,cAAc;AAEnB,IAAO,eAAQ","sourcesContent":["import React, { forwardRef, useMemo, type ComponentProps } from \"react\";\nimport classnames from \"classnames\";\nimport Typography from \"../Typography/Typography\";\nimport Box from \"../Box/Box\";\nimport styles from \"./Chip.module.css\";\nimport useIsHydrated from \"../useIsHydrated\";\nimport type InternalIcon from \"../Icon/Icon\";\n\nfunction typographyColor({\n selected,\n on,\n}: {\n selected: boolean;\n on: \"lightBackground\" | \"darkBackground\";\n}): \"white\" | \"gray900\" {\n if (on === \"darkBackground\") {\n if (selected) {\n return \"gray900\";\n } else {\n return \"white\";\n }\n } else {\n if (selected) {\n return \"white\";\n } else {\n return \"gray900\";\n }\n }\n}\n\ntype ChipProps = {\n /**\n * If true, the chip will be disabled.\n */\n disabled?: boolean;\n /**\n * Sets the initial status of this chip component.\n * * `true` will display a grey chip.\n * * `false` will display a premium800 color chip.\n *\n * @defaultValue \"false\"\n */\n selected?: boolean;\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The text to be displayed on the chip\n */\n text: string;\n /**\n * Indicate whether the badge renders on a light or dark background. Changes the color of the chip\n *\n * @defaulValue `lightBackground`\n */\n on?: \"lightBackground\" | \"darkBackground\";\n /**\n * The callback to be called when the chip is clicked\n */\n onChange: React.MouseEventHandler<HTMLButtonElement>;\n /**\n * The icon to be displayed.\n */\n icon?:\n | React.ComponentType<{ className?: string }>\n | React.ComponentType<ComponentProps<typeof InternalIcon>>;\n /** forces focus ring styling */\n dangerouslyForceFocusStyles?: boolean;\n};\n/**\n * [Chip](https://cambly-syntax.vercel.app/?path=/docs/components-chip--docs) is used to show status (selected/not selected) like a toggle button.\n */\nconst Chip = forwardRef<HTMLButtonElement, ChipProps>(\n (\n {\n disabled: disabledProp = false,\n selected = false,\n \"data-testid\": dataTestId,\n text,\n on = \"lightBackground\",\n onChange,\n icon: Icon,\n dangerouslyForceFocusStyles,\n }: ChipProps,\n ref,\n ) => {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n\n const selectedChipStyle =\n on === \"lightBackground\"\n ? styles.selectedChip\n : styles.selectedChipOnDarkBackground;\n\n const deselectedChipStyle =\n on === \"lightBackground\"\n ? styles.deselectedChip\n : styles.deselectedChipOnDarkBackground;\n\n const chipStyles = classnames(styles.chip, styles.sm, {\n [selectedChipStyle]: selected,\n [deselectedChipStyle]: !selected,\n [styles.disabled]: disabled,\n [styles.forceFocus]: dangerouslyForceFocusStyles,\n });\n const iconStyles = classnames(styles.icon, {\n [styles.selectedIcon]: selected,\n });\n\n const color = useMemo(\n () => typographyColor({ selected, on }),\n [selected, on],\n );\n\n return (\n <button\n className={chipStyles}\n disabled={disabled}\n data-testid={dataTestId}\n ref={ref}\n type=\"button\"\n aria-pressed={selected}\n onClick={onChange}\n >\n {Icon && <Icon className={iconStyles} size={100} />}\n <Box paddingX={Icon ? 1 : 0}>\n <Typography size={100} color={color} weight=\"medium\">\n {text}\n </Typography>\n </Box>\n </button>\n );\n },\n);\n\nChip.displayName = \"Chip\";\n\nexport default Chip;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Chip/Chip.module.css\"; export default {\"chip\":\"_chip_b9vyr_1\",\"disabled\":\"_disabled_b9vyr_12\",\"deselectedChip\":\"_deselectedChip_b9vyr_17\",\"deselectedChipOnDarkBackground\":\"_deselectedChipOnDarkBackground_b9vyr_21\",\"selectedChip\":\"_selectedChip_b9vyr_25\",\"selectedChipOnDarkBackground\":\"_selectedChipOnDarkBackground_b9vyr_29\",\"icon\":\"_icon_b9vyr_33\",\"selectedIcon\":\"_selectedIcon_b9vyr_41\",\"sm\":\"_sm_b9vyr_45\",\"forceFocus\":\"_forceFocus_b9vyr_52\"}"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Heading_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./BG3VB5JF.js";
|
|
5
5
|
import {
|
|
6
6
|
StopScroll
|
|
7
7
|
} from "./QQT35OLE.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./HVA7R2EL.js";
|
|
14
14
|
import {
|
|
15
15
|
IconButton_default
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./DJ6I4764.js";
|
|
17
17
|
import {
|
|
18
18
|
Box_default
|
|
19
19
|
} from "./65PMWIHY.js";
|
|
@@ -57,7 +57,7 @@ function Modal({
|
|
|
57
57
|
Box_default,
|
|
58
58
|
{
|
|
59
59
|
"data-testid": dataTestId,
|
|
60
|
-
backgroundColor: "
|
|
60
|
+
backgroundColor: "gray100",
|
|
61
61
|
rounding: "md",
|
|
62
62
|
display: "flex",
|
|
63
63
|
marginStart: 4,
|
|
@@ -130,4 +130,4 @@ Modal.displayName = "Modal";
|
|
|
130
130
|
export {
|
|
131
131
|
Modal
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=
|
|
133
|
+
//# sourceMappingURL=4JPHMF5K.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["css-module:./Modal.module.css#css-module","../../src/Modal/Modal.tsx"],"sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Modal/Modal.module.css\"; export default {\"backdrop\":\"_backdrop_17lbk_1\",\"closeButton\":\"_closeButton_17lbk_10\"}","import { type ReactElement } from \"react\";\n\nimport Heading from \"../Heading/Heading\";\nimport Box from \"../Box/Box\";\n\nimport FocusTrap from \"./FocusTrap\";\nimport StopScroll from \"./StopScroll\";\nimport Layer from \"./Layer\";\nimport styles from \"./Modal.module.css\";\nimport IconButton from \"../IconButton/IconButton\";\n\nfunction XIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n fill=\"currentColor\"\n focusable=\"false\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n >\n <path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path>\n </svg>\n );\n}\n\n/**\n * [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.\n *\n ```\n const [showModal, setShowModal] = useState(false)\n\n return (\n <>\n {showModal && <Modal\n header=\"header text\"\n onDismiss={() => setShowModal(false)}\n footer={\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n }\n >\n <Typography>\n Body text goes here!\n </Typography>\n </Modal> }\n </>\n )\n ```\n */\nexport default function Modal({\n header,\n children,\n image,\n onDismiss,\n footer,\n accessibilityCloseLabel = \"close modal\",\n zIndex = 1,\n \"data-testid\": dataTestId,\n}: {\n /**\n * The modal's main content. Should typically take in `Typography`'d text.\n */\n children: JSX.Element;\n /**\n * The header inside a modal as a string.\n */\n header: string;\n /**\n * What the X button (or clicking out of the modal area) does.\n * Typically used for closing the Modal\n */\n onDismiss: () => void;\n /**\n * The optional image rendered above the Modal.\n * Image\n * * Size should be 600w x 200h\n * * Be sure to set width=\"100%\" on the image\n * If images aren't that sized, should ask design to give another image.\n */\n image?: JSX.Element;\n /**\n * The footer for the bottom area of the Modal. Typically used for rendering buttons.\n * * Use Syntax `Button` and pass it into footer.\n * * If one button, just pass it in. If two, wrap in a React fragment (`<> </>`)\n * * If two(2) buttons, put primary button _second_.\n *\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n */\n footer?: JSX.Element;\n /**\n * The accessibilty text on the close button.\n * (Sets the aria-label of the button)\n *\n *\n * @defaultValue close modal\n */\n accessibilityCloseLabel?: string;\n /**\n * The z-index for the modal.\n * Typically used if there are other things on the page with higher z-index and you need this overlayed on top.\n *\n * @defaultValue 0\n */\n zIndex?: number;\n /**\n * Test id for the modal\n */\n \"data-testid\"?: string;\n}): ReactElement {\n return (\n <Layer zIndex={zIndex}>\n <StopScroll>\n <FocusTrap>\n <div\n className={styles.backdrop}\n role=\"presentation\"\n onClick={(e) => e.target === e.currentTarget && onDismiss()}\n onKeyDown={(e) => e.key === \"Escape\" && onDismiss()}\n >\n <Box\n data-testid={dataTestId}\n backgroundColor=\"
|
|
1
|
+
{"version":3,"sources":["css-module:./Modal.module.css#css-module","../../src/Modal/Modal.tsx"],"sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Modal/Modal.module.css\"; export default {\"backdrop\":\"_backdrop_17lbk_1\",\"closeButton\":\"_closeButton_17lbk_10\"}","import { type ReactElement } from \"react\";\n\nimport Heading from \"../Heading/Heading\";\nimport Box from \"../Box/Box\";\n\nimport FocusTrap from \"./FocusTrap\";\nimport StopScroll from \"./StopScroll\";\nimport Layer from \"./Layer\";\nimport styles from \"./Modal.module.css\";\nimport IconButton from \"../IconButton/IconButton\";\n\nfunction XIcon({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n fill=\"currentColor\"\n focusable=\"false\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n >\n <path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path>\n </svg>\n );\n}\n\n/**\n * [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.\n *\n ```\n const [showModal, setShowModal] = useState(false)\n\n return (\n <>\n {showModal && <Modal\n header=\"header text\"\n onDismiss={() => setShowModal(false)}\n footer={\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n }\n >\n <Typography>\n Body text goes here!\n </Typography>\n </Modal> }\n </>\n )\n ```\n */\nexport default function Modal({\n header,\n children,\n image,\n onDismiss,\n footer,\n accessibilityCloseLabel = \"close modal\",\n zIndex = 1,\n \"data-testid\": dataTestId,\n}: {\n /**\n * The modal's main content. Should typically take in `Typography`'d text.\n */\n children: JSX.Element;\n /**\n * The header inside a modal as a string.\n */\n header: string;\n /**\n * What the X button (or clicking out of the modal area) does.\n * Typically used for closing the Modal\n */\n onDismiss: () => void;\n /**\n * The optional image rendered above the Modal.\n * Image\n * * Size should be 600w x 200h\n * * Be sure to set width=\"100%\" on the image\n * If images aren't that sized, should ask design to give another image.\n */\n image?: JSX.Element;\n /**\n * The footer for the bottom area of the Modal. Typically used for rendering buttons.\n * * Use Syntax `Button` and pass it into footer.\n * * If one button, just pass it in. If two, wrap in a React fragment (`<> </>`)\n * * If two(2) buttons, put primary button _second_.\n *\n <>\n <Button\n text=\"Cancel\"\n color=\"secondary\"\n onClick={() => {}}\n />\n <Button\n text=\"Confirm\"\n onClick={() => {}}\n />\n </>\n */\n footer?: JSX.Element;\n /**\n * The accessibilty text on the close button.\n * (Sets the aria-label of the button)\n *\n *\n * @defaultValue close modal\n */\n accessibilityCloseLabel?: string;\n /**\n * The z-index for the modal.\n * Typically used if there are other things on the page with higher z-index and you need this overlayed on top.\n *\n * @defaultValue 0\n */\n zIndex?: number;\n /**\n * Test id for the modal\n */\n \"data-testid\"?: string;\n}): ReactElement {\n return (\n <Layer zIndex={zIndex}>\n <StopScroll>\n <FocusTrap>\n <div\n className={styles.backdrop}\n role=\"presentation\"\n onClick={(e) => e.target === e.currentTarget && onDismiss()}\n onKeyDown={(e) => e.key === \"Escape\" && onDismiss()}\n >\n <Box\n data-testid={dataTestId}\n backgroundColor=\"gray100\"\n rounding=\"md\"\n display=\"flex\"\n marginStart={4}\n marginEnd={4}\n marginTop={8}\n marginBottom={8}\n minWidth={240}\n maxHeight=\"calc(100vh - 64px)\"\n maxWidth={600}\n overflow=\"hidden\"\n position=\"relative\"\n width=\"100%\"\n >\n <Box\n position=\"absolute\"\n dangerouslySetInlineStyle={{\n __style: { top: 4, right: 4 },\n }}\n >\n <IconButton\n accessibilityLabel={accessibilityCloseLabel}\n color={image ? \"primary\" : \"tertiary\"}\n on={image ? \"darkBackground\" : \"lightBackground\"}\n onClick={onDismiss}\n size=\"md\"\n icon={XIcon}\n />\n </Box>\n\n <Box display=\"flex\" direction=\"column\" width=\"100%\">\n {image && <Box>{image}</Box>}\n <Box padding={6}>\n <Heading as=\"h1\" size={700} fontStyle=\"serif\">\n {header}\n </Heading>\n </Box>\n <Box\n height=\"100%\"\n overflowY=\"auto\"\n paddingX={6}\n marginBottom={footer ? 0 : 6}\n >\n {children}\n </Box>\n {footer && (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={3}\n smDirection=\"row\"\n smJustifyContent=\"end\"\n lgDirection=\"row\"\n lgJustifyContent=\"end\"\n padding={6}\n >\n {footer}\n </Box>\n )}\n </Box>\n </Box>\n </div>\n </FocusTrap>\n </StopScroll>\n </Layer>\n );\n}\n\nModal.displayName = \"Modal\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAA0F,IAAO,uBAAQ,EAAC,YAAW,qBAAoB,eAAc,wBAAuB;;;ACoBxK,cAsJQ,YAtJR;AATN,SAAS,MAAM,EAAE,UAAU,GAA2B;AACpD,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL,WAAU;AAAA,MACV,eAAY;AAAA,MACZ,SAAQ;AAAA,MAER,8BAAC,UAAK,GAAE,yGAAwG;AAAA;AAAA,EAClH;AAEJ;AAmCe,SAAR,MAAuB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,0BAA0B;AAAA,EAC1B,SAAS;AAAA,EACT,eAAe;AACjB,GA4DiB;AACf,SACE,oBAAC,SAAM,QACL,8BAAC,cACC,8BAAC,aACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,qBAAO;AAAA,MAClB,MAAK;AAAA,MACL,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,iBAAiB,UAAU;AAAA,MAC1D,WAAW,CAAC,MAAM,EAAE,QAAQ,YAAY,UAAU;AAAA,MAElD;AAAA,QAAC;AAAA;AAAA,UACC,eAAa;AAAA,UACb,iBAAgB;AAAA,UAChB,UAAS;AAAA,UACT,SAAQ;AAAA,UACR,aAAa;AAAA,UACb,WAAW;AAAA,UACX,WAAW;AAAA,UACX,cAAc;AAAA,UACd,UAAU;AAAA,UACV,WAAU;AAAA,UACV,UAAU;AAAA,UACV,UAAS;AAAA,UACT,UAAS;AAAA,UACT,OAAM;AAAA,UAEN;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,UAAS;AAAA,gBACT,2BAA2B;AAAA,kBACzB,SAAS,EAAE,KAAK,GAAG,OAAO,EAAE;AAAA,gBAC9B;AAAA,gBAEA;AAAA,kBAAC;AAAA;AAAA,oBACC,oBAAoB;AAAA,oBACpB,OAAO,QAAQ,YAAY;AAAA,oBAC3B,IAAI,QAAQ,mBAAmB;AAAA,oBAC/B,SAAS;AAAA,oBACT,MAAK;AAAA,oBACL,MAAM;AAAA;AAAA,gBACR;AAAA;AAAA,YACF;AAAA,YAEA,qBAAC,eAAI,SAAQ,QAAO,WAAU,UAAS,OAAM,QAC1C;AAAA,uBAAS,oBAAC,eAAK,iBAAM;AAAA,cACtB,oBAAC,eAAI,SAAS,GACZ,8BAAC,mBAAQ,IAAG,MAAK,MAAM,KAAK,WAAU,SACnC,kBACH,GACF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,QAAO;AAAA,kBACP,WAAU;AAAA,kBACV,UAAU;AAAA,kBACV,cAAc,SAAS,IAAI;AAAA,kBAE1B;AAAA;AAAA,cACH;AAAA,cACC,UACC;AAAA,gBAAC;AAAA;AAAA,kBACC,SAAQ;AAAA,kBACR,WAAU;AAAA,kBACV,KAAK;AAAA,kBACL,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,aAAY;AAAA,kBACZ,kBAAiB;AAAA,kBACjB,SAAS;AAAA,kBAER;AAAA;AAAA,cACH;AAAA,eAEJ;AAAA;AAAA;AAAA,MACF;AAAA;AAAA,EACF,GACF,GACF,GACF;AAEJ;AAEA,MAAM,cAAc;","names":[]}
|
|
@@ -4,14 +4,19 @@
|
|
|
4
4
|
var Button_module_default = { "button": "_button_hjka3_1", "buttonGap": "_buttonGap_hjka3_8", "disabled": "_disabled_hjka3_42", "disabledPrimary": "_disabledPrimary_hjka3_49", "fullWidth": "_fullWidth_hjka3_53", "sm": "_sm_hjka3_57", "md": "_md_hjka3_64", "lg": "_lg_hjka3_71", "icon": "_icon_hjka3_78", "smIcon": "_smIcon_hjka3_82", "mdIcon": "_mdIcon_hjka3_89", "lgIcon": "_lgIcon_hjka3_96", "loading": "_loading_hjka3_113", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_hjka3_1", "loadingCircle": "_loadingCircle_hjka3_117" };
|
|
5
5
|
|
|
6
6
|
// src/Button/constants/iconSize.ts
|
|
7
|
-
var
|
|
7
|
+
var materialIconSize = {
|
|
8
8
|
sm: Button_module_default.smIcon,
|
|
9
9
|
md: Button_module_default.mdIcon,
|
|
10
10
|
lg: Button_module_default.lgIcon
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var internalIconSize = {
|
|
13
|
+
sm: 100,
|
|
14
|
+
md: 200,
|
|
15
|
+
lg: 300
|
|
16
|
+
};
|
|
17
|
+
|
|
13
18
|
|
|
14
19
|
|
|
15
20
|
|
|
16
|
-
exports.
|
|
17
|
-
//# sourceMappingURL=
|
|
21
|
+
exports.materialIconSize = materialIconSize; exports.internalIconSize = internalIconSize;
|
|
22
|
+
//# sourceMappingURL=4Y7TNMFL.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["css-module:../Button.module.css#css-module","../../src/Button/constants/iconSize.ts"],"names":[],"mappings":";;;AAA4F,IAAO,wBAAQ,EAAC,UAAS,mBAAkB,aAAY,sBAAqB,YAAW,sBAAqB,mBAAkB,6BAA4B,aAAY,uBAAsB,MAAK,gBAAe,MAAK,gBAAe,MAAK,gBAAe,QAAO,kBAAiB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,oBAAmB,WAAU,sBAAqB,6BAA4B,sCAAqC,iBAAgB,2BAA0B;;;ACEnkB,IAAM,mBAAmB;AAAA,EAC9B,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AAAA,EACX,IAAI,sBAAO;AACb;AAEO,IAAM,mBAAmB;AAAA,EAC9B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN","sourcesContent":["import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Button/Button.module.css\"; export default {\"button\":\"_button_hjka3_1\",\"buttonGap\":\"_buttonGap_hjka3_8\",\"disabled\":\"_disabled_hjka3_42\",\"disabledPrimary\":\"_disabledPrimary_hjka3_49\",\"fullWidth\":\"_fullWidth_hjka3_53\",\"sm\":\"_sm_hjka3_57\",\"md\":\"_md_hjka3_64\",\"lg\":\"_lg_hjka3_71\",\"icon\":\"_icon_hjka3_78\",\"smIcon\":\"_smIcon_hjka3_82\",\"mdIcon\":\"_mdIcon_hjka3_89\",\"lgIcon\":\"_lgIcon_hjka3_96\",\"loading\":\"_loading_hjka3_113\",\"syntaxButtonLoadingRotate\":\"_syntaxButtonLoadingRotate_hjka3_1\",\"loadingCircle\":\"_loadingCircle_hjka3_117\"}","import styles from \"../Button.module.css\";\n\nexport const materialIconSize = {\n sm: styles.smIcon,\n md: styles.mdIcon,\n lg: styles.lgIcon,\n};\n\nexport const internalIconSize = {\n sm: 100,\n md: 200,\n lg: 300,\n} as const;\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client"
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _FIPWIWEOcjs = require('./FIPWIWEO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _42SRFCQLcjs = require('./42SRFCQL.cjs');
|
|
@@ -10,13 +10,13 @@ var _42SRFCQLcjs = require('./42SRFCQL.cjs');
|
|
|
10
10
|
var _C5XPZTFOcjs = require('./C5XPZTFO.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _7AVZDFCScjs = require('./7AVZDFCS.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _6ZBLF7S2cjs = require('./6ZBLF7S2.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _KA6GROBDcjs = require('./KA6GROBD.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -169,7 +169,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
169
169
|
justifyContent: "end",
|
|
170
170
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _C5XPZTFOcjs.ButtonGroup_default, { orientation: "horizontal", children: [
|
|
171
171
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
172
|
-
|
|
172
|
+
_FIPWIWEOcjs.Button_default,
|
|
173
173
|
{
|
|
174
174
|
onClick: clearChanges,
|
|
175
175
|
color: "secondary",
|
|
@@ -179,7 +179,7 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
179
179
|
}
|
|
180
180
|
),
|
|
181
181
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
182
|
-
|
|
182
|
+
_FIPWIWEOcjs.Button_default,
|
|
183
183
|
{
|
|
184
184
|
onClick: saveChanges,
|
|
185
185
|
text: primaryButtonText,
|
|
@@ -198,9 +198,9 @@ var RichSelectBox = _react.forwardRef.call(void 0,
|
|
|
198
198
|
}
|
|
199
199
|
);
|
|
200
200
|
var RichSelectBox_default = Object.assign(RichSelectBox, {
|
|
201
|
-
Section:
|
|
202
|
-
Chip:
|
|
203
|
-
RadioButton:
|
|
201
|
+
Section: _7AVZDFCScjs.RichSelectSection_default,
|
|
202
|
+
Chip: _KA6GROBDcjs.RichSelectChip_default,
|
|
203
|
+
RadioButton: _6ZBLF7S2cjs.RichSelectRadioButton_default
|
|
204
204
|
});
|
|
205
205
|
|
|
206
206
|
|
|
@@ -208,4 +208,4 @@ var RichSelectBox_default = Object.assign(RichSelectBox, {
|
|
|
208
208
|
|
|
209
209
|
|
|
210
210
|
exports.convertSelection = convertSelection; exports.RichSelectBoxContext = RichSelectBoxContext; exports.RichSelectBox_default = RichSelectBox_default;
|
|
211
|
-
//# sourceMappingURL=
|
|
211
|
+
//# sourceMappingURL=5IOCCDL6.cjs.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./KKADUD65.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./RCVW5CTF.js";
|
|
8
8
|
import {
|
|
9
9
|
colors_module_default
|
|
10
10
|
} from "./XVUEUKXA.js";
|
|
@@ -116,4 +116,4 @@ var Checkbox_default = Checkbox;
|
|
|
116
116
|
export {
|
|
117
117
|
Checkbox_default
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=
|
|
119
|
+
//# sourceMappingURL=5KCDVRT6.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _43ZVOHDUcjs = require('./43ZVOHDU.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
@@ -14,7 +14,7 @@ var _KJLBDAZHcjs = require('./KJLBDAZH.cjs');
|
|
|
14
14
|
var _JVGX637Ecjs = require('./JVGX637E.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _42SXZKBGcjs = require('./42SXZKBG.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -60,7 +60,7 @@ function SelectList({
|
|
|
60
60
|
[SelectList_module_default.opacityOverlay]: disabled
|
|
61
61
|
}),
|
|
62
62
|
children: [
|
|
63
|
-
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
63
|
+
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: selectId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _42SXZKBGcjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
64
64
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: SelectList_module_default.selectWrapper, children: [
|
|
65
65
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
66
66
|
"select",
|
|
@@ -98,7 +98,7 @@ function SelectList({
|
|
|
98
98
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
99
99
|
"path",
|
|
100
100
|
{
|
|
101
|
-
fill: errorText ?
|
|
101
|
+
fill: errorText ? _43ZVOHDUcjs.ColorBaseDestructive700 : _43ZVOHDUcjs.ColorBaseGray800,
|
|
102
102
|
d: "M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0z"
|
|
103
103
|
}
|
|
104
104
|
)
|
|
@@ -106,7 +106,7 @@ function SelectList({
|
|
|
106
106
|
) })
|
|
107
107
|
] }),
|
|
108
108
|
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
109
|
-
|
|
109
|
+
_42SXZKBGcjs.Typography_default,
|
|
110
110
|
{
|
|
111
111
|
size: 100,
|
|
112
112
|
color: errorText ? "destructive-primary" : "gray700",
|
|
@@ -122,4 +122,4 @@ SelectList.Option = _JVGX637Ecjs.SelectOption_default;
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
exports.SelectList = SelectList;
|
|
125
|
-
//# sourceMappingURL=
|
|
125
|
+
//# sourceMappingURL=6VB3H32I.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _RYUXG4AScjs = require('./RYUXG4AS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _Z66NM3NKcjs = require('./Z66NM3NK.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
|
|
|
19
19
|
function RichSelectRadioButton(props, ref) {
|
|
20
20
|
const _a = props, { size, name } = _a, otherProps = _X2SDR4SDcjs.__objRest.call(void 0, _a, ["size", "name"]);
|
|
21
21
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RYUXG4AScjs.RichSelectItem_default, _X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {}, otherProps), { ref, children: ({ isSelected, isFocusVisible, isDisabled }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22
|
-
|
|
22
|
+
_Z66NM3NKcjs.RadioButton_default,
|
|
23
23
|
{
|
|
24
24
|
checked: isSelected,
|
|
25
25
|
disabled: isDisabled,
|
|
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = _react.forwardRef.call(void 0,
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
exports.RichSelectRadioButton_default = RichSelectRadioButton_default;
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=6ZBLF7S2.cjs.map
|
|
@@ -7,7 +7,7 @@ var _MF7LLV7Vcjs = require('./MF7LLV7V.cjs');
|
|
|
7
7
|
var _IL22HCBFcjs = require('./IL22HCBF.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _42SXZKBGcjs = require('./42SXZKBG.cjs');
|
|
11
11
|
|
|
12
12
|
// src/RichSelect/RichSelectSection.tsx
|
|
13
13
|
var _react = require('react');
|
|
@@ -39,7 +39,7 @@ var RichSelectSection_default = _react.forwardRef.call(void 0,
|
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
41
|
children: [
|
|
42
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactariacomponents.Header, { className: _classnames2.default.call(void 0, _MF7LLV7Vcjs.layout_module_default.fullWidth), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
42
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactariacomponents.Header, { className: _classnames2.default.call(void 0, _MF7LLV7Vcjs.layout_module_default.fullWidth), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _42SXZKBGcjs.Typography_default, { children: label }) }),
|
|
43
43
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactariacomponents.Collection, { children })
|
|
44
44
|
]
|
|
45
45
|
}
|
|
@@ -50,4 +50,4 @@ var RichSelectSection_default = _react.forwardRef.call(void 0,
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
exports.RichSelectSection_default = RichSelectSection_default;
|
|
53
|
-
//# sourceMappingURL=
|
|
53
|
+
//# sourceMappingURL=7AVZDFCS.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _KJLBDAZHcjs = require('./KJLBDAZH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _42SXZKBGcjs = require('./42SXZKBG.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _SVA2ABQQcjs = require('./SVA2ABQQ.cjs');
|
|
@@ -40,7 +40,7 @@ var ItemCountIcon = ({
|
|
|
40
40
|
rounding: "full",
|
|
41
41
|
padding: 1,
|
|
42
42
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
43
|
-
|
|
43
|
+
_42SXZKBGcjs.Typography_default,
|
|
44
44
|
{
|
|
45
45
|
color: on === "lightBackground" ? "white" : "primary",
|
|
46
46
|
weight: "semiBold",
|
|
@@ -79,7 +79,7 @@ function TabInternal({
|
|
|
79
79
|
paddingY: 2,
|
|
80
80
|
children: [
|
|
81
81
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
82
|
-
|
|
82
|
+
_42SXZKBGcjs.Typography_default,
|
|
83
83
|
{
|
|
84
84
|
size: 0,
|
|
85
85
|
transform: "uppercase",
|
|
@@ -98,4 +98,4 @@ function TabInternal({
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
exports.TabInternal = TabInternal;
|
|
101
|
-
//# sourceMappingURL=
|
|
101
|
+
//# sourceMappingURL=B3O42V6X.cjs.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _KJLBDAZHcjs = require('./KJLBDAZH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _42SXZKBGcjs = require('./42SXZKBG.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -16,7 +16,7 @@ var _react = require('react');
|
|
|
16
16
|
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
17
17
|
|
|
18
18
|
// css-module:./TextField.module.css#css-module
|
|
19
|
-
var TextField_module_default = { "textfield": "
|
|
19
|
+
var TextField_module_default = { "textfield": "_textfield_1of18_1", "label": "_label_1of18_22", "md": "_md_1of18_26", "height": "_height_1of18_30", "inputError": "_inputError_1of18_34" };
|
|
20
20
|
|
|
21
21
|
// src/TextField/TextField.tsx
|
|
22
22
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -52,7 +52,7 @@ function TextField({
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
children: [
|
|
55
|
-
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
55
|
+
label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _42SXZKBGcjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
56
56
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
57
57
|
"input",
|
|
58
58
|
{
|
|
@@ -72,10 +72,10 @@ function TextField({
|
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
74
|
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _KJLBDAZHcjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
-
|
|
75
|
+
_42SXZKBGcjs.Typography_default,
|
|
76
76
|
{
|
|
77
77
|
size: 100,
|
|
78
|
-
color: errorText ? "destructive-
|
|
78
|
+
color: errorText ? "destructive-darkBackground" : "gray700",
|
|
79
79
|
children: errorText || helperText
|
|
80
80
|
}
|
|
81
81
|
) })
|
|
@@ -87,4 +87,4 @@ function TextField({
|
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
exports.TextField = TextField;
|
|
90
|
-
//# sourceMappingURL=
|
|
90
|
+
//# sourceMappingURL=B3ZOLJLG.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/TextField/TextField.tsx","css-module:./TextField.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAAA,EAGE;AAAA,OACK;AACP,OAAO,gBAAgB;;;ACL2E,IAAO,2BAAQ,EAAC,aAAY,sBAAqB,SAAQ,mBAAkB,MAAK,gBAAe,UAAS,oBAAmB,cAAa,uBAAsB;;;AD8F5P,SAcQ,KAdR;AAhFW,SAAR,UAA2B;AAAA,EAChC;AAAA,EACA,eAAe;AAAA,EACf,UAAU,eAAe;AAAA,EACzB,YAAY;AAAA,EACZ,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd,OAAO;AAAA,EACP,QAAQ;AAAA,EACR;AACF,GA2DiB;AACf,QAAM,aAAa,cAAc;AACjC,QAAM,WAAW,CAAC,cAAc;AAChC,QAAM,UAAU,MAAM;AACtB,QAAM,UAAU,kBAAM;AAEtB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAU;AAAA,MACV,KAAK;AAAA,MACL,OAAM;AAAA,MACN,2BAA2B;AAAA,QACzB,SAAS;AAAA,UACP,SAAS,WAAW,MAAM;AAAA,QAC5B;AAAA,MACF;AAAA,MAEC;AAAA,iBACC,oBAAC,WAAM,WAAW,yBAAO,OAAO,SAAS,SACvC,8BAAC,eAAI,UAAU,GACb,8BAAC,sBAAW,MAAM,KAAK,OAAM,WAC1B,iBACH,GACF,GACF;AAAA,QAEF;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,WAAW,WAAW,yBAAO,WAAW,yBAAO,IAAI,yBAAO,QAAQ;AAAA,cAChE,CAAC,yBAAO,UAAU,GAAG;AAAA,YACvB,CAAC;AAAA,YACD,eAAa;AAAA,YACb;AAAA,YACA,IAAI;AAAA,YACJ;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA;AAAA,QACF;AAAA,SACE,cAAc,cACd,oBAAC,eAAI,UAAU,GACb;AAAA,UAAC;AAAA;AAAA,YACC,MAAM;AAAA,YACN,OAAO,YAAY
|
|
1
|
+
{"version":3,"sources":["../../src/TextField/TextField.tsx","css-module:./TextField.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;AAAA;AAAA,EAGE;AAAA,OACK;AACP,OAAO,gBAAgB;;;ACL2E,IAAO,2BAAQ,EAAC,aAAY,sBAAqB,SAAQ,mBAAkB,MAAK,gBAAe,UAAS,oBAAmB,cAAa,uBAAsB;;;AD8F5P,SAcQ,KAdR;AAhFW,SAAR,UAA2B;AAAA,EAChC;AAAA,EACA,eAAe;AAAA,EACf,UAAU,eAAe;AAAA,EACzB,YAAY;AAAA,EACZ,aAAa;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd,OAAO;AAAA,EACP,QAAQ;AAAA,EACR;AACF,GA2DiB;AACf,QAAM,aAAa,cAAc;AACjC,QAAM,WAAW,CAAC,cAAc;AAChC,QAAM,UAAU,MAAM;AACtB,QAAM,UAAU,kBAAM;AAEtB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,WAAU;AAAA,MACV,KAAK;AAAA,MACL,OAAM;AAAA,MACN,2BAA2B;AAAA,QACzB,SAAS;AAAA,UACP,SAAS,WAAW,MAAM;AAAA,QAC5B;AAAA,MACF;AAAA,MAEC;AAAA,iBACC,oBAAC,WAAM,WAAW,yBAAO,OAAO,SAAS,SACvC,8BAAC,eAAI,UAAU,GACb,8BAAC,sBAAW,MAAM,KAAK,OAAM,WAC1B,iBACH,GACF,GACF;AAAA,QAEF;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,WAAW,WAAW,yBAAO,WAAW,yBAAO,IAAI,yBAAO,QAAQ;AAAA,cAChE,CAAC,yBAAO,UAAU,GAAG;AAAA,YACvB,CAAC;AAAA,YACD,eAAa;AAAA,YACb;AAAA,YACA,IAAI;AAAA,YACJ;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA;AAAA,QACF;AAAA,SACE,cAAc,cACd,oBAAC,eAAI,UAAU,GACb;AAAA,UAAC;AAAA;AAAA,YACC,MAAM;AAAA,YACN,OAAO,YAAY,+BAA+B;AAAA,YAEjD,uBAAa;AAAA;AAAA,QAChB,GACF;AAAA;AAAA;AAAA,EAEJ;AAEJ","sourcesContent":["import React, {\n type ReactElement,\n type HTMLInputTypeAttribute,\n useId,\n} from \"react\";\nimport classNames from \"classnames\";\nimport styles from \"./TextField.module.css\";\nimport Box from \"../Box/Box\";\nimport Typography from \"../Typography/Typography\";\nimport useIsHydrated from \"../useIsHydrated\";\n\n/**\n * [TextField](https://cambly-syntax.vercel.app/?path=/docs/components-textfield--docs) is a component that allows users to enter text.\n */\nexport default function TextField({\n autoComplete,\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n errorText = \"\",\n helperText = \"\",\n id,\n label,\n maxLength,\n onChange,\n placeholder = \"\",\n type = \"text\",\n value = \"\",\n step,\n}: {\n /**\n * The autocomplete attribute specifies whether or not an input field should have autocomplete enabled.\n *\n * Feel free to add new values from the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) as needed\n */\n autoComplete?: \"current-password\" | \"new-password\" | \"off\" | \"on\" | \"email\";\n /**\n * A data-testid to make querying for the TextField easier.\n */\n \"data-testid\"?: string;\n /**\n * If true, the TextField will be disabled.\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * Text shown below TextField if there is an input error.\n */\n errorText?: string;\n /**\n * Informative helper text shown below TextField\n */\n helperText?: string;\n /**\n * TextField id, if not provided, a unique id will be generated\n */\n id?: string;\n /**\n * TextField visible label\n */\n label: string;\n /**\n * Maximum length of the TextField\n */\n maxLength?: number;\n /**\n * The callback to be called the input changes\n */\n onChange: React.ChangeEventHandler<HTMLInputElement>;\n /**\n * Optional TextField placeholder text\n */\n placeholder?: string;\n /**\n * Input type of the TextField\n *\n * See [full list of input types](https://developer.mozilla.org/en-US/docs/Learn/Forms/HTML5_input_types)\n */\n type?: HTMLInputTypeAttribute;\n /**\n * Value of the TextField\n */\n value: string;\n /**\n * Specified legal number intervals for an input field. Specifically for time or number. If for time, specify in milliseconds. Must be a positive value.\n */\n step?: number;\n}): ReactElement {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const reactId = useId();\n const inputId = id ?? reactId;\n\n return (\n <Box\n display=\"flex\"\n direction=\"column\"\n gap={2}\n width=\"100%\"\n dangerouslySetInlineStyle={{\n __style: {\n opacity: disabled ? 0.5 : 1,\n },\n }}\n >\n {label && (\n <label className={styles.label} htmlFor={inputId}>\n <Box paddingX={1}>\n <Typography size={100} color=\"gray700\">\n {label}\n </Typography>\n </Box>\n </label>\n )}\n <input\n autoComplete={autoComplete}\n className={classNames(styles.textfield, styles.md, styles.height, {\n [styles.inputError]: errorText,\n })}\n data-testid={dataTestId}\n disabled={disabled}\n id={inputId}\n maxLength={maxLength}\n type={type}\n onChange={onChange}\n placeholder={placeholder}\n value={value}\n step={step}\n />\n {(helperText || errorText) && (\n <Box paddingX={1}>\n <Typography\n size={100}\n color={errorText ? \"destructive-darkBackground\" : \"gray700\"}\n >\n {errorText || helperText}\n </Typography>\n </Box>\n )}\n </Box>\n );\n}\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TextField/TextField.module.css\"; export default {\"textfield\":\"_textfield_1of18_1\",\"label\":\"_label_1of18_22\",\"md\":\"_md_1of18_26\",\"height\":\"_height_1of18_30\",\"inputError\":\"_inputError_1of18_34\"}"]}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./ODMJANSX.js";
|
|
5
5
|
import {
|
|
6
6
|
RadioButton_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./UCJSVVK6.js";
|
|
8
8
|
import {
|
|
9
9
|
__objRest,
|
|
10
10
|
__spreadProps,
|
|
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = forwardRef(
|
|
|
37
37
|
export {
|
|
38
38
|
RichSelectRadioButton_default
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=B64Z54QN.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
TabLink_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./P7YFSOS7.js";
|
|
5
5
|
import {
|
|
6
6
|
TabButton
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./SOR5SSPX.js";
|
|
8
8
|
import {
|
|
9
9
|
Tabs_module_default
|
|
10
10
|
} from "./5JQ6C2XV.js";
|
|
@@ -50,4 +50,4 @@ Tabs.Link = TabLink_default;
|
|
|
50
50
|
export {
|
|
51
51
|
Tabs
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=
|
|
53
|
+
//# sourceMappingURL=BB3LT6KA.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _XLUVINJWcjs = require('./XLUVINJW.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _42SXZKBGcjs = require('./42SXZKBG.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _SVA2ABQQcjs = require('./SVA2ABQQ.cjs');
|
|
@@ -100,7 +100,7 @@ var Checkbox = ({
|
|
|
100
100
|
}
|
|
101
101
|
),
|
|
102
102
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
103
|
-
|
|
103
|
+
_42SXZKBGcjs.Typography_default,
|
|
104
104
|
{
|
|
105
105
|
size: typographySize[size],
|
|
106
106
|
color: error ? "destructive-primary" : "gray900",
|
|
@@ -116,4 +116,4 @@ var Checkbox_default = Checkbox;
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
exports.Checkbox_default = Checkbox_default;
|
|
119
|
-
//# sourceMappingURL=
|
|
119
|
+
//# sourceMappingURL=BFODXGGO.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Typography_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./RCVW5CTF.js";
|
|
5
5
|
|
|
6
6
|
// src/Heading/Heading.tsx
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -47,4 +47,4 @@ var Heading_default = Heading;
|
|
|
47
47
|
export {
|
|
48
48
|
Heading_default
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=
|
|
50
|
+
//# sourceMappingURL=BG3VB5JF.js.map
|