@yourdash/uikit 0.1.13 → 0.1.15
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/index.css +1 -1
- package/dist/index.d.ts +292 -846
- package/dist/index.mjs +508 -474
- package/package.json +63 -63
- package/lib/components/box/UKBox.tsx +0 -27
- package/lib/components/box/box.module.css +0 -24
- package/lib/components/box/box.module.css.map +0 -1
- package/lib/components/box/box.module.scss +0 -21
- package/lib/components/button/UKButton.tsx +0 -24
- package/lib/components/button/button.module.css +0 -47
- package/lib/components/button/button.module.css.map +0 -1
- package/lib/components/button/button.module.scss +0 -47
- package/lib/components/buttonCombo/UKButtonCombo.tsx +0 -14
- package/lib/components/buttonCombo/buttonCombo.module.css +0 -22
- package/lib/components/buttonCombo/buttonCombo.module.css.map +0 -1
- package/lib/components/buttonCombo/buttonCombo.module.scss +0 -23
- package/lib/components/buttonLink/UKButtonLink.tsx +0 -27
- package/lib/components/buttonLink/buttonLink.module.css +0 -49
- package/lib/components/buttonLink/buttonLink.module.css.map +0 -1
- package/lib/components/buttonLink/buttonLink.module.scss +0 -49
- package/lib/components/buttonWithIcon/UKButtonWithIcon.tsx +0 -36
- package/lib/components/buttonWithIcon/buttonWithIcon.module.css +0 -54
- package/lib/components/buttonWithIcon/buttonWithIcon.module.css.map +0 -1
- package/lib/components/buttonWithIcon/buttonWithIcon.module.scss +0 -54
- package/lib/components/card/UKCard.tsx +0 -64
- package/lib/components/card/card.module.css +0 -76
- package/lib/components/card/card.module.css.map +0 -1
- package/lib/components/card/card.module.scss +0 -78
- package/lib/components/container/UKContainer.tsx +0 -24
- package/lib/components/container/container.module.css +0 -23
- package/lib/components/container/container.module.css.map +0 -1
- package/lib/components/container/container.module.scss +0 -24
- package/lib/components/contextMenu/UKContextMenu.tsx +0 -55
- package/lib/components/contextMenu/contextMenuRoot.module.css +0 -34
- package/lib/components/contextMenu/contextMenuRoot.module.css.map +0 -1
- package/lib/components/contextMenu/contextMenuRoot.module.scss +0 -31
- package/lib/components/contextMenu/contextMenuRoot.tsx +0 -83
- package/lib/components/contextMenu/contextMenuRootContext.tsx +0 -16
- package/lib/components/flex/UKFlex.tsx +0 -38
- package/lib/components/flex/flex.module.css +0 -35
- package/lib/components/flex/flex.module.css.map +0 -1
- package/lib/components/flex/flex.module.scss +0 -31
- package/lib/components/heading/UKHeading.tsx +0 -72
- package/lib/components/heading/heading.module.css +0 -47
- package/lib/components/heading/heading.module.css.map +0 -1
- package/lib/components/heading/heading.module.scss +0 -43
- package/lib/components/icon/UKIcon.tsx +0 -42
- package/lib/components/icon/icon.module.scss +0 -26
- package/lib/components/iconButton/UKIconButton.tsx +0 -36
- package/lib/components/iconButton/iconButton.module.css +0 -42
- package/lib/components/iconButton/iconButton.module.css.map +0 -1
- package/lib/components/iconButton/iconButton.module.scss +0 -40
- package/lib/components/image/UKImage.tsx +0 -111
- package/lib/components/image/image.module.css +0 -76
- package/lib/components/image/image.module.css.map +0 -1
- package/lib/components/image/image.module.scss +0 -81
- package/lib/components/link/UKLink.tsx +0 -29
- package/lib/components/link/link.module.css +0 -33
- package/lib/components/link/link.module.css.map +0 -1
- package/lib/components/link/link.module.scss +0 -36
- package/lib/components/progressBar/UKProgressBar.tsx +0 -29
- package/lib/components/progressBar/progressBar.module.css +0 -29
- package/lib/components/progressBar/progressBar.module.css.map +0 -1
- package/lib/components/progressBar/progressBar.module.scss +0 -25
- package/lib/components/redirect/UKRedirect.tsx +0 -23
- package/lib/components/separator/UKSeparator.tsx +0 -14
- package/lib/components/separator/separator.module.css +0 -40
- package/lib/components/separator/separator.module.css.map +0 -1
- package/lib/components/separator/separator.module.scss +0 -38
- package/lib/components/spinner/UKSpinner.tsx +0 -31
- package/lib/components/spinner/spinner.module.css +0 -93
- package/lib/components/spinner/spinner.module.css.map +0 -1
- package/lib/components/spinner/spinner.module.scss +0 -88
- package/lib/components/subtext/UKSubtext.tsx +0 -14
- package/lib/components/subtext/subtext.module.css +0 -21
- package/lib/components/subtext/subtext.module.css.map +0 -1
- package/lib/components/subtext/subtext.module.scss +0 -17
- package/lib/components/tag/UKTag.tsx +0 -21
- package/lib/components/tag/tag.module.css +0 -17
- package/lib/components/tag/tag.module.css.map +0 -1
- package/lib/components/tag/tag.module.scss +0 -13
- package/lib/components/text/UKText.tsx +0 -14
- package/lib/components/text/text.module.css +0 -17
- package/lib/components/text/text.module.css.map +0 -1
- package/lib/components/text/text.module.scss +0 -13
- package/lib/components/textButton/UKTextButton.tsx +0 -22
- package/lib/components/textButton/textButton.module.css +0 -32
- package/lib/components/textButton/textButton.module.css.map +0 -1
- package/lib/components/textButton/textButton.module.scss +0 -30
- package/lib/components/textInput/UKTextInput.tsx +0 -78
- package/lib/components/textInput/textInput.module.css +0 -51
- package/lib/components/textInput/textInput.module.css.map +0 -1
- package/lib/components/textInput/textInput.module.scss +0 -52
- package/lib/core/clippy.ts +0 -14
- package/lib/core/decrementLevel.tsx +0 -15
- package/lib/core/iconDictionary.ts +0 -293
- package/lib/core/icons/accessibility-16.svg +0 -6
- package/lib/core/icons/accessibility-inset-16.svg +0 -6
- package/lib/core/icons/alert-16.svg +0 -6
- package/lib/core/icons/alert-24.svg +0 -7
- package/lib/core/icons/alert-fill-12.svg +0 -6
- package/lib/core/icons/app-launcher-16.svg +0 -8
- package/lib/core/icons/apps-16.svg +0 -6
- package/lib/core/icons/archive-16.svg +0 -6
- package/lib/core/icons/archive-24.svg +0 -9
- package/lib/core/icons/arrow-both-16.svg +0 -6
- package/lib/core/icons/arrow-both-24.svg +0 -3
- package/lib/core/icons/arrow-down-16.svg +0 -6
- package/lib/core/icons/arrow-down-24.svg +0 -6
- package/lib/core/icons/arrow-down-left-24.svg +0 -6
- package/lib/core/icons/arrow-down-right-24.svg +0 -6
- package/lib/core/icons/arrow-left-16.svg +0 -6
- package/lib/core/icons/arrow-left-24.svg +0 -6
- package/lib/core/icons/arrow-right-16.svg +0 -6
- package/lib/core/icons/arrow-right-24.svg +0 -6
- package/lib/core/icons/arrow-switch-16.svg +0 -3
- package/lib/core/icons/arrow-switch-24.svg +0 -3
- package/lib/core/icons/arrow-up-16.svg +0 -6
- package/lib/core/icons/arrow-up-24.svg +0 -6
- package/lib/core/icons/arrow-up-left-24.svg +0 -6
- package/lib/core/icons/arrow-up-right-24.svg +0 -6
- package/lib/core/icons/beaker-16.svg +0 -6
- package/lib/core/icons/beaker-24.svg +0 -6
- package/lib/core/icons/bell-16.svg +0 -7
- package/lib/core/icons/bell-24.svg +0 -6
- package/lib/core/icons/bell-fill-16.svg +0 -3
- package/lib/core/icons/bell-fill-24.svg +0 -6
- package/lib/core/icons/bell-slash-16.svg +0 -6
- package/lib/core/icons/bell-slash-24.svg +0 -8
- package/lib/core/icons/blocked-16.svg +0 -6
- package/lib/core/icons/blocked-24.svg +0 -6
- package/lib/core/icons/bold-16.svg +0 -6
- package/lib/core/icons/bold-24.svg +0 -6
- package/lib/core/icons/book-16.svg +0 -6
- package/lib/core/icons/book-24.svg +0 -6
- package/lib/core/icons/bookmark-16.svg +0 -6
- package/lib/core/icons/bookmark-24.svg +0 -6
- package/lib/core/icons/bookmark-fill-24.svg +0 -6
- package/lib/core/icons/bookmark-slash-16.svg +0 -6
- package/lib/core/icons/bookmark-slash-24.svg +0 -7
- package/lib/core/icons/bookmark-slash-fill-24.svg +0 -6
- package/lib/core/icons/briefcase-16.svg +0 -6
- package/lib/core/icons/briefcase-24.svg +0 -6
- package/lib/core/icons/broadcast-16.svg +0 -6
- package/lib/core/icons/broadcast-24.svg +0 -3
- package/lib/core/icons/browser-16.svg +0 -6
- package/lib/core/icons/browser-24.svg +0 -6
- package/lib/core/icons/bug-16.svg +0 -6
- package/lib/core/icons/bug-24.svg +0 -6
- package/lib/core/icons/cache-16.svg +0 -8
- package/lib/core/icons/calendar-16.svg +0 -6
- package/lib/core/icons/calendar-24.svg +0 -6
- package/lib/core/icons/check-16.svg +0 -6
- package/lib/core/icons/check-24.svg +0 -6
- package/lib/core/icons/check-circle-16.svg +0 -6
- package/lib/core/icons/check-circle-24.svg +0 -7
- package/lib/core/icons/check-circle-fill-12.svg +0 -6
- package/lib/core/icons/check-circle-fill-16.svg +0 -6
- package/lib/core/icons/check-circle-fill-24.svg +0 -6
- package/lib/core/icons/checkbox-16.svg +0 -6
- package/lib/core/icons/checkbox-24.svg +0 -7
- package/lib/core/icons/checklist-16.svg +0 -6
- package/lib/core/icons/checklist-24.svg +0 -3
- package/lib/core/icons/chevron-down-16.svg +0 -6
- package/lib/core/icons/chevron-down-24.svg +0 -6
- package/lib/core/icons/chevron-left-16.svg +0 -6
- package/lib/core/icons/chevron-left-24.svg +0 -6
- package/lib/core/icons/chevron-right-16.svg +0 -6
- package/lib/core/icons/chevron-right-24.svg +0 -6
- package/lib/core/icons/chevron-up-16.svg +0 -6
- package/lib/core/icons/chevron-up-24.svg +0 -6
- package/lib/core/icons/circle-16.svg +0 -5
- package/lib/core/icons/circle-24.svg +0 -6
- package/lib/core/icons/circle-slash-16.svg +0 -6
- package/lib/core/icons/circle-slash-24.svg +0 -6
- package/lib/core/icons/clock-16.svg +0 -6
- package/lib/core/icons/clock-24.svg +0 -7
- package/lib/core/icons/cloud-16.svg +0 -6
- package/lib/core/icons/cloud-24.svg +0 -6
- package/lib/core/icons/cloud-offline-16.svg +0 -8
- package/lib/core/icons/cloud-offline-24.svg +0 -8
- package/lib/core/icons/code-16.svg +0 -6
- package/lib/core/icons/code-24.svg +0 -6
- package/lib/core/icons/code-of-conduct-16.svg +0 -6
- package/lib/core/icons/code-of-conduct-24.svg +0 -6
- package/lib/core/icons/code-review-16.svg +0 -6
- package/lib/core/icons/code-review-24.svg +0 -8
- package/lib/core/icons/code-square-16.svg +0 -6
- package/lib/core/icons/code-square-24.svg +0 -8
- package/lib/core/icons/codescan-16.svg +0 -8
- package/lib/core/icons/codescan-24.svg +0 -8
- package/lib/core/icons/codescan-checkmark-16.svg +0 -7
- package/lib/core/icons/codescan-checkmark-24.svg +0 -7
- package/lib/core/icons/codespaces-16.svg +0 -8
- package/lib/core/icons/codespaces-24.svg +0 -8
- package/lib/core/icons/columns-16.svg +0 -6
- package/lib/core/icons/columns-24.svg +0 -6
- package/lib/core/icons/command-palette-16.svg +0 -3
- package/lib/core/icons/command-palette-24.svg +0 -3
- package/lib/core/icons/comment-16.svg +0 -6
- package/lib/core/icons/comment-24.svg +0 -6
- package/lib/core/icons/comment-discussion-16.svg +0 -6
- package/lib/core/icons/comment-discussion-24.svg +0 -8
- package/lib/core/icons/commit-24.svg +0 -7
- package/lib/core/icons/container-16.svg +0 -6
- package/lib/core/icons/container-24.svg +0 -6
- package/lib/core/icons/copilot-16.svg +0 -7
- package/lib/core/icons/copilot-24.svg +0 -7
- package/lib/core/icons/copilot-48.svg +0 -7
- package/lib/core/icons/copilot-96.svg +0 -7
- package/lib/core/icons/copilot-error-16.svg +0 -6
- package/lib/core/icons/copilot-warning-16.svg +0 -8
- package/lib/core/icons/copy-16.svg +0 -8
- package/lib/core/icons/copy-24.svg +0 -8
- package/lib/core/icons/cpu-16.svg +0 -6
- package/lib/core/icons/cpu-24.svg +0 -8
- package/lib/core/icons/credit-card-16.svg +0 -7
- package/lib/core/icons/credit-card-24.svg +0 -7
- package/lib/core/icons/cross-reference-16.svg +0 -6
- package/lib/core/icons/cross-reference-24.svg +0 -3
- package/lib/core/icons/dash-16.svg +0 -5
- package/lib/core/icons/dash-24.svg +0 -5
- package/lib/core/icons/database-16.svg +0 -6
- package/lib/core/icons/database-24.svg +0 -6
- package/lib/core/icons/dependabot-16.svg +0 -7
- package/lib/core/icons/dependabot-24.svg +0 -7
- package/lib/core/icons/desktop-download-16.svg +0 -3
- package/lib/core/icons/desktop-download-24.svg +0 -8
- package/lib/core/icons/device-camera-16.svg +0 -6
- package/lib/core/icons/device-camera-video-16.svg +0 -6
- package/lib/core/icons/device-camera-video-24.svg +0 -6
- package/lib/core/icons/device-desktop-16.svg +0 -6
- package/lib/core/icons/device-desktop-24.svg +0 -6
- package/lib/core/icons/device-mobile-16.svg +0 -6
- package/lib/core/icons/device-mobile-24.svg +0 -7
- package/lib/core/icons/diamond-16.svg +0 -6
- package/lib/core/icons/diamond-24.svg +0 -6
- package/lib/core/icons/diff-16.svg +0 -6
- package/lib/core/icons/diff-24.svg +0 -6
- package/lib/core/icons/diff-added-16.svg +0 -6
- package/lib/core/icons/diff-ignored-16.svg +0 -6
- package/lib/core/icons/diff-modified-16.svg +0 -6
- package/lib/core/icons/diff-removed-16.svg +0 -6
- package/lib/core/icons/diff-renamed-16.svg +0 -6
- package/lib/core/icons/dot-16.svg +0 -5
- package/lib/core/icons/dot-24.svg +0 -5
- package/lib/core/icons/dot-fill-16.svg +0 -5
- package/lib/core/icons/dot-fill-24.svg +0 -3
- package/lib/core/icons/download-16.svg +0 -6
- package/lib/core/icons/download-24.svg +0 -3
- package/lib/core/icons/duplicate-16.svg +0 -9
- package/lib/core/icons/duplicate-24.svg +0 -9
- package/lib/core/icons/ellipsis-16.svg +0 -6
- package/lib/core/icons/ewsgit.svg +0 -14
- package/lib/core/icons/eye-16.svg +0 -6
- package/lib/core/icons/eye-24.svg +0 -7
- package/lib/core/icons/eye-closed-16.svg +0 -6
- package/lib/core/icons/eye-closed-24.svg +0 -8
- package/lib/core/icons/feed-discussion-16.svg +0 -6
- package/lib/core/icons/feed-forked-16.svg +0 -6
- package/lib/core/icons/feed-heart-16.svg +0 -6
- package/lib/core/icons/feed-merged-16.svg +0 -6
- package/lib/core/icons/feed-person-16.svg +0 -6
- package/lib/core/icons/feed-repo-16.svg +0 -6
- package/lib/core/icons/feed-rocket-16.svg +0 -6
- package/lib/core/icons/feed-star-16.svg +0 -6
- package/lib/core/icons/feed-tag-16.svg +0 -7
- package/lib/core/icons/feed-trophy-16.svg +0 -7
- package/lib/core/icons/file-16.svg +0 -6
- package/lib/core/icons/file-24.svg +0 -6
- package/lib/core/icons/file-added-16.svg +0 -6
- package/lib/core/icons/file-badge-16.svg +0 -8
- package/lib/core/icons/file-binary-16.svg +0 -6
- package/lib/core/icons/file-binary-24.svg +0 -9
- package/lib/core/icons/file-code-16.svg +0 -6
- package/lib/core/icons/file-code-24.svg +0 -8
- package/lib/core/icons/file-diff-16.svg +0 -6
- package/lib/core/icons/file-diff-24.svg +0 -8
- package/lib/core/icons/file-directory-16.svg +0 -6
- package/lib/core/icons/file-directory-24.svg +0 -6
- package/lib/core/icons/file-directory-fill-16.svg +0 -3
- package/lib/core/icons/file-directory-fill-24.svg +0 -6
- package/lib/core/icons/file-directory-open-fill-16.svg +0 -3
- package/lib/core/icons/file-media-24.svg +0 -6
- package/lib/core/icons/file-moved-16.svg +0 -3
- package/lib/core/icons/file-removed-16.svg +0 -6
- package/lib/core/icons/file-submodule-16.svg +0 -6
- package/lib/core/icons/file-submodule-24.svg +0 -6
- package/lib/core/icons/file-symlink-file-16.svg +0 -6
- package/lib/core/icons/file-symlink-file-24.svg +0 -6
- package/lib/core/icons/file-zip-16.svg +0 -6
- package/lib/core/icons/file-zip-24.svg +0 -10
- package/lib/core/icons/filter-16.svg +0 -6
- package/lib/core/icons/filter-24.svg +0 -3
- package/lib/core/icons/flame-16.svg +0 -6
- package/lib/core/icons/flame-24.svg +0 -6
- package/lib/core/icons/fold-16.svg +0 -3
- package/lib/core/icons/fold-24.svg +0 -10
- package/lib/core/icons/fold-down-16.svg +0 -3
- package/lib/core/icons/fold-down-24.svg +0 -8
- package/lib/core/icons/fold-up-16.svg +0 -3
- package/lib/core/icons/fold-up-24.svg +0 -8
- package/lib/core/icons/gear-16.svg +0 -6
- package/lib/core/icons/gear-24.svg +0 -7
- package/lib/core/icons/gift-16.svg +0 -6
- package/lib/core/icons/gift-24.svg +0 -6
- package/lib/core/icons/git-branch-16.svg +0 -6
- package/lib/core/icons/git-branch-24.svg +0 -9
- package/lib/core/icons/git-commit-16.svg +0 -6
- package/lib/core/icons/git-commit-24.svg +0 -6
- package/lib/core/icons/git-compare-16.svg +0 -6
- package/lib/core/icons/git-compare-24.svg +0 -9
- package/lib/core/icons/git-merge-16.svg +0 -6
- package/lib/core/icons/git-merge-24.svg +0 -8
- package/lib/core/icons/git-merge-queue-16.svg +0 -8
- package/lib/core/icons/git-pull-request-16.svg +0 -6
- package/lib/core/icons/git-pull-request-24.svg +0 -8
- package/lib/core/icons/git-pull-request-closed-16.svg +0 -6
- package/lib/core/icons/git-pull-request-closed-24.svg +0 -8
- package/lib/core/icons/git-pull-request-draft-16.svg +0 -7
- package/lib/core/icons/git-pull-request-draft-24.svg +0 -7
- package/lib/core/icons/globe-16.svg +0 -6
- package/lib/core/icons/globe-24.svg +0 -6
- package/lib/core/icons/grabber-16.svg +0 -6
- package/lib/core/icons/grabber-24.svg +0 -6
- package/lib/core/icons/graph-16.svg +0 -6
- package/lib/core/icons/graph-24.svg +0 -3
- package/lib/core/icons/hash-16.svg +0 -6
- package/lib/core/icons/hash-24.svg +0 -6
- package/lib/core/icons/heading-16.svg +0 -6
- package/lib/core/icons/heading-24.svg +0 -6
- package/lib/core/icons/heart-16.svg +0 -6
- package/lib/core/icons/heart-24.svg +0 -6
- package/lib/core/icons/heart-fill-16.svg +0 -6
- package/lib/core/icons/heart-fill-24.svg +0 -3
- package/lib/core/icons/history-16.svg +0 -6
- package/lib/core/icons/history-24.svg +0 -3
- package/lib/core/icons/home-16.svg +0 -3
- package/lib/core/icons/home-24.svg +0 -6
- package/lib/core/icons/home-fill-24.svg +0 -3
- package/lib/core/icons/horizontal-rule-16.svg +0 -5
- package/lib/core/icons/horizontal-rule-24.svg +0 -5
- package/lib/core/icons/hourglass-16.svg +0 -6
- package/lib/core/icons/hourglass-24.svg +0 -6
- package/lib/core/icons/hubot-16.svg +0 -6
- package/lib/core/icons/hubot-24.svg +0 -8
- package/lib/core/icons/id-badge-16.svg +0 -8
- package/lib/core/icons/image-16.svg +0 -6
- package/lib/core/icons/image-24.svg +0 -6
- package/lib/core/icons/inbox-16.svg +0 -6
- package/lib/core/icons/inbox-24.svg +0 -6
- package/lib/core/icons/infinity-16.svg +0 -6
- package/lib/core/icons/infinity-24.svg +0 -6
- package/lib/core/icons/info-16.svg +0 -6
- package/lib/core/icons/info-24.svg +0 -8
- package/lib/core/icons/issue-closed-16.svg +0 -6
- package/lib/core/icons/issue-closed-24.svg +0 -7
- package/lib/core/icons/issue-draft-16.svg +0 -6
- package/lib/core/icons/issue-draft-24.svg +0 -6
- package/lib/core/icons/issue-opened-16.svg +0 -6
- package/lib/core/icons/issue-opened-24.svg +0 -6
- package/lib/core/icons/issue-reopened-16.svg +0 -3
- package/lib/core/icons/issue-reopened-24.svg +0 -3
- package/lib/core/icons/italic-16.svg +0 -6
- package/lib/core/icons/italic-24.svg +0 -6
- package/lib/core/icons/iterations-16.svg +0 -3
- package/lib/core/icons/iterations-24.svg +0 -3
- package/lib/core/icons/kebab-horizontal-16.svg +0 -3
- package/lib/core/icons/kebab-horizontal-24.svg +0 -5
- package/lib/core/icons/key-16.svg +0 -6
- package/lib/core/icons/key-24.svg +0 -7
- package/lib/core/icons/key-asterisk-16.svg +0 -8
- package/lib/core/icons/law-16.svg +0 -6
- package/lib/core/icons/law-24.svg +0 -6
- package/lib/core/icons/light-bulb-16.svg +0 -6
- package/lib/core/icons/light-bulb-24.svg +0 -6
- package/lib/core/icons/link-16.svg +0 -6
- package/lib/core/icons/link-24.svg +0 -3
- package/lib/core/icons/link-external-16.svg +0 -6
- package/lib/core/icons/link-external-24.svg +0 -3
- package/lib/core/icons/list-ordered-16.svg +0 -6
- package/lib/core/icons/list-ordered-24.svg +0 -3
- package/lib/core/icons/list-unordered-16.svg +0 -6
- package/lib/core/icons/list-unordered-24.svg +0 -6
- package/lib/core/icons/location-16.svg +0 -6
- package/lib/core/icons/location-24.svg +0 -7
- package/lib/core/icons/lock-16.svg +0 -6
- package/lib/core/icons/lock-24.svg +0 -6
- package/lib/core/icons/log-16.svg +0 -7
- package/lib/core/icons/login.svg +0 -6
- package/lib/core/icons/logo-gist-16.svg +0 -6
- package/lib/core/icons/logo-github-16.svg +0 -6
- package/lib/core/icons/logout.svg +0 -6
- package/lib/core/icons/mail-16.svg +0 -6
- package/lib/core/icons/mail-24.svg +0 -6
- package/lib/core/icons/mark-github-16.svg +0 -6
- package/lib/core/icons/markdown-16.svg +0 -6
- package/lib/core/icons/megaphone-16.svg +0 -11
- package/lib/core/icons/megaphone-24.svg +0 -6
- package/lib/core/icons/mention-16.svg +0 -6
- package/lib/core/icons/mention-24.svg +0 -6
- package/lib/core/icons/meter-16.svg +0 -6
- package/lib/core/icons/milestone-16.svg +0 -6
- package/lib/core/icons/milestone-24.svg +0 -6
- package/lib/core/icons/mirror-16.svg +0 -6
- package/lib/core/icons/mirror-24.svg +0 -6
- package/lib/core/icons/moon-16.svg +0 -6
- package/lib/core/icons/moon-24.svg +0 -6
- package/lib/core/icons/mortar-board-16.svg +0 -6
- package/lib/core/icons/mortar-board-24.svg +0 -6
- package/lib/core/icons/multi-select-16.svg +0 -7
- package/lib/core/icons/multi-select-24.svg +0 -7
- package/lib/core/icons/mute-16.svg +0 -6
- package/lib/core/icons/mute-24.svg +0 -8
- package/lib/core/icons/no-entry-16.svg +0 -6
- package/lib/core/icons/no-entry-24.svg +0 -6
- package/lib/core/icons/no-entry-fill-12.svg +0 -5
- package/lib/core/icons/north-star-16.svg +0 -3
- package/lib/core/icons/north-star-24.svg +0 -3
- package/lib/core/icons/note-16.svg +0 -6
- package/lib/core/icons/note-24.svg +0 -8
- package/lib/core/icons/number-16.svg +0 -6
- package/lib/core/icons/number-24.svg +0 -6
- package/lib/core/icons/organization-16.svg +0 -6
- package/lib/core/icons/organization-24.svg +0 -8
- package/lib/core/icons/package-16.svg +0 -6
- package/lib/core/icons/package-24.svg +0 -6
- package/lib/core/icons/package-dependencies-16.svg +0 -6
- package/lib/core/icons/package-dependencies-24.svg +0 -8
- package/lib/core/icons/package-dependents-16.svg +0 -6
- package/lib/core/icons/package-dependents-24.svg +0 -8
- package/lib/core/icons/paintbrush-16.svg +0 -6
- package/lib/core/icons/paper-airplane-16.svg +0 -6
- package/lib/core/icons/paper-airplane-24.svg +0 -6
- package/lib/core/icons/paperclip-16.svg +0 -6
- package/lib/core/icons/paperclip-24.svg +0 -6
- package/lib/core/icons/paste-16.svg +0 -6
- package/lib/core/icons/paste-24.svg +0 -8
- package/lib/core/icons/pencil-16.svg +0 -6
- package/lib/core/icons/pencil-24.svg +0 -6
- package/lib/core/icons/people-16.svg +0 -6
- package/lib/core/icons/people-24.svg +0 -8
- package/lib/core/icons/person-16.svg +0 -6
- package/lib/core/icons/person-24.svg +0 -6
- package/lib/core/icons/person-add-16.svg +0 -6
- package/lib/core/icons/person-add-24.svg +0 -6
- package/lib/core/icons/person-fill-16.svg +0 -3
- package/lib/core/icons/person-fill-24.svg +0 -3
- package/lib/core/icons/pin-16.svg +0 -6
- package/lib/core/icons/pin-24.svg +0 -6
- package/lib/core/icons/play-16.svg +0 -6
- package/lib/core/icons/play-24.svg +0 -7
- package/lib/core/icons/plug-16.svg +0 -6
- package/lib/core/icons/plug-24.svg +0 -6
- package/lib/core/icons/plus-16.svg +0 -6
- package/lib/core/icons/plus-24.svg +0 -6
- package/lib/core/icons/plus-circle-16.svg +0 -6
- package/lib/core/icons/plus-circle-24.svg +0 -7
- package/lib/core/icons/project-16.svg +0 -6
- package/lib/core/icons/project-24.svg +0 -8
- package/lib/core/icons/pulse-16.svg +0 -6
- package/lib/core/icons/pulse-24.svg +0 -6
- package/lib/core/icons/question-16.svg +0 -6
- package/lib/core/icons/question-24.svg +0 -8
- package/lib/core/icons/quote-16.svg +0 -6
- package/lib/core/icons/quote-24.svg +0 -6
- package/lib/core/icons/reply-16.svg +0 -6
- package/lib/core/icons/reply-24.svg +0 -3
- package/lib/core/icons/repo-16.svg +0 -6
- package/lib/core/icons/repo-24.svg +0 -7
- package/lib/core/icons/repo-clone-16.svg +0 -6
- package/lib/core/icons/repo-deleted-16.svg +0 -3
- package/lib/core/icons/repo-forked-16.svg +0 -6
- package/lib/core/icons/repo-forked-24.svg +0 -9
- package/lib/core/icons/repo-locked-16.svg +0 -8
- package/lib/core/icons/repo-locked-24.svg +0 -8
- package/lib/core/icons/repo-pull-16.svg +0 -6
- package/lib/core/icons/repo-push-16.svg +0 -6
- package/lib/core/icons/repo-push-24.svg +0 -3
- package/lib/core/icons/repo-template-16.svg +0 -6
- package/lib/core/icons/repo-template-24.svg +0 -3
- package/lib/core/icons/report-16.svg +0 -6
- package/lib/core/icons/report-24.svg +0 -6
- package/lib/core/icons/rocket-16.svg +0 -6
- package/lib/core/icons/rocket-24.svg +0 -6
- package/lib/core/icons/rows-16.svg +0 -6
- package/lib/core/icons/rows-24.svg +0 -6
- package/lib/core/icons/rss-16.svg +0 -6
- package/lib/core/icons/rss-24.svg +0 -6
- package/lib/core/icons/ruby-16.svg +0 -6
- package/lib/core/icons/ruby-24.svg +0 -6
- package/lib/core/icons/screen-full-16.svg +0 -6
- package/lib/core/icons/screen-full-24.svg +0 -6
- package/lib/core/icons/screen-normal-16.svg +0 -6
- package/lib/core/icons/screen-normal-24.svg +0 -6
- package/lib/core/icons/search-16.svg +0 -6
- package/lib/core/icons/search-24.svg +0 -6
- package/lib/core/icons/server-16.svg +0 -6
- package/lib/core/icons/server-24.svg +0 -8
- package/lib/core/icons/server-error.svg +0 -5
- package/lib/core/icons/share-16.svg +0 -6
- package/lib/core/icons/share-24.svg +0 -6
- package/lib/core/icons/share-android-16.svg +0 -6
- package/lib/core/icons/share-android-24.svg +0 -6
- package/lib/core/icons/shield-16.svg +0 -6
- package/lib/core/icons/shield-24.svg +0 -7
- package/lib/core/icons/shield-check-16.svg +0 -6
- package/lib/core/icons/shield-check-24.svg +0 -7
- package/lib/core/icons/shield-lock-16.svg +0 -6
- package/lib/core/icons/shield-lock-24.svg +0 -6
- package/lib/core/icons/shield-slash-16.svg +0 -8
- package/lib/core/icons/shield-x-16.svg +0 -6
- package/lib/core/icons/shield-x-24.svg +0 -8
- package/lib/core/icons/sidebar-collapse-16.svg +0 -7
- package/lib/core/icons/sidebar-collapse-24.svg +0 -7
- package/lib/core/icons/sidebar-expand-16.svg +0 -7
- package/lib/core/icons/sidebar-expand-24.svg +0 -7
- package/lib/core/icons/sign-in-16.svg +0 -6
- package/lib/core/icons/sign-in-24.svg +0 -6
- package/lib/core/icons/sign-out-16.svg +0 -6
- package/lib/core/icons/sign-out-24.svg +0 -6
- package/lib/core/icons/single-select-16.svg +0 -7
- package/lib/core/icons/single-select-24.svg +0 -7
- package/lib/core/icons/skip-16.svg +0 -6
- package/lib/core/icons/skip-24.svg +0 -7
- package/lib/core/icons/sliders-16.svg +0 -3
- package/lib/core/icons/smiley-16.svg +0 -6
- package/lib/core/icons/smiley-24.svg +0 -9
- package/lib/core/icons/sort-asc-16.svg +0 -6
- package/lib/core/icons/sort-asc-24.svg +0 -3
- package/lib/core/icons/sort-desc-16.svg +0 -7
- package/lib/core/icons/sort-desc-24.svg +0 -3
- package/lib/core/icons/square-16.svg +0 -6
- package/lib/core/icons/square-24.svg +0 -6
- package/lib/core/icons/square-fill-16.svg +0 -6
- package/lib/core/icons/square-fill-24.svg +0 -6
- package/lib/core/icons/squirrel-16.svg +0 -6
- package/lib/core/icons/squirrel-24.svg +0 -3
- package/lib/core/icons/stack-16.svg +0 -6
- package/lib/core/icons/stack-24.svg +0 -10
- package/lib/core/icons/star-16.svg +0 -6
- package/lib/core/icons/star-24.svg +0 -6
- package/lib/core/icons/star-fill-16.svg +0 -6
- package/lib/core/icons/star-fill-24.svg +0 -6
- package/lib/core/icons/stop-16.svg +0 -6
- package/lib/core/icons/stop-24.svg +0 -7
- package/lib/core/icons/stopwatch-16.svg +0 -6
- package/lib/core/icons/stopwatch-24.svg +0 -6
- package/lib/core/icons/store.svg +0 -7
- package/lib/core/icons/strikethrough-16.svg +0 -6
- package/lib/core/icons/strikethrough-24.svg +0 -6
- package/lib/core/icons/sun-16.svg +0 -6
- package/lib/core/icons/sun-24.svg +0 -6
- package/lib/core/icons/sync-16.svg +0 -6
- package/lib/core/icons/sync-24.svg +0 -3
- package/lib/core/icons/tab-24.svg +0 -3
- package/lib/core/icons/tab-external-16.svg +0 -3
- package/lib/core/icons/table-16.svg +0 -6
- package/lib/core/icons/table-24.svg +0 -6
- package/lib/core/icons/tag-16.svg +0 -6
- package/lib/core/icons/tag-24.svg +0 -7
- package/lib/core/icons/tasklist-16.svg +0 -6
- package/lib/core/icons/tasklist-24.svg +0 -7
- package/lib/core/icons/telescope-16.svg +0 -6
- package/lib/core/icons/telescope-24.svg +0 -8
- package/lib/core/icons/telescope-fill-16.svg +0 -6
- package/lib/core/icons/telescope-fill-24.svg +0 -8
- package/lib/core/icons/terminal-16.svg +0 -6
- package/lib/core/icons/terminal-24.svg +0 -8
- package/lib/core/icons/three-bars-16.svg +0 -6
- package/lib/core/icons/thumbsdown-16.svg +0 -6
- package/lib/core/icons/thumbsdown-24.svg +0 -6
- package/lib/core/icons/thumbsup-16.svg +0 -6
- package/lib/core/icons/thumbsup-24.svg +0 -6
- package/lib/core/icons/tools-16.svg +0 -6
- package/lib/core/icons/tools-24.svg +0 -6
- package/lib/core/icons/trash-16.svg +0 -6
- package/lib/core/icons/trash-24.svg +0 -10
- package/lib/core/icons/triangle-down-16.svg +0 -3
- package/lib/core/icons/triangle-down-24.svg +0 -3
- package/lib/core/icons/triangle-left-16.svg +0 -3
- package/lib/core/icons/triangle-left-24.svg +0 -3
- package/lib/core/icons/triangle-right-16.svg +0 -3
- package/lib/core/icons/triangle-right-24.svg +0 -3
- package/lib/core/icons/triangle-up-16.svg +0 -3
- package/lib/core/icons/triangle-up-24.svg +0 -3
- package/lib/core/icons/trophy-16.svg +0 -6
- package/lib/core/icons/trophy-24.svg +0 -6
- package/lib/core/icons/typography-16.svg +0 -6
- package/lib/core/icons/typography-24.svg +0 -6
- package/lib/core/icons/unfold-16.svg +0 -3
- package/lib/core/icons/unfold-24.svg +0 -9
- package/lib/core/icons/unlock-16.svg +0 -6
- package/lib/core/icons/unlock-24.svg +0 -6
- package/lib/core/icons/unmute-16.svg +0 -6
- package/lib/core/icons/unmute-24.svg +0 -8
- package/lib/core/icons/unverified-16.svg +0 -6
- package/lib/core/icons/unverified-24.svg +0 -8
- package/lib/core/icons/upload-16.svg +0 -6
- package/lib/core/icons/upload-24.svg +0 -6
- package/lib/core/icons/verified-16.svg +0 -6
- package/lib/core/icons/verified-24.svg +0 -7
- package/lib/core/icons/versions-16.svg +0 -6
- package/lib/core/icons/versions-24.svg +0 -6
- package/lib/core/icons/video-16.svg +0 -7
- package/lib/core/icons/video-24.svg +0 -7
- package/lib/core/icons/webhook-16.svg +0 -3
- package/lib/core/icons/workflow-16.svg +0 -6
- package/lib/core/icons/workflow-24.svg +0 -6
- package/lib/core/icons/x-16.svg +0 -6
- package/lib/core/icons/x-24.svg +0 -6
- package/lib/core/icons/x-circle-16.svg +0 -6
- package/lib/core/icons/x-circle-24.svg +0 -8
- package/lib/core/icons/x-circle-fill-12.svg +0 -6
- package/lib/core/icons/x-circle-fill-16.svg +0 -6
- package/lib/core/icons/x-circle-fill-24.svg +0 -6
- package/lib/core/icons/yourdash.svg +0 -61
- package/lib/core/icons/zap-16.svg +0 -6
- package/lib/core/icons/zap-24.svg +0 -6
- package/lib/core/incrementLevel.tsx +0 -15
- package/lib/core/isPhone.ts +0 -30
- package/lib/core/level.tsx +0 -27
- package/lib/core/remToPx.ts +0 -8
- package/lib/core/root.tsx +0 -26
- package/lib/core/toasts/toast.module.css +0 -68
- package/lib/core/toasts/toast.module.css.map +0 -1
- package/lib/core/toasts/toast.module.scss +0 -71
- package/lib/core/toasts/toast.ts +0 -12
- package/lib/core/toasts/toastAction.ts +0 -12
- package/lib/core/toasts/toastContext.ts +0 -16
- package/lib/core/toasts/toasts.tsx +0 -96
- package/lib/core/toasts/useToast.ts +0 -18
- package/lib/core/utils.ts +0 -4
- package/lib/core/uuid.ts +0 -12
- package/lib/theme/defaultTheme.module.css +0 -297
- package/lib/theme/defaultTheme.module.css.map +0 -1
- package/lib/theme/defaultTheme.module.scss +0 -361
- package/lib/theme/themeValues.css +0 -7
- package/lib/theme/themeValues.css.map +0 -1
- package/lib/theme/themeValues.scss +0 -129
- package/lib/utilityComponent/hasBeenShown/hasBeenShown.tsx +0 -47
- package/lib/utilityComponent/onInView/onInView.tsx +0 -83
- package/lib/views/carousel/UKCarousel.tsx +0 -147
- package/lib/views/carousel/carousel.module.css +0 -77
- package/lib/views/carousel/carousel.module.css.map +0 -1
- package/lib/views/carousel/carousel.module.scss +0 -94
- package/lib/views/dialog/UKDialog.tsx +0 -34
- package/lib/views/dialog/dialog.module.css +0 -44
- package/lib/views/dialog/dialog.module.css.map +0 -1
- package/lib/views/dialog/dialog.module.scss +0 -44
- package/lib/views/infiniteScroll/UKInfiniteScroll.tsx +0 -90
- package/lib/views/infiniteScroll/infiniteScroll.module.css +0 -30
- package/lib/views/infiniteScroll/infiniteScroll.module.css.map +0 -1
- package/lib/views/infiniteScroll/infiniteScroll.module.scss +0 -26
- package/lib/views/layout/UKLayout.module.scss +0 -24
- package/lib/views/layout/UKLayout.tsx +0 -30
- package/lib/views/navBar/UKNavBar.tsx +0 -37
- package/lib/views/navBar/components/navImage/UKNavbarNavImage.tsx +0 -15
- package/lib/views/navBar/components/navImage/navImage.module.css +0 -12
- package/lib/views/navBar/components/navImage/navImage.module.css.map +0 -1
- package/lib/views/navBar/components/navImage/navImage.module.scss +0 -7
- package/lib/views/navBar/components/navTitle/UKNavbarNavTitle.tsx +0 -13
- package/lib/views/navBar/navBar.module.css +0 -26
- package/lib/views/navBar/navBar.module.css.map +0 -1
- package/lib/views/navBar/navBar.module.scss +0 -22
- package/lib/views/onBoarding/UKOnBoarding.tsx +0 -146
- package/lib/views/onBoarding/onBoarding.module.css +0 -74
- package/lib/views/onBoarding/onBoarding.module.css.map +0 -1
- package/lib/views/onBoarding/onBoarding.module.scss +0 -84
- package/lib/views/pageHeader/UKPageHeader.tsx +0 -28
- package/lib/views/pageHeader/header.module.css +0 -20
- package/lib/views/pageHeader/header.module.css.map +0 -1
- package/lib/views/pageHeader/header.module.scss +0 -16
- package/lib/views/panAndZoom/UKPanAndZoom.tsx +0 -121
- package/lib/views/sidebar/UKSidebar.tsx +0 -30
- package/lib/views/sidebar/UKSidebarContainer.tsx +0 -38
- package/lib/views/sidebar/UKSidebarContext.tsx +0 -15
- package/lib/views/sidebar/UKSidebarToggleButton.tsx +0 -27
- package/lib/views/sidebar/sidebar.module.css +0 -54
- package/lib/views/sidebar/sidebar.module.css.map +0 -1
- package/lib/views/sidebar/sidebar.module.scss +0 -49
- package/lib/views/sidebar/sidebarContainer.module.css +0 -26
- package/lib/views/sidebar/sidebarContainer.module.css.map +0 -1
- package/lib/views/sidebar/sidebarContainer.module.scss +0 -22
@@ -1,147 +0,0 @@
|
|
1
|
-
import React, { useEffect, useRef, useState } from "react";
|
2
|
-
import UKCard from "../../components/card/UKCard.tsx";
|
3
|
-
import UKContainer from "../../components/container/UKContainer.tsx";
|
4
|
-
import clippy from "../../core/clippy.js";
|
5
|
-
import { UKIcons } from "../../core/iconDictionary.ts";
|
6
|
-
import UKIconButton from "../../components/iconButton/UKIconButton.tsx";
|
7
|
-
import styles from "./carousel.module.scss";
|
8
|
-
|
9
|
-
const UKCarousel: React.FC<{
|
10
|
-
items: { element: React.ReactElement; id: string }[]; loopAround?: boolean; className?: string; height?: string;
|
11
|
-
}> = ({ items, className, loopAround, height }) => {
|
12
|
-
const scrollRef = useRef<HTMLDivElement>(null);
|
13
|
-
const [ currentPage, setCurrentPage ] = useState<number>(0);
|
14
|
-
|
15
|
-
useEffect(() => {
|
16
|
-
const scrollElement = scrollRef.current;
|
17
|
-
|
18
|
-
if (!scrollElement) return;
|
19
|
-
|
20
|
-
let listener = () => {
|
21
|
-
const scrollRect = scrollElement.getBoundingClientRect();
|
22
|
-
let maxOverlap = 0;
|
23
|
-
let currentPageIndex = -1;
|
24
|
-
|
25
|
-
Array.from(scrollElement.children).forEach((ele: Element, index: number) => {
|
26
|
-
const elementRect = ele.getBoundingClientRect();
|
27
|
-
|
28
|
-
// Calculate the overlap between the element and the scroll element
|
29
|
-
const overlap = Math.max(
|
30
|
-
0, Math.min(elementRect.right, scrollRect.right) - Math.max(elementRect.left, scrollRect.left));
|
31
|
-
|
32
|
-
// Check if this overlap is greater than the current maximum overlap
|
33
|
-
if (overlap > maxOverlap) {
|
34
|
-
maxOverlap = overlap;
|
35
|
-
currentPageIndex = index;
|
36
|
-
}
|
37
|
-
});
|
38
|
-
|
39
|
-
// If an element has some overlap, set it as the current page
|
40
|
-
if (currentPageIndex !== -1) {
|
41
|
-
setCurrentPage(currentPageIndex);
|
42
|
-
}
|
43
|
-
};
|
44
|
-
|
45
|
-
scrollElement.addEventListener("scroll", listener);
|
46
|
-
|
47
|
-
return () => {
|
48
|
-
scrollElement.removeEventListener("scroll", listener);
|
49
|
-
};
|
50
|
-
}, []);
|
51
|
-
|
52
|
-
return (<UKContainer className={clippy(styles.containerComponent, className)} style={{
|
53
|
-
// @ts-ignore
|
54
|
-
"--carousel-height": height
|
55
|
-
}}>
|
56
|
-
<div
|
57
|
-
className={styles.component}
|
58
|
-
data-pages={true}
|
59
|
-
ref={scrollRef}
|
60
|
-
>
|
61
|
-
{items.map((child, index) => {
|
62
|
-
return (<div
|
63
|
-
key={child.id}
|
64
|
-
className={clippy(styles.page, index === currentPage && styles.activePage)}
|
65
|
-
>
|
66
|
-
{child.element}
|
67
|
-
</div>);
|
68
|
-
})}
|
69
|
-
</div>
|
70
|
-
<div className={styles.controls}>
|
71
|
-
<UKIconButton
|
72
|
-
accessibleLabel={"previous page"}
|
73
|
-
icon={UKIcons.ChevronLeft}
|
74
|
-
className={styles.pageControl}
|
75
|
-
onClick={() => {
|
76
|
-
const scrollElement = scrollRef.current;
|
77
|
-
|
78
|
-
if (!scrollElement) {
|
79
|
-
return;
|
80
|
-
}
|
81
|
-
|
82
|
-
const carouselTargetPage = scrollElement.children[currentPage - 1] as HTMLDivElement;
|
83
|
-
|
84
|
-
if (!carouselTargetPage) {
|
85
|
-
if (loopAround) {
|
86
|
-
const carouselTargetPage = scrollElement.children[scrollElement.children.length - 1] as HTMLDivElement;
|
87
|
-
carouselTargetPage.scrollIntoView({ behavior: "smooth", inline: "center", block: "center" });
|
88
|
-
setCurrentPage(scrollElement.children.length - 1);
|
89
|
-
}
|
90
|
-
return;
|
91
|
-
}
|
92
|
-
|
93
|
-
carouselTargetPage.scrollIntoView({ behavior: "smooth", inline: "center", block: "center" });
|
94
|
-
setCurrentPage(currentPage - 1);
|
95
|
-
}}
|
96
|
-
/>
|
97
|
-
<UKCard className={styles.indicator} containerClassName={styles.indicatorContainer}>
|
98
|
-
{items.map((page, index) => {
|
99
|
-
return (<button
|
100
|
-
key={page.id}
|
101
|
-
className={clippy(styles.pageIndicator, index === currentPage && styles.selected)}
|
102
|
-
onClick={() => {
|
103
|
-
const scrollElement = scrollRef.current;
|
104
|
-
|
105
|
-
if (!scrollElement) {
|
106
|
-
return;
|
107
|
-
}
|
108
|
-
|
109
|
-
const carouselTargetPage = scrollElement.children[index] as HTMLDivElement;
|
110
|
-
|
111
|
-
setCurrentPage(index);
|
112
|
-
carouselTargetPage.scrollIntoView({ behavior: "smooth", inline: "center", block: "center" });
|
113
|
-
}}
|
114
|
-
/>);
|
115
|
-
})}
|
116
|
-
</UKCard>
|
117
|
-
<UKIconButton
|
118
|
-
accessibleLabel={"next page"}
|
119
|
-
icon={UKIcons.ChevronRight}
|
120
|
-
className={styles.pageControl}
|
121
|
-
onClick={() => {
|
122
|
-
const scrollElement = scrollRef.current;
|
123
|
-
|
124
|
-
if (!scrollElement) {
|
125
|
-
return;
|
126
|
-
}
|
127
|
-
|
128
|
-
const carouselTargetPage = scrollElement.children[currentPage + 1] as HTMLDivElement;
|
129
|
-
|
130
|
-
if (!carouselTargetPage) {
|
131
|
-
if (loopAround) {
|
132
|
-
const carouselTargetPage = scrollElement.children[0] as HTMLDivElement;
|
133
|
-
carouselTargetPage.scrollIntoView({ behavior: "smooth", inline: "center", block: "center" });
|
134
|
-
setCurrentPage(0);
|
135
|
-
}
|
136
|
-
return;
|
137
|
-
}
|
138
|
-
|
139
|
-
carouselTargetPage.scrollIntoView({ behavior: "smooth", inline: "center", block: "center" });
|
140
|
-
setCurrentPage(currentPage + 1);
|
141
|
-
}}
|
142
|
-
/>
|
143
|
-
</div>
|
144
|
-
</UKContainer>);
|
145
|
-
};
|
146
|
-
|
147
|
-
export default UKCarousel;
|
@@ -1,77 +0,0 @@
|
|
1
|
-
@charset "UTF-8";
|
2
|
-
/*!
|
3
|
-
* Copyright ©2025 Ewsgit <https://ewsgit.uk> and YourDash <https://yourdash.ewsgit.uk> contributors.
|
4
|
-
* YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
|
5
|
-
*/
|
6
|
-
.containerComponent {
|
7
|
-
display: flex;
|
8
|
-
flex-direction: row;
|
9
|
-
max-width: 100%;
|
10
|
-
height: 24rem;
|
11
|
-
position: relative;
|
12
|
-
padding: 0;
|
13
|
-
overflow: hidden;
|
14
|
-
}
|
15
|
-
|
16
|
-
.component {
|
17
|
-
display: flex;
|
18
|
-
align-items: center;
|
19
|
-
max-width: 100%;
|
20
|
-
height: 24rem;
|
21
|
-
gap: 0.5rem;
|
22
|
-
padding: var(--utpdn);
|
23
|
-
flex-direction: row;
|
24
|
-
overflow-x: auto;
|
25
|
-
scroll-snap-type: x mandatory;
|
26
|
-
scroll-snap-stop: always;
|
27
|
-
scrollbar-width: none;
|
28
|
-
padding-bottom: 2.5rem;
|
29
|
-
}
|
30
|
-
.component::-webkit-scrollbar {
|
31
|
-
display: none;
|
32
|
-
}
|
33
|
-
|
34
|
-
.page {
|
35
|
-
display: flex;
|
36
|
-
width: 80%;
|
37
|
-
height: 100%;
|
38
|
-
flex-shrink: 0;
|
39
|
-
scroll-snap-align: center;
|
40
|
-
}
|
41
|
-
.page:first-of-type {
|
42
|
-
margin-left: calc(20% + var(--utgap));
|
43
|
-
}
|
44
|
-
.page:last-of-type {
|
45
|
-
margin-right: calc(20% + var(--utgap));
|
46
|
-
}
|
47
|
-
|
48
|
-
.controls {
|
49
|
-
position: absolute;
|
50
|
-
bottom: 0;
|
51
|
-
left: 50%;
|
52
|
-
transform: translateX(-50%);
|
53
|
-
display: flex;
|
54
|
-
flex-direction: row;
|
55
|
-
gap: var(--utgap);
|
56
|
-
}
|
57
|
-
|
58
|
-
.indicator {
|
59
|
-
display: flex;
|
60
|
-
flex-direction: row;
|
61
|
-
gap: var(--utgap);
|
62
|
-
padding: calc(var(--utpdn) / 2);
|
63
|
-
border-radius: var(--utrad);
|
64
|
-
}
|
65
|
-
.indicator .pageIndicator {
|
66
|
-
background-color: var(--utcol);
|
67
|
-
padding: 0.5rem;
|
68
|
-
border-radius: var(--utrad);
|
69
|
-
transition: var(--uttrans);
|
70
|
-
position: relative;
|
71
|
-
}
|
72
|
-
.indicator .pageIndicator.selected {
|
73
|
-
padding-right: 1.5rem;
|
74
|
-
padding-left: 1.5rem;
|
75
|
-
}
|
76
|
-
|
77
|
-
/*# sourceMappingURL=carousel.module.css.map */
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../theme/themeValues.scss","carousel.module.scss"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;ACEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA","file":"carousel.module.css"}
|
@@ -1,94 +0,0 @@
|
|
1
|
-
@use "../../theme/themeValues.scss" as *;
|
2
|
-
|
3
|
-
.containerComponent {
|
4
|
-
display: flex;
|
5
|
-
flex-direction: row;
|
6
|
-
width: 100%;
|
7
|
-
height: var(--carousel-height, 24rem);
|
8
|
-
position: relative;
|
9
|
-
padding: 0;
|
10
|
-
overflow: hidden;
|
11
|
-
border-radius: 0;
|
12
|
-
}
|
13
|
-
|
14
|
-
.component {
|
15
|
-
display: flex;
|
16
|
-
align-items: center;
|
17
|
-
max-width: 100%;
|
18
|
-
height: 100%;
|
19
|
-
gap: 10rem;
|
20
|
-
flex-direction: row;
|
21
|
-
overflow-x: auto;
|
22
|
-
scroll-snap-type: x mandatory;
|
23
|
-
scroll-snap-stop: always;
|
24
|
-
scrollbar-width: none;
|
25
|
-
padding-bottom: 2.5rem;
|
26
|
-
|
27
|
-
&::-webkit-scrollbar {
|
28
|
-
display: none;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
.page {
|
33
|
-
display: flex;
|
34
|
-
width: max-content;
|
35
|
-
height: 100%;
|
36
|
-
align-items: center;
|
37
|
-
justify-content: center;
|
38
|
-
flex-shrink: 0;
|
39
|
-
scroll-snap-align: center;
|
40
|
-
opacity: 0.5;
|
41
|
-
transition: $UKTransition;
|
42
|
-
|
43
|
-
&:first-of-type {
|
44
|
-
margin-left: 100%;
|
45
|
-
}
|
46
|
-
|
47
|
-
&:last-of-type {
|
48
|
-
margin-right: 100%;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
.activePage {
|
53
|
-
opacity: 1;
|
54
|
-
}
|
55
|
-
|
56
|
-
.controls {
|
57
|
-
position: absolute;
|
58
|
-
bottom: 0;
|
59
|
-
left: 50%;
|
60
|
-
transform: translateX(-50%);
|
61
|
-
display: flex;
|
62
|
-
flex-direction: row;
|
63
|
-
gap: $UKGap;
|
64
|
-
width: max-content;
|
65
|
-
}
|
66
|
-
|
67
|
-
.indicatorContainer {
|
68
|
-
width: max-content;
|
69
|
-
overflow: unset;
|
70
|
-
}
|
71
|
-
|
72
|
-
.indicator {
|
73
|
-
display: flex;
|
74
|
-
flex-direction: row;
|
75
|
-
gap: var(#{$theme+$gap});
|
76
|
-
padding: calc(calc(var(#{$theme+$padding}) / 4) * 3);
|
77
|
-
border-radius: var(#{$theme+$radius});
|
78
|
-
min-width: max-content;
|
79
|
-
|
80
|
-
.pageIndicator {
|
81
|
-
background-color: rgb(var(#{$theme+$color}));
|
82
|
-
height: calc($UKPadding + calc($UKPadding / 4));
|
83
|
-
border-radius: calc(var(#{$theme+$radius}) * 0.5);
|
84
|
-
transition: $UKTransition;
|
85
|
-
aspect-ratio: 1 / 1;
|
86
|
-
opacity: 0.8;
|
87
|
-
display: flex;
|
88
|
-
|
89
|
-
&.selected {
|
90
|
-
aspect-ratio: 3 / 1;
|
91
|
-
opacity: 1;
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright ©2025 Ewsgit <https://ewsgit.uk> and YourDash <https://yourdash.ewsgit.uk> contributors.
|
3
|
-
* YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
|
4
|
-
*/
|
5
|
-
|
6
|
-
import React from "react";
|
7
|
-
import UKCard from "../../components/card/UKCard.tsx";
|
8
|
-
import styles from "./dialog.module.scss";
|
9
|
-
|
10
|
-
const UKDialog: React.FC<{
|
11
|
-
children: React.ReactNode | React.ReactNode[];
|
12
|
-
className?: string;
|
13
|
-
actionsClassName?: string;
|
14
|
-
headerClassName?: string;
|
15
|
-
actions?: React.ReactNode | React.ReactNode[];
|
16
|
-
header?: React.ReactNode | React.ReactNode[];
|
17
|
-
}> = ({ children, className, actionsClassName, headerClassName, actions, header }) => {
|
18
|
-
return (
|
19
|
-
<div className={styles.background}>
|
20
|
-
<UKCard
|
21
|
-
containerClassName={styles.view}
|
22
|
-
actionsClassName={actionsClassName}
|
23
|
-
headerClassName={headerClassName}
|
24
|
-
actions={actions}
|
25
|
-
header={header}
|
26
|
-
className={className}
|
27
|
-
>
|
28
|
-
{children}
|
29
|
-
</UKCard>
|
30
|
-
</div>
|
31
|
-
);
|
32
|
-
};
|
33
|
-
|
34
|
-
export default UKDialog;
|
@@ -1,44 +0,0 @@
|
|
1
|
-
@charset "UTF-8";
|
2
|
-
/*!
|
3
|
-
* Copyright ©2025 Ewsgit <https://ewsgit.uk> and YourDash <https://yourdash.ewsgit.uk> contributors.
|
4
|
-
* YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
|
5
|
-
*/
|
6
|
-
@keyframes fadeIn {
|
7
|
-
from {
|
8
|
-
opacity: 0;
|
9
|
-
margin-top: 1rem;
|
10
|
-
}
|
11
|
-
to {
|
12
|
-
opacity: 1;
|
13
|
-
margin-top: 0;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
@keyframes backgroundFadeIn {
|
17
|
-
from {
|
18
|
-
background: rgba(0, 0, 0, 0);
|
19
|
-
backdrop-filter: blur(0rem);
|
20
|
-
}
|
21
|
-
to {
|
22
|
-
background: rgba(0, 0, 0, 0.3333333333);
|
23
|
-
backdrop-filter: blur(0.25rem);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
.background {
|
27
|
-
width: 100%;
|
28
|
-
height: 100%;
|
29
|
-
animation: forwards backgroundFadeIn 250ms ease-out;
|
30
|
-
display: flex;
|
31
|
-
align-items: center;
|
32
|
-
justify-content: center;
|
33
|
-
position: fixed;
|
34
|
-
top: 0;
|
35
|
-
left: 0;
|
36
|
-
z-index: 100;
|
37
|
-
}
|
38
|
-
|
39
|
-
.view {
|
40
|
-
display: flex;
|
41
|
-
animation: forwards fadeIn 500ms ease-out;
|
42
|
-
}
|
43
|
-
|
44
|
-
/*# sourceMappingURL=dialog.module.css.map */
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["dialog.module.scss"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAKA;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;IACE;IACA;;EAEF;IACE;IACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA","file":"dialog.module.css"}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright ©2025 Ewsgit <https://ewsgit.uk> and YourDash <https://yourdash.ewsgit.uk> contributors.
|
3
|
-
* YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
|
4
|
-
*/
|
5
|
-
|
6
|
-
@keyframes fadeIn {
|
7
|
-
from {
|
8
|
-
opacity: 0;
|
9
|
-
margin-top: 1rem;
|
10
|
-
}
|
11
|
-
to {
|
12
|
-
opacity: 1;
|
13
|
-
margin-top: 0;
|
14
|
-
}
|
15
|
-
}
|
16
|
-
|
17
|
-
@keyframes backgroundFadeIn {
|
18
|
-
from {
|
19
|
-
background: #00000000;
|
20
|
-
backdrop-filter: blur(0rem);
|
21
|
-
}
|
22
|
-
to {
|
23
|
-
background: #00000055;
|
24
|
-
backdrop-filter: blur(0.25rem);
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
.background {
|
29
|
-
width: 100%;
|
30
|
-
height: 100%;
|
31
|
-
animation: forwards backgroundFadeIn 250ms ease-out;
|
32
|
-
display: flex;
|
33
|
-
align-items: center;
|
34
|
-
justify-content: center;
|
35
|
-
position: fixed;
|
36
|
-
top: 0;
|
37
|
-
left: 0;
|
38
|
-
z-index: 100;
|
39
|
-
}
|
40
|
-
|
41
|
-
.view {
|
42
|
-
display: flex;
|
43
|
-
animation: forwards fadeIn 500ms ease-out;
|
44
|
-
}
|
@@ -1,90 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* Copyright ©2025 Ewsgit<https://ewsgit.uk> and YourDash<https://yourdash.ewsgit.uk> contributors.
|
3
|
-
* YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
|
4
|
-
*/
|
5
|
-
|
6
|
-
import React, { useEffect, useState } from "react";
|
7
|
-
import UKHeading from "../../components/heading/UKHeading.tsx";
|
8
|
-
import UKSeparator from "../../components/separator/UKSeparator.tsx";
|
9
|
-
import UKText from "../../components/text/UKText.tsx";
|
10
|
-
import styles from "./infiniteScroll.module.scss";
|
11
|
-
import clippy from "../../core/clippy.ts";
|
12
|
-
|
13
|
-
const UKInfiniteScroll: React.FC<{
|
14
|
-
children: React.ReactNode | React.ReactNode[];
|
15
|
-
fetchNextPage: (nextPageNumber: number) => Promise<{ hasAnotherPage?: boolean }>;
|
16
|
-
containerClassName?: string;
|
17
|
-
className?: string;
|
18
|
-
resetState?: string;
|
19
|
-
}> = ({ children, fetchNextPage, containerClassName, className, resetState }) => {
|
20
|
-
const endOfItemsRef = React.useRef<HTMLDivElement>(null);
|
21
|
-
const lastFetchedPage = React.useRef<number>(-1);
|
22
|
-
const [isLoading, setIsLoading] = useState<boolean>(false);
|
23
|
-
const [isLastPage, setIsLastPage] = useState<boolean>(false);
|
24
|
-
|
25
|
-
useEffect(() => {
|
26
|
-
lastFetchedPage.current = -1;
|
27
|
-
setIsLoading(false);
|
28
|
-
setIsLastPage(false);
|
29
|
-
fetchNextPageWrapper();
|
30
|
-
}, [resetState]);
|
31
|
-
|
32
|
-
async function fetchNextPageWrapper() {
|
33
|
-
if (isLoading) return;
|
34
|
-
setIsLoading(true);
|
35
|
-
const { hasAnotherPage } = await fetchNextPage(lastFetchedPage.current + 1);
|
36
|
-
lastFetchedPage.current++;
|
37
|
-
setIsLoading(false);
|
38
|
-
setIsLastPage(hasAnotherPage || false);
|
39
|
-
}
|
40
|
-
|
41
|
-
useEffect(() => {
|
42
|
-
if (!endOfItemsRef.current) return;
|
43
|
-
|
44
|
-
const element: HTMLDivElement = endOfItemsRef.current;
|
45
|
-
|
46
|
-
const observer = new IntersectionObserver((elem) => {
|
47
|
-
console.log("observer update");
|
48
|
-
const isVisible = elem[0].isIntersecting;
|
49
|
-
|
50
|
-
if (isVisible) fetchNextPageWrapper();
|
51
|
-
});
|
52
|
-
|
53
|
-
observer.observe(element);
|
54
|
-
}, []);
|
55
|
-
|
56
|
-
// TODO: Use interaction observer to detect when the last item is shown on the screen and fetch the next page
|
57
|
-
|
58
|
-
return (
|
59
|
-
<div className={clippy(containerClassName, styles.component)}>
|
60
|
-
{/* @ts-ignore */}
|
61
|
-
{children?.length > 0 ? (
|
62
|
-
<div className={clippy(className, styles.items)}>{children}</div>
|
63
|
-
) : (
|
64
|
-
<div className={"text-center"}>
|
65
|
-
<UKHeading
|
66
|
-
level={1}
|
67
|
-
text={"Whoops."}
|
68
|
-
/>
|
69
|
-
<UKSeparator direction={"column"} />
|
70
|
-
<UKText text={"It looks like nothing could be found..."} />
|
71
|
-
</div>
|
72
|
-
)}
|
73
|
-
<div
|
74
|
-
ref={endOfItemsRef}
|
75
|
-
className={styles.endOfItems}
|
76
|
-
>
|
77
|
-
{isLoading && <UKText text={"Loading more content"} />}
|
78
|
-
<UKSeparator direction={"column"} />
|
79
|
-
{isLastPage && (
|
80
|
-
<UKText
|
81
|
-
text={"No more items to load"}
|
82
|
-
className={styles.endOfItems}
|
83
|
-
/>
|
84
|
-
)}
|
85
|
-
</div>
|
86
|
-
</div>
|
87
|
-
);
|
88
|
-
};
|
89
|
-
|
90
|
-
export default UKInfiniteScroll;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
@charset "UTF-8";
|
2
|
-
/*!
|
3
|
-
* Copyright ©2025 Ewsgit<https://ewsgit.uk> and YourDash<https://yourdash.ewsgit.uk> contributors.
|
4
|
-
* YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
|
5
|
-
*/
|
6
|
-
/*!
|
7
|
-
* Copyright ©2025 Ewsgit <https://ewsgit.uk> and YourDash <https://yourdash.ewsgit.uk> contributors.
|
8
|
-
* YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
|
9
|
-
*/
|
10
|
-
.component {
|
11
|
-
display: flex;
|
12
|
-
flex-direction: column;
|
13
|
-
width: 100%;
|
14
|
-
height: 100%;
|
15
|
-
gap: 1rem;
|
16
|
-
align-items: center;
|
17
|
-
}
|
18
|
-
|
19
|
-
.items {
|
20
|
-
height: 100%;
|
21
|
-
}
|
22
|
-
|
23
|
-
.endOfItems {
|
24
|
-
text-align: center;
|
25
|
-
padding: var(--utpdn);
|
26
|
-
gap: var(--utgap);
|
27
|
-
width: calc(100% - var(--utpdn) * 2);
|
28
|
-
}
|
29
|
-
|
30
|
-
/*# sourceMappingURL=infiniteScroll.module.css.map */
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["infiniteScroll.module.scss","../../theme/themeValues.scss"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;ACAA;AAAA;AAAA;AAAA;ADOA;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA","file":"infiniteScroll.module.css"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright ©2025 Ewsgit<https://ewsgit.uk> and YourDash<https://yourdash.ewsgit.uk> contributors.
|
3
|
-
* YourDash is licensed under the MIT License. (https://mit.ewsgit.uk)
|
4
|
-
*/
|
5
|
-
|
6
|
-
@use "../../theme/themeValues.scss" as *;
|
7
|
-
|
8
|
-
.component {
|
9
|
-
display: flex;
|
10
|
-
flex-direction: column;
|
11
|
-
width: 100%;
|
12
|
-
height: 100%;
|
13
|
-
gap: 1rem;
|
14
|
-
align-items: center;
|
15
|
-
}
|
16
|
-
|
17
|
-
.items {
|
18
|
-
height: 100%;
|
19
|
-
}
|
20
|
-
|
21
|
-
.endOfItems {
|
22
|
-
text-align: center;
|
23
|
-
padding: var(#{$theme+$padding});
|
24
|
-
gap: var(#{$theme+$gap});
|
25
|
-
width: calc(100% - calc(var(#{$theme+$padding}) * 2));
|
26
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
.layout {
|
2
|
-
display: grid;
|
3
|
-
grid-template: auto 1fr auto / auto 1fr auto;
|
4
|
-
}
|
5
|
-
|
6
|
-
.header {
|
7
|
-
grid-column: 1 / 4;
|
8
|
-
}
|
9
|
-
|
10
|
-
.footer {
|
11
|
-
grid-column: 1 / 4;
|
12
|
-
}
|
13
|
-
|
14
|
-
.children {
|
15
|
-
grid-column: 2 / 3;
|
16
|
-
}
|
17
|
-
|
18
|
-
.primarySidebar {
|
19
|
-
grid-column: 1 / 2;
|
20
|
-
}
|
21
|
-
|
22
|
-
.secondarySidebar {
|
23
|
-
grid-column: 3 / 4;
|
24
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import styles from "./UKLayout.module.scss";
|
3
|
-
|
4
|
-
interface IUKLayoutProps {
|
5
|
-
primarySidebar?: React.ReactNode,
|
6
|
-
secondarySidebar?: React.ReactNode,
|
7
|
-
header?: React.ReactNode,
|
8
|
-
footer?: React.ReactNode,
|
9
|
-
}
|
10
|
-
|
11
|
-
const UKLayout: React.FC<React.PropsWithChildren<IUKLayoutProps>> = ({
|
12
|
-
primarySidebar,
|
13
|
-
secondarySidebar,
|
14
|
-
footer,
|
15
|
-
header,
|
16
|
-
children
|
17
|
-
}) => {
|
18
|
-
return <div className={styles.layout}>
|
19
|
-
{header && <div className={styles.header}>{header}</div>}
|
20
|
-
{primarySidebar && <div className={styles.primarySidebar}>{primarySidebar}</div>}
|
21
|
-
<div className={styles.children}>
|
22
|
-
{children}
|
23
|
-
</div>
|
24
|
-
{secondarySidebar && <div className={styles.secondarySidebar}>{secondarySidebar}</div>}
|
25
|
-
{footer && <div className={styles.footer}>{footer}</div>}
|
26
|
-
</div>;
|
27
|
-
};
|
28
|
-
|
29
|
-
export default UKLayout;
|
30
|
-
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import UKBox from "../../components/box/UKBox.tsx";
|
3
|
-
import styles from "./navBar.module.scss";
|
4
|
-
import UKFlex from "../../components/flex/UKFlex.tsx";
|
5
|
-
import clippy from "../../core/clippy.ts";
|
6
|
-
|
7
|
-
const UKNavBar: React.FC<{
|
8
|
-
leftSection?: React.ReactElement | React.ReactElement[];
|
9
|
-
centerSection?: React.ReactElement | React.ReactElement[];
|
10
|
-
rightSection?: React.ReactElement | React.ReactElement[];
|
11
|
-
className?: string;
|
12
|
-
}> = ({ leftSection, centerSection, rightSection, className }) => {
|
13
|
-
return (
|
14
|
-
<UKBox className={clippy(styles.component, className)}>
|
15
|
-
<UKFlex
|
16
|
-
className={styles.segment}
|
17
|
-
direction="row"
|
18
|
-
>
|
19
|
-
{leftSection}
|
20
|
-
</UKFlex>
|
21
|
-
<UKFlex
|
22
|
-
className={styles.segment}
|
23
|
-
direction="row"
|
24
|
-
>
|
25
|
-
{centerSection}
|
26
|
-
</UKFlex>
|
27
|
-
<UKFlex
|
28
|
-
className={styles.segment}
|
29
|
-
direction="row"
|
30
|
-
>
|
31
|
-
{rightSection}
|
32
|
-
</UKFlex>
|
33
|
-
</UKBox>
|
34
|
-
);
|
35
|
-
};
|
36
|
-
|
37
|
-
export default UKNavBar;
|