{"version":3,"sources":["jsdelivr-header.js","/npm/@harborschool/lighthouse@1.0.26/src/button/constants.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/shared/animation.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/shared/breakpoints.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/shared/lighting.ts","/npm/@harborschool/lighthouse@1.0.26/src/helpers/responsive-helpers.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/shared/media-query.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/shared/sizing.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/shared/typography.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/shared/zIndex.ts","/npm/@harborschool/lighthouse@1.0.26/src/tokens/colors.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/dark-theme/color-foundation-tokens.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/dark-theme/color-semantic-tokens.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/dark-theme/dark-theme.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/light-theme/color-foundation-tokens.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/light-theme/color-semantic-tokens.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/light-theme/light-theme.ts","/npm/@harborschool/lighthouse@1.0.26/src/utils/deep-merge.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/dark-theme/create-dark-theme.ts","/npm/@harborschool/lighthouse@1.0.26/src/themes/light-theme/create-light-theme.ts","/npm/@harborschool/lighthouse@1.0.26/src/helpers/lighthouse-provider.tsx","/npm/@harborschool/lighthouse@1.0.26/src/hooks/use-hover.ts","/npm/@harborschool/lighthouse@1.0.26/src/hooks/use-onclick-outside.ts","/npm/@harborschool/lighthouse@1.0.26/src/hooks/use-onclick-rect-outside.ts","/npm/@harborschool/lighthouse@1.0.26/src/button/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/button/button.tsx","/npm/@harborschool/lighthouse@1.0.26/src/button/index.tsx","/npm/@harborschool/lighthouse@1.0.26/src/flex-box/flex-item.tsx","/npm/@harborschool/lighthouse@1.0.26/src/flex-box/flex-box.tsx","/npm/@harborschool/lighthouse@1.0.26/src/flex-box/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/card/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/card/card-action.tsx","/npm/@harborschool/lighthouse@1.0.26/src/card/card-body.tsx","/npm/@harborschool/lighthouse@1.0.26/src/card/card.tsx","/npm/@harborschool/lighthouse@1.0.26/src/card/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/drawer/constants.ts","/npm/@harborschool/lighthouse@1.0.26/src/drawer/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/drawer/drawer.tsx","/npm/@harborschool/lighthouse@1.0.26/src/drawer/index.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isHTMLElement.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/constants.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/attachEventListeners.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isNullOrUndefined.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isArray.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isObject.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isKey.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/stringToPath.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/set.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/transformToNestObject.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isUndefined.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/filterOutFalsy.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/get.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/focusOnErrorField.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/removeAllEventListeners.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/getRadioValue.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/getMultipleSelectValue.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isRadioInput.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isFileInput.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isCheckBoxInput.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isMultipleSelect.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/getCheckboxValue.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/getFieldValue.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isDetached.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isEmptyObject.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isBoolean.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/unset.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/findRemovedFieldAndRemoveListener.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/setFieldArrayDirtyFields.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isString.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isPrimitive.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/deepMerge.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/getFieldsValues.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/deepEqual.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/isErrorStateChanged.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isRegex.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/getValueAndMessage.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isFunction.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isMessage.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/getValidateError.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/appendErrors.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/validateField.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/getPath.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/assignWatchFields.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/skipValidation.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/getFieldArrayParentName.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/logic/isNameInFieldArray.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isSelectInput.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/onDomRemove.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/validationModeChecker.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/utils/isRadioOrCheckbox.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/useForm.ts","/npm/@harborschool/lighthouse@1.0.26/node_modules/react-hook-form/src/useFormContext.tsx","/npm/@harborschool/lighthouse@1.0.26/src/helpers/form-provider.tsx","/npm/@harborschool/lighthouse@1.0.26/src/utils/is-fragment.ts","/npm/@harborschool/lighthouse@1.0.26/src/utils/is-empty.ts","/npm/@harborschool/lighthouse@1.0.26/src/form/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/form/form.tsx","/npm/@harborschool/lighthouse@1.0.26/src/form/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/input/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/input/input.tsx","/npm/@harborschool/lighthouse@1.0.26/src/input/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/radio/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/radio/radio.tsx","/npm/@harborschool/lighthouse@1.0.26/src/radio/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/list/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/list/list-item.tsx","/npm/@harborschool/lighthouse@1.0.26/src/list/list-item-label.tsx","/npm/@harborschool/lighthouse@1.0.26/src/list/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/spinner/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/spinner/spinner.tsx","/npm/@harborschool/lighthouse@1.0.26/src/spinner/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/modal/constants.ts","/npm/@harborschool/lighthouse@1.0.26/src/utils/handle-newline.tsx","/npm/@harborschool/lighthouse@1.0.26/src/modal/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/modal/modal-content.tsx","/npm/@harborschool/lighthouse@1.0.26/src/modal/modal.tsx","/npm/@harborschool/lighthouse@1.0.26/src/modal/index.tsx","/npm/@harborschool/lighthouse@1.0.26/src/progress-bar/progress-bar.tsx","/npm/@harborschool/lighthouse@1.0.26/src/progress-bar/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/select/animate-options.tsx","/npm/@harborschool/lighthouse@1.0.26/src/select/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/select/select.tsx","/npm/@harborschool/lighthouse@1.0.26/src/select/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/spacing/spacing.tsx","/npm/@harborschool/lighthouse@1.0.26/src/spacing/index.tsx","/npm/@harborschool/lighthouse@1.0.26/src/table/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/table/table.tsx","/npm/@harborschool/lighthouse@1.0.26/src/table/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/breadcrumbs/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/breadcrumbs/breadcrumbs.tsx","/npm/@harborschool/lighthouse@1.0.26/src/breadcrumbs/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/link/constants.ts","/npm/@harborschool/lighthouse@1.0.26/src/link/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/link/link.tsx","/npm/@harborschool/lighthouse@1.0.26/src/link/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/block/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/block/block.tsx","/npm/@harborschool/lighthouse@1.0.26/src/block/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/header-navigation/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/header-navigation/header-navigation-item.tsx","/npm/@harborschool/lighthouse@1.0.26/src/header-navigation/header-navigation.tsx","/npm/@harborschool/lighthouse@1.0.26/src/header-navigation/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/alert/constants.ts","/npm/@harborschool/lighthouse@1.0.26/src/alert/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/alert/alert.tsx","/npm/@harborschool/lighthouse@1.0.26/src/alert/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/toast/constants.ts","/npm/@harborschool/lighthouse@1.0.26/src/toast/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/toast/toast.tsx","/npm/@harborschool/lighthouse@1.0.26/src/toast/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/typography/typography.tsx","/npm/@harborschool/lighthouse@1.0.26/src/helpers/tabs-provider.tsx","/npm/@harborschool/lighthouse@1.0.26/src/tabs/styled-components.tsx","/npm/@harborschool/lighthouse@1.0.26/src/tabs/tab-list.tsx","/npm/@harborschool/lighthouse@1.0.26/src/tabs/tab.tsx","/npm/@harborschool/lighthouse@1.0.26/src/tabs/tab-panels.tsx","/npm/@harborschool/lighthouse@1.0.26/src/tabs/tab-panel.tsx","/npm/@harborschool/lighthouse@1.0.26/src/tabs/tabs.tsx","/npm/@harborschool/lighthouse@1.0.26/src/tabs/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/icon/constants.ts","/npm/@harborschool/lighthouse@1.0.26/src/icon/icon.tsx","/npm/@harborschool/lighthouse@1.0.26/src/icon/menu.tsx","/npm/@harborschool/lighthouse@1.0.26/src/icon/div-menu.tsx","/npm/@harborschool/lighthouse@1.0.26/src/icon/external-link.tsx","/npm/@harborschool/lighthouse@1.0.26/src/icon/arrow.tsx","/npm/@harborschool/lighthouse@1.0.26/src/icon/lock.tsx","/npm/@harborschool/lighthouse@1.0.26/src/icon/symbol.tsx","/npm/@harborschool/lighthouse@1.0.26/src/icon/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/utils/hex-to-hsl.ts","/npm/@harborschool/lighthouse@1.0.26/src/color-chip/constants.ts","/npm/@harborschool/lighthouse@1.0.26/src/color-chip/color-chip.tsx","/npm/@harborschool/lighthouse@1.0.26/src/color-chip/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/lighting-chip/lighting-chip.tsx","/npm/@harborschool/lighthouse@1.0.26/src/lighting-chip/index.ts","/npm/@harborschool/lighthouse@1.0.26/src/helpers/use-theme.tsx","/npm/@harborschool/lighthouse@1.0.26/src/utils/hex-to-rgb.ts","/npm/@harborschool/lighthouse@1.0.26/src/utils/increase-brightness.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ipBCNa,YAAc,CACzB,QAAS,UACT,UAAW,YACX,SAAU,YAGC,aAAe,CAC1B,QAAS,UACT,KAAM,OACN,OAAQ,UAGG,YAAc,CAC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AAS,GAAU,EAInB,IAFA,IACE,EADE,EAAM,IAED,EAAI,EAAG,EAAI,IAAK,EACvB,EAAI,SAAS,EAAI,OAAW,EAAJ,EAAO,GAAI,IAEnC,IAAQ,MADR,EAAI,KAAK,MAAM,KAAK,IAAI,KAAK,IAAI,EAAG,EAAK,EAAS,IAAO,KAAM,MAAM,SAAS,MAC5D,OAAO,EAAE,QAE7B,OAAO,CACT,C","file":"/npm/@harborschool/lighthouse@1.0.26/dist/lighthouse.umd.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@harborschool/lighthouse@1.0.26/dist/lighthouse.umd.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","export const BUTTON_KIND = {\n  primary: \"primary\",\n  secondary: \"secondary\",\n  tertiary: \"tertiary\",\n}\n\nexport const BUTTON_SHAPE = {\n  default: \"default\",\n  pill: \"pill\",\n  circle: \"circle\",\n}\n\nexport const BUTTON_TYPE = {\n  button: \"button\",\n  submit: \"submit\",\n  reset: \"reset\",\n}\n\nexport const BUTTON_OVERRIDE_TYPE = {\n  BaseButton: \"BaseButton\",\n  StartEnhancer: \"StartEnhancer\",\n  ButtonText: \"ButtonText\",\n  EndEnhancer: \"EndEnhancer\",\n}\n","import { AnimationT } from \"../types.js\"\n\nconst animation: AnimationT = {\n  timing100: 0.1,\n  timing200: 0.2,\n  timing300: 0.3,\n  timing400: 0.4,\n  timing500: 0.5,\n  timing600: 0.6,\n  timing700: 0.7,\n  timing800: 0.8,\n  timing900: 0.9,\n  timing1000: 1,\n  timing2000: 2,\n  easeInCurve: [0.8, 0.2, 0.6, 1],\n  easeOutCurve: [0.2, 0.8, 0.4, 1],\n  easeInOutCurve: [0.4, 0, 0.2, 1],\n  easeInQuinticCurve: [0.755, 0.05, 0.855, 0.06],\n  easeOutQuinticCurve: [0.23, 1, 0.32, 1],\n  easeInOutQuinticCurve: [0.86, 0, 0.07, 1],\n  linearCurve: [0, 0, 1, 1],\n}\n\nexport default animation\n","import { BreakpointsT } from \"../types.js\"\n\nconst breakpoints: BreakpointsT = {\n  small: 320,\n  medium: 600,\n  large: 1080,\n  xLarge: 1200,\n}\n\nexport default breakpoints\n","import { LightingT } from \"../types\"\n\nconst lighting: LightingT = {\n  shadow400: \"2px 2px 0px 0px hsla(0,0%,0%,0.55)\",\n  shadow500: \"4px 4px 0px 0px hsla(0,0%,0%,0.55)\",\n  shadow600: \"8px 8px 0px 0px hsla(0,0%,0%,0.55)\",\n  shadow700: \"10px 10px 0px 0px hsla(0,0%,0%,0.55)\",\n  overlay0: \"inset 0 0 0 1000px hsla(0,0%,0%,0)\",\n  overlay100: \"inset 0 0 0 1000px hsla(0,0%,0%,0.04)\",\n  overlay200: \"inset 0 0 0 1000px hsla(0,0%,0%,0.08)\",\n  overlay300: \"inset 0 0 0 1000px hsla(0,0%,0%,0.12)\",\n  overlay400: \"inset 0 0 0 1000px hsla(0,0%,0%,0.16)\",\n  overlay500: \"inset 0 0 0 1000px hsla(0,0%,0%,0.2)\",\n  overlay600: \"inset 0 0 0 1000px hsla(0,0%,0%,0.24)\",\n}\n\nexport default lighting\n","import * as System from \"../lighthouse\"\n\nexport const getMediaQuery = (breakpoint: number): string =>\n  `@media screen and (max-width: ${breakpoint}px)`\n\nexport const getMediaQueries = (breakpoints: System.BreakpointsT): string[] =>\n  Object.keys(breakpoints)\n    .map((key) => breakpoints[key])\n    .sort((a, b) => a - b)\n    .map(getMediaQuery)\n","import { getMediaQuery } from \"../../helpers/responsive-helpers.js\"\nimport breakpoints from \"./breakpoints.js\"\nimport { MediaQueryT } from \"../types.js\"\n\nconst mediaQuery: MediaQueryT = {\n  small: getMediaQuery(breakpoints.small),\n  medium: getMediaQuery(breakpoints.medium),\n  large: getMediaQuery(breakpoints.large),\n  xLarge: getMediaQuery(breakpoints.xLarge),\n}\n\nexport default mediaQuery\n","import { SizingT } from \"../types\"\n\nconst sizing: SizingT = {\n  // 2px scale\n  scale0: \"2px\",\n  scale100: \"4px\",\n  scale200: \"6px\",\n  scale300: \"8px\",\n  scale400: \"10px\",\n  scale500: \"12px\",\n  // 4px scale\n  scale550: \"14px\",\n  scale600: \"16px\",\n  scale650: \"18px\",\n  scale700: \"20px\",\n  scale750: \"22px\",\n  scale800: \"24px\",\n  // 8px scale\n  scale900: \"32px\",\n  scale1000: \"40px\",\n  // 4px scale\n  scale1200: \"48px\",\n  scale1400: \"56px\",\n  scale1600: \"64px\",\n  scale2400: \"96px\",\n  scale3200: \"128px\",\n  scale4800: \"192px\",\n}\n\nexport default sizing\n","import { TypographyT, FontTokensT } from \"../types\"\n\nexport const defaultFontTokens: FontTokensT = {\n  primaryFontFamily: '\"Poppins\", system-ui, Helvetica, Arial, sans-serif',\n}\n\nexport default (fontTokens: FontTokensT = defaultFontTokens): TypographyT => {\n  const font100 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"12px\",\n    fontWeight: 400,\n    lineHeight: \"20px\",\n  }\n  const font150 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"12px\",\n    fontWeight: 500,\n    lineHeight: \"16px\",\n  }\n  const font200 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"14px\",\n    fontWeight: 400,\n    lineHeight: \"20px\",\n  }\n  const font250 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"14px\",\n    fontWeight: 500,\n    lineHeight: \"16px\",\n  }\n  const font300 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"16px\",\n    fontWeight: 400,\n    lineHeight: \"24px\",\n  }\n  const font350 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"16px\",\n    fontWeight: 500,\n    lineHeight: \"20px\",\n  }\n  const font400 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"18px\",\n    fontWeight: 400,\n    lineHeight: \"28px\",\n  }\n  const font450 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"18px\",\n    fontWeight: 500,\n    lineHeight: \"24px\",\n  }\n  const font550 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"20px\",\n    fontWeight: 500,\n    lineHeight: \"28px\",\n  }\n  const font650 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"24px\",\n    fontWeight: 500,\n    lineHeight: \"32px\",\n  }\n  const font700 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"28px\",\n    fontWeight: 500,\n    lineHeight: \"40px\",\n  }\n  const font750 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"28px\",\n    fontWeight: 800,\n    lineHeight: \"36px\",\n  }\n  const font850 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"32px\",\n    fontWeight: 800,\n    lineHeight: \"40px\",\n  }\n  const font950 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"36px\",\n    fontWeight: 800,\n    lineHeight: \"44px\",\n  }\n  const font1050 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"40px\",\n    fontWeight: 800,\n    lineHeight: \"52px\",\n  }\n  const font1150 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"36px\",\n    fontWeight: 800,\n    lineHeight: \"44px\",\n  }\n  const font1250 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"44px\",\n    fontWeight: 800,\n    lineHeight: \"52px\",\n  }\n  const font1350 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"52px\",\n    fontWeight: 800,\n    lineHeight: \"64px\",\n  }\n  const font1450 = {\n    fontFamily: fontTokens.primaryFontFamily,\n    fontSize: \"96px\",\n    fontWeight: 800,\n    lineHeight: \"112px\",\n  }\n\n  return {\n    font100,\n    font150,\n    font200,\n    font250,\n    font300,\n    font350,\n    font400,\n    font450,\n    font550,\n    font650,\n    font700,\n    font750,\n    font850,\n    font950,\n    font1050,\n    font1150,\n    font1250,\n    font1350,\n    font1450,\n    ParagraphXSmall: font100,\n    ParagraphSmall: font200,\n    ParagraphMedium: font300,\n    ParagraphLarge: font400,\n    LabelXSmall: font150,\n    LabelSmall: font250,\n    LabelMedium: font350,\n    LabelLarge: font450,\n    HeadingXSmall: font550,\n    HeadingSmall: font650,\n    HeadingMedium: font750,\n    HeadingLarge: font850,\n    HeadingXLarge: font950,\n    HeadingXXLarge: font1050,\n    DisplayXSmall: font1150,\n    DisplaySmall: font1250,\n    DisplayMedium: font1350,\n    DisplayLarge: font1450,\n  }\n}\n","import { ZIndexT } from \"../types.js\"\n\nconst zIndex: ZIndexT = {\n  drawer: 100,\n  header: 100,\n  overlay: 100,\n  modal: 200,\n  select: 200,\n  alert: 300,\n  toast: 300,\n}\n\nexport default zIndex\n","import { ColorTokensT } from \"./types\"\nimport * as colorScale from \"./color-scale.json\"\n\nconst colors: ColorTokensT = colorScale[\"default\"]\n\nexport default colors\n","import { ColorTokensT } from \"../types\"\nimport colorScale from \"../../tokens/colors\"\nimport { ColorScaleTokensT } from \"../../lighthouse\"\n\nexport default (\n  // themePrimitives or foundation colors\n  colors: ColorScaleTokensT = colorScale\n) => {\n  const core: ColorTokensT = {\n    // Primary Palette\n    primaryA: colors.gray1000,\n    primaryB: colors.white,\n    primary: colors.blue700,\n    primary50: colors.blue50,\n    primary100: colors.blue100,\n    primary200: colors.blue200,\n    primary300: colors.blue300,\n    primary400: colors.blue400,\n    primary500: colors.blue500,\n    primary600: colors.blue600,\n    primary700: colors.blue700,\n    // Negative Palette\n    negative: colors.red500,\n    negative50: colors.red50,\n    negative100: colors.red100,\n    negative200: colors.red200,\n    negative300: colors.red300,\n    negative400: colors.red400,\n    negative500: colors.red500,\n    negative600: colors.red600,\n    negative700: colors.red700,\n    // Warning Palette\n    warning: colors.yellow500,\n    warning50: colors.yellow50,\n    warning100: colors.yellow100,\n    warning200: colors.yellow200,\n    warning300: colors.yellow300,\n    warning400: colors.yellow400,\n    warning500: colors.yellow500,\n    warning600: colors.yellow600,\n    warning700: colors.yellow700,\n    // Positive Palette\n    positive: colors.green400,\n    positive50: colors.green50,\n    positive100: colors.green100,\n    positive200: colors.green200,\n    positive300: colors.green300,\n    positive400: colors.green400,\n    positive500: colors.green500,\n    positive600: colors.green600,\n    positive700: colors.green700,\n    // Monochrome Palette\n    white: colors.white,\n    black: colors.black,\n    mono100: colors.white,\n    mono200: colors.gray50,\n    mono300: colors.gray100,\n    mono400: colors.gray200,\n    mono500: colors.gray300,\n    mono600: colors.gray400,\n    mono700: colors.gray500,\n    mono800: colors.gray600,\n    mono900: colors.gray700,\n    mono1000: colors.black,\n  }\n  return {\n    ...core,\n  }\n}\n","import { ColorTokensT, CoreSemanticColorTokensT } from \"../types\"\nimport getFoundationColorTokens from \"./color-foundation-tokens\"\nimport colors from \"../../tokens/colors\"\n\nexport default (\n  // themePrimitives or foundation colors\n  foundation: ColorTokensT = getFoundationColorTokens()\n) => {\n  const core: CoreSemanticColorTokensT = {\n    // Background\n    backgroundPrimary: colors.gray900,\n    backgroundSecondary: colors.gray800,\n    backgroundTertiary: colors.gray700,\n    backgroundInversePrimary: colors.gray1000,\n    backgroundInverseSecondary: colors.gray600,\n\n    // Content\n    contentPrimary: colors.white,\n    contentSecondary: colors.gray300,\n    contentTertiary: colors.gray600,\n    contentInversePrimary: foundation.white,\n    contentInverseSecondary: colors.gray300,\n    contentInverseTertiary: colors.gray400,\n  }\n\n  return {\n    ...core,\n  }\n}\n","import animation from \"../shared/animation\"\nimport breakpoints from \"../shared/breakpoints\"\nimport lighting from \"../shared/lighting\"\nimport mediaQuery from \"../shared/media-query\"\nimport sizing from \"../shared/sizing\"\nimport getTypography from \"../shared/typography\"\nimport zIndex from \"../shared/zIndex\"\nimport { ThemeT } from \"../types\"\nimport getFoundationColorTokens from \"./color-foundation-tokens\"\nimport getSemanticColorTokens from \"./color-semantic-tokens\"\n\nexport const DarkTheme: ThemeT = {\n  colors: {\n    ...getFoundationColorTokens(),\n    ...getSemanticColorTokens(),\n  },\n  animation,\n  breakpoints,\n  lighting,\n  mediaQuery,\n  sizing,\n  typography: getTypography(),\n  zIndex,\n}\n","import { ColorTokensT } from \"../types\"\nimport colorScale from \"../../tokens/colors\"\nimport { ColorScaleTokensT } from \"../../lighthouse\"\n\nexport default (\n  // themePrimitives or foundation colors\n  colors: ColorScaleTokensT = colorScale\n) => {\n  const core: ColorTokensT = {\n    // Primary Palette\n    primaryA: colors.black,\n    primaryB: colors.white,\n    primary: colors.blue700,\n    primary50: colors.blue50,\n    primary100: colors.blue100,\n    primary200: colors.blue200,\n    primary300: colors.blue300,\n    primary400: colors.blue400,\n    primary500: colors.blue500,\n    primary600: colors.blue600,\n    primary700: colors.blue700,\n    // Negative Palette\n    negative: colors.red400,\n    negative50: colors.red50,\n    negative100: colors.red100,\n    negative200: colors.red200,\n    negative300: colors.red300,\n    negative400: colors.red400,\n    negative500: colors.red500,\n    negative600: colors.red600,\n    negative700: colors.red700,\n    // Warning Palette\n    warning: colors.yellow400,\n    warning50: colors.yellow50,\n    warning100: colors.yellow100,\n    warning200: colors.yellow200,\n    warning300: colors.yellow300,\n    warning400: colors.yellow400,\n    warning500: colors.yellow500,\n    warning600: colors.yellow600,\n    warning700: colors.yellow700,\n    // Positive Palette\n    positive: colors.green400,\n    positive50: colors.green50,\n    positive100: colors.green100,\n    positive200: colors.green200,\n    positive300: colors.green300,\n    positive400: colors.green400,\n    positive500: colors.green500,\n    positive600: colors.green600,\n    positive700: colors.green700,\n    // Monochrome Palette\n    white: colors.white,\n    black: colors.black,\n    mono100: colors.white,\n    mono200: colors.gray50,\n    mono300: colors.gray100,\n    mono400: colors.gray200,\n    mono500: colors.gray300,\n    mono600: colors.gray400,\n    mono700: colors.gray500,\n    mono800: colors.gray600,\n    mono900: colors.gray700,\n    mono1000: colors.black,\n  }\n  return {\n    ...core,\n  }\n}\n","import { ColorTokensT, CoreSemanticColorTokensT } from \"../types\"\nimport getFoundationColorTokens from \"./color-foundation-tokens\"\nimport colors from \"../../tokens/colors\"\n\nexport default (\n  // themePrimitives or foundation colors\n  foundation: ColorTokensT = getFoundationColorTokens()\n) => {\n  const core: CoreSemanticColorTokensT = {\n    // Background\n    backgroundPrimary: foundation.primaryB,\n    backgroundSecondary: colors.gray50,\n    backgroundTertiary: colors.gray100,\n    backgroundInversePrimary: foundation.primaryA,\n    backgroundInverseSecondary: colors.gray600,\n\n    // Content\n    contentPrimary: foundation.black,\n    contentSecondary: colors.gray600,\n    contentTertiary: colors.gray300,\n    contentInversePrimary: foundation.white,\n    contentInverseSecondary: colors.gray300,\n    contentInverseTertiary: colors.gray400,\n  }\n  return {\n    ...core,\n  }\n}\n","import animation from \"../shared/animation\"\nimport breakpoints from \"../shared/breakpoints\"\nimport lighting from \"../shared/lighting\"\nimport mediaQuery from \"../shared/media-query\"\nimport sizing from \"../shared/sizing\"\nimport getTypography from \"../shared/typography\"\nimport zIndex from \"../shared/zIndex\"\nimport { ThemeT } from \"../types\"\nimport getFoundationColorTokens from \"./color-foundation-tokens\"\nimport getSemanticColorTokens from \"./color-semantic-tokens\"\n\nexport const LightTheme: ThemeT = {\n  colors: {\n    ...getFoundationColorTokens(),\n    ...getSemanticColorTokens(),\n  },\n  animation,\n  breakpoints,\n  lighting,\n  mediaQuery,\n  sizing,\n  typography: getTypography(),\n  zIndex,\n}\n","export default function deepMerge(target, ...sources) {\n  target = target || {}\n  const len = sources.length\n  let obj\n  let value\n  for (let i = 0; i < len; i++) {\n    obj = sources[i] || {}\n    for (const key in obj) {\n      if (typeof obj[key] !== undefined) {\n        value = obj[key]\n        if (isCloneable(value)) {\n          target[key] = deepMerge(\n            /* eslint-disable-next-line no-mixed-operators */\n            target[key] || (Array.isArray(value) && []) || {},\n            value\n          )\n        } else {\n          target[key] = value\n        }\n      }\n    }\n  }\n  return target\n}\nfunction isCloneable(obj) {\n  /* eslint-disable-next-line eqeqeq */\n  return Array.isArray(obj) || {}.toString.call(obj) == \"[object Object]\"\n}\n","import * as System from \"../../lighthouse\"\nimport { ColorScaleTokensT } from \"../../lighthouse\"\nimport { ColorTokensT } from \"../../tokens/types\"\nimport deepMerge from \"../../utils/deep-merge\"\nimport animation from \"../shared/animation\"\nimport breakpoints from \"../shared/breakpoints\"\nimport lighting from \"../shared/lighting\"\nimport mediaQuery from \"../shared/media-query\"\nimport sizing from \"../shared/sizing\"\nimport getTypography from \"../shared/typography\"\nimport zIndex from \"../shared/zIndex\"\nimport { FontTokensT } from \"./../types\"\nimport getFoundationColorTokens from \"./color-foundation-tokens\"\nimport getSemanticColorTokens from \"./color-semantic-tokens\"\n\ninterface PrimitivesT extends Partial<FontTokensT>, Partial<ColorTokensT> {\n  customColorScale: ColorScaleTokensT\n}\n\nexport default function createDarkTheme(\n  primitives: PrimitivesT,\n  overrides?: Record<string, unknown>\n): System.ThemeT {\n  const { primaryFontFamily, customColorScale, ...customColorTokens } = primitives\n  const foundation = getFoundationColorTokens(customColorScale)\n  // Assemble color tokens\n  const colorTokens: Partial<ColorTokensT> = {\n    ...foundation,\n    ...customColorTokens,\n  }\n  const theme = {\n    animation,\n    breakpoints,\n    colors: {\n      ...colorTokens,\n      ...getSemanticColorTokens(),\n    },\n    lighting,\n    mediaQuery,\n    sizing,\n    typography: primaryFontFamily ? getTypography({ primaryFontFamily }) : getTypography(),\n    zIndex,\n  }\n\n  return deepMerge(theme, overrides)\n}\n","import * as System from \"../../lighthouse\"\nimport { ColorScaleTokensT } from \"../../tokens\"\nimport { ColorTokensT } from \"../../tokens/types\"\nimport deepMerge from \"../../utils/deep-merge\"\nimport animation from \"../shared/animation\"\nimport breakpoints from \"../shared/breakpoints\"\nimport lighting from \"../shared/lighting\"\nimport mediaQuery from \"../shared/media-query\"\nimport sizing from \"../shared/sizing\"\nimport getTypography from \"../shared/typography\"\nimport zIndex from \"../shared/zIndex\"\nimport { FontTokensT } from \"./../types\"\nimport getFoundationColorTokens from \"./color-foundation-tokens\"\nimport getSemanticColorTokens from \"./color-semantic-tokens\"\n\ninterface PrimitivesT extends Partial<FontTokensT>, Partial<ColorTokensT> {\n  customColorScale?: ColorScaleTokensT\n}\n\nexport default function createLightTheme(\n  primitives: PrimitivesT,\n  overrides?: Record<string, unknown>\n): System.ThemeT {\n  const { primaryFontFamily, customColorScale, ...customColorTokens } = primitives\n  const foundation = getFoundationColorTokens(customColorScale)\n  // Assemble color tokens\n  const colorTokens: Partial<ColorTokensT> = {\n    ...foundation,\n    ...customColorTokens,\n  }\n  const theme = {\n    animation,\n    breakpoints,\n    colors: {\n      ...colorTokens,\n      ...getSemanticColorTokens(foundation),\n    },\n    lighting,\n    mediaQuery,\n    sizing,\n    typography: primaryFontFamily ? getTypography({ primaryFontFamily }) : getTypography(),\n    zIndex,\n  }\n\n  return deepMerge(theme, overrides)\n}\n","import * as React from \"react\"\nimport { LightTheme, ThemeT } from \"../themes\"\n\nexport const ThemeContext = React.createContext<ThemeT>(LightTheme)\n\n// Provider in your app\nexport const LighthouseProvider = ({ theme, children }) => (\n  <ThemeContext.Provider value={theme}>{children}</ThemeContext.Provider>\n)\n\nexport default LighthouseProvider\n","import { useEffect, useRef, useState } from \"react\"\n\nexport function useHover<T extends HTMLElement = HTMLDivElement>(\n  option\n): [React.MutableRefObject<null>, boolean] {\n  const { thresholdTime } = option\n  const [value, setValue] = useState(false)\n\n  const ref = useRef(null)\n\n  let lock = false\n  const threshold = thresholdTime || 0\n  const handleMouseOver = () => {\n    clearTimeout() // stop mouseout codes\n    lock = true\n    setValue(true)\n  }\n  const handleMouseOut = () => {\n    lock = false\n    setTimeout(function () {\n      if (lock === false) setValue(false) //undo stuff\n    }, threshold)\n  }\n\n  useEffect(() => {\n    const node: T | Window = ref?.current || window\n\n    if (node) {\n      node.addEventListener(\"mouseover\", handleMouseOver)\n      node.addEventListener(\"mouseout\", handleMouseOut)\n\n      return () => {\n        node.removeEventListener(\"mouseover\", handleMouseOver)\n        node.removeEventListener(\"mouseout\", handleMouseOut)\n      }\n    }\n  }, [ref.current]) // Recall only if ref changes\n\n  return [ref, value]\n}\n","import { useEffect } from \"react\"\n\nexport function useOnClickOutside(ref, handler) {\n  useEffect(() => {\n    const listener = (event) => {\n      // Do nothing if clicking ref's element or descendent elements\n      if (!ref.current || ref.current.contains(event.target)) {\n        return\n      }\n\n      handler(event)\n    }\n\n    document.addEventListener(\"mousedown\", listener)\n    document.addEventListener(\"touchstart\", listener)\n\n    return () => {\n      document.removeEventListener(\"mousedown\", listener)\n      document.removeEventListener(\"touchstart\", listener)\n    }\n  }, [ref, handler])\n}\n","import { useEffect } from \"react\"\n\nexport function useOnClickRectOutside(ref, handler) {\n  useEffect(() => {\n    const listener = (event) => {\n      const targetEl = ref.current\n      const clickedX = event.clientX\n      const clickedY = event.clientY\n      if (targetEl && clickedX && clickedY) {\n        const rect = targetEl.getBoundingClientRect()\n        const targetElTop = rect.top\n        const targetElBottom = rect.top + rect.height\n        const targetElLeft = rect.left\n        const targetElRight = rect.left + rect.width\n        if (\n          // check X Coordinate\n          targetElLeft < clickedX &&\n          clickedX < targetElRight &&\n          // check Y Coordinate\n          targetElTop < clickedY &&\n          clickedY < targetElBottom\n        ) {\n          return\n        }\n\n        // trigger event when the clickedX,Y is outside of the targetEl\n        handler(event)\n      }\n    }\n\n    document.addEventListener(\"mousedown\", listener)\n    document.addEventListener(\"touchstart\", listener)\n\n    return () => {\n      document.removeEventListener(\"mousedown\", listener)\n      document.removeEventListener(\"touchstart\", listener)\n    }\n  }, [ref, handler])\n}\n","import { styled } from \"styletron-react\"\nimport { BUTTON_KIND, BUTTON_SHAPE } from \"./constants\"\nimport { motion } from \"framer-motion\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const BaseButton = styled(\n  motion.button,\n  ({\n    $theme,\n    $kind,\n    $shape,\n  }: Props<{\n    $kind: keyof typeof BUTTON_KIND\n    $shape: keyof typeof BUTTON_SHAPE\n  }>) => {\n    return {\n      // remove button styles\n      fontSize: \"unset\",\n      fontFamily: \"unset\",\n      borderStyle: \"unset\",\n      margin: \"unset\",\n      outline: \"unset\",\n      boxSizing: \"border-box\",\n      lineHeight: \"unset\",\n      // start new styles\n      cursor: \"pointer\",\n      display: \"inline-block\",\n      ...getKindStyles({ $theme, $kind }),\n      ...getPaddingStyles({ $theme, $shape }),\n      ...getBorderRadiusStyles({ $shape }),\n    }\n  }\n)\nexport const FlexWrap = styled(\"div\", {\n  display: \"flex\",\n  justifyContent: \"center\",\n  alignItems: \"center\",\n  position: \"relative\",\n})\n\nexport const StartEnhancer = styled(motion.div, ({ $theme, $hide }: Props<{ $hide: boolean }>) => {\n  if ($hide)\n    return {\n      /* to remove width */\n      position: \"absolute\",\n      left: \"0px\",\n      /* safari fix */\n      display: \"flex\",\n      alignItems: \"center\",\n    }\n  else\n    return {\n      marginRight: $theme.sizing.scale300,\n    }\n})\n\nexport const EndEnhancer = styled(motion.div, ({ $theme, $hide }: Props<{ $hide: boolean }>) => {\n  if ($hide)\n    return {\n      /* to remove width */\n      position: \"absolute\",\n      left: \"0px\",\n      /* safari fix */\n      display: \"flex\",\n      alignItems: \"center\",\n    }\n  else\n    return {\n      marginLeft: $theme.sizing.scale300,\n    }\n})\n\nexport const ButtonText = styled(motion.div, ({ $theme }: Props) => {\n  return {\n    whiteSpace: \"nowrap\",\n    ...$theme.typography.LabelMedium,\n  }\n})\n\nfunction getKindStyles({ $theme, $kind }) {\n  switch ($kind) {\n    case BUTTON_KIND.primary:\n      return {\n        color: $theme.colors.contentInversePrimary,\n        WebkitTextFillColor: $theme.colors.contentInversePrimary,\n        backgroundColor: $theme.colors.primary,\n        \":active\": {\n          backgroundColor: $theme.colors.buttonPrimaryActive,\n        },\n      }\n    case BUTTON_KIND.secondary:\n      return {\n        color: $theme.colors.contentSecondary,\n        WebkitTextFillColor: $theme.colors.contentSecondary,\n        backgroundColor: $theme.colors.backgroundTertiary,\n        \":active\": {\n          backgroundColor: $theme.colors.buttonSecondaryActive,\n        },\n      }\n    case BUTTON_KIND.tertiary:\n      return {\n        color: $theme.colors.primary,\n        WebkitTextFillColor: $theme.colors.primary,\n        backgroundColor: \"transparent\",\n      }\n    default:\n      return Object.freeze({})\n  }\n}\n\nexport function getBorderRadiusStyles({ $shape }) {\n  let value = 0\n  if ($shape === BUTTON_SHAPE.pill || $shape === BUTTON_SHAPE.circle) value = 1000 // a large amount of radius\n  return {\n    borderTopRightRadius: value + \"px\",\n    borderBottomRightRadius: value + \"px\",\n    borderTopLeftRadius: value + \"px\",\n    borderBottomLeftRadius: value + \"px\",\n  }\n}\n\nfunction getPaddingStyles({ $theme, $shape }) {\n  switch ($shape) {\n    case BUTTON_SHAPE.circle:\n      return {\n        paddingTop: $theme.sizing.scale400,\n        paddingBottom: $theme.sizing.scale400,\n        paddingLeft: $theme.sizing.scale400,\n        paddingRight: $theme.sizing.scale400,\n      }\n    default:\n      return {\n        paddingTop: $theme.sizing.scale400,\n        paddingBottom: $theme.sizing.scale400,\n        paddingLeft: $theme.sizing.scale700,\n        paddingRight: $theme.sizing.scale700,\n      }\n  }\n}\n","import { motion } from \"framer-motion\"\nimport * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { useHover } from \"../hooks\"\nimport { BaseButton, ButtonText, FlexWrap, StartEnhancer, EndEnhancer } from \"./styled-components\"\nimport { ButtonPropsT } from \"./types\"\n\nexport const Button: React.FC<ButtonPropsT> = ({\n  kind = \"primary\",\n  shape = \"default\",\n  children,\n  startEnhancer,\n  endEnhancer,\n  onClick,\n  animate = false,\n  as = motion.button,\n  forwardedRef,\n  overrides = {},\n  ...rest\n}) => {\n  const theme = useContext(ThemeContext)\n  const [hoverRef = forwardedRef, isHover] = useHover({\n    thresholdTime: theme.animation.timing300,\n  })\n  const sharedProps = { $theme: theme, $kind: kind, $shape: shape }\n  const motionProps = animate && {\n    layout: true,\n    transition: {\n      duration: theme.animation.timing300,\n      ease: theme.animation.easeInCurve,\n      opacity: {\n        duration: theme.animation.timing200,\n      },\n    },\n  }\n\n  return (\n    <BaseButton\n      ref={hoverRef}\n      onClick={onClick}\n      $as={animate && typeof as === \"string\" ? motion[as] : as}\n      {...sharedProps}\n      $style={overrides.BaseButton}\n      {...motionProps}\n      {...rest}\n    >\n      <FlexWrap>\n        {startEnhancer && (\n          <StartEnhancer\n            $hide={isHover && animate}\n            animate={{\n              opacity: isHover && animate ? 0 : 1,\n            }}\n            $style={overrides.StartEnhancer}\n            {...sharedProps}\n            {...motionProps}\n          >\n            {startEnhancer}\n          </StartEnhancer>\n        )}\n        <ButtonText $style={overrides.ButtonText} {...sharedProps} {...motionProps}>\n          {children}\n        </ButtonText>\n        {endEnhancer && (\n          <EndEnhancer\n            $hide={isHover && animate}\n            animate={{\n              opacity: isHover && animate ? 0 : 1,\n            }}\n            $style={overrides.EndEnhancer}\n            {...sharedProps}\n            {...motionProps}\n          >\n            {endEnhancer}\n          </EndEnhancer>\n        )}\n      </FlexWrap>\n    </BaseButton>\n  )\n}\n","/**\n * The Button component is used for actions and events.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   return (\n *     <System.Button onClick={() => alert(\"Hello.\")}>Button</System.Button>\n *   )\n * }\n * ```\n * @param kind - \"primary\" | \"secondary\" | \"tertiary\"\n * @param shape - \"default\" | \"pill\" | \"circle\"\n * @param type - \"button\" | \"submit\" | \"reset\"\n * @param children - React.ReactNode\n * @param startEnhancer - React.ReactNode\n * @param onClick - (event: React.MouseEvent<HTMLButtonElement>) => void\n * @param overrides - \\{ BaseButton?: StyletronReact.StyleObject; StartEnhancer?: StyletronReact.StyleObject; ButtonText?: StyletronReact.StyleObject }\n * ```tsx\n * export default () => {\n *   return (\n *     <System.Button\n *      kind=\"tertiary\"\n *      overrides={{\n *        BaseButton: { backgroundColor: \"red\" },\n *        ButtonText: { WebkitTextFillColor: \"white\" }\n *      }}\n *     >\n *      or Sign In\n *     </System.Button>\n *   )\n * }\n```\n */\nexport const Button: React.FC<ButtonPropsT> = React.forwardRef(function Button(\n  props: ButtonPropsT,\n  ref: any\n) {\n  return <ButtonComp forwardedRef={ref} {...props} />\n})\nexport * from \"./types\"\nexport * from \"./constants\"\n\nimport * as React from \"react\"\nimport { Button as ButtonComp } from \"./button\"\nimport { ButtonPropsT } from \"./types\"\n\nButton.defaultProps = {\n  overrides: {},\n  kind: \"primary\",\n  shape: \"default\",\n  type: \"button\",\n  children: \"Button Label\",\n}\n","import * as React from \"react\"\nimport * as System from \"../lighthouse\"\nimport { FlexItemPropsT } from \"./types\"\n\nexport const FlexItem: React.FC<FlexItemPropsT> = ({\n  $id = 0,\n  children,\n  $columnGap = \"0px\",\n  $rowGap,\n  $widthRatio = [],\n  noShrink = false,\n  ...props\n}) => {\n  const paddingProps = {\n    paddingLeft: `calc(${$columnGap} / 2)`,\n    paddingRight: `calc(${$columnGap} / 2)`,\n    paddingTop: `calc(${$rowGap} / 2)`,\n    paddingBottom: `calc(${$rowGap} / 2)`,\n  }\n\n  return (\n    <System.Block\n      minWidth=\"0px\"\n      {...paddingProps}\n      {...getWidthProp({ $id, $columnGap, $widthRatio })}\n      {...props}\n      overrides={{ Block: { flexShrink: noShrink ? 0 : \"initial\", ...props.overrides?.Block } }}\n    >\n      {children}\n    </System.Block>\n  )\n}\n\nFlexItem.defaultProps = {}\n\nfunction getWidthProp({ $id, $columnGap, $widthRatio }) {\n  if ($widthRatio.length) {\n    return {\n      width: `calc((100% - ${$columnGap} * ${$widthRatio.length - 1})\n      * ${$widthRatio[$id]} + ${$columnGap})`,\n    }\n  }\n}\n","import * as React from \"react\"\nimport * as System from \"../lighthouse\"\nimport { FlexBoxPropsT } from \"./types\"\n\nexport const FlexBox: React.FC<FlexBoxPropsT> = ({\n  columnGap,\n  rowGap,\n  columnRatio = [],\n  children,\n  ...props\n}) => {\n  const theme: System.ThemeT = React.useContext(System.ThemeContext)\n  const getScale = (size) => theme.sizing[size] || size\n  const columnGapScale = getScale(columnGap)\n  const rowGapScale = getScale(rowGap)\n  const marginProps = React.Children.toArray(children).length > 1 && {\n    marginLeft: `calc(-${columnGapScale} / 2)`,\n    marginRight: `calc(-${columnGapScale} / 2)`,\n    marginTop: `calc(-${rowGapScale} / 2)`,\n    marginBottom: `calc(-${rowGapScale} / 2)`,\n  }\n  const gapProps = {\n    $columnGap: columnGapScale,\n    $rowGap: rowGapScale,\n    $widthRatio: getWidthRatio({ $columnRatio: columnRatio }),\n  }\n\n  return (\n    <System.Block display=\"flex\" {...marginProps} {...props}>\n      {Array.isArray(children) &&\n        children.map((child, id) => {\n          if (React.isValidElement(child))\n            return React.cloneElement(child, {\n              ...gapProps,\n              key: id,\n              $id: id,\n            })\n        })}\n      {!Array.isArray(children) &&\n        React.isValidElement(children) &&\n        React.cloneElement(children, {\n          ...gapProps,\n        })}\n    </System.Block>\n  )\n}\n\nFlexBox.defaultProps = {}\n\nfunction getWidthRatio({ $columnRatio }) {\n  let ratioSum = 0\n  for (let i = 0; i < $columnRatio.length; i++) ratioSum += $columnRatio[i]\n  return $columnRatio.map((ratio) => ratio / ratioSum)\n}\n","/**\n * The FlexBox component uses CSS flex power as default. It gives convenient methods to align child elements with a gap that supports scale. The main different usage between Block component is FlexBox respects child element size (width, height).\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   return (\n *     <System.FlexBox columnGap=\"scale900\" rowGap=\"scale700\" justifyContent=\"center\" flexWrap=\"wrap\">\n *       <System.FlexItem>\n *         <System.Button />\n *       </System.FlexItem>\n *       <System.FlexItem>\n *         <System.Button kind=\"secondary\" />\n *       </System.FlexItem>\n *       <System.FlexItem>\n *         <System.Button kind=\"tertiary\" />\n *       </System.FlexItem>\n *     </System.FlexBox>\n *   )\n * }\n * ```\n * @param columnGap - \"scale0\" | \"scale100\" | \"scale200\" | \"scale300\" | \"scale400\" | \"scale500\" | \"scale550\" | \"scale600\" | \"scale650\" | \"scale700\" | \"scale750\" | \"scale800\" | \"scale900\" | \"scale1000\" | \"scale1200\" | \"scale1400\" | \"scale1600\" | \"scale2400\" | \"scale3200\" | \"scale4800\"\n * @param rowGap - \"scale0\" | \"scale100\" | \"scale200\" | \"scale300\" | \"scale400\" | \"scale500\" | \"scale550\" | \"scale600\" | \"scale650\" | \"scale700\" | \"scale750\" | \"scale800\" | \"scale900\" | \"scale1000\" | \"scale1200\" | \"scale1400\" | \"scale1600\" | \"scale2400\" | \"scale3200\" | \"scale4800\"\n * @param flexDirection - \"inherit\" | \"initial\" | \"unset\" | \"row\" | \"row-reverse\" | \"column\" | \"column-reverse\"\n * @param columnRatio - number[]\n * @param children - React.ReactNode\n */\nexport const FlexBox: React.FC<FlexBoxPropsT> = FlexBoxComp\nexport { FlexItem } from \"./flex-item\"\nexport * from \"./types\"\n\nimport { FlexBox as FlexBoxComp } from \"./flex-box\"\nimport { FlexBoxPropsT } from \"./types\"\n","import { styled } from \"styletron-react\"\nimport { motion } from \"framer-motion\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const MotionWrap = styled(motion.div, {\n  height: \"fit-content\",\n})\n\nexport const Wrap = styled(\n  motion.div,\n  ({ $theme, onClick }: Props<{ onClick?: (event: React.MouseEvent<HTMLDivElement>) => void }>) => {\n    return {\n      position: \"relative\",\n      padding: `${$theme.sizing.scale800} ${$theme.sizing.scale700}`,\n      background: $theme.colors.backgroundSecondary,\n      cursor: onClick ? \"pointer\" : \"initial\",\n      textDecoration: \"none\",\n      display: \"block\",\n    }\n  }\n)\n\nexport const Content = styled(\"div\", {\n  position: \"relative\",\n})\n\nexport const TextWrap = styled(\"div\", {\n  position: \"relative\",\n})\n\nexport const LabelText = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    ...$theme.typography.LabelSmall,\n    textAlign: \"left\",\n    marginBottom: $theme.sizing.scale700,\n    color: $theme.colors.contentPrimary,\n  }\n})\n\nexport const TitleText = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    marginBottom: $theme.sizing.scale700,\n    color: $theme.colors.contentPrimary,\n    ...$theme.typography.HeadingSmall,\n    textAlign: \"left\",\n  }\n})\n\nexport const Desc = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    marginBottom: $theme.sizing.scale1400,\n  }\n})\n\nexport const DescText = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    color: $theme.colors.contentPrimary,\n    ...$theme.typography.ParagraphMedium,\n    textAlign: \"left\",\n  }\n})\n\nexport const BottomWrap = styled(\"div\", { width: \"100%\" })\n\nexport const ActionWrap = styled(\"div\", { display: \"flex\", justifyContent: \"flex-end\" })\n\nexport const BodyWrap = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    color: $theme.colors.contentPrimary,\n    textAlign: \"left\",\n    marginBottom: $theme.sizing.scale1400,\n    display: \"flex\", // remove inner space after texts\n    flexDirection: \"column\",\n    ...$theme.typography.ParagraphMedium,\n  }\n})\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { ActionWrap } from \"./styled-components\"\nimport { CardActionPropsT } from \"./types\"\n\nexport const CardAction: React.FC<CardActionPropsT> = ({ children, overrides = {} }) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n\n  return (\n    <ActionWrap $style={overrides.ActionWrap} {...sharedProps}>\n      {children}\n    </ActionWrap>\n  )\n}\n\nCardAction.defaultProps = {}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { BodyWrap } from \"./styled-components\"\nimport { CardBodyPropsT } from \"./types\"\n\nexport const CardBody: React.FC<CardBodyPropsT> = ({ children, overrides = {} }) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n\n  return (\n    <BodyWrap $style={overrides.BodyWrap} {...sharedProps}>\n      {children}\n    </BodyWrap>\n  )\n}\n\nCardBody.defaultProps = {}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { useHover } from \"../hooks\"\nimport { Wrap, LabelText, TitleText, MotionWrap } from \"./styled-components\"\nimport { CardPropsT } from \"./types\"\n\nexport const Card: React.FC<CardPropsT> = ({\n  children,\n  label,\n  title,\n  onClick = () => void 0,\n  as,\n  overrides = {},\n  ...rest\n}) => {\n  const theme = useContext(ThemeContext)\n  const [hoverRef, isHover] = useHover({})\n  const sharedProps = { $theme: theme }\n  const motionProps = {\n    variants: {\n      active: {\n        x: -5,\n        y: -5,\n        boxShadow: theme.lighting.shadow700,\n      },\n      normal: {\n        x: 0,\n        y: 0,\n        boxShadow: theme.lighting.shadow700.replace(/10px/g, \"0px\"),\n      },\n    },\n    animate: isHover ? \"active\" : \"normal\",\n    transition: {\n      duration: theme.animation.timing200,\n      ease: theme.animation.easeInCurve,\n    },\n  }\n\n  return (\n    <MotionWrap ref={hoverRef} {...sharedProps} {...motionProps}>\n      <Wrap $as={as} onClick={onClick} $style={overrides.Wrap} {...sharedProps} {...rest}>\n        {label && <LabelText {...sharedProps}>{label}</LabelText>}\n        <TitleText {...sharedProps}>{title}</TitleText>\n        {children}\n      </Wrap>\n    </MotionWrap>\n  )\n}\n\nCard.defaultProps = {\n  label: \"LABEL\",\n  title: \"Example card\",\n}\n","/**\n * The Card component is used to display information with alignments\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   return (\n *     <System.Card label=\"NEW\" title=\"Example Card\">\n *       <System.CardBody>\n *       Lorem ipsum dolor sit amet, consectetur adipiscing elit.\n *       </System.CardBody>\n *       <System.CardAction>\n *       <System.Button kind=\"tertiary\">Learn more</System.Button>\n *       </System.CardAction>\n *     </System.Card>\n *   )\n * }\n * ```\n * @param title - string\n * @param label - string\n * @param children - React.ReactNode\n * @param onClick - (event: React.MouseEvent<HTMLButtonElement>) => void\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject }\n */\nexport const Card: React.FC<CardPropsT> = CardComp\nexport { CardAction } from \"./card-action\"\nexport { CardBody } from \"./card-body\"\nexport * from \"./types\"\n\nimport { Card as CardComp } from \"./card\"\nimport { CardPropsT } from \"./types\"\n","export const PLACEMENT = {\n  top: \"top\" as const,\n  right: \"right\" as const,\n  bottom: \"bottom\" as const,\n  left: \"left\" as const,\n}\n","import { styled } from \"styletron-react\"\nimport { motion } from \"framer-motion\"\nimport { PLACEMENT } from \"./constants\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const Wrap = styled(\n  motion.div,\n  ({ $theme, $placement }: Props<{ $placement: keyof typeof PLACEMENT }>) => {\n    return {\n      position: \"fixed\",\n      zIndex: $theme.zIndex.drawer,\n      background: $theme.colors.backgroundSecondary,\n      ...getPlacementStyles({ $placement }),\n    }\n  }\n)\n\nfunction getPlacementStyles({ $placement }) {\n  switch ($placement) {\n    case PLACEMENT.top:\n      return {\n        top: \"0px\",\n        width: \"100%\",\n      }\n    case PLACEMENT.right:\n      return {\n        top: \"0px\",\n        right: \"0px\",\n        height: \"100%\",\n      }\n    case PLACEMENT.left:\n      return {\n        top: \"0px\",\n        left: \"0px\",\n        height: \"100%\",\n      }\n    case PLACEMENT.bottom:\n      return {\n        bottom: \"0px\",\n        left: \"0px\",\n        width: \"100%\",\n      }\n    default:\n      return Object.freeze({})\n  }\n}\n","import { AnimatePresence } from \"framer-motion\"\nimport * as React from \"react\"\nimport { useContext, useRef } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { useOnClickRectOutside } from \"../hooks\"\nimport { PLACEMENT } from \"./constants\"\nimport { Wrap } from \"./styled-components\"\nimport { DrawerPropsT } from \"./types\"\n\nexport const Drawer: React.FC<DrawerPropsT> = ({\n  children,\n  isOpen,\n  onClickOutside,\n  placement = \"top\",\n  overrides = {},\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme, $placement: placement }\n  const motionProps = {\n    initial: \"hidden\",\n    animate: \"visible\",\n    exit: \"hidden\",\n    variants: getPlacementMotionProps({ $theme: theme, $placement: placement }),\n  }\n  const ref = useRef(null)\n  useOnClickRectOutside(ref, onClickOutside)\n\n  return (\n    <AnimatePresence>\n      {isOpen && (\n        <Wrap ref={ref} $style={overrides.Wrap} {...sharedProps} {...motionProps}>\n          {children}\n        </Wrap>\n      )}\n    </AnimatePresence>\n  )\n}\n\nDrawer.defaultProps = {\n  overrides: {},\n  isOpen: true,\n  placement: \"top\",\n  onClickOutside: () => null, // cannot use void in javascript as return value\n}\n\nfunction getPlacementMotionProps({ $theme, $placement }) {\n  const defaultTransition = {\n    ease: $theme.animation.easeInCurve,\n    duration: $theme.animation.timing200,\n  }\n  const opacityHidden = {\n    opacity: 0,\n    transition: defaultTransition,\n  }\n  const opacityVisible = {\n    opacity: 1,\n    transition: { ...defaultTransition, delay: $theme.animation.timing200 },\n  }\n  switch ($placement) {\n    case PLACEMENT.top:\n      return {\n        hidden: {\n          top: \"-3%\",\n          ...opacityHidden,\n        },\n        visible: {\n          top: \"0%\",\n          ...opacityVisible,\n        },\n      }\n    case PLACEMENT.right:\n      return {\n        hidden: {\n          right: \"-3%\",\n          ...opacityHidden,\n        },\n        visible: {\n          right: \"0%\",\n          ...opacityVisible,\n        },\n      }\n    case PLACEMENT.left:\n      return {\n        hidden: {\n          left: \"-3%\",\n          ...opacityHidden,\n        },\n        visible: {\n          left: \"0%\",\n          ...opacityVisible,\n        },\n      }\n    case PLACEMENT.bottom:\n      return {\n        hidden: {\n          bottom: \"-3%\",\n          ...opacityHidden,\n        },\n        visible: {\n          bottom: \"0%\",\n          ...opacityVisible,\n        },\n      }\n    default:\n      return Object.freeze({})\n  }\n}\n","/**\n * The Drawer component. It is recommended to use it with overlay or overridden shadows.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n * import { useTheme } from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const [open, setOpen] = React.useState(false)\n *   const theme = useTheme()\n *\n *   return (\n *     <>\n *       <System.Button onClick={() => setOpen(!open)}>{open ? \"Close\" : \"Open Drawer\"}</System.Button>\n *       {open && (\n *         <System.Block\n *           position=\"fixed\"\n *           width=\"100%\"\n *           height=\"100%\"\n *           top=\"0px\"\n *           left=\"0px\"\n *           overrides={{\n *             Block: {\n *               boxShadow: theme.lighting.overlay400,\n *               zIndex: theme.zIndex.overlay,\n *             },\n *           }}\n *         />\n *       )}\n *       <System.Drawer\n *         placement=\"bottom\"\n *         isOpen={open}\n *         onClickOutside={() => setOpen(false)}\n *       >\n *         <System.ListItemLabel>\n *           <System.LabelMedium padding=\"scale900\">Menu Item</System.LabelMedium>\n *         </System.ListItemLabel>\n *       </System.Drawer>\n *     </>\n *   )\n * }\n * ```\n * @param isOpen - boolean\n * @param placement - \"top\" | \"right\" | \"bottom\" | \"left\"\n * @param children - React.ReactNode\n * @param onClickOutside - (event: React.MouseEvent<HTMLElement>) => void\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject }\n */\nexport const Drawer: React.FC<DrawerPropsT> = DrawerComp\nexport * from \"./types\"\n\nimport { Drawer as DrawerComp } from \"./drawer\"\nimport { DrawerPropsT } from \"./types\"\n","export default (value: any): value is HTMLElement =>\n  value instanceof HTMLElement;\n","import { ValidationMode } from './types';\n\nexport const EVENTS = {\n  BLUR: 'blur',\n  CHANGE: 'change',\n  INPUT: 'input',\n};\n\nexport const VALIDATION_MODE: ValidationMode = {\n  onBlur: 'onBlur',\n  onChange: 'onChange',\n  onSubmit: 'onSubmit',\n  onTouched: 'onTouched',\n  all: 'all',\n};\n\nexport const VALUE = 'value';\n\nexport const SELECT = 'select';\n\nexport const UNDEFINED = 'undefined';\n\nexport const INPUT_VALIDATION_RULES = {\n  max: 'max',\n  min: 'min',\n  maxLength: 'maxLength',\n  minLength: 'minLength',\n  pattern: 'pattern',\n  required: 'required',\n  validate: 'validate',\n};\n","import isHTMLElement from '../utils/isHTMLElement';\nimport { EVENTS } from '../constants';\nimport { Field } from '../types';\n\nexport default function attachEventListeners(\n  { ref }: Field,\n  shouldAttachChangeEvent?: boolean,\n  handleChange?: EventListenerOrEventListenerObject,\n): void {\n  if (isHTMLElement(ref) && handleChange) {\n    ref.addEventListener(\n      shouldAttachChangeEvent ? EVENTS.CHANGE : EVENTS.INPUT,\n      handleChange,\n    );\n    ref.addEventListener(EVENTS.BLUR, handleChange);\n  }\n}\n","export default (value: unknown): value is null | undefined => value == null;\n","export default <T>(value: unknown): value is T[] => Array.isArray(value);\n","import isNullOrUndefined from './isNullOrUndefined';\nimport isArray from './isArray';\n\nexport const isObjectType = (value: unknown) => typeof value === 'object';\n\nexport default <T extends object>(value: unknown): value is T =>\n  !isNullOrUndefined(value) &&\n  !isArray(value) &&\n  isObjectType(value) &&\n  !(value instanceof Date);\n","import isArray from './isArray';\n\nexport default (value: [] | string) =>\n  !isArray(value) &&\n  (/^\\w*$/.test(value) ||\n    !/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/.test(value));\n","export default (input: string): string[] => {\n  const result: string[] = [];\n\n  input.replace(\n    /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,\n    (\n      match: string,\n      mathNumber: string,\n      mathQuote: string,\n      originalString: string,\n    ): any => {\n      result.push(\n        mathQuote\n          ? originalString.replace(/\\\\(\\\\)?/g, '$1')\n          : mathNumber || match,\n      );\n    },\n  );\n\n  return result;\n};\n","import isObject from './isObject';\nimport isArray from './isArray';\nimport isKey from './isKey';\nimport stringToPath from './stringToPath';\nimport { FieldValues } from '../types';\n\nexport default function set(\n  object: FieldValues,\n  path: string,\n  value?: unknown,\n) {\n  let index = -1;\n  const tempPath = isKey(path) ? [path] : stringToPath(path);\n  const length = tempPath.length;\n  const lastIndex = length - 1;\n\n  while (++index < length) {\n    const key = tempPath[index];\n    let newValue = value;\n\n    if (index !== lastIndex) {\n      const objValue = object[key];\n      newValue =\n        isObject(objValue) || isArray(objValue)\n          ? objValue\n          : !isNaN(+tempPath[index + 1])\n          ? []\n          : {};\n    }\n    object[key] = newValue;\n    object = object[key];\n  }\n  return object;\n}\n","import set from '../utils/set';\nimport isKey from '../utils/isKey';\nimport { FieldValues } from '../types';\n\nexport default (data: FieldValues): any =>\n  Object.entries(data).reduce(\n    (previous: FieldValues, [key, value]): FieldValues => {\n      if (!isKey(key)) {\n        set(previous, key, value);\n        return previous;\n      }\n\n      return { ...previous, [key]: value };\n    },\n    {},\n  );\n","export default (val: unknown): val is undefined => val === undefined;\n","export default (value: any[]) => value.filter(Boolean);\n","import isUndefined from './isUndefined';\nimport isNullOrUndefined from './isNullOrUndefined';\nimport filterOutFalsy from './filterOutFalsy';\n\nexport default (obj: any, path: string, defaultValue?: unknown) => {\n  const result = filterOutFalsy(path.split(/[,[\\].]+?/)).reduce(\n    (result, key) => (isNullOrUndefined(result) ? result : result[key]),\n    obj,\n  );\n\n  return isUndefined(result) || result === obj\n    ? isUndefined(obj[path])\n      ? defaultValue\n      : obj[path]\n    : result;\n};\n","import get from '../utils/get';\nimport { FieldErrors, FieldRefs } from '../types';\n\nexport default <TFieldValues>(\n  fields: FieldRefs<TFieldValues>,\n  fieldErrors: FieldErrors<TFieldValues>,\n) => {\n  for (const key in fields) {\n    if (get(fieldErrors, key)) {\n      const field = fields[key];\n\n      if (field) {\n        if (field.ref.focus) {\n          field.ref.focus();\n\n          break;\n        } else if (field.options) {\n          field.options[0].ref.focus();\n\n          break;\n        }\n      }\n    }\n  }\n};\n","import isHTMLElement from '../utils/isHTMLElement';\nimport { EVENTS } from '../constants';\nimport { Ref } from '../types';\n\nexport default (\n  ref: Ref,\n  validateWithStateUpdate: EventListenerOrEventListenerObject,\n): void => {\n  if (isHTMLElement(ref) && ref.removeEventListener) {\n    ref.removeEventListener(EVENTS.INPUT, validateWithStateUpdate);\n    ref.removeEventListener(EVENTS.CHANGE, validateWithStateUpdate);\n    ref.removeEventListener(EVENTS.BLUR, validateWithStateUpdate);\n  }\n};\n","import isArray from '../utils/isArray';\nimport { RadioOrCheckboxOption } from '../types';\n\ntype RadioFieldResult = {\n  isValid: boolean;\n  value: number | string;\n};\n\nconst defaultReturn: RadioFieldResult = {\n  isValid: false,\n  value: '',\n};\n\nexport default (options?: RadioOrCheckboxOption[]): RadioFieldResult =>\n  isArray(options)\n    ? options.reduce(\n        (previous, option): RadioFieldResult =>\n          option && option.ref.checked\n            ? {\n                isValid: true,\n                value: option.ref.value,\n              }\n            : previous,\n        defaultReturn,\n      )\n    : defaultReturn;\n","export default (\n  options: HTMLOptionElement[] | HTMLOptionsCollection,\n): string[] =>\n  [...options]\n    .filter(({ selected }): boolean => selected)\n    .map(({ value }): string => value);\n","import { FieldElement } from '../types';\n\nexport default (element: FieldElement): element is HTMLInputElement =>\n  element.type === 'radio';\n","import { FieldElement } from '../types';\n\nexport default (element: FieldElement): element is HTMLInputElement =>\n  element.type === 'file';\n","import { FieldElement } from '../types';\n\nexport default (element: FieldElement): element is HTMLInputElement =>\n  element.type === 'checkbox';\n","import { FieldElement } from '../types';\nimport { SELECT } from '../constants';\n\nexport default (element: FieldElement): element is HTMLSelectElement =>\n  element.type === `${SELECT}-multiple`;\n","import isArray from '../utils/isArray';\nimport isUndefined from '../utils/isUndefined';\nimport { RadioOrCheckboxOption } from '../types';\n\ntype CheckboxFieldResult = {\n  isValid: boolean;\n  value: string | string[] | boolean;\n};\n\nconst defaultResult: CheckboxFieldResult = {\n  value: false,\n  isValid: false,\n};\n\nconst validResult = { value: true, isValid: true };\n\nexport default (options?: RadioOrCheckboxOption[]): CheckboxFieldResult => {\n  if (isArray(options)) {\n    if (options.length > 1) {\n      const values = options\n        .filter((option) => option && option.ref.checked)\n        .map(({ ref: { value } }) => value);\n      return { value: values, isValid: !!values.length };\n    }\n\n    const { checked, value, attributes } = options[0].ref;\n\n    return checked\n      ? attributes && !isUndefined((attributes as any).value)\n        ? isUndefined(value) || value === ''\n          ? validResult\n          : { value: value, isValid: true }\n        : validResult\n      : defaultResult;\n  }\n\n  return defaultResult;\n};\n","import * as React from 'react';\nimport getRadioValue from './getRadioValue';\nimport getMultipleSelectValue from './getMultipleSelectValue';\nimport isRadioInput from '../utils/isRadioInput';\nimport get from '../utils/get';\nimport isFileInput from '../utils/isFileInput';\nimport isCheckBox from '../utils/isCheckBoxInput';\nimport isMultipleSelect from '../utils/isMultipleSelect';\nimport getCheckboxValue from './getCheckboxValue';\nimport { FieldRefs, FieldValues, InternalFieldName } from '../types';\n\nexport default function getFieldValue<TFieldValues extends FieldValues>(\n  fieldsRef: React.MutableRefObject<FieldRefs<TFieldValues>>,\n  name: InternalFieldName<TFieldValues>,\n  shallowFieldsStateRef?: React.MutableRefObject<Partial<FieldValues>>,\n  excludeDisabled?: boolean,\n) {\n  const field = fieldsRef.current[name]!;\n\n  if (field) {\n    const {\n      ref: { value, disabled },\n      ref,\n    } = field;\n\n    if (disabled && excludeDisabled) {\n      return;\n    }\n\n    if (isFileInput(ref)) {\n      return ref.files;\n    }\n\n    if (isRadioInput(ref)) {\n      return getRadioValue(field.options).value;\n    }\n\n    if (isMultipleSelect(ref)) {\n      return getMultipleSelectValue(ref.options);\n    }\n\n    if (isCheckBox(ref)) {\n      return getCheckboxValue(field.options).value;\n    }\n\n    return value;\n  }\n\n  if (shallowFieldsStateRef) {\n    return get(shallowFieldsStateRef.current, name);\n  }\n}\n","import { Ref } from '../types';\n\nexport default function isDetached(element: Ref): boolean {\n  if (!element) {\n    return true;\n  }\n\n  if (\n    !(element instanceof HTMLElement) ||\n    element.nodeType === Node.DOCUMENT_NODE\n  ) {\n    return false;\n  }\n\n  return isDetached(element.parentNode as Ref);\n}\n","import isObject from './isObject';\nimport { EmptyObject } from '../types';\n\nexport default (value: unknown): value is EmptyObject =>\n  isObject(value) && !Object.keys(value).length;\n","export default (value: unknown): value is boolean => typeof value === 'boolean';\n","import isArray from './isArray';\nimport isKey from './isKey';\nimport stringToPath from './stringToPath';\nimport isEmptyObject from './isEmptyObject';\nimport isObject from './isObject';\nimport isUndefined from './isUndefined';\nimport isBoolean from './isBoolean';\n\nfunction baseGet(object: any, updatePath: (string | number)[]) {\n  const path = updatePath.slice(0, -1);\n  const length = path.length;\n  let index = 0;\n\n  while (index < length) {\n    object = isUndefined(object) ? index++ : object[updatePath[index++]];\n  }\n\n  return object;\n}\n\nexport default function unset(object: any, path: string) {\n  const updatePath = isKey(path) ? [path] : stringToPath(path);\n  const childObject =\n    updatePath.length == 1 ? object : baseGet(object, updatePath);\n  const key = updatePath[updatePath.length - 1];\n  let previousObjRef = undefined;\n\n  if (childObject) {\n    delete childObject[key];\n  }\n\n  for (let k = 0; k < updatePath.slice(0, -1).length; k++) {\n    let index = -1;\n    let objectRef = undefined;\n    const currentPaths = updatePath.slice(0, -(k + 1));\n    const currentPathsLength = currentPaths.length - 1;\n\n    if (k > 0) {\n      previousObjRef = object;\n    }\n\n    while (++index < currentPaths.length) {\n      const item = currentPaths[index];\n      objectRef = objectRef ? objectRef[item] : object[item];\n\n      if (\n        currentPathsLength === index &&\n        ((isObject(objectRef) && isEmptyObject(objectRef)) ||\n          (isArray(objectRef) &&\n            !objectRef.filter(\n              (data) =>\n                (isObject(data) && !isEmptyObject(data)) || isBoolean(data),\n            ).length))\n      ) {\n        previousObjRef ? delete previousObjRef[item] : delete object[item];\n      }\n\n      previousObjRef = objectRef;\n    }\n  }\n\n  return object;\n}\n","import * as React from 'react';\nimport removeAllEventListeners from './removeAllEventListeners';\nimport getFieldValue from './getFieldValue';\nimport isRadioInput from '../utils/isRadioInput';\nimport set from '../utils/set';\nimport isCheckBoxInput from '../utils/isCheckBoxInput';\nimport isDetached from '../utils/isDetached';\nimport isArray from '../utils/isArray';\nimport unset from '../utils/unset';\nimport filterOutFalsy from '../utils/filterOutFalsy';\nimport isUndefined from '../utils/isUndefined';\nimport { Field, FieldRefs, FieldValues, Ref } from '../types';\n\nconst isSameRef = (fieldValue: Field, ref: Ref) =>\n  fieldValue && fieldValue.ref === ref;\n\nexport default function findRemovedFieldAndRemoveListener<\n  TFieldValues extends FieldValues\n>(\n  fieldsRef: React.MutableRefObject<FieldRefs<TFieldValues>>,\n  handleChange: ({ type, target }: Event) => Promise<void | boolean>,\n  field: Field,\n  shallowFieldsStateRef: React.MutableRefObject<FieldValues>,\n  shouldUnregister?: boolean,\n  forceDelete?: boolean,\n): void {\n  const {\n    ref,\n    ref: { name, type },\n  } = field;\n  const fieldRef = fieldsRef.current[name] as Field;\n\n  if (!shouldUnregister) {\n    const value = getFieldValue(fieldsRef, name, shallowFieldsStateRef);\n\n    if (!isUndefined(value)) {\n      set(shallowFieldsStateRef.current, name, value);\n    }\n  }\n\n  if (!type) {\n    delete fieldsRef.current[name];\n    return;\n  }\n\n  if ((isRadioInput(ref) || isCheckBoxInput(ref)) && fieldRef) {\n    const { options } = fieldRef;\n\n    if (isArray(options) && options.length) {\n      filterOutFalsy(options).forEach((option, index): void => {\n        const { ref } = option;\n        if ((ref && isDetached(ref) && isSameRef(option, ref)) || forceDelete) {\n          removeAllEventListeners(ref, handleChange);\n          unset(options, `[${index}]`);\n        }\n      });\n\n      if (options && !filterOutFalsy(options).length) {\n        delete fieldsRef.current[name];\n      }\n    } else {\n      delete fieldsRef.current[name];\n    }\n  } else if ((isDetached(ref) && isSameRef(fieldRef, ref)) || forceDelete) {\n    removeAllEventListeners(ref, handleChange);\n\n    delete fieldsRef.current[name];\n  }\n}\n","import { get } from '../utils';\nimport isArray from '../utils/isArray';\nimport set from '../utils/set';\n\nexport default function setFieldArrayDirtyFields<\n  T extends U,\n  U extends Record<string, unknown>[],\n  K extends Record<string, boolean | []>\n>(\n  values: T,\n  defaultValues: U,\n  dirtyFields: Record<string, boolean | []>[],\n  parentNode?: K,\n  parentName?: keyof K,\n) {\n  let index = -1;\n\n  while (++index < values.length) {\n    for (const key in values[index]) {\n      if (isArray(values[index][key])) {\n        !dirtyFields[index] && (dirtyFields[index] = {});\n        dirtyFields[index][key] = [];\n        setFieldArrayDirtyFields(\n          values[index][key],\n          get(defaultValues[index] || {}, key, []),\n          dirtyFields[index][key] as [],\n          dirtyFields[index],\n          key,\n        );\n      } else {\n        get(defaultValues[index] || {}, key) === values[index][key]\n          ? set(dirtyFields[index] || {}, key)\n          : (dirtyFields[index] = {\n              ...dirtyFields[index],\n              [key]: true,\n            });\n      }\n    }\n    !dirtyFields.length &&\n      parentNode &&\n      delete parentNode[parentName as keyof K];\n  }\n\n  return dirtyFields.length ? dirtyFields : undefined;\n}\n","export default (value: unknown): value is string => typeof value === 'string';\n","import isNullOrUndefined from './isNullOrUndefined';\nimport { isObjectType } from './isObject';\nimport { Primitive } from '../types';\n\nexport default (value: unknown): value is Primitive =>\n  isNullOrUndefined(value) || !isObjectType(value);\n","import isObject from './isObject';\nimport isArray from './isArray';\nimport isPrimitive from './isPrimitive';\n\nexport function deepMerge<\n  T extends Record<keyof T, any>,\n  U extends Record<keyof U, any>\n>(target: T, source: U): T & U {\n  if (isPrimitive(target) || isPrimitive(source)) {\n    return source;\n  }\n\n  for (const key in source) {\n    const targetValue = target[key];\n    const sourceValue = source[key];\n\n    try {\n      if (\n        (isObject(targetValue) && isObject(sourceValue)) ||\n        (isArray(targetValue) && isArray(sourceValue))\n      ) {\n        target[key] = deepMerge(targetValue, sourceValue);\n      } else {\n        target[key] = sourceValue;\n      }\n    } catch {}\n  }\n\n  return target;\n}\n","import * as React from 'react';\nimport getFieldValue from './getFieldValue';\nimport isString from '../utils/isString';\nimport isArray from '../utils/isArray';\nimport { deepMerge } from '../utils/deepMerge';\nimport isUndefined from '../utils/isUndefined';\nimport { InternalFieldName, FieldValues, FieldRefs } from '../types';\nimport transformToNestObject from './transformToNestObject';\n\nexport default <TFieldValues extends FieldValues>(\n  fieldsRef: React.MutableRefObject<FieldRefs<TFieldValues>>,\n  shallowFieldsStateRef?: React.MutableRefObject<Record<string, any>>,\n  excludeDisabled?: boolean,\n  search?:\n    | InternalFieldName<TFieldValues>\n    | InternalFieldName<TFieldValues>[]\n    | { nest: boolean },\n) => {\n  const output = {} as TFieldValues;\n\n  for (const name in fieldsRef.current) {\n    if (\n      isUndefined(search) ||\n      (isString(search)\n        ? name.startsWith(search)\n        : isArray(search) && search.find((data) => name.startsWith(data)))\n    ) {\n      output[name as InternalFieldName<TFieldValues>] = getFieldValue(\n        fieldsRef,\n        name,\n        undefined,\n        excludeDisabled,\n      );\n    }\n  }\n\n  return deepMerge(\n    transformToNestObject({ ...((shallowFieldsStateRef || {}).current || {}) }),\n    transformToNestObject(output),\n  );\n};\n","import isObject from '../utils/isObject';\nimport isArray from '../utils/isArray';\n\nexport default function deepEqual(\n  object1: any = [],\n  object2: any = [],\n  isErrorObject?: boolean,\n) {\n  const keys1 = Object.keys(object1);\n  const keys2 = Object.keys(object2);\n\n  if (keys1.length !== keys2.length) {\n    return false;\n  }\n\n  for (const key of keys1) {\n    if (!(isErrorObject && ['ref', 'context'].includes(key))) {\n      const val1 = object1[key];\n      const val2 = object2[key];\n\n      if (\n        (isObject(val1) || isArray(val1)) && (isObject(val2) || isArray(val2))\n          ? !deepEqual(val1, val2, isErrorObject)\n          : val1 !== val2\n      ) {\n        return false;\n      }\n    }\n  }\n\n  return true;\n}\n","import get from '../utils/get';\nimport isUndefined from '../utils/isUndefined';\nimport deepEqual from '../utils/deepEqual';\nimport {\n  FieldValues,\n  InternalFieldName,\n  FieldErrors,\n  FieldNamesMarkedBoolean,\n  FieldError,\n} from '../types';\n\nexport default function isErrorStateChanged<TFieldValues extends FieldValues>({\n  errors,\n  name,\n  error,\n  validFields,\n  fieldsWithValidation,\n}: {\n  errors: FieldErrors<TFieldValues>;\n  error: FieldError | undefined;\n  name: InternalFieldName<TFieldValues>;\n  validFields: FieldNamesMarkedBoolean<TFieldValues>;\n  fieldsWithValidation: FieldNamesMarkedBoolean<TFieldValues>;\n}): boolean {\n  const isValid = isUndefined(error);\n  const previousError = get(errors, name);\n\n  return (\n    (isValid && !!previousError) ||\n    (!isValid && !deepEqual(previousError, error, true)) ||\n    (isValid && get(fieldsWithValidation, name) && !get(validFields, name))\n  );\n}\n","export default (value: unknown): value is RegExp => value instanceof RegExp;\n","import isObject from '../utils/isObject';\nimport isRegex from '../utils/isRegex';\nimport { ValidationRule, ValidationValueMessage } from '../types';\n\nconst isValueMessage = (\n  value?: ValidationRule,\n): value is ValidationValueMessage => isObject(value) && !isRegex(value);\n\nexport default (validationData?: ValidationRule) =>\n  isValueMessage(validationData)\n    ? validationData\n    : {\n        value: validationData,\n        message: '',\n      };\n","export default (value: unknown): value is Function =>\n  typeof value === 'function';\n","import { isValidElement } from 'react';\nimport isString from '../utils/isString';\nimport isObject from '../utils/isObject';\nimport { Message } from '../types';\n\nexport default (value: unknown): value is Message =>\n  isString(value) || (isObject(value) && isValidElement(value));\n","import isBoolean from '../utils/isBoolean';\nimport isMessage from '../utils/isMessage';\nimport { FieldError, ValidateResult, Ref } from '../types';\n\nexport default function getValidateError(\n  result: ValidateResult,\n  ref: Ref,\n  type = 'validate',\n): FieldError | void {\n  if (isMessage(result) || (isBoolean(result) && !result)) {\n    return {\n      type,\n      message: isMessage(result) ? result : '',\n      ref,\n    };\n  }\n}\n","import {\n  InternalFieldName,\n  ValidateResult,\n  InternalFieldErrors,\n} from '../types';\n\nexport default <TFieldValues>(\n  name: InternalFieldName<TFieldValues>,\n  validateAllFieldCriteria: boolean,\n  errors: InternalFieldErrors<TFieldValues>,\n  type: string,\n  message: ValidateResult,\n) => {\n  if (validateAllFieldCriteria) {\n    const error = errors[name];\n\n    return {\n      ...error,\n      types: {\n        ...(error && error.types ? error.types : {}),\n        [type]: message || true,\n      },\n    };\n  }\n\n  return {};\n};\n","import * as React from 'react';\nimport getRadioValue from './getRadioValue';\nimport getCheckboxValue from './getCheckboxValue';\nimport isNullOrUndefined from '../utils/isNullOrUndefined';\nimport isRadioInput from '../utils/isRadioInput';\nimport getValueAndMessage from './getValueAndMessage';\nimport isCheckBoxInput from '../utils/isCheckBoxInput';\nimport isString from '../utils/isString';\nimport isEmptyObject from '../utils/isEmptyObject';\nimport isObject from '../utils/isObject';\nimport isFunction from '../utils/isFunction';\nimport getFieldsValue from './getFieldValue';\nimport isRegex from '../utils/isRegex';\nimport isBoolean from '../utils/isBoolean';\nimport isMessage from '../utils/isMessage';\nimport getValidateError from './getValidateError';\nimport appendErrors from './appendErrors';\nimport { INPUT_VALIDATION_RULES } from '../constants';\nimport {\n  Field,\n  FieldValues,\n  FieldRefs,\n  Message,\n  FieldError,\n  InternalFieldName,\n  InternalFieldErrors,\n} from '../types';\n\nexport default async <TFieldValues extends FieldValues>(\n  fieldsRef: React.MutableRefObject<FieldRefs<TFieldValues>>,\n  validateAllFieldCriteria: boolean,\n  {\n    ref,\n    ref: { type, value },\n    options,\n    required,\n    maxLength,\n    minLength,\n    min,\n    max,\n    pattern,\n    validate,\n  }: Field,\n  shallowFieldsStateRef: React.MutableRefObject<Record<string, any>>,\n): Promise<InternalFieldErrors<TFieldValues>> => {\n  const fields = fieldsRef.current;\n  const name: InternalFieldName<TFieldValues> = ref.name;\n  const error: InternalFieldErrors<TFieldValues> = {};\n  const isRadio = isRadioInput(ref);\n  const isCheckBox = isCheckBoxInput(ref);\n  const isRadioOrCheckbox = isRadio || isCheckBox;\n  const isEmpty = value === '';\n  const appendErrorsCurry = appendErrors.bind(\n    null,\n    name,\n    validateAllFieldCriteria,\n    error,\n  );\n  const getMinMaxMessage = (\n    exceedMax: boolean,\n    maxLengthMessage: Message,\n    minLengthMessage: Message,\n    maxType = INPUT_VALIDATION_RULES.maxLength,\n    minType = INPUT_VALIDATION_RULES.minLength,\n  ) => {\n    const message = exceedMax ? maxLengthMessage : minLengthMessage;\n    error[name] = {\n      type: exceedMax ? maxType : minType,\n      message,\n      ref,\n      ...(exceedMax\n        ? appendErrorsCurry(maxType, message)\n        : appendErrorsCurry(minType, message)),\n    };\n  };\n\n  if (\n    required &&\n    ((!isRadio && !isCheckBox && (isEmpty || isNullOrUndefined(value))) ||\n      (isBoolean(value) && !value) ||\n      (isCheckBox && !getCheckboxValue(options).isValid) ||\n      (isRadio && !getRadioValue(options).isValid))\n  ) {\n    const { value: requiredValue, message: requiredMessage } = isMessage(\n      required,\n    )\n      ? { value: !!required, message: required }\n      : getValueAndMessage(required);\n\n    if (requiredValue) {\n      error[name] = {\n        type: INPUT_VALIDATION_RULES.required,\n        message: requiredMessage,\n        ref: isRadioOrCheckbox\n          ? (((fields[name] as Field).options || [])[0] || {}).ref\n          : ref,\n        ...appendErrorsCurry(INPUT_VALIDATION_RULES.required, requiredMessage),\n      };\n      if (!validateAllFieldCriteria) {\n        return error;\n      }\n    }\n  }\n\n  if (!isNullOrUndefined(min) || !isNullOrUndefined(max)) {\n    let exceedMax;\n    let exceedMin;\n    const { value: maxValue, message: maxMessage } = getValueAndMessage(max);\n    const { value: minValue, message: minMessage } = getValueAndMessage(min);\n\n    if (type === 'number' || (!type && !isNaN(value))) {\n      const valueNumber =\n        (ref as HTMLInputElement).valueAsNumber || parseFloat(value);\n      if (!isNullOrUndefined(maxValue)) {\n        exceedMax = valueNumber > maxValue;\n      }\n      if (!isNullOrUndefined(minValue)) {\n        exceedMin = valueNumber < minValue;\n      }\n    } else {\n      const valueDate =\n        (ref as HTMLInputElement).valueAsDate || new Date(value);\n      if (isString(maxValue)) {\n        exceedMax = valueDate > new Date(maxValue);\n      }\n      if (isString(minValue)) {\n        exceedMin = valueDate < new Date(minValue);\n      }\n    }\n\n    if (exceedMax || exceedMin) {\n      getMinMaxMessage(\n        !!exceedMax,\n        maxMessage,\n        minMessage,\n        INPUT_VALIDATION_RULES.max,\n        INPUT_VALIDATION_RULES.min,\n      );\n      if (!validateAllFieldCriteria) {\n        return error;\n      }\n    }\n  }\n\n  if (isString(value) && !isEmpty && (maxLength || minLength)) {\n    const {\n      value: maxLengthValue,\n      message: maxLengthMessage,\n    } = getValueAndMessage(maxLength);\n    const {\n      value: minLengthValue,\n      message: minLengthMessage,\n    } = getValueAndMessage(minLength);\n    const inputLength = value.toString().length;\n    const exceedMax =\n      !isNullOrUndefined(maxLengthValue) && inputLength > maxLengthValue;\n    const exceedMin =\n      !isNullOrUndefined(minLengthValue) && inputLength < minLengthValue;\n\n    if (exceedMax || exceedMin) {\n      getMinMaxMessage(!!exceedMax, maxLengthMessage, minLengthMessage);\n      if (!validateAllFieldCriteria) {\n        return error;\n      }\n    }\n  }\n\n  if (pattern && !isEmpty) {\n    const { value: patternValue, message: patternMessage } = getValueAndMessage(\n      pattern,\n    );\n\n    if (isRegex(patternValue) && !patternValue.test(value)) {\n      error[name] = {\n        type: INPUT_VALIDATION_RULES.pattern,\n        message: patternMessage,\n        ref,\n        ...appendErrorsCurry(INPUT_VALIDATION_RULES.pattern, patternMessage),\n      };\n      if (!validateAllFieldCriteria) {\n        return error;\n      }\n    }\n  }\n\n  if (validate) {\n    const fieldValue = getFieldsValue(fieldsRef, name, shallowFieldsStateRef);\n    const validateRef = isRadioOrCheckbox && options ? options[0].ref : ref;\n\n    if (isFunction(validate)) {\n      const result = await validate(fieldValue);\n      const validateError = getValidateError(result, validateRef);\n\n      if (validateError) {\n        error[name] = {\n          ...validateError,\n          ...appendErrorsCurry(\n            INPUT_VALIDATION_RULES.validate,\n            validateError.message,\n          ),\n        };\n        if (!validateAllFieldCriteria) {\n          return error;\n        }\n      }\n    } else if (isObject(validate)) {\n      let validationResult = {} as FieldError;\n      for (const [key, validateFunction] of Object.entries(validate)) {\n        if (!isEmptyObject(validationResult) && !validateAllFieldCriteria) {\n          break;\n        }\n\n        const validateResult = await validateFunction(fieldValue);\n        const validateError = getValidateError(\n          validateResult,\n          validateRef,\n          key,\n        );\n\n        if (validateError) {\n          validationResult = {\n            ...validateError,\n            ...appendErrorsCurry(key, validateError.message),\n          };\n\n          if (validateAllFieldCriteria) {\n            error[name] = validationResult;\n          }\n        }\n      }\n\n      if (!isEmptyObject(validationResult)) {\n        error[name] = {\n          ref: validateRef,\n          ...validationResult,\n        };\n        if (!validateAllFieldCriteria) {\n          return error;\n        }\n      }\n    }\n  }\n\n  return error;\n};\n","import isPrimitive from './isPrimitive';\nimport isObject from './isObject';\n\nexport const getPath = <T extends string, U extends object | unknown[]>(\n  path: T,\n  values: U,\n): string[] => {\n  const getInnerPath = <K>(key: K, value: U, isObject?: boolean) => {\n    const pathWithIndex = isObject ? `${path}.${key}` : `${path}[${key}]`;\n    return isPrimitive(value) ? pathWithIndex : getPath(pathWithIndex, value);\n  };\n\n  return Object.entries(values)\n    .map(([key, value]) => getInnerPath(key, value, isObject(values)))\n    .flat(Infinity) as string[];\n};\n","import get from '../utils/get';\nimport { getPath } from '../utils/getPath';\nimport isEmptyObject from '../utils/isEmptyObject';\nimport isUndefined from '../utils/isUndefined';\nimport isObject from '../utils/isObject';\nimport isArray from '../utils/isArray';\nimport {\n  DeepPartial,\n  FieldValue,\n  FieldValues,\n  InternalFieldName,\n  UnpackNestedValue,\n} from '../types';\n\nexport default <TFieldValues extends FieldValues>(\n  fieldValues: TFieldValues,\n  fieldName: InternalFieldName<TFieldValues>,\n  watchFields: Set<InternalFieldName<TFieldValues>>,\n  inputValue: UnpackNestedValue<DeepPartial<TFieldValues>>,\n  isSingleField?: boolean,\n):\n  | FieldValue<TFieldValues>\n  | UnpackNestedValue<DeepPartial<TFieldValues>>\n  | undefined => {\n  let value;\n\n  watchFields.add(fieldName);\n\n  if (isEmptyObject(fieldValues)) {\n    value = undefined;\n  } else {\n    value = get(fieldValues, fieldName);\n\n    if (isObject(value) || isArray(value)) {\n      getPath(fieldName, value).forEach((name) => watchFields.add(name));\n    }\n  }\n\n  return isUndefined(value)\n    ? isSingleField\n      ? inputValue\n      : get(inputValue, fieldName)\n    : value;\n};\n","export default ({\n  isOnBlur,\n  isOnChange,\n  isOnTouch,\n  isTouched,\n  isReValidateOnBlur,\n  isReValidateOnChange,\n  isBlurEvent,\n  isSubmitted,\n  isOnAll,\n}: {\n  isOnAll?: boolean;\n  isOnBlur?: boolean;\n  isOnChange?: boolean;\n  isReValidateOnBlur?: boolean;\n  isReValidateOnChange?: boolean;\n  isBlurEvent?: boolean;\n  isSubmitted?: boolean;\n  isOnTouch?: boolean;\n  isTouched?: boolean;\n}) => {\n  if (isOnAll) {\n    return false;\n  } else if (!isSubmitted && isOnTouch) {\n    return !(isTouched || isBlurEvent);\n  } else if (isSubmitted ? isReValidateOnBlur : isOnBlur) {\n    return !isBlurEvent;\n  } else if (isSubmitted ? isReValidateOnChange : isOnChange) {\n    return isBlurEvent;\n  }\n  return true;\n};\n","export default (name: string) => name.substring(0, name.indexOf('['));\n","import { FieldValues, InternalFieldName } from '../types';\n\nexport const isMatchFieldArrayName = (name: string, searchName: string) =>\n  RegExp(\n    `^${searchName}[\\\\d+]`.replace(/\\[/g, '\\\\[').replace(/\\]/g, '\\\\]'),\n  ).test(name);\n\nexport default (\n  names: Set<InternalFieldName<FieldValues>>,\n  name: InternalFieldName<FieldValues>,\n) => [...names].some((current) => isMatchFieldArrayName(name, current));\n","import { FieldElement } from '../types';\nimport { SELECT } from '../constants';\n\nexport default (element: FieldElement): element is HTMLSelectElement =>\n  element.type === `${SELECT}-one`;\n","import * as React from 'react';\nimport { Field, FieldRefs } from '../types';\nimport isDetached from './isDetached';\n\nexport default function onDomRemove<TFieldValues>(\n  fieldsRef: React.MutableRefObject<FieldRefs<TFieldValues>>,\n  removeFieldEventListenerAndRef: (\n    field: Field | undefined,\n    forceDelete?: boolean,\n  ) => void,\n): MutationObserver {\n  const observer = new MutationObserver((): void => {\n    for (const field of Object.values(fieldsRef.current)) {\n      if (field && field.options) {\n        for (const option of field.options) {\n          if (option && option.ref && isDetached(option.ref)) {\n            removeFieldEventListenerAndRef(field);\n          }\n        }\n      } else if (field && isDetached(field.ref)) {\n        removeFieldEventListenerAndRef(field);\n      }\n    }\n  });\n\n  observer.observe(window.document, {\n    childList: true,\n    subtree: true,\n  });\n\n  return observer;\n}\n","import { VALIDATION_MODE } from '../constants';\nimport { Mode } from '../types';\n\nexport default (\n  mode?: Mode,\n): {\n  isOnSubmit: boolean;\n  isOnBlur: boolean;\n  isOnChange: boolean;\n  isOnAll: boolean;\n  isOnTouch: boolean;\n} => ({\n  isOnSubmit: !mode || mode === VALIDATION_MODE.onSubmit,\n  isOnBlur: mode === VALIDATION_MODE.onBlur,\n  isOnChange: mode === VALIDATION_MODE.onChange,\n  isOnAll: mode === VALIDATION_MODE.all,\n  isOnTouch: mode === VALIDATION_MODE.onTouched,\n});\n","import isRadioInput from './isRadioInput';\nimport isCheckBoxInput from './isCheckBoxInput';\nimport { FieldElement } from '../types';\n\nexport default (ref: FieldElement): ref is HTMLInputElement =>\n  isRadioInput(ref) || isCheckBoxInput(ref);\n","import * as React from 'react';\nimport attachEventListeners from './logic/attachEventListeners';\nimport transformToNestObject from './logic/transformToNestObject';\nimport focusOnErrorField from './logic/focusOnErrorField';\nimport findRemovedFieldAndRemoveListener from './logic/findRemovedFieldAndRemoveListener';\nimport setFieldArrayDirtyFields from './logic/setFieldArrayDirtyFields';\nimport getFieldsValues from './logic/getFieldsValues';\nimport getFieldValue from './logic/getFieldValue';\nimport isErrorStateChanged from './logic/isErrorStateChanged';\nimport validateField from './logic/validateField';\nimport assignWatchFields from './logic/assignWatchFields';\nimport skipValidation from './logic/skipValidation';\nimport getFieldArrayParentName from './logic/getFieldArrayParentName';\nimport deepEqual from './utils/deepEqual';\nimport isNameInFieldArray from './logic/isNameInFieldArray';\nimport isCheckBoxInput from './utils/isCheckBoxInput';\nimport isEmptyObject from './utils/isEmptyObject';\nimport isRadioInput from './utils/isRadioInput';\nimport isSelectInput from './utils/isSelectInput';\nimport isFileInput from './utils/isFileInput';\nimport onDomRemove from './utils/onDomRemove';\nimport isObject from './utils/isObject';\nimport { getPath } from './utils/getPath';\nimport isPrimitive from './utils/isPrimitive';\nimport isFunction from './utils/isFunction';\nimport isArray from './utils/isArray';\nimport isString from './utils/isString';\nimport isUndefined from './utils/isUndefined';\nimport get from './utils/get';\nimport set from './utils/set';\nimport unset from './utils/unset';\nimport isKey from './utils/isKey';\nimport modeChecker from './utils/validationModeChecker';\nimport isMultipleSelect from './utils/isMultipleSelect';\nimport filterOutFalsy from './utils/filterOutFalsy';\nimport isNullOrUndefined from './utils/isNullOrUndefined';\nimport isRadioOrCheckboxFunction from './utils/isRadioOrCheckbox';\nimport isHTMLElement from './utils/isHTMLElement';\nimport { EVENTS, UNDEFINED, VALIDATION_MODE } from './constants';\nimport {\n  UseFormMethods,\n  FieldValues,\n  UnpackNestedValue,\n  FieldName,\n  InternalFieldName,\n  FieldValue,\n  FieldErrors,\n  Field,\n  FieldRefs,\n  UseFormOptions,\n  ValidationRules,\n  SubmitHandler,\n  FieldElement,\n  FormStateProxy,\n  ReadFormState,\n  Ref,\n  HandleChange,\n  RadioOrCheckboxOption,\n  OmitResetState,\n  NestedValue,\n  SetValueConfig,\n  ErrorOption,\n  FormState,\n  SubmitErrorHandler,\n  FieldNamesMarkedBoolean,\n  LiteralToPrimitive,\n  DeepPartial,\n  InternalNameSet,\n  DefaultValues,\n  FieldError,\n} from './types';\n\nconst isWindowUndefined = typeof window === UNDEFINED;\nconst isWeb =\n  typeof document !== UNDEFINED &&\n  !isWindowUndefined &&\n  !isUndefined(window.HTMLElement);\nconst isProxyEnabled = isWeb ? 'Proxy' in window : typeof Proxy !== UNDEFINED;\n\nexport function useForm<\n  TFieldValues extends FieldValues = FieldValues,\n  TContext extends object = object\n>({\n  mode = VALIDATION_MODE.onSubmit,\n  reValidateMode = VALIDATION_MODE.onChange,\n  resolver,\n  context,\n  defaultValues = {} as UnpackNestedValue<DeepPartial<TFieldValues>>,\n  shouldFocusError = true,\n  shouldUnregister = true,\n  criteriaMode,\n}: UseFormOptions<TFieldValues, TContext> = {}): UseFormMethods<TFieldValues> {\n  const fieldsRef = React.useRef<FieldRefs<TFieldValues>>({});\n  const fieldArrayDefaultValuesRef = React.useRef<\n    Record<InternalFieldName<FieldValues>, unknown[]>\n  >({});\n  const watchFieldsRef = React.useRef<InternalNameSet<TFieldValues>>(new Set());\n  const useWatchFieldsRef = React.useRef<\n    Record<string, InternalNameSet<TFieldValues>>\n  >({});\n  const useWatchRenderFunctionsRef = React.useRef<Record<string, () => void>>(\n    {},\n  );\n  const fieldsWithValidationRef = React.useRef<\n    FieldNamesMarkedBoolean<TFieldValues>\n  >({});\n  const validFieldsRef = React.useRef<FieldNamesMarkedBoolean<TFieldValues>>(\n    {},\n  );\n  const defaultValuesRef = React.useRef<DefaultValues<TFieldValues>>(\n    defaultValues,\n  );\n  const defaultValuesAtRenderRef = React.useRef<\n    Partial<DefaultValues<TFieldValues>>\n  >({});\n  const isUnMount = React.useRef(false);\n  const isWatchAllRef = React.useRef(false);\n  const handleChangeRef = React.useRef<HandleChange>();\n  const shallowFieldsStateRef = React.useRef(\n    shouldUnregister ? {} : { ...defaultValues },\n  );\n  const resetFieldArrayFunctionRef = React.useRef<\n    Record<\n      InternalFieldName<FieldValues>,\n      (data?: UnpackNestedValue<DeepPartial<TFieldValues>>) => void\n    >\n  >({});\n  const contextRef = React.useRef(context);\n  const resolverRef = React.useRef(resolver);\n  const fieldArrayNamesRef = React.useRef<InternalNameSet<TFieldValues>>(\n    new Set(),\n  );\n  const modeRef = React.useRef(modeChecker(mode));\n  const { isOnSubmit, isOnTouch } = modeRef.current;\n  const isValidateAllFieldCriteria = criteriaMode === VALIDATION_MODE.all;\n  const [formState, setFormState] = React.useState<FormState<TFieldValues>>({\n    isDirty: false,\n    dirtyFields: {},\n    isSubmitted: false,\n    submitCount: 0,\n    touched: {},\n    isSubmitting: false,\n    isSubmitSuccessful: false,\n    isValid: !isOnSubmit,\n    errors: {},\n  });\n  const readFormStateRef = React.useRef<ReadFormState>({\n    isDirty: !isProxyEnabled,\n    dirtyFields: !isProxyEnabled,\n    touched: !isProxyEnabled || isOnTouch,\n    isSubmitting: !isProxyEnabled,\n    isValid: !isProxyEnabled,\n  });\n  const formStateRef = React.useRef(formState);\n  const observerRef = React.useRef<MutationObserver | undefined>();\n  const {\n    isOnBlur: isReValidateOnBlur,\n    isOnChange: isReValidateOnChange,\n  } = React.useRef(modeChecker(reValidateMode)).current;\n\n  contextRef.current = context;\n  resolverRef.current = resolver;\n  formStateRef.current = formState;\n\n  const updateFormState = React.useCallback(\n    (state: Partial<FormState<TFieldValues>> = {}) =>\n      !isUnMount.current &&\n      setFormState({\n        ...formStateRef.current,\n        ...state,\n      }),\n    [],\n  );\n\n  const shouldRenderBaseOnError = React.useCallback(\n    (\n      name: InternalFieldName<TFieldValues>,\n      error: FieldError | undefined,\n      shouldRender: boolean | null = false,\n      state: {\n        dirtyFields?: FieldNamesMarkedBoolean<TFieldValues>;\n        isDirty?: boolean;\n        touched?: FieldNamesMarkedBoolean<TFieldValues>;\n      } = {},\n      isValid?: boolean,\n    ): boolean | void => {\n      let shouldReRender =\n        shouldRender ||\n        isErrorStateChanged<TFieldValues>({\n          errors: formStateRef.current.errors,\n          error,\n          name,\n          validFields: validFieldsRef.current,\n          fieldsWithValidation: fieldsWithValidationRef.current,\n        });\n      const previousError = get(formStateRef.current.errors, name);\n\n      if (error) {\n        unset(validFieldsRef.current, name);\n        shouldReRender =\n          shouldReRender ||\n          !previousError ||\n          !deepEqual(previousError, error, true);\n        set(formStateRef.current.errors, name, error);\n      } else {\n        if (get(fieldsWithValidationRef.current, name) || resolverRef.current) {\n          set(validFieldsRef.current, name, true);\n          shouldReRender = shouldReRender || previousError;\n        }\n        unset(formStateRef.current.errors, name);\n      }\n\n      if (\n        (shouldReRender && !isNullOrUndefined(shouldRender)) ||\n        !isEmptyObject(state)\n      ) {\n        updateFormState({\n          ...state,\n          errors: formStateRef.current.errors,\n          ...(resolverRef.current ? { isValid: !!isValid } : {}),\n        });\n      }\n    },\n    [],\n  );\n\n  const setFieldValue = React.useCallback(\n    (\n      name: string,\n      rawValue:\n        | FieldValue<TFieldValues>\n        | UnpackNestedValue<DeepPartial<TFieldValues>>\n        | string[]\n        | undefined\n        | null\n        | boolean,\n    ) => {\n      const { ref, options } = fieldsRef.current[name] as Field;\n      const value =\n        isWeb && isHTMLElement(ref) && isNullOrUndefined(rawValue)\n          ? ''\n          : rawValue;\n\n      if (isRadioInput(ref) && options) {\n        options.forEach(\n          ({ ref: radioRef }: { ref: HTMLInputElement }) =>\n            (radioRef.checked = radioRef.value === value),\n        );\n      } else if (isFileInput(ref) && !isString(value)) {\n        ref.files = value as FileList;\n      } else if (isMultipleSelect(ref)) {\n        [...ref.options].forEach(\n          (selectRef) =>\n            (selectRef.selected = (value as string[]).includes(\n              selectRef.value,\n            )),\n        );\n      } else if (isCheckBoxInput(ref) && options) {\n        options.length > 1\n          ? options.forEach(\n              ({ ref: checkboxRef }) =>\n                (checkboxRef.checked = isArray(value)\n                  ? !!(value as []).find(\n                      (data: string) => data === checkboxRef.value,\n                    )\n                  : value === checkboxRef.value),\n            )\n          : (options[0].ref.checked = !!value);\n      } else {\n        ref.value = value;\n      }\n    },\n    [],\n  );\n\n  const isFormDirty = () =>\n    !deepEqual(\n      getValues(),\n      isEmptyObject(defaultValuesRef.current)\n        ? defaultValuesAtRenderRef.current\n        : defaultValuesRef.current,\n    ) || !isEmptyObject(formStateRef.current.dirtyFields);\n\n  const updateAndGetDirtyState = React.useCallback(\n    (\n      name: InternalFieldName<TFieldValues>,\n      shouldRender = true,\n    ): {\n      dirtyFields?: FieldNamesMarkedBoolean<TFieldValues>;\n      isDirty?: boolean;\n      touched?: FieldNamesMarkedBoolean<TFieldValues>;\n    } => {\n      if (\n        readFormStateRef.current.isDirty ||\n        readFormStateRef.current.dirtyFields\n      ) {\n        const isFieldDirty =\n          get(defaultValuesAtRenderRef.current, name) !==\n          getFieldValue(fieldsRef, name, shallowFieldsStateRef);\n        const isDirtyFieldExist = get(formStateRef.current.dirtyFields, name);\n        const previousIsDirty = formStateRef.current.isDirty;\n\n        isFieldDirty\n          ? set(formStateRef.current.dirtyFields, name, true)\n          : unset(formStateRef.current.dirtyFields, name);\n\n        const state = {\n          isDirty: isFormDirty(),\n          dirtyFields: formStateRef.current.dirtyFields,\n        };\n\n        const isChanged =\n          (readFormStateRef.current.isDirty &&\n            previousIsDirty !== state.isDirty) ||\n          (readFormStateRef.current.dirtyFields &&\n            isDirtyFieldExist !== get(formStateRef.current.dirtyFields, name));\n\n        if (isChanged && shouldRender) {\n          formStateRef.current = {\n            ...formStateRef.current,\n            ...state,\n          };\n          updateFormState({\n            ...state,\n          });\n        }\n\n        return isChanged ? state : {};\n      }\n\n      return {};\n    },\n    [],\n  );\n\n  const executeValidation = React.useCallback(\n    async (\n      name: InternalFieldName<TFieldValues>,\n      skipReRender?: boolean | null,\n    ): Promise<boolean> => {\n      if (fieldsRef.current[name]) {\n        const error = (\n          await validateField<TFieldValues>(\n            fieldsRef,\n            isValidateAllFieldCriteria,\n            fieldsRef.current[name] as Field,\n            shallowFieldsStateRef,\n          )\n        )[name];\n\n        shouldRenderBaseOnError(name, error, skipReRender);\n\n        return isUndefined(error);\n      }\n\n      return false;\n    },\n    [shouldRenderBaseOnError, isValidateAllFieldCriteria],\n  );\n\n  const executeSchemaOrResolverValidation = React.useCallback(\n    async (\n      names:\n        | InternalFieldName<TFieldValues>\n        | InternalFieldName<TFieldValues>[],\n    ) => {\n      const { errors } = await resolverRef.current!(\n        getValues(),\n        contextRef.current,\n        isValidateAllFieldCriteria,\n      );\n      const previousFormIsValid = formStateRef.current.isValid;\n\n      if (isArray(names)) {\n        const isInputsValid = names\n          .map((name) => {\n            const error = get(errors, name);\n\n            error\n              ? set(formStateRef.current.errors, name, error)\n              : unset(formStateRef.current.errors, name);\n\n            return !error;\n          })\n          .every(Boolean);\n\n        updateFormState({\n          isValid: isEmptyObject(errors),\n          errors: formStateRef.current.errors,\n        });\n\n        return isInputsValid;\n      } else {\n        const error = get(errors, names);\n\n        shouldRenderBaseOnError(\n          names,\n          error,\n          previousFormIsValid !== isEmptyObject(errors),\n          {},\n          isEmptyObject(errors),\n        );\n\n        return !error;\n      }\n    },\n    [shouldRenderBaseOnError, isValidateAllFieldCriteria],\n  );\n\n  const trigger = React.useCallback(\n    async (\n      name?: FieldName<TFieldValues> | FieldName<TFieldValues>[],\n    ): Promise<boolean> => {\n      const fields = name || Object.keys(fieldsRef.current);\n\n      if (resolverRef.current) {\n        return executeSchemaOrResolverValidation(fields);\n      }\n\n      if (isArray(fields)) {\n        const result = await Promise.all(\n          fields.map(async (data) => await executeValidation(data, null)),\n        );\n        updateFormState();\n        return result.every(Boolean);\n      }\n\n      return await executeValidation(fields, readFormStateRef.current.isValid);\n    },\n    [executeSchemaOrResolverValidation, executeValidation],\n  );\n\n  const setInternalValues = React.useCallback(\n    <T extends string, U extends object | unknown[]>(\n      name: T,\n      value: U,\n      { shouldDirty, shouldValidate }: SetValueConfig,\n    ) => {\n      const data = {};\n      set(data, name, value);\n\n      for (const fieldName of getPath(name, value)) {\n        if (fieldsRef.current[fieldName]) {\n          setFieldValue(fieldName, get(data, fieldName));\n          shouldDirty && updateAndGetDirtyState(fieldName);\n          shouldValidate && trigger(fieldName as FieldName<TFieldValues>);\n        }\n      }\n    },\n    [trigger, setFieldValue, updateAndGetDirtyState],\n  );\n\n  const setInternalValue = React.useCallback(\n    (\n      name: InternalFieldName<TFieldValues>,\n      value: FieldValue<TFieldValues> | null | undefined | boolean,\n      config: SetValueConfig = {},\n    ) => {\n      if (fieldsRef.current[name]) {\n        setFieldValue(name, value);\n        config.shouldDirty && updateAndGetDirtyState(name);\n      } else if (!isPrimitive(value)) {\n        setInternalValues(name, value, config);\n\n        if (fieldArrayNamesRef.current.has(name)) {\n          fieldArrayDefaultValuesRef.current[name] = value;\n          resetFieldArrayFunctionRef.current[name]({\n            [name]: value,\n          } as UnpackNestedValue<DeepPartial<TFieldValues>>);\n\n          if (\n            readFormStateRef.current.isDirty ||\n            readFormStateRef.current.dirtyFields\n          ) {\n            set(\n              formStateRef.current.dirtyFields,\n              name,\n              setFieldArrayDirtyFields(\n                value,\n                get(defaultValuesRef.current, name, []),\n                get(formStateRef.current.dirtyFields, name, []),\n              ),\n            );\n\n            updateFormState({\n              isDirty: !deepEqual(\n                { ...getValues(), [name]: value },\n                defaultValuesRef.current,\n              ),\n              dirtyFields: formStateRef.current.dirtyFields,\n            });\n          }\n        }\n      }\n\n      !shouldUnregister && set(shallowFieldsStateRef.current, name, value);\n    },\n    [updateAndGetDirtyState, setFieldValue, setInternalValues],\n  );\n\n  const isFieldWatched = (name: string) =>\n    isWatchAllRef.current ||\n    watchFieldsRef.current.has(name) ||\n    watchFieldsRef.current.has((name.match(/\\w+/) || [])[0]);\n\n  const renderWatchedInputs = (name: string, found = true): boolean => {\n    if (!isEmptyObject(useWatchFieldsRef.current)) {\n      for (const key in useWatchFieldsRef.current) {\n        if (\n          !name ||\n          !useWatchFieldsRef.current[key].size ||\n          useWatchFieldsRef.current[key].has(name) ||\n          useWatchFieldsRef.current[key].has(getFieldArrayParentName(name))\n        ) {\n          useWatchRenderFunctionsRef.current[key]();\n          found = false;\n        }\n      }\n    }\n\n    return found;\n  };\n\n  function setValue<\n    TFieldName extends string,\n    TFieldValue extends TFieldValues[TFieldName]\n  >(\n    name: TFieldName,\n    value: TFieldValue extends NestedValue<infer U>\n      ? U\n      : UnpackNestedValue<DeepPartial<LiteralToPrimitive<TFieldValue>>>,\n    config?: SetValueConfig,\n  ): void {\n    setInternalValue(name, value as TFieldValues[string], config);\n\n    isFieldWatched(name) && updateFormState();\n    renderWatchedInputs(name);\n    (config || {}).shouldValidate && trigger(name as any);\n  }\n\n  handleChangeRef.current = handleChangeRef.current\n    ? handleChangeRef.current\n    : async ({ type, target }: Event): Promise<void | boolean> => {\n        const name = (target as Ref)!.name;\n        const field = fieldsRef.current[name];\n        let error;\n        let isValid;\n\n        if (field) {\n          const isBlurEvent = type === EVENTS.BLUR;\n          const shouldSkipValidation = skipValidation({\n            isBlurEvent,\n            isReValidateOnChange,\n            isReValidateOnBlur,\n            isTouched: !!get(formStateRef.current.touched, name),\n            isSubmitted: formStateRef.current.isSubmitted,\n            ...modeRef.current,\n          });\n          let state = updateAndGetDirtyState(name, false);\n          let shouldRender = !isEmptyObject(state) || isFieldWatched(name);\n\n          if (\n            isBlurEvent &&\n            !get(formStateRef.current.touched, name) &&\n            readFormStateRef.current.touched\n          ) {\n            set(formStateRef.current.touched, name, true);\n            state = {\n              ...state,\n              touched: formStateRef.current.touched,\n            };\n          }\n\n          if (shouldSkipValidation) {\n            renderWatchedInputs(name);\n            return (\n              (!isEmptyObject(state) ||\n                (shouldRender && isEmptyObject(state))) &&\n              updateFormState(state)\n            );\n          }\n\n          if (resolverRef.current) {\n            const { errors } = await resolverRef.current(\n              getValues(),\n              contextRef.current,\n              isValidateAllFieldCriteria,\n            );\n            const previousFormIsValid = formStateRef.current.isValid;\n\n            error = get(errors, name);\n\n            isValid = isEmptyObject(errors);\n\n            if (previousFormIsValid !== isValid) {\n              shouldRender = true;\n            }\n          } else {\n            error = (\n              await validateField<TFieldValues>(\n                fieldsRef,\n                isValidateAllFieldCriteria,\n                field,\n                shallowFieldsStateRef,\n              )\n            )[name];\n          }\n\n          renderWatchedInputs(name);\n          shouldRenderBaseOnError(name, error, shouldRender, state, isValid);\n        }\n      };\n\n  function setFieldArrayDefaultValues<T extends FieldValues>(data: T): T {\n    if (!shouldUnregister) {\n      for (const value of fieldArrayNamesRef.current) {\n        if (isKey(value) && !data[value]) {\n          data = {\n            ...data,\n            [value]: [],\n          };\n        }\n      }\n    }\n    return data;\n  }\n\n  function getValues(): UnpackNestedValue<TFieldValues>;\n  function getValues<TFieldName extends string, TFieldValue extends unknown>(\n    name: TFieldName,\n  ): TFieldName extends keyof TFieldValues\n    ? UnpackNestedValue<TFieldValues>[TFieldName]\n    : TFieldValue;\n  function getValues<TFieldName extends keyof TFieldValues>(\n    names: TFieldName[],\n  ): UnpackNestedValue<Pick<TFieldValues, TFieldName>>;\n  function getValues(payload?: string | string[]): unknown {\n    if (isString(payload)) {\n      return getFieldValue(fieldsRef, payload, shallowFieldsStateRef);\n    }\n\n    if (isArray(payload)) {\n      const data = {};\n\n      for (const name of payload) {\n        set(data, name, getFieldValue(fieldsRef, name, shallowFieldsStateRef));\n      }\n\n      return data;\n    }\n\n    return setFieldArrayDefaultValues(\n      getFieldsValues(fieldsRef, shallowFieldsStateRef),\n    );\n  }\n\n  const validateResolver = React.useCallback(\n    async (values = {}) => {\n      const { errors } = await resolverRef.current!(\n        {\n          ...defaultValuesRef.current,\n          ...getValues(),\n          ...values,\n        },\n        contextRef.current,\n        isValidateAllFieldCriteria,\n      );\n      const isValid = isEmptyObject(errors);\n\n      formStateRef.current.isValid !== isValid &&\n        updateFormState({\n          isValid,\n        });\n    },\n    [isValidateAllFieldCriteria],\n  );\n\n  const removeFieldEventListener = React.useCallback(\n    (field: Field, forceDelete?: boolean) =>\n      findRemovedFieldAndRemoveListener(\n        fieldsRef,\n        handleChangeRef.current!,\n        field,\n        shallowFieldsStateRef,\n        shouldUnregister,\n        forceDelete,\n      ),\n    [shouldUnregister],\n  );\n\n  const removeFieldEventListenerAndRef = React.useCallback(\n    (field: Field | undefined, forceDelete?: boolean) => {\n      if (field) {\n        removeFieldEventListener(field, forceDelete);\n\n        if (shouldUnregister && !filterOutFalsy(field.options || []).length) {\n          unset(defaultValuesAtRenderRef.current, field.ref.name);\n          unset(validFieldsRef.current, field.ref.name);\n          unset(fieldsWithValidationRef.current, field.ref.name);\n          unset(formStateRef.current.errors, field.ref.name);\n          set(formStateRef.current.dirtyFields, field.ref.name, true);\n\n          updateFormState({\n            errors: formStateRef.current.errors,\n            isDirty: isFormDirty(),\n            dirtyFields: formStateRef.current.dirtyFields,\n          });\n\n          resolverRef.current && validateResolver();\n        }\n      }\n    },\n    [validateResolver, removeFieldEventListener],\n  );\n\n  function clearErrors(\n    name?: FieldName<TFieldValues> | FieldName<TFieldValues>[],\n  ): void {\n    name &&\n      (isArray(name) ? name : [name]).forEach((inputName) =>\n        fieldsRef.current[inputName]\n          ? isKey(inputName)\n            ? delete formStateRef.current.errors[inputName]\n            : set(formStateRef.current.errors, inputName, undefined)\n          : unset(formStateRef.current.errors, inputName),\n      );\n\n    updateFormState({\n      errors: name ? formStateRef.current.errors : {},\n    });\n  }\n\n  function setError(name: FieldName<TFieldValues>, error: ErrorOption): void {\n    const ref = (fieldsRef.current[name] || {})!.ref;\n\n    set(formStateRef.current.errors, name, {\n      ...error,\n      ref,\n    });\n\n    updateFormState({\n      isValid: false,\n      errors: formStateRef.current.errors,\n    });\n\n    error.shouldFocus && ref && ref.focus && ref.focus();\n  }\n\n  const watchInternal = React.useCallback(\n    (\n      fieldNames?: string | string[],\n      defaultValue?: unknown,\n      watchId?: string,\n    ) => {\n      const watchFields = watchId\n        ? useWatchFieldsRef.current[watchId]\n        : watchFieldsRef.current;\n      const combinedDefaultValues = isUndefined(defaultValue)\n        ? defaultValuesRef.current\n        : defaultValue;\n      const fieldValues = getFieldsValues<TFieldValues>(\n        fieldsRef,\n        shallowFieldsStateRef,\n        false,\n        fieldNames,\n      );\n\n      if (isString(fieldNames)) {\n        return assignWatchFields<TFieldValues>(\n          fieldValues,\n          fieldNames,\n          watchFields,\n          isUndefined(defaultValue)\n            ? get(combinedDefaultValues, fieldNames)\n            : (defaultValue as UnpackNestedValue<DeepPartial<TFieldValues>>),\n          true,\n        );\n      }\n\n      if (isArray(fieldNames)) {\n        return fieldNames.reduce(\n          (previous, name) => ({\n            ...previous,\n            [name]: assignWatchFields<TFieldValues>(\n              fieldValues,\n              name,\n              watchFields,\n              combinedDefaultValues as UnpackNestedValue<\n                DeepPartial<TFieldValues>\n              >,\n            ),\n          }),\n          {},\n        );\n      }\n\n      isWatchAllRef.current = isUndefined(watchId);\n\n      return transformToNestObject(\n        (!isEmptyObject(fieldValues) && fieldValues) ||\n          (combinedDefaultValues as FieldValues),\n      );\n    },\n    [],\n  );\n\n  function watch(): UnpackNestedValue<TFieldValues>;\n  function watch<\n    TFieldName extends string,\n    TFieldValue extends TFieldValues[TFieldName]\n  >(\n    name: TFieldName,\n    defaultValue?: UnpackNestedValue<LiteralToPrimitive<TFieldValue>>,\n  ): UnpackNestedValue<LiteralToPrimitive<TFieldValue>>;\n  function watch<TFieldName extends keyof TFieldValues>(\n    names: TFieldName[],\n    defaultValues?: UnpackNestedValue<\n      DeepPartial<Pick<TFieldValues, TFieldName>>\n    >,\n  ): UnpackNestedValue<Pick<TFieldValues, TFieldName>>;\n  function watch(\n    names: string[],\n    defaultValues?: UnpackNestedValue<DeepPartial<TFieldValues>>,\n  ): UnpackNestedValue<DeepPartial<TFieldValues>>;\n  function watch(\n    fieldNames?: string | string[],\n    defaultValue?: unknown,\n  ): unknown {\n    return watchInternal(fieldNames, defaultValue);\n  }\n\n  function unregister(\n    name: FieldName<TFieldValues> | FieldName<TFieldValues>[],\n  ): void {\n    for (const fieldName of isArray(name) ? name : [name]) {\n      removeFieldEventListenerAndRef(fieldsRef.current[fieldName], true);\n    }\n  }\n\n  function registerFieldRef<TFieldElement extends FieldElement<TFieldValues>>(\n    ref: TFieldElement & Ref,\n    validateOptions: ValidationRules | null = {},\n  ): ((name: InternalFieldName<TFieldValues>) => void) | void {\n    if (process.env.NODE_ENV !== 'production') {\n      if (!ref.name) {\n        return console.warn(\n          '📋 Field is missing `name` attribute',\n          ref,\n          `https://react-hook-form.com/api#useForm`,\n        );\n      }\n\n      if (\n        fieldArrayNamesRef.current.has(ref.name.split(/\\[\\d+\\]$/)[0]) &&\n        !RegExp(\n          `^${ref.name.split(/\\[\\d+\\]$/)[0]}[\\\\d+].\\\\w+`\n            .replace(/\\[/g, '\\\\[')\n            .replace(/\\]/g, '\\\\]'),\n        ).test(ref.name)\n      ) {\n        return console.warn(\n          '📋 `name` prop should be in object shape: name=\"test[index].name\"',\n          ref,\n          'https://react-hook-form.com/api#useFieldArray',\n        );\n      }\n    }\n\n    const { name, type, value } = ref;\n    const fieldRefAndValidationOptions = {\n      ref,\n      ...validateOptions,\n    };\n    const fields = fieldsRef.current;\n    const isRadioOrCheckbox = isRadioOrCheckboxFunction(ref);\n    const isFieldArray = isNameInFieldArray(fieldArrayNamesRef.current, name);\n    const compareRef = (currentRef: Ref) =>\n      isWeb && (!isHTMLElement(ref) || currentRef === ref);\n    let field = fields[name] as Field;\n    let isEmptyDefaultValue = true;\n    let defaultValue;\n\n    if (\n      field &&\n      (isRadioOrCheckbox\n        ? isArray(field.options) &&\n          filterOutFalsy(field.options).find((option) => {\n            return value === option.ref.value && compareRef(option.ref);\n          })\n        : compareRef(field.ref))\n    ) {\n      fields[name] = {\n        ...field,\n        ...validateOptions,\n      };\n      return;\n    }\n\n    if (type) {\n      field = isRadioOrCheckbox\n        ? {\n            options: [\n              ...filterOutFalsy((field && field.options) || []),\n              {\n                ref,\n              } as RadioOrCheckboxOption,\n            ],\n            ref: { type, name },\n            ...validateOptions,\n          }\n        : {\n            ...fieldRefAndValidationOptions,\n          };\n    } else {\n      field = fieldRefAndValidationOptions;\n    }\n\n    fields[name] = field;\n\n    const isEmptyUnmountFields = isUndefined(\n      get(shallowFieldsStateRef.current, name),\n    );\n\n    if (!isEmptyObject(defaultValuesRef.current) || !isEmptyUnmountFields) {\n      defaultValue = get(\n        isEmptyUnmountFields\n          ? defaultValuesRef.current\n          : shallowFieldsStateRef.current,\n        name,\n      );\n      isEmptyDefaultValue = isUndefined(defaultValue);\n\n      if (!isEmptyDefaultValue && !isFieldArray) {\n        setFieldValue(name, defaultValue);\n      }\n    }\n\n    if (!isEmptyObject(validateOptions)) {\n      set(fieldsWithValidationRef.current, name, true);\n\n      if (!isOnSubmit && readFormStateRef.current.isValid) {\n        validateField(\n          fieldsRef,\n          isValidateAllFieldCriteria,\n          field,\n          shallowFieldsStateRef,\n        ).then((error: FieldErrors) => {\n          const previousFormIsValid = formStateRef.current.isValid;\n\n          isEmptyObject(error)\n            ? set(validFieldsRef.current, name, true)\n            : unset(validFieldsRef.current, name);\n\n          if (previousFormIsValid !== isEmptyObject(error)) {\n            updateFormState();\n          }\n        });\n      }\n    }\n\n    if (\n      !defaultValuesAtRenderRef.current[name] &&\n      !(isFieldArray && isEmptyDefaultValue)\n    ) {\n      const fieldValue = getFieldValue(fieldsRef, name, shallowFieldsStateRef);\n      set(\n        defaultValuesAtRenderRef.current,\n        name,\n        isEmptyDefaultValue\n          ? isObject(fieldValue)\n            ? { ...fieldValue }\n            : fieldValue\n          : defaultValue,\n      );\n      !isFieldArray && unset(formStateRef.current.dirtyFields, name);\n    }\n\n    if (type) {\n      attachEventListeners(\n        isRadioOrCheckbox && field.options\n          ? field.options[field.options.length - 1]\n          : field,\n        isRadioOrCheckbox || isSelectInput(ref),\n        handleChangeRef.current,\n      );\n    }\n  }\n\n  function register<TFieldElement extends FieldElement<TFieldValues>>(\n    rules?: ValidationRules,\n  ): (ref: (TFieldElement & Ref) | null) => void;\n  function register(\n    name: FieldName<TFieldValues>,\n    rules?: ValidationRules,\n  ): void;\n  function register<TFieldElement extends FieldElement<TFieldValues>>(\n    ref: (TFieldElement & Ref) | null,\n    rules?: ValidationRules,\n  ): void;\n  function register<TFieldElement extends FieldElement<TFieldValues>>(\n    refOrValidationOptions?:\n      | FieldName<TFieldValues>\n      | ValidationRules\n      | (TFieldElement & Ref)\n      | null,\n    rules?: ValidationRules,\n  ): ((ref: (TFieldElement & Ref) | null) => void) | void {\n    if (!isWindowUndefined) {\n      if (isString(refOrValidationOptions)) {\n        registerFieldRef({ name: refOrValidationOptions }, rules);\n      } else if (\n        isObject(refOrValidationOptions) &&\n        'name' in refOrValidationOptions\n      ) {\n        registerFieldRef(refOrValidationOptions, rules);\n      } else {\n        return (ref: (TFieldElement & Ref) | null) =>\n          ref && registerFieldRef(ref, refOrValidationOptions);\n      }\n    }\n  }\n\n  const handleSubmit = React.useCallback(\n    <TSubmitFieldValues extends FieldValues = TFieldValues>(\n      onValid: SubmitHandler<TSubmitFieldValues>,\n      onInvalid?: SubmitErrorHandler<TFieldValues>,\n    ) => async (e?: React.BaseSyntheticEvent): Promise<void> => {\n      if (e && e.preventDefault) {\n        e.preventDefault();\n        e.persist();\n      }\n      let fieldErrors: FieldErrors<TFieldValues> = {};\n      let fieldValues = setFieldArrayDefaultValues(\n        getFieldsValues(fieldsRef, shallowFieldsStateRef, true),\n      );\n\n      if (readFormStateRef.current.isSubmitting) {\n        updateFormState({\n          isSubmitting: true,\n        });\n      }\n\n      try {\n        if (resolverRef.current) {\n          const { errors, values } = await resolverRef.current(\n            fieldValues,\n            contextRef.current,\n            isValidateAllFieldCriteria,\n          );\n          formStateRef.current.errors = errors;\n          fieldErrors = errors;\n          fieldValues = values;\n        } else {\n          for (const field of Object.values(fieldsRef.current)) {\n            if (field) {\n              const {\n                ref: { name },\n              } = field;\n\n              const fieldError = await validateField(\n                fieldsRef,\n                isValidateAllFieldCriteria,\n                field,\n                shallowFieldsStateRef,\n              );\n\n              if (fieldError[name]) {\n                set(fieldErrors, name, fieldError[name]);\n                unset(validFieldsRef.current, name);\n              } else if (get(fieldsWithValidationRef.current, name)) {\n                unset(formStateRef.current.errors, name);\n                set(validFieldsRef.current, name, true);\n              }\n            }\n          }\n        }\n\n        if (\n          isEmptyObject(fieldErrors) &&\n          Object.keys(formStateRef.current.errors).every(\n            (name) => name in fieldsRef.current,\n          )\n        ) {\n          updateFormState({\n            errors: {},\n            isSubmitting: true,\n          });\n          await onValid(fieldValues, e);\n        } else {\n          formStateRef.current.errors = {\n            ...formStateRef.current.errors,\n            ...fieldErrors,\n          };\n          onInvalid && (await onInvalid(fieldErrors, e));\n          shouldFocusError && focusOnErrorField(fieldsRef.current, fieldErrors);\n        }\n      } finally {\n        updateFormState({\n          isSubmitted: true,\n          isSubmitting: false,\n          isSubmitSuccessful: isEmptyObject(formStateRef.current.errors),\n          errors: formStateRef.current.errors,\n          submitCount: formStateRef.current.submitCount + 1,\n        });\n      }\n    },\n    [shouldFocusError, isValidateAllFieldCriteria],\n  );\n\n  const resetRefs = ({\n    errors,\n    isDirty,\n    isSubmitted,\n    touched,\n    isValid,\n    submitCount,\n    dirtyFields,\n  }: OmitResetState) => {\n    if (!isValid) {\n      validFieldsRef.current = {};\n      fieldsWithValidationRef.current = {};\n    }\n\n    defaultValuesAtRenderRef.current = {};\n    fieldArrayDefaultValuesRef.current = {};\n    watchFieldsRef.current = new Set();\n    isWatchAllRef.current = false;\n\n    updateFormState({\n      submitCount: submitCount ? formStateRef.current.submitCount : 0,\n      isDirty: isDirty ? formStateRef.current.isDirty : false,\n      isSubmitted: isSubmitted ? formStateRef.current.isSubmitted : false,\n      isValid: isValid ? formStateRef.current.isValid : false,\n      dirtyFields: dirtyFields ? formStateRef.current.dirtyFields : {},\n      touched: touched ? formStateRef.current.touched : {},\n      errors: errors ? formStateRef.current.errors : {},\n      isSubmitting: false,\n      isSubmitSuccessful: false,\n    });\n  };\n\n  const reset = (\n    values?: UnpackNestedValue<DeepPartial<TFieldValues>>,\n    omitResetState: OmitResetState = {},\n  ): void => {\n    if (isWeb) {\n      for (const field of Object.values(fieldsRef.current)) {\n        if (field) {\n          const { ref, options } = field;\n          const inputRef =\n            isRadioOrCheckboxFunction(ref) && isArray(options)\n              ? options[0].ref\n              : ref;\n\n          if (isHTMLElement(inputRef)) {\n            try {\n              inputRef.closest('form')!.reset();\n              break;\n            } catch {}\n          }\n        }\n      }\n    }\n\n    fieldsRef.current = {};\n\n    defaultValuesRef.current = { ...(values || defaultValuesRef.current) };\n\n    if (values) {\n      renderWatchedInputs('');\n    }\n\n    shallowFieldsStateRef.current = shouldUnregister ? {} : { ...values } || {};\n\n    Object.values(resetFieldArrayFunctionRef.current).forEach(\n      (resetFieldArray) => isFunction(resetFieldArray) && resetFieldArray(),\n    );\n\n    resetRefs(omitResetState);\n  };\n\n  observerRef.current =\n    observerRef.current || !isWeb\n      ? observerRef.current\n      : onDomRemove(fieldsRef, removeFieldEventListenerAndRef);\n\n  React.useEffect(() => {\n    isUnMount.current = false;\n    resolver && readFormStateRef.current.isValid && validateResolver();\n\n    return () => {\n      isUnMount.current = true;\n      observerRef.current && observerRef.current.disconnect();\n      shallowFieldsStateRef.current = {};\n\n      if (process.env.NODE_ENV !== 'production') {\n        return;\n      }\n\n      fieldsRef.current &&\n        Object.values(fieldsRef.current).forEach((field) =>\n          removeFieldEventListenerAndRef(field, true),\n        );\n    };\n  }, [removeFieldEventListenerAndRef]);\n\n  if (!resolver && readFormStateRef.current.isValid) {\n    formState.isValid =\n      deepEqual(validFieldsRef.current, fieldsWithValidationRef.current) &&\n      isEmptyObject(formStateRef.current.errors);\n  }\n\n  const commonProps = {\n    trigger,\n    setValue: React.useCallback(setValue, [setInternalValue, trigger]),\n    getValues: React.useCallback(getValues, []),\n    register: React.useCallback(register, [defaultValuesRef.current]),\n    unregister: React.useCallback(unregister, []),\n  };\n\n  const control = {\n    renderWatchedInputs,\n    shouldUnregister,\n    removeFieldEventListener,\n    watchInternal,\n    mode: modeRef.current,\n    reValidateMode: {\n      isReValidateOnBlur,\n      isReValidateOnChange,\n    },\n    fieldsRef,\n    isWatchAllRef,\n    watchFieldsRef,\n    resetFieldArrayFunctionRef,\n    useWatchFieldsRef,\n    useWatchRenderFunctionsRef,\n    fieldArrayDefaultValuesRef,\n    validFieldsRef,\n    fieldsWithValidationRef,\n    fieldArrayNamesRef,\n    readFormStateRef,\n    formStateRef,\n    defaultValuesRef,\n    shallowFieldsStateRef,\n    updateFormState,\n    validateResolver: resolver ? validateResolver : undefined,\n    ...commonProps,\n  };\n\n  return {\n    watch,\n    control,\n    formState: isProxyEnabled\n      ? new Proxy(formState, {\n          get: (obj, prop: keyof FormStateProxy) => {\n            if (process.env.NODE_ENV !== 'production') {\n              if (prop === 'isValid' && isOnSubmit) {\n                console.warn(\n                  '📋 `formState.isValid` is applicable with `onTouched`, `onChange` or `onBlur` mode. https://react-hook-form.com/api#formState',\n                );\n              }\n            }\n\n            if (prop in obj) {\n              readFormStateRef.current[prop] = true;\n              return obj[prop];\n            }\n\n            return undefined;\n          },\n        })\n      : formState,\n    handleSubmit,\n    reset: React.useCallback(reset, []),\n    clearErrors: React.useCallback(clearErrors, []),\n    setError: React.useCallback(setError, []),\n    errors: formState.errors,\n    ...commonProps,\n  };\n}\n","import * as React from 'react';\nimport { UseFormMethods, FieldValues, FormProviderProps } from './types';\n\nconst FormContext = React.createContext<UseFormMethods | null>(null);\n\nFormContext.displayName = 'RHFContext';\n\nexport const useFormContext = <\n  TFieldValues extends FieldValues\n>(): UseFormMethods<TFieldValues> =>\n  React.useContext(FormContext) as UseFormMethods<TFieldValues>;\n\nexport const FormProvider = <TFieldValues extends FieldValues>({\n  children,\n  ...props\n}: FormProviderProps<TFieldValues>) => (\n  <FormContext.Provider value={{ ...props } as UseFormMethods}>\n    {children}\n  </FormContext.Provider>\n);\n","import * as React from \"react\"\nimport { UseFormMethods } from \"react-hook-form\"\n\nexport const FormContext = React.createContext<UseFormMethods<Record<string, unknown>>>(\n  {} as UseFormMethods<Record<string, unknown>>\n)\n","import * as React from \"react\"\n\nexport function isReactFragment(variableToInspect) {\n  if (variableToInspect.type) {\n    return variableToInspect.type === React.Fragment\n  }\n  return variableToInspect === React.Fragment\n}\n","export const isEmpty = (obj) =>\n  obj === undefined || (Object.keys(obj).length === 0 && obj.constructor === Object)\n","import { styled } from \"styletron-react\"\nimport { isEmpty } from \"../utils/is-empty\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const FormWrap = styled(\"form\", {})\n\nexport const FormFooter = styled(\"div\", ({ $theme, $errors }: Props<{ $errors }>) => {\n  return {\n    marginTop: $theme.sizing.scale1200,\n    ...getFooterErrorStyles($errors),\n  }\n})\n\nfunction getFooterErrorStyles($errors) {\n  if (!isEmpty($errors))\n    return {\n      filter: \"grayscale(1)\",\n      pointerEvents: \"none\",\n    }\n  else return Object.freeze({})\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { useForm } from \"react-hook-form\"\nimport { FormContext } from \"../helpers/form-provider\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport * as System from \"../lighthouse\"\nimport { isReactFragment } from \"../utils/is-fragment\"\nimport { FormFooter, FormWrap } from \"./styled-components\"\nimport { FormPropsT } from \"./types\"\n\nexport const Form: React.FC<FormPropsT> = ({\n  rowGap,\n  formBody,\n  formFooter,\n  onSubmit = (values) => console.log(\"values from default onSubmit\", values),\n  overrides = {},\n  ...props\n}) => {\n  const theme = useContext(ThemeContext)\n  const formProps = useForm({\n    mode: \"onBlur\",\n  })\n  const sharedProps = { $theme: theme, $errors: formProps.errors }\n  const body =\n    React.isValidElement(formBody) && isReactFragment(formBody) ? formBody.props.children : formBody\n\n  return (\n    <FormContext.Provider value={formProps}>\n      <FormWrap\n        onSubmit={formProps.handleSubmit((values, event) =>\n          onSubmit({ ...values, reset: formProps.reset }, event)\n        )}\n        $style={overrides.FormWrap}\n        {...props}\n      >\n        {/* FormBody */}\n        <System.FlexBox flexDirection=\"column\" rowGap={rowGap}>\n          {React.Children.map(body, (child, id) => (\n            <System.FlexItem key={id}>{child}</System.FlexItem>\n          ))}\n        </System.FlexBox>\n        {/* FormFooter */}\n        <FormFooter $style={overrides.FormFooter} {...sharedProps}>\n          {formFooter}\n        </FormFooter>\n      </FormWrap>\n    </FormContext.Provider>\n  )\n}\n\nForm.defaultProps = {\n  rowGap: \"scale900\",\n  onSubmit: (values) => console.log(\"values from default onSubmit\", values),\n}\n","/**\n * The Form component is used to data submission from user inputs. Wrapping input components with this component, form validations are available by simply adding required or pattern props.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   return (\n *     <System.Form\n *       onSubmit={values => console.log(\"values\", values)}\n *       formBody={\n *       <>\n *         <System.Input name=\"firstname\" label=\"First Name\" placeholder=\"Your Name\" />\n *         <System.Input name=\"email\" label=\"E-MAIL\" pattern=\"/^\\S+@\\S+$/\" placeholder=\"Your Email\" />\n *       </>\n *       }\n *       formFooter={\n *       <>\n *         <System.Button type=\"button\" kind=\"secondary\">\n *         Cancel\n *         </System.Button>\n *         <System.Spacing width=\"scale400\" display=\"inline-block\" />\n *         <System.Button type=\"submit\">Submit</System.Button>\n *       </>\n *       }\n *     />\n *   )\n * }\n * ```\n * @param formBody - React.ReactNode\n * @param formFooter - React.ReactNode\n * @param onSubmit - SubmitHandler<Record<string, any>>\n * @param overrides - \\{ FormWrap?: StyletronReact.StyleObject }\n */\nexport const Form: React.FC<FormPropsT> = FormComp\nexport * from \"./types\"\n\nimport { Form as FormComp } from \"./form\"\nimport { FormPropsT } from \"./types\"\n","import { motion } from \"framer-motion\"\nimport { FieldError } from \"react-hook-form\"\nimport { styled } from \"styletron-react\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const LableWrap = styled(\"div\", {\n  display: \"flex\",\n  flexDirection: \"row\",\n  justifyContent: \"space-between\",\n})\n\nexport const LabelText = styled(\n  \"div\",\n  ({ $theme, $error }: Props<{ $error: FieldError | undefined }>) => {\n    return {\n      color: $error ? $theme.colors.negative : $theme.colors.contentSecondary,\n      ...$theme.typography.ParagraphSmall,\n    }\n  }\n)\n\nexport const Caption = styled(\n  \"div\",\n  ({ $theme, $error }: Props<{ $error: FieldError | undefined }>) => {\n    return {\n      color: $error ? $theme.colors.negative : $theme.colors.contentSecondary,\n      ...$theme.typography.ParagraphSmall,\n    }\n  }\n)\n\nexport const BaseInput = styled(\"input\", ({ $theme }: Props) => {\n  return {\n    // remove input styles\n    appearance: \"none\",\n    border: \"none\",\n    borderRadius: \"unset\",\n    margin: \"unset\",\n    outline: \"unset\",\n    boxSizing: \"border-box\",\n    // start new styles\n    width: \"100%\",\n    padding: `${$theme.sizing.scale600} ${$theme.sizing.scale700}`,\n    display: \"inline-block\",\n    verticalAlign: \"middle\",\n    boxShadow: `inset 0px 0px 0px 1px ${$theme.colors.backgroundTertiary}`, // inside border\n    background: $theme.colors.backgroundSecondary,\n    color: $theme.colors.contentPrimary,\n    \"::placeholder\": {\n      color: $theme.colors.contentSecondary,\n    },\n    ...$theme.typography.ParagraphMedium,\n    \":focus\": {\n      outline: \"none\",\n    },\n  }\n})\n\nexport const InputWrapper = styled(\n  \"div\",\n  ({ $theme, $haveMargin }: Props<{ $haveMargin: string | undefined }>) => {\n    return {\n      position: \"relative\",\n      marginTop: $haveMargin ? $theme.sizing.scale600 : \"0px\",\n      overflow: \"hidden\",\n    }\n  }\n)\n\nexport const Wrap = styled(\"div\", {})\n\nexport const FocusBar = styled(\n  motion.div,\n  ({ $theme, $error }: Props<{ $error: FieldError | undefined }>) => {\n    return {\n      position: \"absolute\",\n      height: \"100%\",\n      width: \"5px\",\n      background: $error ? $theme.colors.negative : $theme.colors.primary,\n    }\n  }\n)\n\nexport const StyledInput = styled(\"input\", {\n  display: \"none\",\n})\n","import * as React from \"react\"\nimport { useContext, useState } from \"react\"\nimport { FormContext } from \"../helpers/form-provider\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { isEmpty } from \"../utils/is-empty\"\nimport {\n  BaseInput,\n  Caption,\n  FocusBar,\n  InputWrapper,\n  LabelText,\n  LableWrap,\n  Wrap,\n} from \"./styled-components\"\nimport { InputPropsT } from \"./types\"\n\nexport const Input: React.FC<InputPropsT> = ({\n  label,\n  caption,\n  placeholder,\n  defaultValue,\n  name = \"\",\n  required,\n  pattern = \"\",\n  type = \"\",\n  onChange,\n  onFocus,\n  onBlur,\n  overrides = {},\n}) => {\n  const theme = useContext(ThemeContext)\n  const ctx = useContext(FormContext) // States from Form\n  let error, ref // get props from form-context\n  if (!isEmpty(ctx)) {\n    error = ctx.errors[name]\n    ref = ctx.register({\n      required: required ? \"required error\" : false,\n      pattern: {\n        value: eval(pattern),\n        message: \"pattern error\",\n      },\n    })\n  }\n  const [focus, setFocus] = useState(false)\n  const sharedProps = { $theme: theme, $error: error }\n  const motionProps = {\n    variants: {\n      active: {\n        x: 0,\n      },\n      normal: {\n        x: -10,\n      },\n    },\n    initial: \"normal\",\n    animate: focus ? \"active\" : \"normal\",\n    transition: {\n      duration: theme.animation.timing200,\n      ease: theme.animation.easeInCurve,\n    },\n  }\n  const captionText = error ? error.message : caption\n\n  return (\n    <Wrap onFocus={() => setFocus(true)} onBlur={() => setFocus(false)} $style={overrides.Wrap}>\n      <LableWrap>\n        {label && (\n          <LabelText $style={overrides.LabelText} {...sharedProps}>\n            {label}\n          </LabelText>\n        )}\n        {captionText && (\n          <Caption $style={overrides.Caption} {...sharedProps}>\n            {captionText}\n          </Caption>\n        )}\n      </LableWrap>\n      <InputWrapper $haveMargin={label || captionText} {...sharedProps}>\n        <FocusBar $style={overrides.FocusBar} {...sharedProps} {...motionProps} />\n        <BaseInput\n          name={name}\n          ref={ref}\n          placeholder={placeholder}\n          defaultValue={defaultValue}\n          onChange={onChange}\n          onFocus={onFocus}\n          onBlur={onBlur}\n          $style={overrides.BaseInput}\n          type={type}\n          {...sharedProps}\n        />\n      </InputWrapper>\n    </Wrap>\n  )\n}\n\nexport default Input\n\nInput.defaultProps = {\n  name: \"my-input\",\n  label: \"label\",\n  caption: \"\",\n  placeholder: \"placeholder\",\n  required: true,\n}\n","/**\n * The Input component is used to get user input.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const [value, setValue] = React.useState(\"\")\n *\n *   return (\n *      <System.Input onChange={e => setValue(e.target.value)} caption=\"caption\" />\n *   )\n * }\n * ```\n * @param label - string\n * @param caption - string\n * @param placeholder - string\n * @param defaultValue - string\n * @param name - string\n * @param required - boolean\n * @param pattern - string\n * @param onChange - (event: React.FocusEvent<HTMLInputElement>) => void\n * @param onBlur - (event: React.FocusEvent<HTMLInputElement>) => void\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject; LabelText?: StyletronReact.StyleObject; Caption?: StyletronReact.StyleObject; FocusBar?: StyletronReact.StyleObject; BaseInput?: StyletronReact.StyleObject }\n */\nexport const Input: React.FC<InputPropsT> = InputComp\nexport * from \"./types\"\n\nimport { Input as InputComp } from \"./input\"\nimport { InputPropsT } from \"./types\"\n","import { styled } from \"styletron-react\"\nimport { motion } from \"framer-motion\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\nimport { FieldError } from \"react-hook-form\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const Wrap = styled(\"label\", {\n  display: \"flex\",\n  alignItems: \"center\",\n})\n\nexport const RadioContainer = styled(\"div\", {})\n\nexport const HiddenRadio = styled(\"input\", {\n  border: \"0\",\n  clip: \"rect(0 0 0 0)\",\n  clippath: \"inset(50%)\",\n  height: \"1px\",\n  margin: \"-1px\",\n  overflow: \"hidden\",\n  padding: \"0\",\n  position: \"absolute\",\n  whiteSpace: \"nowrap\",\n  width: \"1px\",\n})\n\nexport const StyledRadio = styled(\n  \"div\",\n  ({ $theme, $error }: Props<{ $error: FieldError | undefined }>) => {\n    return {\n      width: $theme.sizing.scale600,\n      height: $theme.sizing.scale600,\n      background: $error ? $theme.colors.negative100 : $theme.colors.backgroundSecondary,\n      overflow: \"hidden\",\n      borderRadius: \"100%\",\n    }\n  }\n)\n\nexport const Circle = styled(motion.div, ({ $theme }: Props) => {\n  return {\n    width: $theme.sizing.scale600,\n    height: $theme.sizing.scale600,\n    background: $theme.colors.primary,\n    borderRadius: \"100%\",\n  }\n})\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { FormContext } from \"../helpers/form-provider\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport * as System from \"../lighthouse\"\nimport { isEmpty } from \"../utils/is-empty\"\nimport { Circle, HiddenRadio, RadioContainer, StyledRadio, Wrap } from \"./styled-components\"\nimport { RadioPropsT } from \"./types\"\n\nexport const Radio: React.FC<RadioPropsT> = ({\n  label,\n  checked,\n  value,\n  name = \"\",\n  required,\n  onChange,\n  overrides = {},\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n  const ctx = useContext(FormContext) // States from Form\n  let error, ctxValue, ref // get props from form-context\n  if (!isEmpty(ctx)) {\n    error = ctx.errors[name]\n    ctxValue = ctx.watch(name)\n    ref = ctx.register({\n      required: required ? \"required error\" : false,\n    })\n  }\n  const isChecked = checked || ctxValue === value // Controlled Input Value or form context Value\n  const defaultTransition = {\n    ease: theme.animation.easeInCurve,\n    duration: theme.animation.timing200,\n  }\n  const motionProps = {\n    initial: {\n      opacity: 0,\n      scale: 0.5,\n    },\n    animate: {\n      opacity: isChecked ? 1 : 0,\n      scale: isChecked ? 1 : 0.5,\n    },\n    transition: defaultTransition,\n  }\n\n  return (\n    <Wrap $style={overrides.Wrap}>\n      <RadioContainer>\n        <HiddenRadio value={value} name={name} ref={ref} type=\"radio\" onChange={onChange} />\n        <StyledRadio $error={error} {...sharedProps}>\n          <Circle {...sharedProps} {...motionProps} />\n        </StyledRadio>\n      </RadioContainer>\n      <System.ParagraphSmall\n        as=\"span\"\n        marginLeft={theme.sizing.scale500}\n        color={error ? theme.colors.negative : theme.colors.contentPrimary}\n        whiteSpace=\"nowrap\"\n        overflow=\"hidden\"\n        textOverflow=\"ellipsis\"\n      >\n        {label}\n      </System.ParagraphSmall>\n    </Wrap>\n  )\n}\n\nRadio.defaultProps = {\n  name: \"my-radio\",\n  label: \"label\",\n  value: \"radio-value\",\n  overrides: {},\n  required: true,\n}\n","/**\n * The Radio component is used to let users select only one option from the choices.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const [radio, setRadio] = useState(\"ios\")\n *\n *   return (\n *      <System.Block>\n *        <System.Radio\n *          label=\"IOS\"\n *          value=\"ios\"\n *          name=\"os\"\n *          checked={radio === \"ios\"}\n *          onChange={e => setRadio(e.target.value)}\n *        />\n *        <System.Spacing height=\"scale600\" />\n *        <System.Radio\n *          label=\"Android\"\n *          value=\"android\"\n *          name=\"os\"\n *          checked={radio === \"android\"}\n *          onChange={e => setRadio(e.target.value)}\n *        />\n *      </System.Block>\n *   )\n * }\n * ```\n * @param label - string\n * @param checked - boolean\n * @param value - string\n * @param name - string\n * @param required - boolean\n * @param onChange - (event: React.FocusEvent<HTMLInputElement>) => void\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject }\n */\nexport const Radio: React.FC<RadioPropsT> = RadioComp\nexport * from \"./types\"\n\nimport { Radio as RadioComp } from \"./radio\"\nimport { RadioPropsT } from \"./types\"\n","import { styled } from \"styletron-react\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const Wrap = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    background: $theme.colors.backgroundSecondary,\n    padding: `${$theme.sizing.scale600} ${$theme.sizing.scale700}`,\n    display: \"flex\",\n    justifyContent: \"space-between\",\n    alignItems: \"center\",\n  }\n})\n\nexport const ListItemLabelWrap = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    color: $theme.colors.contentPrimary,\n    ...$theme.typography.LabelMedium,\n  }\n})\n\nexport const EndEnhancer = styled(\"span\", {})\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { EndEnhancer, Wrap } from \"./styled-components\"\nimport { ListItemPropsT } from \"./types\"\n\nexport const ListItem: React.FC<ListItemPropsT> = ({\n  children,\n  endEnhancer,\n  onClick = () => void 0,\n  overrides = {},\n  ...rest\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n\n  return (\n    <Wrap onClick={onClick} $style={overrides.Wrap} {...sharedProps} {...rest}>\n      {children}\n      <EndEnhancer $style={overrides.EndEnhancer}>{endEnhancer}</EndEnhancer>\n    </Wrap>\n  )\n}\n\nListItem.defaultProps = {\n  overrides: {},\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { ListItemLabelWrap } from \"./styled-components\"\nimport { ListItemLabelPropsT } from \"./types\"\n\nexport const ListItemLabel: React.FC<ListItemLabelPropsT> = ({ overrides = {}, children }) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n\n  return (\n    <ListItemLabelWrap $style={overrides.ListItemLabelWrap} {...sharedProps}>\n      {children}\n    </ListItemLabelWrap>\n  )\n}\n\nListItemLabel.defaultProps = {\n  overrides: {},\n}\n","/**\n * The ListItem component is used to display sequencing contents.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   return (\n *     <>\n *       <System.ListItem>\n *         <System.ListItemLabel>\n *         <System.LabelMedium>Item 01</System.LabelMedium>\n *         <System.ParagraphXSmall>Description</System.ParagraphXSmall>\n *         </System.ListItemLabel>\n *       </System.ListItem>\n *       <System.ListItem>\n *         <System.ListItemLabel>\n *         <System.LabelMedium>Item 02</System.LabelMedium>\n *         <System.ParagraphXSmall>Description</System.ParagraphXSmall>\n *         </System.ListItemLabel>\n *       </System.ListItem>\n *     </>\n *   )\n * }\n * ```\n * @param children - React.ReactNode\n * @param endEnhancer - React.ReactNode\n * @param onClick - (event: React.MouseEvent<HTMLButtonElement>) => void\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject; EndEnhancer?: StyletronReact.StyleObject }\n */\nexport const ListItem: React.FC<ListItemPropsT> = ListItemComp\nexport const ListItemLabel: React.FC<ListItemLabelPropsT> = ListItemLabelComp\nexport * from \"./types\"\n\nimport { ListItem as ListItemComp } from \"./list-item\"\nimport { ListItemLabel as ListItemLabelComp } from \"./list-item-label\"\nimport { ListItemLabelPropsT, ListItemPropsT } from \"./types\"\n","import { styled } from \"styletron-react\"\nimport { motion } from \"framer-motion\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const Wrap = styled(motion.div, ({ $theme }: Props) => {\n  return {\n    width: $theme.sizing.scale1200,\n    height: $theme.sizing.scale1200,\n  }\n})\n\nexport const Round = styled(motion.div, ({ $theme }: Props) => {\n  return {\n    width: $theme.sizing.scale600,\n    height: $theme.sizing.scale600,\n    borderRadius: \"100%\",\n    backgroundColor: $theme.colors.primary,\n  }\n})\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { Round, Wrap } from \"./styled-components\"\nimport { SpinnerPropsT } from \"./types\"\n\nexport const Spinner: React.FC<SpinnerPropsT> = ({ overrides = {} }) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n  const defaultTransition = {\n    loop: Infinity,\n    ease: theme.animation.easeInCurve,\n    duration: theme.animation.timing2000,\n  }\n  const motionRotateProps = {\n    animate: { rotate: [90, 270, 450] },\n    transition: defaultTransition,\n  }\n\n  return (\n    <Wrap {...sharedProps} {...motionRotateProps}>\n      <Round $style={overrides.Round} {...sharedProps} />\n    </Wrap>\n  )\n}\n\nSpinner.defaultProps = {}\n","/**\n * The Spinner component.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   return (\n *     <System.Spinner />\n *   )\n * }\n * ```\n * @param overrides - \\{ Round?: StyletronReact.StyleObject; }\n */\nexport const Spinner: React.FC<SpinnerPropsT> = SpinnerComp\nexport * from \"./types\"\n\nimport { Spinner as SpinnerComp } from \"./spinner\"\nimport { SpinnerPropsT } from \"./types\"\n","export const ROLE = {\n  dialog: \"dialog\",\n  form: \"form\",\n}\n","import * as React from \"react\"\n\nexport const handleNewline = (text) => {\n  if (typeof text === \"string\")\n    return text.split(\"\\n\").map((item, key) => <React.Fragment key={key}>{item}</React.Fragment>)\n  else return text\n}\n","import { styled } from \"styletron-react\"\nimport { isEmpty } from \"../utils/is-empty\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\n/**\n * Modal\n */\nexport const Wrap = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    position: \"fixed\",\n    top: \"50%\",\n    left: \"50%\",\n    transform: \"translate(-50%, -50%)\",\n    background: $theme.colors.backgroundPrimary,\n    zIndex: $theme.zIndex.modal,\n  }\n})\n\nexport const InnerWarp = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    position: \"relative\",\n    minWidth: \"450px\",\n    minHeight: \"250px\",\n    [$theme.mediaQuery.medium]: {\n      minWidth: `calc(100vw - (${$theme.sizing.scale900} * 2))`,\n    },\n  }\n})\n\nexport const Loading = styled(\"div\", {\n  position: \"absolute\",\n  top: \"50%\",\n  left: \"50%\",\n  transform: \"translate(-50%, -50%)\",\n})\n\nexport const ChildrenWrap = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    marginBottom: $theme.sizing.scale900,\n  }\n})\n\n/**\n * ModalContent\n */\nexport const ModalHeader = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    padding: `0 ${$theme.sizing.scale900}`,\n    margin: \"0 auto\",\n    textAlign: \"center\",\n  }\n})\n\nexport const Title = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    color: $theme.colors.primary,\n    padding: `${$theme.sizing.scale1200} 0`,\n    ...$theme.typography.HeadingMedium,\n  }\n})\n\nexport const HeaderLine = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    height: \"2px\",\n    background: $theme.colors.backgroundTertiary,\n    marginBottom: $theme.sizing.scale900,\n  }\n})\n\nexport const ModalBody = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    padding: `0 ${$theme.sizing.scale900}`,\n  }\n})\n\nexport const Description = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    maxWidth: \"450px\",\n    paddingBottom: $theme.sizing.scale900,\n    color: $theme.colors.contentPrimary,\n    ...$theme.typography.ParagraphSmall,\n  }\n})\n\nexport const ModalFooter = styled(\"div\", ({ $errors }: { $errors }) => {\n  return {\n    display: \"grid\",\n    gridTemplateColumns: \"repeat(2, 1fr)\",\n    ...getFooterErrorStyles($errors),\n  }\n})\n\nfunction getFooterErrorStyles($errors) {\n  if (!isEmpty($errors))\n    return {\n      filter: \"grayscale(1)\",\n    }\n  else return Object.freeze({})\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport * as System from \"../lighthouse\"\nimport { handleNewline } from \"../utils/handle-newline\"\nimport {\n  HeaderLine,\n  ModalBody,\n  ModalFooter,\n  ModalHeader,\n  Description,\n  Title,\n} from \"./styled-components\"\nimport { ModalContentPropsT } from \"./types\"\n\nexport const ModalContent: React.FC<ModalContentPropsT> = ({\n  title,\n  desc,\n  children,\n  confirmText,\n  cancelText,\n  closeOnClick,\n  confirmOnClick,\n  $errors,\n  overrides = {},\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme, $errors }\n\n  return (\n    <>\n      <ModalHeader $style={overrides.ModalHeader} {...sharedProps}>\n        <Title $style={overrides.Title} {...sharedProps}>\n          {handleNewline(title)}\n        </Title>\n        <HeaderLine {...sharedProps} />\n      </ModalHeader>\n      <ModalBody $style={overrides.ModalBody} {...sharedProps}>\n        {desc && (\n          <Description $style={overrides.Description} {...sharedProps}>\n            {handleNewline(desc)}\n          </Description>\n        )}\n        {children}\n      </ModalBody>\n      <ModalFooter $style={overrides.ModalFooter} {...sharedProps}>\n        <System.Button kind=\"secondary\" type=\"button\" onClick={closeOnClick}>\n          {cancelText}\n        </System.Button>\n        <System.Button kind=\"primary\" type=\"submit\" onClick={confirmOnClick}>\n          {confirmText}\n        </System.Button>\n      </ModalFooter>\n    </>\n  )\n}\n\nModalContent.defaultProps = {}\n","import { AnimatePresence, motion } from \"framer-motion\"\nimport * as React from \"react\"\nimport { useContext, useRef } from \"react\"\nimport { useForm } from \"react-hook-form\"\nimport { FormContext } from \"../helpers/form-provider\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { useOnClickOutside } from \"../hooks\"\nimport { Spinner } from \"../spinner\"\nimport { ROLE } from \"./constants\"\nimport { ModalContent } from \"./modal-content\"\nimport { ChildrenWrap, Loading, InnerWarp, Wrap } from \"./styled-components\"\nimport { ModalPropsT } from \"./types\"\n\nexport const Modal: React.FC<ModalPropsT> = ({\n  role,\n  children,\n  title,\n  desc,\n  confirmText,\n  cancelText,\n  closeOnClick = () => void 0,\n  confirmOnClick = () => void 0,\n  onSubmit = (values) => console.log(\"values from default onSubmit\", values),\n  loading,\n  loadingSpinner,\n  isOpen,\n  overrides = {},\n}) => {\n  const theme = useContext(ThemeContext)\n  const ref = useRef(null)\n  const formProps = useForm({\n    mode: \"onBlur\",\n  })\n  const sharedProps = { $theme: theme, $errors: formProps.errors }\n  const defaultTransition = {\n    ease: theme.animation.easeInCurve,\n    duration: theme.animation.timing200,\n  }\n  const modal = {\n    hidden: { opacity: 0, top: \"53%\", transition: defaultTransition },\n    visible: {\n      opacity: 1,\n      top: \"50%\",\n      transition: { ...defaultTransition, delay: theme.animation.timing200 },\n    },\n  }\n  const motionProps = {\n    initial: \"hidden\",\n    animate: \"visible\",\n    exit: \"hidden\",\n    variants: modal,\n  }\n  // Call hook passing in the ref and a function to call on outside click\n  useOnClickOutside(ref, closeOnClick)\n\n  return (\n    <AnimatePresence>\n      {isOpen && (\n        <FormContext.Provider value={formProps}>\n          <Wrap\n            ref={ref}\n            $as={role === ROLE.form ? motion.form : motion.div}\n            onSubmit={formProps.handleSubmit(onSubmit)}\n            $style={overrides.Wrap}\n            {...sharedProps}\n            {...motionProps}\n          >\n            <InnerWarp {...sharedProps}>\n              {loading ? (\n                <Loading $style={overrides.Loading}>{loadingSpinner}</Loading>\n              ) : (\n                <ModalContent\n                  role={role}\n                  closeOnClick={closeOnClick}\n                  desc={desc}\n                  onSubmit={onSubmit}\n                  title={title}\n                  confirmText={confirmText}\n                  cancelText={cancelText}\n                  confirmOnClick={confirmOnClick}\n                  overrides={overrides}\n                  {...sharedProps}\n                >\n                  {children && <ChildrenWrap {...sharedProps}>{children}</ChildrenWrap>}\n                </ModalContent>\n              )}\n            </InnerWarp>\n          </Wrap>\n        </FormContext.Provider>\n      )}\n    </AnimatePresence>\n  )\n}\n\nexport default Modal\n\nModal.defaultProps = {\n  title: \"title\",\n  role: \"dialog\",\n  desc: \"Modal Description\",\n  onSubmit: (values) => console.log(\"values from default onSubmit\", values),\n  loading: false,\n  loadingSpinner: <Spinner />,\n  isOpen: false,\n}\n","/**\n * The Modal component is used to get specific attentions from user. It is recommended to use it with overlay or overridden shadows.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n * import { useTheme } from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const [open, setOpen] = React.useState(false)\n *   const theme = useTheme()\n *\n *   return (\n *     <>\n *       <System.Button onClick={() => setOpen(!open)}>{open ? \"Close\" : \"Open Modal\"}</System.Button>\n *       {open && (\n *         <System.Block\n *           position=\"fixed\"\n *           width=\"100%\"\n *           height=\"100%\"\n *           top=\"0px\"\n *           left=\"0px\"\n *           overrides={{\n *             Block: {\n *               boxShadow: theme.lighting.overlay500,\n *               zIndex: theme.zIndex.overlay,\n *             },\n *           }}\n *         />\n *       )}\n *       <System.Modal\n *         title=\"Sign In / Up\"\n *         role=\"form\"\n *         onSubmit={(values) => console.log(\"value\", values)}\n *         loadingSpinner={\"Loading...\"}\n *         loading={false}\n *         isOpen={open}\n *         cancelText=\"Cancel\"\n *         confirmText=\"Sign In\"\n *         desc=\"We’ll send you a link to your account.\"\n *         closeOnClick={() => setOpen(false)}\n *       >\n *         <System.Input\n *           name=\"email\"\n *           label=\"E-MAIL\"\n *           placeholder=\"Put your e-mail address\"\n *           pattern=\"/^\\S+@\\S+$/\"\n *         />\n *       </System.Modal>\n *     </>\n *   )\n * }\n * ```\n * @param title - string\n * @param desc - string\n * @param children - React.ReactNode\n * @param confirmText - string\n * @param cancelText - string\n * @param isOpen - boolean\n * @param loading - boolean\n * @param loadingSpinner - React.ReactNode\n * @param role - \"dialog\" | \"form\"\n * @param closeOnClick - (event: React.MouseEvent<HTMLButtonElement>) => void\n * @param confirmOnClick - (event: React.MouseEvent<HTMLButtonElement>) => void\n * @param onSubmit - SubmitHandler<Record<string, any>>\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject; Loading?: StyletronReact.StyleObject; ModalHeader?: StyletronReact.StyleObject; Title?: StyletronReact.StyleObject; ModalBody?: StyletronReact.StyleObject; Description?: StyletronReact.StyleObject; ModalFooter?: StyletronReact.StyleObject }\n */\nexport const Modal: React.FC<ModalPropsT> = ModalComp\nexport * from \"./types\"\n\nimport { Modal as ModalComp } from \"./modal\"\nimport { ModalPropsT } from \"./types\"\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { ProgressBarPropsT } from \"./types\"\nimport * as System from \"../lighthouse\"\nimport { motion } from \"framer-motion\"\n\nexport const ProgressBar: React.FC<ProgressBarPropsT> = ({\n  value = 30,\n  infinite,\n  overrides = {},\n  track = \"\",\n  color = \"\",\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme, $value: value }\n\n  return (\n    <System.Block\n      width=\"100%\"\n      height=\"scale500\"\n      background={theme.colors[track]}\n      borderRadius=\"1000px\"\n      position=\"relative\"\n      overflow=\"hidden\"\n      overrides={{\n        Block: overrides.Wrap,\n      }}\n      {...sharedProps}\n    >\n      <System.Block\n        as={motion.div}\n        height=\"100%\"\n        background={theme.colors[color]}\n        borderRadius=\"1000px\"\n        position=\"absolute\"\n        width={`${value}%`}\n        overrides={{\n          Block: overrides.Bar,\n        }}\n        {...getMotionProps({ ...sharedProps, $infinite: infinite })}\n        {...sharedProps}\n      />\n    </System.Block>\n  )\n}\n\nProgressBar.defaultProps = {\n  overrides: {},\n  value: 30,\n  infinite: false,\n  track: \"backgroundSecondary\",\n  color: \"contentSecondary\",\n}\n\nfunction getMotionProps({ $theme, $value, $infinite }) {\n  if ($infinite) {\n    return {\n      animate: {\n        left: \"100%\",\n      },\n      transition: {\n        loop: Infinity,\n        ease: $theme.animation.easeInCurve,\n        duration: $theme.animation.timing2000,\n      },\n    }\n  } else {\n    return {\n      animate: {\n        width: `${$value}%`,\n      },\n      transition: {\n        ease: $theme.animation.easeInCurve,\n        duration: $theme.animation.timing2000,\n      },\n    }\n  }\n}\n","/**\n * The ProgressBar component.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   return (\n *     <System.ProgressBar value={30} infinite />\n *   )\n * }\n * ```\n * @param value - number\n * @param infinite - boolean\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject; Bar?: StyletronReact.StyleObject }\n * @param track - string | Array\\<string\\>\n * @param color - string | Array\\<string\\>\n */\nexport const ProgressBar: React.FC<ProgressBarPropsT> = ProgressBarComp\nexport * from \"./types\"\n\nimport { ProgressBar as ProgressBarComp } from \"./progress-bar\"\nimport { ProgressBarPropsT } from \"./types\"\n","import { AnimatePresence, motion } from \"framer-motion\"\nimport * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../lighthouse\"\n\nexport function AnimateOptions({ children, isOpen, animate, setReadyToChange }) {\n  const theme = useContext(ThemeContext)\n  const motionProps = {\n    initial: {\n      opacity: 0,\n    },\n    animate: {\n      opacity: 1,\n      transition: {\n        duration: theme.animation.timing200,\n        ease: theme.animation.easeInCurve,\n      },\n    },\n    exit: {\n      opacity: 0,\n      transition: {\n        duration: theme.animation.timing100,\n        ease: theme.animation.easeInCurve,\n      },\n    },\n  }\n\n  if (animate)\n    return (\n      <AnimatePresence onExitComplete={() => setReadyToChange(true)}>\n        {isOpen && <motion.div {...motionProps}>{children}</motion.div>}\n      </AnimatePresence>\n    )\n  else return isOpen && <div>{children}</div>\n}\n\nAnimateOptions.defaultProps = {}\n","import { styled } from \"styletron-react\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const Wrap = styled(\"div\", ({ $theme, $isOpen }: Props<{ $isOpen: boolean }>) => {\n  return {\n    position: \"relative\",\n    zIndex: $isOpen ? $theme.zIndex.select : 0,\n  }\n})\n\nexport const Placeholder = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    padding: `${$theme.sizing.scale500} ${$theme.sizing.scale600}`,\n    cursor: \"pointer\",\n    color: $theme.colors.contentSecondary,\n    overflow: \"hidden\",\n    textOverflow: \"ellipsis\",\n    whiteSpace: \"nowrap\",\n    ...$theme.typography.ParagraphSmall,\n    \":hover\": {\n      color: $theme.colors.contentPrimary,\n    },\n  }\n})\n\nexport const OptionList = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    position: \"absolute\",\n    top: \"100%\",\n    zIndex: $theme.zIndex.select,\n    width: \"100%\",\n    \"::-webkit-scrollbar\": {\n      width: \"0px\",\n    },\n  }\n})\n\nexport const Option = styled(\n  \"div\",\n  ({ $theme, $selected, $disabled }: Props<{ $selected: boolean; $disabled: boolean }>) => {\n    return {\n      display: \"flex\",\n      alignItems: \"center\",\n      background: $theme.colors.backgroundPrimary,\n      padding: `${$theme.sizing.scale500} ${$theme.sizing.scale600}`,\n      justifyContent: \"space-between\",\n      color: $disabled ? $theme.colors.contentTertiary : $theme.colors.contentSecondary,\n      cursor: \"pointer\",\n      position: \"relative\",\n      textDecoration: \"none\",\n      ...getOptionHoverStyle({ $theme, $disabled }),\n      ...getOptionWarpSelectedStyle({ $theme, $selected }),\n    }\n  }\n)\n\nexport const OptionLabel = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    overflow: \"hidden\",\n    textOverflow: \"ellipsis\",\n    whiteSpace: \"nowrap\",\n    ...$theme.typography.ParagraphSmall,\n  }\n})\n\nexport const OptionEndEnhancer = styled(\"div\", {})\n\nfunction getOptionWarpSelectedStyle({ $theme, $selected }) {\n  switch ($selected) {\n    case true:\n      return {\n        background: $theme.colors.backgroundSecondary,\n        color: $theme.colors.contentPrimary,\n      }\n    default:\n      return Object.freeze({})\n  }\n}\n\nfunction getOptionHoverStyle({ $theme, $disabled }) {\n  if (!$disabled)\n    return {\n      \":hover\": {\n        background: $theme.colors.backgroundSecondary,\n        color: $theme.colors.contentPrimary,\n      },\n    }\n}\n","import * as React from \"react\"\nimport { useContext, useEffect, useRef, useState } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { useOnClickOutside } from \"../hooks\"\nimport { AnimateOptions } from \"./animate-options\"\nimport {\n  OptionEndEnhancer,\n  OptionList,\n  Option,\n  OptionLabel,\n  Placeholder,\n  Wrap,\n} from \"./styled-components\"\nimport { SelectPropsT } from \"./types\"\n\nexport const Select: React.FC<SelectPropsT> = ({\n  overrides = {},\n  options = [],\n  placeholder,\n  active,\n  onChange = () => void 0,\n  isOpen = false,\n  animate,\n  onClick = () => void 0,\n  onClickOutside = () => void 0,\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme, $isOpen: isOpen }\n\n  const ref = useRef(null)\n  useOnClickOutside(ref, onClickOutside)\n  const [newValue, setNewValue] = useState(-1)\n  const [readyToChange, setReadyToChange] = useState(false)\n  useEffect(() => {\n    if (readyToChange && typeof newValue === \"number\" && newValue >= 0) onChange(newValue)\n    else setReadyToChange(false) // reset state when user click outside\n  }, [readyToChange, newValue])\n\n  return (\n    <Wrap ref={ref} $style={overrides.Wrap} {...sharedProps}>\n      <Placeholder onClick={onClick} {...sharedProps}>\n        {typeof active === \"number\" && (placeholder || options[active].label)}\n      </Placeholder>\n      <OptionList $style={overrides.OptionList} {...sharedProps}>\n        <AnimateOptions isOpen={isOpen} animate={animate} setReadyToChange={setReadyToChange}>\n          {options.map(({ disabled, label, endEnhancer, ...rest }, id) => (\n            <Option\n              key={id}\n              $selected={id === active}\n              $disabled={disabled || false}\n              $style={overrides.Option}\n              onClick={() => {\n                if (!disabled) {\n                  setNewValue(id)\n                  // Close select(onClickOutside) and trigger onChange if it is animate.\n                  // If it's not animate, it triggers onChange separately.\n                  animate ? onClickOutside() : onChange(id)\n                }\n              }}\n              {...rest}\n              {...sharedProps}\n            >\n              <OptionLabel $style={overrides.OptionLabel} {...sharedProps}>\n                {label}\n              </OptionLabel>\n              <OptionEndEnhancer>{endEnhancer}</OptionEndEnhancer>\n            </Option>\n          ))}\n        </AnimateOptions>\n      </OptionList>\n    </Wrap>\n  )\n}\n\nSelect.defaultProps = {\n  overrides: {},\n  options: [\n    {\n      label: \"apple\",\n    },\n    {\n      label: \"banana\",\n    },\n  ],\n  active: 0,\n}\n","/**\n * The Select component is used to suggest more than three choices to the user. It is recommended to use it with overlay or overridden shadows.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n * import { useTheme } from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const [open, setOpen] = React.useState(false)\n *   const theme = useTheme()\n *\n *   return (\n *     <>\n *       {open && (\n *         <System.Block\n *           position=\"fixed\"\n *           width=\"100%\"\n *           height=\"100%\"\n *           top=\"0px\"\n *           left=\"0px\"\n *           overrides={{\n *             Block: {\n *               boxShadow: theme.lighting.overlay200,\n *               zIndex: theme.zIndex.overlay,\n *             },\n *           }}\n *         />\n *       )}\n *       <System.Select\n *         options={[\n *           {\n *             label: \"Option 0\",\n *             key: \"option0\",\n *           },\n *           {\n *             label: \"Option 1\",\n *             key: \"option1\",\n *           },\n *           {\n *             label: \"Option 2\",\n *             key: \"option2\",\n *           },\n *         ]}\n *         placeholder=\"Select Option\"\n *         onChange={(value) => {\n *           alert(value)\n *           setOpen(false)\n *         }}\n *         onClick={() => setOpen(true)}\n *         onClickOutside={() => setOpen(false)}\n *         isOpen={open}\n *       />\n *     </>\n *   )\n * }\n * ```\n * @param options - Array\\<SelectOption\\>\n * @param placeholder - string\n * @param active - number\n * @param isOpen - boolean\n * @param animate - boolean\n * @param onClick - (event: React.MouseEvent<HTMLElement>) => void\n * @param onChange - (newValue: number) => void\n * @param onClickOutside - (event?: React.MouseEvent<HTMLElement>) => void\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject; OptionList?: StyletronReact.StyleObject; Option?: StyletronReact.StyleObject; OptionLabel?: StyletronReact.StyleObject }\n */\nexport const Select: React.FC<SelectPropsT> = SelectComp\nexport * from \"./types\"\n\nimport { Select as SelectComp } from \"./select\"\nimport { SelectPropsT } from \"./types\"\n","import * as React from \"react\"\nimport * as System from \"../lighthouse\"\nimport { SpacingPropsT } from \"./types\"\n\nexport const Spacing: React.FC<SpacingPropsT> = ({ guide, ...props }) => (\n  <System.Block {...props} position=\"relative\">\n    <System.Block\n      position=\"absolute\"\n      top=\"50%\"\n      left=\"50%\"\n      transform=\"translate(-50%, -50%)\"\n      whiteSpace=\"nowrap\"\n      overrides={{ Block: { fontSize: \"8px\", opacity: 0.6 } }}\n    >\n      {guide && (\n        <>\n          {/* @ts-ignore */}\n          {props?.width !== \"100%\" && `${props.width}`}\n          {/* @ts-ignore */}\n          {props?.width !== \"100%\" && props?.height !== \"100%\" && ` / `}\n          {/* @ts-ignore */}\n          {props?.height !== \"100%\" && `${props.height}`}\n        </>\n      )}\n    </System.Block>\n  </System.Block>\n)\n\nSpacing.defaultProps = {\n  guide: false,\n}\n","/**\n * The Spacing component is used to make spaces between elements. It is used to add margins or paddings. Theme scale sizings or px unit strings are acceptable as the property value.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *\n *   return (\n *     <System.Spacing width=\"scale900\" height=\"scale900\" backgroundColor=\"backgroundTertiary\" />\n *   )\n * }\n * ```\n * @param width - \"scale0\" | \"scale100\" | \"scale200\" | \"scale300\" | \"scale400\" | \"scale500\" | \"scale550\" | \"scale600\" | \"scale650\" | \"scale700\" | \"scale750\" | \"scale800\" | \"scale900\" | \"scale1000\" | \"scale1200\" | \"scale1400\" | \"scale1600\" | \"scale2400\" | \"scale3200\" | \"scale4800\"\n * @param height - \"scale0\" | \"scale100\" | \"scale200\" | \"scale300\" | \"scale400\" | \"scale500\" | \"scale550\" | \"scale600\" | \"scale650\" | \"scale700\" | \"scale750\" | \"scale800\" | \"scale900\" | \"scale1000\" | \"scale1200\" | \"scale1400\" | \"scale1600\" | \"scale2400\" | \"scale3200\" | \"scale4800\"\n * @param backgroundColor - string\n * @param display - System.BlockPropsT[\"display\"]\n * @param guide - boolean\n */\nexport const Spacing: React.FC<SpacingPropsT> = SpacingComp\nexport * from \"./types\"\n\nimport { Spacing as SpacingComp } from \"./spacing\"\nimport { SpacingPropsT } from \"./types\"\n","import { styled } from \"styletron-react\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const Wrap = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    background: $theme.colors.backgroundPrimary,\n  }\n})\n\nexport const Headers = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    background: $theme.colors.backgroundSecondary,\n    display: \"flex\",\n  }\n})\n\nexport const HeaderCell = styled(\n  \"div\",\n  ({ $theme, $id, $flexAmounts }: Props<{ $id: number; $flexAmounts: number[] }>) => {\n    return {\n      flex: $flexAmounts[$id],\n      padding: `${$theme.sizing.scale500} ${$theme.sizing.scale600}`,\n      overflow: \"hidden\",\n      textOverflow: \"ellipsis\",\n      boxSizing: \"border-box\",\n      color: $theme.colors.contentPrimary,\n      ...$theme.typography.LabelMedium,\n    }\n  }\n)\n\nexport const Datas = styled(\"div\", {\n  display: \"flex\",\n  alignItems: \"center\",\n})\n\nexport const DataCell = styled(\n  \"div\",\n  ({ $theme, $id, $flexAmounts }: Props<{ $id: number; $flexAmounts: number[] }>) => {\n    return {\n      flex: $flexAmounts[$id],\n      padding: `${$theme.sizing.scale300} ${$theme.sizing.scale600}`,\n      overflow: \"hidden\",\n      textOverflow: \"ellipsis\",\n      boxSizing: \"border-box\",\n      color: $theme.colors.contentPrimary,\n      ...$theme.typography.ParagraphSmall,\n    }\n  }\n)\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { DataCell, Datas, HeaderCell, Headers, Wrap } from \"./styled-components\"\nimport { TablePropsT } from \"./types\"\n\nexport const Table: React.FC<TablePropsT> = ({\n  headerCells = [],\n  dataCells = [],\n  columnRatio,\n  overrides = {},\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n  const flexAmounts = getFlexAmount({\n    $columnRatio: columnRatio,\n  })\n\n  return (\n    <Wrap $style={overrides.Wrap} {...sharedProps}>\n      <Headers $style={overrides.Headers} {...sharedProps}>\n        {headerCells.map((cell, id) => (\n          <HeaderCell\n            key={id}\n            $id={id}\n            $flexAmounts={flexAmounts}\n            $style={overrides.HeaderCell}\n            {...sharedProps}\n          >\n            {cell}\n          </HeaderCell>\n        ))}\n      </Headers>\n      {dataCells.map((data, id) => (\n        <Datas key={id} $style={overrides.Datas}>\n          {data.map((cell, id) => (\n            <DataCell\n              key={id}\n              $id={id}\n              $flexAmounts={flexAmounts}\n              $style={overrides.DataCell}\n              {...sharedProps}\n            >\n              {cell}\n            </DataCell>\n          ))}\n        </Datas>\n      ))}\n    </Wrap>\n  )\n}\n\nTable.defaultProps = {\n  overrides: {},\n  headerCells: [\"NAME\", \"ARTIST\", \"STATS\"],\n  dataCells: [\n    [\"Dynamite\", \"BTS\", 1],\n    [\"WAP\", \"Cardi B Featuring Megan Thee Stallion\", 2],\n    [\"Laugh Now Cry Later\", \"Drake Featuring Lil Durk\", 3],\n  ],\n  columnRatio: [2, 4, 1],\n}\n\nfunction getFlexAmount({ $columnRatio }) {\n  let ratioSum = 0\n  for (let i = 0; i < $columnRatio.length; i++) ratioSum += $columnRatio[i]\n  return $columnRatio.map((ratio) => `0 0 ${(100 * ratio) / ratioSum}%`)\n}\n","/**\n * The Table component is used for large amounts of information or structured data.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   return (\n *     <System.Table\n *       columnRatio={[1, 2, 1]}\n *       headerCells={[\"NAME\", \"ARTIST\", \"STATS\"]}\n *       dataCells={[\n *          [\"Dynamite\", \"BTS\", 1],\n *          [\"WAP\", \"Cardi B Featuring Megan Thee Stallion\", 2],\n *          [\"Laugh Now Cry Later\", \"Drake Featuring Lil Durk\", 3],\n *       ]}\n *     />\n *   )\n * }\n * ```\n * @param headerCells - Array<string | number>\n * @param dataCells - Array<Array<string | number>>\n * @param columnRatio - Array<number>\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject; Headers?: StyletronReact.StyleObject; HeaderCell?: StyletronReact.StyleObject; Datas?: StyletronReact.StyleObject; DataCell?: StyletronReact.StyleObject }\n */\nexport const Table: React.FC<TablePropsT> = TableComp\nexport * from \"./types\"\n\nimport { Table as TableComp } from \"./table\"\nimport { TablePropsT } from \"./types\"\n","import { styled } from \"styletron-react\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const Wrap = styled(\"div\", {\n  display: \"flex\",\n  alignItems: \"center\",\n})\n\nexport const Item = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    display: \"flex\",\n    alignItems: \"center\",\n    color: $theme.colors.contentSecondary,\n    ...$theme.typography.ParagraphSmall,\n  }\n})\n\nexport const Separator = styled(\"span\", ({ $theme }: Props) => {\n  return {\n    color: $theme.colors.contentSecondary,\n    ...$theme.typography.ParagraphSmall,\n  }\n})\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { Item, Separator, Wrap } from \"./styled-components\"\nimport { BreadcrumbsPropsT } from \"./types\"\n\nexport const Breadcrumbs: React.FC<BreadcrumbsPropsT> = ({ children, overrides = {} }) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n  const childrenArray = React.Children.toArray(children)\n\n  return (\n    <Wrap $style={overrides.Wrap} {...sharedProps}>\n      {childrenArray.map((child, id) => (\n        <Item key={id} {...sharedProps} $style={overrides.Item}>\n          {child} {id < childrenArray.length - 1 && <Separator {...sharedProps}>/</Separator>}\n        </Item>\n      ))}\n    </Wrap>\n  )\n}\n\nBreadcrumbs.defaultProps = {\n  overrides: {},\n}\n","/**\n * The Breadcrumbs component is used to show detail where the user is located in the application.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n * import { useTheme } from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const theme = useTheme()\n *   return (\n *     <System.Breadcrumbs>\n *       <System.ParagraphLarge padding={`0px ${theme.sizing.scale700}`}>\n *         Item0\n *       </System.ParagraphLarge>\n *       <System.ParagraphLarge padding={`0px ${theme.sizing.scale700}`}>\n *         Item1\n *       </System.ParagraphLarge>\n *     </System.Breadcrumbs>\n *   )\n * }\n * ```\n * @param children - React.ReactNode\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject; Item?: StyletronReact.StyleObject }\n */\nexport const Breadcrumbs: React.FC<BreadcrumbsPropsT> = BreadcrumbsComp\nexport * from \"./types\"\n\nimport { Breadcrumbs as BreadcrumbsComp } from \"./breadcrumbs\"\nimport { BreadcrumbsPropsT } from \"./types\"\n","export const TARGET = {\n  _blank: \"_blank\" as const,\n  _self: \"_self\" as const,\n  _parent: \"_parent\" as const,\n  _top: \"_top\" as const,\n}\n","import { styled } from \"styletron-react\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const Link = styled(\"a\", ({ $theme, $highlight }: Props<{ $highlight: boolean }>) => {\n  return {\n    // remove link styles\n    textDecoration: \"none\",\n    color: $theme.colors.contentPrimary,\n    cursor: \"pointer\",\n    display: \"inline-block\",\n    // start new styles\n    ...$theme.typography.ParagraphSmall,\n    ...getHighlightStyles({ $theme, $highlight }),\n  }\n})\n\nfunction getHighlightStyles({ $theme, $highlight }) {\n  if ($highlight)\n    return {\n      ...$theme.typography.LabelSmall,\n      color: $theme.colors.primary,\n    }\n  else return {}\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { TARGET } from \"./constants\"\nimport { Link } from \"./styled-components\"\nimport { StyledLinkPropsT } from \"./types\"\n\nexport const StyledLink: React.FC<StyledLinkPropsT> = ({\n  href,\n  children,\n  highlight = false,\n  target,\n  onClick,\n  as,\n  overrides = {},\n  ...rest\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme, $highlight: highlight }\n  return (\n    <Link\n      href={href}\n      target={target}\n      onClick={onClick}\n      $as={as}\n      $style={overrides.Link}\n      {...sharedProps}\n      {...rest}\n    >\n      {children}\n    </Link>\n  )\n}\n\nStyledLink.defaultProps = {\n  target: TARGET._self,\n  as: \"a\",\n}\n","/**\n * The StyledLink component is used to style links.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   return (\n *     <System.StyledLink href=\"https://harbor.school\" target=\"_blank\" highlight>\n *       Your account\n *     </System.StyledLink>\n *   )\n * }\n * ```\n * @param href - string\n * @param target - \"_blank\" | \"_self\" | \"_parent\" | \"_top\"\n * @param children - React.ReactNode\n * @param highlight - boolean\n * @param as - React.ElementType\n * @param onClick - (event: React.MouseEvent<HTMLElement>) => void\n * @param overrides - \\{ Link?: StyletronReact.StyleObject }\n */\nexport const StyledLink: React.FC<StyledLinkPropsT> = StyledLinkComp\nexport * from \"./types\"\n\nimport { StyledLink as StyledLinkComp } from \"./link\"\nimport { StyledLinkPropsT } from \"./types\"\n","import { styled } from \"styletron-react\"\nimport { getMediaQueries } from \"../helpers/responsive-helpers\"\n\nfunction constrainToNull(value) {\n  if (value === undefined) {\n    return null\n  }\n  return value\n}\n\nfunction build(breakpoints) {\n  const styles = {}\n  const mediaQueries = getMediaQueries(breakpoints)\n\n  return {\n    apply: ({ property, transform = (x) => x, value }: any) => {\n      if (value === null || value === undefined) {\n        return\n      }\n\n      if (Array.isArray(value)) {\n        value.forEach((v, index) => {\n          if (index === 0) {\n            styles[property] = constrainToNull(transform(v))\n            return\n          }\n\n          const mediaQuery = mediaQueries[index - 1]\n          if (!styles[mediaQuery]) {\n            styles[mediaQuery] = {}\n          }\n\n          styles[mediaQuery][property] = constrainToNull(transform(v))\n        })\n      } else {\n        styles[property] = constrainToNull(transform(value))\n      }\n    },\n    value: () => styles,\n  }\n}\n\nfunction getFontValue(obj, key) {\n  if (!obj) return\n  return obj[key]\n}\n\nexport const BaseBlock = styled(\"div\", (props: any) => {\n  const { breakpoints, colors, lighting, typography, sizing } = props.$theme\n\n  const get = (obj, key) => obj[key]\n  const getScale = (size) => sizing[size] || size\n\n  const styles = build(breakpoints)\n  styles.apply({\n    property: \"color\",\n    value: get(props, \"$color\"),\n    transform: (color) => colors[color] || color,\n  })\n  styles.apply({\n    property: \"backgroundAttachment\",\n    value: get(props, \"$backgroundAttachment\"),\n  })\n  styles.apply({\n    property: \"backgroundClip\",\n    value: get(props, \"$backgroundClip\"),\n  })\n  styles.apply({\n    property: \"backgroundColor\",\n    value: get(props, \"$backgroundColor\"),\n    transform: (backgroundColor) => colors[backgroundColor] || backgroundColor,\n  })\n  styles.apply({\n    property: \"backgroundImage\",\n    value: get(props, \"$backgroundImage\"),\n  })\n  styles.apply({\n    property: \"backgroundOrigin\",\n    value: get(props, \"$backgroundOrigin\"),\n  })\n  styles.apply({\n    property: \"backgroundPosition\",\n    value: get(props, \"$backgroundPosition\"),\n  })\n  styles.apply({\n    property: \"backgroundRepeat\",\n    value: get(props, \"$backgroundRepeat\"),\n  })\n  styles.apply({\n    property: \"backgroundSize\",\n    value: get(props, \"$backgroundSize\"),\n  })\n  styles.apply({\n    property: \"background\",\n    value: get(props, \"$background\"),\n  })\n  styles.apply({\n    property: \"fontFamily\",\n    value: get(props, \"$font\"),\n    transform: (font) => getFontValue(typography[font], \"fontFamily\"),\n  })\n  styles.apply({\n    property: \"fontWeight\",\n    value: get(props, \"$font\"),\n    transform: (font) => getFontValue(typography[font], \"fontWeight\"),\n  })\n  styles.apply({\n    property: \"fontSize\",\n    value: get(props, \"$font\"),\n    transform: (font) => getFontValue(typography[font], \"fontSize\"),\n  })\n  styles.apply({\n    property: \"lineHeight\",\n    value: get(props, \"$font\"),\n    transform: (font) => getFontValue(typography[font], \"lineHeight\"),\n  })\n\n  styles.apply({\n    property: \"alignContent\",\n    value: get(props, \"$alignContent\"),\n  })\n  styles.apply({ property: \"alignItems\", value: get(props, \"$alignItems\") })\n  styles.apply({ property: \"alignSelf\", value: get(props, \"$alignSelf\") })\n  styles.apply({ property: \"display\", value: get(props, \"$display\") })\n  styles.apply({ property: \"flex\", value: get(props, \"$flex\") })\n  styles.apply({\n    property: \"flexDirection\",\n    value: get(props, \"$flexDirection\"),\n  })\n  styles.apply({ property: \"grid\", value: get(props, \"$grid\") })\n  styles.apply({ property: \"gridArea\", value: get(props, \"$gridArea\") })\n  styles.apply({\n    property: \"gridAutoColumns\",\n    value: get(props, \"$gridAutoColumns\"),\n  })\n  styles.apply({\n    property: \"gridAutoFlow\",\n    value: get(props, \"$gridAutoFlow\"),\n  })\n  styles.apply({\n    property: \"gridAutoRows\",\n    value: get(props, \"$gridAutoRows\"),\n  })\n  styles.apply({ property: \"gridColumn\", value: get(props, \"$gridColumn\") })\n  styles.apply({\n    property: \"gridColumnEnd\",\n    value: get(props, \"$gridColumnEnd\"),\n  })\n  styles.apply({\n    property: \"gridColumnGap\",\n    value: get(props, \"$gridColumnGap\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"gridColumnStart\",\n    value: get(props, \"$gridColumnStart\"),\n  })\n  styles.apply({\n    property: \"gridGap\",\n    value: get(props, \"$gridGap\"),\n    transform: getScale,\n  })\n  styles.apply({ property: \"gridRow\", value: get(props, \"$gridRow\") })\n  styles.apply({ property: \"gridRowEnd\", value: get(props, \"$gridRowEnd\") })\n  styles.apply({\n    property: \"gridRowGap\",\n    value: get(props, \"$gridRowGap\"),\n    transform: getScale,\n  })\n  styles.apply({ property: \"gridRowStart\", value: get(props, \"$gridRowStart\") })\n  styles.apply({ property: \"gridTemplate\", value: get(props, \"$gridTemplate\") })\n  styles.apply({\n    property: \"gridTemplateAreas\",\n    value: get(props, \"$gridTemplateAreas\"),\n  })\n  styles.apply({\n    property: \"gridTemplateColumns\",\n    value: get(props, \"$gridTemplateColumns\"),\n  })\n  styles.apply({\n    property: \"gridTemplateRows\",\n    value: get(props, \"$gridTemplateRows\"),\n  })\n  styles.apply({\n    property: \"justifyContent\",\n    value: get(props, \"$justifyContent\"),\n  })\n  styles.apply({\n    property: \"justifyItems\",\n    value: get(props, \"$justifyItems\"),\n  })\n  styles.apply({ property: \"justifySelf\", value: get(props, \"$justifySelf\") })\n  styles.apply({ property: \"position\", value: get(props, \"$position\") })\n  styles.apply({ property: \"transform\", value: get(props, \"$transform\") })\n  styles.apply({\n    property: \"width\",\n    value: get(props, \"$width\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"minWidth\",\n    value: get(props, \"$minWidth\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"maxWidth\",\n    value: get(props, \"$maxWidth\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"height\",\n    value: get(props, \"$height\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"minHeight\",\n    value: get(props, \"$minHeight\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"maxHeight\",\n    value: get(props, \"$maxHeight\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"overflowX\",\n    value: get(props, \"$overflow\"),\n    transform: (overflow) => {\n      if (overflow === \"scrollX\") {\n        return \"scroll\"\n      }\n      return null\n    },\n  })\n  styles.apply({\n    property: \"overflowY\",\n    value: get(props, \"$overflow\"),\n    transform: (overflow) => {\n      if (overflow === \"scrollY\") {\n        return \"scroll\"\n      }\n      return null\n    },\n  })\n  styles.apply({\n    property: \"overflow\",\n    value: get(props, \"$overflow\"),\n    transform: (overflow) => {\n      if (overflow !== \"scrollX\" && overflow !== \"scrollY\") {\n        return overflow\n      }\n      return null\n    },\n  })\n\n  styles.apply({\n    property: \"margin\",\n    value: get(props, \"$margin\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"marginTop\",\n    value: get(props, \"$marginTop\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"marginRight\",\n    value: get(props, \"$marginRight\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"marginBottom\",\n    value: get(props, \"$marginBottom\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"marginLeft\",\n    value: get(props, \"$marginLeft\"),\n    transform: getScale,\n  })\n\n  styles.apply({\n    property: \"padding\",\n    value: get(props, \"$padding\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"paddingTop\",\n    value: get(props, \"$paddingTop\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"paddingRight\",\n    value: get(props, \"$paddingRight\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"paddingBottom\",\n    value: get(props, \"$paddingBottom\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"paddingLeft\",\n    value: get(props, \"$paddingLeft\"),\n    transform: getScale,\n  })\n  styles.apply({ property: \"borderRadius\", value: get(props, \"$borderRadius\") })\n  styles.apply({\n    property: \"boxShadow\",\n    value: get(props, \"$boxShadow\"),\n    transform: (boxShadow) => lighting[boxShadow] || boxShadow,\n  })\n\n  styles.apply({\n    property: \"placeContent\",\n    value: get(props, \"$placeContent\"),\n  })\n  styles.apply({ property: \"placeItems\", value: get(props, \"$placeItems\") })\n  styles.apply({ property: \"placeSelf\", value: get(props, \"$placeSelf\") })\n  styles.apply({\n    property: \"flexWrap\",\n    value: get(props, \"$flexWrap\"),\n    transform: () => \"wrap\",\n  })\n\n  styles.apply({\n    property: \"top\",\n    value: get(props, \"$top\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"right\",\n    value: get(props, \"$right\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"left\",\n    value: get(props, \"$left\"),\n    transform: getScale,\n  })\n  styles.apply({\n    property: \"bottom\",\n    value: get(props, \"$bottom\"),\n    transform: getScale,\n  })\n\n  styles.apply({ property: \"textAlign\", value: get(props, \"$textAlign\") })\n  styles.apply({ property: \"textOverflow\", value: get(props, \"$textOverflow\") })\n  styles.apply({ property: \"whiteSpace\", value: get(props, \"$whiteSpace\") })\n  styles.apply({ property: \"cursor\", value: get(props, \"$cursor\") })\n\n  return styles.value()\n})\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { getOverrides } from \"../helpers/overrides\"\nimport { BaseBlock } from \"./styled-components\"\nimport { BlockPropsT } from \"./types\"\n\nexport const Block: React.FC<BlockPropsT> = ({\n  forwardedRef,\n  children,\n  as = \"div\",\n  overrides = {},\n  color,\n  backgroundAttachment,\n  backgroundClip,\n  backgroundColor,\n  backgroundImage,\n  backgroundOrigin,\n  backgroundPosition,\n  backgroundRepeat,\n  backgroundSize,\n  background,\n  font,\n  alignContent,\n  alignItems,\n  alignSelf,\n  flexDirection,\n  display,\n  flex,\n  grid,\n  gridArea,\n  gridAutoColumns,\n  gridAutoFlow,\n  gridAutoRows,\n  gridColumn,\n  gridColumnEnd,\n  gridColumnGap,\n  gridColumnStart,\n  gridGap,\n  gridRow,\n  gridRowEnd,\n  gridRowGap,\n  gridRowStart,\n  gridTemplate,\n  gridTemplateAreas,\n  gridTemplateColumns,\n  gridTemplateRows,\n  justifyContent,\n  justifyItems,\n  justifySelf,\n  position,\n  transform,\n  width,\n  minWidth,\n  maxWidth,\n  height,\n  minHeight,\n  maxHeight,\n  overflow,\n  margin,\n  marginTop,\n  marginRight,\n  marginBottom,\n  marginLeft,\n  padding,\n  paddingTop,\n  paddingRight,\n  paddingBottom,\n  paddingLeft,\n  borderRadius,\n  boxShadow,\n  placeContent,\n  placeItems,\n  placeSelf,\n  flexWrap,\n  left,\n  top,\n  right,\n  bottom,\n  textAlign,\n  textOverflow,\n  whiteSpace,\n  cursor,\n  ...restProps\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n\n  return (\n    <BaseBlock\n      {...sharedProps}\n      // coerced to any because because of how react components are typed.\n      // cannot guarantee an html element\n      ref={forwardedRef}\n      $as={as}\n      $color={color}\n      $backgroundAttachment={backgroundAttachment}\n      $backgroundClip={backgroundClip}\n      $backgroundColor={backgroundColor}\n      $backgroundImage={backgroundImage}\n      $backgroundOrigin={backgroundOrigin}\n      $backgroundPosition={backgroundPosition}\n      $backgroundRepeat={backgroundRepeat}\n      $backgroundSize={backgroundSize}\n      $background={background}\n      $font={font}\n      $alignContent={alignContent}\n      $alignItems={alignItems}\n      $alignSelf={alignSelf}\n      $flexDirection={flexDirection}\n      $display={display}\n      $flex={flex}\n      $grid={grid}\n      $gridArea={gridArea}\n      $gridAutoColumns={gridAutoColumns}\n      $gridAutoFlow={gridAutoFlow}\n      $gridAutoRows={gridAutoRows}\n      $gridColumn={gridColumn}\n      $gridColumnEnd={gridColumnEnd}\n      $gridColumnGap={gridColumnGap}\n      $gridColumnStart={gridColumnStart}\n      $gridGap={gridGap}\n      $gridRow={gridRow}\n      $gridRowEnd={gridRowEnd}\n      $gridRowGap={gridRowGap}\n      $gridRowStart={gridRowStart}\n      $gridTemplate={gridTemplate}\n      $gridTemplateAreas={gridTemplateAreas}\n      $gridTemplateColumns={gridTemplateColumns}\n      $gridTemplateRows={gridTemplateRows}\n      $justifyContent={justifyContent}\n      $justifyItems={justifyItems}\n      $justifySelf={justifySelf}\n      $position={position}\n      $transform={transform}\n      $width={width}\n      $minWidth={minWidth}\n      $maxWidth={maxWidth}\n      $height={height}\n      $minHeight={minHeight}\n      $maxHeight={maxHeight}\n      $overflow={overflow}\n      $margin={margin}\n      $marginTop={marginTop}\n      $marginRight={marginRight}\n      $marginBottom={marginBottom}\n      $marginLeft={marginLeft}\n      $padding={padding}\n      $paddingTop={paddingTop}\n      $paddingRight={paddingRight}\n      $paddingBottom={paddingBottom}\n      $paddingLeft={paddingLeft}\n      $borderRadius={borderRadius}\n      $boxShadow={boxShadow}\n      $placeContent={placeContent}\n      $placeItems={placeItems}\n      $placeSelf={placeSelf}\n      $flexWrap={flexWrap}\n      $left={left}\n      $top={top}\n      $right={right}\n      $bottom={bottom}\n      $textAlign={textAlign}\n      $textOverflow={textOverflow}\n      $whiteSpace={whiteSpace}\n      $cursor={cursor}\n      {...restProps}\n      $style={overrides.Block}\n    >\n      {children}\n    </BaseBlock>\n  )\n}\n\nconst BlockComponent = React.forwardRef<BlockPropsT, HTMLElement>((props: BlockPropsT, ref) => (\n  <Block {...props} forwardedRef={ref} />\n))\n\nBlockComponent.displayName = \"Block\"\nexport default BlockComponent\n","/**\n * Like its name, the Block component is a base Lego block to build whole layouts. It accepts common layout CSS properties and could be added with media query using override. A responsive grid layout could be made with Block components like the below example. (Resize browser to view.)\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n * import { useTheme } from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const theme = useTheme()\n *   return (\n *     <System.Block\n *       display=\"grid\"\n *       gridColumnGap=\"scale1200\"\n *       gridRowGap=\"scale900\"\n *       overrides={{\n *         Block: {\n *           gridTemplateColumns: \"1fr 3fr\",\n *           padding: theme.sizing.scale900,\n *           [theme.mediaQuery.large]: { // responsive mediaQuery Usage\n *             gridTemplateColumns: \"1fr\",\n *             padding: `0 ${theme.sizing.scale800}`,\n *           },\n *         },\n *       }}\n *     >\n *       <System.Block backgroundColor=\"backgroundPrimary\" // Accepts all semantic color properties from the theme\n *       >\n *         <System.DisplayXSmall>Account</System.DisplayXSmall>\n *         <System.Spacing height=\"scale400\" />\n *         <System.Block\n *           font=\"font700\" // Accepts all themeable font properties\n *         >\n *           John Doe\n *         </System.Block>\n *       </System.Block>\n *       <System.Block display=\"flex\" alignItems=\"center\" backgroundColor=\"backgroundPrimary\">\n *         <System.Block font=\"font700\" color=\"contentPrimary\">\n *           <System.StyledLink>\n *             <System.Block font=\"font700\" color=\"primary\">\n *               Become a member\n *             </System.Block>\n *           </System.StyledLink>{\" \"}\n *           to get access of all contents\n *         </System.Block>\n *       </System.Block>\n *     </System.Block>\n *   )\n * }\n * ```\n * @param as - React.ElementType\n * @param display - React.ElementType\n * @param color - string | Array\\<string\\>\n * @param backgroundColor - string | Array\\<string\\>\n * @param font - string | Array\\<string\\>\n * @param width - 0 | string | Array\\<string\\>\n * @param height - 0 | string | Array\\<string\\>\n * @param paddingTop - 0 | string | Array\\<string\\>\n * @param paddingRight - 0 | string | Array\\<string\\>\n * @param paddingBottom - 0 | string | Array\\<string\\>\n * @param paddingLeft - 0 | string | Array\\<string\\>\n * @param marginTop - 0 | string | Array\\<string\\>\n * @param marginRight - 0 | string | Array\\<string\\>\n * @param marginBottom - 0 | string | Array\\<string\\>\n * @param marginLeft - 0 | string | Array\\<string\\>\n * @param overrides - \\{ Block?: StyletronReact.StyleObject }\n */\nexport const Block: React.FC<BlockPropsT> = BlockComp\nexport * from \"./types\"\n\nimport { Block as BlockComp } from \"./block\"\nimport { BlockPropsT } from \"./types\"\n","import { styled } from \"styletron-react\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const Nav = styled(\"nav\", ({ $theme }: Props) => {\n  return {\n    width: \"100%\",\n  }\n})\n\nexport const NavWrap = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    padding: `${$theme.sizing.scale900} ${$theme.sizing.scale900}`,\n    display: \"flex\",\n    flexDirection: \"row\",\n    justifyContent: \"space-between\",\n    alignItems: \"center\",\n  }\n})\n\nexport const NavigationItemWrap = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    border: \"none\",\n    outline: \"none\",\n    background: \"none\",\n    cursor: \"pointer\",\n    display: \"inline-block\",\n    marginLeft: $theme.sizing.scale1200,\n  }\n})\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { NavigationItemWrap } from \"./styled-components\"\nimport { HeaderNavigationItemPropsT } from \"./types\"\n\nexport const HeaderNavigationItem: React.FC<HeaderNavigationItemPropsT> = ({\n  children,\n  onClick = () => void 0,\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n\n  return (\n    <NavigationItemWrap onClick={onClick} {...sharedProps}>\n      {children}\n    </NavigationItemWrap>\n  )\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { HeaderNavigationPropsT } from \"./types\"\nimport { Nav, NavWrap } from \"./styled-components\"\n\nexport const HeaderNavigation: React.FC<HeaderNavigationPropsT> = ({\n  children,\n  overrides = {},\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n\n  return (\n    <Nav $style={overrides.Header} {...sharedProps}>\n      <NavWrap {...sharedProps}>{children}</NavWrap>\n    </Nav>\n  )\n}\n\nHeaderNavigation.defaultProps = {\n  overrides: {},\n}\n","/**\n * The HeaderNavigation component is used to display the main menus. The component has default padding and a gap between the logo block and the menu area.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n * import { useTheme } from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const theme = useTheme()\n *\n *   return (\n *     <System.HeaderNavigation>\n *       <System.Block>\n *         <System.Icon width=\"98px\" height=\"98px\">\n *           <path d=\"M98 0H0V98L98 0Z\" fill=\"#005AFA\" />\n *           <path d=\"M0 98L98 0V98H0Z\" fill=\"#E8E8E8\" />\n *         </System.Icon>\n *       </System.Block>\n *       <System.Block\n *         overrides={{\n *           Block: {\n *             [theme.mediaQuery.large]: {\n *               // responsive mediaQuery Usage (resize browser to view)\n *               display: \"none\",\n *             },\n *           },\n *         }}\n *       >\n *         <System.HeaderNavigationItem>\n *           <System.ParagraphLarge>Item0</System.ParagraphLarge>\n *         </System.HeaderNavigationItem>\n *         <System.HeaderNavigationItem>\n *           <System.ParagraphLarge>Item1</System.ParagraphLarge>\n *         </System.HeaderNavigationItem>\n *       </System.Block>\n *\n *       <System.Block\n *         overrides={{\n *           Block: {\n *             display: \"none\",\n *             [theme.mediaQuery.large]: {\n *               // responsive mediaQuery Usage (resize browser to view)\n *               display: \"block\",\n *             },\n *           },\n *         }}\n *       >\n *         <System.HeaderNavigationItem>\n *           <System.Icon width=\"24px\" height=\"24px\">\n *             <path\n *               d=\"M 3 12 L 21 12 M 3 6 L 21 6 M 3 18 L 21 18\"\n *               strokeWidth=\"2\"\n *               stroke=\"rgb(0,0,0)\"\n *               strokeLinecap=\"round\"\n *               strokeLinejoin=\"round\"\n *               strokeDasharray=\"\"\n *             ></path>\n *           </System.Icon>\n *         </System.HeaderNavigationItem>\n *       </System.Block>\n *     </System.HeaderNavigation>\n *   )\n * }\n * ```\n * @param children - React.ReactNode\n * @param overrides - \\{ Header?: StyletronReact.StyleObject }\n */\nexport const HeaderNavigation: React.FC<HeaderNavigationPropsT> = HeaderNavigationComp\nexport { HeaderNavigationItem } from \"./header-navigation-item\"\nexport * from \"./types\"\n\nimport { HeaderNavigation as HeaderNavigationComp } from \"./header-navigation\"\nimport { HeaderNavigationPropsT } from \"./types\"\n","export enum KIND {\n  positive = \"positive\",\n  negative = \"negative\",\n}\n","import { styled } from \"styletron-react\"\nimport { KIND } from \"./constants\"\nimport { motion } from \"framer-motion\"\nimport { ThemeT } from \"../themes\"\nimport { Extendtable } from \"../utils/extendable\"\n\ntype Props<U = Record<string, unknown>> = { $theme: ThemeT } & Extendtable<U>\n\nexport const Wrap = styled(motion.div, ({ $theme }: Props) => {\n  return {\n    position: \"fixed\",\n    top: \"50%\",\n    left: \"50%\",\n    transform: \"translate(-50%, -50%)\",\n    zIndex: $theme.zIndex.alert,\n  }\n})\n\nexport const InnerWrap = styled(\"div\", ({ $theme, $kind }: Props<{ $kind: keyof typeof KIND }>) => {\n  return {\n    minWidth: \"450px\",\n    minHeight: \"200px\",\n    padding: `0 ${$theme.sizing.scale900}`,\n    ...getKindStyles({ $theme, $kind }),\n    [$theme.mediaQuery.medium]: {\n      minWidth: `calc(100vw - (${$theme.sizing.scale900} * 2))`,\n      boxSizing: \"border-box\",\n    },\n  }\n})\n\nexport const AlertContent = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    padding: `${$theme.sizing.scale1200} 0`,\n    display: \"flex\",\n    flexDirection: \"column\",\n    justifyContent: \"space-between\",\n  }\n})\n\nexport const AlertHeader = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    marginBottom: `${$theme.sizing.scale1200}`,\n    color: `${$theme.colors.contentInversePrimary}`,\n    textAlign: \"center\",\n    ...$theme.typography.HeadingMedium,\n  }\n})\n\nexport const AlertBody = styled(\"div\", {})\n\nexport const AlertTitle = styled(\"div\", {})\n\nexport const AlertIcon = styled(\"div\", ({ $theme }: Props) => {\n  return {\n    marginBottom: `${$theme.sizing.scale900}`,\n    textAlign: \"center\",\n  }\n})\n\nexport const AlertMessage = styled(\"p\", ({ $theme }: Props) => {\n  return {\n    color: `${$theme.colors.contentInversePrimary}`,\n    textAlign: \"center\",\n    margin: \"0px\",\n    padding: \"0px\",\n    maxWidth: \"450px\",\n    ...$theme.typography.ParagraphSmall,\n  }\n})\n\nfunction getKindStyles({ $theme, $kind }) {\n  switch ($kind) {\n    case KIND.positive:\n      return {\n        background: $theme.colors.primary,\n      }\n    case KIND.negative:\n      return {\n        background: $theme.colors.negative,\n      }\n    default:\n      return Object.freeze({})\n  }\n}\n","import { AnimatePresence } from \"framer-motion\"\nimport * as React from \"react\"\nimport { useContext, useRef } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { useOnClickOutside } from \"../hooks\"\nimport { KIND } from \"./constants\"\nimport {\n  AlertBody,\n  InnerWrap,\n  AlertHeader,\n  AlertIcon,\n  AlertMessage,\n  AlertTitle,\n  AlertContent,\n  Wrap,\n} from \"./styled-components\"\nimport { AlertPropsT } from \"./types\"\n\nexport const Alert: React.FC<AlertPropsT> = ({\n  title,\n  body,\n  message,\n  kind = KIND.positive,\n  show,\n  closeOnClick,\n  overrides = {},\n}) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme, $kind: kind }\n  const ref = useRef(null)\n  useOnClickOutside(ref, closeOnClick)\n  const defaultTransition = {\n    ease: theme.animation.easeInCurve,\n    duration: theme.animation.timing200,\n  }\n  const modal = {\n    hidden: { opacity: 0, top: \"53%\", transition: defaultTransition },\n    visible: {\n      opacity: 1,\n      top: \"50%\",\n      transition: { ...defaultTransition, delay: theme.animation.timing200 },\n    },\n  }\n  const motionProps = {\n    initial: \"hidden\",\n    animate: \"visible\",\n    exit: \"hidden\",\n    variants: modal,\n  }\n\n  return (\n    <AnimatePresence>\n      {show && (\n        <Wrap ref={ref} $style={overrides.Wrap} {...sharedProps} {...motionProps}>\n          <InnerWrap {...sharedProps}>\n            <AlertContent {...sharedProps}>\n              <AlertHeader $style={overrides.AlertHeader} {...sharedProps}>\n                <AlertTitle>{title}</AlertTitle>\n              </AlertHeader>\n              <AlertBody $style={overrides.AlertBody}>\n                {body && <AlertIcon {...sharedProps}>{body}</AlertIcon>}\n                <AlertMessage {...sharedProps}>{message}</AlertMessage>\n              </AlertBody>\n            </AlertContent>\n          </InnerWrap>\n        </Wrap>\n      )}\n    </AnimatePresence>\n  )\n}\n\nAlert.defaultProps = {\n  overrides: {},\n  title: \"Title\",\n  message: \"Message\",\n  kind: KIND.positive,\n  show: false,\n}\n","/**\n * The Alert component is used to notify important messages to the user. It is recommended to use it with overlay or overridden shadows.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n * import { useTheme } from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const [show, setShow] = React.useState(false)\n *   const theme = useTheme()\n *\n *   return (\n *     <>\n *       <System.Button onClick={() => setShow(!show)}>{show ? \"Close\" : \"Show Alert\"}</System.Button>\n *       {show && (\n *         <System.Block\n *           position=\"fixed\"\n *           width=\"100%\"\n *           height=\"100%\"\n *           top=\"0px\"\n *           left=\"0px\"\n *           overrides={{\n *             Block: {\n *               boxShadow: theme.lighting.overlay400,\n *               zIndex: theme.zIndex.overlay,\n *             },\n *           }}\n *         />\n *       )}\n *       <System.Alert\n *         show={show}\n *         title=\"Title\"\n *         message=\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris porta tincidunt iaculis. Aenean sit amet augue eros. Duis rhoncus ex sit amet felis venenatis fringilla.\"\n *         kind=\"negative\"\n *         closeOnClick={() => setShow(false)}\n *       />\n *     </>\n *   )\n * }\n * ```\n * @param title - string\n * @param body - React.ReactNode\n * @param message - string\n * @param kind - \"positive\" | \"negative\"\n * @param show - boolean\n * @param closeOnClick - (event: React.MouseEvent<HTMLButtonElement>) => void\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject; AlertHeader?: StyletronReact.StyleObject; AlertBody?: StyletronReact.StyleObject }\n */\nexport const Alert: React.FC<AlertPropsT> = AlertComp\nexport * from \"./types\"\n\nimport { Alert as AlertComp } from \"./alert\"\nimport { AlertPropsT } from \"./types\"\n","export const TOAST_KIND = {\n  primary: \"primary\",\n  secondary: \"secondary\",\n}\n","import { styled } from \"styletron-react\"\nimport { motion } from \"framer-motion\"\nimport { TOAST_KIND } from \"./constants\"\n\nexport const Wrap = styled(motion.div, ({ $theme, $kind }: any) => {\n  return {\n    paddingTop: $theme.sizing.scale100,\n    paddingRight: $theme.sizing.scale100,\n    paddingBottom: $theme.sizing.scale100,\n    paddingLeft: $theme.sizing.scale500,\n    borderRadius: \"1000px\",\n    display: \"flex\",\n    alignItems: \"center\",\n    position: \"fixed\",\n    bottom: \"0px\",\n    left: \"50%\",\n    zIndex: $theme.zIndex.toast,\n    whiteSpace: \"nowrap\",\n    ...$theme.typography.LabelMedium,\n    ...getKindStyles({ $theme, $kind }),\n  }\n})\n\nfunction getKindStyles({ $theme, $kind }) {\n  switch ($kind) {\n    case TOAST_KIND.primary:\n      return {\n        color: $theme.colors.primary,\n        backgroundColor: $theme.colors.backgroundTertiary,\n      }\n    case TOAST_KIND.secondary:\n      return {\n        color: $theme.colors.contentSecondary,\n        backgroundColor: $theme.colors.backgroundSecondary,\n      }\n\n    default:\n      return Object.freeze({})\n  }\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport * as System from \"../lighthouse\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { ToastPropsT } from \"./types\"\nimport { Wrap } from \"./styled-components\"\nimport { AnimatePresence } from \"framer-motion\"\n\nexport const Toast: React.FC<ToastPropsT> = ({\n  overrides = {},\n  show,\n  kind,\n  message,\n  buttonText,\n  onButtonClick = () => void 0,\n}) => {\n  const theme: System.ThemeT = useContext(ThemeContext)\n  const sharedProps = { $theme: theme, $kind: kind }\n\n  const defaultTransition = {\n    ease: theme.animation.easeInCurve,\n    duration: theme.animation.timing200,\n  }\n  const toast = {\n    hidden: {\n      x: \"-50%\", // centering position\n      y: `calc(100% + ${theme.sizing.scale800})`,\n      transition: defaultTransition,\n    },\n    visible: {\n      x: \"-50%\", // centering position\n      y: `-${theme.sizing.scale800}`,\n      transition: defaultTransition,\n    },\n  }\n  const motionProps = {\n    initial: \"hidden\",\n    animate: \"visible\",\n    exit: \"hidden\",\n    variants: toast,\n  }\n\n  return (\n    <AnimatePresence>\n      {show && (\n        <Wrap {...sharedProps} {...motionProps} $style={overrides.Wrap}>\n          {message}\n          <System.Spacing width=\"scale400\" />\n          <System.Button shape=\"circle\" kind={kind} onClick={onButtonClick}>\n            {buttonText}\n          </System.Button>\n        </Wrap>\n      )}\n    </AnimatePresence>\n  )\n}\n\nToast.defaultProps = {\n  show: false,\n  kind: \"primary\",\n  message: \"Message sent\",\n  buttonText: \"Close\",\n}\n","/**\n * The Toast component.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const [toastShow, setToastShow] = React.useState(false)\n *\n *   return (\n *     <>\n *       <System.Button onClick={() => setToastShow(!toastShow)}>Show Toast</System.Button>\n *\n *       <System.Toast\n *         show={toastShow}\n *         onButtonClick={() => setToastShow(false)}\n *       />\n *     </>\n *   )\n * }\n * ```\n * @param show - boolean\n * @param kind - \"primary\" | \"secondary\"\n * @param message - string\n * @param buttonText - string\n * @param onButtonClick - (event: React.MouseEvent<HTMLButtonElement>) => void\n * @param overrides - \\{ Wrap?: StyletronReact.StyleObject; Loading?: StyletronReact.StyleObject; ModalHeader?: StyletronReact.StyleObject; Title?: StyletronReact.StyleObject; ModalBody?: StyletronReact.StyleObject; Description?: StyletronReact.StyleObject; ModalFooter?: StyletronReact.StyleObject }\n */\nexport const Toast: React.FC<ToastPropsT> = ToastComp\nexport * from \"./types\"\n\nimport { Toast as ToastComp } from \"./toast\"\nimport { ToastPropsT } from \"./types\"\n","import * as React from \"react\"\nimport { TypographyPropsT } from \"./types\"\nimport { handleNewline } from \"../utils/handle-newline\"\nimport * as System from \"../lighthouse\"\n\nconst resetStyles = {\n  marginTop: \"0px\",\n  marginBottom: \"0px\",\n  marginLeft: \"0px\",\n  marginRight: \"0px\",\n\n  paddingTop: \"0px\",\n  paddingBottom: \"0px\",\n  paddingLeft: \"0px\",\n  paddingRight: \"0px\",\n}\n\nexport const ParagraphXSmall: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"ParagraphXSmall\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const ParagraphSmall: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"ParagraphSmall\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const ParagraphMedium: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"ParagraphMedium\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const ParagraphLarge: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"ParagraphLarge\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const LabelXSmall: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"LabelXSmall\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const LabelSmall: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"LabelSmall\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const LabelMedium: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"LabelMedium\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const LabelLarge: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"LabelLarge\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const HeadingXSmall: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"HeadingXSmall\"\n      as=\"h6\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const HeadingSmall: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"HeadingSmall\"\n      as=\"h5\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const HeadingMedium: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"HeadingMedium\"\n      as=\"h4\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const HeadingLarge: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"HeadingLarge\"\n      as=\"h3\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const HeadingXLarge: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"HeadingXLarge\"\n      as=\"h2\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const HeadingXXLarge: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"HeadingXXLarge\"\n      as=\"h1\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const DisplayXSmall: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"DisplayXSmall\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const DisplaySmall: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"DisplaySmall\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const DisplayMedium: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"DisplayMedium\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport const DisplayLarge: React.FC<TypographyPropsT> = React.forwardRef(function Comp(\n  props: TypographyPropsT,\n  ref: any\n) {\n  return (\n    <System.Block\n      font=\"DisplayLarge\"\n      as=\"p\"\n      color=\"contentPrimary\"\n      forwardedRef={ref}\n      {...resetStyles}\n      {...props}\n    >\n      {handleNewline(props.children)}\n    </System.Block>\n  )\n})\n\nexport * from \"./types\"\n","import * as React from \"react\"\n\nexport const TabsContext = React.createContext<any>(null)\n","import { styled } from \"styletron-react\"\nimport { motion } from \"framer-motion\"\n\nexport const Wrap = styled(\"div\", ({ $theme }: any) => {\n  return {}\n})\n\nexport const TabListWrap = styled(\"div\", ({ $theme, $tabListScroll }: any) => {\n  return {\n    ...getTabListStyles({ $tabListScroll }),\n  }\n})\n\nexport const TabWrap = styled(\"div\", ({ $theme }: any) => {\n  return {\n    position: \"relative\",\n    padding: `${$theme.sizing.scale800} 0px`,\n    cursor: \"pointer\",\n  }\n})\nexport const TabActiveBar = styled(motion.div, ({ $theme }: any) => {\n  return {\n    width: \"100%\",\n    height: \"2px\",\n    background: $theme.colors.primary,\n    position: \"absolute\",\n    bottom: \"0px\",\n    left: \"0px\",\n  }\n})\n\nexport const TabPanelsWrap = styled(\"div\", ({ $theme }: any) => {\n  return {}\n})\n\nexport const TabPanelWrap = styled(\"div\", ({ $theme }: any) => {\n  return {}\n})\n\nexport function getTabListStyles({ $tabListScroll }) {\n  if ($tabListScroll)\n    return {\n      overflow: \"scroll\",\n      \"::-webkit-scrollbar\": {\n        width: \"0px\",\n      },\n    }\n  else return Object.freeze({})\n}\n\nexport function getFlexItemStyles({ $tabListScroll }) {\n  if ($tabListScroll)\n    return {\n      minWidth: \"initial\",\n    }\n  else return Object.freeze({})\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { TabsContext } from \"../helpers/tabs-provider\"\nimport { getFlexItemStyles, TabListWrap } from \"./styled-components\"\nimport { TabListPropsT } from \"./types\"\nimport * as System from \"../lighthouse\"\nimport { AnimateSharedLayout } from \"framer-motion\"\n\nexport const TabList: React.FC<TabListPropsT> = ({ overrides = {}, children }) => {\n  const theme = useContext(ThemeContext)\n  const ctx = useContext(TabsContext)\n  const sharedProps = { $theme: theme, $tabListScroll: ctx.tabListScroll }\n\n  return (\n    <AnimateSharedLayout>\n      <TabListWrap {...sharedProps} $style={overrides.TabListWrap}>\n        <System.FlexBox columnGap={theme.sizing.scale600}>\n          {React.Children.map(children, (child, id) => (\n            <System.FlexItem key={id} {...getFlexItemStyles(sharedProps)}>\n              {React.isValidElement(child) &&\n                React.cloneElement(child, {\n                  $id: id,\n                })}\n            </System.FlexItem>\n          ))}\n        </System.FlexBox>\n      </TabListWrap>\n    </AnimateSharedLayout>\n  )\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { TabsContext } from \"../helpers/tabs-provider\"\nimport { TabActiveBar, TabWrap } from \"./styled-components\"\nimport { TabPropsT } from \"./types\"\nimport * as System from \"../lighthouse\"\nimport { motion } from \"framer-motion\"\n\nexport const Tab: React.FC<TabPropsT> = ({ children, $id }) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n  const ctx = useContext(TabsContext)\n  const isActive = $id === ctx.activeTab\n\n  const defaultTransition = {\n    ease: theme.animation.easeInCurve,\n    duration: theme.animation.timing200,\n  }\n  const textMotionProps = {\n    animate: {\n      color: isActive ? theme.colors.primary : theme.colors.contentPrimary,\n    },\n    transition: defaultTransition,\n  }\n  const barMotionProps = {\n    layoutId: \"tab-active-bar\",\n    transition: defaultTransition,\n  }\n\n  return (\n    <TabWrap onClick={() => ctx.setActiveTab($id)} {...sharedProps}>\n      <System.LabelMedium\n        as={motion.div}\n        textAlign=\"center\"\n        {...getTextOverflowStyles({ $tabListScroll: ctx.tabListScroll })}\n        {...textMotionProps}\n      >\n        {children}\n      </System.LabelMedium>\n      {isActive && <TabActiveBar {...sharedProps} {...barMotionProps} />}\n    </TabWrap>\n  )\n}\n\nexport function getTextOverflowStyles({ $tabListScroll }) {\n  if ($tabListScroll)\n    return {\n      textOverflow: \"hidden\",\n      whiteSpace: \"nowrap\",\n      overflow: \"hidden\",\n    }\n  else return Object.freeze({})\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { TabPanelsWrap } from \"./styled-components\"\nimport { TabPanelsPropsT } from \"./types\"\n\nexport const TabPanels: React.FC<TabPanelsPropsT> = ({ overrides = {}, children }) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n\n  return (\n    <TabPanelsWrap {...sharedProps} $style={overrides.TabPanelsWrap}>\n      {Array.isArray(children) &&\n        children.map(\n          (child, id) =>\n            React.isValidElement(child) &&\n            React.cloneElement(child, {\n              $id: id,\n            })\n        )}\n    </TabPanelsWrap>\n  )\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { TabsContext } from \"../helpers/tabs-provider\"\nimport { TabPanelWrap } from \"./styled-components\"\nimport { TabPanelPropsT } from \"./types\"\n\nexport const TabPanel: React.FC<TabPanelPropsT> = ({ children, $id }) => {\n  const theme = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n  const ctx = useContext(TabsContext)\n  const isActive = $id === ctx.activeTab\n\n  return isActive ? <TabPanelWrap {...sharedProps}>{children}</TabPanelWrap> : <></>\n}\n","import * as React from \"react\"\nimport { useContext, useEffect, useState } from \"react\"\nimport * as System from \"../lighthouse\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { TabsPropsT } from \"./types\"\nimport { Wrap } from \"./styled-components\"\nimport { TabsContext } from \"../helpers/tabs-provider\"\n\nexport const Tabs: React.FC<TabsPropsT> = ({\n  overrides = {},\n  children,\n  current,\n  tabListScroll,\n}) => {\n  const theme: System.ThemeT = useContext(ThemeContext)\n  const sharedProps = { $theme: theme }\n\n  const [activeTab, setActiveTab] = useState(current)\n  useEffect(() => {\n    setActiveTab(current)\n  }, [current])\n\n  return (\n    <TabsContext.Provider value={{ activeTab, setActiveTab, tabListScroll }}>\n      <Wrap {...sharedProps} $style={overrides.Wrap}>\n        {children}\n      </Wrap>\n    </TabsContext.Provider>\n  )\n}\n\nTabs.defaultProps = {\n  overrides: {},\n  current: 0,\n}\n","/**\n * The Tabs component.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *     return (\n *         <System.Tabs>\n *           <System.TabList>\n *             <System.Tab>Tab 1</System.Tab>\n *             <System.Tab>Tab 2</System.Tab>\n *             <System.Tab>Tab 3</System.Tab>\n *           </System.TabList>\n *           <System.TabPanels>\n *             <System.TabPanel>TabPanel 1</System.TabPanel>\n *             <System.TabPanel>TabPanel 2</System.TabPanel>\n *             <System.TabPanel>TabPanel 3</System.TabPanel>\n *           </System.TabPanels>\n *         </System.Tabs>\n *     )\n * }\n * ```\n * @param children - React.ReactNode\n * @param current - number\n * @param tabListScroll - boolean\n */\nexport const Tabs: React.FC<TabsPropsT> = TabsComp\nexport { TabList } from \"./tab-list\"\nexport { Tab } from \"./tab\"\nexport { TabPanels } from \"./tab-panels\"\nexport { TabPanel } from \"./tab-panel\"\nexport * from \"./types\"\n\nimport { Tabs as TabsComp } from \"./tabs\"\nimport { TabsPropsT } from \"./types\"\n","export const ALIGN = {\n  center: \"center\",\n  left: \"left\",\n  right: \"right\",\n}\n","import * as React from \"react\"\nimport { IconPropsT } from \"./types\"\nimport { ALIGN } from \"./constants\"\n\nexport const Icon: React.FC<IconPropsT> = ({ width, height, color, align, children, ...rest }) => {\n  return (\n    <svg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      width={width}\n      height={height}\n      fill={color}\n      style={{\n        display: \"block\",\n        ...getAlignStyles({ $align: align }),\n      }}\n      {...rest}\n    >\n      {children}\n    </svg>\n  )\n}\n\nfunction getAlignStyles({ $align }) {\n  switch ($align) {\n    case ALIGN.center:\n      return {\n        margin: \"0 auto\",\n      }\n    case ALIGN.right:\n      return {\n        marginLeft: \"auto\",\n      }\n    default:\n      return Object.freeze({})\n  }\n}\n\nIcon.defaultProps = {\n  align: \"center\",\n}\n","import { motion } from \"framer-motion\"\nimport * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { Icon } from \"./icon\"\nimport { MenuIconPropsT } from \"./types\"\n\nexport const Menu: React.FC<MenuIconPropsT> = ({\n  width,\n  height,\n  color,\n  align,\n  active,\n  ...rest\n}) => {\n  const theme = useContext(ThemeContext)\n  const iconProps = {\n    width,\n    height,\n    align,\n    viewBox: \"0 0 20 8\",\n  }\n  const pathTop = {\n    active: {\n      rotate: 45,\n      y: 3,\n    },\n    inactive: {\n      rotate: 0,\n      y: 0,\n    },\n  }\n  const pathBottom = {\n    active: {\n      rotate: -45,\n      y: -3,\n    },\n    inactive: {\n      rotate: 0,\n      y: 0,\n    },\n  }\n  const motionProps = {\n    animate: active ? \"active\" : \"inactive\",\n    transition: {\n      duration: theme.animation.timing200,\n      ease: theme.animation.easeInCurve,\n    },\n  }\n  return (\n    <Icon {...iconProps}>\n      <motion.path d=\"M0 0H20V2H0V0Z\" fill={color} variants={pathTop} {...motionProps} />\n      <motion.path d=\"M0 6H20V8H0V6Z\" fill={color} variants={pathBottom} {...motionProps} />\n    </Icon>\n  )\n}\n\nMenu.defaultProps = {\n  color: \"black\",\n  active: false,\n}\n","import { motion } from \"framer-motion\"\nimport * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport { MenuIconPropsT } from \"./types\"\nimport * as System from \"../lighthouse\"\n\nexport const DivMenu: React.FC<MenuIconPropsT> = ({ active, ...rest }) => {\n  const theme = useContext(ThemeContext)\n  const pathTop = {\n    active: {\n      rotate: 45,\n      y: 3,\n    },\n    inactive: {\n      rotate: 0,\n      y: 0,\n    },\n  }\n  const pathBottom = {\n    active: {\n      rotate: -45,\n      y: -3,\n    },\n    inactive: {\n      rotate: 0,\n      y: 0,\n    },\n  }\n  const motionProps = {\n    initial: \"inactive\",\n    animate: active ? \"active\" : \"inactive\",\n    transition: {\n      duration: theme.animation.timing200,\n      ease: theme.animation.easeInCurve,\n    },\n  }\n  return (\n    <System.Block width=\"20px\" display=\"flex\" flexDirection=\"column\" justifyContent=\"center\">\n      <System.Block\n        as={motion.div}\n        height=\"2px\"\n        backgroundColor=\"primary\"\n        // @ts-ignore\n        variants={pathTop}\n        {...motionProps}\n      />\n      <System.Block\n        as={motion.div}\n        height=\"2px\"\n        backgroundColor=\"primary\"\n        marginTop=\"4px\"\n        // @ts-ignore\n        variants={pathBottom}\n        {...motionProps}\n      />\n    </System.Block>\n  )\n}\n\nDivMenu.defaultProps = {\n  color: \"black\",\n  active: false,\n}\n","import * as React from \"react\"\nimport { Icon } from \"./icon\"\nimport { IconPropsT } from \"./types\"\n\nexport const ExternalLink: React.FC<IconPropsT> = ({ width, height, color, align, ...rest }) => {\n  const iconProps = {\n    width,\n    height,\n    align,\n    viewBox: \"0 0 24 24\",\n  }\n  return (\n    <Icon {...iconProps}>\n      <path\n        d=\"M 18 13 L 18 19 C 18 20.105 17.105 21 16 21 L 5 21 C 3.895 21 3 20.105 3 19 L 3 8 C 3 6.895 3.895 6 5 6 L 11 6 M 15 3 L 21 3 L 21 9 M 10 14 L 21 3\"\n        fill=\"transparent\"\n        strokeWidth=\"2\"\n        stroke={color}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeDasharray=\"\"\n      ></path>\n    </Icon>\n  )\n}\n\nExternalLink.defaultProps = {\n  color: \"black\",\n}\n","import * as React from \"react\"\nimport { Icon } from \"./icon\"\nimport { IconPropsT } from \"./types\"\n\nexport const Arrow: React.FC<IconPropsT> = ({ width, height, color, align, ...rest }) => {\n  const iconProps = {\n    width,\n    height,\n    align,\n    viewBox: \"0 0 24 24\",\n    fill: \"none\",\n    stroke: color,\n    strokeWidth: 2,\n    strokeLinecap: \"round\",\n  }\n  return (\n    <Icon {...iconProps}>\n      <line x1=\"7\" y1=\"17\" x2=\"17\" y2=\"7\"></line>\n      <polyline points=\"7 7 17 7 17 17\"></polyline>\n    </Icon>\n  )\n}\n\nArrow.defaultProps = {\n  color: \"black\",\n}\n","import * as React from \"react\"\nimport { Icon } from \"./icon\"\nimport { IconPropsT } from \"./types\"\n\nexport const Lock: React.FC<IconPropsT> = ({ width, height, color, align, ...rest }) => {\n  const iconProps = {\n    width,\n    height,\n    align,\n    viewBox: \"0 0 24 24\",\n  }\n  return (\n    <Icon {...iconProps}>\n      <path\n        d=\"M 5 22 C 3.895 22 3 21.105 3 20 L 3 13 C 3 11.895 3.895 11 5 11 L 19 11 C 20.105 11 21 11.895 21 13 L 21 20 C 21 21.105 20.105 22 19 22 Z\"\n        fill=\"transparent\"\n        strokeWidth=\"2\"\n        stroke={color}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeDasharray=\"\"\n      ></path>\n      <path\n        d=\"M 7 11 L 7 7 C 7 4.239 9.239 2 12 2 C 14.761 2 17 4.239 17 7 L 17 11\"\n        fill=\"transparent\"\n        strokeWidth=\"2\"\n        stroke={color}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        strokeDasharray=\"\"\n      ></path>\n    </Icon>\n  )\n}\n\nLock.defaultProps = {\n  color: \"black\",\n}\n","import * as React from \"react\"\nimport { Icon } from \"./icon\"\nimport { IconPropsT } from \"./types\"\n\nexport const Symbol: React.FC<IconPropsT> = ({ width, height, color, align, ...rest }) => {\n  const iconProps = {\n    width,\n    height,\n    align,\n    viewBox: \"0 0 98 98\",\n  }\n  return (\n    <Icon {...iconProps}>\n      <path d=\"M98 0H0V98L98 0Z\" fill=\"#005AFA\" />\n      <path d=\"M0 98L98 0V98H0Z\" fill=\"#E8E8E8\" />\n    </Icon>\n  )\n}\n\nSymbol.defaultProps = {\n  color: \"black\",\n}\n","/**\n * The Icon component is used to display icons. Add paths as children cause the default wrapper of the Icon component is the \"SVG\" tag.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n * import { useTheme } from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *   const theme = useTheme()\n *\n *   return (\n *     <System.Icon\n *       viewBox=\"0 0 18 18\"\n *       width={theme.sizing.scale800}\n *       color={theme.colors.contentSecondary}\n *     >\n *       <path\n *         fillRule=\"evenodd\"\n *         clipRule=\"evenodd\"\n *         d=\"M18 0H0V18H18V0ZM13.478 7.00702C13.478 10.053 11.156 13.572 6.91199 13.572C5.612 13.572 4.39703 13.19 3.38 12.542C3.56 12.564 3.74402 12.573 3.92902 12.573C5.008 12.573 6.00299 12.204 6.79498 11.583C5.78699 11.565 4.93201 10.899 4.64001 9.98102C4.77899 10.008 4.92303 10.022 5.07202 10.022C5.28302 10.022 5.48499 9.995 5.67902 9.94101C4.62598 9.729 3.83002 8.793 3.83002 7.677V7.64502C4.14001 7.81702 4.49603 7.92001 4.87402 7.93402C4.25702 7.52002 3.84802 6.81302 3.84802 6.01202C3.84802 5.58902 3.96002 5.19302 4.15802 4.85101C5.297 6.246 6.99799 7.16901 8.914 7.263C8.87903 7.09201 8.85602 6.91702 8.85602 6.737C8.85602 5.46301 9.89099 4.42801 11.164 4.42801C11.826 4.42801 12.425 4.707 12.848 5.15701C13.374 5.05301 13.869 4.86502 14.315 4.599C14.139 5.13901 13.775 5.59399 13.298 5.87701C13.766 5.819 14.211 5.69702 14.625 5.513C14.315 5.97601 13.923 6.38501 13.473 6.70901C13.478 6.80902 13.478 6.90701 13.478 7.00702Z\"\n *       />\n *     </System.Icon>\n *   )\n * }\n * ```\n * @param width - string | number\n * @param height - string | number\n * @param viewBox - string\n * @param color - string\n * @param align - \"center\" | \"left\" | \"right\"\n * @param children - React.ReactNode\n */\nexport const Icon: React.FC<IconPropsT> = IconComp\nconst Icons = { Menu, DivMenu, ExternalLink, Arrow, Lock, Symbol }\nexport { Icons }\nexport * from \"./types\"\n\nimport { Icon as IconComp } from \"./icon\"\nimport { IconPropsT } from \"./types\"\nimport { Menu } from \"./menu\"\nimport { DivMenu } from \"./div-menu\"\nimport { ExternalLink } from \"./external-link\"\nimport { Arrow } from \"./arrow\"\nimport { Lock } from \"./lock\"\nimport { Symbol } from \"./symbol\"\n","// @ts-nocheck\nexport function hexToHSL(H) {\n  const ex = /^#([\\da-f]{3}){1,2}$/i\n  if (ex.test(H)) {\n    // convert hex to RGB first\n    let r = 0,\n      g = 0,\n      b = 0\n    if (H.length == 4) {\n      r = \"0x\" + H[1] + H[1]\n      g = \"0x\" + H[2] + H[2]\n      b = \"0x\" + H[3] + H[3]\n    } else if (H.length == 7) {\n      r = \"0x\" + H[1] + H[2]\n      g = \"0x\" + H[3] + H[4]\n      b = \"0x\" + H[5] + H[6]\n    }\n    // then to HSL\n    r /= 255\n    g /= 255\n    b /= 255\n    const cmin = Math.min(r, g, b)\n    const cmax = Math.max(r, g, b)\n    const delta = cmax - cmin\n    let h = 0\n    let s = 0\n    let l = 0\n\n    if (delta == 0) h = 0\n    else if (cmax == r) h = ((g - b) / delta) % 6\n    else if (cmax == g) h = (b - r) / delta + 2\n    else h = (r - g) / delta + 4\n\n    h = Math.round(h * 60)\n\n    if (h < 0) h += 360\n\n    l = (cmax + cmin) / 2\n    s = delta == 0 ? 0 : delta / (1 - Math.abs(2 * l - 1))\n    s = +(s * 100).toFixed(0)\n    l = +(l * 100).toFixed(0)\n\n    return \"hsl(\" + h + \",\" + s + \"%,\" + l + \"%)\"\n  } else {\n    return \"Invalid input color\"\n  }\n}\n","export const KIND = {\n  scale: \"scale\" as const,\n  foundation: \"foundation\" as const,\n  semantic: \"semantic\" as const,\n}\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport * as System from \"../lighthouse\"\nimport { hexToHSL } from \"../utils/hex-to-hsl\"\nimport colors from \"./../tokens/colors\"\nimport { KIND } from \"./constants\"\nimport { ColorChipPropsT } from \"./types\"\n\nexport const ColorChip: React.FC<ColorChipPropsT> = ({\n  showInfo,\n  kind,\n  colorScale,\n  colorFoundation,\n  colorSemantic,\n}) => {\n  const theme = useContext(ThemeContext)\n  const color = getColor({\n    $theme: theme,\n    $kind: kind,\n    $colorScale: colorScale,\n    $colorFoundation: colorFoundation,\n    $colorSemantic: colorSemantic,\n  })\n\n  return (\n    <>\n      <System.Block height={showInfo ? \"scale900\" : \"100%\"} backgroundColor={color} />\n      {showInfo && (\n        <System.Block padding={theme.sizing.scale400}>\n          <System.LabelMedium>\n            {getColorName({\n              $kind: kind,\n              $colorScale: colorScale,\n              $colorFoundation: colorFoundation,\n              $colorSemantic: colorSemantic,\n            })}\n          </System.LabelMedium>\n\n          <System.Spacing height=\"scale100\" />\n          <System.LabelSmall\n            overrides={{\n              Block: {\n                textTransform: \"lowercase\",\n                color: theme.colors.contentInverseTertiary,\n              },\n            }}\n          >\n            {hexToHSL(color)}\n          </System.LabelSmall>\n          <System.Spacing height=\"scale100\" />\n          <System.LabelSmall\n            overrides={{\n              Block: {\n                textTransform: \"lowercase\",\n                color: theme.colors.contentInverseTertiary,\n              },\n            }}\n          >\n            {color}\n          </System.LabelSmall>\n        </System.Block>\n      )}\n    </>\n  )\n}\n\nColorChip.defaultProps = {\n  showInfo: false,\n  kind: KIND.scale,\n  colorScale: \"blue100\",\n  colorSemantic: \"backgroundInversePrimary\",\n}\n\nfunction getColor({ $theme, $kind, $colorScale, $colorFoundation, $colorSemantic }) {\n  switch ($kind) {\n    case KIND.scale:\n      return colors[$colorScale]\n    case KIND.foundation:\n      return $theme.colors[$colorFoundation]\n    case KIND.semantic:\n      return $theme.colors[$colorSemantic]\n  }\n}\n\nfunction getColorName({ $kind, $colorScale, $colorFoundation, $colorSemantic }) {\n  switch ($kind) {\n    case KIND.scale:\n      return $colorScale\n    case KIND.foundation:\n      return $colorFoundation\n    case KIND.semantic:\n      return $colorSemantic\n  }\n}\n","/**\n * The ColorChip component.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *     return (\n *         <System.ColorChip kind=\"semantic\" colorSemantic=\"backgroundTertiary\" />\n *     )\n * }\n * ```\n * @param kind - \"scale\" | \"semantic\"\n * @param colorScale - keyof ColorTokensT\n * @param colorSemantic - keyof CoreSemanticColorTokensT\n */\nexport const ColorChip: React.FC<ColorChipPropsT> = ColorChipComp\nexport * from \"./types\"\n\nimport { ColorChip as ColorChipComp } from \"./color-chip\"\nimport { ColorChipPropsT } from \"./types\"\n","import * as React from \"react\"\nimport { useContext } from \"react\"\nimport { ThemeContext } from \"../helpers/lighthouse-provider\"\nimport * as System from \"../lighthouse\"\nimport { LightingChipPropsT } from \"./types\"\n\nexport const LightingChip: React.FC<LightingChipPropsT> = ({ showInfo, lighting }) => {\n  const theme = useContext(ThemeContext)\n  const boxShadow = getLighting({\n    $theme: theme,\n    $lighting: lighting,\n  })\n\n  return (\n    <>\n      <System.Block\n        height={showInfo ? \"scale900\" : \"100%\"}\n        backgroundColor={showInfo ? \"backgroundSecondary\" : \"transparent\"}\n        overrides={{\n          Block: {\n            boxShadow,\n          },\n        }}\n      />\n      {showInfo && (\n        <System.Block padding={theme.sizing.scale400}>\n          <System.LabelMedium>{lighting}</System.LabelMedium>\n          <System.Spacing height=\"scale100\" />\n          <System.LabelSmall\n            overrides={{\n              Block: {\n                textTransform: \"lowercase\",\n                color: theme.colors.contentInverseTertiary,\n              },\n            }}\n          >\n            {boxShadow}\n          </System.LabelSmall>\n        </System.Block>\n      )}\n    </>\n  )\n}\n\nLightingChip.defaultProps = {\n  showInfo: false,\n  lighting: \"shadow500\",\n}\n\nfunction getLighting({ $theme, $lighting }) {\n  return $theme.lighting[$lighting]\n}\n","/**\n * The LightingChip component.\n *\n *```tsx\n * import * as React from \"react\"\n * import * as System from \"@harborschool/lighthouse\"\n *\n * export default () => {\n *     return (\n *         <System.LightingChip lighting=\"shadow500\" />\n *     )\n * }\n * ```\n * @param lighting - keyof LightingT\n */\nexport const LightingChip: React.FC<LightingChipPropsT> = LightingChipComp\nexport * from \"./types\"\n\nimport { LightingChip as LightingChipComp } from \"./lighting-chip\"\nimport { LightingChipPropsT } from \"./types\"\n","import { useContext } from \"react\"\nimport { ThemeContext } from \"./lighthouse-provider\"\n\nexport function createThemed() {\n  return function () {\n    const theme = useContext(ThemeContext)\n    // const [css] = styletronUseStyletron() // it makes unwanted re-paints\n    return theme\n  }\n}\n\nexport const useTheme = createThemed()\n","export function hexToRgb(hex = \"\", alpha = \"1\") {\n  const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i\n  hex = hex.replace(shorthandRegex, function (m, r, g, b) {\n    return r + r + g + g + b + b\n  })\n  const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex)\n  return result\n    ? `rgba(${parseInt(result[1], 16)}, ${parseInt(result[2], 16)}, ${parseInt(\n        result[3],\n        16\n      )}, ${alpha})`\n    : null\n}\n","export function increaseBrightness(hex, percent) {\n  // strip the leading # if it's there\n  hex = hex.replace(/^\\s*#|\\s*$/g, \"\")\n\n  // convert 3 char codes --> 6, e.g. `E0F` --> `EE00FF`\n  if (hex.length == 3) {\n    hex = hex.replace(/(.)/g, \"$1$1\")\n  }\n\n  const r = parseInt(hex.substr(0, 2), 16),\n    g = parseInt(hex.substr(2, 2), 16),\n    b = parseInt(hex.substr(4, 2), 16)\n\n  return (\n    \"#\" +\n    (0 | ((1 << 8) + r + ((256 - r) * percent) / 100)).toString(16).substr(1) +\n    (0 | ((1 << 8) + g + ((256 - g) * percent) / 100)).toString(16).substr(1) +\n    (0 | ((1 << 8) + b + ((256 - b) * percent) / 100)).toString(16).substr(1)\n  )\n}\n\nexport function colorLuminanceByPercentage(hex, percentage) {\n  // Validate hex string\n  hex = String(hex).replace(/[^0-9a-f]/gi, \"\")\n  if (hex.length < 6) {\n    hex = hex.replace(/(.)/g, \"$1$1\")\n  }\n  percentage = percentage || 0\n  // Convert to decimal and change luminosity\n  let rgb = \"#\",\n    c\n  for (let i = 0; i < 3; ++i) {\n    c = parseInt(hex.substr(i * 2, 2), 16)\n    c = Math.round(Math.min(Math.max(0, c + c * percentage), 255)).toString(16)\n    rgb += (\"00\" + c).substr(c.length)\n  }\n  return rgb\n}\n\nexport function colorLuminanceByNumber(hex, number) {\n  // Validate hex string\n  hex = String(hex).replace(/[^0-9a-f]/gi, \"\")\n  if (hex.length < 6) {\n    hex = hex.replace(/(.)/g, \"$1$1\")\n  }\n  number = number || 0\n  // Convert to decimal and change luminosity\n  let rgb = \"#\",\n    c\n  for (let i = 0; i < 3; ++i) {\n    c = parseInt(hex.substr(i * 2, 2), 16)\n    c = Math.round(Math.min(Math.max(0, c + (number / 100) * 255), 255)).toString(16)\n    rgb += (\"00\" + c).substr(c.length)\n  }\n  return rgb\n}\n"]}