@canonical/react-ds-app-launchpad 0.7.1-experimental.0 → 0.9.0-experimental.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/ui/EditableBlock/Context.js +4 -0
- package/dist/esm/ui/EditableBlock/Context.js.map +1 -0
- package/dist/esm/ui/EditableBlock/EditableBlock.js +33 -0
- package/dist/esm/ui/EditableBlock/EditableBlock.js.map +1 -0
- package/dist/esm/ui/EditableBlock/EditableBlock.test.js +57 -0
- package/dist/esm/ui/EditableBlock/EditableBlock.test.js.map +1 -0
- package/dist/esm/ui/EditableBlock/hooks/index.js +2 -0
- package/dist/esm/ui/EditableBlock/hooks/index.js.map +1 -0
- package/dist/esm/ui/EditableBlock/hooks/useEditableBlock.js +11 -0
- package/dist/esm/ui/EditableBlock/hooks/useEditableBlock.js.map +1 -0
- package/dist/esm/ui/EditableBlock/index.js +3 -0
- package/dist/esm/ui/EditableBlock/index.js.map +1 -0
- package/dist/esm/ui/EditableBlock/styles.css +38 -0
- package/dist/esm/ui/EditableBlock/types.js.map +1 -0
- package/dist/esm/ui/FileTree/Context.js +4 -0
- package/dist/esm/ui/FileTree/Context.js.map +1 -0
- package/dist/esm/ui/FileTree/Provider.js +74 -0
- package/dist/esm/ui/FileTree/Provider.js.map +1 -0
- package/dist/esm/ui/FileTree/common/File/File.js +12 -0
- package/dist/esm/ui/FileTree/common/File/File.js.map +1 -0
- package/dist/esm/ui/FileTree/common/File/index.js +4 -0
- package/dist/esm/ui/FileTree/common/File/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/File/styles.css +4 -0
- package/dist/esm/ui/FileTree/common/File/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Folder/Folder.js +12 -0
- package/dist/esm/ui/FileTree/common/Folder/Folder.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Folder/index.js +4 -0
- package/dist/esm/ui/FileTree/common/Folder/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Folder/styles.css +4 -0
- package/dist/esm/ui/FileTree/common/Folder/types.js +2 -0
- package/dist/esm/ui/FileTree/common/Folder/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/IndentationBlock.js +16 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/IndentationBlock.js.map +1 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/index.js +4 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/styles.css +32 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/types.js +2 -0
- package/dist/esm/ui/FileTree/common/IndentationBlock/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/Context.js +10 -0
- package/dist/esm/ui/FileTree/common/Node/Context.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/Provider.js +163 -0
- package/dist/esm/ui/FileTree/common/Node/Provider.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/hooks/index.js +2 -0
- package/dist/esm/ui/FileTree/common/Node/hooks/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/hooks/useNode.js +12 -0
- package/dist/esm/ui/FileTree/common/Node/hooks/useNode.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/index.js +4 -0
- package/dist/esm/ui/FileTree/common/Node/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/Node/styles.css +60 -0
- package/dist/esm/ui/FileTree/common/Node/types.js +2 -0
- package/dist/esm/ui/FileTree/common/Node/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/SearchBox/SearchBox.js +31 -0
- package/dist/esm/ui/FileTree/common/SearchBox/SearchBox.js.map +1 -0
- package/dist/esm/ui/FileTree/common/SearchBox/index.js +4 -0
- package/dist/esm/ui/FileTree/common/SearchBox/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/SearchBox/styles.css +61 -0
- package/dist/esm/ui/FileTree/common/SearchBox/types.js +2 -0
- package/dist/esm/ui/FileTree/common/SearchBox/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/TreeView/TreeView.js +60 -0
- package/dist/esm/ui/FileTree/common/TreeView/TreeView.js.map +1 -0
- package/dist/esm/ui/FileTree/common/TreeView/index.js +4 -0
- package/dist/esm/ui/FileTree/common/TreeView/index.js.map +1 -0
- package/dist/esm/ui/FileTree/common/TreeView/types.js +2 -0
- package/dist/esm/ui/FileTree/common/TreeView/types.js.map +1 -0
- package/dist/esm/ui/FileTree/common/index.js +5 -0
- package/dist/esm/ui/FileTree/common/index.js.map +1 -0
- package/dist/esm/ui/FileTree/hooks/index.js +2 -0
- package/dist/esm/ui/FileTree/hooks/index.js.map +1 -0
- package/dist/esm/ui/FileTree/hooks/useFileTree.js +11 -0
- package/dist/esm/ui/FileTree/hooks/useFileTree.js.map +1 -0
- package/dist/esm/ui/FileTree/index.js +10 -0
- package/dist/esm/ui/FileTree/index.js.map +1 -0
- package/dist/esm/ui/FileTree/styles.css +47 -0
- package/dist/esm/ui/FileTree/types.js +2 -0
- package/dist/esm/ui/{Button → FileTree}/types.js.map +1 -1
- package/dist/esm/ui/FileTree/utils/hashNodeName.js +11 -0
- package/dist/esm/ui/FileTree/utils/hashNodeName.js.map +1 -0
- package/dist/esm/ui/FileTree/utils/index.js +2 -0
- package/dist/esm/ui/FileTree/utils/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/Context.js +4 -0
- package/dist/esm/ui/GitDiffViewer/Context.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/Provider.js +31 -0
- package/dist/esm/ui/GitDiffViewer/Provider.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js +119 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/HighlighTheme.css +171 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js +33 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.js +4 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/styles.css +111 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.js +2 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/index.js +2 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/common/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/index.js +4 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/styles.css +39 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/types.js +2 -0
- package/dist/esm/ui/GitDiffViewer/common/CodeDiffViewer/types.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/FileHeader.js +35 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/FileHeader.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/index.js +4 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/styles.css +75 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/types.js +2 -0
- package/dist/esm/ui/GitDiffViewer/common/FileHeader/types.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/common/index.js +3 -0
- package/dist/esm/ui/GitDiffViewer/common/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/hooks/index.js +2 -0
- package/dist/esm/ui/GitDiffViewer/hooks/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/hooks/useGitDiffViewer.js +11 -0
- package/dist/esm/ui/GitDiffViewer/hooks/useGitDiffViewer.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/index.js +9 -0
- package/dist/esm/ui/GitDiffViewer/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/styles.css +38 -0
- package/dist/esm/ui/GitDiffViewer/types.js +2 -0
- package/dist/esm/ui/GitDiffViewer/types.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/utils/index.js +2 -0
- package/dist/esm/ui/GitDiffViewer/utils/index.js.map +1 -0
- package/dist/esm/ui/GitDiffViewer/utils/parseGitDiff.js +73 -0
- package/dist/esm/ui/GitDiffViewer/utils/parseGitDiff.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/MarkdownEditor.js +74 -0
- package/dist/esm/ui/MarkdownEditor/MarkdownEditor.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/Toolbar.js +52 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/Toolbar.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/Button.js +19 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/Button.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/styles.css +17 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Button/types.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/Group.js +13 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/Group.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/styles.css +7 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Group/types.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.js +13 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/styles.css +7 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/Separator/types.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/common/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/index.js +9 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/styles.css +16 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/common/Toolbar/types.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.js +34 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/styles.css +42 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/common/ViewModeTabs/types.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/icons.js +10 -0
- package/dist/esm/ui/MarkdownEditor/common/icons.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/common/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/common/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/hooks/index.js +2 -0
- package/dist/esm/ui/MarkdownEditor/hooks/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/hooks/useEditor.js +277 -0
- package/dist/esm/ui/MarkdownEditor/hooks/useEditor.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/index.js +4 -0
- package/dist/esm/ui/MarkdownEditor/index.js.map +1 -0
- package/dist/esm/ui/MarkdownEditor/styles.css +69 -0
- package/dist/esm/ui/MarkdownEditor/types.js +2 -0
- package/dist/esm/ui/MarkdownEditor/types.js.map +1 -0
- package/dist/esm/ui/RelativeTime/RelativeTime.js +66 -0
- package/dist/esm/ui/RelativeTime/RelativeTime.js.map +1 -0
- package/dist/esm/ui/RelativeTime/index.js +4 -0
- package/dist/esm/ui/RelativeTime/index.js.map +1 -0
- package/dist/esm/ui/RelativeTime/types.js +2 -0
- package/dist/esm/ui/{Chip → RelativeTime}/types.js.map +1 -1
- package/dist/esm/ui/RelativeTime/utils/constants.js +6 -0
- package/dist/esm/ui/RelativeTime/utils/constants.js.map +1 -0
- package/dist/esm/ui/RelativeTime/utils/formatHumanTime.js +43 -0
- package/dist/esm/ui/RelativeTime/utils/formatHumanTime.js.map +1 -0
- package/dist/esm/ui/RelativeTime/utils/getOptimalUpdateInterval.js +24 -0
- package/dist/esm/ui/RelativeTime/utils/getOptimalUpdateInterval.js.map +1 -0
- package/dist/esm/ui/RelativeTime/utils/index.js +4 -0
- package/dist/esm/ui/RelativeTime/utils/index.js.map +1 -0
- package/dist/esm/ui/RelativeTime/utils/parseInstant.js +22 -0
- package/dist/esm/ui/RelativeTime/utils/parseInstant.js.map +1 -0
- package/dist/esm/ui/index.js +5 -1
- package/dist/esm/ui/index.js.map +1 -1
- package/dist/types/ui/EditableBlock/Context.d.ts +4 -0
- package/dist/types/ui/EditableBlock/Context.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/EditableBlock.d.ts +10 -0
- package/dist/types/ui/EditableBlock/EditableBlock.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/EditableBlock.test.d.ts +2 -0
- package/dist/types/ui/EditableBlock/EditableBlock.test.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/hooks/index.d.ts +2 -0
- package/dist/types/ui/EditableBlock/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/hooks/useEditableBlock.d.ts +4 -0
- package/dist/types/ui/EditableBlock/hooks/useEditableBlock.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/index.d.ts +3 -0
- package/dist/types/ui/EditableBlock/index.d.ts.map +1 -0
- package/dist/types/ui/EditableBlock/types.d.ts +24 -0
- package/dist/types/ui/EditableBlock/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/Context.d.ts +4 -0
- package/dist/types/ui/FileTree/Context.d.ts.map +1 -0
- package/dist/types/ui/FileTree/Provider.d.ts +7 -0
- package/dist/types/ui/FileTree/Provider.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/File/File.d.ts +10 -0
- package/dist/types/ui/FileTree/common/File/File.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/File/index.d.ts +3 -0
- package/dist/types/ui/FileTree/common/File/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/File/types.d.ts +16 -0
- package/dist/types/ui/FileTree/common/File/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Folder/Folder.d.ts +10 -0
- package/dist/types/ui/FileTree/common/Folder/Folder.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Folder/index.d.ts +3 -0
- package/dist/types/ui/FileTree/common/Folder/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Folder/types.d.ts +16 -0
- package/dist/types/ui/FileTree/common/Folder/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/IndentationBlock.d.ts +10 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/IndentationBlock.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/index.d.ts +3 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/types.d.ts +12 -0
- package/dist/types/ui/FileTree/common/IndentationBlock/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/Context.d.ts +5 -0
- package/dist/types/ui/FileTree/common/Node/Context.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/Provider.d.ts +6 -0
- package/dist/types/ui/FileTree/common/Node/Provider.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/hooks/index.d.ts +2 -0
- package/dist/types/ui/FileTree/common/Node/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/hooks/useNode.d.ts +3 -0
- package/dist/types/ui/FileTree/common/Node/hooks/useNode.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/index.d.ts +5 -0
- package/dist/types/ui/FileTree/common/Node/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/Node/types.d.ts +28 -0
- package/dist/types/ui/FileTree/common/Node/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/SearchBox/SearchBox.d.ts +10 -0
- package/dist/types/ui/FileTree/common/SearchBox/SearchBox.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/SearchBox/index.d.ts +3 -0
- package/dist/types/ui/FileTree/common/SearchBox/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/SearchBox/types.d.ts +12 -0
- package/dist/types/ui/FileTree/common/SearchBox/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/TreeView/TreeView.d.ts +16 -0
- package/dist/types/ui/FileTree/common/TreeView/TreeView.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/TreeView/index.d.ts +3 -0
- package/dist/types/ui/FileTree/common/TreeView/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/TreeView/types.d.ts +20 -0
- package/dist/types/ui/FileTree/common/TreeView/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/common/index.d.ts +5 -0
- package/dist/types/ui/FileTree/common/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/hooks/index.d.ts +2 -0
- package/dist/types/ui/FileTree/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/hooks/useFileTree.d.ts +3 -0
- package/dist/types/ui/FileTree/hooks/useFileTree.d.ts.map +1 -0
- package/dist/types/ui/FileTree/index.d.ts +5 -0
- package/dist/types/ui/FileTree/index.d.ts.map +1 -0
- package/dist/types/ui/FileTree/types.d.ts +69 -0
- package/dist/types/ui/FileTree/types.d.ts.map +1 -0
- package/dist/types/ui/FileTree/utils/hashNodeName.d.ts +3 -0
- package/dist/types/ui/FileTree/utils/hashNodeName.d.ts.map +1 -0
- package/dist/types/ui/FileTree/utils/index.d.ts +2 -0
- package/dist/types/ui/FileTree/utils/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/Context.d.ts +4 -0
- package/dist/types/ui/GitDiffViewer/Context.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/Provider.d.ts +5 -0
- package/dist/types/ui/GitDiffViewer/Provider.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.d.ts +16 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/CodeDiffViewer.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts +11 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/DiffLine.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.d.ts +20 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/DiffLine/types.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/index.d.ts +2 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/common/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/index.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/types.d.ts +18 -0
- package/dist/types/ui/GitDiffViewer/common/CodeDiffViewer/types.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/FileHeader.d.ts +15 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/FileHeader.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/index.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/types.d.ts +17 -0
- package/dist/types/ui/GitDiffViewer/common/FileHeader/types.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/common/index.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/common/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/hooks/index.d.ts +2 -0
- package/dist/types/ui/GitDiffViewer/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/hooks/useGitDiffViewer.d.ts +3 -0
- package/dist/types/ui/GitDiffViewer/hooks/useGitDiffViewer.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/index.d.ts +6 -0
- package/dist/types/ui/GitDiffViewer/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/types.d.ts +77 -0
- package/dist/types/ui/GitDiffViewer/types.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/utils/index.d.ts +2 -0
- package/dist/types/ui/GitDiffViewer/utils/index.d.ts.map +1 -0
- package/dist/types/ui/GitDiffViewer/utils/parseGitDiff.d.ts +4 -0
- package/dist/types/ui/GitDiffViewer/utils/parseGitDiff.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/MarkdownEditor.d.ts +10 -0
- package/dist/types/ui/MarkdownEditor/MarkdownEditor.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/Toolbar.d.ts +8 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/Button.d.ts +9 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/Button.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/index.d.ts +3 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/types.d.ts +14 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Button/types.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/Group.d.ts +9 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/Group.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/index.d.ts +3 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/types.d.ts +14 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Group/types.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.d.ts +9 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/Separator.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/index.d.ts +3 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/types.d.ts +10 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/Separator/types.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/index.d.ts +4 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/common/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/index.d.ts +4 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/types.d.ts +20 -0
- package/dist/types/ui/MarkdownEditor/common/Toolbar/types.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.d.ts +9 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/ViewModeTabs.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/index.d.ts +3 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/types.d.ts +14 -0
- package/dist/types/ui/MarkdownEditor/common/ViewModeTabs/types.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/icons.d.ts +9 -0
- package/dist/types/ui/MarkdownEditor/common/icons.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/common/index.d.ts +4 -0
- package/dist/types/ui/MarkdownEditor/common/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/hooks/index.d.ts +2 -0
- package/dist/types/ui/MarkdownEditor/hooks/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/hooks/useEditor.d.ts +40 -0
- package/dist/types/ui/MarkdownEditor/hooks/useEditor.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/index.d.ts +3 -0
- package/dist/types/ui/MarkdownEditor/index.d.ts.map +1 -0
- package/dist/types/ui/MarkdownEditor/types.d.ts +44 -0
- package/dist/types/ui/MarkdownEditor/types.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/RelativeTime.d.ts +11 -0
- package/dist/types/ui/RelativeTime/RelativeTime.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/index.d.ts +3 -0
- package/dist/types/ui/RelativeTime/index.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/types.d.ts +36 -0
- package/dist/types/ui/RelativeTime/types.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/utils/constants.d.ts +6 -0
- package/dist/types/ui/RelativeTime/utils/constants.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/utils/formatHumanTime.d.ts +21 -0
- package/dist/types/ui/RelativeTime/utils/formatHumanTime.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/utils/getOptimalUpdateInterval.d.ts +8 -0
- package/dist/types/ui/RelativeTime/utils/getOptimalUpdateInterval.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/utils/index.d.ts +4 -0
- package/dist/types/ui/RelativeTime/utils/index.d.ts.map +1 -0
- package/dist/types/ui/RelativeTime/utils/parseInstant.d.ts +9 -0
- package/dist/types/ui/RelativeTime/utils/parseInstant.d.ts.map +1 -0
- package/dist/types/ui/index.d.ts +5 -1
- package/dist/types/ui/index.d.ts.map +1 -1
- package/package.json +20 -19
- package/dist/esm/ui/Button/Button.js +0 -10
- package/dist/esm/ui/Button/Button.js.map +0 -1
- package/dist/esm/ui/Button/index.js +0 -2
- package/dist/esm/ui/Button/index.js.map +0 -1
- package/dist/esm/ui/Button/styles.css +0 -63
- package/dist/esm/ui/Chip/Chip.css +0 -79
- package/dist/esm/ui/Chip/Chip.js +0 -15
- package/dist/esm/ui/Chip/Chip.js.map +0 -1
- package/dist/esm/ui/Chip/index.js +0 -4
- package/dist/esm/ui/Chip/index.js.map +0 -1
- package/dist/types/ui/Button/Button.d.ts +0 -6
- package/dist/types/ui/Button/Button.d.ts.map +0 -1
- package/dist/types/ui/Button/index.d.ts +0 -3
- package/dist/types/ui/Button/index.d.ts.map +0 -1
- package/dist/types/ui/Button/types.d.ts +0 -15
- package/dist/types/ui/Button/types.d.ts.map +0 -1
- package/dist/types/ui/Chip/Chip.d.ts +0 -10
- package/dist/types/ui/Chip/Chip.d.ts.map +0 -1
- package/dist/types/ui/Chip/index.d.ts +0 -3
- package/dist/types/ui/Chip/index.d.ts.map +0 -1
- package/dist/types/ui/Chip/types.d.ts +0 -27
- package/dist/types/ui/Chip/types.d.ts.map +0 -1
- /package/dist/esm/ui/{Button → EditableBlock}/types.js +0 -0
- /package/dist/esm/ui/{Chip → FileTree/common/File}/types.js +0 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
export type EditMode = "write" | "preview";
|
3
|
+
export type MarkdownEditorProps = {
|
4
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
5
|
+
/** A unique identifier for the MarkdownEditor */
|
6
|
+
id?: string;
|
7
|
+
/** Additional CSS classes */
|
8
|
+
className?: string;
|
9
|
+
/** Child elements */
|
10
|
+
children?: React.ReactNode;
|
11
|
+
/** Inline styles */
|
12
|
+
style?: React.CSSProperties;
|
13
|
+
/** Placeholder for the textarea */
|
14
|
+
placeholder?: string;
|
15
|
+
/** Default value for the textarea (Markdown content) */
|
16
|
+
defaultValue?: string;
|
17
|
+
/** Hide the toolbar */
|
18
|
+
hideToolbar?: boolean;
|
19
|
+
/** Hide the preview pane */
|
20
|
+
hidePreview?: boolean;
|
21
|
+
/** Hide the border around the editor */
|
22
|
+
borderless?: boolean;
|
23
|
+
/** Controlled edit mode, leave undefined for internal control */
|
24
|
+
editMode?: EditMode;
|
25
|
+
/** Callback for edit mode change, needed if editMode is controlled */
|
26
|
+
onEditModeChange?: (newEditMode: EditMode) => void;
|
27
|
+
/** Textarea styles */
|
28
|
+
textareaStyle?: React.CSSProperties;
|
29
|
+
/** Preview pane styles */
|
30
|
+
previewStyle?: React.CSSProperties;
|
31
|
+
emptyInputMessage?: string;
|
32
|
+
toolbarBarLabelMessage?: string;
|
33
|
+
ToolbarTextFormattingGroupLabelMessage?: string;
|
34
|
+
ToolbarToolsGroupLabelMessage?: string;
|
35
|
+
ToolbarTitleButtonLabelMessage?: string;
|
36
|
+
ToolbarBoldButtonLabelMessage?: string;
|
37
|
+
ToolbarItalicButtonLabelMessage?: string;
|
38
|
+
ToolbarQuoteButtonLabelMessage?: string;
|
39
|
+
ToolbarCodeButtonLabelMessage?: string;
|
40
|
+
ToolbarLinkButtonLabelMessage?: string;
|
41
|
+
ToolbarUnorderedListButtonLabelMessage?: string;
|
42
|
+
ToolbarOrderedListButtonLabelMessage?: string;
|
43
|
+
} & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
44
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/MarkdownEditor/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IACrC,iDAAiD;IACjD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uBAAuB;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,KAAK,IAAI,CAAC;IACnD,sBAAsB;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,0BAA0B;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,sCAAsC,CAAC,EAAE,MAAM,CAAC;IAChD,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,sCAAsC,CAAC,EAAE,MAAM,CAAC;IAChD,oCAAoC,CAAC,EAAE,MAAM,CAAC;CAC/C,GAAG,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type React from "react";
|
2
|
+
import type { RelativeTimeProps } from "./types.js";
|
3
|
+
/**
|
4
|
+
* The RelativeTime component displays timestamps in a human-readable relative format (like "2 hours ago" or "in 3 days").
|
5
|
+
*
|
6
|
+
* It features automatic live updates with interval optimization based on time distance, configurable "now" threshold,
|
7
|
+
* and renders as proper semantic HTML using the <time> element. The component leverages the Temporal API for calculations and Intl.RelativeTimeFormat for localization.
|
8
|
+
*/
|
9
|
+
declare const RelativeTime: ({ id, className, style, time, relativeTimeFormat, nowThreshold, disableLiveUpdate, nowKeyword, invalidDateKeyword, }: RelativeTimeProps) => React.ReactElement;
|
10
|
+
export default RelativeTime;
|
11
|
+
//# sourceMappingURL=RelativeTime.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../../../src/ui/RelativeTime/RelativeTime.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AASpD;;;;;GAKG;AACH,QAAA,MAAM,YAAY,yHAUf,iBAAiB,KAAG,KAAK,CAAC,YA0E5B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/RelativeTime/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5D,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import type { Temporal } from "@js-temporal/polyfill";
|
2
|
+
import type React from "react";
|
3
|
+
export interface RelativeTimeProps {
|
4
|
+
/** A unique identifier for the RelativeTime */
|
5
|
+
id?: string;
|
6
|
+
/** Additional CSS classes */
|
7
|
+
className?: string;
|
8
|
+
/** Inline styles */
|
9
|
+
style?: React.CSSProperties;
|
10
|
+
/**
|
11
|
+
* The time to be displayed as a relative time (ISO string or Date object).
|
12
|
+
*/
|
13
|
+
time: string | Date | Temporal.Instant;
|
14
|
+
/**
|
15
|
+
* Disable live duration updates (default: false).
|
16
|
+
*/
|
17
|
+
disableLiveUpdate?: boolean;
|
18
|
+
/**
|
19
|
+
* custom relative time format (default: local language and narrow style).
|
20
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat
|
21
|
+
*/
|
22
|
+
relativeTimeFormat?: Intl.RelativeTimeFormat;
|
23
|
+
/**
|
24
|
+
* The threshold in seconds for when to display the relative time as "just now" (default is 10).
|
25
|
+
*/
|
26
|
+
nowThreshold?: number;
|
27
|
+
/**
|
28
|
+
* The keyword to use for "now" (default: "now")
|
29
|
+
*/
|
30
|
+
nowKeyword?: string;
|
31
|
+
/**
|
32
|
+
* The keyword to use when the given time is not a valid. (default: "invalid date")
|
33
|
+
*/
|
34
|
+
invalidDateKeyword?: string;
|
35
|
+
}
|
36
|
+
//# sourceMappingURL=types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/RelativeTime/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,iBAAiB;IAChC,+CAA+C;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC;IAEvC;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC;IAE7C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export declare const MINUTE_IN_SECONDS = 60;
|
2
|
+
export declare const HOUR_IN_SECONDS: number;
|
3
|
+
export declare const DAY_IN_SECONDS: number;
|
4
|
+
export declare const MONTH_IN_SECONDS: number;
|
5
|
+
export declare const YEAR_IN_SECONDS: number;
|
6
|
+
//# sourceMappingURL=constants.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/ui/RelativeTime/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,eAAe,QAAyB,CAAC;AACtD,eAAO,MAAM,cAAc,QAAuB,CAAC;AACnD,eAAO,MAAM,gBAAgB,QAAsB,CAAC;AACpD,eAAO,MAAM,eAAe,QAAuB,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { Temporal } from "@js-temporal/polyfill";
|
2
|
+
type FormatterOptions = {
|
3
|
+
/** The threshold in seconds for considering the time as "now". */
|
4
|
+
nowThreshold: number;
|
5
|
+
/** The keyword to use for "now". */
|
6
|
+
nowKeyword: string;
|
7
|
+
/**
|
8
|
+
* The Intl.RelativeTimeFormat instance to use for formatting.
|
9
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat
|
10
|
+
*/
|
11
|
+
relativeTimeFormat: Intl.RelativeTimeFormat;
|
12
|
+
};
|
13
|
+
/**
|
14
|
+
* Formats a given instant as a human-readable time relative to the current time.
|
15
|
+
* @param instant The instant to format.
|
16
|
+
* @param options The options to use for formatting.
|
17
|
+
* @returns A human-readable relative time string
|
18
|
+
*/
|
19
|
+
declare function formatHumanTime(instant: Temporal.Instant, options: FormatterOptions): string;
|
20
|
+
export default formatHumanTime;
|
21
|
+
//# sourceMappingURL=formatHumanTime.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"formatHumanTime.d.ts","sourceRoot":"","sources":["../../../../../src/ui/RelativeTime/utils/formatHumanTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,KAAK,gBAAgB,GAAG;IACtB,kEAAkE;IAClE,YAAY,EAAE,MAAM,CAAC;IAErB,oCAAoC;IACpC,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,CAAC;CAC7C,CAAC;AAEF;;;;;GAKG;AACH,iBAAS,eAAe,CACtB,OAAO,EAAE,QAAQ,CAAC,OAAO,EACzB,OAAO,EAAE,gBAAgB,GACxB,MAAM,CAwCR;AAED,eAAe,eAAe,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Temporal } from "@js-temporal/polyfill";
|
2
|
+
/**
|
3
|
+
* Calcualte the optimal update interval for a given instant based on the time distance from now.
|
4
|
+
* @returns The optimal update interval in milliseconds.
|
5
|
+
*/
|
6
|
+
declare function getOptimalUpdateInterval(instant: Temporal.Instant): number;
|
7
|
+
export default getOptimalUpdateInterval;
|
8
|
+
//# sourceMappingURL=getOptimalUpdateInterval.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getOptimalUpdateInterval.d.ts","sourceRoot":"","sources":["../../../../../src/ui/RelativeTime/utils/getOptimalUpdateInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD;;;GAGG;AACH,iBAAS,wBAAwB,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,GAAG,MAAM,CAkBnE;AAED,eAAe,wBAAwB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/RelativeTime/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Temporal } from "@js-temporal/polyfill";
|
2
|
+
/**
|
3
|
+
* Parser for Temporal.Instant.
|
4
|
+
* @param time - instance, date or string to parse
|
5
|
+
* @throws Error if time is invalid
|
6
|
+
*/
|
7
|
+
declare function parseInstant(time: Temporal.Instant | Date | string): Temporal.Instant;
|
8
|
+
export default parseInstant;
|
9
|
+
//# sourceMappingURL=parseInstant.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parseInstant.d.ts","sourceRoot":"","sources":["../../../../../src/ui/RelativeTime/utils/parseInstant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD;;;;GAIG;AACH,iBAAS,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,GAAG,IAAI,GAAG,MAAM,oBAc3D;AAED,eAAe,YAAY,CAAC"}
|
package/dist/types/ui/index.d.ts
CHANGED
@@ -1,2 +1,6 @@
|
|
1
|
-
export
|
1
|
+
export * from "./EditableBlock/index.js";
|
2
|
+
export * from "./FileTree/index.js";
|
3
|
+
export * from "./GitDiffViewer/index.js";
|
4
|
+
export * from "./MarkdownEditor/index.js";
|
5
|
+
export * from "./RelativeTime/index.js";
|
2
6
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/index.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@canonical/react-ds-app-launchpad",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.9.0-experimental.10",
|
4
4
|
"type": "module",
|
5
5
|
"module": "dist/esm/index.js",
|
6
6
|
"types": "dist/types/index.d.ts",
|
@@ -24,12 +24,12 @@
|
|
24
24
|
"build": "bun run build:package",
|
25
25
|
"build:storybook": "storybook build",
|
26
26
|
"build:package": "bun run build:package:tsc && bun run build:package:copycss",
|
27
|
-
"build:package:copycss": "copyfiles -u 1 src/ui
|
27
|
+
"build:package:copycss": "copyfiles -u 1 'src/ui/{,**/}*.css' dist/esm",
|
28
28
|
"build:package:tsc": "tsc -p tsconfig.build.json",
|
29
29
|
"check": "bun run check:biome && bun run check:ts",
|
30
30
|
"check:fix": "bun run check:biome:fix && bun run check:ts",
|
31
|
-
"check:biome": "biome check
|
32
|
-
"check:biome:fix": "biome check --write
|
31
|
+
"check:biome": "biome check",
|
32
|
+
"check:biome:fix": "biome check --write",
|
33
33
|
"check:ts": "tsc --noEmit",
|
34
34
|
"storybook": "storybook dev -p 6006 --no-open --host 0.0.0.0",
|
35
35
|
"test": "bun run test:vitest",
|
@@ -38,24 +38,25 @@
|
|
38
38
|
"test:vitest:watch": "vitest"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@canonical/storybook-
|
42
|
-
"@canonical/styles": "^0.
|
41
|
+
"@canonical/storybook-config": "^0.9.0-experimental.5",
|
42
|
+
"@canonical/styles": "^0.9.0-experimental.9",
|
43
|
+
"@canonical/utils": "^0.9.0-experimental.9",
|
44
|
+
"@js-temporal/polyfill": "^0.4.4",
|
45
|
+
"highlight.js": "^11.11.1",
|
43
46
|
"react": "^19.0.0",
|
44
|
-
"react-dom": "^19.0.0"
|
47
|
+
"react-dom": "^19.0.0",
|
48
|
+
"react-markdown": "^10.0.0",
|
49
|
+
"react-tooltip": "^5.28.0",
|
50
|
+
"rehype-sanitize": "^6.0.0",
|
51
|
+
"remark-gfm": "^4.0.1"
|
45
52
|
},
|
46
53
|
"devDependencies": {
|
47
54
|
"@biomejs/biome": "^1.9.4",
|
48
|
-
"@canonical/biome-config": "^0.
|
49
|
-
"@canonical/typescript-config-react": "^0.
|
55
|
+
"@canonical/biome-config": "^0.9.0-experimental.2",
|
56
|
+
"@canonical/typescript-config-react": "^0.9.0-experimental.2",
|
50
57
|
"@chromatic-com/storybook": "^3.2.2",
|
51
|
-
"@storybook/addon-essentials": "^8.4.7",
|
52
|
-
"@storybook/addon-interactions": "^8.4.7",
|
53
|
-
"@storybook/addon-links": "^8.4.7",
|
54
|
-
"@storybook/addon-onboarding": "^8.4.7",
|
55
|
-
"@storybook/addon-themes": "^8.4.7",
|
56
58
|
"@storybook/blocks": "^8.4.7",
|
57
59
|
"@storybook/react": "^8.4.7",
|
58
|
-
"@storybook/react-vite": "^8.4.7",
|
59
60
|
"@storybook/test": "^8.4.7",
|
60
61
|
"@testing-library/jest-dom": "^6.6.3",
|
61
62
|
"@testing-library/react": "^16.1.0",
|
@@ -64,13 +65,13 @@
|
|
64
65
|
"@types/react-dom": "^19.0.2",
|
65
66
|
"@vitejs/plugin-react": "^4.3.4",
|
66
67
|
"copyfiles": "^2.4.1",
|
67
|
-
"globals": "^
|
68
|
-
"jsdom": "^
|
68
|
+
"globals": "^16.0.0",
|
69
|
+
"jsdom": "^26.0.0",
|
69
70
|
"storybook": "^8.4.7",
|
70
71
|
"typescript": "^5.7.2",
|
71
72
|
"vite": "^6.0.3",
|
72
73
|
"vite-tsconfig-paths": "^5.1.4",
|
73
|
-
"vitest": "^
|
74
|
+
"vitest": "^3.0.9"
|
74
75
|
},
|
75
|
-
"gitHead": "
|
76
|
+
"gitHead": "9f5cceda31194238d239de8113a3f035b06c9316"
|
76
77
|
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import "./styles.css";
|
3
|
-
/** Buttons are clickable elements used to perform an action. */
|
4
|
-
const Button = ({ id, className, appearance, label, ...props }) => {
|
5
|
-
return (_jsx("button", { id: id, className: ["ds", "button", appearance, className]
|
6
|
-
.filter(Boolean)
|
7
|
-
.join(" "), ...props, "aria-label": label, children: label }));
|
8
|
-
};
|
9
|
-
export default Button;
|
10
|
-
//# sourceMappingURL=Button.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/ui/Button/Button.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AAEtB,gEAAgE;AAChE,MAAM,MAAM,GAAG,CAAC,EACd,EAAE,EACF,SAAS,EACT,UAAU,EACV,KAAK,EACL,GAAG,KAAK,EACF,EAAsB,EAAE;IAC9B,OAAO,CACL,iBACE,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC;aAC/C,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,KACR,KAAK,gBACG,KAAK,YAEhB,KAAK,GACC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
@@ -1,63 +0,0 @@
|
|
1
|
-
/* component styles */
|
2
|
-
|
3
|
-
/* component variables
|
4
|
-
--button-color-background: background color of the button
|
5
|
-
--button-color-background-hover: background color of the button on hover
|
6
|
-
--button-color-background-active: background color of the button on active
|
7
|
-
--button-color-text: text color of the button
|
8
|
-
--button-color-border: border color of the button
|
9
|
-
--button-color-border-hover: border color of the button on hover
|
10
|
-
--button-color-border-active: border color of the button on active
|
11
|
-
|
12
|
-
--button-margin-left: left margin of the button
|
13
|
-
--button-margin-bottom: bottom margin of the button
|
14
|
-
--button-padding-vertical: vertical padding of the button
|
15
|
-
--button-padding-horizontal: horizontal padding of the button
|
16
|
-
--button-border-width: border width of the button
|
17
|
-
--button-font-size: font size of the button
|
18
|
-
--button-font-weight: font weight of the button
|
19
|
-
--button-line-height: line height of the button
|
20
|
-
*/
|
21
|
-
.ds.button {
|
22
|
-
display: inline-block;
|
23
|
-
cursor: pointer;
|
24
|
-
|
25
|
-
color: var(--intent-color-text, var(--button-color-text));
|
26
|
-
background-color: var(--intent-color, var(--button-color-background));
|
27
|
-
border-color: var(--intent-color-border, var(--button-color-border));
|
28
|
-
border-style: solid;
|
29
|
-
border-width: var(--button-border-width);
|
30
|
-
font-size: var(--button-font-size);
|
31
|
-
font-weight: var(--button-font-weight);
|
32
|
-
line-height: var(--button-line-height);
|
33
|
-
margin-block-end: var(--button-margin-bottom);
|
34
|
-
margin-inline-end: var(--button-margin-left);
|
35
|
-
padding-block: var(--button-padding-vertical);
|
36
|
-
padding-inline: var(--button-padding-horizontal);
|
37
|
-
|
38
|
-
text-align: left;
|
39
|
-
text-decoration: none;
|
40
|
-
|
41
|
-
/* component states */
|
42
|
-
&:hover {
|
43
|
-
background-color: var(
|
44
|
-
--intent-color-hover,
|
45
|
-
var(--button-color-background-hover)
|
46
|
-
);
|
47
|
-
border-color: var(
|
48
|
-
--intent-color-border-hover,
|
49
|
-
var(--button-color-border-hover)
|
50
|
-
);
|
51
|
-
}
|
52
|
-
|
53
|
-
&:active {
|
54
|
-
background-color: var(
|
55
|
-
--intent-color-active,
|
56
|
-
var(--button-color-background-active)
|
57
|
-
);
|
58
|
-
border-color: var(
|
59
|
-
--intent-color-border-active,
|
60
|
-
var(--button-color-border-active)
|
61
|
-
);
|
62
|
-
}
|
63
|
-
}
|
@@ -1,79 +0,0 @@
|
|
1
|
-
/* @canonical/generator-canonical-ds 0.4.0-experimental.0 */
|
2
|
-
|
3
|
-
.ds.chip {
|
4
|
-
border-color: var(--intent-color-border, var(--chip-color-border));
|
5
|
-
border-style: solid;
|
6
|
-
border-radius: var(--chip-border-radius);
|
7
|
-
border-width: var(--chip-border-width);
|
8
|
-
|
9
|
-
color: var(--intent-color-text-tinted, var(--chip-color-text));
|
10
|
-
background-color: var(--intent-color-tinted, var(--chip-color-background));
|
11
|
-
|
12
|
-
display: inline-flex;
|
13
|
-
align-items: baseline;
|
14
|
-
|
15
|
-
user-select: none;
|
16
|
-
white-space: nowrap;
|
17
|
-
|
18
|
-
font-size: var(--chip-font-size);
|
19
|
-
font-weight: var(--chip-font-weight);
|
20
|
-
line-height: var(--chip-line-height);
|
21
|
-
|
22
|
-
margin-block-end: var(--chip-margin-bottom);
|
23
|
-
margin-inline-end: var(--chip-margin-left);
|
24
|
-
padding-block: var(--chip-padding-vertical);
|
25
|
-
padding-inline: var(--chip-padding-horizontal);
|
26
|
-
|
27
|
-
& > .lead {
|
28
|
-
font-variant-caps: all-small-caps;
|
29
|
-
font-variant-numeric: oldstyle-nums;
|
30
|
-
}
|
31
|
-
|
32
|
-
& > .lead + .value::before {
|
33
|
-
content: ": ";
|
34
|
-
}
|
35
|
-
|
36
|
-
& > .lead,
|
37
|
-
& > .value {
|
38
|
-
display: inline;
|
39
|
-
overflow: hidden;
|
40
|
-
text-overflow: ellipsis;
|
41
|
-
}
|
42
|
-
|
43
|
-
& > .dismiss {
|
44
|
-
background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M13.041 1.898l1.06 1.06L9.062 8l5.04 5.042-1.06 1.06L8 9.062 2.96 14.1l-1.06-1.06L6.938 8 1.9 2.96l1.06-1.06 5.04 5.04z'/%3E%3C/svg%3E");
|
45
|
-
background-color: var(--chip-color-background);
|
46
|
-
align-self: center;
|
47
|
-
background-size: 0.75rem;
|
48
|
-
background-repeat: no-repeat;
|
49
|
-
background-position: center;
|
50
|
-
display: inline-block;
|
51
|
-
cursor: pointer;
|
52
|
-
margin-left: var(--spacing-horizontal-xsmall);
|
53
|
-
flex: 0 0 auto;
|
54
|
-
border-radius: 50%;
|
55
|
-
border-color: transparent;
|
56
|
-
height: var(--font-size-default);
|
57
|
-
width: var(--font-size-default);
|
58
|
-
}
|
59
|
-
|
60
|
-
&:is(button) {
|
61
|
-
cursor: pointer;
|
62
|
-
}
|
63
|
-
|
64
|
-
&:hover:not(:has(.dismiss)),
|
65
|
-
& > .dismiss:hover {
|
66
|
-
background-color: var(
|
67
|
-
--intent-color-tinted-hover,
|
68
|
-
var(--chip-color-background-hover)
|
69
|
-
);
|
70
|
-
}
|
71
|
-
|
72
|
-
&:active:not(:has(.dismiss)),
|
73
|
-
& > .dismiss:active {
|
74
|
-
background-color: var(
|
75
|
-
--intent-color-tinted-active,
|
76
|
-
var(--chip-color-background-active)
|
77
|
-
);
|
78
|
-
}
|
79
|
-
}
|
package/dist/esm/ui/Chip/Chip.js
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import "./Chip.css";
|
3
|
-
const componentCssClassName = "ds chip";
|
4
|
-
/**
|
5
|
-
* description of the Chip component
|
6
|
-
* @returns {React.ReactElement} - Rendered Chip
|
7
|
-
*/
|
8
|
-
const Chip = ({ appearance = "neutral", lead, value, onClick, onDismiss, id, className, style, ...props }) => {
|
9
|
-
const Container = onClick ? "button" : "span";
|
10
|
-
return (_jsxs(Container, { id: id, style: style, className: [componentCssClassName, appearance, className]
|
11
|
-
.filter(Boolean)
|
12
|
-
.join(" "), onClick: onClick, ...props, children: [lead && _jsx("span", { className: "lead", children: lead }), value && _jsx("span", { className: "value", children: value }), onDismiss && (_jsx("button", { type: "button", className: "dismiss", "aria-label": "Dismiss", onClick: () => onDismiss() }))] }));
|
13
|
-
};
|
14
|
-
export default Chip;
|
15
|
-
//# sourceMappingURL=Chip.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../../src/ui/Chip/Chip.tsx"],"names":[],"mappings":";AAEA,OAAO,YAAY,CAAC;AAGpB,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAExC;;;GAGG;AACH,MAAM,IAAI,GAAG,CAAC,EACZ,UAAU,GAAG,SAAS,EACtB,IAAI,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,EAAE,EACF,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACM,EAAsB,EAAE;IACtC,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,CACL,MAAC,SAAS,IACR,EAAE,EAAE,EAAE,EACN,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,CAAC,qBAAqB,EAAE,UAAU,EAAE,SAAS,CAAC;aACtD,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,EACZ,OAAO,EAAE,OAAO,KACZ,KAAK,aAER,IAAI,IAAI,eAAM,SAAS,EAAC,MAAM,YAAE,IAAI,GAAQ,EAC5C,KAAK,IAAI,eAAM,SAAS,EAAC,OAAO,YAAE,KAAK,GAAQ,EAC/C,SAAS,IAAI,CACZ,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,SAAS,gBACR,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,GAC1B,CACH,IACS,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/Chip/index.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,cAAc,YAAY,CAAC"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type Props from "./types.js";
|
2
|
-
import "./styles.css";
|
3
|
-
/** Buttons are clickable elements used to perform an action. */
|
4
|
-
declare const Button: ({ id, className, appearance, label, ...props }: Props) => React.ReactElement;
|
5
|
-
export default Button;
|
6
|
-
//# sourceMappingURL=Button.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/ui/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,gEAAgE;AAChE,QAAA,MAAM,MAAM,mDAMT,KAAK,KAAG,KAAK,CAAC,YAahB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACV,OAAO,IAAI,WAAW,EACtB,SAAS,IAAI,eAAe,GAC7B,MAAM,YAAY,CAAC"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import type React from "react";
|
2
|
-
export interface BaseProps {
|
3
|
-
id?: string;
|
4
|
-
/** Additional CSS classes */
|
5
|
-
className?: string;
|
6
|
-
/** The visual style of the button */
|
7
|
-
appearance?: "neutral" | "base" | "positive" | "negative" | "link";
|
8
|
-
/** Button contents */
|
9
|
-
label: string;
|
10
|
-
/** Optional click handler */
|
11
|
-
onClick?: () => void;
|
12
|
-
}
|
13
|
-
type Props = BaseProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
14
|
-
export default Props;
|
15
|
-
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,MAAM,WAAW,SAAS;IAExB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;IACnE,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,KAAK,KAAK,GAAG,SAAS,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEvE,eAAe,KAAK,CAAC"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type React from "react";
|
2
|
-
import "./Chip.css";
|
3
|
-
import type { ChipPropsType } from "./types.js";
|
4
|
-
/**
|
5
|
-
* description of the Chip component
|
6
|
-
* @returns {React.ReactElement} - Rendered Chip
|
7
|
-
*/
|
8
|
-
declare const Chip: ({ appearance, lead, value, onClick, onDismiss, id, className, style, ...props }: ChipPropsType) => React.ReactElement;
|
9
|
-
export default Chip;
|
10
|
-
//# sourceMappingURL=Chip.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../src/ui/Chip/Chip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAIhD;;;GAGG;AACH,QAAA,MAAM,IAAI,oFAUP,aAAa,KAAG,KAAK,CAAC,YAwBxB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/Chip/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,cAAc,YAAY,CAAC"}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import type React from "react";
|
2
|
-
/**
|
3
|
-
* Props for the `Chip` component.
|
4
|
-
*/
|
5
|
-
export interface ChipProps {
|
6
|
-
/**
|
7
|
-
* The chip’s appearance.
|
8
|
-
* @default "neutral"
|
9
|
-
*/
|
10
|
-
appearance?: "neutral" | "positive" | "negative" | "caution" | "information";
|
11
|
-
/** Text shown before the value. */
|
12
|
-
lead?: string;
|
13
|
-
/** The chip’s value text. */
|
14
|
-
value?: string;
|
15
|
-
/** Called when the chip is clicked. */
|
16
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
17
|
-
/** Called when the chip is dismissed. */
|
18
|
-
onDismiss?: () => void;
|
19
|
-
/** Unique identifier for the chip. */
|
20
|
-
id?: string;
|
21
|
-
/** Additional CSS class names. */
|
22
|
-
className?: string;
|
23
|
-
/** Inline styles for the chip. */
|
24
|
-
style?: React.CSSProperties;
|
25
|
-
}
|
26
|
-
export type ChipPropsType = ChipProps & Omit<React.HTMLAttributes<HTMLButtonElement>, "children">;
|
27
|
-
//# sourceMappingURL=types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ui/Chip/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;IAE7E,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,uCAAuC;IACvC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE/D,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,sCAAsC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,kCAAkC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,GACnC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,CAAC"}
|
File without changes
|
File without changes
|