@cambly/syntax-core 21.7.0 → 21.9.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.
Files changed (87) hide show
  1. package/dist/Avatar/Avatar.d.ts +1 -1
  2. package/dist/Badge/Badge.d.ts +1 -1
  3. package/dist/Badge/Badge.js +3 -3
  4. package/dist/Button/Button.js +3 -3
  5. package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
  6. package/dist/Checkbox/Checkbox.d.ts +1 -1
  7. package/dist/Checkbox/Checkbox.js +3 -3
  8. package/dist/Chip/Chip.js +3 -3
  9. package/dist/Heading/Heading.d.ts +1 -1
  10. package/dist/Heading/Heading.js +3 -3
  11. package/dist/LinkButton/LinkButton.js +3 -3
  12. package/dist/Modal/Modal.js +4 -4
  13. package/dist/RadioButton/RadioButton.d.ts +1 -1
  14. package/dist/RadioButton/RadioButton.js +3 -3
  15. package/dist/RichSelect/RichSelectBox.d.ts +1 -1
  16. package/dist/RichSelect/RichSelectBox.js +9 -9
  17. package/dist/RichSelect/RichSelectChip.js +4 -4
  18. package/dist/RichSelect/RichSelectList.d.ts +5 -1
  19. package/dist/RichSelect/RichSelectList.js +11 -11
  20. package/dist/RichSelect/RichSelectRadioButton.d.ts +1 -1
  21. package/dist/RichSelect/RichSelectRadioButton.js +4 -4
  22. package/dist/RichSelect/RichSelectSection.js +3 -3
  23. package/dist/SelectList/SelectList.js +4 -4
  24. package/dist/TabButton/TabButton.js +4 -4
  25. package/dist/TabLink/TabLink.js +4 -4
  26. package/dist/Tabs/TabInternal.js +3 -3
  27. package/dist/TapArea/TapArea.d.ts +1 -1
  28. package/dist/TextArea/TextArea.js +3 -3
  29. package/dist/TextField/TextField.js +4 -4
  30. package/dist/Tooltip/Tooltip.js +3 -3
  31. package/dist/Typography/Typography.d.ts +4 -4
  32. package/dist/Typography/Typography.js +2 -2
  33. package/dist/WordConfetti/WordConfetti.js +3 -3
  34. package/dist/__chunks/{2SSVAL4S.js → 22DOBTM6.js} +2 -2
  35. package/dist/__chunks/{MZNRKPDB.js → 2BHS5CFG.js} +2 -2
  36. package/dist/__chunks/{52WOUEA3.js → 37HO7CY6.js} +2 -2
  37. package/dist/__chunks/{Y5ABTR7F.js → 3BCWTSJY.js} +12 -9
  38. package/dist/__chunks/3BCWTSJY.js.map +1 -0
  39. package/dist/__chunks/{3I3KDASW.js → 3CVV6PAD.js} +5 -5
  40. package/dist/__chunks/{UXTG5NGM.js → 4DDCK4YC.js} +2 -2
  41. package/dist/__chunks/{B4G76SGY.js → 4QIAQ7OT.js} +2 -2
  42. package/dist/__chunks/{WQFVWKUL.js → 73ZKHWUJ.js} +2 -2
  43. package/dist/__chunks/73ZKHWUJ.js.map +1 -0
  44. package/dist/__chunks/{XBA66ZVH.js → DIZ2AM3O.js} +2 -2
  45. package/dist/__chunks/{3POGKBNN.js → HAV7ESKO.js} +2 -2
  46. package/dist/__chunks/{EAAVBDV4.js → HVUDEKZ4.js} +2 -2
  47. package/dist/__chunks/{W2WJY3MN.js → JVYDT3KG.js} +2 -2
  48. package/dist/__chunks/{7M434O5V.js → KYB756P2.js} +2 -2
  49. package/dist/__chunks/{RFC4HLNJ.js → LIAZJ67M.js} +2 -2
  50. package/dist/__chunks/{ZCJS7Q44.js → MPRB6RD7.js} +2 -2
  51. package/dist/__chunks/{2FU5XWMG.js → O73BKRLX.js} +3 -3
  52. package/dist/__chunks/{F5W7ZXEB.js → Q3GETQTJ.js} +2 -2
  53. package/dist/__chunks/{25MBMJDA.js → QGKN6QPT.js} +2 -2
  54. package/dist/__chunks/{VF27YZ2L.js → QTYWP33K.js} +1 -1
  55. package/dist/__chunks/{VF27YZ2L.js.map → QTYWP33K.js.map} +1 -1
  56. package/dist/__chunks/{TVFCRSGF.js → TKDQXKWS.js} +3 -3
  57. package/dist/__chunks/TKDQXKWS.js.map +1 -0
  58. package/dist/__chunks/{Z3W6JYQ2.js → TZ6K2QOX.js} +2 -2
  59. package/dist/__chunks/{GSPZNCDC.js → V6TACYID.js} +2 -2
  60. package/dist/__chunks/{TH3FEMUK.js → VVBRZJ24.js} +3 -3
  61. package/dist/__chunks/{XKN65RUB.js → WAGE57PF.js} +2 -2
  62. package/dist/colors/textColors.js +1 -1
  63. package/dist/index.js +24 -24
  64. package/package.json +1 -1
  65. package/dist/__chunks/TVFCRSGF.js.map +0 -1
  66. package/dist/__chunks/WQFVWKUL.js.map +0 -1
  67. package/dist/__chunks/Y5ABTR7F.js.map +0 -1
  68. /package/dist/__chunks/{2SSVAL4S.js.map → 22DOBTM6.js.map} +0 -0
  69. /package/dist/__chunks/{MZNRKPDB.js.map → 2BHS5CFG.js.map} +0 -0
  70. /package/dist/__chunks/{52WOUEA3.js.map → 37HO7CY6.js.map} +0 -0
  71. /package/dist/__chunks/{3I3KDASW.js.map → 3CVV6PAD.js.map} +0 -0
  72. /package/dist/__chunks/{UXTG5NGM.js.map → 4DDCK4YC.js.map} +0 -0
  73. /package/dist/__chunks/{B4G76SGY.js.map → 4QIAQ7OT.js.map} +0 -0
  74. /package/dist/__chunks/{XBA66ZVH.js.map → DIZ2AM3O.js.map} +0 -0
  75. /package/dist/__chunks/{3POGKBNN.js.map → HAV7ESKO.js.map} +0 -0
  76. /package/dist/__chunks/{EAAVBDV4.js.map → HVUDEKZ4.js.map} +0 -0
  77. /package/dist/__chunks/{W2WJY3MN.js.map → JVYDT3KG.js.map} +0 -0
  78. /package/dist/__chunks/{7M434O5V.js.map → KYB756P2.js.map} +0 -0
  79. /package/dist/__chunks/{RFC4HLNJ.js.map → LIAZJ67M.js.map} +0 -0
  80. /package/dist/__chunks/{ZCJS7Q44.js.map → MPRB6RD7.js.map} +0 -0
  81. /package/dist/__chunks/{2FU5XWMG.js.map → O73BKRLX.js.map} +0 -0
  82. /package/dist/__chunks/{F5W7ZXEB.js.map → Q3GETQTJ.js.map} +0 -0
  83. /package/dist/__chunks/{25MBMJDA.js.map → QGKN6QPT.js.map} +0 -0
  84. /package/dist/__chunks/{Z3W6JYQ2.js.map → TZ6K2QOX.js.map} +0 -0
  85. /package/dist/__chunks/{GSPZNCDC.js.map → V6TACYID.js.map} +0 -0
  86. /package/dist/__chunks/{TH3FEMUK.js.map → VVBRZJ24.js.map} +0 -0
  87. /package/dist/__chunks/{XKN65RUB.js.map → WAGE57PF.js.map} +0 -0
@@ -23,7 +23,7 @@ import {
23
23
  } from "./X552U42S.js";
24
24
  import {
25
25
  Typography_default
26
- } from "./ZCJS7Q44.js";
26
+ } from "./MPRB6RD7.js";
27
27
  import {
28
28
  useIsHydrated
29
29
  } from "./JB65NEXK.js";
@@ -146,4 +146,4 @@ var Button_default = Button;
146
146
  export {
147
147
  Button_default
148
148
  };
149
- //# sourceMappingURL=MZNRKPDB.js.map
149
+ //# sourceMappingURL=2BHS5CFG.js.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  Typography_default
4
- } from "./ZCJS7Q44.js";
4
+ } from "./MPRB6RD7.js";
5
5
 
6
6
  // src/Heading/Heading.tsx
7
7
  import { jsx } from "react/jsx-runtime";
@@ -47,4 +47,4 @@ var Heading_default = Heading;
47
47
  export {
48
48
  Heading_default
49
49
  };
50
- //# sourceMappingURL=52WOUEA3.js.map
50
+ //# sourceMappingURL=37HO7CY6.js.map
@@ -9,21 +9,21 @@ import {
9
9
  ColorBaseDestructive700,
10
10
  ColorBaseGray700,
11
11
  ColorCambioWhite100
12
- } from "./VF27YZ2L.js";
12
+ } from "./QTYWP33K.js";
13
13
  import {
14
14
  RichSelectBoxContext,
15
15
  RichSelectBox_default,
16
16
  convertSelection
17
- } from "./3I3KDASW.js";
17
+ } from "./3CVV6PAD.js";
18
18
  import {
19
19
  RichSelectSection_default
20
- } from "./RFC4HLNJ.js";
20
+ } from "./LIAZJ67M.js";
21
21
  import {
22
22
  RichSelectRadioButton_default
23
- } from "./7M434O5V.js";
23
+ } from "./KYB756P2.js";
24
24
  import {
25
25
  RichSelectChip_default
26
- } from "./XKN65RUB.js";
26
+ } from "./WAGE57PF.js";
27
27
  import {
28
28
  TapArea_default
29
29
  } from "./S3C44SBB.js";
@@ -32,7 +32,7 @@ import {
32
32
  } from "./X552U42S.js";
33
33
  import {
34
34
  Typography_default
35
- } from "./ZCJS7Q44.js";
35
+ } from "./MPRB6RD7.js";
36
36
  import {
37
37
  useIsHydrated
38
38
  } from "./JB65NEXK.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=Y5ABTR7F.js.map
292
+ //# sourceMappingURL=3BCWTSJY.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;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA,gBAAgB;AAAA,IAChB,uBAAuB;AAAA,IACvB,QAAQ;AAAA,IACR;AAAA,EArHJ,IAuHM,IADC,+BACD,IADC;AAAA,IAhBH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,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,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"]}
@@ -4,19 +4,19 @@ import {
4
4
  } from "./36DG472B.js";
5
5
  import {
6
6
  Button_default
7
- } from "./MZNRKPDB.js";
7
+ } from "./2BHS5CFG.js";
8
8
  import {
9
9
  Divider
10
10
  } from "./3WKVZ2UU.js";
11
11
  import {
12
12
  RichSelectSection_default
13
- } from "./RFC4HLNJ.js";
13
+ } from "./LIAZJ67M.js";
14
14
  import {
15
15
  RichSelectRadioButton_default
16
- } from "./7M434O5V.js";
16
+ } from "./KYB756P2.js";
17
17
  import {
18
18
  RichSelectChip_default
19
- } from "./XKN65RUB.js";
19
+ } from "./WAGE57PF.js";
20
20
  import {
21
21
  RichSelectItemContext,
22
22
  RichSelect_module_default
@@ -208,4 +208,4 @@ export {
208
208
  RichSelectBoxContext,
209
209
  RichSelectBox_default
210
210
  };
211
- //# sourceMappingURL=3I3KDASW.js.map
211
+ //# sourceMappingURL=3CVV6PAD.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./X552U42S.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./ZCJS7Q44.js";
7
+ } from "./MPRB6RD7.js";
8
8
 
9
9
  // css-module:./Badge.module.css#css-module
10
10
  var Badge_module_default = { "icon": "_icon_1g9xb_1" };
@@ -74,4 +74,4 @@ var Badge_default = Badge;
74
74
  export {
75
75
  Badge_default
76
76
  };
77
- //# sourceMappingURL=UXTG5NGM.js.map
77
+ //# sourceMappingURL=4DDCK4YC.js.map
@@ -10,7 +10,7 @@ import {
10
10
  } from "./KBIW5XV4.js";
11
11
  import {
12
12
  Typography_default
13
- } from "./ZCJS7Q44.js";
13
+ } from "./MPRB6RD7.js";
14
14
  import {
15
15
  colors_module_default
16
16
  } from "./QIMMO3OB.js";
@@ -166,4 +166,4 @@ export {
166
166
  AriaTooltip,
167
167
  Tooltip_default
168
168
  };
169
- //# sourceMappingURL=B4G76SGY.js.map
169
+ //# sourceMappingURL=4QIAQ7OT.js.map
@@ -11,7 +11,7 @@ function textColor(color) {
11
11
  case "white":
12
12
  return colors_module_default.cambioWhiteColor;
13
13
  case "white-secondary":
14
- return colors_module_default.cambioWhite70Color;
14
+ return colors_module_default.white70Color;
15
15
  case "inherit":
16
16
  return colors_module_default.inheritColor;
17
17
  case "destructive-primary":
@@ -32,4 +32,4 @@ function textColor(color) {
32
32
  export {
33
33
  textColor
34
34
  };
35
- //# sourceMappingURL=WQFVWKUL.js.map
35
+ //# sourceMappingURL=73ZKHWUJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/colors/textColors.ts"],"sourcesContent":["import colorStyles from \"../colors/colors.module.css\";\n\nexport default function textColor(\n color:\n | \"gray900\"\n | \"gray700\"\n | \"primary\"\n | \"destructive-primary\"\n | \"destructive-lightBackground\"\n | \"destructive-darkBackground\"\n | \"success\"\n | \"success-darkBackground\"\n | \"white\"\n | \"white-secondary\"\n | \"inherit\",\n): string {\n switch (color) {\n case \"gray700\":\n return colorStyles.cambioGray700Color;\n case \"white\":\n return colorStyles.cambioWhiteColor;\n case \"white-secondary\":\n return colorStyles.white70Color;\n case \"inherit\":\n return colorStyles.inheritColor;\n case \"destructive-primary\":\n return colorStyles.cambioDestructive900Color;\n case \"destructive-lightBackground\":\n return colorStyles.cambioDestructive900Color;\n case \"destructive-darkBackground\":\n return colorStyles.cambioDestructive300Color;\n case \"success\":\n return colorStyles.cambioSuccess700Color;\n case \"success-darkBackground\":\n return colorStyles.cambioSuccess100Color;\n // primary / gray900\n default:\n return colorStyles.cambioBlackColor;\n }\n}\n"],"mappings":";;;;;;AAEe,SAAR,UACL,OAYQ;AACR,UAAQ,OAAO;AAAA,IACb,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IACrB,KAAK;AACH,aAAO,sBAAY;AAAA,IAErB;AACE,aAAO,sBAAY;AAAA,EACvB;AACF;","names":[]}
@@ -4,7 +4,7 @@ import {
4
4
  } from "./KKADUD65.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./ZCJS7Q44.js";
7
+ } from "./MPRB6RD7.js";
8
8
  import {
9
9
  useIsHydrated
10
10
  } from "./JB65NEXK.js";
@@ -114,4 +114,4 @@ var Checkbox_default = Checkbox;
114
114
  export {
115
115
  Checkbox_default
116
116
  };
117
- //# sourceMappingURL=XBA66ZVH.js.map
117
+ //# sourceMappingURL=DIZ2AM3O.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./VV2NJABK.js";
8
8
  import {
9
9
  TabInternal
10
- } from "./TVFCRSGF.js";
10
+ } from "./TKDQXKWS.js";
11
11
  import {
12
12
  Box_default
13
13
  } from "./X552U42S.js";
@@ -64,4 +64,4 @@ function TabButton({
64
64
  export {
65
65
  TabButton
66
66
  };
67
- //# sourceMappingURL=3POGKBNN.js.map
67
+ //# sourceMappingURL=HAV7ESKO.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./X552U42S.js";
8
8
  import {
9
9
  Typography_default
10
- } from "./ZCJS7Q44.js";
10
+ } from "./MPRB6RD7.js";
11
11
  import {
12
12
  useIsHydrated
13
13
  } from "./JB65NEXK.js";
@@ -127,4 +127,4 @@ var RadioButton_default = RadioButton;
127
127
  export {
128
128
  RadioButton_default
129
129
  };
130
- //# sourceMappingURL=EAAVBDV4.js.map
130
+ //# sourceMappingURL=HVUDEKZ4.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./X552U42S.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./ZCJS7Q44.js";
7
+ } from "./MPRB6RD7.js";
8
8
  import {
9
9
  useIsHydrated
10
10
  } from "./JB65NEXK.js";
@@ -88,4 +88,4 @@ var Chip_default = Chip;
88
88
  export {
89
89
  Chip_default
90
90
  };
91
- //# sourceMappingURL=W2WJY3MN.js.map
91
+ //# sourceMappingURL=JVYDT3KG.js.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  RadioButton_default
4
- } from "./EAAVBDV4.js";
4
+ } from "./HVUDEKZ4.js";
5
5
  import {
6
6
  RichSelectItem_default
7
7
  } from "./ODMJANSX.js";
@@ -37,4 +37,4 @@ var RichSelectRadioButton_default = forwardRef(
37
37
  export {
38
38
  RichSelectRadioButton_default
39
39
  };
40
- //# sourceMappingURL=7M434O5V.js.map
40
+ //# sourceMappingURL=KYB756P2.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./AVREYFSM.js";
8
8
  import {
9
9
  Typography_default
10
- } from "./ZCJS7Q44.js";
10
+ } from "./MPRB6RD7.js";
11
11
 
12
12
  // src/RichSelect/RichSelectSection.tsx
13
13
  import { forwardRef } from "react";
@@ -50,4 +50,4 @@ var RichSelectSection_default = forwardRef(
50
50
  export {
51
51
  RichSelectSection_default
52
52
  };
53
- //# sourceMappingURL=RFC4HLNJ.js.map
53
+ //# sourceMappingURL=LIAZJ67M.js.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  textColor
4
- } from "./WQFVWKUL.js";
4
+ } from "./73ZKHWUJ.js";
5
5
 
6
6
  // src/Typography/Typography.tsx
7
7
  import classNames from "classnames";
@@ -63,4 +63,4 @@ var Typography_default = Typography;
63
63
  export {
64
64
  Typography_default
65
65
  };
66
- //# sourceMappingURL=ZCJS7Q44.js.map
66
+ //# sourceMappingURL=MPRB6RD7.js.map
@@ -6,7 +6,7 @@ import {
6
6
  ColorBaseDestructive700,
7
7
  ColorBaseGray700,
8
8
  ColorCambioWhite100
9
- } from "./VF27YZ2L.js";
9
+ } from "./QTYWP33K.js";
10
10
  import {
11
11
  Focus_module_default
12
12
  } from "./KKADUD65.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./X552U42S.js";
16
16
  import {
17
17
  Typography_default
18
- } from "./ZCJS7Q44.js";
18
+ } from "./MPRB6RD7.js";
19
19
  import {
20
20
  useIsHydrated
21
21
  } from "./JB65NEXK.js";
@@ -140,4 +140,4 @@ SelectList.Option = SelectOption_default;
140
140
  export {
141
141
  SelectList
142
142
  };
143
- //# sourceMappingURL=2FU5XWMG.js.map
143
+ //# sourceMappingURL=O73BKRLX.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./X552U42S.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./ZCJS7Q44.js";
7
+ } from "./MPRB6RD7.js";
8
8
  import {
9
9
  useIsHydrated
10
10
  } from "./JB65NEXK.js";
@@ -99,4 +99,4 @@ var TextArea_default = TextArea;
99
99
  export {
100
100
  TextArea_default
101
101
  };
102
- //# sourceMappingURL=F5W7ZXEB.js.map
102
+ //# sourceMappingURL=Q3GETQTJ.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./VV2NJABK.js";
5
5
  import {
6
6
  TabInternal
7
- } from "./TVFCRSGF.js";
7
+ } from "./TKDQXKWS.js";
8
8
  import {
9
9
  Box_default
10
10
  } from "./X552U42S.js";
@@ -72,4 +72,4 @@ var TabLink_default = TabLink;
72
72
  export {
73
73
  TabLink_default
74
74
  };
75
- //# sourceMappingURL=25MBMJDA.js.map
75
+ //# sourceMappingURL=QGKN6QPT.js.map
@@ -10,4 +10,4 @@ export {
10
10
  ColorBaseGray700,
11
11
  ColorCambioWhite100
12
12
  };
13
- //# sourceMappingURL=VF27YZ2L.js.map
13
+ //# sourceMappingURL=QTYWP33K.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../syntax-design-tokens/dist/js/index.js"],"sourcesContent":["/**\n * Do not edit directly\n * Generated on Mon, 28 Oct 2024 15:17:40 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 Tue, 29 Oct 2024 20:00:19 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":[]}
@@ -4,7 +4,7 @@ import {
4
4
  } from "./X552U42S.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./ZCJS7Q44.js";
7
+ } from "./MPRB6RD7.js";
8
8
  import {
9
9
  colors_module_default
10
10
  } from "./QIMMO3OB.js";
@@ -22,7 +22,7 @@ var ItemCountIcon = ({
22
22
  {
23
23
  className: classnames({
24
24
  [colors_module_default.cambioWhiteBackgroundColor]: on === "darkBackground" && selected,
25
- [colors_module_default.cambioWhite70BackgroundColor]: on === "darkBackground" && !selected,
25
+ [colors_module_default.white70BackgroundColor]: on === "darkBackground" && !selected,
26
26
  [colors_module_default.cambioBlackBackgroundColor]: on === "lightBackground" && selected,
27
27
  [colors_module_default.cambioGray700BackgroundColor]: on === "lightBackground" && !selected
28
28
  }),
@@ -98,4 +98,4 @@ function TabInternal({
98
98
  export {
99
99
  TabInternal
100
100
  };
101
- //# sourceMappingURL=TVFCRSGF.js.map
101
+ //# sourceMappingURL=TKDQXKWS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/Tabs/TabInternal.tsx"],"sourcesContent":["import { type ComponentProps, type ReactElement, type ReactNode } from \"react\";\nimport classnames from \"classnames\";\nimport Box from \"../Box/Box\";\nimport Typography from \"../Typography/Typography\";\nimport colorStyles from \"../colors/colors.module.css\";\n\nconst ItemCountIcon = ({\n itemCount,\n on,\n selected,\n}: {\n itemCount: number;\n on: ComponentProps<typeof TabInternal>[\"on\"];\n selected: boolean;\n}) => {\n return (\n <div\n className={classnames({\n [colorStyles.cambioWhiteBackgroundColor]:\n on === \"darkBackground\" && selected,\n [colorStyles.white70BackgroundColor]:\n on === \"darkBackground\" && !selected,\n [colorStyles.cambioBlackBackgroundColor]:\n on === \"lightBackground\" && selected,\n [colorStyles.cambioGray700BackgroundColor]:\n on === \"lightBackground\" && !selected,\n })}\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: 999,\n }}\n >\n <Box\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"center\"\n rounding=\"full\"\n padding={1}\n >\n <Typography\n color={on === \"lightBackground\" ? \"white\" : \"primary\"}\n weight=\"semiBold\"\n size={100}\n >\n {itemCount <= 99 ? itemCount : \"99+\"}\n </Typography>\n </Box>\n </div>\n );\n};\n\nfunction textColor({\n selected,\n on,\n}: {\n selected: boolean;\n on: \"lightBackground\" | \"darkBackground\";\n}): ComponentProps<typeof Typography>[\"color\"] {\n if (selected) {\n return on === \"lightBackground\" ? \"primary\" : \"white\";\n }\n return on === \"lightBackground\" ? \"gray700\" : \"white-secondary\";\n}\n\nexport default function TabInternal({\n text,\n selected,\n endContent,\n itemCount,\n on = \"lightBackground\",\n}: {\n /**\n * The text to display in the tab.\n */\n text: string;\n /**\n * Whether the tab is selected.\n */\n selected: boolean;\n /**\n * Content to display at the end of the tab.\n */\n endContent?: ReactNode;\n /**\n * Renders an item count badge at the end of the tab.\n */\n itemCount?: number;\n /**\n * Indicate whether the Tab renders on a light or dark background.\n *\n * @defaulValue `lightBackground`\n */\n on?: \"lightBackground\" | \"darkBackground\";\n}): ReactElement {\n return (\n <Box\n display=\"flex\"\n alignItems=\"center\"\n justifyContent=\"start\"\n gap={2}\n padding={2}\n >\n <Typography\n size={0}\n transform=\"uppercase\"\n weight=\"semiBold\"\n color={textColor({ selected, on })}\n >\n {text}\n </Typography>\n {itemCount == null && endContent}\n {itemCount != null && (\n <ItemCountIcon itemCount={itemCount} on={on} selected={selected} />\n )}\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;AACA,OAAO,gBAAgB;AAuCf,cA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ACP,OAAO,UAAU,EAAE,UAAU,GAAG,CAAC;AAAA,YAEhC;AAAA;AAAA,QACH;AAAA,QACC,aAAa,QAAQ;AAAA,QACrB,aAAa,QACZ,oBAAC,iBAAc,WAAsB,IAAQ,UAAoB;AAAA;AAAA;AAAA,EAErE;AAEJ;","names":[]}
@@ -23,7 +23,7 @@ import {
23
23
  } from "./RSS2H4EE.js";
24
24
  import {
25
25
  Typography_default
26
- } from "./ZCJS7Q44.js";
26
+ } from "./MPRB6RD7.js";
27
27
 
28
28
  // src/LinkButton/LinkButton.tsx
29
29
  import {
@@ -138,4 +138,4 @@ var LinkButton_default = LinkButton;
138
138
  export {
139
139
  LinkButton_default
140
140
  };
141
- //# sourceMappingURL=Z3W6JYQ2.js.map
141
+ //# sourceMappingURL=TZ6K2QOX.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./X552U42S.js";
5
5
  import {
6
6
  Typography_default
7
- } from "./ZCJS7Q44.js";
7
+ } from "./MPRB6RD7.js";
8
8
 
9
9
  // src/WordConfetti/WordConfetti.tsx
10
10
  import { forwardRef } from "react";
@@ -106,4 +106,4 @@ var WordConfetti_default = WordConfetti;
106
106
  export {
107
107
  WordConfetti_default
108
108
  };
109
- //# sourceMappingURL=GSPZNCDC.js.map
109
+ //# sourceMappingURL=V6TACYID.js.map
@@ -1,13 +1,13 @@
1
1
  "use client"
2
2
  import {
3
3
  Badge_default
4
- } from "./UXTG5NGM.js";
4
+ } from "./4DDCK4YC.js";
5
5
  import {
6
6
  Box_default
7
7
  } from "./X552U42S.js";
8
8
  import {
9
9
  Typography_default
10
- } from "./ZCJS7Q44.js";
10
+ } from "./MPRB6RD7.js";
11
11
  import {
12
12
  useIsHydrated
13
13
  } from "./JB65NEXK.js";
@@ -118,4 +118,4 @@ function TextField({
118
118
  export {
119
119
  TextField
120
120
  };
121
- //# sourceMappingURL=TH3FEMUK.js.map
121
+ //# sourceMappingURL=VVBRZJ24.js.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  Chip_default
4
- } from "./W2WJY3MN.js";
4
+ } from "./JVYDT3KG.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=XKN65RUB.js.map
34
+ //# sourceMappingURL=WAGE57PF.js.map
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  textColor
4
- } from "../__chunks/WQFVWKUL.js";
4
+ } from "../__chunks/73ZKHWUJ.js";
5
5
  import "../__chunks/QIMMO3OB.js";
6
6
  import "../__chunks/4U4UW4AK.js";
7
7
  import "../__chunks/UWGNJENA.js";