@cambly/syntax-core 12.3.0 → 12.5.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.d.ts +1 -1
- package/dist/Badge/Badge.cjs +4 -3
- package/dist/Badge/Badge.d.ts +6 -2
- package/dist/Badge/Badge.js +3 -2
- package/dist/Button/Button.cjs +5 -4
- package/dist/Button/Button.d.ts +5 -3
- package/dist/Button/Button.js +4 -3
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/Checkbox/Checkbox.cjs +4 -3
- package/dist/Checkbox/Checkbox.css +13 -12
- package/dist/Checkbox/Checkbox.css.map +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +3 -2
- package/dist/Chip/Chip.cjs +4 -3
- package/dist/Chip/Chip.d.ts +4 -2
- package/dist/Chip/Chip.js +3 -2
- package/dist/Dialog/ModalDialog.cjs +4 -4
- package/dist/Dialog/ModalDialog.js +3 -3
- package/dist/Heading/Heading.cjs +4 -3
- package/dist/Heading/Heading.d.ts +2 -2
- package/dist/Heading/Heading.js +3 -2
- package/dist/Icon/Icon.cjs +12 -0
- package/dist/Icon/Icon.cjs.map +1 -0
- package/dist/Icon/Icon.css +470 -0
- package/dist/Icon/Icon.css.map +1 -0
- package/dist/Icon/Icon.d.ts +37 -0
- package/dist/Icon/Icon.js +12 -0
- package/dist/Icon/Icon.js.map +1 -0
- package/dist/IconButton/IconButton.cjs +2 -2
- package/dist/IconButton/IconButton.d.ts +8 -3
- package/dist/IconButton/IconButton.js +1 -1
- package/dist/LinkButton/LinkButton.cjs +4 -3
- package/dist/LinkButton/LinkButton.d.ts +5 -3
- package/dist/LinkButton/LinkButton.js +3 -2
- package/dist/Modal/Modal.cjs +8 -7
- package/dist/Modal/Modal.js +7 -6
- package/dist/Popover/Popover.cjs +5 -5
- package/dist/Popover/Popover.js +4 -4
- package/dist/RadioButton/RadioButton.cjs +4 -3
- package/dist/RadioButton/RadioButton.css +18 -17
- package/dist/RadioButton/RadioButton.css.map +1 -1
- package/dist/RadioButton/RadioButton.d.ts +1 -1
- package/dist/RadioButton/RadioButton.js +3 -2
- package/dist/RichSelect/RichSelectBox.cjs +12 -11
- package/dist/RichSelect/RichSelectBox.css +18 -17
- package/dist/RichSelect/RichSelectBox.css.map +1 -1
- package/dist/RichSelect/RichSelectBox.d.ts +1 -1
- package/dist/RichSelect/RichSelectBox.js +11 -10
- package/dist/RichSelect/RichSelectChip.cjs +5 -4
- package/dist/RichSelect/RichSelectChip.js +4 -3
- package/dist/RichSelect/RichSelectList.cjs +17 -16
- package/dist/RichSelect/RichSelectList.css +18 -17
- package/dist/RichSelect/RichSelectList.css.map +1 -1
- package/dist/RichSelect/RichSelectList.d.ts +1 -1
- package/dist/RichSelect/RichSelectList.js +16 -15
- package/dist/RichSelect/RichSelectRadioButton.cjs +6 -5
- package/dist/RichSelect/RichSelectRadioButton.css +18 -17
- package/dist/RichSelect/RichSelectRadioButton.css.map +1 -1
- package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
- package/dist/RichSelect/RichSelectRadioButton.js +5 -4
- package/dist/RichSelect/RichSelectSection.cjs +4 -3
- package/dist/RichSelect/RichSelectSection.js +3 -2
- package/dist/SelectList/SelectList.cjs +5 -4
- package/dist/SelectList/SelectList.js +4 -3
- package/dist/TapArea/TapArea.d.ts +1 -1
- package/dist/TextArea/TextArea.cjs +4 -3
- package/dist/TextArea/TextArea.js +3 -2
- package/dist/TextField/TextField.cjs +4 -3
- package/dist/TextField/TextField.d.ts +5 -1
- package/dist/TextField/TextField.js +3 -2
- package/dist/Tooltip/Tooltip.cjs +4 -3
- package/dist/Tooltip/Tooltip.js +3 -2
- package/dist/Typography/Typography.cjs +3 -2
- package/dist/Typography/Typography.d.ts +3 -3
- package/dist/Typography/Typography.js +2 -1
- package/dist/__chunks/{NDV4446A.cjs → 2OJKC2AX.cjs} +3 -3
- package/dist/__chunks/{RJY5SH6N.js → 36CGIMVN.js} +2 -2
- package/dist/__chunks/{IAAYWDNX.cjs → 3Z5JQV7Q.cjs} +6 -6
- package/dist/__chunks/{MEOMWLNG.js → 4JFE4NWI.js} +2 -2
- package/dist/__chunks/4JFE4NWI.js.map +1 -0
- package/dist/__chunks/{AN6SGUNO.js → 4SYTZR75.js} +4 -6
- package/dist/__chunks/4SYTZR75.js.map +1 -0
- package/dist/__chunks/{OPJKUJKD.js → 62PHRDGW.js} +3 -3
- package/dist/__chunks/{OPJKUJKD.js.map → 62PHRDGW.js.map} +1 -1
- package/dist/__chunks/{PROA22UK.cjs → 63XQSPT7.cjs} +2 -2
- package/dist/__chunks/63XQSPT7.cjs.map +1 -0
- package/dist/__chunks/{T6Q66MTP.cjs → 6ER23PG5.cjs} +4 -4
- package/dist/__chunks/72UQX6IX.cjs +31 -0
- package/dist/__chunks/72UQX6IX.cjs.map +1 -0
- package/dist/__chunks/{UX5KRRO4.js → 7EM2GOIC.js} +9 -7
- package/dist/__chunks/7EM2GOIC.js.map +1 -0
- package/dist/__chunks/{NT2USB3G.cjs → 7FYS3TSR.cjs} +3 -3
- package/dist/__chunks/{AC3JZOEZ.cjs → 7X4KKISP.cjs} +6 -4
- package/dist/__chunks/7X4KKISP.cjs.map +1 -0
- package/dist/__chunks/{ITALBBTF.js → COREQINY.js} +9 -5
- package/dist/__chunks/COREQINY.js.map +1 -0
- package/dist/__chunks/{4GZL7Q7G.cjs → CQQJROZE.cjs} +5 -5
- package/dist/__chunks/CQQJROZE.cjs.map +1 -0
- package/dist/__chunks/{QF7K6PY3.js → D2WZPJL3.js} +4 -2
- package/dist/__chunks/D2WZPJL3.js.map +1 -0
- package/dist/__chunks/{7TTYWZJV.js → DJL67KQ3.js} +5 -5
- package/dist/__chunks/{HWDLLEM4.js → EGLA4ZQ6.js} +2 -2
- package/dist/__chunks/{UH56LVRG.cjs → ELEREGBW.cjs} +3 -3
- package/dist/__chunks/{UUIXG3PQ.cjs → GUACYIXB.cjs} +3 -23
- package/dist/__chunks/GUACYIXB.cjs.map +1 -0
- package/dist/__chunks/{ICTDYMZM.cjs → HK7T4244.cjs} +8 -8
- package/dist/__chunks/{Y4BEP7DV.js → HN2MMSUI.js} +2 -2
- package/dist/__chunks/{JXI2A4FD.cjs → ID2WKUNH.cjs} +3 -3
- package/dist/__chunks/{EAUECPFO.cjs → JDGT2NSB.cjs} +1 -1
- package/dist/__chunks/{EAUECPFO.cjs.map → JDGT2NSB.cjs.map} +1 -1
- package/dist/__chunks/{DGFZT7SO.js → JEGPGWID.js} +3 -3
- package/dist/__chunks/{ZMLKUOZ2.cjs → K6VWXB7M.cjs} +4 -4
- package/dist/__chunks/{ZMLKUOZ2.cjs.map → K6VWXB7M.cjs.map} +1 -1
- package/dist/__chunks/{S2S77Y7G.js → LL5Q6ZDS.js} +2 -2
- package/dist/__chunks/{KUPD7W7N.js → NCV3QLVA.js} +6 -6
- package/dist/__chunks/{FVGIQTM2.js → NPZBG5AK.js} +5 -5
- package/dist/__chunks/{RMDRDNHT.js → PDVLGG4C.js} +3 -3
- package/dist/__chunks/PDVLGG4C.js.map +1 -0
- package/dist/__chunks/{FHLZXSCX.js → Q6657TAT.js} +3 -3
- package/dist/__chunks/Q6657TAT.js.map +1 -0
- package/dist/__chunks/{52WECBHV.js → Q7N54CYS.js} +4 -4
- package/dist/__chunks/{T5LYIWR3.cjs → RKDIXZZU.cjs} +10 -10
- package/dist/__chunks/{ANY6BV2W.cjs → S2VK4XNL.cjs} +10 -8
- package/dist/__chunks/S2VK4XNL.cjs.map +1 -0
- package/dist/__chunks/{M3KSATCF.cjs → SFZ2MHPA.cjs} +4 -4
- package/dist/__chunks/SFZ2MHPA.cjs.map +1 -0
- package/dist/__chunks/{4DFPFH5G.cjs → T5NFBPT6.cjs} +5 -5
- package/dist/__chunks/TELGW53W.js +37 -0
- package/dist/__chunks/TELGW53W.js.map +1 -0
- package/dist/__chunks/{IU2FZOKW.cjs → TLJEXAPK.cjs} +19 -19
- package/dist/__chunks/{2QPXNLJ6.js → TQ7D5O7L.js} +2 -2
- package/dist/__chunks/{D62L3CWM.cjs → TYPTB7HD.cjs} +6 -6
- package/dist/__chunks/{RXXGDO2J.js → V562ZHQ7.js} +3 -23
- package/dist/__chunks/V562ZHQ7.js.map +1 -0
- package/dist/__chunks/{5E23KLF4.cjs → W45CFJI7.cjs} +9 -5
- package/dist/__chunks/W45CFJI7.cjs.map +1 -0
- package/dist/__chunks/{RKDG6SCA.js → X747TBQO.js} +1 -1
- package/dist/__chunks/{RKDG6SCA.js.map → X747TBQO.js.map} +1 -1
- package/dist/__chunks/XMKQJFU6.cjs +37 -0
- package/dist/__chunks/XMKQJFU6.cjs.map +1 -0
- package/dist/__chunks/{H4L7P2Y7.js → Y67FDYEF.js} +2 -2
- package/dist/__chunks/{WIHMNKU4.cjs → YIDLOSTD.cjs} +5 -7
- package/dist/__chunks/YIDLOSTD.cjs.map +1 -0
- package/dist/__chunks/{PBOPUXSQ.js → ZOLQZLRM.js} +8 -8
- package/dist/__chunks/{5AKXXMJG.cjs → ZTK7E42P.cjs} +3 -3
- package/dist/__chunks/ZVJGV6GH.js +31 -0
- package/dist/__chunks/ZVJGV6GH.js.map +1 -0
- package/dist/colors/textColors.cjs +11 -0
- package/dist/colors/textColors.cjs.map +1 -0
- package/dist/colors/textColors.css +446 -0
- package/dist/colors/textColors.css.map +1 -0
- package/dist/colors/textColors.d.ts +3 -0
- package/dist/colors/textColors.js +11 -0
- package/dist/colors/textColors.js.map +1 -0
- package/dist/index.cjs +40 -35
- package/dist/index.css +55 -29
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +41 -36
- package/package.json +3 -3
- package/dist/__chunks/4GZL7Q7G.cjs.map +0 -1
- package/dist/__chunks/5E23KLF4.cjs.map +0 -1
- package/dist/__chunks/AC3JZOEZ.cjs.map +0 -1
- package/dist/__chunks/AN6SGUNO.js.map +0 -1
- package/dist/__chunks/ANY6BV2W.cjs.map +0 -1
- package/dist/__chunks/FHLZXSCX.js.map +0 -1
- package/dist/__chunks/ITALBBTF.js.map +0 -1
- package/dist/__chunks/M3KSATCF.cjs.map +0 -1
- package/dist/__chunks/MEOMWLNG.js.map +0 -1
- package/dist/__chunks/PROA22UK.cjs.map +0 -1
- package/dist/__chunks/QF7K6PY3.js.map +0 -1
- package/dist/__chunks/RMDRDNHT.js.map +0 -1
- package/dist/__chunks/RXXGDO2J.js.map +0 -1
- package/dist/__chunks/UUIXG3PQ.cjs.map +0 -1
- package/dist/__chunks/UX5KRRO4.js.map +0 -1
- package/dist/__chunks/WIHMNKU4.cjs.map +0 -1
- /package/dist/__chunks/{NDV4446A.cjs.map → 2OJKC2AX.cjs.map} +0 -0
- /package/dist/__chunks/{RJY5SH6N.js.map → 36CGIMVN.js.map} +0 -0
- /package/dist/__chunks/{IAAYWDNX.cjs.map → 3Z5JQV7Q.cjs.map} +0 -0
- /package/dist/__chunks/{T6Q66MTP.cjs.map → 6ER23PG5.cjs.map} +0 -0
- /package/dist/__chunks/{NT2USB3G.cjs.map → 7FYS3TSR.cjs.map} +0 -0
- /package/dist/__chunks/{7TTYWZJV.js.map → DJL67KQ3.js.map} +0 -0
- /package/dist/__chunks/{HWDLLEM4.js.map → EGLA4ZQ6.js.map} +0 -0
- /package/dist/__chunks/{UH56LVRG.cjs.map → ELEREGBW.cjs.map} +0 -0
- /package/dist/__chunks/{ICTDYMZM.cjs.map → HK7T4244.cjs.map} +0 -0
- /package/dist/__chunks/{Y4BEP7DV.js.map → HN2MMSUI.js.map} +0 -0
- /package/dist/__chunks/{JXI2A4FD.cjs.map → ID2WKUNH.cjs.map} +0 -0
- /package/dist/__chunks/{DGFZT7SO.js.map → JEGPGWID.js.map} +0 -0
- /package/dist/__chunks/{S2S77Y7G.js.map → LL5Q6ZDS.js.map} +0 -0
- /package/dist/__chunks/{KUPD7W7N.js.map → NCV3QLVA.js.map} +0 -0
- /package/dist/__chunks/{FVGIQTM2.js.map → NPZBG5AK.js.map} +0 -0
- /package/dist/__chunks/{52WECBHV.js.map → Q7N54CYS.js.map} +0 -0
- /package/dist/__chunks/{T5LYIWR3.cjs.map → RKDIXZZU.cjs.map} +0 -0
- /package/dist/__chunks/{4DFPFH5G.cjs.map → T5NFBPT6.cjs.map} +0 -0
- /package/dist/__chunks/{IU2FZOKW.cjs.map → TLJEXAPK.cjs.map} +0 -0
- /package/dist/__chunks/{2QPXNLJ6.js.map → TQ7D5O7L.js.map} +0 -0
- /package/dist/__chunks/{D62L3CWM.cjs.map → TYPTB7HD.cjs.map} +0 -0
- /package/dist/__chunks/{H4L7P2Y7.js.map → Y67FDYEF.js.map} +0 -0
- /package/dist/__chunks/{PBOPUXSQ.js.map → ZOLQZLRM.js.map} +0 -0
- /package/dist/__chunks/{5AKXXMJG.cjs.map → ZTK7E42P.cjs.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./M36V23WR.js";
|
|
5
5
|
import {
|
|
6
6
|
Typography_default
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./V562ZHQ7.js";
|
|
8
8
|
import {
|
|
9
9
|
useIsHydrated
|
|
10
10
|
} from "./JB65NEXK.js";
|
|
@@ -75,7 +75,7 @@ var Chip = forwardRef(
|
|
|
75
75
|
"aria-pressed": selected,
|
|
76
76
|
onClick: onChange,
|
|
77
77
|
children: [
|
|
78
|
-
Icon && /* @__PURE__ */ jsx(Icon, { className: iconStyles }),
|
|
78
|
+
Icon && /* @__PURE__ */ jsx(Icon, { className: iconStyles, size: "sm" }),
|
|
79
79
|
/* @__PURE__ */ jsx(Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ jsx(Typography_default, { size: 100, color, weight: "medium", children: text }) })
|
|
80
80
|
]
|
|
81
81
|
}
|
|
@@ -88,4 +88,4 @@ var Chip_default = Chip;
|
|
|
88
88
|
export {
|
|
89
89
|
Chip_default
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=
|
|
91
|
+
//# sourceMappingURL=Q6657TAT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Chip/Chip.tsx","css-module:./Chip.module.css#css-module"],"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=\"sm\" />}\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\"}"],"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,MAAK,MAAK;AAAA,UAChD,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;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import {
|
|
3
|
-
RadioButton_default
|
|
4
|
-
} from "./AN6SGUNO.js";
|
|
5
2
|
import {
|
|
6
3
|
RichSelectItem_default
|
|
7
4
|
} from "./ODMJANSX.js";
|
|
5
|
+
import {
|
|
6
|
+
RadioButton_default
|
|
7
|
+
} from "./4SYTZR75.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=Q7N54CYS.js.map
|
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
var _C5XPZTFOcjs = require('./C5XPZTFO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _S2VK4XNLcjs = require('./S2VK4XNL.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _DMA6PPUZcjs = require('./DMA6PPUZ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _ID2WKUNHcjs = require('./ID2WKUNH.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _ZTK7E42Pcjs = require('./ZTK7E42P.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _6ER23PG5cjs = require('./6ER23PG5.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
|
+
_S2VK4XNLcjs.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
|
+
_S2VK4XNLcjs.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: _ZTK7E42Pcjs.RichSelectSection_default,
|
|
202
|
+
Chip: _ID2WKUNHcjs.RichSelectChip_default,
|
|
203
|
+
RadioButton: _6ER23PG5cjs.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=RKDIXZZU.cjs.map
|
|
@@ -10,6 +10,9 @@ var _3P2PWHOUcjs = require('./3P2PWHOU.cjs');
|
|
|
10
10
|
var _BHN2OODFcjs = require('./BHN2OODF.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
14
|
+
|
|
15
|
+
|
|
13
16
|
var _MKZONAGTcjs = require('./MKZONAGT.cjs');
|
|
14
17
|
|
|
15
18
|
|
|
@@ -19,10 +22,7 @@ var _C3KZXHTVcjs = require('./C3KZXHTV.cjs');
|
|
|
19
22
|
var _RAL6R27Scjs = require('./RAL6R27S.cjs');
|
|
20
23
|
|
|
21
24
|
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var _UUIXG3PQcjs = require('./UUIXG3PQ.cjs');
|
|
25
|
+
var _GUACYIXBcjs = require('./GUACYIXB.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -89,10 +89,11 @@ var Button = _react.forwardRef.call(void 0,
|
|
|
89
89
|
Button_module_default.icon,
|
|
90
90
|
_BHN2OODFcjs.iconSize_default[size],
|
|
91
91
|
disabledPrimary && Button_module_default.disabledPrimary
|
|
92
|
-
)
|
|
92
|
+
),
|
|
93
|
+
size
|
|
93
94
|
}
|
|
94
95
|
),
|
|
95
|
-
(loading && loadingText || !loading && text) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
96
|
+
(loading && loadingText || !loading && text) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.Typography_default, { size: _5JUNB754cjs.textVariant_default[size], weight: "medium", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
96
97
|
"span",
|
|
97
98
|
{
|
|
98
99
|
className: _classnames2.default.call(void 0,
|
|
@@ -109,7 +110,8 @@ var Button = _react.forwardRef.call(void 0,
|
|
|
109
110
|
Button_module_default.icon,
|
|
110
111
|
_BHN2OODFcjs.iconSize_default[size],
|
|
111
112
|
disabledPrimary && Button_module_default.disabledPrimary
|
|
112
|
-
)
|
|
113
|
+
),
|
|
114
|
+
size
|
|
113
115
|
}
|
|
114
116
|
),
|
|
115
117
|
loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -143,4 +145,4 @@ var Button_default = Button;
|
|
|
143
145
|
|
|
144
146
|
|
|
145
147
|
exports.Button_default = Button_default;
|
|
146
|
-
//# sourceMappingURL=
|
|
148
|
+
//# sourceMappingURL=S2VK4XNL.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Button/Button.tsx","css-module:./Button.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,kBAAuC;AACvD,OAAO,gBAAgB;;;ACDqE,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;;;AD4IpkB,SAsBI,KAtBJ;AA7BN,IAAM,SAAS;AAAA,EACb,CACE;AAAA,IACE,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,IACR,OAAO;AAAA,IACP;AAAA,IACA,WAAW;AAAA,IACX,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL;AAAA,IACA;AAAA,IACA,OAAO;AAAA,EACT,GACA,QACG;AACH,UAAM,aAAa,cAAc;AAEjC,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AACtD,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AACtD,UAAM,kBAAkB,UAAU,aAAa;AAC/C,UAAM,aAAa,CAAC,cAAc,YAAY;AAE9C,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAa;AAAA,QACb;AAAA,QACA,cAAY;AAAA,QACZ;AAAA,QACA,OAAO;AAAA,QACP,UAAU;AAAA,QACV;AAAA,QACA,WAAW;AAAA,UACT,sBAAO;AAAA,UACP;AAAA,UACA;AAAA,UACA,OAAO,OAAO,EAAE;AAAA,UAChB,sBAAO,IAAI;AAAA,UACX;AAAA,YACE,CAAC,sBAAO,SAAS,GAAG;AAAA,YACpB,CAAC,sBAAO,SAAS,GAAG,SAAS,QAAQ,SAAS;AAAA,YAC9C,CAAC,sBAAO,QAAQ,GAAG;AAAA,UACrB;AAAA,QACF;AAAA,QAEC;AAAA,WAAC,WAAW,aACX;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT,sBAAO;AAAA,gBACP,iBAAS,IAAI;AAAA,gBACb,mBAAmB,sBAAO;AAAA,cAC5B;AAAA,cACA;AAAA;AAAA,UACF;AAAA,WAEC,WAAW,eAAiB,CAAC,WAAW,SACzC,oBAAC,eAAI,UAAU,GACb,8BAAC,sBAAW,MAAM,oBAAY,IAAI,GAAG,QAAO,UAC1C;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT;AAAA,gBACA,mBAAmB,sBAAO;AAAA,cAC5B;AAAA,cAEC,oBAAU,cAAc;AAAA;AAAA,UAC3B,GACF,GACF;AAAA,UAED,CAAC,WAAW,WACX;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT,sBAAO;AAAA,gBACP,iBAAS,IAAI;AAAA,gBACb,mBAAmB,sBAAO;AAAA,cAC5B;AAAA,cACA;AAAA;AAAA,UACF;AAAA,UAED,WACC;AAAA,YAAC;AAAA;AAAA,cACC,WAAW,WAAW,sBAAO,SAAS,oBAAoB;AAAA,cAC1D,SAAQ;AAAA,cACR,OAAO,wBAAgB,IAAI;AAAA,cAC3B,QAAQ,wBAAgB,IAAI;AAAA,cAE5B;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAW,sBAAO;AAAA,kBAClB,IAAG;AAAA,kBACH,IAAG;AAAA,kBACH,GAAE;AAAA,kBACF,MAAK;AAAA,kBACL,aAAY;AAAA;AAAA,cACd;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;AAErB,IAAO,iBAAQ","sourcesContent":["import React, { forwardRef, type ComponentProps } from \"react\";\nimport classNames from \"classnames\";\nimport { type Size } from \"../constants\";\nimport Typography from \"../Typography/Typography\";\nimport Box from \"../Box/Box\";\nimport iconSize from \"./constants/iconSize\";\nimport textVariant from \"./constants/textVariant\";\nimport loadingIconSize from \"./constants/loadingIconSize\";\nimport styles from \"./Button.module.css\";\nimport useIsHydrated from \"../useIsHydrated\";\nimport { backgroundColor } from \"../colors/backgroundColor\";\nimport { foregroundColor } from \"../colors/foregroundColor\";\nimport { border } from \"../colors/border\";\nimport type InternalIcon from \"../Icon/Icon\";\n\ntype ButtonProps = {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The text to be displayed inside the button\n */\n text: string;\n /**\n * The text to be displayed inside the button when it is in a loading state\n */\n loadingText?: string;\n /**\n * The color of the button\n *\n * @defaultValue \"primary\"\n */\n color?:\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"destructive-primary\"\n | \"destructive-secondary\"\n | \"destructive-tertiary\"\n | \"branded\"\n | \"success-primary\"\n | \"success-secondary\"\n | \"success-tertiary\";\n /**\n * The size of the button\n *\n * * `sm`: 32px\n * * `md`: 48px\n * * `lg`: 64px\n *\n * @defaultValue \"md\"\n */\n size?: (typeof Size)[number];\n /**\n * The label to be used for accessibility\n */\n accessibilityLabel?: string;\n /**\n * If `true`, the button will be disabled\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * If `true`, the button will be in a loading state\n *\n * @defaultValue false\n */\n loading?: boolean;\n /**\n * If `true`, the button will take up the full width of its container\n *\n * @defaultValue false\n */\n fullWidth?: boolean;\n /**\n * The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n startIcon?:\n | React.ComponentType<{ className?: string }>\n | React.ComponentType<ComponentProps<typeof InternalIcon>>;\n /**\n * The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n endIcon?:\n | React.ComponentType<{ className?: string }>\n | React.ComponentType<ComponentProps<typeof InternalIcon>>;\n /**\n * Indicate whether the button renders on a light or dark background. Changes the color of the button\n *\n * @defaulValue `lightBackground`\n */\n on?: \"lightBackground\" | \"darkBackground\";\n /**\n * The callback to be called when the button is clicked\n */\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n /**\n * The tooltip to be displayed when the user hovers over the button\n */\n tooltip?: string;\n /**\n * The type you want to set for the primitive `<button/>`\n */\n type?: \"button\" | \"submit\" | \"reset\";\n};\n\n/**\n * [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.\n */\nconst Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n \"data-testid\": dataTestId,\n text,\n loadingText,\n color = \"primary\",\n size = \"md\",\n accessibilityLabel,\n disabled = false,\n loading = false,\n fullWidth = false,\n startIcon: StartIcon,\n endIcon: EndIcon,\n on = \"lightBackground\",\n onClick,\n tooltip,\n type = \"button\",\n }: ButtonProps,\n ref,\n ) => {\n const isHydrated = useIsHydrated();\n\n const foregroundColorClass = foregroundColor(color, on);\n const backgroundColorClass = backgroundColor(color, on);\n const disabledPrimary = color === \"primary\" && disabled;\n const isDisabled = !isHydrated || disabled || loading;\n\n return (\n <button\n data-testid={dataTestId}\n ref={ref}\n aria-label={accessibilityLabel}\n type={type}\n title={tooltip}\n disabled={isDisabled}\n onClick={onClick}\n className={classNames(\n styles.button,\n foregroundColorClass,\n backgroundColorClass,\n border(color, on),\n styles[size],\n {\n [styles.fullWidth]: fullWidth,\n [styles.buttonGap]: size === \"lg\" || size === \"md\",\n [styles.disabled]: isDisabled,\n },\n )}\n >\n {!loading && StartIcon && (\n <StartIcon\n className={classNames(\n styles.icon,\n iconSize[size],\n disabledPrimary && styles.disabledPrimary,\n )}\n size={size}\n />\n )}\n {((loading && loadingText) || (!loading && text)) && (\n <Box paddingX={1}>\n <Typography size={textVariant[size]} weight=\"medium\">\n <span\n className={classNames(\n foregroundColorClass,\n disabledPrimary && styles.disabledPrimary,\n )}\n >\n {loading ? loadingText : text}\n </span>\n </Typography>\n </Box>\n )}\n {!loading && EndIcon && (\n <EndIcon\n className={classNames(\n styles.icon,\n iconSize[size],\n disabledPrimary && styles.disabledPrimary,\n )}\n size={size}\n />\n )}\n {loading && (\n <svg\n className={classNames(styles.loading, foregroundColorClass)}\n viewBox=\"22 22 44 44\"\n width={loadingIconSize[size]}\n height={loadingIconSize[size]}\n >\n <circle\n className={styles.loadingCircle}\n cx=\"44\"\n cy=\"44\"\n r=\"20.2\"\n fill=\"none\"\n strokeWidth=\"3.6\"\n />\n </svg>\n )}\n </button>\n );\n },\n);\n\nButton.displayName = \"Button\";\n\nexport default Button;\n","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\"}"]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _GUACYIXBcjs = require('./GUACYIXB.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 }),
|
|
79
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.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: "sm" }),
|
|
79
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: Icon ? 1 : 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.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=SFZ2MHPA.cjs.map
|
|
@@ -0,0 +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,MAAK,MAAK;AAAA,UAChD,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=\"sm\" />}\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\"}"]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _GUACYIXBcjs = require('./GUACYIXB.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -54,8 +54,8 @@ var TextArea = _react.forwardRef.call(void 0,
|
|
|
54
54
|
},
|
|
55
55
|
position: "relative",
|
|
56
56
|
children: [
|
|
57
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
58
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
57
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
58
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.Typography_default, { size: 100, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
59
59
|
"textarea",
|
|
60
60
|
{
|
|
61
61
|
"data-testid": dataTestId,
|
|
@@ -78,7 +78,7 @@ var TextArea = _react.forwardRef.call(void 0,
|
|
|
78
78
|
}
|
|
79
79
|
) }),
|
|
80
80
|
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
81
|
-
|
|
81
|
+
_GUACYIXBcjs.Typography_default,
|
|
82
82
|
{
|
|
83
83
|
size: 100,
|
|
84
84
|
color: errorText ? "destructive-primary" : "gray700",
|
|
@@ -95,4 +95,4 @@ var TextArea_default = TextArea;
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
exports.TextArea_default = TextArea_default;
|
|
98
|
-
//# sourceMappingURL=
|
|
98
|
+
//# sourceMappingURL=T5NFBPT6.cjs.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import {
|
|
3
|
+
textColor
|
|
4
|
+
} from "./ZVJGV6GH.js";
|
|
5
|
+
|
|
6
|
+
// src/Icon/Icon.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import classnames from "classnames";
|
|
9
|
+
|
|
10
|
+
// css-module:./Icon.module.css#css-module
|
|
11
|
+
var Icon_module_default = { "icon": "_icon_1ku5p_1", "iconxs": "_iconxs_1ku5p_8", "iconsm": "_iconsm_1ku5p_13", "iconmd": "_iconmd_1ku5p_18", "iconlg": "_iconlg_1ku5p_23" };
|
|
12
|
+
|
|
13
|
+
// src/Icon/Icon.tsx
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
var Icon = forwardRef(
|
|
16
|
+
({ color = "inherit", path, size = "md" }, ref) => /* @__PURE__ */ jsx(
|
|
17
|
+
"svg",
|
|
18
|
+
{
|
|
19
|
+
className: classnames(
|
|
20
|
+
Icon_module_default.icon,
|
|
21
|
+
textColor(color),
|
|
22
|
+
Icon_module_default[`icon${size}`]
|
|
23
|
+
),
|
|
24
|
+
ref,
|
|
25
|
+
viewBox: "0 0 24 24",
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
children: /* @__PURE__ */ jsx("path", { d: path })
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
Icon.displayName = "Icon";
|
|
32
|
+
var Icon_default = Icon;
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
Icon_default
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=TELGW53W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Icon/Icon.tsx","css-module:./Icon.module.css#css-module"],"sourcesContent":["import { forwardRef, type ComponentProps } from \"react\";\nimport classnames from \"classnames\";\n\nimport styles from \"./Icon.module.css\";\nimport textColor from \"../colors/textColors\";\nimport type Typography from \"../Typography/Typography\";\n\ntype IconProps = {\n /**\n * The color of the Icon.\n *\n * @defaultValue \"gray900\"\n */\n color?: ComponentProps<typeof Typography>[\"color\"];\n /**\n * The size of the Icon.\n * * `xs`: 16px x 16px\n * * `sm`: 20px x 20px\n * * `md`: 24px x 24px\n * * `lg`: 32px x 32px\n *\n * @defaultValue \"md\"\n */\n size?: \"xs\" | \"sm\" | \"md\" | \"lg\";\n /**\n * The svg path of the icon. You should not use this prop directly, instead use the specific icon components.\n */\n path?: string;\n};\n\n/**\n * [Icon](http://localhost:6006/?path=/docs/icons-icons--docs) is the base component that renders an icon.\n * You shouldn't use this component directly, instead use the specific icon components.\n * @example\n * `import Book from \"@cambly/syntax-icons/dist/Book\";`\n *\n * You can click on the icon to copy the import statement!\n */\nconst Icon = forwardRef<SVGSVGElement, IconProps>(\n ({ color = \"inherit\", path, size = \"md\" }: IconProps, ref) => (\n <svg\n className={classnames(\n styles.icon,\n textColor(color),\n styles[`icon${size}`],\n )}\n ref={ref}\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d={path} />\n </svg>\n ),\n);\n\nIcon.displayName = \"Icon\";\n\nexport default Icon;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Icon/Icon.module.css\"; export default {\"icon\":\"_icon_1ku5p_1\",\"iconxs\":\"_iconxs_1ku5p_8\",\"iconsm\":\"_iconsm_1ku5p_13\",\"iconmd\":\"_iconmd_1ku5p_18\",\"iconlg\":\"_iconlg_1ku5p_23\"}"],"mappings":";;;;;;AAAA,SAAS,kBAAuC;AAChD,OAAO,gBAAgB;;;ACDiE,IAAO,sBAAQ,EAAC,QAAO,iBAAgB,UAAS,mBAAkB,UAAS,oBAAmB,UAAS,oBAAmB,UAAS,mBAAkB;;;ADkDvO;AAZN,IAAM,OAAO;AAAA,EACX,CAAC,EAAE,QAAQ,WAAW,MAAM,OAAO,KAAK,GAAc,QACpD;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,oBAAO;AAAA,QACP,UAAU,KAAK;AAAA,QACf,oBAAO,OAAO,MAAM;AAAA,MACtB;AAAA,MACA;AAAA,MACA,SAAQ;AAAA,MACR,OAAM;AAAA,MAEN,8BAAC,UAAK,GAAG,MAAM;AAAA;AAAA,EACjB;AAEJ;AAEA,KAAK,cAAc;AAEnB,IAAO,eAAQ;","names":[]}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _RKDIXZZUcjs = require('./RKDIXZZU.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _ID2WKUNHcjs = require('./ID2WKUNH.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _ELEREGBWcjs = require('./ELEREGBW.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _76LTWV2Qcjs = require('./76LTWV2Q.cjs');
|
|
@@ -19,19 +19,19 @@ var _3UEOKPM2cjs = require('./3UEOKPM2.cjs');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _JDGT2NSBcjs = require('./JDGT2NSB.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _ZTK7E42Pcjs = require('./ZTK7E42P.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _6ER23PG5cjs = require('./6ER23PG5.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _GUACYIXBcjs = require('./GUACYIXB.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _K4AUV2VKcjs = require('./K4AUV2VK.cjs');
|
|
@@ -100,11 +100,11 @@ function RichSelectList(props) {
|
|
|
100
100
|
const disabled = !isHydrated || disabledProp;
|
|
101
101
|
const overlayHandlerRef = _react.useRef.call(void 0, {});
|
|
102
102
|
const selectedKeysProp = _react.useMemo.call(void 0,
|
|
103
|
-
() =>
|
|
103
|
+
() => _RKDIXZZUcjs.convertSelection.call(void 0, selectedValuesProp),
|
|
104
104
|
[selectedValuesProp]
|
|
105
105
|
);
|
|
106
106
|
const defaultSelectedKeys = _react.useMemo.call(void 0,
|
|
107
|
-
() =>
|
|
107
|
+
() => _RKDIXZZUcjs.convertSelection.call(void 0, defaultSelectedValuesProp, /* @__PURE__ */ new Set()),
|
|
108
108
|
[defaultSelectedValuesProp]
|
|
109
109
|
);
|
|
110
110
|
const [selectedKeys, setSelectedKeys] = _utils.useControlledState.call(void 0,
|
|
@@ -142,7 +142,7 @@ function RichSelectList(props) {
|
|
|
142
142
|
_reactariacomponents.Provider,
|
|
143
143
|
{
|
|
144
144
|
values: [
|
|
145
|
-
[
|
|
145
|
+
[_RKDIXZZUcjs.RichSelectBoxContext, { autoFocus: true }],
|
|
146
146
|
[_76LTWV2Qcjs.DialogContext, { padding: autosave ? void 0 : 0 }]
|
|
147
147
|
// this is altering Popover's internal dialog padding to show the sticky save/close buttons. Ideally this could be avoided
|
|
148
148
|
],
|
|
@@ -166,11 +166,11 @@ function RichSelectList(props) {
|
|
|
166
166
|
(_a2 = fieldRef.current) == null ? void 0 : _a2.focus();
|
|
167
167
|
_interactions.setInteractionModality.call(void 0, "keyboard");
|
|
168
168
|
},
|
|
169
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
169
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.Typography_default, { size: 100, color: "gray700", children: label }) })
|
|
170
170
|
})
|
|
171
171
|
) }),
|
|
172
172
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
173
|
-
|
|
173
|
+
_ELEREGBWcjs.Popover_default,
|
|
174
174
|
{
|
|
175
175
|
ref: overlayHandlerRef,
|
|
176
176
|
disabled,
|
|
@@ -182,7 +182,7 @@ function RichSelectList(props) {
|
|
|
182
182
|
padding: autosave ? void 0 : 5,
|
|
183
183
|
dangerouslySetInlineStyle: autosave ? void 0 : { __style: { paddingBottom: 0 } },
|
|
184
184
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
185
|
-
|
|
185
|
+
_RKDIXZZUcjs.RichSelectBox_default,
|
|
186
186
|
_X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {
|
|
187
187
|
autosave,
|
|
188
188
|
selectedValues: selectedKeys,
|
|
@@ -231,7 +231,7 @@ function RichSelectList(props) {
|
|
|
231
231
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
232
232
|
"path",
|
|
233
233
|
{
|
|
234
|
-
fill: errorText ?
|
|
234
|
+
fill: errorText ? _JDGT2NSBcjs.ColorBaseDestructive700 : _JDGT2NSBcjs.ColorBaseGray800,
|
|
235
235
|
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"
|
|
236
236
|
}
|
|
237
237
|
)
|
|
@@ -243,7 +243,7 @@ function RichSelectList(props) {
|
|
|
243
243
|
}
|
|
244
244
|
),
|
|
245
245
|
(helperText || errorText) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FESAFV44cjs.Box_default, { paddingX: 1, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
246
|
-
|
|
246
|
+
_GUACYIXBcjs.Typography_default,
|
|
247
247
|
_X2SDR4SDcjs.__spreadProps.call(void 0, _X2SDR4SDcjs.__spreadValues.call(void 0, {
|
|
248
248
|
size: 100,
|
|
249
249
|
color: errorText ? "destructive-primary" : "gray700"
|
|
@@ -258,12 +258,12 @@ function RichSelectList(props) {
|
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
260
|
var RichSelectList_default = Object.assign(RichSelectList, {
|
|
261
|
-
Section:
|
|
262
|
-
Chip:
|
|
263
|
-
RadioButton:
|
|
261
|
+
Section: _ZTK7E42Pcjs.RichSelectSection_default,
|
|
262
|
+
Chip: _ID2WKUNHcjs.RichSelectChip_default,
|
|
263
|
+
RadioButton: _6ER23PG5cjs.RichSelectRadioButton_default
|
|
264
264
|
});
|
|
265
265
|
|
|
266
266
|
|
|
267
267
|
|
|
268
268
|
exports.RichSelectList_default = RichSelectList_default;
|
|
269
|
-
//# sourceMappingURL=
|
|
269
|
+
//# sourceMappingURL=TLJEXAPK.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
3
|
Chip_default
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./Q6657TAT.js";
|
|
5
5
|
import {
|
|
6
6
|
RichSelectItem_default
|
|
7
7
|
} from "./ODMJANSX.js";
|
|
@@ -31,4 +31,4 @@ var RichSelectChip_default = forwardRef(
|
|
|
31
31
|
export {
|
|
32
32
|
RichSelectChip_default
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=TQ7D5O7L.js.map
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
var _76LTWV2Qcjs = require('./76LTWV2Q.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _63XQSPT7cjs = require('./63XQSPT7.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _FESAFV44cjs = require('./FESAFV44.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _PLUVW6AMcjs = require('./PLUVW6AM.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _IL22HCBFcjs = require('./IL22HCBF.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _E5P6WRJDcjs = require('./E5P6WRJD.cjs');
|
|
@@ -130,7 +130,7 @@ var ModalDialog = _react.forwardRef.call(void 0,
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
133
|
-
|
|
133
|
+
_63XQSPT7cjs.IconButton_default,
|
|
134
134
|
{
|
|
135
135
|
onClick: () => state.close(),
|
|
136
136
|
color: "tertiary",
|
|
@@ -157,4 +157,4 @@ var ModalDialog_default = ModalDialog;
|
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
exports.AriaModalOverlay = AriaModalOverlay; exports.AriaModal = AriaModal; exports.ModalDialog_default = ModalDialog_default;
|
|
160
|
-
//# sourceMappingURL=
|
|
160
|
+
//# sourceMappingURL=TYPTB7HD.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
textColor
|
|
4
|
+
} from "./ZVJGV6GH.js";
|
|
5
5
|
|
|
6
6
|
// src/Typography/Typography.tsx
|
|
7
7
|
import classNames from "classnames";
|
|
@@ -12,26 +12,6 @@ var Typography_module_default = { "typography": "_typography_737nn_1", "sansSeri
|
|
|
12
12
|
|
|
13
13
|
// src/Typography/Typography.tsx
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
|
-
function textColor(color) {
|
|
16
|
-
switch (color) {
|
|
17
|
-
case "gray700":
|
|
18
|
-
return colors_module_default.cambioGray800Color;
|
|
19
|
-
case "white":
|
|
20
|
-
return colors_module_default.cambioWhiteColor;
|
|
21
|
-
case "inherit":
|
|
22
|
-
return colors_module_default.inheritColor;
|
|
23
|
-
case "destructive-primary":
|
|
24
|
-
return colors_module_default.cambioDestructive900Color;
|
|
25
|
-
case "destructive-darkBackground":
|
|
26
|
-
return colors_module_default.cambioDestructive100Color;
|
|
27
|
-
case "success":
|
|
28
|
-
return colors_module_default.cambioSuccess900Color;
|
|
29
|
-
case "success-darkBackground":
|
|
30
|
-
return colors_module_default.cambioSuccess100Color;
|
|
31
|
-
default:
|
|
32
|
-
return colors_module_default.cambioBlackColor;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
15
|
var Typography = forwardRef(function Typography2({
|
|
36
16
|
align = "start",
|
|
37
17
|
as = "div",
|
|
@@ -80,4 +60,4 @@ var Typography_default = Typography;
|
|
|
80
60
|
export {
|
|
81
61
|
Typography_default
|
|
82
62
|
};
|
|
83
|
-
//# sourceMappingURL=
|
|
63
|
+
//# sourceMappingURL=V562ZHQ7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Typography/Typography.tsx","css-module:./Typography.module.css#css-module"],"sourcesContent":["import classNames from \"classnames\";\nimport { forwardRef, type ReactElement, type ReactNode } from \"react\";\nimport styles from \"./Typography.module.css\";\nimport textColor from \"../colors/textColors\";\n\n/**\n * [Typography](https://cambly-syntax.vercel.app/?path=/docs/components-typography--docs) is a component that renders text.\n */\nconst Typography = forwardRef<\n HTMLDivElement,\n {\n /**\n * Aligns the text to the left, right, or center of the container.\n * * `start` and `end` will align the text to the left or right of the container depending on the locale.\n * * `forceLeft` and `forceRight` will align the text to the left or right of the container regardless of the locale (should be used sparingly).\n *\n * @defaultValue \"start\"\n */\n align?: \"start\" | \"end\" | \"forceLeft\" | \"center\" | \"forceRight\";\n /**\n * DOM element to render as.\n *\n * @defaultValue \"div\"\n */\n as?: \"div\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n /**\n * The text to be rendered\n */\n children?: ReactNode;\n /**\n * The color of the text.\n *\n * @defaultValue \"gray900\"\n */\n color?:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-darkBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"inherit\";\n /**\n * Test id for the text\n */\n \"data-testid\"?: string;\n /**\n * Style of the font\n *\n * Classic only supports `sans-serif`\n *\n * @defaultValue \"sans-serif\"\n */\n fontStyle?: \"serif\" | \"sans-serif\";\n /**\n * The id for the element\n */\n id?: string;\n /**\n * Whether the text should flow inline with other elements.\n *\n * @defaultValue false\n */\n inline?: boolean;\n /**\n * The number of lines we should truncate the text at\n */\n lineClamp?: number | undefined;\n /**\n * Size of the text.\n *\n * Mobile (viewport width <= 480px)::\n * * `100`: 14px\n * * `200`: 16px\n * * `300`: 18px\n * * `400`: 20px\n * * `500`: 23px\n * * `600`: 26px\n * * `700`: 29px\n * * `800`: 33px\n * * `900`: 37px\n * * `1000`: 41px\n * * `1100`: 46px\n *\n * Desktop (viewport width > 480px):\n * * `100`: 13px\n * * `200`: 16px\n * * `300`: 20px\n * * `400`: 25px\n * * `500`: 31px\n * * `600`: 39px\n * * `700`: 49px\n * * `800`: 61px\n * * `900`: 76px\n * * `1000`: 95px\n * * `1100`: 119px\n *\n * @defaultValue 200\n */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 | 1100;\n /**\n * The tooltip to be displayed when the user hovers the text\n */\n tooltip?: string;\n /**\n * Whether the text should be transformed to uppercase.\n *\n * @defaultValue \"none\"\n */\n transform?: \"none\" | \"uppercase\";\n /**\n * Whether the text has an underline.\n *\n * @defaultValue false\n */\n underline?: boolean;\n /**\n * Indicates the boldness of the text.\n *\n * * `regular`: 400\n * * `medium`: 510\n * * `semiBold`: 590\n * * `bold`: 710\n *\n * @defaultValue \"regular\"\n */\n weight?: \"regular\" | \"medium\" | \"semiBold\" | \"bold\";\n }\n>(function Typography(\n {\n align = \"start\",\n as = \"div\",\n children,\n color = \"gray900\",\n \"data-testid\": dataTestId,\n fontStyle = \"sans-serif\",\n id,\n inline = false,\n lineClamp = undefined,\n size = 200,\n tooltip,\n transform = \"none\",\n underline = false,\n weight = \"regular\",\n },\n ref,\n): ReactElement {\n const Tag = as;\n\n return (\n <Tag\n id={id}\n className={classNames(\n styles.typography,\n styles[align],\n styles[weight],\n fontStyle === \"serif\" ? styles.serif : styles.sansSerif,\n textColor(color),\n inline && styles.inline,\n styles[`size${size}`],\n transform === \"uppercase\" && styles.uppercase,\n underline && styles.underline,\n lineClamp != null && styles.lineClamp,\n )}\n data-testid={dataTestId}\n style={{\n WebkitLineClamp: lineClamp,\n }}\n title={tooltip}\n ref={ref}\n >\n {children}\n </Tag>\n );\n});\n\nexport default Typography;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/Typography/Typography.module.css\"; export default {\"typography\":\"_typography_737nn_1\",\"sansSerif\":\"_sansSerif_737nn_22\",\"serif\":\"_serif_737nn_27\",\"size100\":\"_size100_737nn_73\",\"size200\":\"_size200_737nn_77\",\"size300\":\"_size300_737nn_81\",\"size400\":\"_size400_737nn_85\",\"size500\":\"_size500_737nn_89\",\"size600\":\"_size600_737nn_93\",\"size700\":\"_size700_737nn_97\",\"size800\":\"_size800_737nn_101\",\"size900\":\"_size900_737nn_105\",\"size1000\":\"_size1000_737nn_146\",\"size1100\":\"_size1100_737nn_150\",\"center\":\"_center_737nn_156\",\"forceLeft\":\"_forceLeft_737nn_160\",\"forceRight\":\"_forceRight_737nn_164\",\"start\":\"_start_737nn_168\",\"end\":\"_end_737nn_172\",\"regular\":\"_regular_737nn_178\",\"medium\":\"_medium_737nn_182\",\"semiBold\":\"_semiBold_737nn_186\",\"bold\":\"_bold_737nn_190\",\"underline\":\"_underline_737nn_194\",\"inline\":\"_inline_737nn_198\",\"uppercase\":\"_uppercase_737nn_202\",\"lineClamp\":\"_lineClamp_737nn_206\"}"],"mappings":";;;;;;AAAA,OAAO,gBAAgB;AACvB,SAAS,kBAAqD;;;ACDsC,IAAO,4BAAQ,EAAC,cAAa,uBAAsB,aAAY,uBAAsB,SAAQ,mBAAkB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,qBAAoB,WAAU,sBAAqB,WAAU,sBAAqB,YAAW,uBAAsB,YAAW,uBAAsB,UAAS,qBAAoB,aAAY,wBAAuB,cAAa,yBAAwB,SAAQ,oBAAmB,OAAM,kBAAiB,WAAU,sBAAqB,UAAS,qBAAoB,YAAW,uBAAsB,QAAO,mBAAkB,aAAY,wBAAuB,UAAS,qBAAoB,aAAY,wBAAuB,aAAY,uBAAsB;;;ADwJn7B;AAhJJ,IAAM,aAAa,WA0HjB,SAASA,YACT;AAAA,EACE,QAAQ;AAAA,EACR,KAAK;AAAA,EACL;AAAA,EACA,QAAQ;AAAA,EACR,eAAe;AAAA,EACf,YAAY;AAAA,EACZ;AAAA,EACA,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,OAAO;AAAA,EACP;AAAA,EACA,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,SAAS;AACX,GACA,KACc;AACd,QAAM,MAAM;AAEZ,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT,0BAAO;AAAA,QACP,0BAAO,KAAK;AAAA,QACZ,0BAAO,MAAM;AAAA,QACb,cAAc,UAAU,0BAAO,QAAQ,0BAAO;AAAA,QAC9C,UAAU,KAAK;AAAA,QACf,UAAU,0BAAO;AAAA,QACjB,0BAAO,OAAO,MAAM;AAAA,QACpB,cAAc,eAAe,0BAAO;AAAA,QACpC,aAAa,0BAAO;AAAA,QACpB,aAAa,QAAQ,0BAAO;AAAA,MAC9B;AAAA,MACA,eAAa;AAAA,MACb,OAAO;AAAA,QACL,iBAAiB;AAAA,MACnB;AAAA,MACA,OAAO;AAAA,MACP;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,qBAAQ;","names":["Typography"]}
|
|
@@ -19,9 +19,11 @@ var _C3KZXHTVcjs = require('./C3KZXHTV.cjs');
|
|
|
19
19
|
var _RAL6R27Scjs = require('./RAL6R27S.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _GUACYIXBcjs = require('./GUACYIXB.cjs');
|
|
23
23
|
|
|
24
24
|
// src/LinkButton/LinkButton.tsx
|
|
25
|
+
|
|
26
|
+
|
|
25
27
|
var _react = require('react');
|
|
26
28
|
var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);
|
|
27
29
|
|
|
@@ -82,10 +84,11 @@ var LinkButton = _react.forwardRef.call(void 0,
|
|
|
82
84
|
Button_module_default.icon,
|
|
83
85
|
_BHN2OODFcjs.iconSize_default[size],
|
|
84
86
|
foregroundColorClass
|
|
85
|
-
)
|
|
87
|
+
),
|
|
88
|
+
size
|
|
86
89
|
}
|
|
87
90
|
),
|
|
88
|
-
!loading && text && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
91
|
+
!loading && text && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GUACYIXBcjs.Typography_default, { size: _5JUNB754cjs.textVariant_default[size], weight: "medium", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
89
92
|
"span",
|
|
90
93
|
{
|
|
91
94
|
className: foregroundColorClass,
|
|
@@ -99,7 +102,8 @@ var LinkButton = _react.forwardRef.call(void 0,
|
|
|
99
102
|
Button_module_default.icon,
|
|
100
103
|
_BHN2OODFcjs.iconSize_default[size],
|
|
101
104
|
foregroundColorClass
|
|
102
|
-
)
|
|
105
|
+
),
|
|
106
|
+
size
|
|
103
107
|
}
|
|
104
108
|
),
|
|
105
109
|
loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -133,4 +137,4 @@ var LinkButton_default = LinkButton;
|
|
|
133
137
|
|
|
134
138
|
|
|
135
139
|
exports.LinkButton_default = LinkButton_default;
|
|
136
|
-
//# sourceMappingURL=
|
|
140
|
+
//# sourceMappingURL=W45CFJI7.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/LinkButton/LinkButton.tsx","css-module:../Button/Button.module.css#css-module","css-module:./LinkButton.module.css#css-module"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,OAGK;AACP,OAAO,gBAAgB;;;ACLqE,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;;;ACAte,IAAO,4BAAQ,EAAC,cAAa,uBAAsB,cAAa,uBAAsB;;;AFkIpL,SAuBI,KAvBJ;AAvBN,IAAM,aAAa;AAAA,EACjB,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,KAAK;AAAA,IACL;AAAA,EACF,GACA,QACG;AACH,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AACtD,UAAM,uBAAuB,gBAAgB,OAAO,EAAE;AAEtD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb;AAAA,QACA;AAAA,QACA;AAAA,QACA,WAAW;AAAA,UACT,0BAAO;AAAA,UACP,sBAAa;AAAA,UACb;AAAA,UACA;AAAA,UACA,OAAO,OAAO,EAAE;AAAA,UAChB,sBAAa,IAAI;AAAA,UACjB;AAAA,YACE,CAAC,sBAAa,SAAS,GAAG;AAAA,YAC1B,CAAC,0BAAO,UAAU,GAAG,CAAC;AAAA,YACtB,CAAC,sBAAa,SAAS,GAAG,SAAS,QAAQ,SAAS;AAAA,YACpD,CAAC,sBAAa,QAAQ,GAAG;AAAA,UAC3B;AAAA,QACF;AAAA,QACA;AAAA,QAEC;AAAA,WAAC,WAAW,aACX;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT,sBAAa;AAAA,gBACb,iBAAS,IAAI;AAAA,gBACb;AAAA,cACF;AAAA,cACA;AAAA;AAAA,UACF;AAAA,UAED,CAAC,WAAW,QACX,oBAAC,sBAAW,MAAM,oBAAY,IAAI,GAAG,QAAO,UAC1C;AAAA,YAAC;AAAA;AAAA,cAEC,WAAW;AAAA,cAEV;AAAA;AAAA,UACH,GACF;AAAA,UAED,CAAC,WAAW,WACX;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT,sBAAa;AAAA,gBACb,iBAAS,IAAI;AAAA,gBACb;AAAA,cACF;AAAA,cACA;AAAA;AAAA,UACF;AAAA,UAED,WACC;AAAA,YAAC;AAAA;AAAA,cACC,WAAW,WAAW,sBAAa,SAAS,oBAAoB;AAAA,cAChE,SAAQ;AAAA,cACR,OAAO,wBAAgB,IAAI;AAAA,cAC3B,QAAQ,wBAAgB,IAAI;AAAA,cAE5B;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAW,sBAAa;AAAA,kBACxB,IAAG;AAAA,kBACH,IAAG;AAAA,kBACH,GAAE;AAAA,kBACF,MAAK;AAAA,kBACL,aAAY;AAAA;AAAA,cACd;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IAEJ;AAAA,EAEJ;AACF;AAEA,WAAW,cAAc;AAEzB,IAAO,qBAAQ","sourcesContent":["import {\n forwardRef,\n type HtmlHTMLAttributes,\n type ComponentProps,\n} from \"react\";\nimport classNames from \"classnames\";\nimport React from \"react\";\nimport { type Size } from \"../constants\";\nimport Typography from \"../Typography/Typography\";\nimport buttonStyles from \"../Button/Button.module.css\";\nimport iconSize from \"../Button/constants/iconSize\";\nimport textVariant from \"../Button/constants/textVariant\";\nimport loadingIconSize from \"../Button/constants/loadingIconSize\";\nimport styles from \"./LinkButton.module.css\";\nimport { backgroundColor } from \"../colors//backgroundColor\";\nimport { foregroundColor } from \"../colors/foregroundColor\";\nimport { border } from \"../colors/border\";\nimport type InternalIcon from \"../Icon/Icon\";\n\ntype LinkButtonProps = {\n /**\n * Test id for the button\n */\n \"data-testid\"?: string;\n /**\n * The text to be displayed inside the button\n */\n text: string;\n /**\n * The link that the LinkButton should route to.\n *\n */\n href?: string;\n /**\n * The target attribute specifies where to open the linked document.\n *\n */\n target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\";\n /**\n * The rel attribute specifies the relationship between the document and the link.\n *\n */\n rel?: HtmlHTMLAttributes<HTMLAnchorElement>[\"rel\"];\n /**\n * The color of the button\n *\n * @defaultValue \"primary\"\n */\n color?:\n | \"primary\"\n | \"secondary\"\n | \"tertiary\"\n | \"destructive-primary\"\n | \"destructive-secondary\"\n | \"destructive-tertiary\"\n | \"branded\"\n | \"success-primary\"\n | \"success-secondary\"\n | \"success-tertiary\";\n /**\n * The size of the button\n * * `sm`: 32px\n * * `md`: 48px\n * * `lg`: 64px\n *\n * @defaultValue \"md\"\n */\n size?: (typeof Size)[number];\n /**\n * If `true`, the button will be in a loading state\n *\n * @defaultValue false\n */\n loading?: boolean;\n /**\n * If `true`, the button will take up the full width of its container\n *\n * @defaultValue false\n */\n fullWidth?: boolean;\n /**\n * The icon to be displayed at the start of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n startIcon?:\n | React.ComponentType<{ className?: string }>\n | React.ComponentType<ComponentProps<typeof InternalIcon>>;\n /**\n * The icon to be displayed at the end of the button. Please use a [Rounded Material Icon](https://material.io/resources/icons/?style=round)\n */\n endIcon?:\n | React.ComponentType<{ className?: string }>\n | React.ComponentType<ComponentProps<typeof InternalIcon>>;\n /**\n * Indicate whether the button renders on a light or dark background. Changes the color of the button\n *\n * @defaulValue `lightBackground`\n */\n on?: \"lightBackground\" | \"darkBackground\";\n /**\n * An optional onClick event. This is used for certain wrapper's support (such as react-router-dom).\n */\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n};\n\n/**\n * [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.\n */\nconst LinkButton = forwardRef<HTMLAnchorElement, LinkButtonProps>(\n (\n {\n text,\n href,\n target,\n rel,\n \"data-testid\": dataTestId,\n color = \"primary\",\n size = \"md\",\n loading = false,\n fullWidth = false,\n startIcon: StartIcon,\n endIcon: EndIcon,\n on = \"lightBackground\",\n onClick,\n }: LinkButtonProps,\n ref,\n ) => {\n const foregroundColorClass = foregroundColor(color, on);\n const backgroundColorClass = backgroundColor(color, on);\n\n return (\n <a\n href={href}\n data-testid={dataTestId}\n target={target}\n ref={ref}\n rel={rel}\n className={classNames(\n styles.linkButton,\n buttonStyles.button,\n foregroundColorClass,\n backgroundColorClass,\n border(color, on),\n buttonStyles[size],\n {\n [buttonStyles.fullWidth]: fullWidth,\n [styles.fitContent]: !fullWidth,\n [buttonStyles.buttonGap]: size === \"lg\" || size === \"md\",\n [buttonStyles.disabled]: loading,\n },\n )}\n onClick={onClick}\n >\n {!loading && StartIcon && (\n <StartIcon\n className={classNames(\n buttonStyles.icon,\n iconSize[size],\n foregroundColorClass,\n )}\n size={size}\n />\n )}\n {!loading && text && (\n <Typography size={textVariant[size]} weight=\"medium\">\n <span\n // Temporary - until we have cambio colors on Typogrphay\n className={foregroundColorClass}\n >\n {text}\n </span>\n </Typography>\n )}\n {!loading && EndIcon && (\n <EndIcon\n className={classNames(\n buttonStyles.icon,\n iconSize[size],\n foregroundColorClass,\n )}\n size={size}\n />\n )}\n {loading && (\n <svg\n className={classNames(buttonStyles.loading, foregroundColorClass)}\n viewBox=\"22 22 44 44\"\n width={loadingIconSize[size]}\n height={loadingIconSize[size]}\n >\n <circle\n className={buttonStyles.loadingCircle}\n cx=\"44\"\n cy=\"44\"\n r=\"20.2\"\n fill=\"none\"\n strokeWidth=\"3.6\"\n />\n </svg>\n )}\n </a>\n );\n },\n);\n\nLinkButton.displayName = \"LinkButton\";\n\nexport default LinkButton;\n","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 \"/home/runner/work/syntax/syntax/packages/syntax-core/src/LinkButton/LinkButton.module.css\"; export default {\"linkButton\":\"_linkButton_1qjrb_1\",\"fitContent\":\"_fitContent_1qjrb_11\"}"]}
|