@cambly/syntax-core 21.8.0 → 21.10.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.
@@ -0,0 +1,60 @@
1
+ /* css-module:/home/runner/work/syntax/syntax/packages/syntax-core/src/TapArea/TapArea.module.css/#css-module-data */
2
+ ._tapArea_1gbc8_1 {
3
+ box-sizing: border-box;
4
+ }
5
+ ._fullHeight_1gbc8_5 {
6
+ height: 100%;
7
+ }
8
+ ._fullWidth_1gbc8_9 {
9
+ width: 100%;
10
+ }
11
+ ._disabled_1gbc8_13 {
12
+ filter: opacity(50%);
13
+ background-image: none;
14
+ transform: none;
15
+ cursor: auto;
16
+ }
17
+ ._enabled_1gbc8_20 {
18
+ cursor: pointer;
19
+ }
20
+ ._enabled_1gbc8_20:hover {
21
+ cursor: pointer;
22
+ }
23
+ ._enabled_1gbc8_20:focus-visible {
24
+ box-shadow: 0 0 0 4px #000;
25
+ outline: solid 2px #fff;
26
+ }
27
+ ._overlay_1gbc8_33 {
28
+ background-color: rgba(0, 0, 0, 0.1);
29
+ position: absolute;
30
+ top: 0;
31
+ left: 0;
32
+ width: 100%;
33
+ height: 100%;
34
+ pointer-events: none;
35
+ }
36
+ ._hoveredOrFocussed_1gbc8_43 {
37
+ position: relative;
38
+ }
39
+
40
+ /* css-module:/home/runner/work/syntax/syntax/packages/syntax-core/src/rounding.module.css/#css-module-data */
41
+ ._roundingsm_1j4mo_2 {
42
+ border-radius: 4px;
43
+ }
44
+ ._roundingmd_1j4mo_6 {
45
+ border-radius: 8px;
46
+ }
47
+ ._roundingfull_1j4mo_10 {
48
+ border-radius: 999px;
49
+ }
50
+
51
+ /* css-module:/home/runner/work/syntax/syntax/packages/syntax-core/src/LinkTapArea/LinkTapArea.module.css/#css-module-data */
52
+ ._linkTapArea_1nzmd_1 {
53
+ box-sizing: border-box;
54
+ text-decoration: none;
55
+ }
56
+ ._linkTapArea_1nzmd_1:focus,
57
+ ._linkTapArea_1nzmd_1:hover {
58
+ text-decoration: none;
59
+ }
60
+ /*# sourceMappingURL=LinkTapArea.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["css-module:/home/runner/work/syntax/syntax/packages/syntax-core/src/TapArea/TapArea.module.css/#css-module-data","css-module:/home/runner/work/syntax/syntax/packages/syntax-core/src/rounding.module.css/#css-module-data","css-module:/home/runner/work/syntax/syntax/packages/syntax-core/src/LinkTapArea/LinkTapArea.module.css/#css-module-data"],"sourcesContent":["._tapArea_1gbc8_1 {\n box-sizing: border-box;\n}\n\n._fullHeight_1gbc8_5 {\n height: 100%;\n}\n\n._fullWidth_1gbc8_9 {\n width: 100%;\n}\n\n._disabled_1gbc8_13 {\n filter: opacity(50%);\n background-image: none;\n transform: none;\n cursor: auto;\n}\n\n._enabled_1gbc8_20 {\n cursor: pointer;\n}\n\n._enabled_1gbc8_20:hover {\n cursor: pointer;\n}\n\n._enabled_1gbc8_20:focus-visible {\n box-shadow: 0 0 0 4px #000;\n outline: solid 2px #fff;\n}\n\n._overlay_1gbc8_33 {\n background-color: rgba(0, 0, 0, 0.1);\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n._hoveredOrFocussed_1gbc8_43 {\n position: relative;\n}\n","/* Border Radius */\n._roundingsm_1j4mo_2 {\n border-radius: 4px;\n}\n\n._roundingmd_1j4mo_6 {\n border-radius: 8px;\n}\n\n._roundingfull_1j4mo_10 {\n border-radius: 999px;\n}\n","._linkTapArea_1nzmd_1 {\n box-sizing: border-box;\n text-decoration: none;\n}\n\n._linkTapArea_1nzmd_1:focus,\n._linkTapArea_1nzmd_1:hover {\n text-decoration: none;\n}\n"],"mappings":";AAAA;AACE;AAAA;AAGF;AACE;AAAA;AAGF;AACE;AAAA;AAGF;AACE;AACA;AACA;AACA;AAAA;AAGF;AACE;AAAA;AAGF;AACE;AAAA;AAGF;AACE;AACA;AAAA;AAGF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGF;AACE;AAAA;;;AC1CF;AACE;AAAA;AAGF;AACE;AAAA;AAGF;AACE;AAAA;;;ACVF;AACE;AACA;AAAA;AAGF;AAAA;AAEE;AAAA;","names":[]}
@@ -0,0 +1,74 @@
1
+ import React__default, { ReactNode, HtmlHTMLAttributes } from 'react';
2
+
3
+ declare const LinkTapArea: React__default.ForwardRefExoticComponent<React__default.AriaAttributes & {
4
+ /**
5
+ * The children to be rendered inside the tap area.
6
+ */
7
+ children?: ReactNode;
8
+ /**
9
+ * The link that the LinkTapArea should route to.
10
+ *
11
+ */
12
+ href?: string | undefined;
13
+ /**
14
+ * The target attribute specifies where to open the linked document.
15
+ *
16
+ */
17
+ target?: "_blank" | "_self" | "_parent" | "_top" | undefined;
18
+ /**
19
+ * The rel attribute specifies the relationship between the document and the link.
20
+ *
21
+ */
22
+ rel?: HtmlHTMLAttributes<HTMLAnchorElement>["rel"];
23
+ /**
24
+ * The label to be used for accessibility
25
+ */
26
+ accessibilityLabel?: string | undefined;
27
+ /**
28
+ * Test id for the tap area
29
+ */
30
+ "data-testid"?: string | undefined;
31
+ /**
32
+ * If `true`, the tap area will be disabled
33
+ *
34
+ * @defaultValue false
35
+ */
36
+ disabled?: boolean | undefined;
37
+ /**
38
+ * If `true`, the tap area will be full height
39
+ */
40
+ fullHeight?: boolean | undefined;
41
+ /**
42
+ * If `true`, the tap area will be full width
43
+ */
44
+ fullWidth?: boolean | undefined;
45
+ /**
46
+ * The callback to be called when the tap area is clicked
47
+ */
48
+ onClick: (event: React__default.SyntheticEvent<HTMLAnchorElement>) => void;
49
+ /**
50
+ * The callback to be called when the tap area is hovered
51
+ */
52
+ onMouseEnter?: ((event: React__default.SyntheticEvent<HTMLAnchorElement>) => void) | undefined;
53
+ /**
54
+ * The callback to be called when the tap area is no longer hovered
55
+ */
56
+ onMouseLeave?: ((event: React__default.SyntheticEvent<HTMLAnchorElement>) => void) | undefined;
57
+ /**
58
+ * Border radius of the tap area.
59
+ *
60
+ * * `none`: 0px
61
+ * * `sm`: 8px
62
+ * * `md`: 12px
63
+ * * `full`: 999px
64
+ *
65
+ * @defaultValue "none"
66
+ */
67
+ rounding?: "none" | "md" | "sm" | "full" | undefined;
68
+ /**
69
+ * The tab index of the tap area
70
+ */
71
+ tabIndex?: 0 | -1 | undefined;
72
+ } & React__default.RefAttributes<HTMLAnchorElement>>;
73
+
74
+ export { LinkTapArea as default };
@@ -0,0 +1,12 @@
1
+ "use client"
2
+ import {
3
+ LinkTapArea_default
4
+ } from "../__chunks/LD67LLZE.js";
5
+ import "../__chunks/4U4UW4AK.js";
6
+ import "../__chunks/KBIW5XV4.js";
7
+ import "../__chunks/JB65NEXK.js";
8
+ import "../__chunks/UWGNJENA.js";
9
+ export {
10
+ LinkTapArea_default as default
11
+ };
12
+ //# sourceMappingURL=LinkTapArea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -39,6 +39,10 @@ type RichSelectListProps = RichSelectBoxProps & {
39
39
  * @defaultValue white
40
40
  */
41
41
  color?: "white" | "clear";
42
+ /**
43
+ * Z-index of the popover
44
+ */
45
+ zIndex?: number;
42
46
  };
43
47
  /**
44
48
  * [RichSelectList](https://cambly-syntax.vercel.app/?path=/docs/components-richselectlist--docs) is a dropdown menu that allows users to select one or multiple options from a list.
@@ -1,13 +1,13 @@
1
1
  "use client"
2
2
  import {
3
3
  RichSelectList_default
4
- } from "../__chunks/KRD2PINC.js";
4
+ } from "../__chunks/A4YV2G5E.js";
5
5
  import "../__chunks/STXMQR3I.js";
6
6
  import "../__chunks/TALOD4CL.js";
7
7
  import "../__chunks/576PJXFR.js";
8
8
  import "../__chunks/KEJPRZJ5.js";
9
9
  import "../__chunks/4U4UW4AK.js";
10
- import "../__chunks/4UNKXRQE.js";
10
+ import "../__chunks/YSRQYMMU.js";
11
11
  import "../__chunks/3CVV6PAD.js";
12
12
  import "../__chunks/36DG472B.js";
13
13
  import "../__chunks/2BHS5CFG.js";
@@ -23,7 +23,8 @@ import "../__chunks/KKADUD65.js";
23
23
  import "../__chunks/WAGE57PF.js";
24
24
  import "../__chunks/JVYDT3KG.js";
25
25
  import "../__chunks/ODMJANSX.js";
26
- import "../__chunks/S3C44SBB.js";
26
+ import "../__chunks/OXEXFQAN.js";
27
+ import "../__chunks/4U4UW4AK.js";
27
28
  import "../__chunks/AXNRGUDZ.js";
28
29
  import "../__chunks/YCN52LF4.js";
29
30
  import "../__chunks/RSS2H4EE.js";
@@ -1,9 +1,9 @@
1
1
  "use client"
2
2
  import {
3
3
  SelectList
4
- } from "../__chunks/FXYXYYWE.js";
4
+ } from "../__chunks/5QR4GKVY.js";
5
5
  import "../__chunks/SPQ7DQHG.js";
6
- import "../__chunks/4UNKXRQE.js";
6
+ import "../__chunks/YSRQYMMU.js";
7
7
  import "../__chunks/KKADUD65.js";
8
8
  import "../__chunks/X552U42S.js";
9
9
  import "../__chunks/4U4UW4AK.js";
@@ -1,8 +1,9 @@
1
1
  "use client"
2
2
  import {
3
3
  TabButton
4
- } from "../__chunks/HAV7ESKO.js";
5
- import "../__chunks/S3C44SBB.js";
4
+ } from "../__chunks/OYZNL37T.js";
5
+ import "../__chunks/OXEXFQAN.js";
6
+ import "../__chunks/4U4UW4AK.js";
6
7
  import "../__chunks/VV2NJABK.js";
7
8
  import "../__chunks/4U4UW4AK.js";
8
9
  import "../__chunks/TKDQXKWS.js";
@@ -1,7 +1,8 @@
1
1
  "use client"
2
2
  import {
3
3
  TapArea_default
4
- } from "../__chunks/S3C44SBB.js";
4
+ } from "../__chunks/OXEXFQAN.js";
5
+ import "../__chunks/4U4UW4AK.js";
5
6
  import "../__chunks/KBIW5XV4.js";
6
7
  import "../__chunks/JB65NEXK.js";
7
8
  import "../__chunks/UWGNJENA.js";
@@ -6,7 +6,7 @@ import {
6
6
  ColorBaseDestructive700,
7
7
  ColorBaseGray700,
8
8
  ColorCambioWhite100
9
- } from "./4UNKXRQE.js";
9
+ } from "./YSRQYMMU.js";
10
10
  import {
11
11
  Focus_module_default
12
12
  } from "./KKADUD65.js";
@@ -140,4 +140,4 @@ SelectList.Option = SelectOption_default;
140
140
  export {
141
141
  SelectList
142
142
  };
143
- //# sourceMappingURL=FXYXYYWE.js.map
143
+ //# sourceMappingURL=5QR4GKVY.js.map
@@ -9,7 +9,7 @@ import {
9
9
  ColorBaseDestructive700,
10
10
  ColorBaseGray700,
11
11
  ColorCambioWhite100
12
- } from "./4UNKXRQE.js";
12
+ } from "./YSRQYMMU.js";
13
13
  import {
14
14
  RichSelectBoxContext,
15
15
  RichSelectBox_default,
@@ -26,7 +26,7 @@ import {
26
26
  } from "./WAGE57PF.js";
27
27
  import {
28
28
  TapArea_default
29
- } from "./S3C44SBB.js";
29
+ } from "./OXEXFQAN.js";
30
30
  import {
31
31
  Box_default
32
32
  } from "./X552U42S.js";
@@ -79,7 +79,8 @@ function RichSelectList(props) {
79
79
  selectTextValue,
80
80
  selectedValues: selectedValuesProp,
81
81
  defaultSelectedValues: defaultSelectedValuesProp,
82
- color = "white"
82
+ color = "white",
83
+ zIndex
83
84
  } = _a, richSelectBoxProps = __objRest(_a, [
84
85
  "autosave",
85
86
  "children",
@@ -95,7 +96,8 @@ function RichSelectList(props) {
95
96
  "selectTextValue",
96
97
  "selectedValues",
97
98
  "defaultSelectedValues",
98
- "color"
99
+ "color",
100
+ "zIndex"
99
101
  ]);
100
102
  const reactId = useId();
101
103
  const inputId = id != null ? id : reactId;
@@ -192,6 +194,7 @@ function RichSelectList(props) {
192
194
  {
193
195
  ref: overlayHandlerRef,
194
196
  disabled,
197
+ zIndex,
195
198
  content: (
196
199
  // this Box wrapper is to reapply the padding that was stripped from popover's dialog to show the sticky save/close buttons. Ideally this could be avoided
197
200
  /* @__PURE__ */ jsx(
@@ -286,4 +289,4 @@ var RichSelectList_default = Object.assign(RichSelectList, {
286
289
  export {
287
290
  RichSelectList_default
288
291
  };
289
- //# sourceMappingURL=KRD2PINC.js.map
292
+ //# sourceMappingURL=A4YV2G5E.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/RichSelect/RichSelectList.tsx","css-module:../SelectList/SelectList.module.css#css-module"],"sourcesContent":["import React, {\n type ReactElement,\n useMemo,\n type SyntheticEvent,\n useRef,\n useId,\n} from \"react\";\nimport classNames from \"classnames\";\nimport {\n ColorBaseDestructive700,\n ColorBaseGray700,\n ColorCambioWhite100,\n} from \"@cambly/syntax-design-tokens\";\nimport Typography from \"../Typography/Typography\";\nimport useIsHydrated from \"../useIsHydrated\";\nimport Popover from \"../Popover/Popover\";\nimport {\n Label as ReactAriaLabel,\n Provider as ReactAriaProvider,\n} from \"react-aria-components\";\nimport { useControlledState } from \"@react-stately/utils\";\nimport { setInteractionModality } from \"@react-aria/interactions\";\nimport { DialogContext } from \"../Dialog/Dialog\";\nimport styles from \"../SelectList/SelectList.module.css\";\nimport RichSelectBox, {\n RichSelectBoxContext,\n convertSelection,\n type RichSelectBoxProps,\n} from \"./RichSelectBox\";\nimport TapArea from \"../TapArea/TapArea\";\nimport { type OverlayHandlerRef } from \"../react-aria-utils/Triggerable\";\nimport Box from \"../Box/Box\";\nimport RichSelectSection from \"./RichSelectSection\";\nimport RichSelectChip from \"./RichSelectChip\";\nimport RichSelectRadioButton from \"./RichSelectRadioButton\";\nimport { useField } from \"react-aria\";\n\nconst NOOP = () => undefined;\n\nexport type RichSelectListProps = RichSelectBoxProps & {\n /** Test id for the select element */\n \"data-testid\"?: string;\n /**\n * Disables the select dropdown entirely\n * @defaultValue false\n */\n disabled?: boolean;\n /** Callback to be called when select is clicked */\n onClick?: (event: SyntheticEvent<HTMLDivElement>) => void;\n /** Text shown below select box if there is an input error. */\n errorText?: string;\n /** Text shown below select box */\n helperText?: string;\n /**\n * RichSelectList id, if not provided, a unique id will be generated\n */\n id?: string;\n /** Text shown above select box */\n label: string;\n /**\n * Text showing in select box if no option has been chosen.\n * There should always have a placeholder unless there is a default option selected\n */\n placeholderText?: string;\n /** Use to render (override) text shown in the select box */\n selectTextValue?: (selectedValues?: \"all\" | string[]) => string | undefined;\n /**\n * Color of the select box\n * @defaultValue white\n */\n color?: \"white\" | \"clear\";\n /**\n * Z-index of the popover\n */\n zIndex?: number;\n};\n\n/**\n * [RichSelectList](https://cambly-syntax.vercel.app/?path=/docs/components-richselectlist--docs) is a dropdown menu that allows users to select one or multiple options from a list.\n *\n * Example Usage:\n ```\n <RichSelectList\n label=\"My Label\"\n multiple\n onChange={() => { ... }}\n primaryButtonText=\"Save\"\n primaryButtonAccessibilityLabel=\"Save\"\n secondaryButtonText=\"Clear\"\n secondaryButtonAccessibilityLabel=\"Clear\"\n >\n <RichSelectList.Section label=\"Cities\">\n <RichSelectList.Chip label=\"San Francisco\" value=\"sf\" />\n <RichSelectList.Chip label=\"New York\" value=\"ny\" disabled />\n <RichSelectList.Chip label=\"Tulsa\" value=\"tulsa\" />\n <RichSelectList.Chip label=\"Chicago\" value=\"chicago\" disabled />\n </RichSelectList.Section>\n </RichSelectList>\n ```\n */\nfunction RichSelectList(props: RichSelectListProps): ReactElement {\n const {\n autosave,\n children,\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n errorText,\n helperText,\n label,\n id,\n onChange,\n onClick = NOOP,\n placeholderText,\n selectTextValue,\n selectedValues: selectedValuesProp,\n defaultSelectedValues: defaultSelectedValuesProp,\n color = \"white\",\n zIndex,\n ...richSelectBoxProps\n } = props;\n\n const reactId = useId();\n const inputId = id ?? reactId;\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n\n // passed to popover, which attached open/close methods\n const overlayHandlerRef = useRef<OverlayHandlerRef>({});\n\n const selectedKeysProp = useMemo(\n () => convertSelection(selectedValuesProp),\n [selectedValuesProp],\n );\n const defaultSelectedKeys = useMemo(\n () => convertSelection(defaultSelectedValuesProp, new Set()),\n [defaultSelectedValuesProp],\n );\n const [selectedKeys, setSelectedKeys] = useControlledState(\n selectedKeysProp!, // eslint-disable-line @typescript-eslint/no-non-null-assertion -- there is a bug in the typedef for useControlledState from react-stately. Internally they rely on value (first arg) able to be undefined\n defaultSelectedKeys,\n (value) => {\n const _value = value === \"all\" ? \"all\" : [...value].map(String);\n onChange(_value);\n if (!autosave) overlayHandlerRef.current.close?.();\n },\n );\n\n const selectedTextValue = useMemo(() => {\n if (selectTextValue)\n return (\n selectTextValue(\n selectedKeys === \"all\" ? \"all\" : [...selectedKeys].map(String),\n ) ?? placeholderText\n );\n if (selectedKeys === \"all\") return \"All selected\";\n if (selectedKeys.size) return `${selectedKeys.size} selected`;\n return placeholderText;\n }, [selectTextValue, selectedKeys, placeholderText]);\n\n const fieldRef = useRef<HTMLDivElement>(null);\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField({\n label, // this is the label for the select box\n description: helperText,\n errorMessage: errorText,\n });\n\n const textColor = {\n white: \"gray700\",\n clear: \"white\",\n } as const;\n\n const getArrowIconColor = () => {\n if (errorText) {\n return ColorBaseDestructive700;\n } else {\n if (color === \"clear\") {\n return ColorCambioWhite100;\n } else {\n return ColorBaseGray700;\n }\n }\n };\n\n return (\n <ReactAriaProvider\n values={[\n [RichSelectBoxContext, { autoFocus: true }],\n [DialogContext, { padding: autosave ? undefined : 0 }], // this is altering Popover's internal dialog padding to show the sticky save/close buttons. Ideally this could be avoided\n ]}\n >\n <div\n className={classNames(styles.selectContainer, {\n [styles.opacityOverlay]: disabled,\n })}\n onClick={onClick}\n >\n {label && (\n <>\n <ReactAriaLabel\n data-testid={[dataTestId, \"label\"].filter(Boolean).join(\"-\")}\n {...labelProps}\n onClick={() => {\n if (disabled) return;\n fieldRef.current?.focus();\n setInteractionModality(\"keyboard\"); // Show the focus ring so the user knows where focus went\n }}\n >\n <Box paddingX={1}>\n <Typography size={100} color={textColor[color]}>\n {label}\n </Typography>\n </Box>\n </ReactAriaLabel>\n </>\n )}\n <Popover\n ref={overlayHandlerRef}\n disabled={disabled}\n zIndex={zIndex}\n content={\n // this Box wrapper is to reapply the padding that was stripped from popover's dialog to show the sticky save/close buttons. Ideally this could be avoided\n <Box\n padding={autosave ? undefined : 5}\n dangerouslySetInlineStyle={\n autosave ? undefined : { __style: { paddingBottom: 0 } }\n }\n role=\"menu\"\n >\n <RichSelectBox\n autosave={autosave}\n selectedValues={selectedKeys}\n defaultSelectedValues={defaultSelectedKeys}\n onChange={(selected) => setSelectedKeys(new Set(selected))}\n {...richSelectBoxProps}\n accessibilityLabel={inputId}\n >\n {children}\n </RichSelectBox>\n </Box>\n }\n >\n <TapArea\n data-testid={dataTestId}\n disabled={disabled}\n onClick={onClick}\n rounding=\"md\"\n {...fieldProps}\n ref={fieldRef}\n >\n <div className={styles.selectWrapper}>\n <div\n className={classNames(\n styles.selectBox,\n styles.selectBoxCambio,\n {\n [styles.unselected]:\n !errorText &&\n selectedKeys !== \"all\" &&\n !selectedKeys.size,\n [styles.selected]:\n !errorText &&\n (selectedKeys === \"all\" || selectedKeys.size),\n [styles.selectErrorCambio]: errorText,\n [styles[`selectColor${color}`]]: color,\n },\n )}\n >\n {selectedTextValue}\n </div>\n <div className={styles.arrowIcon}>\n <svg\n focusable=\"false\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n width={24}\n >\n <path\n fill={getArrowIconColor()}\n 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\"\n />\n </svg>\n </div>\n </div>\n </TapArea>\n </Popover>\n {(helperText || errorText) && (\n <Box paddingX={1}>\n <Typography\n size={100}\n color={errorText ? \"destructive-primary\" : textColor[color]}\n {...(errorText ? errorMessageProps : descriptionProps)}\n >\n {errorText ? errorText : helperText}\n </Typography>\n </Box>\n )}\n </div>\n </ReactAriaProvider>\n );\n}\n\nexport default Object.assign(RichSelectList, {\n Section: RichSelectSection,\n Chip: RichSelectChip,\n RadioButton: RichSelectRadioButton,\n});\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/SelectList/SelectList.module.css\"; export default {\"selectContainer\":\"_selectContainer_p5tv4_1\",\"opacityOverlay\":\"_opacityOverlay_p5tv4_7\",\"selectWrapper\":\"_selectWrapper_p5tv4_11\",\"selectBox\":\"_selectBox_p5tv4_16\",\"selectBoxCambio\":\"_selectBoxCambio_p5tv4_30\",\"selectMouseFocusStyling\":\"_selectMouseFocusStyling_p5tv4_38\",\"unselected\":\"_unselected_p5tv4_43\",\"selected\":\"_selected_p5tv4_47\",\"darkBackground\":\"_darkBackground_p5tv4_51\",\"arrowIcon\":\"_arrowIcon_p5tv4_63\",\"selectErrorCambio\":\"_selectErrorCambio_p5tv4_77\",\"selectColorwhite\":\"_selectColorwhite_p5tv4_83\",\"transparentInputError\":\"_transparentInputError_p5tv4_89\",\"transparenInputError\":\"_transparenInputError_p5tv4_94\"}"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EAEE;AAAA,EAEA;AAAA,EACA;AAAA,OACK;AACP,OAAO,gBAAgB;AASvB;AAAA,EACE,SAAS;AAAA,EACT,YAAY;AAAA,OACP;AACP,SAAS,0BAA0B;AACnC,SAAS,8BAA8B;;;ACrB6D,IAAO,4BAAQ,EAAC,mBAAkB,4BAA2B,kBAAiB,2BAA0B,iBAAgB,2BAA0B,aAAY,uBAAsB,mBAAkB,6BAA4B,2BAA0B,qCAAoC,cAAa,wBAAuB,YAAW,sBAAqB,kBAAiB,4BAA2B,aAAY,uBAAsB,qBAAoB,+BAA8B,oBAAmB,8BAA6B,yBAAwB,mCAAkC,wBAAuB,iCAAgC;;;ADmCzuB,SAAS,gBAAgB;AAmKf,mBAWM,KAyCJ,YApDF;AAjKV,IAAM,OAAO,MAAM;AA+DnB,SAAS,eAAe,OAA0C;AAChE,QAkBI,YAjBF;AAAA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,UAAU,eAAe;AAAA,IACzB;AAAA,IACA;AAA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AAE;AAAA;AAAA,0BACJ;AAAA;AAAA,sBACF,GACF;AAAA,uBACF;AAAA;AAAA,gBACF;AAAA;AAAA,YACF;AAAA,aACE,cAAc,cACd,oBAAC,eAAI,UAAU,GACb;AAAA,cAAC;AAAA;AAAA,gBACC,MAAM;AAAA,gBACN,OAAO,YAAY,wBAAwB,UAAU,KAAK;AAAA,iBACrD,YAAY,oBAAoB,mBAHtC;AAAA,gBAKE,sBAAY,YAAY;AAAA;AAAA,YAC3B,GACF;AAAA;AAAA;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;AAEA,IAAO,yBAAQ,OAAO,OAAO,gBAAgB;AAAA,EAC3C,SAAS;AAAA,EACT,MAAM;AAAA,EACN,aAAa;AACf,CAAC;","names":["_a"]}
@@ -0,0 +1,154 @@
1
+ "use client"
2
+ import {
3
+ rounding_module_default
4
+ } from "./KBIW5XV4.js";
5
+ import {
6
+ useIsHydrated
7
+ } from "./JB65NEXK.js";
8
+ import {
9
+ __objRest,
10
+ __spreadProps,
11
+ __spreadValues
12
+ } from "./UWGNJENA.js";
13
+
14
+ // src/LinkTapArea/LinkTapArea.tsx
15
+ import {
16
+ forwardRef,
17
+ useReducer
18
+ } from "react";
19
+
20
+ // css-module:../TapArea/TapArea.module.css#css-module
21
+ var TapArea_module_default = { "tapArea": "_tapArea_1gbc8_1", "fullHeight": "_fullHeight_1gbc8_5", "fullWidth": "_fullWidth_1gbc8_9", "disabled": "_disabled_1gbc8_13", "enabled": "_enabled_1gbc8_20", "overlay": "_overlay_1gbc8_33", "hoveredOrFocussed": "_hoveredOrFocussed_1gbc8_43" };
22
+
23
+ // src/LinkTapArea/LinkTapArea.tsx
24
+ import classNames from "classnames";
25
+
26
+ // css-module:./LinkTapArea.module.css#css-module
27
+ var LinkTapArea_module_default = { "linkTapArea": "_linkTapArea_1nzmd_1" };
28
+
29
+ // src/LinkTapArea/LinkTapArea.tsx
30
+ import { jsx, jsxs } from "react/jsx-runtime";
31
+ function reducer(state, action) {
32
+ switch (action.type) {
33
+ case "BLUR":
34
+ return __spreadProps(__spreadValues({}, state), { focussed: false });
35
+ case "FOCUS":
36
+ return __spreadProps(__spreadValues({}, state), { focussed: true });
37
+ case "MOUSE_ENTER":
38
+ return __spreadProps(__spreadValues({}, state), { hovered: true });
39
+ case "MOUSE_LEAVE":
40
+ return __spreadProps(__spreadValues({}, state), { hovered: false });
41
+ default:
42
+ return state;
43
+ }
44
+ }
45
+ var LinkTapArea = forwardRef(
46
+ (_a, ref) => {
47
+ var _b = _a, {
48
+ children,
49
+ href,
50
+ target,
51
+ rel,
52
+ accessibilityLabel,
53
+ "data-testid": dataTestId,
54
+ disabled: disabledProp = false,
55
+ fullHeight = false,
56
+ fullWidth = true,
57
+ onClick,
58
+ onMouseEnter,
59
+ onMouseLeave,
60
+ rounding = "none",
61
+ tabIndex = 0
62
+ } = _b, accessibilityProps = __objRest(_b, [
63
+ "children",
64
+ "href",
65
+ "target",
66
+ "rel",
67
+ "accessibilityLabel",
68
+ "data-testid",
69
+ "disabled",
70
+ "fullHeight",
71
+ "fullWidth",
72
+ "onClick",
73
+ "onMouseEnter",
74
+ "onMouseLeave",
75
+ "rounding",
76
+ "tabIndex"
77
+ ]);
78
+ const isHydrated = useIsHydrated();
79
+ const disabled = !isHydrated || disabledProp;
80
+ const [{ hovered, focussed }, dispatch] = useReducer(reducer, {
81
+ hovered: false,
82
+ focussed: false
83
+ });
84
+ const handleClick = (event) => {
85
+ if (disabled) {
86
+ } else {
87
+ event.currentTarget.blur();
88
+ onClick(event);
89
+ }
90
+ };
91
+ const handleKeyDown = (event) => {
92
+ if (disabled)
93
+ return;
94
+ if (event.key === "Enter" || event.key === " " || event.key === "Space") {
95
+ event.preventDefault();
96
+ onClick(event);
97
+ }
98
+ };
99
+ const handleOnMouseEnter = (event) => {
100
+ if (disabled)
101
+ return;
102
+ dispatch({ type: "MOUSE_ENTER" });
103
+ onMouseEnter == null ? void 0 : onMouseEnter(event);
104
+ };
105
+ const handleOnMouseLeave = (event) => {
106
+ if (disabled)
107
+ return;
108
+ dispatch({ type: "MOUSE_LEAVE" });
109
+ onMouseLeave == null ? void 0 : onMouseLeave(event);
110
+ };
111
+ const isHoveredOrFocussed = !disabled && (hovered || focussed);
112
+ const roundingClasses = rounding !== "none" && rounding_module_default[`rounding${rounding}`];
113
+ return /* @__PURE__ */ jsxs(
114
+ "a",
115
+ __spreadProps(__spreadValues({}, accessibilityProps), {
116
+ "aria-disabled": disabled || accessibilityProps["aria-disabled"],
117
+ "aria-label": accessibilityLabel != null ? accessibilityLabel : accessibilityProps["aria-label"],
118
+ className: classNames(
119
+ LinkTapArea_module_default.linkTapArea,
120
+ TapArea_module_default.tapArea,
121
+ TapArea_module_default[`${disabled ? "disabled" : "enabled"}`],
122
+ fullHeight && TapArea_module_default.fullHeight,
123
+ fullWidth && TapArea_module_default.fullWidth,
124
+ isHoveredOrFocussed && TapArea_module_default.hoveredOrFocussed,
125
+ roundingClasses
126
+ ),
127
+ "data-testid": dataTestId,
128
+ href,
129
+ target,
130
+ rel,
131
+ onClick: handleClick,
132
+ onKeyDown: handleKeyDown,
133
+ onMouseEnter: handleOnMouseEnter,
134
+ onMouseLeave: handleOnMouseLeave,
135
+ onFocus: () => dispatch({ type: "FOCUS" }),
136
+ onBlur: () => dispatch({ type: "BLUR" }),
137
+ ref,
138
+ role: "button",
139
+ tabIndex: disabled ? void 0 : tabIndex,
140
+ children: [
141
+ !disabled && (hovered || focussed) && /* @__PURE__ */ jsx("div", { className: classNames(TapArea_module_default.overlay, roundingClasses) }),
142
+ children
143
+ ]
144
+ })
145
+ );
146
+ }
147
+ );
148
+ LinkTapArea.displayName = "LinkTapArea";
149
+ var LinkTapArea_default = LinkTapArea;
150
+
151
+ export {
152
+ LinkTapArea_default
153
+ };
154
+ //# sourceMappingURL=LD67LLZE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/LinkTapArea/LinkTapArea.tsx","css-module:../TapArea/TapArea.module.css#css-module","css-module:./LinkTapArea.module.css#css-module"],"sourcesContent":["import React, {\n forwardRef,\n type HtmlHTMLAttributes,\n useReducer,\n type AriaAttributes,\n type ReactNode,\n} from \"react\";\nimport tapAreaStyles from \"../TapArea/TapArea.module.css\";\nimport roundingStyles from \"../rounding.module.css\";\nimport useIsHydrated from \"../useIsHydrated\";\nimport classNames from \"classnames\";\nimport styles from \"./LinkTapArea.module.css\";\n\ntype LinkTapAreaProps = AriaAttributes & {\n /**\n * The children to be rendered inside the tap area.\n */\n children?: ReactNode;\n /**\n * The link that the LinkTapArea 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 label to be used for accessibility\n */\n accessibilityLabel?: string;\n /**\n * Test id for the tap area\n */\n \"data-testid\"?: string;\n /**\n * If `true`, the tap area will be disabled\n *\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * If `true`, the tap area will be full height\n */\n fullHeight?: boolean;\n /**\n * If `true`, the tap area will be full width\n */\n fullWidth?: boolean;\n /**\n * The callback to be called when the tap area is clicked\n */\n onClick: (event: React.SyntheticEvent<HTMLAnchorElement>) => void;\n /**\n * The callback to be called when the tap area is hovered\n */\n onMouseEnter?: (event: React.SyntheticEvent<HTMLAnchorElement>) => void;\n /**\n * The callback to be called when the tap area is no longer hovered\n */\n onMouseLeave?: (event: React.SyntheticEvent<HTMLAnchorElement>) => void;\n /**\n * Border radius of the tap area.\n *\n * * `none`: 0px\n * * `sm`: 8px\n * * `md`: 12px\n * * `full`: 999px\n *\n * @defaultValue \"none\"\n */\n rounding?: \"md\" | \"sm\" | \"full\" | \"none\";\n /**\n * The tab index of the tap area\n */\n tabIndex?: 0 | -1;\n};\n\nfunction reducer(\n state: {\n hovered: boolean;\n focussed: boolean;\n },\n action: {\n type: \"BLUR\" | \"FOCUS\" | \"MOUSE_ENTER\" | \"MOUSE_LEAVE\";\n },\n) {\n switch (action.type) {\n case \"BLUR\":\n return { ...state, focussed: false };\n case \"FOCUS\":\n return { ...state, focussed: true };\n case \"MOUSE_ENTER\":\n return { ...state, hovered: true };\n case \"MOUSE_LEAVE\":\n return { ...state, hovered: false };\n default:\n return state;\n }\n}\nconst LinkTapArea = forwardRef<HTMLAnchorElement, LinkTapAreaProps>(\n (\n {\n children,\n href,\n target,\n rel,\n accessibilityLabel,\n \"data-testid\": dataTestId,\n disabled: disabledProp = false,\n fullHeight = false,\n fullWidth = true,\n onClick,\n onMouseEnter,\n onMouseLeave,\n rounding = \"none\",\n tabIndex = 0,\n ...accessibilityProps\n }: LinkTapAreaProps,\n ref,\n ) => {\n const isHydrated = useIsHydrated();\n const disabled = !isHydrated || disabledProp;\n const [{ hovered, focussed }, dispatch] = useReducer(reducer, {\n hovered: false,\n focussed: false,\n });\n const handleClick: React.MouseEventHandler<HTMLAnchorElement> = (event) => {\n if (disabled) {\n undefined;\n } else {\n event.currentTarget.blur();\n onClick(event);\n }\n };\n\n const handleKeyDown: React.KeyboardEventHandler<HTMLAnchorElement> = (\n event,\n ) => {\n if (disabled) return;\n if (event.key === \"Enter\" || event.key === \" \" || event.key === \"Space\") {\n event.preventDefault();\n onClick(event);\n }\n };\n\n const handleOnMouseEnter: React.MouseEventHandler<HTMLAnchorElement> = (\n event,\n ) => {\n if (disabled) return;\n dispatch({ type: \"MOUSE_ENTER\" });\n onMouseEnter?.(event);\n };\n\n const handleOnMouseLeave: React.MouseEventHandler<HTMLAnchorElement> = (\n event,\n ) => {\n if (disabled) return;\n dispatch({ type: \"MOUSE_LEAVE\" });\n onMouseLeave?.(event);\n };\n\n const isHoveredOrFocussed = !disabled && (hovered || focussed);\n const roundingClasses =\n rounding !== \"none\" && roundingStyles[`rounding${rounding}`];\n\n return (\n <a\n {...accessibilityProps}\n aria-disabled={disabled || accessibilityProps[\"aria-disabled\"]}\n aria-label={accessibilityLabel ?? accessibilityProps[\"aria-label\"]}\n className={classNames(\n styles.linkTapArea,\n tapAreaStyles.tapArea,\n tapAreaStyles[`${disabled ? \"disabled\" : \"enabled\"}`],\n fullHeight && tapAreaStyles.fullHeight,\n fullWidth && tapAreaStyles.fullWidth,\n isHoveredOrFocussed && tapAreaStyles.hoveredOrFocussed,\n roundingClasses,\n )}\n data-testid={dataTestId}\n href={href}\n target={target}\n rel={rel}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n onMouseEnter={handleOnMouseEnter}\n onMouseLeave={handleOnMouseLeave}\n onFocus={() => dispatch({ type: \"FOCUS\" })}\n onBlur={() => dispatch({ type: \"BLUR\" })}\n ref={ref}\n role=\"button\"\n tabIndex={disabled ? undefined : tabIndex}\n >\n {!disabled && (hovered || focussed) && (\n <div className={classNames(tapAreaStyles.overlay, roundingClasses)} />\n )}\n {children}\n </a>\n );\n },\n);\n\nLinkTapArea.displayName = \"LinkTapArea\";\n\nexport default LinkTapArea;\n","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/TapArea/TapArea.module.css\"; export default {\"tapArea\":\"_tapArea_1gbc8_1\",\"fullHeight\":\"_fullHeight_1gbc8_5\",\"fullWidth\":\"_fullWidth_1gbc8_9\",\"disabled\":\"_disabled_1gbc8_13\",\"enabled\":\"_enabled_1gbc8_20\",\"overlay\":\"_overlay_1gbc8_33\",\"hoveredOrFocussed\":\"_hoveredOrFocussed_1gbc8_43\"}","import \"/home/runner/work/syntax/syntax/packages/syntax-core/src/LinkTapArea/LinkTapArea.module.css\"; export default {\"linkTapArea\":\"_linkTapArea_1nzmd_1\"}"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,EAEA;AAAA,OAGK;;;ACNuF,IAAO,yBAAQ,EAAC,WAAU,oBAAmB,cAAa,uBAAsB,aAAY,sBAAqB,YAAW,sBAAqB,WAAU,qBAAoB,WAAU,qBAAoB,qBAAoB,8BAA6B;;;ADU5V,OAAO,gBAAgB;;;A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TapArea_default = TapArea;
136
136
  export {
137
137
  TapArea_default
138
138
  };
139
- //# sourceMappingURL=S3C44SBB.js.map
139
+ //# sourceMappingURL=OXEXFQAN.js.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  TapArea_default
4
- } from "./S3C44SBB.js";
4
+ } from "./OXEXFQAN.js";
5
5
  import {
6
6
  Tabs_module_default
7
7
  } from "./VV2NJABK.js";
@@ -64,4 +64,4 @@ function TabButton({
64
64
  export {
65
65
  TabButton
66
66
  };
67
- //# sourceMappingURL=HAV7ESKO.js.map
67
+ //# sourceMappingURL=OYZNL37T.js.map
@@ -10,4 +10,4 @@ export {
10
10
  ColorBaseGray700,
11
11
  ColorCambioWhite100
12
12
  };
13
- //# sourceMappingURL=4UNKXRQE.js.map
13
+ //# sourceMappingURL=YSRQYMMU.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Tue, 29 Oct 2024 19:34:53 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 ColorCambioGray270 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#5e5952\";\nexport const ColorCambioGray800 = \"#363432\";\nexport const ColorCambioGray870 = \"#5e5952\";\nexport const ColorCambioGray900 = \"#262625\";\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\";\nexport const ShadowInteractive = \"0px 3px 16px 0px rgba(144, 134, 130, 0.05), 0px 2px 30px 0px rgba(144, 134, 130, 0.02)\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAUhC,IAAM,mBAAmB;AAqCzB,IAAM,sBAAsB;","names":[]}
1
+ {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Fri, 01 Nov 2024 20:46:04 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 ColorCambioGray270 = \"#e4dbd3\";\nexport const ColorCambioGray300 = \"#beb4ab\";\nexport const ColorCambioGray370 = \"#beb4ab\";\nexport const ColorCambioGray700 = \"#5e5952\";\nexport const ColorCambioGray800 = \"#363432\";\nexport const ColorCambioGray870 = \"#5e5952\";\nexport const ColorCambioGray900 = \"#262625\";\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\";\nexport const ShadowInteractive = \"0px 3px 16px 0px rgba(144, 134, 130, 0.05), 0px 2px 30px 0px rgba(144, 134, 130, 0.02)\";\n"],"mappings":";;;AASO,IAAM,0BAA0B;AAUhC,IAAM,mBAAmB;AAqCzB,IAAM,sBAAsB;","names":[]}