@dbcdk/react-components 0.0.103 → 0.0.105
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/assets/logo.cjs +87 -0
- package/dist/assets/logo.js +85 -0
- package/dist/client.cjs +587 -0
- package/dist/client.d.ts +83 -0
- package/dist/client.js +84 -0
- package/dist/components/accordion/Accordion.cjs +117 -0
- package/dist/components/accordion/Accordion.d.ts +5 -2
- package/dist/components/accordion/Accordion.js +111 -0
- package/dist/components/accordion/Accordion.module.css +41 -0
- package/dist/components/accordion/components/AccordionRow.cjs +120 -0
- package/dist/components/accordion/components/AccordionRow.js +114 -0
- package/dist/components/accordion/components/AccordionRow.module.css +133 -0
- package/dist/components/alert/Alert.cjs +52 -0
- package/dist/components/alert/Alert.d.ts +2 -1
- package/dist/components/alert/Alert.js +46 -0
- package/dist/components/alert/Alert.module.css +97 -0
- package/dist/components/app-header/AppHeader.cjs +14 -0
- package/dist/components/app-header/AppHeader.js +8 -0
- package/dist/components/app-header/AppHeader.module.css +74 -0
- package/dist/components/attribute-chip/AttributeChip.cjs +22 -0
- package/dist/components/attribute-chip/AttributeChip.js +16 -0
- package/dist/components/attribute-chip/AttributeChip.module.css +65 -0
- package/dist/components/avatar/Avatar.cjs +111 -0
- package/dist/components/avatar/Avatar.js +86 -0
- package/dist/components/avatar/Avatar.module.css +91 -0
- package/dist/components/breadcrumbs/Breadcrumbs.cjs +24 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.module.css +80 -0
- package/dist/components/button/Button.cjs +149 -0
- package/dist/components/button/Button.js +124 -0
- package/dist/components/button/Button.module.css +260 -0
- package/dist/components/button-select/ButtonSelect.cjs +35 -0
- package/dist/components/button-select/ButtonSelect.js +29 -0
- package/dist/components/button-select/ButtonSelect.module.css +40 -0
- package/dist/components/card/Card.cjs +112 -0
- package/dist/components/card/Card.d.ts +2 -1
- package/dist/components/card/Card.js +106 -0
- package/dist/components/card/Card.module.css +187 -0
- package/dist/components/card/components/CardMeta.cjs +62 -0
- package/dist/components/card/components/CardMeta.js +55 -0
- package/dist/components/card/components/CardMeta.module.css +55 -0
- package/dist/components/card-container/CardContainer.cjs +34 -0
- package/dist/components/card-container/CardContainer.js +28 -0
- package/dist/components/card-container/CardContainer.module.css +63 -0
- package/dist/components/chip/Chip.cjs +65 -0
- package/dist/components/chip/Chip.js +59 -0
- package/dist/components/chip/Chip.module.css +236 -0
- package/dist/components/circle/Circle.cjs +33 -0
- package/dist/components/circle/Circle.js +27 -0
- package/dist/components/circle/Circle.module.css +128 -0
- package/dist/components/clear-button/ClearButton.cjs +33 -0
- package/dist/components/clear-button/ClearButton.d.ts +2 -1
- package/dist/components/clear-button/ClearButton.js +27 -0
- package/dist/components/clear-button/ClearButton.module.css +26 -0
- package/dist/components/code-block/CodeBlock.cjs +97 -0
- package/dist/components/code-block/CodeBlock.js +91 -0
- package/dist/components/code-block/CodeBlock.module.css +124 -0
- package/dist/components/copy-button/CopyButton.cjs +139 -0
- package/dist/components/copy-button/CopyButton.js +133 -0
- package/dist/components/copy-button/CopyButton.module.css +22 -0
- package/dist/components/datetime-picker/DateTimePicker.cjs +559 -0
- package/dist/components/datetime-picker/DateTimePicker.js +553 -0
- package/dist/components/datetime-picker/DateTimePicker.module.css +155 -0
- package/dist/components/datetime-picker/dateTimeHelpers.cjs +179 -0
- package/dist/components/datetime-picker/dateTimeHelpers.js +160 -0
- package/dist/components/divider/Divider.cjs +22 -0
- package/dist/components/divider/Divider.js +20 -0
- package/dist/components/filter-field/FilterField.cjs +296 -0
- package/dist/components/filter-field/FilterField.js +289 -0
- package/dist/components/filter-field/FilterField.module.css +379 -0
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.cjs +115 -0
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.js +108 -0
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.module.css +59 -0
- package/dist/components/forms/checkbox/Checkbox.cjs +88 -0
- package/dist/components/forms/checkbox/Checkbox.js +82 -0
- package/dist/components/forms/checkbox/Checkbox.module.css +104 -0
- package/dist/components/forms/checkbox-group/CheckboxGroup.cjs +121 -0
- package/dist/components/forms/checkbox-group/CheckboxGroup.js +115 -0
- package/dist/components/forms/checkbox-group/CheckboxGroup.module.css +115 -0
- package/dist/components/forms/form-select/FormSelect.cjs +191 -0
- package/dist/components/forms/form-select/FormSelect.js +166 -0
- package/dist/components/forms/form-select/FormSelect.module.css +236 -0
- package/dist/components/forms/input/Input.cjs +188 -0
- package/dist/components/forms/input/Input.d.ts +1 -0
- package/dist/components/forms/input/Input.js +182 -0
- package/dist/components/forms/input/Input.module.css +468 -0
- package/dist/components/forms/input-container/InputContainer.cjs +72 -0
- package/dist/components/forms/input-container/InputContainer.js +66 -0
- package/dist/components/forms/input-container/InputContainer.module.css +59 -0
- package/dist/components/forms/multi-select/MultiSelect.cjs +227 -0
- package/dist/components/forms/multi-select/MultiSelect.js +225 -0
- package/dist/components/forms/radio-buttons/RadioButton.cjs +91 -0
- package/dist/components/forms/radio-buttons/RadioButton.js +85 -0
- package/dist/components/forms/radio-buttons/RadioButtonGroup.cjs +74 -0
- package/dist/components/forms/radio-buttons/RadioButtonGroup.js +72 -0
- package/dist/components/forms/radio-buttons/RadioButtons.module.css +118 -0
- package/dist/components/forms/select/Select.cjs +286 -0
- package/dist/components/forms/select/Select.js +280 -0
- package/dist/components/forms/select/Select.module.css +32 -0
- package/dist/components/forms/text-area/Textarea.cjs +116 -0
- package/dist/components/forms/text-area/Textarea.js +110 -0
- package/dist/components/forms/text-area/Textarea.module.css +70 -0
- package/dist/components/forms/typeahead/Typeahead.cjs +792 -0
- package/dist/components/forms/typeahead/Typeahead.js +768 -0
- package/dist/components/forms/typeahead/Typeahead.module.css +38 -0
- package/dist/components/grid/Grid.cjs +45 -0
- package/dist/components/grid/Grid.js +38 -0
- package/dist/components/grid/Grid.module.css +35 -0
- package/dist/components/headline/CollapsibleHeadline.cjs +89 -0
- package/dist/components/headline/CollapsibleHeadline.d.ts +4 -4
- package/dist/components/headline/CollapsibleHeadline.js +83 -0
- package/dist/components/headline/Headline.cjs +59 -0
- package/dist/components/headline/Headline.js +53 -0
- package/dist/components/headline/Headline.module.css +185 -0
- package/dist/components/hyperlink/Hyperlink.cjs +107 -0
- package/dist/components/hyperlink/Hyperlink.js +82 -0
- package/dist/components/hyperlink/Hyperlink.module.css +121 -0
- package/dist/components/icon/Icon.cjs +27 -0
- package/dist/components/icon/Icon.js +20 -0
- package/dist/components/icon/Icon.module.css +36 -0
- package/dist/components/inline-status/InlineStatus.cjs +39 -0
- package/dist/components/inline-status/InlineStatus.js +33 -0
- package/dist/components/inline-status/InlineStatus.module.css +92 -0
- package/dist/components/interval-select/IntervalSelect.cjs +203 -0
- package/dist/components/interval-select/IntervalSelect.js +201 -0
- package/dist/components/json-viewer/HighlightedText.cjs +13 -0
- package/dist/components/json-viewer/HighlightedText.js +11 -0
- package/dist/components/json-viewer/JsonNode.cjs +124 -0
- package/dist/components/json-viewer/JsonNode.js +118 -0
- package/dist/components/json-viewer/JsonViewer.cjs +164 -0
- package/dist/components/json-viewer/JsonViewer.js +158 -0
- package/dist/components/json-viewer/JsonViewer.module.css +346 -0
- package/dist/components/json-viewer/types.cjs +2 -0
- package/dist/components/json-viewer/types.js +1 -0
- package/dist/components/json-viewer/useClipboardStatus.cjs +15 -0
- package/dist/components/json-viewer/useClipboardStatus.js +13 -0
- package/dist/components/json-viewer/utils.cjs +126 -0
- package/dist/components/json-viewer/utils.js +111 -0
- package/dist/components/media-card/MediaCard.cjs +60 -0
- package/dist/components/media-card/MediaCard.d.ts +19 -0
- package/dist/components/media-card/MediaCard.js +54 -0
- package/dist/components/media-card/MediaCard.module.css +92 -0
- package/dist/components/menu/Menu.cjs +287 -0
- package/dist/components/menu/Menu.js +262 -0
- package/dist/components/menu/Menu.module.css +220 -0
- package/dist/components/meta-bar/MetaBar.cjs +28 -0
- package/dist/components/meta-bar/MetaBar.js +22 -0
- package/dist/components/meta-bar/MetaBar.module.css +27 -0
- package/dist/components/nav-bar/NavBar.cjs +104 -0
- package/dist/components/nav-bar/NavBar.d.ts +4 -3
- package/dist/components/nav-bar/NavBar.js +98 -0
- package/dist/components/nav-bar/NavBar.module.css +225 -0
- package/dist/components/overlay/fade-overlay/FadeOverlay.cjs +30 -0
- package/dist/components/overlay/fade-overlay/FadeOverlay.js +24 -0
- package/dist/components/overlay/fade-overlay/FadeOverlay.module.css +54 -0
- package/dist/components/overlay/modal/Modal.cjs +189 -0
- package/dist/components/overlay/modal/Modal.d.ts +2 -1
- package/dist/components/overlay/modal/Modal.js +183 -0
- package/dist/components/overlay/modal/Modal.module.css +112 -0
- package/dist/components/overlay/modal/provider/ModalProvider.cjs +98 -0
- package/dist/components/overlay/modal/provider/ModalProvider.js +95 -0
- package/dist/components/overlay/side-panel/SidePanel.cjs +173 -0
- package/dist/components/overlay/side-panel/SidePanel.js +167 -0
- package/dist/components/overlay/side-panel/SidePanel.module.css +177 -0
- package/dist/components/overlay/side-panel/useSidePanel.cjs +16 -0
- package/dist/components/overlay/side-panel/useSidePanel.js +14 -0
- package/dist/components/overlay/tooltip/Tooltip.cjs +34 -0
- package/dist/components/overlay/tooltip/Tooltip.js +32 -0
- package/dist/components/overlay/tooltip/Tooltip.module.css +104 -0
- package/dist/components/overlay/tooltip/TooltipProvider.cjs +238 -0
- package/dist/components/overlay/tooltip/TooltipProvider.js +231 -0
- package/dist/components/overlay/tooltip/useTooltipTrigger.cjs +117 -0
- package/dist/components/overlay/tooltip/useTooltipTrigger.js +115 -0
- package/dist/components/page/Page.cjs +63 -0
- package/dist/components/page/Page.js +57 -0
- package/dist/components/page/Page.module.css +95 -0
- package/dist/components/page-layout/PageLayout.cjs +97 -0
- package/dist/components/page-layout/PageLayout.d.ts +0 -5
- package/dist/components/page-layout/PageLayout.js +91 -0
- package/dist/components/page-layout/PageLayout.module.css +236 -0
- package/dist/components/page-layout/components/footer/Footer.cjs +53 -0
- package/dist/components/page-layout/components/footer/Footer.js +47 -0
- package/dist/components/page-layout/components/footer/Footer.module.css +89 -0
- package/dist/components/pagination/Pagination.cjs +160 -0
- package/dist/components/pagination/Pagination.js +154 -0
- package/dist/components/pagination/Pagination.module.css +25 -0
- package/dist/components/panel/Panel.cjs +38 -0
- package/dist/components/panel/Panel.js +32 -0
- package/dist/components/panel/Panel.module.css +30 -0
- package/dist/components/popover/Popover.cjs +331 -0
- package/dist/components/popover/Popover.js +307 -0
- package/dist/components/popover/Popover.module.css +52 -0
- package/dist/components/search-box/SearchBox.cjs +274 -0
- package/dist/components/search-box/SearchBox.js +268 -0
- package/dist/components/search-box/SearchBox.module.css +27 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.cjs +127 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.js +121 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.module.css +174 -0
- package/dist/components/sidebar/Sidebar.cjs +39 -0
- package/dist/components/sidebar/Sidebar.js +37 -0
- package/dist/components/sidebar/components/SidebarItem.cjs +29 -0
- package/dist/components/sidebar/components/SidebarItem.js +27 -0
- package/dist/components/sidebar/components/SidebarItem.module.css +0 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs +133 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.js +127 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.module.css +29 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.cjs +214 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.js +207 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.module.css +260 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.cjs +54 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.js +47 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.module.css +106 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.cjs +61 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.js +55 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.module.css +20 -0
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.cjs +97 -0
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.js +91 -0
- package/dist/components/sidebar/providers/SidebarProvider.cjs +223 -0
- package/dist/components/sidebar/providers/SidebarProvider.js +220 -0
- package/dist/components/skeleton-loader/SkeletonLoader.cjs +442 -0
- package/dist/components/skeleton-loader/SkeletonLoader.js +440 -0
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.cjs +42 -0
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.js +36 -0
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.module.css +51 -0
- package/dist/components/split-button/SplitButton.cjs +46 -0
- package/dist/components/split-button/SplitButton.js +40 -0
- package/dist/components/split-button/SplitButton.module.css +32 -0
- package/dist/components/split-pane/SplitPane.cjs +188 -0
- package/dist/components/split-pane/SplitPane.d.ts +2 -1
- package/dist/components/split-pane/SplitPane.js +179 -0
- package/dist/components/split-pane/SplitPane.module.css +118 -0
- package/dist/components/split-pane/provider/SplitPaneContext.cjs +129 -0
- package/dist/components/split-pane/provider/SplitPaneContext.js +121 -0
- package/dist/components/stack/Stack.cjs +47 -0
- package/dist/components/stack/Stack.d.ts +1 -1
- package/dist/components/stack/Stack.js +41 -0
- package/dist/components/stack/Stack.module.css +61 -0
- package/dist/components/state-page/StatePage.cjs +48 -0
- package/dist/components/state-page/StatePage.js +42 -0
- package/dist/components/state-page/StatePage.module.css +9 -0
- package/dist/components/state-page/empty.cjs +664 -0
- package/dist/components/state-page/empty.js +662 -0
- package/dist/components/state-page/error.cjs +310 -0
- package/dist/components/state-page/error.js +308 -0
- package/dist/components/state-page/notFound.cjs +243 -0
- package/dist/components/state-page/notFound.js +241 -0
- package/dist/components/sticky-footer-layout/StickyFooterLayout.cjs +98 -0
- package/dist/components/sticky-footer-layout/StickyFooterLayout.js +96 -0
- package/dist/components/table/Table.cjs +216 -0
- package/dist/components/table/Table.js +210 -0
- package/dist/components/table/Table.module.css +534 -0
- package/dist/components/table/Table.types.cjs +2 -0
- package/dist/components/table/Table.types.js +1 -0
- package/dist/components/table/TanstackTable.cjs +172 -0
- package/dist/components/table/TanstackTable.js +147 -0
- package/dist/components/table/components/TableBody.cjs +50 -0
- package/dist/components/table/components/TableBody.js +44 -0
- package/dist/components/table/components/TableHeader.cjs +56 -0
- package/dist/components/table/components/TableHeader.js +50 -0
- package/dist/components/table/components/TableHeaderCell.cjs +69 -0
- package/dist/components/table/components/TableHeaderCell.js +63 -0
- package/dist/components/table/components/TableLoadingBody.cjs +35 -0
- package/dist/components/table/components/TableLoadingBody.js +29 -0
- package/dist/components/table/components/TablePagination.cjs +2 -0
- package/dist/components/table/components/TablePagination.js +1 -0
- package/dist/components/table/components/TableRow.cjs +151 -0
- package/dist/components/table/components/TableRow.js +145 -0
- package/dist/components/table/components/TableSelectionCell.cjs +41 -0
- package/dist/components/table/components/TableSelectionCell.js +35 -0
- package/dist/components/table/components/column-resizer/ColumnResizer.cjs +25 -0
- package/dist/components/table/components/column-resizer/ColumnResizer.js +19 -0
- package/dist/components/table/components/column-resizer/ColumnResizer.module.css +22 -0
- package/dist/components/table/components/empty-state/EmptyState.cjs +33 -0
- package/dist/components/table/components/empty-state/EmptyState.js +31 -0
- package/dist/components/table/components/empty-state/EmptyState.module.css +4 -0
- package/dist/components/table/components/table-settings/TableSettings.cjs +139 -0
- package/dist/components/table/components/table-settings/TableSettings.js +137 -0
- package/dist/components/table/hooks/useTableRowInteractions.cjs +46 -0
- package/dist/components/table/hooks/useTableRowInteractions.js +44 -0
- package/dist/components/table/table.classes.cjs +49 -0
- package/dist/components/table/table.classes.js +40 -0
- package/dist/components/table/table.utils.cjs +57 -0
- package/dist/components/table/table.utils.js +45 -0
- package/dist/components/table/tanstackTable.utils.cjs +166 -0
- package/dist/components/table/tanstackTable.utils.js +159 -0
- package/dist/components/tabs/Tabs.cjs +172 -0
- package/dist/components/tabs/Tabs.js +166 -0
- package/dist/components/tabs/Tabs.module.css +261 -0
- package/dist/components/theme-button/ThemeButton.cjs +78 -0
- package/dist/components/theme-button/ThemeButton.js +75 -0
- package/dist/components/toast/Toast.cjs +68 -0
- package/dist/components/toast/Toast.js +62 -0
- package/dist/components/toast/Toast.module.css +161 -0
- package/dist/components/toast/provider/ToastProvider.cjs +105 -0
- package/dist/components/toast/provider/ToastProvider.js +97 -0
- package/dist/components/user-display/UserDisplay.cjs +22 -0
- package/dist/components/user-display/UserDisplay.js +16 -0
- package/dist/components/user-display/UserDisplay.module.css +25 -0
- package/dist/constants/chart-colors.cjs +10 -0
- package/dist/constants/chart-colors.js +8 -0
- package/dist/constants/chart-colors.types.cjs +2 -0
- package/dist/constants/chart-colors.types.js +1 -0
- package/dist/constants/severity.cjs +30 -0
- package/dist/constants/severity.js +26 -0
- package/dist/constants/severity.types.cjs +2 -0
- package/dist/constants/severity.types.js +1 -0
- package/dist/constants/sizes.cjs +11 -0
- package/dist/constants/sizes.js +9 -0
- package/dist/hooks/useDeviceSize.cjs +35 -0
- package/dist/hooks/useDeviceSize.js +33 -0
- package/dist/hooks/useListNavigation.cjs +237 -0
- package/dist/hooks/useListNavigation.js +235 -0
- package/dist/hooks/usePagination.cjs +144 -0
- package/dist/hooks/usePagination.js +142 -0
- package/dist/hooks/useSorting.cjs +119 -0
- package/dist/hooks/useSorting.js +117 -0
- package/dist/hooks/useTableData.cjs +53 -0
- package/dist/hooks/useTableData.js +51 -0
- package/dist/hooks/useTableSelection.cjs +172 -0
- package/dist/hooks/useTableSelection.js +170 -0
- package/dist/hooks/useTableSettings.cjs +90 -0
- package/dist/hooks/useTableSettings.js +87 -0
- package/dist/hooks/useTheme.cjs +64 -0
- package/dist/hooks/useTheme.js +62 -0
- package/dist/hooks/useTimeDuration.cjs +72 -0
- package/dist/hooks/useTimeDuration.js +70 -0
- package/dist/hooks/useViewportFill.cjs +82 -0
- package/dist/hooks/useViewportFill.js +80 -0
- package/dist/index.cjs +161 -12908
- package/dist/index.css +67 -7357
- package/dist/index.d.ts +0 -58
- package/dist/index.js +24 -12809
- package/dist/styles/animation.cjs +9 -0
- package/dist/styles/animation.js +7 -0
- package/dist/styles/themes/dbc/colors.css +5 -0
- package/dist/styles/themes/types.cjs +2 -0
- package/dist/styles/themes/types.js +1 -0
- package/dist/tanstack.cjs +18 -2717
- package/dist/tanstack.js +3 -2701
- package/dist/types/a11y-props.types.cjs +2 -0
- package/dist/types/a11y-props.types.js +1 -0
- package/dist/types/assets.d.cjs +2 -0
- package/dist/types/assets.d.js +1 -0
- package/dist/types/css.d.cjs +2 -0
- package/dist/types/css.d.js +1 -0
- package/dist/types/sizes.types.cjs +2 -0
- package/dist/types/sizes.types.js +1 -0
- package/dist/utils/arrays/nested-filtering.cjs +40 -0
- package/dist/utils/arrays/nested-filtering.js +38 -0
- package/dist/utils/date/formatDate.cjs +35 -0
- package/dist/utils/date/formatDate.js +33 -0
- package/dist/utils/localStorage.utils.cjs +53 -0
- package/dist/utils/localStorage.utils.js +49 -0
- package/dist/utils/text/get-highlighted-segments.cjs +49 -0
- package/dist/utils/text/get-highlighted-segments.js +47 -0
- package/package.json +8 -3
- package/dist/tanstack.css +0 -1385
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { TextWrap } from 'lucide-react';
|
|
3
|
+
import { useState, useMemo, isValidElement } from 'react';
|
|
4
|
+
import styles from './CodeBlock.module.css';
|
|
5
|
+
import { Button } from '../button/Button';
|
|
6
|
+
import { CopyButton } from '../copy-button/CopyButton';
|
|
7
|
+
|
|
8
|
+
const looksLikeStackFrame = (line) => {
|
|
9
|
+
const t = line.trim();
|
|
10
|
+
return t.startsWith("at ") || // Java, JS
|
|
11
|
+
t.startsWith("...") || t.startsWith("Caused by:") || t.startsWith("Suppressed:") || t.startsWith("Traceback") || // Python header
|
|
12
|
+
t.startsWith("File ") || // Python
|
|
13
|
+
t.startsWith("\u21B3") || // some tools
|
|
14
|
+
/^at\s+\w/.test(t);
|
|
15
|
+
};
|
|
16
|
+
function getTextContent(node) {
|
|
17
|
+
if (node == null || typeof node === "boolean") return "";
|
|
18
|
+
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
19
|
+
if (Array.isArray(node)) return node.map(getTextContent).join("");
|
|
20
|
+
if (isValidElement(node)) return getTextContent(node.props.children);
|
|
21
|
+
return "";
|
|
22
|
+
}
|
|
23
|
+
function CodeBlock({
|
|
24
|
+
code,
|
|
25
|
+
children,
|
|
26
|
+
copyButton,
|
|
27
|
+
copyText,
|
|
28
|
+
size = "md",
|
|
29
|
+
smart = true,
|
|
30
|
+
wrap = true
|
|
31
|
+
}) {
|
|
32
|
+
const text = typeof code === "string" ? code : void 0;
|
|
33
|
+
const hasChildren = children !== void 0 && children !== null;
|
|
34
|
+
const [isWrapped, setIsWrapped] = useState(wrap);
|
|
35
|
+
const copy = useMemo(
|
|
36
|
+
() => {
|
|
37
|
+
var _a;
|
|
38
|
+
return (_a = copyText != null ? copyText : text) != null ? _a : getTextContent(children);
|
|
39
|
+
},
|
|
40
|
+
[copyText, text, children]
|
|
41
|
+
);
|
|
42
|
+
const lines = useMemo(
|
|
43
|
+
() => smart && !hasChildren && typeof text === "string" ? text.split("\n") : null,
|
|
44
|
+
[smart, hasChildren, text]
|
|
45
|
+
);
|
|
46
|
+
return /* @__PURE__ */ jsxs(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
className: [
|
|
50
|
+
styles.wrapper,
|
|
51
|
+
styles[size],
|
|
52
|
+
isWrapped ? styles.wrap : styles.noWrap,
|
|
53
|
+
copyButton ? styles.hasActions : ""
|
|
54
|
+
].filter(Boolean).join(" "),
|
|
55
|
+
children: [
|
|
56
|
+
copyButton && /* @__PURE__ */ jsxs("span", { className: styles.actions, "aria-hidden": false, children: [
|
|
57
|
+
/* @__PURE__ */ jsx(
|
|
58
|
+
Button,
|
|
59
|
+
{
|
|
60
|
+
type: "button",
|
|
61
|
+
variant: "inline",
|
|
62
|
+
size: "sm",
|
|
63
|
+
shape: "round",
|
|
64
|
+
onClick: () => setIsWrapped((v) => !v),
|
|
65
|
+
"aria-pressed": isWrapped,
|
|
66
|
+
active: isWrapped,
|
|
67
|
+
title: isWrapped ? "Ombryd ikke tekst" : "Ombryd tekst",
|
|
68
|
+
children: /* @__PURE__ */ jsx(TextWrap, { size: 16 })
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ jsx(CopyButton, { size: "sm", shape: "round", variant: "inline", text: copy })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ jsx("pre", { className: styles.container, tabIndex: 0, children: /* @__PURE__ */ jsx("code", { className: styles.code, children: hasChildren ? children : lines ? lines.map((line, i) => {
|
|
74
|
+
const isFirst = i === 0;
|
|
75
|
+
const isFrame = looksLikeStackFrame(line);
|
|
76
|
+
const cls = [
|
|
77
|
+
styles.line,
|
|
78
|
+
isFirst ? styles.lineFirst : "",
|
|
79
|
+
isFrame ? styles.lineFrame : ""
|
|
80
|
+
].filter(Boolean).join(" ");
|
|
81
|
+
return /* @__PURE__ */ jsxs("span", { className: cls, children: [
|
|
82
|
+
line,
|
|
83
|
+
"\n"
|
|
84
|
+
] }, i);
|
|
85
|
+
}) : text }) })
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export { CodeBlock };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
.wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
max-inline-size: 100%;
|
|
5
|
+
--code-actions-h: var(--component-size-sm);
|
|
6
|
+
--code-actions-inset: var(--spacing-xs);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* <pre> */
|
|
10
|
+
.container {
|
|
11
|
+
position: relative;
|
|
12
|
+
margin-block: 0;
|
|
13
|
+
background: var(--color-bg-surface-strong);
|
|
14
|
+
border: var(--border-width-thin) solid var(--color-border-subtle);
|
|
15
|
+
border-radius: var(--border-radius-lg);
|
|
16
|
+
box-shadow: var(--shadow-xs);
|
|
17
|
+
padding: var(--spacing-sm);
|
|
18
|
+
font-family: var(--font-family-mono);
|
|
19
|
+
line-height: 1.35;
|
|
20
|
+
overflow: auto;
|
|
21
|
+
scrollbar-gutter: stable;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
max-inline-size: 100%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Sizes */
|
|
28
|
+
.sm .container {
|
|
29
|
+
padding: var(--spacing-xs);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sm .code {
|
|
33
|
+
font-size: var(--font-size-xs);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.md .code {
|
|
37
|
+
font-size: var(--font-size-sm);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.lg .code {
|
|
41
|
+
font-size: var(--font-size-base);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.hasActions .container {
|
|
45
|
+
min-block-size: calc(var(--code-actions-h) + var(--spacing-sm) + var(--spacing-sm));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.sm.hasActions .container {
|
|
49
|
+
min-block-size: calc(var(--code-actions-h) + var(--spacing-xs) + var(--spacing-xs));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.md.hasActions .container {
|
|
53
|
+
min-block-size: calc(var(--code-actions-h) + var(--spacing-sm) + var(--spacing-sm));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.lg.hasActions .container {
|
|
57
|
+
min-block-size: calc(var(--code-actions-h) + var(--spacing-sm) + var(--spacing-sm));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Focus ring */
|
|
61
|
+
.wrapper:focus-within .container {
|
|
62
|
+
border-color: var(--color-border-selected);
|
|
63
|
+
box-shadow: var(--shadow-xs), var(--focus-ring);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* <code> */
|
|
67
|
+
.code {
|
|
68
|
+
display: block;
|
|
69
|
+
margin: 0;
|
|
70
|
+
font-family: var(--font-family-mono);
|
|
71
|
+
color: var(--color-fg-default);
|
|
72
|
+
flex: 1 1 auto;
|
|
73
|
+
min-width: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Wrapping modes */
|
|
77
|
+
.wrap .code {
|
|
78
|
+
white-space: pre-wrap;
|
|
79
|
+
overflow-wrap: break-word;
|
|
80
|
+
word-break: normal;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.noWrap .code {
|
|
84
|
+
white-space: pre;
|
|
85
|
+
overflow-wrap: normal;
|
|
86
|
+
word-break: normal;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.actions {
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: var(--code-actions-inset);
|
|
92
|
+
right: var(--code-actions-inset);
|
|
93
|
+
z-index: 3;
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
gap: var(--spacing-xs);
|
|
96
|
+
align-items: center;
|
|
97
|
+
padding: var(--spacing-2xs);
|
|
98
|
+
border-radius: var(--border-radius-lg);
|
|
99
|
+
background: color-mix(in oklab, var(--color-bg-surface) 70%, transparent);
|
|
100
|
+
backdrop-filter: blur(6px);
|
|
101
|
+
opacity: 0;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
transition: opacity var(--transition-fast) var(--ease-standard);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.wrapper:hover .actions,
|
|
107
|
+
.wrapper:focus-within .actions {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
pointer-events: auto;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.line {
|
|
113
|
+
display: inline;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.lineFirst {
|
|
117
|
+
font-family: inherit;
|
|
118
|
+
font-weight: 500;
|
|
119
|
+
color: var(--color-fg-default);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.lineFrame {
|
|
123
|
+
color: var(--color-fg-subtle);
|
|
124
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var lucideReact = require('lucide-react');
|
|
6
|
+
var react = require('react');
|
|
7
|
+
var styles = require('./CopyButton.module.css');
|
|
8
|
+
var Button = require('../button/Button');
|
|
9
|
+
var Input = require('../forms/input/Input');
|
|
10
|
+
var Hyperlink = require('../hyperlink/Hyperlink');
|
|
11
|
+
var ToastProvider = require('../toast/provider/ToastProvider');
|
|
12
|
+
|
|
13
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
|
|
15
|
+
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
16
|
+
|
|
17
|
+
function CopyButton(props) {
|
|
18
|
+
var _a, _b, _c;
|
|
19
|
+
const {
|
|
20
|
+
text,
|
|
21
|
+
variant = "outlined",
|
|
22
|
+
size = "sm",
|
|
23
|
+
children,
|
|
24
|
+
displayStyle,
|
|
25
|
+
disableIcon = false,
|
|
26
|
+
disableToast = false,
|
|
27
|
+
className,
|
|
28
|
+
style,
|
|
29
|
+
fullWidth,
|
|
30
|
+
disabled,
|
|
31
|
+
...rest
|
|
32
|
+
} = props;
|
|
33
|
+
const [copied, setCopied] = react.useState(false);
|
|
34
|
+
const toast = ToastProvider.useOptionalToast();
|
|
35
|
+
const buttonLabel = children;
|
|
36
|
+
const icon = disableIcon ? null : copied ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, {}) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, {});
|
|
37
|
+
const handleCopySuccess = () => {
|
|
38
|
+
if (!disableIcon) {
|
|
39
|
+
setCopied(true);
|
|
40
|
+
window.setTimeout(() => setCopied(false), 1e3);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (!disableToast) {
|
|
44
|
+
toast == null ? void 0 : toast.showToast({
|
|
45
|
+
severity: "neutral",
|
|
46
|
+
message: "Kopieret"
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const handleCopy = async () => {
|
|
51
|
+
try {
|
|
52
|
+
if (!window.isSecureContext || !navigator.clipboard) {
|
|
53
|
+
throw new Error("Clipboard API unavailable");
|
|
54
|
+
}
|
|
55
|
+
await navigator.clipboard.writeText(text);
|
|
56
|
+
handleCopySuccess();
|
|
57
|
+
} catch (err) {
|
|
58
|
+
console.error("Failed to copy:", err);
|
|
59
|
+
try {
|
|
60
|
+
const textarea = document.createElement("textarea");
|
|
61
|
+
textarea.value = text;
|
|
62
|
+
textarea.setAttribute("readonly", "");
|
|
63
|
+
textarea.style.position = "fixed";
|
|
64
|
+
textarea.style.left = "-9999px";
|
|
65
|
+
document.body.appendChild(textarea);
|
|
66
|
+
textarea.select();
|
|
67
|
+
const success = document.execCommand("copy");
|
|
68
|
+
document.body.removeChild(textarea);
|
|
69
|
+
if (success) {
|
|
70
|
+
handleCopySuccess();
|
|
71
|
+
}
|
|
72
|
+
} catch (fallbackErr) {
|
|
73
|
+
console.error("Fallback copy failed:", fallbackErr);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
if (displayStyle === "link") {
|
|
78
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Hyperlink.Hyperlink, { asChild: true, variant: "primary", icon, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
79
|
+
"button",
|
|
80
|
+
{
|
|
81
|
+
type: "button",
|
|
82
|
+
"aria-label": children ? "" : (_a = rest["aria-label"]) != null ? _a : "Kopier til udklipsholder",
|
|
83
|
+
onClick: (e) => {
|
|
84
|
+
e.preventDefault();
|
|
85
|
+
e.stopPropagation();
|
|
86
|
+
handleCopy();
|
|
87
|
+
},
|
|
88
|
+
className: [styles__default.default.link, copied ? styles__default.default.copied : "", className != null ? className : ""].filter(Boolean).join(" "),
|
|
89
|
+
style,
|
|
90
|
+
disabled,
|
|
91
|
+
children: buttonLabel
|
|
92
|
+
}
|
|
93
|
+
) });
|
|
94
|
+
}
|
|
95
|
+
if (displayStyle === "field") {
|
|
96
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
97
|
+
Input.Input,
|
|
98
|
+
{
|
|
99
|
+
value: text,
|
|
100
|
+
readOnly: true,
|
|
101
|
+
disabled,
|
|
102
|
+
fullWidth,
|
|
103
|
+
className,
|
|
104
|
+
style,
|
|
105
|
+
inputSize: size,
|
|
106
|
+
variant: "outlined",
|
|
107
|
+
buttonLabel: typeof buttonLabel === "string" ? buttonLabel : void 0,
|
|
108
|
+
buttonIcon: icon,
|
|
109
|
+
onButtonClick: () => {
|
|
110
|
+
void handleCopy();
|
|
111
|
+
},
|
|
112
|
+
"aria-label": (_b = rest["aria-label"]) != null ? _b : "Kopier til udklipsholder"
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
117
|
+
Button.Button,
|
|
118
|
+
{
|
|
119
|
+
...rest,
|
|
120
|
+
"aria-label": children ? "" : (_c = rest["aria-label"]) != null ? _c : "Kopier til udklipsholder",
|
|
121
|
+
onClick: (e) => {
|
|
122
|
+
e.preventDefault();
|
|
123
|
+
e.stopPropagation();
|
|
124
|
+
handleCopy();
|
|
125
|
+
},
|
|
126
|
+
variant,
|
|
127
|
+
size,
|
|
128
|
+
className,
|
|
129
|
+
style,
|
|
130
|
+
disabled,
|
|
131
|
+
children: [
|
|
132
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: `${styles__default.default.container} ${copied ? styles__default.default.copied : ""}`, children: icon }),
|
|
133
|
+
buttonLabel
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
exports.CopyButton = CopyButton;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { Check, Copy } from 'lucide-react';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import styles from './CopyButton.module.css';
|
|
6
|
+
import { Button } from '../button/Button';
|
|
7
|
+
import { Input } from '../forms/input/Input';
|
|
8
|
+
import { Hyperlink } from '../hyperlink/Hyperlink';
|
|
9
|
+
import { useOptionalToast } from '../toast/provider/ToastProvider';
|
|
10
|
+
|
|
11
|
+
function CopyButton(props) {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
const {
|
|
14
|
+
text,
|
|
15
|
+
variant = "outlined",
|
|
16
|
+
size = "sm",
|
|
17
|
+
children,
|
|
18
|
+
displayStyle,
|
|
19
|
+
disableIcon = false,
|
|
20
|
+
disableToast = false,
|
|
21
|
+
className,
|
|
22
|
+
style,
|
|
23
|
+
fullWidth,
|
|
24
|
+
disabled,
|
|
25
|
+
...rest
|
|
26
|
+
} = props;
|
|
27
|
+
const [copied, setCopied] = useState(false);
|
|
28
|
+
const toast = useOptionalToast();
|
|
29
|
+
const buttonLabel = children;
|
|
30
|
+
const icon = disableIcon ? null : copied ? /* @__PURE__ */ jsx(Check, {}) : /* @__PURE__ */ jsx(Copy, {});
|
|
31
|
+
const handleCopySuccess = () => {
|
|
32
|
+
if (!disableIcon) {
|
|
33
|
+
setCopied(true);
|
|
34
|
+
window.setTimeout(() => setCopied(false), 1e3);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (!disableToast) {
|
|
38
|
+
toast == null ? void 0 : toast.showToast({
|
|
39
|
+
severity: "neutral",
|
|
40
|
+
message: "Kopieret"
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const handleCopy = async () => {
|
|
45
|
+
try {
|
|
46
|
+
if (!window.isSecureContext || !navigator.clipboard) {
|
|
47
|
+
throw new Error("Clipboard API unavailable");
|
|
48
|
+
}
|
|
49
|
+
await navigator.clipboard.writeText(text);
|
|
50
|
+
handleCopySuccess();
|
|
51
|
+
} catch (err) {
|
|
52
|
+
console.error("Failed to copy:", err);
|
|
53
|
+
try {
|
|
54
|
+
const textarea = document.createElement("textarea");
|
|
55
|
+
textarea.value = text;
|
|
56
|
+
textarea.setAttribute("readonly", "");
|
|
57
|
+
textarea.style.position = "fixed";
|
|
58
|
+
textarea.style.left = "-9999px";
|
|
59
|
+
document.body.appendChild(textarea);
|
|
60
|
+
textarea.select();
|
|
61
|
+
const success = document.execCommand("copy");
|
|
62
|
+
document.body.removeChild(textarea);
|
|
63
|
+
if (success) {
|
|
64
|
+
handleCopySuccess();
|
|
65
|
+
}
|
|
66
|
+
} catch (fallbackErr) {
|
|
67
|
+
console.error("Fallback copy failed:", fallbackErr);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
if (displayStyle === "link") {
|
|
72
|
+
return /* @__PURE__ */ jsx(Hyperlink, { asChild: true, variant: "primary", icon, children: /* @__PURE__ */ jsx(
|
|
73
|
+
"button",
|
|
74
|
+
{
|
|
75
|
+
type: "button",
|
|
76
|
+
"aria-label": children ? "" : (_a = rest["aria-label"]) != null ? _a : "Kopier til udklipsholder",
|
|
77
|
+
onClick: (e) => {
|
|
78
|
+
e.preventDefault();
|
|
79
|
+
e.stopPropagation();
|
|
80
|
+
handleCopy();
|
|
81
|
+
},
|
|
82
|
+
className: [styles.link, copied ? styles.copied : "", className != null ? className : ""].filter(Boolean).join(" "),
|
|
83
|
+
style,
|
|
84
|
+
disabled,
|
|
85
|
+
children: buttonLabel
|
|
86
|
+
}
|
|
87
|
+
) });
|
|
88
|
+
}
|
|
89
|
+
if (displayStyle === "field") {
|
|
90
|
+
return /* @__PURE__ */ jsx(
|
|
91
|
+
Input,
|
|
92
|
+
{
|
|
93
|
+
value: text,
|
|
94
|
+
readOnly: true,
|
|
95
|
+
disabled,
|
|
96
|
+
fullWidth,
|
|
97
|
+
className,
|
|
98
|
+
style,
|
|
99
|
+
inputSize: size,
|
|
100
|
+
variant: "outlined",
|
|
101
|
+
buttonLabel: typeof buttonLabel === "string" ? buttonLabel : void 0,
|
|
102
|
+
buttonIcon: icon,
|
|
103
|
+
onButtonClick: () => {
|
|
104
|
+
void handleCopy();
|
|
105
|
+
},
|
|
106
|
+
"aria-label": (_b = rest["aria-label"]) != null ? _b : "Kopier til udklipsholder"
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
return /* @__PURE__ */ jsxs(
|
|
111
|
+
Button,
|
|
112
|
+
{
|
|
113
|
+
...rest,
|
|
114
|
+
"aria-label": children ? "" : (_c = rest["aria-label"]) != null ? _c : "Kopier til udklipsholder",
|
|
115
|
+
onClick: (e) => {
|
|
116
|
+
e.preventDefault();
|
|
117
|
+
e.stopPropagation();
|
|
118
|
+
handleCopy();
|
|
119
|
+
},
|
|
120
|
+
variant,
|
|
121
|
+
size,
|
|
122
|
+
className,
|
|
123
|
+
style,
|
|
124
|
+
disabled,
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ jsx("span", { className: `${styles.container} ${copied ? styles.copied : ""}`, children: icon }),
|
|
127
|
+
buttonLabel
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export { CopyButton };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.container,
|
|
2
|
+
.link {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: var(--spacing-xxs);
|
|
6
|
+
background-color: unset;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.link {
|
|
10
|
+
appearance: none;
|
|
11
|
+
border: none;
|
|
12
|
+
padding: 0;
|
|
13
|
+
font: inherit;
|
|
14
|
+
color: inherit;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.copied {
|
|
20
|
+
color: var(--color-status-success);
|
|
21
|
+
transition: color ease-in 0.1s;
|
|
22
|
+
}
|