@mindlogic-ai/logician-ui 5.0.0-alpha.1 → 5.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/Avatar.d.ts +68 -11
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.js +38 -5
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/Avatar.mjs +37 -5
- package/dist/components/Avatar/Avatar.mjs.map +1 -1
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js +5 -3
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/Badge.mjs +5 -3
- package/dist/components/Badge/Badge.mjs.map +1 -1
- package/dist/components/Badge/Badge.types.d.ts +7 -5
- package/dist/components/Badge/Badge.types.d.ts.map +1 -1
- package/dist/components/Banner/Banner.types.d.ts +24 -1
- package/dist/components/Banner/Banner.types.d.ts.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.styles.d.ts +2 -2
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +10 -2
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.mjs +10 -2
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Card/Card.types.d.ts +12 -0
- package/dist/components/Card/Card.types.d.ts.map +1 -1
- package/dist/components/ColorMode/ColorModeToggle.d.ts +7 -2
- package/dist/components/ColorMode/ColorModeToggle.d.ts.map +1 -1
- package/dist/components/ColorMode/ColorModeToggle.js +8 -3
- package/dist/components/ColorMode/ColorModeToggle.js.map +1 -1
- package/dist/components/ColorMode/ColorModeToggle.mjs +8 -3
- package/dist/components/ColorMode/ColorModeToggle.mjs.map +1 -1
- package/dist/components/Confetti/Confetti.types.d.ts +5 -1
- package/dist/components/Confetti/Confetti.types.d.ts.map +1 -1
- package/dist/components/Confetti/confettiColors.d.ts +5 -5
- package/dist/components/Confetti/confettiColors.js +5 -5
- package/dist/components/Confetti/confettiColors.mjs +5 -5
- package/dist/components/ErrorFallback/ErrorFallback.types.d.ts +6 -0
- package/dist/components/ErrorFallback/ErrorFallback.types.d.ts.map +1 -1
- package/dist/components/Form/FormModalFooter/FormModalFooter.d.ts +1 -1
- package/dist/components/Form/FormModalFooter/FormModalFooter.d.ts.map +1 -1
- package/dist/components/Form/FormModalFooter/FormModalFooter.js +2 -2
- package/dist/components/Form/FormModalFooter/FormModalFooter.js.map +1 -1
- package/dist/components/Form/FormModalFooter/FormModalFooter.mjs +2 -2
- package/dist/components/Form/FormModalFooter/FormModalFooter.mjs.map +1 -1
- package/dist/components/Form/FormModalFooter/FormModalFooter.types.d.ts +11 -1
- package/dist/components/Form/FormModalFooter/FormModalFooter.types.d.ts.map +1 -1
- package/dist/components/Form/FormSection/CollapsibleFormSection.js +1 -0
- package/dist/components/Form/FormSection/CollapsibleFormSection.js.map +1 -1
- package/dist/components/Form/FormSection/CollapsibleFormSection.mjs +1 -0
- package/dist/components/Form/FormSection/CollapsibleFormSection.mjs.map +1 -1
- package/dist/components/LineGraph/LineGraph.d.ts.map +1 -1
- package/dist/components/LineGraph/LineGraph.js +4 -5
- package/dist/components/LineGraph/LineGraph.js.map +1 -1
- package/dist/components/LineGraph/LineGraph.mjs +5 -6
- package/dist/components/LineGraph/LineGraph.mjs.map +1 -1
- package/dist/components/LineGraph/LineGraph.types.d.ts +12 -2
- package/dist/components/LineGraph/LineGraph.types.d.ts.map +1 -1
- package/dist/components/LineGraph/seriesColors.d.ts +12 -6
- package/dist/components/LineGraph/seriesColors.d.ts.map +1 -1
- package/dist/components/LineGraph/seriesColors.js +8 -7
- package/dist/components/LineGraph/seriesColors.js.map +1 -1
- package/dist/components/LineGraph/seriesColors.mjs +8 -7
- package/dist/components/LineGraph/seriesColors.mjs.map +1 -1
- package/dist/components/Masonry/Masonry.types.d.ts +8 -3
- package/dist/components/Masonry/Masonry.types.d.ts.map +1 -1
- package/dist/components/Menu/MenuItem.types.d.ts +8 -0
- package/dist/components/Menu/MenuItem.types.d.ts.map +1 -1
- package/dist/components/Modal/ModalCloseButton.d.ts +1 -1
- package/dist/components/Modal/ModalCloseButton.js +1 -1
- package/dist/components/Modal/ModalCloseButton.mjs +1 -1
- package/dist/components/Pagination/Pagination.d.ts +11 -10
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +11 -10
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/Pagination/Pagination.mjs +11 -10
- package/dist/components/Pagination/Pagination.mjs.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +9 -0
- package/dist/components/ProgressBar/ProgressBar.types.d.ts.map +1 -1
- package/dist/components/RadialProgress/RadialProgress.types.d.ts +21 -1
- package/dist/components/RadialProgress/RadialProgress.types.d.ts.map +1 -1
- package/dist/components/SeeMoreButton/SeeMoreButton.types.d.ts +8 -0
- package/dist/components/SeeMoreButton/SeeMoreButton.types.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +6 -7
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.mjs +6 -7
- package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
- package/dist/components/SegmentedProgressBar/SegmentedProgressBar.types.d.ts +2 -0
- package/dist/components/SegmentedProgressBar/SegmentedProgressBar.types.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +5 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Select/Select.mjs +3 -3
- package/dist/components/Select/Select.mjs.map +1 -1
- package/dist/components/Select/Select.styles.d.ts +38 -0
- package/dist/components/Select/Select.styles.d.ts.map +1 -1
- package/dist/components/Select/Select.styles.js +35 -0
- package/dist/components/Select/Select.styles.js.map +1 -1
- package/dist/components/Select/Select.styles.mjs +35 -2
- package/dist/components/Select/Select.styles.mjs.map +1 -1
- package/dist/components/Select/Select.types.d.ts +10 -0
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/SelectField.d.ts +1 -1
- package/dist/components/Select/SelectField.d.ts.map +1 -1
- package/dist/components/Select/SelectField.js +3 -2
- package/dist/components/Select/SelectField.js.map +1 -1
- package/dist/components/Select/SelectField.mjs +3 -2
- package/dist/components/Select/SelectField.mjs.map +1 -1
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Toast/Toast.styles.d.ts +6 -2
- package/dist/components/Toast/Toast.styles.d.ts.map +1 -1
- package/dist/components/Toast/Toast.styles.js +18 -10
- package/dist/components/Toast/Toast.styles.js.map +1 -1
- package/dist/components/Toast/Toast.styles.mjs +18 -10
- package/dist/components/Toast/Toast.styles.mjs.map +1 -1
- package/dist/components/Typography/Caption.d.ts.map +1 -1
- package/dist/components/Typography/Caption.js +1 -1
- package/dist/components/Typography/Caption.js.map +1 -1
- package/dist/components/Typography/Caption.mjs +1 -1
- package/dist/components/Typography/Caption.mjs.map +1 -1
- package/dist/components/Typography/H1.d.ts.map +1 -1
- package/dist/components/Typography/H1.js +1 -1
- package/dist/components/Typography/H1.js.map +1 -1
- package/dist/components/Typography/H1.mjs +1 -1
- package/dist/components/Typography/H1.mjs.map +1 -1
- package/dist/components/Typography/H2.d.ts.map +1 -1
- package/dist/components/Typography/H2.js +1 -1
- package/dist/components/Typography/H2.js.map +1 -1
- package/dist/components/Typography/H2.mjs +1 -1
- package/dist/components/Typography/H2.mjs.map +1 -1
- package/dist/components/Typography/H3.d.ts.map +1 -1
- package/dist/components/Typography/H3.js +1 -1
- package/dist/components/Typography/H3.js.map +1 -1
- package/dist/components/Typography/H3.mjs +1 -1
- package/dist/components/Typography/H3.mjs.map +1 -1
- package/dist/components/Typography/H4.d.ts.map +1 -1
- package/dist/components/Typography/H4.js +1 -1
- package/dist/components/Typography/H4.js.map +1 -1
- package/dist/components/Typography/H4.mjs +1 -1
- package/dist/components/Typography/H4.mjs.map +1 -1
- package/dist/components/Typography/H5.d.ts.map +1 -1
- package/dist/components/Typography/H5.js +1 -1
- package/dist/components/Typography/H5.js.map +1 -1
- package/dist/components/Typography/H5.mjs +1 -1
- package/dist/components/Typography/H5.mjs.map +1 -1
- package/dist/components/Typography/Link.d.ts.map +1 -1
- package/dist/components/Typography/Link.js +1 -1
- package/dist/components/Typography/Link.js.map +1 -1
- package/dist/components/Typography/Link.mjs +1 -1
- package/dist/components/Typography/Link.mjs.map +1 -1
- package/dist/components/Typography/Overline.d.ts.map +1 -1
- package/dist/components/Typography/Overline.js +1 -1
- package/dist/components/Typography/Overline.js.map +1 -1
- package/dist/components/Typography/Overline.mjs +1 -1
- package/dist/components/Typography/Overline.mjs.map +1 -1
- package/dist/components/Typography/Subtext.d.ts.map +1 -1
- package/dist/components/Typography/Subtext.js +1 -1
- package/dist/components/Typography/Subtext.js.map +1 -1
- package/dist/components/Typography/Subtext.mjs +1 -1
- package/dist/components/Typography/Subtext.mjs.map +1 -1
- package/dist/components/Typography/Subtitle.d.ts.map +1 -1
- package/dist/components/Typography/Subtitle.js +1 -1
- package/dist/components/Typography/Subtitle.js.map +1 -1
- package/dist/components/Typography/Subtitle.mjs +1 -1
- package/dist/components/Typography/Subtitle.mjs.map +1 -1
- package/dist/components/Typography/Text.d.ts.map +1 -1
- package/dist/components/Typography/Text.js +1 -1
- package/dist/components/Typography/Text.js.map +1 -1
- package/dist/components/Typography/Text.mjs +1 -1
- package/dist/components/Typography/Text.mjs.map +1 -1
- package/dist/hooks/useLanguage.d.ts +5 -0
- package/dist/hooks/useLanguage.d.ts.map +1 -1
- package/dist/hooks/useLanguage.js +7 -3
- package/dist/hooks/useLanguage.js.map +1 -1
- package/dist/hooks/useLanguage.mjs +7 -4
- package/dist/hooks/useLanguage.mjs.map +1 -1
- package/dist/hooks/useTranslate.d.ts.map +1 -1
- package/dist/hooks/useTranslate.js +8 -5
- package/dist/hooks/useTranslate.js.map +1 -1
- package/dist/hooks/useTranslate.mjs +8 -5
- package/dist/hooks/useTranslate.mjs.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/theme/colors.d.ts +2 -2
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/colors.js +36 -2
- package/dist/theme/colors.js.map +1 -1
- package/dist/theme/colors.mjs +37 -3
- package/dist/theme/colors.mjs.map +1 -1
- package/dist/theme/global.d.ts.map +1 -1
- package/dist/theme/global.js +18 -0
- package/dist/theme/global.js.map +1 -1
- package/dist/theme/global.mjs +18 -0
- package/dist/theme/global.mjs.map +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +2 -0
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/index.mjs +2 -0
- package/dist/theme/index.mjs.map +1 -1
- package/dist/theme/palette.generated.d.ts +98 -0
- package/dist/theme/palette.generated.d.ts.map +1 -1
- package/dist/theme/palette.generated.js +99 -0
- package/dist/theme/palette.generated.js.map +1 -1
- package/dist/theme/palette.generated.mjs +99 -1
- package/dist/theme/palette.generated.mjs.map +1 -1
- package/dist/theme/paletteSwatches.d.ts +20 -0
- package/dist/theme/paletteSwatches.d.ts.map +1 -1
- package/dist/theme/recipes/avatar.d.ts +30 -0
- package/dist/theme/recipes/avatar.d.ts.map +1 -0
- package/dist/theme/recipes/avatar.js +96 -0
- package/dist/theme/recipes/avatar.js.map +1 -0
- package/dist/theme/recipes/avatar.mjs +94 -0
- package/dist/theme/recipes/avatar.mjs.map +1 -0
- package/dist/translations/Defaults.translations.json.js +9 -0
- package/dist/translations/Defaults.translations.json.js.map +1 -1
- package/dist/translations/Defaults.translations.json.mjs +9 -1
- package/dist/translations/Defaults.translations.json.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.stories.tsx +85 -0
- package/src/components/Accordion/Accordion.usage.mdx +200 -0
- package/src/components/Appear/Appear.usage.mdx +107 -0
- package/src/components/Avatar/Avatar.recipe.test.tsx +171 -0
- package/src/components/Avatar/Avatar.stories.tsx +199 -24
- package/src/components/Avatar/Avatar.tsx +112 -21
- package/src/components/Avatar/Avatar.usage.mdx +185 -0
- package/src/components/Avatar/index.tsx +8 -1
- package/src/components/Badge/Badge.stories.tsx +193 -3
- package/src/components/Badge/Badge.tsx +5 -3
- package/src/components/Badge/Badge.types.ts +7 -5
- package/src/components/Badge/Badge.usage.mdx +265 -0
- package/src/components/Banner/Banner.stories.tsx +152 -2
- package/src/components/Banner/Banner.types.ts +30 -1
- package/src/components/Banner/Banner.usage.mdx +233 -0
- package/src/components/BottomSheet/BottomSheet.stories.tsx +168 -1
- package/src/components/BottomSheet/BottomSheet.test.tsx +2 -1
- package/src/components/BottomSheet/BottomSheet.usage.mdx +216 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +59 -0
- package/src/components/Breadcrumb/Breadcrumb.usage.mdx +181 -0
- package/src/components/Button/Button.stories.tsx +263 -3
- package/src/components/Button/Button.tsx +15 -2
- package/src/components/Button/Button.usage.mdx +342 -0
- package/src/components/Card/Card.stories.tsx +106 -0
- package/src/components/Card/Card.types.ts +12 -0
- package/src/components/Card/Card.usage.mdx +216 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +140 -13
- package/src/components/Checkbox/Checkbox.usage.mdx +214 -0
- package/src/components/Chip/Chip.usage.mdx +78 -0
- package/src/components/Code/Code.stories.tsx +60 -0
- package/src/components/Code/Code.usage.mdx +187 -0
- package/src/components/CodeTabs/CodeTabs.stories.tsx +53 -0
- package/src/components/CodeTabs/CodeTabs.usage.mdx +176 -0
- package/src/components/Collapsible/Collapsible.stories.tsx +58 -0
- package/src/components/Collapsible/Collapsible.usage.mdx +173 -0
- package/src/components/ColorMode/ColorMode.stories.tsx +50 -0
- package/src/components/ColorMode/ColorMode.usage.mdx +135 -0
- package/src/components/ColorMode/ColorModeToggle.tsx +10 -3
- package/src/components/Confetti/Confetti.types.ts +5 -1
- package/src/components/Confetti/Confetti.usage.mdx +111 -0
- package/src/components/Confetti/confettiColors.ts +5 -5
- package/src/components/Container/Container.stories.tsx +32 -0
- package/src/components/Container/Container.usage.mdx +130 -0
- package/src/components/CopyableCode/CopyableCode.stories.tsx +62 -0
- package/src/components/CopyableCode/CopyableCode.usage.mdx +168 -0
- package/src/components/CountBadge/CountBadge.stories.tsx +69 -0
- package/src/components/CountBadge/CountBadge.usage.mdx +215 -0
- package/src/components/CountUp/CountUp.usage.mdx +107 -0
- package/src/components/DatePicker/DatePicker.usage.mdx +177 -0
- package/src/components/DatePicker/RangeDatePicker.stories.tsx +87 -3
- package/src/components/ErrorFallback/ErrorFallback.types.ts +6 -0
- package/src/components/ErrorFallback/ErrorFallback.usage.mdx +127 -0
- package/src/components/ExpandableText/ExpandableText.stories.tsx +55 -0
- package/src/components/ExpandableText/ExpandableText.usage.mdx +176 -0
- package/src/components/FileInput/FileInput.stories.tsx +38 -1
- package/src/components/FileInput/FileInput.usage.mdx +178 -0
- package/src/components/FileItem/FileItem.stories.tsx +71 -0
- package/src/components/FileItem/FileItem.usage.mdx +180 -0
- package/src/components/FileList/FileList.stories.tsx +25 -0
- package/src/components/FileList/FileList.usage.mdx +165 -0
- package/src/components/FlyTo/FlyTo.usage.mdx +99 -0
- package/src/components/Form/Form.stories.tsx +149 -0
- package/src/components/Form/Form.usage.mdx +203 -0
- package/src/components/Form/FormModalFooter/FormModalFooter.stories.tsx +1 -1
- package/src/components/Form/FormModalFooter/FormModalFooter.test.tsx +19 -1
- package/src/components/Form/FormModalFooter/FormModalFooter.tsx +2 -0
- package/src/components/Form/FormModalFooter/FormModalFooter.types.ts +11 -1
- package/src/components/FormControl/FormControl.stories.tsx +35 -0
- package/src/components/FormControl/FormControl.usage.mdx +128 -0
- package/src/components/FormIntegration/FormIntegration.usage.mdx +158 -0
- package/src/components/FormLabel/FormLabel.stories.tsx +71 -0
- package/src/components/FormLabel/FormLabel.usage.mdx +125 -0
- package/src/components/Icon/Icon.stories.tsx +61 -1
- package/src/components/Icon/Icon.usage.mdx +158 -0
- package/src/components/IconButton/IconButton.stories.tsx +209 -5
- package/src/components/IconButton/IconButton.usage.mdx +273 -0
- package/src/components/InfoSprinkle/InfoSprinkle.stories.tsx +77 -1
- package/src/components/InfoSprinkle/InfoSprinkle.usage.mdx +189 -0
- package/src/components/InlineCode/InlineCode.stories.tsx +75 -0
- package/src/components/InlineCode/InlineCode.usage.mdx +142 -0
- package/src/components/Input/Input.stories.tsx +180 -0
- package/src/components/Input/Input.usage.mdx +278 -0
- package/src/components/LineGraph/LineGraph.stories.tsx +112 -0
- package/src/components/LineGraph/LineGraph.tsx +4 -5
- package/src/components/LineGraph/LineGraph.types.ts +12 -2
- package/src/components/LineGraph/LineGraph.usage.mdx +186 -0
- package/src/components/LineGraph/seriesColors.test.ts +11 -10
- package/src/components/LineGraph/seriesColors.ts +18 -14
- package/src/components/Loaders/Loaders.stories.tsx +93 -0
- package/src/components/Loaders/Loaders.usage.mdx +180 -0
- package/src/components/LogicianProvider/LogicianProvider.usage.mdx +98 -0
- package/src/components/Markdown/Markdown.stories.tsx +53 -0
- package/src/components/Markdown/Markdown.usage.mdx +182 -0
- package/src/components/Masonry/Masonry.stories.tsx +63 -1
- package/src/components/Masonry/Masonry.types.ts +8 -3
- package/src/components/Masonry/Masonry.usage.mdx +142 -0
- package/src/components/MaxLengthIndicator/MaxLengthIndicator.stories.tsx +57 -0
- package/src/components/MaxLengthIndicator/MaxLengthIndicator.usage.mdx +125 -0
- package/src/components/Menu/Menu.stories.tsx +146 -2
- package/src/components/Menu/Menu.usage.mdx +230 -0
- package/src/components/Menu/MenuItem.types.ts +8 -0
- package/src/components/Modal/Modal.stories.tsx +177 -1
- package/src/components/Modal/Modal.usage.mdx +262 -0
- package/src/components/Modal/ModalCloseButton.tsx +1 -1
- package/src/components/MonthPicker/MonthPicker.stories.tsx +30 -0
- package/src/components/MonthPicker/MonthPicker.usage.mdx +191 -0
- package/src/components/Pagination/Pagination.stories.tsx +90 -1
- package/src/components/Pagination/Pagination.tsx +11 -10
- package/src/components/Pagination/Pagination.usage.mdx +186 -0
- package/src/components/PasswordInput/PasswordInput.stories.tsx +51 -0
- package/src/components/PasswordInput/PasswordInput.usage.mdx +193 -0
- package/src/components/PinInput/PinInput.stories.tsx +91 -0
- package/src/components/PinInput/PinInput.usage.mdx +194 -0
- package/src/components/Popover/Popover.stories.tsx +104 -1
- package/src/components/Popover/Popover.usage.mdx +197 -0
- package/src/components/ProgressBar/ProgressBar.stories.tsx +92 -1
- package/src/components/ProgressBar/ProgressBar.types.ts +9 -0
- package/src/components/ProgressBar/ProgressBar.usage.mdx +210 -0
- package/src/components/Pulse/Pulse.usage.mdx +102 -0
- package/src/components/RadialProgress/RadialProgress.stories.tsx +74 -1
- package/src/components/RadialProgress/RadialProgress.types.ts +21 -1
- package/src/components/RadialProgress/RadialProgress.usage.mdx +153 -0
- package/src/components/Radio/Radio.stories.tsx +119 -0
- package/src/components/Radio/Radio.usage.mdx +187 -0
- package/src/components/Reveal/Reveal.usage.mdx +105 -0
- package/src/components/ScaledContext/ScaledContext.usage.mdx +111 -0
- package/src/components/SeeMoreButton/SeeMoreButton.stories.tsx +146 -2
- package/src/components/SeeMoreButton/SeeMoreButton.types.ts +8 -0
- package/src/components/SeeMoreButton/SeeMoreButton.usage.mdx +213 -0
- package/src/components/SegmentedControl/SegmentedControl.stories.tsx +69 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +6 -7
- package/src/components/SegmentedControl/SegmentedControl.usage.mdx +209 -0
- package/src/components/SegmentedProgressBar/SegmentedProgressBar.stories.tsx +54 -0
- package/src/components/SegmentedProgressBar/SegmentedProgressBar.types.ts +2 -0
- package/src/components/SegmentedProgressBar/SegmentedProgressBar.usage.mdx +145 -0
- package/src/components/Select/Comparison.stories.tsx +19 -0
- package/src/components/Select/Select.stories.tsx +264 -1
- package/src/components/Select/Select.styles.ts +36 -1
- package/src/components/Select/Select.tsx +13 -3
- package/src/components/Select/Select.types.ts +11 -0
- package/src/components/Select/Select.usage.mdx +278 -0
- package/src/components/Select/SelectField.tsx +7 -3
- package/src/components/Select/index.ts +1 -0
- package/src/components/Shake/Shake.usage.mdx +107 -0
- package/src/components/Slider/Slider.stories.tsx +116 -0
- package/src/components/Slider/Slider.usage.mdx +179 -0
- package/src/components/Spinner/Spinner.stories.tsx +64 -0
- package/src/components/Spinner/Spinner.usage.mdx +136 -0
- package/src/components/SwapTransition/SwapTransition.usage.mdx +102 -0
- package/src/components/Switch/Switch.stories.tsx +131 -6
- package/src/components/Switch/Switch.usage.mdx +199 -0
- package/src/components/Table/Table.stories.tsx +159 -1
- package/src/components/Table/Table.usage.mdx +235 -0
- package/src/components/Tabs/Tabs.stories.tsx +86 -0
- package/src/components/Tabs/Tabs.usage.mdx +219 -0
- package/src/components/Tag/Tag.stories.tsx +181 -4
- package/src/components/Tag/Tag.usage.mdx +257 -0
- package/src/components/Textarea/Textarea.stories.tsx +113 -0
- package/src/components/Textarea/Textarea.usage.mdx +186 -0
- package/src/components/Toast/Toast.stories.tsx +185 -3
- package/src/components/Toast/Toast.styles.ts +18 -10
- package/src/components/Toast/Toast.usage.mdx +265 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +86 -1
- package/src/components/Tooltip/Tooltip.usage.mdx +211 -0
- package/src/components/Tree/Tree.stories.tsx +89 -0
- package/src/components/Tree/Tree.usage.mdx +207 -0
- package/src/components/Typography/Caption.tsx +0 -1
- package/src/components/Typography/H1.tsx +0 -1
- package/src/components/Typography/H2.tsx +0 -1
- package/src/components/Typography/H3.tsx +0 -1
- package/src/components/Typography/H4.tsx +0 -1
- package/src/components/Typography/H5.tsx +0 -1
- package/src/components/Typography/Link.tsx +0 -1
- package/src/components/Typography/Overline.tsx +0 -1
- package/src/components/Typography/Subtext.tsx +0 -1
- package/src/components/Typography/Subtitle.tsx +0 -1
- package/src/components/Typography/Text.tsx +0 -1
- package/src/components/Typography/Typography.stories.tsx +117 -0
- package/src/components/Typography/Typography.usage.mdx +257 -0
- package/src/components/Workflow/Workflow.usage.mdx +199 -0
- package/src/components/noRawScales.test.ts +5 -1
- package/src/foundations/BrandAssets.mdx +637 -0
- package/src/foundations/BrandAssets.stories.tsx +680 -0
- package/src/foundations/BrandColour.mdx +364 -0
- package/src/foundations/BrandColour.stories.tsx +334 -0
- package/src/guidelines/ComponentPageTemplate.mdx +84 -0
- package/src/guidelines/FeedbackActions.mdx +162 -23
- package/src/guidelines/_components/Lang.tsx +175 -0
- package/src/guidelines/_components/TokenTable.tsx +136 -0
- package/src/hooks/useLanguage.ts +8 -3
- package/src/hooks/useTranslate.test.tsx +46 -0
- package/src/hooks/useTranslate.ts +7 -5
- package/src/theme/BazePalette.stories.tsx +111 -1
- package/src/theme/Palette.stories.tsx +2 -2
- package/src/theme/SemanticTokens.mdx +86 -1
- package/src/theme/claude.md +16 -7
- package/src/theme/colors.ts +51 -6
- package/src/theme/contrast.test.ts +55 -0
- package/src/theme/global.ts +19 -0
- package/src/theme/index.ts +2 -0
- package/src/theme/palette.generated.ts +99 -0
- package/src/theme/paletteSwatches.ts +35 -0
- package/src/theme/recipes/avatar.ts +92 -0
- package/src/translations/Defaults.translations.json +7 -0
|
@@ -6,7 +6,7 @@ import { polymorphic } from '../../types/polymorphic.mjs';
|
|
|
6
6
|
|
|
7
7
|
const H3Impl = forwardRef((props, ref) => {
|
|
8
8
|
const { fontSize, ...rest } = props;
|
|
9
|
-
return (jsx(Heading, { ref: ref, as: "h3", color: "fg.emphasized", textStyle: fontSize ? undefined : 'h3', fontSize: fontSize,
|
|
9
|
+
return (jsx(Heading, { ref: ref, as: "h3", color: "fg.emphasized", textStyle: fontSize ? undefined : 'h3', fontSize: fontSize, ...rest }));
|
|
10
10
|
});
|
|
11
11
|
H3Impl.displayName = 'H3';
|
|
12
12
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H3.mjs","sources":["../../../src/components/Typography/H3.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA,MAAM,MAAM,GAAG,UAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,OAAO,EAAA,EACN,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACtC,QAAQ,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"H3.mjs","sources":["../../../src/components/Typography/H3.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA,MAAM,MAAM,GAAG,UAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,OAAO,EAAA,EACN,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACtC,QAAQ,EAAE,QAAQ,EAAA,GACd,IAAI,EAAA,CACR;AAEN,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,IAAI;AAEzB;MACa,EAAE,GAAG,WAAW,CAAwB,MAAM;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H4.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H4.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"H4.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H4.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAmBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,6DAA6C,CAAC"}
|
|
@@ -8,7 +8,7 @@ var polymorphic = require('../../types/polymorphic.js');
|
|
|
8
8
|
|
|
9
9
|
const H4Impl = React.forwardRef((props, ref) => {
|
|
10
10
|
const { fontSize, ...rest } = props;
|
|
11
|
-
return (jsxRuntime.jsx(react.Heading, { ref: ref, as: "h4", color: "fg.emphasized", textStyle: fontSize ? undefined : 'h4', fontSize: fontSize,
|
|
11
|
+
return (jsxRuntime.jsx(react.Heading, { ref: ref, as: "h4", color: "fg.emphasized", textStyle: fontSize ? undefined : 'h4', fontSize: fontSize, ...rest }));
|
|
12
12
|
});
|
|
13
13
|
H4Impl.displayName = 'H4';
|
|
14
14
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H4.js","sources":["../../../src/components/Typography/H4.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Heading","polymorphic"],"mappings":";;;;;;;;AAMA,MAAM,MAAM,GAAGA,gBAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEC,cAAA,CAACC,aAAO,EAAA,EACN,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACtC,QAAQ,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"H4.js","sources":["../../../src/components/Typography/H4.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Heading","polymorphic"],"mappings":";;;;;;;;AAMA,MAAM,MAAM,GAAGA,gBAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEC,cAAA,CAACC,aAAO,EAAA,EACN,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACtC,QAAQ,EAAE,QAAQ,EAAA,GACd,IAAI,EAAA,CACR;AAEN,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,IAAI;AAEzB;MACa,EAAE,GAAGC,uBAAW,CAAwB,MAAM;;;;"}
|
|
@@ -6,7 +6,7 @@ import { polymorphic } from '../../types/polymorphic.mjs';
|
|
|
6
6
|
|
|
7
7
|
const H4Impl = forwardRef((props, ref) => {
|
|
8
8
|
const { fontSize, ...rest } = props;
|
|
9
|
-
return (jsx(Heading, { ref: ref, as: "h4", color: "fg.emphasized", textStyle: fontSize ? undefined : 'h4', fontSize: fontSize,
|
|
9
|
+
return (jsx(Heading, { ref: ref, as: "h4", color: "fg.emphasized", textStyle: fontSize ? undefined : 'h4', fontSize: fontSize, ...rest }));
|
|
10
10
|
});
|
|
11
11
|
H4Impl.displayName = 'H4';
|
|
12
12
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H4.mjs","sources":["../../../src/components/Typography/H4.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA,MAAM,MAAM,GAAG,UAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,OAAO,EAAA,EACN,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACtC,QAAQ,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"H4.mjs","sources":["../../../src/components/Typography/H4.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA,MAAM,MAAM,GAAG,UAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,OAAO,EAAA,EACN,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACtC,QAAQ,EAAE,QAAQ,EAAA,GACd,IAAI,EAAA,CACR;AAEN,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,IAAI;AAEzB;MACa,EAAE,GAAG,WAAW,CAAwB,MAAM;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H5.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H5.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"H5.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/H5.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAmBrD,yEAAyE;AACzE,eAAO,MAAM,EAAE,6DAA6C,CAAC"}
|
|
@@ -8,7 +8,7 @@ var polymorphic = require('../../types/polymorphic.js');
|
|
|
8
8
|
|
|
9
9
|
const H5Impl = React.forwardRef((props, ref) => {
|
|
10
10
|
const { fontSize, ...rest } = props;
|
|
11
|
-
return (jsxRuntime.jsx(react.Heading, { ref: ref, as: "h5", color: "fg.emphasized", textStyle: fontSize ? undefined : 'h5', fontSize: fontSize,
|
|
11
|
+
return (jsxRuntime.jsx(react.Heading, { ref: ref, as: "h5", color: "fg.emphasized", textStyle: fontSize ? undefined : 'h5', fontSize: fontSize, ...rest }));
|
|
12
12
|
});
|
|
13
13
|
H5Impl.displayName = 'H5';
|
|
14
14
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H5.js","sources":["../../../src/components/Typography/H5.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Heading","polymorphic"],"mappings":";;;;;;;;AAMA,MAAM,MAAM,GAAGA,gBAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEC,cAAA,CAACC,aAAO,EAAA,EACN,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACtC,QAAQ,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"H5.js","sources":["../../../src/components/Typography/H5.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Heading","polymorphic"],"mappings":";;;;;;;;AAMA,MAAM,MAAM,GAAGA,gBAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEC,cAAA,CAACC,aAAO,EAAA,EACN,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACtC,QAAQ,EAAE,QAAQ,EAAA,GACd,IAAI,EAAA,CACR;AAEN,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,IAAI;AAEzB;MACa,EAAE,GAAGC,uBAAW,CAAwB,MAAM;;;;"}
|
|
@@ -6,7 +6,7 @@ import { polymorphic } from '../../types/polymorphic.mjs';
|
|
|
6
6
|
|
|
7
7
|
const H5Impl = forwardRef((props, ref) => {
|
|
8
8
|
const { fontSize, ...rest } = props;
|
|
9
|
-
return (jsx(Heading, { ref: ref, as: "h5", color: "fg.emphasized", textStyle: fontSize ? undefined : 'h5', fontSize: fontSize,
|
|
9
|
+
return (jsx(Heading, { ref: ref, as: "h5", color: "fg.emphasized", textStyle: fontSize ? undefined : 'h5', fontSize: fontSize, ...rest }));
|
|
10
10
|
});
|
|
11
11
|
H5Impl.displayName = 'H5';
|
|
12
12
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H5.mjs","sources":["../../../src/components/Typography/H5.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA,MAAM,MAAM,GAAG,UAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,OAAO,EAAA,EACN,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACtC,QAAQ,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"H5.mjs","sources":["../../../src/components/Typography/H5.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA,MAAM,MAAM,GAAG,UAAU,CAAsC,CAAC,KAAK,EAAE,GAAG,KAAI;IAC5E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,OAAO,EAAA,EACN,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,IAAI,EACP,KAAK,EAAC,eAAe,EACrB,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,EACtC,QAAQ,EAAE,QAAQ,EAAA,GACd,IAAI,EAAA,CACR;AAEN,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,IAAI;AAEzB;MACa,EAAE,GAAG,WAAW,CAAwB,MAAM;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAsB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,GAAG;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,SAAS,WAAW,GAAG,GAAG,IAC5D,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAsB,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC,GAAG;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,SAAS,WAAW,GAAG,GAAG,IAC5D,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;AAqDX,yEAAyE;AACzE,eAAO,MAAM,IAAI,yDAA2C,CAAC"}
|
|
@@ -51,7 +51,7 @@ const LinkImpl = React.forwardRef(({ color, variant, ...rest }, ref) => {
|
|
|
51
51
|
// reads as an affordance against every body-text colour in the fg.*
|
|
52
52
|
// scale the way `primary.main` used to. `{...rest}` below still lets
|
|
53
53
|
// a call site override it.
|
|
54
|
-
fontWeight: 500,
|
|
54
|
+
fontWeight: 500, color: linkColor, textDecoration: "underline", textDecorationThickness: "1px", textUnderlineOffset: "3px", _hover: {
|
|
55
55
|
color: hoverColor,
|
|
56
56
|
textDecorationThickness: '2px',
|
|
57
57
|
}, ...rest }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sources":["../../../src/components/Typography/Link.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","ChakraLink","polymorphic"],"mappings":";;;;;;;;AAsBA;;;;;;;;;;;;AAYG;AACI,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,WAAW;AAClB,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,UAAU,EAAE,WAAW;;AAGzB,MAAM,QAAQ,GAAGA,gBAAU,CACzB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,KAAI;;;;;;;;AAQnC,IAAA,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO;AACtC,IAAA,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK;AAClC,IAAA,MAAM,iBAAiB,GAAG,SAAS,CAAC,YAAY;AAChD,IAAA,MAAM,eAAe,GAAG,SAAS,CAAC,UAAU;;;;;;;AAQ5C,IAAA,MAAM,SAAS,GACb,OAAO,KAAK,OAAO,GAAG,UAAU,IAAI,KAAK,IAAI,YAAY,CAAC;AAE5D,IAAA,MAAM,UAAU,GACd,OAAO,KAAK,OAAO,GAAG,eAAe,GAAG,iBAAiB;AAE3D,IAAA,QACEC,cAAA,CAACC,UAAU,EAAA,EACT,GAAG,EAAE,GAAG;;;;;;QAMR,UAAU,EAAE,GAAG,EACf,
|
|
1
|
+
{"version":3,"file":"Link.js","sources":["../../../src/components/Typography/Link.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","ChakraLink","polymorphic"],"mappings":";;;;;;;;AAsBA;;;;;;;;;;;;AAYG;AACI,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,WAAW;AAClB,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,UAAU,EAAE,WAAW;;AAGzB,MAAM,QAAQ,GAAGA,gBAAU,CACzB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,KAAI;;;;;;;;AAQnC,IAAA,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO;AACtC,IAAA,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK;AAClC,IAAA,MAAM,iBAAiB,GAAG,SAAS,CAAC,YAAY;AAChD,IAAA,MAAM,eAAe,GAAG,SAAS,CAAC,UAAU;;;;;;;AAQ5C,IAAA,MAAM,SAAS,GACb,OAAO,KAAK,OAAO,GAAG,UAAU,IAAI,KAAK,IAAI,YAAY,CAAC;AAE5D,IAAA,MAAM,UAAU,GACd,OAAO,KAAK,OAAO,GAAG,eAAe,GAAG,iBAAiB;AAE3D,IAAA,QACEC,cAAA,CAACC,UAAU,EAAA,EACT,GAAG,EAAE,GAAG;;;;;;QAMR,UAAU,EAAE,GAAG,EACf,KAAK,EAAE,SAAS,EAChB,cAAc,EAAC,WAAW,EAC1B,uBAAuB,EAAC,KAAK,EAC7B,mBAAmB,EAAC,KAAK,EACzB,MAAM,EAAE;AACN,YAAA,KAAK,EAAE,UAAU;AACjB,YAAA,uBAAuB,EAAE,KAAK;SAC/B,EAAA,GACG,IAAI,EAAA,CACR;AAEN,CAAC,CACF;AAED,QAAQ,CAAC,WAAW,GAAG,MAAM;AAE7B;MACa,IAAI,GAAGC,uBAAW,CAAoB,QAAQ;;;;;"}
|
|
@@ -49,7 +49,7 @@ const LinkImpl = forwardRef(({ color, variant, ...rest }, ref) => {
|
|
|
49
49
|
// reads as an affordance against every body-text colour in the fg.*
|
|
50
50
|
// scale the way `primary.main` used to. `{...rest}` below still lets
|
|
51
51
|
// a call site override it.
|
|
52
|
-
fontWeight: 500,
|
|
52
|
+
fontWeight: 500, color: linkColor, textDecoration: "underline", textDecorationThickness: "1px", textUnderlineOffset: "3px", _hover: {
|
|
53
53
|
color: hoverColor,
|
|
54
54
|
textDecorationThickness: '2px',
|
|
55
55
|
}, ...rest }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.mjs","sources":["../../../src/components/Typography/Link.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraLink"],"mappings":";;;;;;AAsBA;;;;;;;;;;;;AAYG;AACI,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,WAAW;AAClB,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,UAAU,EAAE,WAAW;;AAGzB,MAAM,QAAQ,GAAG,UAAU,CACzB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,KAAI;;;;;;;;AAQnC,IAAA,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO;AACtC,IAAA,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK;AAClC,IAAA,MAAM,iBAAiB,GAAG,SAAS,CAAC,YAAY;AAChD,IAAA,MAAM,eAAe,GAAG,SAAS,CAAC,UAAU;;;;;;;AAQ5C,IAAA,MAAM,SAAS,GACb,OAAO,KAAK,OAAO,GAAG,UAAU,IAAI,KAAK,IAAI,YAAY,CAAC;AAE5D,IAAA,MAAM,UAAU,GACd,OAAO,KAAK,OAAO,GAAG,eAAe,GAAG,iBAAiB;AAE3D,IAAA,QACEA,GAAA,CAACC,MAAU,EAAA,EACT,GAAG,EAAE,GAAG;;;;;;QAMR,UAAU,EAAE,GAAG,EACf,
|
|
1
|
+
{"version":3,"file":"Link.mjs","sources":["../../../src/components/Typography/Link.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraLink"],"mappings":";;;;;;AAsBA;;;;;;;;;;;;AAYG;AACI,MAAM,SAAS,GAAG;AACvB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,KAAK,EAAE,WAAW;AAClB,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,UAAU,EAAE,WAAW;;AAGzB,MAAM,QAAQ,GAAG,UAAU,CACzB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,KAAI;;;;;;;;AAQnC,IAAA,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO;AACtC,IAAA,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK;AAClC,IAAA,MAAM,iBAAiB,GAAG,SAAS,CAAC,YAAY;AAChD,IAAA,MAAM,eAAe,GAAG,SAAS,CAAC,UAAU;;;;;;;AAQ5C,IAAA,MAAM,SAAS,GACb,OAAO,KAAK,OAAO,GAAG,UAAU,IAAI,KAAK,IAAI,YAAY,CAAC;AAE5D,IAAA,MAAM,UAAU,GACd,OAAO,KAAK,OAAO,GAAG,eAAe,GAAG,iBAAiB;AAE3D,IAAA,QACEA,GAAA,CAACC,MAAU,EAAA,EACT,GAAG,EAAE,GAAG;;;;;;QAMR,UAAU,EAAE,GAAG,EACf,KAAK,EAAE,SAAS,EAChB,cAAc,EAAC,WAAW,EAC1B,uBAAuB,EAAC,KAAK,EAC7B,mBAAmB,EAAC,KAAK,EACzB,MAAM,EAAE;AACN,YAAA,KAAK,EAAE,UAAU;AACjB,YAAA,uBAAuB,EAAE,KAAK;SAC/B,EAAA,GACG,IAAI,EAAA,CACR;AAEN,CAAC,CACF;AAED,QAAQ,CAAC,WAAW,GAAG,MAAM;AAE7B;MACa,IAAI,GAAG,WAAW,CAAoB,QAAQ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overline.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Overline.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Overline.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Overline.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAgCxD,yEAAyE;AACzE,eAAO,MAAM,QAAQ,+DAAqD,CAAC"}
|
|
@@ -21,7 +21,7 @@ const OverlineImpl = React.forwardRef((props, ref) => {
|
|
|
21
21
|
const { fontSize, ...rest } = props;
|
|
22
22
|
return (jsxRuntime.jsx(react.Text, { ref: ref,
|
|
23
23
|
// If fontSize is provided, disable textStyle to allow the override
|
|
24
|
-
textStyle: fontSize ? undefined : 'overline', fontSize: fontSize, color: "fg.muted",
|
|
24
|
+
textStyle: fontSize ? undefined : 'overline', fontSize: fontSize, color: "fg.muted", ...rest }));
|
|
25
25
|
});
|
|
26
26
|
OverlineImpl.displayName = 'Overline';
|
|
27
27
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overline.js","sources":["../../../src/components/Typography/Overline.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Text","polymorphic"],"mappings":";;;;;;;;AAMA;;;;;;;;;;AAUG;AACH,MAAM,YAAY,GAAGA,gBAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEC,cAAA,CAACC,UAAI,EAAA,EACH,GAAG,EAAE,GAAG;;QAER,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,EAC5C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"Overline.js","sources":["../../../src/components/Typography/Overline.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Text","polymorphic"],"mappings":";;;;;;;;AAMA;;;;;;;;;;AAUG;AACH,MAAM,YAAY,GAAGA,gBAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEC,cAAA,CAACC,UAAI,EAAA,EACH,GAAG,EAAE,GAAG;;QAER,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,EAC5C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,UAAU,EAAA,GACZ,IAAI,EAAA,CACR;AAEN,CAAC,CACF;AAED,YAAY,CAAC,WAAW,GAAG,UAAU;AAErC;MACa,QAAQ,GAAGC,uBAAW,CAA0B,YAAY;;;;"}
|
|
@@ -19,7 +19,7 @@ const OverlineImpl = forwardRef((props, ref) => {
|
|
|
19
19
|
const { fontSize, ...rest } = props;
|
|
20
20
|
return (jsx(Text, { ref: ref,
|
|
21
21
|
// If fontSize is provided, disable textStyle to allow the override
|
|
22
|
-
textStyle: fontSize ? undefined : 'overline', fontSize: fontSize, color: "fg.muted",
|
|
22
|
+
textStyle: fontSize ? undefined : 'overline', fontSize: fontSize, color: "fg.muted", ...rest }));
|
|
23
23
|
});
|
|
24
24
|
OverlineImpl.displayName = 'Overline';
|
|
25
25
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overline.mjs","sources":["../../../src/components/Typography/Overline.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA;;;;;;;;;;AAUG;AACH,MAAM,YAAY,GAAG,UAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,IAAI,EAAA,EACH,GAAG,EAAE,GAAG;;QAER,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,EAC5C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"Overline.mjs","sources":["../../../src/components/Typography/Overline.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA;;;;;;;;;;AAUG;AACH,MAAM,YAAY,GAAG,UAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,IAAI,EAAA,EACH,GAAG,EAAE,GAAG;;QAER,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,EAC5C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,UAAU,EAAA,GACZ,IAAI,EAAA,CACR;AAEN,CAAC,CACF;AAED,YAAY,CAAC,WAAW,GAAG,UAAU;AAErC;MACa,QAAQ,GAAG,WAAW,CAA0B,YAAY;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subtext.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Subtext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Subtext.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Subtext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAoBxD,yEAAyE;AACzE,eAAO,MAAM,OAAO,+DAAoD,CAAC"}
|
|
@@ -8,7 +8,7 @@ var polymorphic = require('../../types/polymorphic.js');
|
|
|
8
8
|
|
|
9
9
|
const SubtextImpl = React.forwardRef((props, ref) => {
|
|
10
10
|
const { fontSize, ...rest } = props;
|
|
11
|
-
return (jsxRuntime.jsx(react.Text, { ref: ref, textStyle: fontSize ? undefined : 'subtext', fontSize: fontSize, color: "fg.default",
|
|
11
|
+
return (jsxRuntime.jsx(react.Text, { ref: ref, textStyle: fontSize ? undefined : 'subtext', fontSize: fontSize, color: "fg.default", ...rest }));
|
|
12
12
|
});
|
|
13
13
|
SubtextImpl.displayName = 'Subtext';
|
|
14
14
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subtext.js","sources":["../../../src/components/Typography/Subtext.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Text","polymorphic"],"mappings":";;;;;;;;AAMA,MAAM,WAAW,GAAGA,gBAAU,CAC5B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEC,cAAA,CAACC,UAAI,EAAA,EACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,EAC3C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"Subtext.js","sources":["../../../src/components/Typography/Subtext.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Text","polymorphic"],"mappings":";;;;;;;;AAMA,MAAM,WAAW,GAAGA,gBAAU,CAC5B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEC,cAAA,CAACC,UAAI,EAAA,EACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,EAC3C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,YAAY,EAAA,GACd,IAAI,EAAA,CACR;AAEN,CAAC,CACF;AAED,WAAW,CAAC,WAAW,GAAG,SAAS;AAEnC;MACa,OAAO,GAAGC,uBAAW,CAA0B,WAAW;;;;"}
|
|
@@ -6,7 +6,7 @@ import { polymorphic } from '../../types/polymorphic.mjs';
|
|
|
6
6
|
|
|
7
7
|
const SubtextImpl = forwardRef((props, ref) => {
|
|
8
8
|
const { fontSize, ...rest } = props;
|
|
9
|
-
return (jsx(Text, { ref: ref, textStyle: fontSize ? undefined : 'subtext', fontSize: fontSize, color: "fg.default",
|
|
9
|
+
return (jsx(Text, { ref: ref, textStyle: fontSize ? undefined : 'subtext', fontSize: fontSize, color: "fg.default", ...rest }));
|
|
10
10
|
});
|
|
11
11
|
SubtextImpl.displayName = 'Subtext';
|
|
12
12
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subtext.mjs","sources":["../../../src/components/Typography/Subtext.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA,MAAM,WAAW,GAAG,UAAU,CAC5B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,IAAI,EAAA,EACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,EAC3C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"Subtext.mjs","sources":["../../../src/components/Typography/Subtext.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA,MAAM,WAAW,GAAG,UAAU,CAC5B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,IAAI,EAAA,EACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,EAC3C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,YAAY,EAAA,GACd,IAAI,EAAA,CACR;AAEN,CAAC,CACF;AAED,WAAW,CAAC,WAAW,GAAG,SAAS;AAEnC;MACa,OAAO,GAAG,WAAW,CAA0B,WAAW;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subtitle.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Subtitle.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Subtitle.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Subtitle.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAqCxD,yEAAyE;AACzE,eAAO,MAAM,QAAQ,+DAAqD,CAAC"}
|
|
@@ -25,7 +25,7 @@ var polymorphic = require('../../types/polymorphic.js');
|
|
|
25
25
|
*/
|
|
26
26
|
const SubtitleImpl = React.forwardRef((props, ref) => {
|
|
27
27
|
const { fontSize, ...rest } = props;
|
|
28
|
-
return (jsxRuntime.jsx(react.Text, { ref: ref, textStyle: fontSize ? undefined : 'subtitle', fontSize: fontSize, color: "fg.muted",
|
|
28
|
+
return (jsxRuntime.jsx(react.Text, { ref: ref, textStyle: fontSize ? undefined : 'subtitle', fontSize: fontSize, color: "fg.muted", ...rest }));
|
|
29
29
|
});
|
|
30
30
|
SubtitleImpl.displayName = 'Subtitle';
|
|
31
31
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subtitle.js","sources":["../../../src/components/Typography/Subtitle.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Text","polymorphic"],"mappings":";;;;;;;;AAMA;;;;;;;;;;;;;;;;AAgBG;AACH,MAAM,YAAY,GAAGA,gBAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEC,cAAA,CAACC,UAAI,EAAA,EACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,EAC5C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"Subtitle.js","sources":["../../../src/components/Typography/Subtitle.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","Text","polymorphic"],"mappings":";;;;;;;;AAMA;;;;;;;;;;;;;;;;AAgBG;AACH,MAAM,YAAY,GAAGA,gBAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEC,cAAA,CAACC,UAAI,EAAA,EACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,EAC5C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,UAAU,EAAA,GACZ,IAAI,EAAA,CACR;AAEN,CAAC,CACF;AAED,YAAY,CAAC,WAAW,GAAG,UAAU;AAErC;MACa,QAAQ,GAAGC,uBAAW,CAA0B,YAAY;;;;"}
|
|
@@ -23,7 +23,7 @@ import { polymorphic } from '../../types/polymorphic.mjs';
|
|
|
23
23
|
*/
|
|
24
24
|
const SubtitleImpl = forwardRef((props, ref) => {
|
|
25
25
|
const { fontSize, ...rest } = props;
|
|
26
|
-
return (jsx(Text, { ref: ref, textStyle: fontSize ? undefined : 'subtitle', fontSize: fontSize, color: "fg.muted",
|
|
26
|
+
return (jsx(Text, { ref: ref, textStyle: fontSize ? undefined : 'subtitle', fontSize: fontSize, color: "fg.muted", ...rest }));
|
|
27
27
|
});
|
|
28
28
|
SubtitleImpl.displayName = 'Subtitle';
|
|
29
29
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subtitle.mjs","sources":["../../../src/components/Typography/Subtitle.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA;;;;;;;;;;;;;;;;AAgBG;AACH,MAAM,YAAY,GAAG,UAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,IAAI,EAAA,EACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,EAC5C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"Subtitle.mjs","sources":["../../../src/components/Typography/Subtitle.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAMA;;;;;;;;;;;;;;;;AAgBG;AACH,MAAM,YAAY,GAAG,UAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;AAEnC,IAAA,QACEA,GAAA,CAAC,IAAI,EAAA,EACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,EAC5C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,UAAU,EAAA,GACZ,IAAI,EAAA,CACR;AAEN,CAAC,CACF;AAED,YAAY,CAAC,WAAW,GAAG,UAAU;AAErC;MACa,QAAQ,GAAG,WAAW,CAA0B,YAAY;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Text.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAuBxD,yEAAyE;AACzE,eAAO,MAAM,IAAI,+DAAiD,CAAC"}
|
|
@@ -11,7 +11,7 @@ const TextImpl = React.forwardRef((props, ref) => {
|
|
|
11
11
|
const { fontSize, ...rest } = props;
|
|
12
12
|
return (jsxRuntime.jsx(react.Text, { ref: ref, as: "p",
|
|
13
13
|
// If fontSize is provided, disable textStyle to allow fontSize override
|
|
14
|
-
textStyle: fontSize ? undefined : 'p', fontSize: fontSize, color: "fg.default",
|
|
14
|
+
textStyle: fontSize ? undefined : 'p', fontSize: fontSize, color: "fg.default", ...rest }));
|
|
15
15
|
});
|
|
16
16
|
TextImpl.displayName = 'Text';
|
|
17
17
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sources":["../../../src/components/Typography/Text.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","ChakraText","polymorphic"],"mappings":";;;;;;;;AAMA,MAAM,QAAQ,GAAGA,gBAAU,CACzB,CAAC,KAAK,EAAE,GAAG,KAAI;;IAEb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;IAEnC,QACEC,cAAA,CAACC,UAAU,EAAA,EACT,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,GAAG;;QAEN,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,GAAG,EACrC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"Text.js","sources":["../../../src/components/Typography/Text.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsx","ChakraText","polymorphic"],"mappings":";;;;;;;;AAMA,MAAM,QAAQ,GAAGA,gBAAU,CACzB,CAAC,KAAK,EAAE,GAAG,KAAI;;IAEb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;IAEnC,QACEC,cAAA,CAACC,UAAU,EAAA,EACT,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,GAAG;;QAEN,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,GAAG,EACrC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,YAAY,EAAA,GACd,IAAI,EAAA,CACR;AAEN,CAAC,CACF;AAED,QAAQ,CAAC,WAAW,GAAG,MAAM;AAE7B;MACa,IAAI,GAAGC,uBAAW,CAA0B,QAAQ;;;;"}
|
|
@@ -9,7 +9,7 @@ const TextImpl = forwardRef((props, ref) => {
|
|
|
9
9
|
const { fontSize, ...rest } = props;
|
|
10
10
|
return (jsx(Text$1, { ref: ref, as: "p",
|
|
11
11
|
// If fontSize is provided, disable textStyle to allow fontSize override
|
|
12
|
-
textStyle: fontSize ? undefined : 'p', fontSize: fontSize, color: "fg.default",
|
|
12
|
+
textStyle: fontSize ? undefined : 'p', fontSize: fontSize, color: "fg.default", ...rest }));
|
|
13
13
|
});
|
|
14
14
|
TextImpl.displayName = 'Text';
|
|
15
15
|
/** Type-level polymorphism over the same runtime — see `polymorphic`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.mjs","sources":["../../../src/components/Typography/Text.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraText"],"mappings":";;;;;;AAMA,MAAM,QAAQ,GAAG,UAAU,CACzB,CAAC,KAAK,EAAE,GAAG,KAAI;;IAEb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;IAEnC,QACEA,GAAA,CAACC,MAAU,EAAA,EACT,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,GAAG;;QAEN,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,GAAG,EACrC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"Text.mjs","sources":["../../../src/components/Typography/Text.tsx"],"sourcesContent":[null],"names":["_jsx","ChakraText"],"mappings":";;;;;;AAMA,MAAM,QAAQ,GAAG,UAAU,CACzB,CAAC,KAAK,EAAE,GAAG,KAAI;;IAEb,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK;IAEnC,QACEA,GAAA,CAACC,MAAU,EAAA,EACT,GAAG,EAAE,GAAG,EACR,EAAE,EAAC,GAAG;;QAEN,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,GAAG,EACrC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAC,YAAY,EAAA,GACd,IAAI,EAAA,CACR;AAEN,CAAC,CACF;AAED,QAAQ,CAAC,WAAW,GAAG,MAAM;AAE7B;MACa,IAAI,GAAG,WAAW,CAA0B,QAAQ;;;;"}
|
|
@@ -2,6 +2,11 @@ import type { SupportedLanguage } from '@/components/MonthPicker/constants';
|
|
|
2
2
|
export interface LanguageContextValue {
|
|
3
3
|
language: SupportedLanguage;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* The value seen outside any `LogicianProvider`. Exported so `useTranslate`
|
|
7
|
+
* can tell "no provider" (keep Korean) from a provider set to `en`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const NO_PROVIDER_LANGUAGE: LanguageContextValue;
|
|
5
10
|
export declare const LanguageContext: import("react").Context<LanguageContextValue>;
|
|
6
11
|
export declare const useLanguage: () => LanguageContextValue;
|
|
7
12
|
export default useLanguage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLanguage.d.ts","sourceRoot":"","sources":["../../src/hooks/useLanguage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,iBAAiB,CAAC;CAC7B;AAED,eAAO,MAAM,eAAe,+
|
|
1
|
+
{"version":3,"file":"useLanguage.d.ts","sourceRoot":"","sources":["../../src/hooks/useLanguage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,iBAAiB,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,oBAAyC,CAAC;AAE7E,eAAO,MAAM,eAAe,+CAC+B,CAAC;AAE5D,eAAO,MAAM,WAAW,4BAAoC,CAAC;AAE7D,eAAe,WAAW,CAAC"}
|
|
@@ -5,12 +5,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The value seen outside any `LogicianProvider`. Exported so `useTranslate`
|
|
10
|
+
* can tell "no provider" (keep Korean) from a provider set to `en`.
|
|
11
|
+
*/
|
|
12
|
+
const NO_PROVIDER_LANGUAGE = { language: 'en' };
|
|
13
|
+
const LanguageContext = React.createContext(NO_PROVIDER_LANGUAGE);
|
|
11
14
|
const useLanguage = () => React.useContext(LanguageContext);
|
|
12
15
|
|
|
13
16
|
exports.LanguageContext = LanguageContext;
|
|
17
|
+
exports.NO_PROVIDER_LANGUAGE = NO_PROVIDER_LANGUAGE;
|
|
14
18
|
exports.default = useLanguage;
|
|
15
19
|
exports.useLanguage = useLanguage;
|
|
16
20
|
//# sourceMappingURL=useLanguage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLanguage.js","sources":["../../src/hooks/useLanguage.ts"],"sourcesContent":[null],"names":["createContext","useContext"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"useLanguage.js","sources":["../../src/hooks/useLanguage.ts"],"sourcesContent":[null],"names":["createContext","useContext"],"mappings":";;;;;;;AAUA;;;AAGG;MACU,oBAAoB,GAAyB,EAAE,QAAQ,EAAE,IAAI;MAE7D,eAAe,GAC1BA,mBAAa,CAAuB,oBAAoB;AAEnD,MAAM,WAAW,GAAG,MAAMC,gBAAU,CAAC,eAAe;;;;;;;"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createContext, useContext } from 'react';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
/**
|
|
5
|
+
* The value seen outside any `LogicianProvider`. Exported so `useTranslate`
|
|
6
|
+
* can tell "no provider" (keep Korean) from a provider set to `en`.
|
|
7
|
+
*/
|
|
8
|
+
const NO_PROVIDER_LANGUAGE = { language: 'en' };
|
|
9
|
+
const LanguageContext = createContext(NO_PROVIDER_LANGUAGE);
|
|
7
10
|
const useLanguage = () => useContext(LanguageContext);
|
|
8
11
|
|
|
9
|
-
export { LanguageContext, useLanguage as default, useLanguage };
|
|
12
|
+
export { LanguageContext, NO_PROVIDER_LANGUAGE, useLanguage as default, useLanguage };
|
|
10
13
|
//# sourceMappingURL=useLanguage.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLanguage.mjs","sources":["../../src/hooks/useLanguage.ts"],"sourcesContent":[null],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"useLanguage.mjs","sources":["../../src/hooks/useLanguage.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAUA;;;AAGG;MACU,oBAAoB,GAAyB,EAAE,QAAQ,EAAE,IAAI;MAE7D,eAAe,GAC1B,aAAa,CAAuB,oBAAoB;AAEnD,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,eAAe;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslate.d.ts","sourceRoot":"","sources":["../../src/hooks/useTranslate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTranslate.d.ts","sourceRoot":"","sources":["../../src/hooks/useTranslate.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,YAAY,GAAI,iBAAiB,WAQpC,MAAM,cAAc;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,mBASnD,CAAC"}
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var Defaults_translations = require('../translations/Defaults.translations.json.js');
|
|
6
6
|
var formatTextForMarkdown = require('../utils/formatTextForMarkdown.js');
|
|
7
|
+
var useLanguage = require('./useLanguage.js');
|
|
7
8
|
|
|
9
|
+
const DEFAULT_LOCALE = 'ko';
|
|
8
10
|
// Given a block of text and variables, replaces instances of the provided variables in the text
|
|
9
11
|
const replaceVariables = (text, variables) => {
|
|
10
12
|
if (!variables)
|
|
@@ -31,13 +33,14 @@ const replaceVariables = (text, variables) => {
|
|
|
31
33
|
? parts.join('')
|
|
32
34
|
: parts;
|
|
33
35
|
};
|
|
34
|
-
const getLanguage = () => {
|
|
35
|
-
return 'ko';
|
|
36
|
-
};
|
|
37
36
|
const useTranslate = (translations = {}) => {
|
|
38
|
-
|
|
37
|
+
// Follow `LogicianProvider`'s `language`, the same one the date pickers
|
|
38
|
+
// read. Outside a provider there is nothing to follow, so the library keeps
|
|
39
|
+
// its historical Korean.
|
|
40
|
+
const context = useLanguage.useLanguage();
|
|
41
|
+
const userLanguage = context === useLanguage.NO_PROVIDER_LANGUAGE ? DEFAULT_LOCALE : context.language;
|
|
39
42
|
return React.useCallback((key, variables) => {
|
|
40
|
-
const locale = userLanguage;
|
|
43
|
+
const locale = userLanguage ?? DEFAULT_LOCALE;
|
|
41
44
|
const translation = { ...Defaults_translations.default, ...translations }[key]?.[locale] ?? key;
|
|
42
45
|
const finalRes = replaceVariables(translation, variables);
|
|
43
46
|
return finalRes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslate.js","sources":["../../src/hooks/useTranslate.ts"],"sourcesContent":[null],"names":["formatForMarkdown","useCallback","defaultTranslations"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTranslate.js","sources":["../../src/hooks/useTranslate.ts"],"sourcesContent":[null],"names":["formatForMarkdown","useLanguage","NO_PROVIDER_LANGUAGE","useCallback","defaultTranslations"],"mappings":";;;;;;;;AAOA,MAAM,cAAc,GAAG,IAAI;AAE3B;AACA,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,SAAkC,KAAI;AAC5E,IAAA,IAAI,CAAC,SAAS;AAAE,QAAA,OAAOA,uCAAiB,CAAC,IAAI,CAAC;IAE9C,MAAM,KAAK,GAAG,aAAa;IAE3B,MAAM,aAAa,GAAa,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE;IACvD,MAAM,SAAS,GAAkB,EAAE;IACnC,IAAI,SAAS,GAAG,CAAC;AACjB,IAAA,aAAa,CAAC,OAAO,CAAC,CAAC,YAAoB,KAAI;QAC7C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;;AAE3C,QAAA,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;;AAE/C,QAAA,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AACpE,QAAA,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC,MAAM;AAC5C,IAAA,CAAC,CAAC;;IAEF,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAErC,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CACzB,CAAC,QAAgB;;AAEf,IAAA,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACjD,QAAAA,uCAAiB,CAAC,QAAQ,CAAC,CAC9B;AAED,IAAA,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ;AACnD,UAAE,KAAK,CAAC,IAAI,CAAC,EAAE;UACb,KAAK;AACX,CAAC;MAEY,YAAY,GAAG,CAAC,YAAY,GAAG,EAAE,KAAI;;;;AAIhD,IAAA,MAAM,OAAO,GAAGC,uBAAW,EAAE;AAC7B,IAAA,MAAM,YAAY,GAChB,OAAO,KAAKC,gCAAoB,GAAG,cAAc,GAAG,OAAO,CAAC,QAAQ;AACtE,IAAA,OAAOC,iBAAW,CAChB,CAAC,GAAW,EAAE,SAAkC,KAAI;AAClD,QAAA,MAAM,MAAM,GAAI,YAAuB,IAAI,cAAc;AACzD,QAAA,MAAM,WAAW,GACf,EAAE,GAAGC,6BAAmB,EAAE,GAAG,YAAY,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,GAAG;QACnE,MAAM,QAAQ,GAAG,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAC;AACzD,QAAA,OAAO,QAAQ;AACjB,IAAA,CAAC,EACD,CAAC,YAAY,EAAE,YAAY,CAAC,CAC7B;AACH;;;;"}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
3
|
import defaultTranslations from '../translations/Defaults.translations.json.mjs';
|
|
4
4
|
import { formatForMarkdown } from '../utils/formatTextForMarkdown.mjs';
|
|
5
|
+
import { useLanguage, NO_PROVIDER_LANGUAGE } from './useLanguage.mjs';
|
|
5
6
|
|
|
7
|
+
const DEFAULT_LOCALE = 'ko';
|
|
6
8
|
// Given a block of text and variables, replaces instances of the provided variables in the text
|
|
7
9
|
const replaceVariables = (text, variables) => {
|
|
8
10
|
if (!variables)
|
|
@@ -29,13 +31,14 @@ const replaceVariables = (text, variables) => {
|
|
|
29
31
|
? parts.join('')
|
|
30
32
|
: parts;
|
|
31
33
|
};
|
|
32
|
-
const getLanguage = () => {
|
|
33
|
-
return 'ko';
|
|
34
|
-
};
|
|
35
34
|
const useTranslate = (translations = {}) => {
|
|
36
|
-
|
|
35
|
+
// Follow `LogicianProvider`'s `language`, the same one the date pickers
|
|
36
|
+
// read. Outside a provider there is nothing to follow, so the library keeps
|
|
37
|
+
// its historical Korean.
|
|
38
|
+
const context = useLanguage();
|
|
39
|
+
const userLanguage = context === NO_PROVIDER_LANGUAGE ? DEFAULT_LOCALE : context.language;
|
|
37
40
|
return useCallback((key, variables) => {
|
|
38
|
-
const locale = userLanguage;
|
|
41
|
+
const locale = userLanguage ?? DEFAULT_LOCALE;
|
|
39
42
|
const translation = { ...defaultTranslations, ...translations }[key]?.[locale] ?? key;
|
|
40
43
|
const finalRes = replaceVariables(translation, variables);
|
|
41
44
|
return finalRes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranslate.mjs","sources":["../../src/hooks/useTranslate.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTranslate.mjs","sources":["../../src/hooks/useTranslate.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAOA,MAAM,cAAc,GAAG,IAAI;AAE3B;AACA,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,SAAkC,KAAI;AAC5E,IAAA,IAAI,CAAC,SAAS;AAAE,QAAA,OAAO,iBAAiB,CAAC,IAAI,CAAC;IAE9C,MAAM,KAAK,GAAG,aAAa;IAE3B,MAAM,aAAa,GAAa,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE;IACvD,MAAM,SAAS,GAAkB,EAAE;IACnC,IAAI,SAAS,GAAG,CAAC;AACjB,IAAA,aAAa,CAAC,OAAO,CAAC,CAAC,YAAoB,KAAI;QAC7C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;;AAE3C,QAAA,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;;AAE/C,QAAA,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AACpE,QAAA,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC,MAAM;AAC5C,IAAA,CAAC,CAAC;;IAEF,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAErC,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CACzB,CAAC,QAAgB;;AAEf,IAAA,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACjD,QAAA,iBAAiB,CAAC,QAAQ,CAAC,CAC9B;AAED,IAAA,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ;AACnD,UAAE,KAAK,CAAC,IAAI,CAAC,EAAE;UACb,KAAK;AACX,CAAC;MAEY,YAAY,GAAG,CAAC,YAAY,GAAG,EAAE,KAAI;;;;AAIhD,IAAA,MAAM,OAAO,GAAG,WAAW,EAAE;AAC7B,IAAA,MAAM,YAAY,GAChB,OAAO,KAAK,oBAAoB,GAAG,cAAc,GAAG,OAAO,CAAC,QAAQ;AACtE,IAAA,OAAO,WAAW,CAChB,CAAC,GAAW,EAAE,SAAkC,KAAI;AAClD,QAAA,MAAM,MAAM,GAAI,YAAuB,IAAI,cAAc;AACzD,QAAA,MAAM,WAAW,GACf,EAAE,GAAG,mBAAmB,EAAE,GAAG,YAAY,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,GAAG;QACnE,MAAM,QAAQ,GAAG,gBAAgB,CAAC,WAAW,EAAE,SAAS,CAAC;AACzD,QAAA,OAAO,QAAQ;AACjB,IAAA,CAAC,EACD,CAAC,YAAY,EAAE,YAAY,CAAC,CAC7B;AACH;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -209,6 +209,7 @@ exports.AccordionItem = AccordionItem.AccordionItem;
|
|
|
209
209
|
exports.AccordionPanel = AccordionPanel.AccordionPanel;
|
|
210
210
|
exports.Appear = Appear.Appear;
|
|
211
211
|
exports.Avatar = Avatar.Avatar;
|
|
212
|
+
exports.avatarColorPalette = Avatar.avatarColorPalette;
|
|
212
213
|
exports.avatarFallbackColors = Avatar.avatarFallbackColors;
|
|
213
214
|
exports.hueForName = Avatar.hueForName;
|
|
214
215
|
exports.Badge = Badge.Badge;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ export { AccordionButton } from './components/Accordion/AccordionButton.mjs';
|
|
|
4
4
|
export { AccordionItem } from './components/Accordion/AccordionItem.mjs';
|
|
5
5
|
export { AccordionPanel } from './components/Accordion/AccordionPanel.mjs';
|
|
6
6
|
export { Appear } from './components/Appear/Appear.mjs';
|
|
7
|
-
export { Avatar, avatarFallbackColors, hueForName } from './components/Avatar/Avatar.mjs';
|
|
7
|
+
export { Avatar, avatarColorPalette, avatarFallbackColors, hueForName } from './components/Avatar/Avatar.mjs';
|
|
8
8
|
export { Badge } from './components/Badge/Badge.mjs';
|
|
9
9
|
export { baseStyles as badgeStyles, variantStyles as badgeVariantStyles, badgeVariants } from './components/Badge/Badge.styles.mjs';
|
|
10
10
|
export { Banner } from './components/Banner/Banner.mjs';
|
package/dist/theme/colors.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ type TokenTree = {
|
|
|
24
24
|
*/
|
|
25
25
|
export declare const colors: Record<string, Record<string, TokenValue> | TokenValue>;
|
|
26
26
|
/** Exposed for tests and docs: every role token generated from the scheme table. */
|
|
27
|
-
export declare const ROLE_TOKEN_PATHS: Record<"track" | "bg-canvas" | "layer-1" | "layer-1-hover" | "layer-1-active" | "layer-2" | "layer-2-hover" | "layer-2-active" | "layer-3" | "layer-3-hover" | "layer-3-active" | "bg-subtle" | "bg-surface" | "bg-muted" | "border-subtle" | "border-default" | "border-strong" | "fg-default" | "fg-muted" | "fg-subtle" | "fg-icon" | "fg-placeholder" | "fg-onPrimary" | "primary-main" | "primary-hover" | "primary-active" | "primary-wash" | "primary-washActive" | "primary-selected" | "secondary-surface" | "secondary-surfaceStrong" | "secondary-border" | "secondary-fg" | "secondary-fgStrong" | "action-mark" | "action-iconOnSolid" | "action-bg" | "action-bgHover" | "action-bgActive" | "action-fg" | "action-border" | "send-bg" | "send-bgHover" | "send-bgActive" | "send-fg" | "count-bg" | "count-fg" | "disabled-bg" | "disabled-fg" | "fg-link" | "fg-linkHover" | "focus" | "danger-bg" | "danger-border" | "danger-fg" | "danger-solid" | "danger-solidHover" | "danger-solidActive" | "danger-onSolid" | "success-bg" | "success-border" | "success-fg" | "success-solid" | "success-onSolid" | "warning-bg" | "warning-border" | "warning-fg" | "warning-solid" | "warning-onSolid" | "info-bg" | "info-border" | "info-fg" | "info-solid" | "info-onSolid" | "tooltip-bg" | "tooltip-fg" | "border-control", string>;
|
|
27
|
+
export declare const ROLE_TOKEN_PATHS: Record<"track" | "bg-canvas" | "layer-1" | "layer-1-hover" | "layer-1-active" | "layer-2" | "layer-2-hover" | "layer-2-active" | "layer-3" | "layer-3-hover" | "layer-3-active" | "bg-subtle" | "bg-surface" | "bg-muted" | "border-subtle" | "border-default" | "border-strong" | "fg-default" | "fg-muted" | "fg-subtle" | "fg-icon" | "fg-placeholder" | "fg-onPrimary" | "primary-main" | "primary-hover" | "primary-active" | "primary-wash" | "primary-washActive" | "primary-selected" | "secondary-surface" | "secondary-surfaceStrong" | "secondary-border" | "secondary-fg" | "secondary-fgStrong" | "action-mark" | "action-iconOnSolid" | "action-bg" | "action-bgHover" | "action-bgActive" | "action-fg" | "action-border" | "send-bg" | "send-bgHover" | "send-bgActive" | "send-fg" | "count-bg" | "count-fg" | "disabled-bg" | "disabled-fg" | "fg-link" | "fg-linkHover" | "focus" | "danger-bg" | "danger-border" | "danger-fg" | "danger-solid" | "danger-solidHover" | "danger-solidActive" | "danger-onSolid" | "success-bg" | "success-border" | "success-fg" | "success-solid" | "success-onSolid" | "warning-bg" | "warning-border" | "warning-fg" | "warning-solid" | "warning-onSolid" | "info-bg" | "info-border" | "info-fg" | "info-solid" | "info-onSolid" | "tooltip-bg" | "tooltip-fg" | "data-1" | "data-2" | "data-3" | "data-4" | "diverging-pos-1" | "diverging-pos-2" | "diverging-pos-3" | "diverging-neg-1" | "diverging-neg-2" | "diverging-neg-3" | "diverging-mid" | "border-control", string>;
|
|
28
28
|
/**
|
|
29
29
|
* Build the semantic colour tokens for one neutral/secondary choice.
|
|
30
30
|
* `createLogicianTheme` calls this; the default export below is BAZE.
|
|
@@ -45,7 +45,7 @@ type StatusFamily = 'danger' | 'success' | 'warning' | 'info';
|
|
|
45
45
|
* beside `PATHS` so a rename is a visible diff. Internal `scheme.*` helpers and
|
|
46
46
|
* the bare `bg`/`fg`/`border` DEFAULTs are deliberately absent.
|
|
47
47
|
*/
|
|
48
|
-
export type SemanticColorToken = `neutral.${Step}` | `secondary.${Step}` | `bg.${'canvas' | 'surface' | 'raised' | 'subtle' | 'muted' | 'sunken' | 'track' | 'inverse' | 'panel' | 'highlighted'}` | 'bg.invalid.subtle' | `layer.${1 | 2 | 3}` | `layer.${1 | 2 | 3}.${'hover' | 'active'}` | `fg.${'default' | 'emphasized' | 'muted' | 'subtle' | 'icon' | 'placeholder' | 'onPrimary' | 'link' | 'linkHover' | 'inverse'}` | `border.${'subtle' | 'default' | 'strong' | 'control'}` | `primary.${'main' | 'hover' | 'active' | 'wash' | 'washActive' | 'selected'}` | `secondary.${'surface' | 'surfaceStrong' | 'border' | 'fg' | 'fgStrong'}` | `action.${'mark' | 'iconOnSolid' | 'bg' | 'bgHover' | 'bgActive' | 'fg' | 'border'}` | `send.${'bg' | 'bgHover' | 'bgActive' | 'fg'}` | `count.${'bg' | 'fg'}` | `disabled.${'bg' | 'fg'}` | 'focus.ring' | `${StatusFamily}.${'bg' | 'border' | 'fg' | 'solid' | 'onSolid'}` | `danger.${'solidHover' | 'solidActive'}` | `tooltip.${'bg' | 'fg'}` | `category.${Hue}.${'surface' | 'fg'}` | DeprecatedSemanticColorToken;
|
|
48
|
+
export type SemanticColorToken = `neutral.${Step}` | `secondary.${Step}` | `bg.${'canvas' | 'surface' | 'raised' | 'subtle' | 'muted' | 'sunken' | 'track' | 'inverse' | 'panel' | 'highlighted' | 'logo'}` | 'bg.invalid.subtle' | `layer.${1 | 2 | 3}` | `layer.${1 | 2 | 3}.${'hover' | 'active'}` | `fg.${'default' | 'emphasized' | 'muted' | 'subtle' | 'icon' | 'placeholder' | 'onPrimary' | 'onLogo' | 'link' | 'linkHover' | 'inverse'}` | `border.${'subtle' | 'default' | 'strong' | 'control'}` | `primary.${'main' | 'hover' | 'active' | 'wash' | 'washActive' | 'selected'}` | `secondary.${'surface' | 'surfaceStrong' | 'border' | 'fg' | 'fgStrong'}` | `action.${'mark' | 'iconOnSolid' | 'bg' | 'bgHover' | 'bgActive' | 'fg' | 'border'}` | `send.${'bg' | 'bgHover' | 'bgActive' | 'fg'}` | `count.${'bg' | 'fg'}` | `disabled.${'bg' | 'fg'}` | 'focus.ring' | `${StatusFamily}.${'bg' | 'border' | 'fg' | 'solid' | 'onSolid'}` | `danger.${'solidHover' | 'solidActive'}` | `tooltip.${'bg' | 'fg'}` | `category.${Hue | 'neutral'}.${'surface' | 'fg'}` | `data.${1 | 2 | 3 | 4}` | `diverging.${'pos' | 'neg'}.${1 | 2 | 3}` | 'diverging.mid' | DeprecatedSemanticColorToken;
|
|
49
49
|
/**
|
|
50
50
|
* @deprecated 4.x names kept as aliases in 5.0 — see `DEPRECATED_COLOR_TOKENS`
|
|
51
51
|
* for the replacement. Removed in 6.0.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/theme/colors.ts"],"names":[],"mappings":"AAkDA,kEAAkE;AAClE,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,CAAC;AAC3C,qEAAqE;AACrE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,WAAW,oBAAoB;IACnC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;AAED,eAAO,MAAM,gBAAgB,oHAanB,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,QAAA,MAAM,KAAK,kDAAmD,CAAC;AAC/D,KAAK,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnC,KAAK,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AACpC,KAAK,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAA;CAAE,CAAC;AAiC3D;;;GAGG;AACH,eAAO,MAAM,MAAM,EAmBd,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,UAAU,CAAC,CAAC;AA2G7D,oFAAoF;AACpF,eAAO,MAAM,gBAAgB,28CAAQ,CAAC;AAmDtC;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAe,EACf,SAAkB,GACnB,GAAE,oBAAyB,aA0H3B;AAED,yCAAyC;AACzC,eAAO,MAAM,cAAc;;CAAqC,CAAC;AAEjE,sDAAsD;AACtD,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CACjD,CAAC;AAErB,KAAK,GAAG,GAAG,SAAS,CAAC;AACrB,KAAK,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9D;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAC1B,WAAW,IAAI,EAAE,GACjB,aAAa,IAAI,EAAE,GACnB,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,aAAa,GAAG,MAAM,EAAE,GAChI,mBAAmB,GACnB,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GACpB,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,QAAQ,EAAE,GAC1C,MAAM,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,EAAE,GAC1I,UAAU,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,EAAE,GACvD,WAAW,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,EAAE,GAC7E,aAAa,SAAS,GAAG,eAAe,GAAG,QAAQ,GAAG,IAAI,GAAG,UAAU,EAAE,GACzE,UAAU,MAAM,GAAG,aAAa,GAAG,IAAI,GAAG,SAAS,GAAG,UAAU,GAAG,IAAI,GAAG,QAAQ,EAAE,GACpF,QAAQ,IAAI,GAAG,SAAS,GAAG,UAAU,GAAG,IAAI,EAAE,GAC9C,SAAS,IAAI,GAAG,IAAI,EAAE,GACtB,YAAY,IAAI,GAAG,IAAI,EAAE,GACzB,YAAY,GACZ,GAAG,YAAY,IAAI,IAAI,GAAG,QAAQ,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,GACjE,UAAU,YAAY,GAAG,aAAa,EAAE,GACxC,WAAW,IAAI,GAAG,IAAI,EAAE,GACxB,YAAY,GAAG,GAAG,SAAS,IAAI,SAAS,GAAG,IAAI,EAAE,GACjD,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GACvB,aAAa,KAAK,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GACzC,eAAe,GACf,4BAA4B,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GACpC,WAAW,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,EAAE,GACxG,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,IAAI,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,EAAE,GACnI,cAAc,GACd,aAAa,GACb,WAAW,GACX,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,EAAE,CAAC"}
|