@md-code/components 0.0.0-stage → 0.0.2
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/CHANGELOG.md +12 -0
- package/LICENSE +202 -0
- package/README.md +77 -2
- package/dist/assets/favicon.ico +0 -0
- package/dist/assets/logo.png +0 -0
- package/dist/atoms/Loading/ouroboros.svg +41 -0
- package/dist/atoms/Logo/logo.jpg +0 -0
- package/dist/avatar.js +8 -0
- package/dist/badge.js +25 -0
- package/dist/breadcrumbs.js +60 -0
- package/dist/button.js +203 -0
- package/dist/calendar.js +101 -0
- package/dist/caption.js +14 -0
- package/dist/card.js +82 -0
- package/dist/carousel.js +125 -0
- package/dist/central-modal.js +22 -0
- package/dist/chip.js +42 -0
- package/dist/circle-image.js +22 -0
- package/dist/code-preview.js +38 -0
- package/dist/code-view-tokenizer.js +35 -0
- package/dist/code-view.js +96 -0
- package/dist/conditional-wrapper.js +5 -0
- package/dist/containers.js +115 -0
- package/dist/diff-legend.js +31 -0
- package/dist/div-input.js +103 -0
- package/dist/empty.js +12 -0
- package/dist/filter-bar.js +15 -0
- package/dist/form-label.js +19 -0
- package/dist/form.js +17 -0
- package/dist/full-screen-modal.js +27 -0
- package/dist/header.js +19 -0
- package/dist/html-editor.js +81 -0
- package/dist/icons.js +42 -0
- package/dist/input.js +62 -0
- package/dist/link.js +35 -0
- package/dist/loading.js +182 -0
- package/dist/logo.js +12 -0
- package/dist/modals.js +130 -0
- package/dist/molecules/Carousel/arrow.svg +5 -0
- package/dist/molecules/Select/arrow_down.svg +3 -0
- package/dist/mono-text.js +16 -0
- package/dist/nav-tabs.js +33 -0
- package/dist/page-header.js +20 -0
- package/dist/pagination.js +119 -0
- package/dist/progress-bar.js +26 -0
- package/dist/radio.js +73 -0
- package/dist/report-ui.js +358 -0
- package/dist/row.js +15 -0
- package/dist/score-panel.js +125 -0
- package/dist/score-pills.js +25 -0
- package/dist/search-input.js +84 -0
- package/dist/select.js +164 -0
- package/dist/separator.js +16 -0
- package/dist/slider-field.js +34 -0
- package/dist/stack.js +16 -0
- package/dist/stat-grid.js +10 -0
- package/dist/stat.js +24 -0
- package/dist/status-label.js +63 -0
- package/dist/status-text.js +13 -0
- package/dist/submit.js +57 -0
- package/dist/subtle-text.js +14 -0
- package/dist/surface.js +39 -0
- package/dist/switch.js +99 -0
- package/dist/table.js +132 -0
- package/dist/tabs.js +156 -0
- package/dist/text-checkbox.js +64 -0
- package/dist/text-link.js +20 -0
- package/dist/textarea.js +56 -0
- package/dist/textures/Cloud/clouds.svg +52 -0
- package/dist/textures.js +170 -0
- package/dist/toasts.js +79 -0
- package/dist/toggle.js +66 -0
- package/dist/token-input-field.js +56 -0
- package/dist/tooltip.js +95 -0
- package/dist/types/atoms/Avatar/index.d.ts +6 -0
- package/dist/types/atoms/Avatar/index.d.ts.map +1 -0
- package/dist/types/atoms/Breadcrumbs/index.d.ts +10 -0
- package/dist/types/atoms/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/types/atoms/Breadcrumbs/styles.d.ts +95 -0
- package/dist/types/atoms/Breadcrumbs/styles.d.ts.map +1 -0
- package/dist/types/atoms/Calendar/index.d.ts +4 -0
- package/dist/types/atoms/Calendar/index.d.ts.map +1 -0
- package/dist/types/atoms/Calendar/styles.d.ts +12 -0
- package/dist/types/atoms/Calendar/styles.d.ts.map +1 -0
- package/dist/types/atoms/Caption/index.d.ts +9 -0
- package/dist/types/atoms/Caption/index.d.ts.map +1 -0
- package/dist/types/atoms/Caption/styles.d.ts +9 -0
- package/dist/types/atoms/Caption/styles.d.ts.map +1 -0
- package/dist/types/atoms/CentralModal/index.d.ts +3 -0
- package/dist/types/atoms/CentralModal/index.d.ts.map +1 -0
- package/dist/types/atoms/Chip/index.d.ts +39 -0
- package/dist/types/atoms/Chip/index.d.ts.map +1 -0
- package/dist/types/atoms/Chip/styles.d.ts +19 -0
- package/dist/types/atoms/Chip/styles.d.ts.map +1 -0
- package/dist/types/atoms/CircleImage/index.d.ts +13 -0
- package/dist/types/atoms/CircleImage/index.d.ts.map +1 -0
- package/dist/types/atoms/CodePreview/index.d.ts +23 -0
- package/dist/types/atoms/CodePreview/index.d.ts.map +1 -0
- package/dist/types/atoms/ConditionalWrapper/index.d.ts +8 -0
- package/dist/types/atoms/ConditionalWrapper/index.d.ts.map +1 -0
- package/dist/types/atoms/Containers/index.d.ts +3 -0
- package/dist/types/atoms/Containers/index.d.ts.map +1 -0
- package/dist/types/atoms/Containers/styles.d.ts +87 -0
- package/dist/types/atoms/Containers/styles.d.ts.map +1 -0
- package/dist/types/atoms/DivInput/index.d.ts +18 -0
- package/dist/types/atoms/DivInput/index.d.ts.map +1 -0
- package/dist/types/atoms/Empty/index.d.ts +10 -0
- package/dist/types/atoms/Empty/index.d.ts.map +1 -0
- package/dist/types/atoms/Empty/styles.d.ts +9 -0
- package/dist/types/atoms/Empty/styles.d.ts.map +1 -0
- package/dist/types/atoms/Form/Form.d.ts +15 -0
- package/dist/types/atoms/Form/Form.d.ts.map +1 -0
- package/dist/types/atoms/Form/index.d.ts +13 -0
- package/dist/types/atoms/Form/index.d.ts.map +1 -0
- package/dist/types/atoms/FormLabel/index.d.ts +13 -0
- package/dist/types/atoms/FormLabel/index.d.ts.map +1 -0
- package/dist/types/atoms/FullScreenModal/index.d.ts +3 -0
- package/dist/types/atoms/FullScreenModal/index.d.ts.map +1 -0
- package/dist/types/atoms/Header/index.d.ts +3 -0
- package/dist/types/atoms/Header/index.d.ts.map +1 -0
- package/dist/types/atoms/Header/styles.d.ts +18 -0
- package/dist/types/atoms/Header/styles.d.ts.map +1 -0
- package/dist/types/atoms/Icons/index.d.ts +49 -0
- package/dist/types/atoms/Icons/index.d.ts.map +1 -0
- package/dist/types/atoms/Input/index.d.ts +3 -0
- package/dist/types/atoms/Input/index.d.ts.map +1 -0
- package/dist/types/atoms/Input/styles.d.ts +20 -0
- package/dist/types/atoms/Input/styles.d.ts.map +1 -0
- package/dist/types/atoms/Link/index.d.ts +3 -0
- package/dist/types/atoms/Link/index.d.ts.map +1 -0
- package/dist/types/atoms/Link/styles.d.ts +133 -0
- package/dist/types/atoms/Link/styles.d.ts.map +1 -0
- package/dist/types/atoms/Loading/index.d.ts +27 -0
- package/dist/types/atoms/Loading/index.d.ts.map +1 -0
- package/dist/types/atoms/Loading/styles.d.ts +31 -0
- package/dist/types/atoms/Loading/styles.d.ts.map +1 -0
- package/dist/types/atoms/Logo/index.d.ts +3 -0
- package/dist/types/atoms/Logo/index.d.ts.map +1 -0
- package/dist/types/atoms/MonoText/index.d.ts +23 -0
- package/dist/types/atoms/MonoText/index.d.ts.map +1 -0
- package/dist/types/atoms/MonoText/styles.d.ts +13 -0
- package/dist/types/atoms/MonoText/styles.d.ts.map +1 -0
- package/dist/types/atoms/Pagination/index.d.ts +9 -0
- package/dist/types/atoms/Pagination/index.d.ts.map +1 -0
- package/dist/types/atoms/Pagination/styles.d.ts +38 -0
- package/dist/types/atoms/Pagination/styles.d.ts.map +1 -0
- package/dist/types/atoms/ProgressBar/index.d.ts +13 -0
- package/dist/types/atoms/ProgressBar/index.d.ts.map +1 -0
- package/dist/types/atoms/Radio/index.d.ts +12 -0
- package/dist/types/atoms/Radio/index.d.ts.map +1 -0
- package/dist/types/atoms/Row/index.d.ts +8 -0
- package/dist/types/atoms/Row/index.d.ts.map +1 -0
- package/dist/types/atoms/Row/styles.d.ts +9 -0
- package/dist/types/atoms/Row/styles.d.ts.map +1 -0
- package/dist/types/atoms/Separator/index.d.ts +24 -0
- package/dist/types/atoms/Separator/index.d.ts.map +1 -0
- package/dist/types/atoms/Separator/styles.d.ts +14 -0
- package/dist/types/atoms/Separator/styles.d.ts.map +1 -0
- package/dist/types/atoms/Stack/index.d.ts +17 -0
- package/dist/types/atoms/Stack/index.d.ts.map +1 -0
- package/dist/types/atoms/Stack/styles.d.ts +12 -0
- package/dist/types/atoms/Stack/styles.d.ts.map +1 -0
- package/dist/types/atoms/Stat/index.d.ts +24 -0
- package/dist/types/atoms/Stat/index.d.ts.map +1 -0
- package/dist/types/atoms/Stat/styles.d.ts +19 -0
- package/dist/types/atoms/Stat/styles.d.ts.map +1 -0
- package/dist/types/atoms/StatusText/index.d.ts +17 -0
- package/dist/types/atoms/StatusText/index.d.ts.map +1 -0
- package/dist/types/atoms/StatusText/styles.d.ts +13 -0
- package/dist/types/atoms/StatusText/styles.d.ts.map +1 -0
- package/dist/types/atoms/Submit/index.d.ts +10 -0
- package/dist/types/atoms/Submit/index.d.ts.map +1 -0
- package/dist/types/atoms/SubtleText/index.d.ts +17 -0
- package/dist/types/atoms/SubtleText/index.d.ts.map +1 -0
- package/dist/types/atoms/SubtleText/styles.d.ts +12 -0
- package/dist/types/atoms/SubtleText/styles.d.ts.map +1 -0
- package/dist/types/atoms/Surface/index.d.ts +34 -0
- package/dist/types/atoms/Surface/index.d.ts.map +1 -0
- package/dist/types/atoms/Surface/styles.d.ts +27 -0
- package/dist/types/atoms/Surface/styles.d.ts.map +1 -0
- package/dist/types/atoms/Switch/index.d.ts +12 -0
- package/dist/types/atoms/Switch/index.d.ts.map +1 -0
- package/dist/types/atoms/Switch/styles.d.ts +31 -0
- package/dist/types/atoms/Switch/styles.d.ts.map +1 -0
- package/dist/types/atoms/Tabs/index.d.ts +18 -0
- package/dist/types/atoms/Tabs/index.d.ts.map +1 -0
- package/dist/types/atoms/Tabs/styles.d.ts +40 -0
- package/dist/types/atoms/Tabs/styles.d.ts.map +1 -0
- package/dist/types/atoms/TextCheckbox/index.d.ts +9 -0
- package/dist/types/atoms/TextCheckbox/index.d.ts.map +1 -0
- package/dist/types/atoms/TextLink/index.d.ts +22 -0
- package/dist/types/atoms/TextLink/index.d.ts.map +1 -0
- package/dist/types/atoms/TextLink/styles.d.ts +15 -0
- package/dist/types/atoms/TextLink/styles.d.ts.map +1 -0
- package/dist/types/atoms/Textarea/index.d.ts +19 -0
- package/dist/types/atoms/Textarea/index.d.ts.map +1 -0
- package/dist/types/atoms/Toggle/index.d.ts +16 -0
- package/dist/types/atoms/Toggle/index.d.ts.map +1 -0
- package/dist/types/atoms/Toggle/styles.d.ts +32 -0
- package/dist/types/atoms/Toggle/styles.d.ts.map +1 -0
- package/dist/types/atoms/Tooltip/index.d.ts +15 -0
- package/dist/types/atoms/Tooltip/index.d.ts.map +1 -0
- package/dist/types/atoms/Tooltip/styles.d.ts +24 -0
- package/dist/types/atoms/Tooltip/styles.d.ts.map +1 -0
- package/dist/types/atoms/Typography/index.d.ts +3 -0
- package/dist/types/atoms/Typography/index.d.ts.map +1 -0
- package/dist/types/atoms/Typography/styles.d.ts +72 -0
- package/dist/types/atoms/Typography/styles.d.ts.map +1 -0
- package/dist/types/atoms/Validation/index.d.ts +9 -0
- package/dist/types/atoms/Validation/index.d.ts.map +1 -0
- package/dist/types/atoms/Validation/styles.d.ts +23 -0
- package/dist/types/atoms/Validation/styles.d.ts.map +1 -0
- package/dist/types/atoms/WideImage/index.d.ts +26 -0
- package/dist/types/atoms/WideImage/index.d.ts.map +1 -0
- package/dist/types/molecules/Badge/index.d.ts +25 -0
- package/dist/types/molecules/Badge/index.d.ts.map +1 -0
- package/dist/types/molecules/Button/index.d.ts +31 -0
- package/dist/types/molecules/Button/index.d.ts.map +1 -0
- package/dist/types/molecules/Button/styles.d.ts +15 -0
- package/dist/types/molecules/Button/styles.d.ts.map +1 -0
- package/dist/types/molecules/Card/index.d.ts +16 -0
- package/dist/types/molecules/Card/index.d.ts.map +1 -0
- package/dist/types/molecules/Card/styles.d.ts +70 -0
- package/dist/types/molecules/Card/styles.d.ts.map +1 -0
- package/dist/types/molecules/Carousel/index.d.ts +13 -0
- package/dist/types/molecules/Carousel/index.d.ts.map +1 -0
- package/dist/types/molecules/Carousel/styles.d.ts +31 -0
- package/dist/types/molecules/Carousel/styles.d.ts.map +1 -0
- package/dist/types/molecules/Carousel/useIsMobile.d.ts +3 -0
- package/dist/types/molecules/Carousel/useIsMobile.d.ts.map +1 -0
- package/dist/types/molecules/CodeView/highlight.d.ts +11 -0
- package/dist/types/molecules/CodeView/highlight.d.ts.map +1 -0
- package/dist/types/molecules/CodeView/index.d.ts +58 -0
- package/dist/types/molecules/CodeView/index.d.ts.map +1 -0
- package/dist/types/molecules/CodeView/styles.d.ts +44 -0
- package/dist/types/molecules/CodeView/styles.d.ts.map +1 -0
- package/dist/types/molecules/CodeView/tokenizer.d.ts +21 -0
- package/dist/types/molecules/CodeView/tokenizer.d.ts.map +1 -0
- package/dist/types/molecules/DiffLegend/index.d.ts +20 -0
- package/dist/types/molecules/DiffLegend/index.d.ts.map +1 -0
- package/dist/types/molecules/DiffLegend/styles.d.ts +19 -0
- package/dist/types/molecules/DiffLegend/styles.d.ts.map +1 -0
- package/dist/types/molecules/FilterBar/index.d.ts +20 -0
- package/dist/types/molecules/FilterBar/index.d.ts.map +1 -0
- package/dist/types/molecules/FilterBar/styles.d.ts +15 -0
- package/dist/types/molecules/FilterBar/styles.d.ts.map +1 -0
- package/dist/types/molecules/HtmlEditor/index.d.ts +16 -0
- package/dist/types/molecules/HtmlEditor/index.d.ts.map +1 -0
- package/dist/types/molecules/HtmlEditor/styles.d.ts +12 -0
- package/dist/types/molecules/HtmlEditor/styles.d.ts.map +1 -0
- package/dist/types/molecules/NavTabs/index.d.ts +24 -0
- package/dist/types/molecules/NavTabs/index.d.ts.map +1 -0
- package/dist/types/molecules/NavTabs/styles.d.ts +15 -0
- package/dist/types/molecules/NavTabs/styles.d.ts.map +1 -0
- package/dist/types/molecules/PageHeader/index.d.ts +15 -0
- package/dist/types/molecules/PageHeader/index.d.ts.map +1 -0
- package/dist/types/molecules/PageHeader/styles.d.ts +13 -0
- package/dist/types/molecules/PageHeader/styles.d.ts.map +1 -0
- package/dist/types/molecules/ScorePanel/index.d.ts +70 -0
- package/dist/types/molecules/ScorePanel/index.d.ts.map +1 -0
- package/dist/types/molecules/ScorePanel/styles.d.ts +63 -0
- package/dist/types/molecules/ScorePanel/styles.d.ts.map +1 -0
- package/dist/types/molecules/ScorePills/index.d.ts +25 -0
- package/dist/types/molecules/ScorePills/index.d.ts.map +1 -0
- package/dist/types/molecules/ScorePills/styles.d.ts +8 -0
- package/dist/types/molecules/ScorePills/styles.d.ts.map +1 -0
- package/dist/types/molecules/SearchInput/index.d.ts +11 -0
- package/dist/types/molecules/SearchInput/index.d.ts.map +1 -0
- package/dist/types/molecules/SearchInput/styles.d.ts +24 -0
- package/dist/types/molecules/SearchInput/styles.d.ts.map +1 -0
- package/dist/types/molecules/Select/index.d.ts +18 -0
- package/dist/types/molecules/Select/index.d.ts.map +1 -0
- package/dist/types/molecules/Select/styles.d.ts +51 -0
- package/dist/types/molecules/Select/styles.d.ts.map +1 -0
- package/dist/types/molecules/SliderField/index.d.ts +26 -0
- package/dist/types/molecules/SliderField/index.d.ts.map +1 -0
- package/dist/types/molecules/SliderField/styles.d.ts +20 -0
- package/dist/types/molecules/SliderField/styles.d.ts.map +1 -0
- package/dist/types/molecules/StatGrid/index.d.ts +12 -0
- package/dist/types/molecules/StatGrid/index.d.ts.map +1 -0
- package/dist/types/molecules/StatGrid/styles.d.ts +9 -0
- package/dist/types/molecules/StatGrid/styles.d.ts.map +1 -0
- package/dist/types/molecules/StatusLabel/index.d.ts +51 -0
- package/dist/types/molecules/StatusLabel/index.d.ts.map +1 -0
- package/dist/types/molecules/StatusLabel/styles.d.ts +18 -0
- package/dist/types/molecules/StatusLabel/styles.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/BrandCell.d.ts +9 -0
- package/dist/types/molecules/Table/TableCels/BrandCell.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/ContentCell.d.ts +13 -0
- package/dist/types/molecules/Table/TableCels/ContentCell.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/NavigationCell.d.ts +8 -0
- package/dist/types/molecules/Table/TableCels/NavigationCell.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/StatusCell.d.ts +9 -0
- package/dist/types/molecules/Table/TableCels/StatusCell.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/TextCell.d.ts +9 -0
- package/dist/types/molecules/Table/TableCels/TextCell.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/index.d.ts +8 -0
- package/dist/types/molecules/Table/TableCels/index.d.ts.map +1 -0
- package/dist/types/molecules/Table/TableCels/styles.d.ts +52 -0
- package/dist/types/molecules/Table/TableCels/styles.d.ts.map +1 -0
- package/dist/types/molecules/Table/index.d.ts +38 -0
- package/dist/types/molecules/Table/index.d.ts.map +1 -0
- package/dist/types/molecules/Table/styles.d.ts +25 -0
- package/dist/types/molecules/Table/styles.d.ts.map +1 -0
- package/dist/types/molecules/TokenInputField/index.d.ts +15 -0
- package/dist/types/molecules/TokenInputField/index.d.ts.map +1 -0
- package/dist/types/molecules/TokenInputField/styles.d.ts +24 -0
- package/dist/types/molecules/TokenInputField/styles.d.ts.map +1 -0
- package/dist/types/shared/modals/index.d.ts +33 -0
- package/dist/types/shared/modals/index.d.ts.map +1 -0
- package/dist/types/shared/modals/styles.d.ts +52 -0
- package/dist/types/shared/modals/styles.d.ts.map +1 -0
- package/dist/types/shared/modals/useModal.d.ts +4 -0
- package/dist/types/shared/modals/useModal.d.ts.map +1 -0
- package/dist/types/shared/report-ui/DecisionPanel.d.ts +53 -0
- package/dist/types/shared/report-ui/DecisionPanel.d.ts.map +1 -0
- package/dist/types/shared/report-ui/DecisionPanel.styles.d.ts +31 -0
- package/dist/types/shared/report-ui/DecisionPanel.styles.d.ts.map +1 -0
- package/dist/types/shared/report-ui/Pagination.d.ts +13 -0
- package/dist/types/shared/report-ui/Pagination.d.ts.map +1 -0
- package/dist/types/shared/report-ui/Pagination.styles.d.ts +13 -0
- package/dist/types/shared/report-ui/Pagination.styles.d.ts.map +1 -0
- package/dist/types/shared/report-ui/Shell.styles.d.ts +26 -0
- package/dist/types/shared/report-ui/Shell.styles.d.ts.map +1 -0
- package/dist/types/shared/report-ui/index.d.ts +8 -0
- package/dist/types/shared/report-ui/index.d.ts.map +1 -0
- package/dist/types/shared/report-ui/ui.d.ts +30 -0
- package/dist/types/shared/report-ui/ui.d.ts.map +1 -0
- package/dist/types/shared/report-ui/ui.styles.d.ts +50 -0
- package/dist/types/shared/report-ui/ui.styles.d.ts.map +1 -0
- package/dist/types/shared/toasts/index.d.ts +23 -0
- package/dist/types/shared/toasts/index.d.ts.map +1 -0
- package/dist/types/shared/toasts/styles.d.ts +18 -0
- package/dist/types/shared/toasts/styles.d.ts.map +1 -0
- package/dist/types/textures/Cloud/index.d.ts +29 -0
- package/dist/types/textures/Cloud/index.d.ts.map +1 -0
- package/dist/types/textures/Paper/index.d.ts +8 -0
- package/dist/types/textures/Paper/index.d.ts.map +1 -0
- package/dist/types/textures/index.d.ts +4 -0
- package/dist/types/textures/index.d.ts.map +1 -0
- package/dist/typography.js +82 -0
- package/dist/validation.js +20 -0
- package/dist/wide-image.js +97 -0
- package/package.json +2100 -5
package/dist/toasts.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { createContext as e, useCallback as t, useContext as n, useState as r } from "react";
|
|
2
|
+
import i from "styled-components";
|
|
3
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
+
// shared/toasts/styles.ts
|
|
5
|
+
var s = i.div`
|
|
6
|
+
position: fixed;
|
|
7
|
+
bottom: ${({ theme: e }) => e.offsets.section};
|
|
8
|
+
right: ${({ theme: e }) => e.offsets.section};
|
|
9
|
+
z-index: ${({ theme: e }) => e.zIndex.alert};
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: ${({ theme: e }) => e.offsets.elementContent};
|
|
13
|
+
`, c = i.div`
|
|
14
|
+
min-width: ${({ theme: e }) => e.elements.form.minWidth};
|
|
15
|
+
max-width: ${({ theme: e }) => `calc(${e.elements.form.minWidth} * 3)`};
|
|
16
|
+
padding: ${({ theme: e }) => e.offsets.elementContent};
|
|
17
|
+
background: ${({ $tone: e, theme: t }) => (e ? t.colors.status?.[e] : void 0)?.background ?? t.colors.section};
|
|
18
|
+
color: ${({ $tone: e, theme: t }) => (e ? t.colors.status?.[e] : void 0)?.content ?? t.colors.sectionContent};
|
|
19
|
+
font-family: ${({ theme: e }) => e.font.family.text};
|
|
20
|
+
font-weight: ${({ theme: e }) => e.font.weight.text};
|
|
21
|
+
text-transform: ${({ theme: e }) => e.font.transform.text};
|
|
22
|
+
letter-spacing: ${({ theme: e }) => e.font.spacing};
|
|
23
|
+
border-radius: ${({ theme: e }) => e.border.radius};
|
|
24
|
+
box-shadow: ${({ theme: e }) => e.shadows.notification};
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: ${({ theme: e }) => e.offsets.elementContent};
|
|
28
|
+
position: relative;
|
|
29
|
+
|
|
30
|
+
h4 {
|
|
31
|
+
margin: 0;
|
|
32
|
+
font-size: ${({ theme: e }) => e.font.sizes.regular};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
p {
|
|
36
|
+
margin: 0;
|
|
37
|
+
font-size: ${({ theme: e }) => e.font.sizes.small};
|
|
38
|
+
opacity: 0.8;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.close-btn {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: ${({ theme: e }) => e.offsets.elementContent};
|
|
44
|
+
right: ${({ theme: e }) => e.offsets.elementContent};
|
|
45
|
+
}
|
|
46
|
+
`, l = e(void 0), u = ({ children: e }) => {
|
|
47
|
+
let [n, i] = r([]), u = t((e) => {
|
|
48
|
+
i((t) => t.filter((t) => t.id !== e));
|
|
49
|
+
}, []), d = t((e) => {
|
|
50
|
+
let t = Date.now().toString() + Math.random().toString(36).substr(2, 9), n = {
|
|
51
|
+
id: t,
|
|
52
|
+
...e
|
|
53
|
+
};
|
|
54
|
+
i((e) => [...e, n]), e.duration !== 0 && setTimeout(() => u(t), e.duration || 5e3);
|
|
55
|
+
}, [u]);
|
|
56
|
+
return /* @__PURE__ */ o(l.Provider, {
|
|
57
|
+
value: {
|
|
58
|
+
add: d,
|
|
59
|
+
remove: u
|
|
60
|
+
},
|
|
61
|
+
children: [e, /* @__PURE__ */ a(s, { children: n.map((e) => /* @__PURE__ */ o(c, {
|
|
62
|
+
$tone: e.tone,
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ a("h4", { children: e.title }),
|
|
65
|
+
e.description && /* @__PURE__ */ a("p", { children: e.description }),
|
|
66
|
+
/* @__PURE__ */ a("button", {
|
|
67
|
+
className: "close-btn",
|
|
68
|
+
onClick: () => u(e.id),
|
|
69
|
+
children: "✕"
|
|
70
|
+
})
|
|
71
|
+
]
|
|
72
|
+
}, e.id)) })]
|
|
73
|
+
});
|
|
74
|
+
}, d = () => {
|
|
75
|
+
let e = n(l);
|
|
76
|
+
if (!e) throw Error("useToasts must be used within a ToastsProvider");
|
|
77
|
+
return e;
|
|
78
|
+
}, f = d, p = u;
|
|
79
|
+
export { p as LoggerProvider, l as ToastsContext, u as ToastsProvider, f as useLogger, d as useToasts };
|
package/dist/toggle.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { useState as e } from "react";
|
|
2
|
+
import { LucideIcon as t } from "@md-code/components/icons";
|
|
3
|
+
import n from "styled-components";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
// atoms/Toggle/styles.ts
|
|
6
|
+
var a = n.div`
|
|
7
|
+
border-bottom: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
|
|
8
|
+
border-radius: ${({ theme: e }) => e.border.radius};
|
|
9
|
+
`, o = n.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
padding: ${({ theme: e }) => e.offsets.elementContent} 0;
|
|
15
|
+
font-family: ${({ theme: e }) => e.font.family.text};
|
|
16
|
+
font-weight: ${({ theme: e }) => e.font.weight.text};
|
|
17
|
+
text-transform: ${({ theme: e }) => e.font.transform.text};
|
|
18
|
+
transition: color ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.standard};
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
color: ${({ theme: e }) => e.colors.highlighted};
|
|
22
|
+
text-shadow: ${({ theme: e }) => e.shadows.content};
|
|
23
|
+
}
|
|
24
|
+
`, s = n.div`
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
color: ${({ theme: e }) => e.colors.sectionContent};
|
|
30
|
+
transform: ${(e) => e.$rotated ? "rotate(180deg)" : "none"};
|
|
31
|
+
transition: transform ${({ theme: e }) => e.animation.speed.normal} ${({ theme: e }) => e.animation.easing.inOut};
|
|
32
|
+
`, c = n.span`
|
|
33
|
+
width: 100%;
|
|
34
|
+
`, l = n.div`
|
|
35
|
+
padding-left: ${({ theme: e }) => e.offsets.elementContent};
|
|
36
|
+
max-height: 0;
|
|
37
|
+
${({ $showContent: e, theme: t }) => e && `max-height: calc(${t.elements.form.height} * 6);`}
|
|
38
|
+
opacity: ${({ $showContent: e }) => +!!e};
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
transition: all ${({ theme: e }) => e.animation.speed.normal} ${({ theme: e }) => e.animation.easing.inOut};
|
|
41
|
+
`, u = ({ children: n, title: u, defaultState: d = !0, setState: f, className: p }) => {
|
|
42
|
+
let [m, h] = e(d);
|
|
43
|
+
return /* @__PURE__ */ i(a, {
|
|
44
|
+
className: p,
|
|
45
|
+
children: [/* @__PURE__ */ i(o, {
|
|
46
|
+
onClick: () => {
|
|
47
|
+
let e = !m;
|
|
48
|
+
h(e), f?.(e);
|
|
49
|
+
},
|
|
50
|
+
className: "toggle-header",
|
|
51
|
+
children: [/* @__PURE__ */ r(c, { children: u }), /* @__PURE__ */ r(s, {
|
|
52
|
+
$rotated: m,
|
|
53
|
+
className: "arrow-container",
|
|
54
|
+
children: /* @__PURE__ */ r(t, { name: "ChevronDown" })
|
|
55
|
+
})]
|
|
56
|
+
}), /* @__PURE__ */ r(l, {
|
|
57
|
+
$showContent: m,
|
|
58
|
+
children: n
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
61
|
+
}, d = ({ rotated: e, onClick: n }) => /* @__PURE__ */ r(s, {
|
|
62
|
+
$rotated: e,
|
|
63
|
+
onClick: n,
|
|
64
|
+
children: /* @__PURE__ */ r(t, { name: "ChevronDown" })
|
|
65
|
+
});
|
|
66
|
+
export { d as ArrowIcon, u as Toggle, u as default };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { useState as e } from "react";
|
|
2
|
+
import { Input as t } from "@md-code/components/input";
|
|
3
|
+
import { Button as n } from "@md-code/components/button";
|
|
4
|
+
import r from "styled-components";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
// molecules/TokenInputField/styles.ts
|
|
7
|
+
var o = r.fieldset`
|
|
8
|
+
margin: 0 0 ${({ theme: e }) => e.offsets.betweenElements};
|
|
9
|
+
padding: ${({ theme: e }) => e.offsets.elementContent};
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: ${({ theme: e }) => e.offsets.elementContent};
|
|
13
|
+
background-color: ${({ theme: e }) => e.colors.section};
|
|
14
|
+
border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.sectionContent};
|
|
15
|
+
border-radius: ${({ theme: e }) => e.border.radius};
|
|
16
|
+
`, s = r.div`
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
`, c = r.label`
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
margin-bottom: ${({ theme: e }) => e.offsets.elementContent};
|
|
22
|
+
color: ${({ theme: e }) => e.colors.sectionContent};
|
|
23
|
+
`, l = r.div`
|
|
24
|
+
font-size: ${({ theme: e }) => e.font.sizes.small};
|
|
25
|
+
color: ${({ theme: e }) => e.colors.sectionContent};
|
|
26
|
+
margin-bottom: ${({ theme: e }) => e.offsets.elementContent};
|
|
27
|
+
`, u = ({ field: r, value: u, onChange: d, autoFocus: f, readOnly: p }) => {
|
|
28
|
+
let [m, h] = e(!1), g = () => h(!m), _ = m ? "text" : "password";
|
|
29
|
+
return /* @__PURE__ */ a(o, { children: [
|
|
30
|
+
/* @__PURE__ */ i(c, { children: r.label }),
|
|
31
|
+
r.description && /* @__PURE__ */ i(l, {
|
|
32
|
+
id: `${r.path}-description`,
|
|
33
|
+
children: r.description
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ a(s, { children: [/* @__PURE__ */ i(t, {
|
|
36
|
+
id: `${r.path}-input`,
|
|
37
|
+
type: _,
|
|
38
|
+
autoFocus: f,
|
|
39
|
+
value: u || "",
|
|
40
|
+
onChange: (e) => {
|
|
41
|
+
d && d(e.target.value);
|
|
42
|
+
},
|
|
43
|
+
autoComplete: "off",
|
|
44
|
+
readOnly: p,
|
|
45
|
+
style: { flex: "1" }
|
|
46
|
+
}), /* @__PURE__ */ i(n, {
|
|
47
|
+
id: `${r.path}-button`,
|
|
48
|
+
size: "small",
|
|
49
|
+
tone: "neutral",
|
|
50
|
+
onClick: g,
|
|
51
|
+
style: { marginLeft: "0.5em" },
|
|
52
|
+
text: m ? "Hide" : "Show"
|
|
53
|
+
})] })
|
|
54
|
+
] });
|
|
55
|
+
};
|
|
56
|
+
export { u as TokenInputField };
|
package/dist/tooltip.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
2
|
+
import r, { css as i, keyframes as a } from "styled-components";
|
|
3
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
// atoms/Tooltip/styles.ts
|
|
5
|
+
var c = a`
|
|
6
|
+
from { opacity: 0; transform: translate(-50%, 100%); }
|
|
7
|
+
to { opacity: 1; transform: translate(-50%, 0); }
|
|
8
|
+
`, l = i`
|
|
9
|
+
bottom: 100%;
|
|
10
|
+
margin-bottom: ${({ theme: e }) => e.offsets.elementContent};
|
|
11
|
+
`, u = i`
|
|
12
|
+
top: 100%;
|
|
13
|
+
margin-top: ${({ theme: e }) => e.offsets.elementContent};
|
|
14
|
+
`, d = r.div`
|
|
15
|
+
position: relative;
|
|
16
|
+
display: inline-block;
|
|
17
|
+
${({ $fullWidth: e }) => e ? "width: 100%;" : ""}
|
|
18
|
+
`, f = r.span`
|
|
19
|
+
visibility: hidden;
|
|
20
|
+
min-width: ${({ theme: e }) => e.elements.form.minWidth};
|
|
21
|
+
background: ${({ theme: e }) => e.colors.section};
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
* effects.texture is one string per theme (README §4.1, §5.3): noise themes
|
|
25
|
+
* supply a url() for background-image, glass themes supply blur() for
|
|
26
|
+
* backdrop-filter. The bubble cannot know which theme is active, so it hands
|
|
27
|
+
* the value to BOTH properties; each property keeps only the value it
|
|
28
|
+
* understands and ignores the other (blur() in background-image computes to
|
|
29
|
+
* none, and url() left in backdrop-filter is visually inert — verified in
|
|
30
|
+
* Chromium). Both themes therefore texture the bubble without a name check.
|
|
31
|
+
*/
|
|
32
|
+
background-image: ${({ theme: e }) => e.effects.texture};
|
|
33
|
+
backdrop-filter: ${({ theme: e }) => e.effects.texture};
|
|
34
|
+
color: ${({ theme: e }) => e.colors.sectionContent};
|
|
35
|
+
text-align: center;
|
|
36
|
+
font-family: ${({ theme: e }) => e.font.family.text};
|
|
37
|
+
font-weight: ${({ theme: e }) => e.font.weight.text};
|
|
38
|
+
text-transform: ${({ theme: e }) => e.font.transform.text};
|
|
39
|
+
letter-spacing: ${({ theme: e }) => e.font.spacing};
|
|
40
|
+
border: ${({ theme: e }) => e.border.size} solid ${({ theme: e }) => e.colors.highlighted};
|
|
41
|
+
border-radius: ${({ theme: e }) => e.border.radius};
|
|
42
|
+
box-shadow: ${({ theme: e }) => e.shadows.notification};
|
|
43
|
+
padding: ${({ theme: e }) => e.offsets.elementContent};
|
|
44
|
+
position: absolute;
|
|
45
|
+
z-index: ${({ theme: e }) => e.zIndex.alert};
|
|
46
|
+
left: 50%;
|
|
47
|
+
margin-left: ${({ theme: e }) => `calc(-${e.elements.form.minWidth} / 2)`};
|
|
48
|
+
${({ $position: e }) => e === "top" ? l : u}
|
|
49
|
+
opacity: 0;
|
|
50
|
+
transition: opacity ${({ theme: e }) => e.animation.speed.normal} ${({ theme: e }) => e.animation.easing.standard};
|
|
51
|
+
animation: ${c} ${({ theme: e }) => e.animation.speed.fast} ${({ theme: e }) => e.animation.easing.out}
|
|
52
|
+
forwards;
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
* The visible state: hovering the anchor reveals the bubble. Visibility and
|
|
56
|
+
* opacity are the tooltip's own anatomy, not a theme state fragment.
|
|
57
|
+
*/
|
|
58
|
+
${d}:hover & {
|
|
59
|
+
visibility: visible;
|
|
60
|
+
opacity: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
* The pointer glyph under the bubble: a zero-size box whose top border is
|
|
65
|
+
* the accent, pointing back at the anchor. It is drawn in the same accent as
|
|
66
|
+
* the bubble outline (a border is the zone's outline, README §4.1).
|
|
67
|
+
*/
|
|
68
|
+
&::after {
|
|
69
|
+
content: "";
|
|
70
|
+
position: absolute;
|
|
71
|
+
bottom: ${({ theme: e }) => e.offsets.elementContent};
|
|
72
|
+
left: 50%;
|
|
73
|
+
margin-left: ${({ theme: e }) => e.offsets.elementContent};
|
|
74
|
+
border-width: ${({ theme: e }) => e.offsets.elementContent};
|
|
75
|
+
border-style: solid;
|
|
76
|
+
border-color: ${({ theme: e }) => e.colors.highlighted} transparent transparent transparent;
|
|
77
|
+
}
|
|
78
|
+
`, p = ({ children: r, text: i, className: a, $fullWidth: c }) => {
|
|
79
|
+
let [l, u] = n("top"), p = t(null);
|
|
80
|
+
return e(() => {
|
|
81
|
+
if (p.current) {
|
|
82
|
+
let e = p.current.getBoundingClientRect(), t = window.innerHeight;
|
|
83
|
+
e.bottom > t ? u("top") : e.top < 100 ? u("bottom") : u("top");
|
|
84
|
+
}
|
|
85
|
+
}, []), /* @__PURE__ */ s(d, {
|
|
86
|
+
ref: p,
|
|
87
|
+
className: a,
|
|
88
|
+
$fullWidth: c,
|
|
89
|
+
children: [r, i && /* @__PURE__ */ o(f, {
|
|
90
|
+
$position: l,
|
|
91
|
+
children: i
|
|
92
|
+
})]
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
export { p as Tooltip };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const Avatar: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "style"> & {
|
|
2
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
|
+
}> & string;
|
|
4
|
+
/** @component */
|
|
5
|
+
export default Avatar;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Avatar/index.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;WAIX,CAAC;AAEF,iBAAiB;AACjB,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Breadcrumbs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,UAAU,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,UAAU,EAAE,CAAA;CAAE,CAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The breadcrumb row. Glyphs read the section content colour (proper-naming,
|
|
3
|
+
* README §3.1 — the baseline read the legacy `labelBackground` surface token as
|
|
4
|
+
* text). Typographic role and rhythm are theme data, so viking's uppercase and
|
|
5
|
+
* the glass corner radius need no per-theme code. The row sits on the section
|
|
6
|
+
* surface: on viking that equals the page, on glass it is the glass surface.
|
|
7
|
+
*/
|
|
8
|
+
export declare const BreadcrumbContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
9
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
10
|
+
}> & string;
|
|
11
|
+
/**
|
|
12
|
+
* A breadcrumb link: the section content colour at rest, the accent only in the
|
|
13
|
+
* hover state (proper-naming exempts `*:*` selectors, README §4.3).
|
|
14
|
+
*/
|
|
15
|
+
export declare const BreadcrumbLink: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof {
|
|
16
|
+
href: string | import("url").UrlObject;
|
|
17
|
+
as?: string | import("url").UrlObject;
|
|
18
|
+
replace?: boolean;
|
|
19
|
+
scroll?: boolean;
|
|
20
|
+
shallow?: boolean;
|
|
21
|
+
passHref?: boolean;
|
|
22
|
+
prefetch?: boolean | null;
|
|
23
|
+
locale?: string | false;
|
|
24
|
+
legacyBehavior?: boolean;
|
|
25
|
+
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
26
|
+
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
|
|
27
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
28
|
+
}> & {
|
|
29
|
+
href: string | import("url").UrlObject;
|
|
30
|
+
as?: string | import("url").UrlObject;
|
|
31
|
+
replace?: boolean;
|
|
32
|
+
scroll?: boolean;
|
|
33
|
+
shallow?: boolean;
|
|
34
|
+
passHref?: boolean;
|
|
35
|
+
prefetch?: boolean | null;
|
|
36
|
+
locale?: string | false;
|
|
37
|
+
legacyBehavior?: boolean;
|
|
38
|
+
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
39
|
+
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
|
|
40
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
41
|
+
} & {
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
} & import("react").RefAttributes<HTMLAnchorElement>, "style"> & {
|
|
44
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
45
|
+
}> & string & Omit<import("react").ForwardRefExoticComponent<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof {
|
|
46
|
+
href: string | import("url").UrlObject;
|
|
47
|
+
as?: string | import("url").UrlObject;
|
|
48
|
+
replace?: boolean;
|
|
49
|
+
scroll?: boolean;
|
|
50
|
+
shallow?: boolean;
|
|
51
|
+
passHref?: boolean;
|
|
52
|
+
prefetch?: boolean | null;
|
|
53
|
+
locale?: string | false;
|
|
54
|
+
legacyBehavior?: boolean;
|
|
55
|
+
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
56
|
+
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
|
|
57
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
58
|
+
}> & {
|
|
59
|
+
href: string | import("url").UrlObject;
|
|
60
|
+
as?: string | import("url").UrlObject;
|
|
61
|
+
replace?: boolean;
|
|
62
|
+
scroll?: boolean;
|
|
63
|
+
shallow?: boolean;
|
|
64
|
+
passHref?: boolean;
|
|
65
|
+
prefetch?: boolean | null;
|
|
66
|
+
locale?: string | false;
|
|
67
|
+
legacyBehavior?: boolean;
|
|
68
|
+
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
69
|
+
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement>;
|
|
70
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
71
|
+
} & {
|
|
72
|
+
children?: React.ReactNode;
|
|
73
|
+
} & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
|
|
74
|
+
/**
|
|
75
|
+
* The current (unlinked) crumb: the overlay layer with the theme radius, the
|
|
76
|
+
* section content colour and the theme's title weight plus content text-shadow.
|
|
77
|
+
* The baseline painted the accent here at rest, which proper-naming forbids; the
|
|
78
|
+
* accent survives only as the theme's content shadow (documented deviation).
|
|
79
|
+
*/
|
|
80
|
+
export declare const ActiveBreadcrumb: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
81
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
82
|
+
}> & string;
|
|
83
|
+
/**
|
|
84
|
+
* The separator chevron. It is a glyph, so it reads the section content colour
|
|
85
|
+
* and is muted through opacity — a `color-mix` of a Content token would no
|
|
86
|
+
* longer end in `…Content` and would fail proper-naming.
|
|
87
|
+
*/
|
|
88
|
+
export declare const ChevronIcon: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("@md-code/components/icons").LucideIconProps, "style"> & {
|
|
89
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
90
|
+
}> & string & Omit<import("react").FC<import("@md-code/components/icons").LucideIconProps>, keyof import("react").Component<any, {}, any>>;
|
|
91
|
+
/** The home glyph at the start of the trail; a glyph reads the content colour. */
|
|
92
|
+
export declare const HomeIcon: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("@md-code/components/icons").LucideIconProps, "style"> & {
|
|
93
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
94
|
+
}> & string & Omit<import("react").FC<import("@md-code/components/icons").LucideIconProps>, keyof import("react").Component<any, {}, any>>;
|
|
95
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../atoms/Breadcrumbs/styles.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;WAU/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qGAO1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;WAO5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW;;0IAKvB,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,QAAQ;;0IAIpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Calendar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA0C1B,QAAA,MAAM,QAAQ,yBAkBb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The calendar grid. It is a section surface: the section pair paints it, the
|
|
3
|
+
* theme radius and a muted 25% content outline (the Phase 4a muted rule — the
|
|
4
|
+
* legacy `disabled` grey is gone, README §5.1) close it, and the theme texture
|
|
5
|
+
* is dual-attached to `background-image` and `backdrop-filter` (README §5.3).
|
|
6
|
+
* The viking cell rules live on the cells themselves, not on the grid, so
|
|
7
|
+
* every theme uses one shared grid block.
|
|
8
|
+
*/
|
|
9
|
+
export declare const CalendarGrid: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
10
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
11
|
+
}> & string;
|
|
12
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../atoms/Calendar/styles.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;WA0ExB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The uppercase caption under a number or above a group: one small step of the
|
|
4
|
+
* zone's scale, the zone's dim chrome ink, and the zone's tracking tripled so
|
|
5
|
+
* short words stay legible in capitals. Casing is the caption's own semantic
|
|
6
|
+
* (a caption IS a label), as in the design system's badge (README §4.2).
|
|
7
|
+
*/
|
|
8
|
+
export declare const Caption: ({ children, ...rest }: React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Caption/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,uBAAuB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,sBAElF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The caption: one step below the zone's small size (computed from the scale,
|
|
3
|
+
* never a new number), uppercase, in the zone's dim chrome ink, with three times
|
|
4
|
+
* the zone's tracking so capitals do not run together.
|
|
5
|
+
*/
|
|
6
|
+
export declare const CaptionBox: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
7
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
8
|
+
}> & string;
|
|
9
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../atoms/Caption/styles.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,UAAU;;WAKtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/CentralModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,eAAO,MAAM,YAAY,gCAyBxB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type ChipCommonProps = {
|
|
3
|
+
/**
|
|
4
|
+
* A key of the zone's `colors.status` map; the chip reads that pair's
|
|
5
|
+
* background as its tint, its content as the label ink and its paint as the
|
|
6
|
+
* ring (README §3.4). The legal keys belong to the zone theme.
|
|
7
|
+
*/
|
|
8
|
+
$status?: string;
|
|
9
|
+
/** Keep the label on one line even inside a wrapping row. */
|
|
10
|
+
$nowrap?: boolean;
|
|
11
|
+
/** The chosen pill of a filter row: the highlighted pair, whatever `$status` says. */
|
|
12
|
+
$active?: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The chip as text: a label inside a sentence, a cell or a row.
|
|
16
|
+
*/
|
|
17
|
+
export type ChipSpanProps = ChipCommonProps & React.HTMLAttributes<HTMLSpanElement> & {
|
|
18
|
+
as?: "span";
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The chip as a control: a filter that is one of a set, so it is a `<button>`
|
|
22
|
+
* and takes every button attribute (a click, a disabled key, a name).
|
|
23
|
+
*/
|
|
24
|
+
export type ChipButtonProps = ChipCommonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
25
|
+
as: "button";
|
|
26
|
+
};
|
|
27
|
+
export type ChipProps = ChipSpanProps | ChipButtonProps;
|
|
28
|
+
/**
|
|
29
|
+
* A compact inline pill naming a short fact — a kind, a severity, a count — or
|
|
30
|
+
* a filter that toggles. It is the same idea as `molecules/Badge` at a different
|
|
31
|
+
* weight: the badge is a tag with the zone's inner padding, the chip is a pill
|
|
32
|
+
* that sits inside a sentence or a table cell, so it is its own atom rather than
|
|
33
|
+
* a flag on the badge (README §3.2: one name per shape, not one name for two
|
|
34
|
+
* shapes). `as="button"` is the same shape as a control: the state it shows is
|
|
35
|
+
* `$active` (the highlighted pair), never a colour of its own.
|
|
36
|
+
*/
|
|
37
|
+
export declare const Chip: (props: ChipProps) => React.JSX.Element;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Chip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,eAAe,GAAG;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sFAAsF;IACtF,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,eAAe,GAC1C,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;CACZ,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,GAC5C,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAC/C,EAAE,EAAE,QAAQ,CAAC;CACb,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,eAAe,CAAC;AAExD;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,sBAUpC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The chip's surface: a compact pill whose three colours all come from one
|
|
3
|
+
* `colors.status` pair — the tint as its background, the ink as its label, the
|
|
4
|
+
* paint ring as a hairline (README §3.4: a status is one pair, never a colour
|
|
5
|
+
* passed in). Without a status the chip falls back to the zone's `edge` chrome
|
|
6
|
+
* pair, i.e. a neutral tag. `$active` swaps the pair for the zone's highlight,
|
|
7
|
+
* so a chosen pill shows a state and not a colour of its own. Geometry is a
|
|
8
|
+
* formula over the zone's rhythm, so the pill scales with the theme instead of
|
|
9
|
+
* hard-coding a size.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ChipBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
12
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
$status?: string;
|
|
15
|
+
$nowrap?: boolean;
|
|
16
|
+
$active?: boolean;
|
|
17
|
+
$interactive?: boolean;
|
|
18
|
+
}>> & string;
|
|
19
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../atoms/Chip/styles.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,OAAO;;;cAA2B,MAAM;cAAY,OAAO;cAAY,OAAO;mBAAiB,OAAO;YA0BlH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ZIndexName } from "@md-code/styles";
|
|
3
|
+
type ICircleImageProps = {
|
|
4
|
+
src: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
priority?: boolean;
|
|
9
|
+
zIndex?: ZIndexName;
|
|
10
|
+
};
|
|
11
|
+
declare const CircleImage: React.ForwardRefExoticComponent<ICircleImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
12
|
+
export default CircleImage;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/CircleImage/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAkB,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElE,KAAK,iBAAiB,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,CAAC;CACpB,CAAC;AAWF,QAAA,MAAM,WAAW,4FAOhB,CAAC;AAGF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "prism-themes/themes/prism-one-light.css";
|
|
3
|
+
import "prismjs/components/prism-json";
|
|
4
|
+
/**
|
|
5
|
+
* The code surface: the section surface behind the highlighted code, with the
|
|
6
|
+
* theme's text role for the code font. It is rendered inside the `codeEditor`
|
|
7
|
+
* zone theme, so the text role resolves to monospace (README §5.5, §6) — the
|
|
8
|
+
* contract has no separate `code` family.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CodeBlock: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, "style"> & {
|
|
11
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
12
|
+
}> & string;
|
|
13
|
+
/**
|
|
14
|
+
* A read-only code preview: renders a string or an object as JSON with Prism
|
|
15
|
+
* highlighting inside the `codeEditor` zone theme (like `HtmlEditor`), so the
|
|
16
|
+
* code surface resolves monospace typography without any gate. Pass
|
|
17
|
+
* `rawValue` (nothing renders when it is empty) and an optional `className`.
|
|
18
|
+
*/
|
|
19
|
+
export declare const CodePreview: React.FC<{
|
|
20
|
+
rawValue?: string | object;
|
|
21
|
+
className?: string;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/CodePreview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAKzC,OAAO,yCAAyC,CAAC;AACjD,OAAO,+BAA+B,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;WAiBrB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAgBpF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FC, ReactElement, ElementType } from "react";
|
|
2
|
+
type TConditionalWrapperProps = {
|
|
3
|
+
Wrapper?: ElementType;
|
|
4
|
+
children: ReactElement;
|
|
5
|
+
};
|
|
6
|
+
declare const ConditionalWrapper: FC<TConditionalWrapperProps>;
|
|
7
|
+
export default ConditionalWrapper;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/ConditionalWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE3D,KAAK,wBAAwB,GAAG;IAC/B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,wBAAwB,CACF,CAAC;AAGpD,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BasicSection, PageContainer, HeadingContainer, Column, ColumnsContainer, DashboardCardsContainer, FocusedContainer, OneLineContainer, LinksContainer, MenuItemContainer, Section, TextContainer } from "./styles.js";
|
|
2
|
+
export { BasicSection, PageContainer, HeadingContainer, Column, ColumnsContainer, DashboardCardsContainer, FocusedContainer, OneLineContainer, LinksContainer, MenuItemContainer, Section, TextContainer, };
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../atoms/Containers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,MAAM,EACN,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,oBAAiB;AAElB,OAAO,EACN,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,MAAM,EACN,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,aAAa,GACb,CAAC"}
|