@hanzo/ui 0.5.24 → 0.6.16
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/.eslintrc.js +4 -0
- package/.prettierrc +22 -0
- package/.rush/temp/chunked-rush-logs/ui._phase_build.chunks.jsonl +2 -0
- package/.rush/temp/chunked-rush-logs/ui._phase_validate.chunks.jsonl +11 -0
- package/.rush/temp/hcengineering+ui-_phase_build-16380278e5d28b32a6666092bd103ddbd2c66a56.tar.log +12 -0
- package/.rush/temp/hcengineering+ui-_phase_build-16380278e5d28b32a6666092bd103ddbd2c66a56.untar.log +10 -0
- package/.rush/temp/hcengineering+ui-_phase_validate-8f047ca66e6a4a177eee65782e723a7dc128d73e.tar.log +65 -0
- package/.rush/temp/hcengineering+ui-_phase_validate-8f047ca66e6a4a177eee65782e723a7dc128d73e.untar.log +10 -0
- package/.rush/temp/operation/_phase_build/all.log +2 -0
- package/.rush/temp/operation/_phase_build/log-chunks.jsonl +2 -0
- package/.rush/temp/operation/_phase_build/state.json +3 -0
- package/.rush/temp/operation/_phase_validate/all.log +11 -0
- package/.rush/temp/operation/_phase_validate/log-chunks.jsonl +11 -0
- package/.rush/temp/operation/_phase_validate/state.json +3 -0
- package/.rush/temp/shrinkwrap-deps.json +585 -0
- package/.validate/tsBuildInfoFile.info +1 -0
- package/.validate/validate-err.log +0 -0
- package/.validate/validate.log +0 -0
- package/CHANGELOG.json +17 -0
- package/CHANGELOG.md +9 -0
- package/config/rig.json +5 -0
- package/jest.config.js +5 -0
- package/lang/cs.json +119 -0
- package/lang/de.json +119 -0
- package/lang/en.json +120 -0
- package/lang/es.json +120 -0
- package/lang/fr.json +120 -0
- package/lang/it.json +120 -0
- package/lang/pt.json +120 -0
- package/lang/ru.json +120 -0
- package/lang/zh.json +120 -0
- package/package.json +52 -100
- package/postcss.config.js +5 -0
- package/rush-logs/ui._phase_build.cache.log +4 -0
- package/rush-logs/ui._phase_build.log +2 -0
- package/rush-logs/ui._phase_validate.cache.log +4 -0
- package/rush-logs/ui._phase_validate.log +11 -0
- package/src/__test__/location.test.ts +12 -0
- package/src/colors.ts +552 -0
- package/src/components/AccordionItem.svelte +132 -0
- package/src/components/ActionIcon.svelte +88 -0
- package/src/components/BarDashboard.svelte +47 -0
- package/src/components/BooleanIcon.svelte +31 -0
- package/src/components/Breadcrumb.svelte +102 -0
- package/src/components/Breadcrumbs.svelte +73 -0
- package/src/components/Button.svelte +196 -0
- package/src/components/ButtonBase.svelte +117 -0
- package/src/components/ButtonGroup.svelte +48 -0
- package/src/components/ButtonIcon.svelte +63 -0
- package/src/components/ButtonMenu.svelte +103 -0
- package/src/components/ButtonWithDropdown.svelte +120 -0
- package/src/components/CheckBox.svelte +239 -0
- package/src/components/CheckBoxList.svelte.txt +88 -0
- package/src/components/CheckBoxWithLabel.svelte.txt +147 -0
- package/src/components/Chevron.svelte +85 -0
- package/src/components/Chip.svelte +109 -0
- package/src/components/CircleButton.svelte +165 -0
- package/src/components/CodeForm.svelte +164 -0
- package/src/components/CodeInput.svelte +86 -0
- package/src/components/ColorPopup.svelte +119 -0
- package/src/components/Component.svelte +152 -0
- package/src/components/Dialog.svelte +105 -0
- package/src/components/Dock.svelte +53 -0
- package/src/components/Dropdown.svelte +91 -0
- package/src/components/DropdownLabels.svelte +156 -0
- package/src/components/DropdownLabelsIntl.svelte +108 -0
- package/src/components/DropdownLabelsPopup.svelte +148 -0
- package/src/components/DropdownLabelsPopupIntl.svelte +72 -0
- package/src/components/DropdownPopup.svelte +146 -0
- package/src/components/DropdownRecord.svelte +50 -0
- package/src/components/DropdownRecordPopup.svelte +82 -0
- package/src/components/EditBox.svelte +211 -0
- package/src/components/EditWithIcon.svelte +130 -0
- package/src/components/EmbeddedPDF.svelte +88 -0
- package/src/components/ErrorPopup.svelte +27 -0
- package/src/components/ErrorPresenter.svelte +32 -0
- package/src/components/ExpandCollapse.svelte +42 -0
- package/src/components/Expandable.svelte +90 -0
- package/src/components/FocusHandler.svelte +21 -0
- package/src/components/Fold.svelte +52 -0
- package/src/components/Grid.svelte +39 -0
- package/src/components/Header.svelte +260 -0
- package/src/components/HlsVideo.svelte +170 -0
- package/src/components/Hotkey.svelte +50 -0
- package/src/components/HotkeyGroup.svelte +25 -0
- package/src/components/Html.svelte +24 -0
- package/src/components/Icon.svelte +45 -0
- package/src/components/IconWithEmoji.svelte +74 -0
- package/src/components/Image.svelte +71 -0
- package/src/components/Label.svelte +38 -0
- package/src/components/Lazy.svelte +29 -0
- package/src/components/Like.svelte +73 -0
- package/src/components/Link.svelte +75 -0
- package/src/components/LinkWrapper.svelte +35 -0
- package/src/components/ListView.svelte +153 -0
- package/src/components/ListViewItem.svelte +84 -0
- package/src/components/Loading.svelte +88 -0
- package/src/components/Menu.svelte +205 -0
- package/src/components/MiniToggle.svelte +125 -0
- package/src/components/Modal.svelte +117 -0
- package/src/components/ModeSelector.svelte +37 -0
- package/src/components/ModernButton.svelte +61 -0
- package/src/components/ModernCheckbox.svelte +123 -0
- package/src/components/ModernDialog.svelte +258 -0
- package/src/components/ModernEditbox.svelte +256 -0
- package/src/components/ModernPopup.svelte +105 -0
- package/src/components/ModernRadioButton.svelte +111 -0
- package/src/components/ModernTab.svelte +184 -0
- package/src/components/ModernToggle.svelte +153 -0
- package/src/components/MouseSpeedTracker.svelte +74 -0
- package/src/components/MultiProgress.svelte +97 -0
- package/src/components/NavGroup.svelte +160 -0
- package/src/components/NavItem.svelte +346 -0
- package/src/components/NestedDropdown.svelte +62 -0
- package/src/components/NestedMenu.svelte +119 -0
- package/src/components/NotificationToast.svelte +112 -0
- package/src/components/NumberInput.svelte +200 -0
- package/src/components/Panel.svelte +324 -0
- package/src/components/PanelInstance.svelte +254 -0
- package/src/components/PlainTextEditor.svelte +100 -0
- package/src/components/Popup.svelte +50 -0
- package/src/components/PopupInstance.svelte +390 -0
- package/src/components/PopupMenu.svelte +120 -0
- package/src/components/Progress.svelte +124 -0
- package/src/components/ProgressCircle.svelte +71 -0
- package/src/components/RadioButton.svelte +69 -0
- package/src/components/RadioGroup.svelte +42 -0
- package/src/components/RootStatusComponent.svelte +65 -0
- package/src/components/Row.svelte +25 -0
- package/src/components/ScrollBox.svelte +98 -0
- package/src/components/Scroller.svelte +1063 -0
- package/src/components/ScrollerBar.svelte +181 -0
- package/src/components/SearchEdit.svelte +46 -0
- package/src/components/SearchInput.svelte +213 -0
- package/src/components/SearchPicker.svelte +114 -0
- package/src/components/Section.svelte +49 -0
- package/src/components/SectionEmpty.svelte +38 -0
- package/src/components/SelectBox.svelte +76 -0
- package/src/components/SelectPopup.svelte +217 -0
- package/src/components/Separator.svelte +736 -0
- package/src/components/ShowMore.svelte +99 -0
- package/src/components/Spinner.svelte +72 -0
- package/src/components/SplitButton.svelte +100 -0
- package/src/components/StateTag.svelte +79 -0
- package/src/components/Status.svelte +33 -0
- package/src/components/StepsDialog.svelte +290 -0
- package/src/components/StylishEdit.svelte +127 -0
- package/src/components/Submenu.svelte +68 -0
- package/src/components/Switcher.svelte +55 -0
- package/src/components/SwitcherBase.svelte +116 -0
- package/src/components/TabList.svelte +290 -0
- package/src/components/Tabs.svelte +45 -0
- package/src/components/TabsControl.svelte +113 -0
- package/src/components/TextArea.svelte +110 -0
- package/src/components/TextAreaEditor.svelte +78 -0
- package/src/components/TimeLeft.svelte +66 -0
- package/src/components/TimeShiftPicker.svelte +84 -0
- package/src/components/TimeShiftPopup.svelte +64 -0
- package/src/components/TimeShiftPresenter.svelte +59 -0
- package/src/components/TimeSince.svelte +86 -0
- package/src/components/TimeZonesPopup.svelte +185 -0
- package/src/components/Timeline.svelte +754 -0
- package/src/components/Toggle.svelte +116 -0
- package/src/components/ToggleButton.svelte +176 -0
- package/src/components/ToggleWithLabel.svelte +58 -0
- package/src/components/TooltipInstance.svelte +613 -0
- package/src/components/Video.svelte +40 -0
- package/src/components/calendar/DateInputBox.svelte +430 -0
- package/src/components/calendar/DatePicker.svelte +46 -0
- package/src/components/calendar/DatePopup.svelte +274 -0
- package/src/components/calendar/DatePresenter.svelte +392 -0
- package/src/components/calendar/DateRangePicker.svelte +50 -0
- package/src/components/calendar/DateRangePopup.svelte +76 -0
- package/src/components/calendar/DateRangePresenter.svelte +779 -0
- package/src/components/calendar/DateTimePresenter.svelte +23 -0
- package/src/components/calendar/DateTimeRangePresenter.svelte +28 -0
- package/src/components/calendar/DueDatePopup.svelte +93 -0
- package/src/components/calendar/DueDatePresenter.svelte +83 -0
- package/src/components/calendar/Month.svelte +243 -0
- package/src/components/calendar/MonthCalendar.svelte +138 -0
- package/src/components/calendar/MonthSquare.svelte +315 -0
- package/src/components/calendar/RangeDatePopup.svelte +231 -0
- package/src/components/calendar/Shifts.svelte +114 -0
- package/src/components/calendar/SimpleDatePopup.svelte +42 -0
- package/src/components/calendar/SimpleTimePopup.svelte +41 -0
- package/src/components/calendar/TimeInputBox.svelte +282 -0
- package/src/components/calendar/TimePopup.svelte +62 -0
- package/src/components/calendar/WeekCalendar.svelte +116 -0
- package/src/components/calendar/YearCalendar.svelte +67 -0
- package/src/components/calendar/icons/DPCalendar.svelte +12 -0
- package/src/components/calendar/icons/DPCalendarOver.svelte +15 -0
- package/src/components/calendar/icons/DPClock.svelte +13 -0
- package/src/components/calendar/icons/DPClockBold.svelte +10 -0
- package/src/components/calendar/icons/DPEnd.svelte +13 -0
- package/src/components/calendar/icons/DPSetCalendar.svelte +10 -0
- package/src/components/calendar/icons/DPStart.svelte +13 -0
- package/src/components/calendar/internal/DateUtils.ts +186 -0
- package/src/components/emoji/ActionsPopup.svelte +116 -0
- package/src/components/emoji/EmojiButton.svelte +146 -0
- package/src/components/emoji/EmojiGroup.svelte +105 -0
- package/src/components/emoji/EmojiGroupPalette.svelte +58 -0
- package/src/components/emoji/EmojiPopup.svelte +430 -0
- package/src/components/emoji/SkinTonePopup.svelte +40 -0
- package/src/components/emoji/SkinToneTooltip.svelte +36 -0
- package/src/components/emoji/icons/Activities.svelte +20 -0
- package/src/components/emoji/icons/AnimalsAndNature.svelte +16 -0
- package/src/components/emoji/icons/Flags.svelte +14 -0
- package/src/components/emoji/icons/FoodAndDrink.svelte +20 -0
- package/src/components/emoji/icons/FrequentlyUsed.svelte +17 -0
- package/src/components/emoji/icons/GettingWorkDone.svelte +14 -0
- package/src/components/emoji/icons/Objects.svelte +15 -0
- package/src/components/emoji/icons/Search.svelte +14 -0
- package/src/components/emoji/icons/SmileysAndPeople.svelte +23 -0
- package/src/components/emoji/icons/Symbols.svelte +23 -0
- package/src/components/emoji/icons/TravelAndPlaces.svelte +17 -0
- package/src/components/emoji/index.ts +97 -0
- package/src/components/emoji/store.ts +44 -0
- package/src/components/emoji/types.ts +34 -0
- package/src/components/emoji/utils.ts +182 -0
- package/src/components/icons/Activity.svelte +16 -0
- package/src/components/icons/ActivityEdit.svelte +25 -0
- package/src/components/icons/Add.svelte +10 -0
- package/src/components/icons/ArrowLeft.svelte +25 -0
- package/src/components/icons/ArrowRight.svelte +25 -0
- package/src/components/icons/Attachment.svelte +29 -0
- package/src/components/icons/Back.svelte +32 -0
- package/src/components/icons/BlueCheck.svelte +11 -0
- package/src/components/icons/Calendar.svelte +10 -0
- package/src/components/icons/Check.svelte +12 -0
- package/src/components/icons/CheckAll.svelte +27 -0
- package/src/components/icons/CheckCircle.svelte +12 -0
- package/src/components/icons/Checkmark.svelte +26 -0
- package/src/components/icons/ChevronDown.svelte +27 -0
- package/src/components/icons/ChevronLeft.svelte +22 -0
- package/src/components/icons/ChevronRight.svelte +22 -0
- package/src/components/icons/CircleAdd.svelte +13 -0
- package/src/components/icons/Circles.svelte +43 -0
- package/src/components/icons/Close.svelte +10 -0
- package/src/components/icons/ColStar.svelte +31 -0
- package/src/components/icons/CollapseArrow.svelte +8 -0
- package/src/components/icons/Copy.svelte +10 -0
- package/src/components/icons/Delete.svelte +18 -0
- package/src/components/icons/Description.svelte +31 -0
- package/src/components/icons/Details.svelte +36 -0
- package/src/components/icons/DetailsFilled.svelte +27 -0
- package/src/components/icons/Down.svelte +8 -0
- package/src/components/icons/DownOutline.svelte +8 -0
- package/src/components/icons/Dropdown.svelte +8 -0
- package/src/components/icons/DropdownDown.svelte +24 -0
- package/src/components/icons/DropdownRight.svelte +24 -0
- package/src/components/icons/Edit.svelte +26 -0
- package/src/components/icons/Emoji.svelte +10 -0
- package/src/components/icons/Error.svelte +27 -0
- package/src/components/icons/Expand.svelte +10 -0
- package/src/components/icons/File.svelte +25 -0
- package/src/components/icons/Filter.svelte +26 -0
- package/src/components/icons/Folder.svelte +13 -0
- package/src/components/icons/FolderCollapsed.svelte +34 -0
- package/src/components/icons/FolderExpanded.svelte +34 -0
- package/src/components/icons/Forward.svelte +8 -0
- package/src/components/icons/HalfUpDown.svelte +7 -0
- package/src/components/icons/History.svelte +10 -0
- package/src/components/icons/Info.svelte +26 -0
- package/src/components/icons/KeyCommand.svelte +12 -0
- package/src/components/icons/KeyOption.svelte +8 -0
- package/src/components/icons/KeyShift.svelte +8 -0
- package/src/components/icons/Left.svelte +10 -0
- package/src/components/icons/Like.svelte +25 -0
- package/src/components/icons/Link.svelte +10 -0
- package/src/components/icons/MaxWidth.svelte +27 -0
- package/src/components/icons/Maximize.svelte +25 -0
- package/src/components/icons/MenuClose.svelte +28 -0
- package/src/components/icons/MenuOpen.svelte +26 -0
- package/src/components/icons/MinWidth.svelte +27 -0
- package/src/components/icons/Minimize.svelte +28 -0
- package/src/components/icons/Mixin.svelte +38 -0
- package/src/components/icons/MoreH.svelte +16 -0
- package/src/components/icons/MoreV.svelte +16 -0
- package/src/components/icons/MoreV2.svelte +29 -0
- package/src/components/icons/NavNext.svelte +10 -0
- package/src/components/icons/NavPrev.svelte +10 -0
- package/src/components/icons/Open.svelte +11 -0
- package/src/components/icons/OpenedArrow.svelte +26 -0
- package/src/components/icons/Options.svelte +12 -0
- package/src/components/icons/Redo.svelte +10 -0
- package/src/components/icons/Right.svelte +26 -0
- package/src/components/icons/Scale.svelte +13 -0
- package/src/components/icons/ScaleFull.svelte +13 -0
- package/src/components/icons/Scribble.svelte +10 -0
- package/src/components/icons/Search.svelte +12 -0
- package/src/components/icons/Send.svelte +10 -0
- package/src/components/icons/Settings.svelte +13 -0
- package/src/components/icons/Share.svelte +13 -0
- package/src/components/icons/SquareExpand.svelte +13 -0
- package/src/components/icons/Start.svelte +10 -0
- package/src/components/icons/Stop.svelte +8 -0
- package/src/components/icons/TableOfContents.svelte +35 -0
- package/src/components/icons/Thread.svelte +29 -0
- package/src/components/icons/ToDetails.svelte +28 -0
- package/src/components/icons/Undo.svelte +10 -0
- package/src/components/icons/Up.svelte +8 -0
- package/src/components/icons/UpOutline.svelte +8 -0
- package/src/components/internal/Clock.svelte +42 -0
- package/src/components/internal/ClockFace.svelte +148 -0
- package/src/components/internal/ClockPopup.svelte +91 -0
- package/src/components/internal/ErrorBoundary.ts +33 -0
- package/src/components/internal/ErrorComponent.svelte +37 -0
- package/src/components/internal/Root.svelte +323 -0
- package/src/components/internal/RootBarExtension.svelte +32 -0
- package/src/components/internal/Settings.svelte +39 -0
- package/src/components/internal/SettingsPopup.svelte +196 -0
- package/src/components/internal/ThemeButton.svelte +151 -0
- package/src/components/internal/icons/CheckCircled.svelte +11 -0
- package/src/components/internal/icons/Computer.svelte +15 -0
- package/src/components/internal/icons/FontSize.svelte +13 -0
- package/src/components/internal/icons/Language.svelte +17 -0
- package/src/components/internal/icons/Phone.svelte +18 -0
- package/src/components/internal/icons/Search.svelte +12 -0
- package/src/components/internal/icons/Settings.svelte +13 -0
- package/src/components/internal/icons/Theme.svelte +9 -0
- package/src/components/internal/icons/WiFi.svelte +21 -0
- package/src/components/notifications/Notification.svelte +34 -0
- package/src/components/notifications/Notification.ts +16 -0
- package/src/components/notifications/NotificationPosition.ts +6 -0
- package/src/components/notifications/NotificationSeverity.ts +6 -0
- package/src/components/notifications/Notifications.svelte +53 -0
- package/src/components/notifications/actions.ts +42 -0
- package/src/components/notifications/store.ts +16 -0
- package/src/components/wizard/ModernWizardBar.svelte +105 -0
- package/src/components/wizard/ModernWizardDialog.svelte +144 -0
- package/src/components/wizard/Wizard.svelte +59 -0
- package/src/components/wizard/WizardStep.svelte +144 -0
- package/src/focus.ts +139 -0
- package/src/index.ts +338 -0
- package/src/lazy.ts +93 -0
- package/src/location.ts +259 -0
- package/src/modals.ts +5 -0
- package/src/panelup.ts +70 -0
- package/src/plugin.ts +156 -0
- package/src/popups.ts +486 -0
- package/src/resize.ts +179 -0
- package/src/svg.d.ts +4 -0
- package/src/tooltips.ts +152 -0
- package/src/types.ts +545 -0
- package/src/utils.ts +420 -0
- package/svelte.config.js +5 -0
- package/tsconfig.json +9 -0
- package/types/__test__/location.test.d.ts +2 -0
- package/types/__test__/location.test.d.ts.map +1 -0
- package/types/colors.d.ts +163 -0
- package/types/colors.d.ts.map +1 -0
- package/types/components/calendar/internal/DateUtils.d.ts +34 -0
- package/types/components/calendar/internal/DateUtils.d.ts.map +1 -0
- package/types/components/emoji/index.d.ts +11 -0
- package/types/components/emoji/index.d.ts.map +1 -0
- package/types/components/emoji/store.d.ts +12 -0
- package/types/components/emoji/store.d.ts.map +1 -0
- package/types/components/emoji/types.d.ts +20 -0
- package/types/components/emoji/types.d.ts.map +1 -0
- package/types/components/emoji/utils.d.ts +17 -0
- package/types/components/emoji/utils.d.ts.map +1 -0
- package/types/components/internal/ErrorBoundary.d.ts +5 -0
- package/types/components/internal/ErrorBoundary.d.ts.map +1 -0
- package/types/components/notifications/Notification.d.ts +16 -0
- package/types/components/notifications/Notification.d.ts.map +1 -0
- package/types/components/notifications/NotificationPosition.d.ts +7 -0
- package/types/components/notifications/NotificationPosition.d.ts.map +1 -0
- package/types/components/notifications/NotificationSeverity.d.ts +7 -0
- package/types/components/notifications/NotificationSeverity.d.ts.map +1 -0
- package/types/components/notifications/actions.d.ts +6 -0
- package/types/components/notifications/actions.d.ts.map +1 -0
- package/types/components/notifications/store.d.ts +9 -0
- package/types/components/notifications/store.d.ts.map +1 -0
- package/types/focus.d.ts +32 -0
- package/types/focus.d.ts.map +1 -0
- package/types/index.d.ts +254 -0
- package/types/index.d.ts.map +1 -0
- package/types/lazy.d.ts +6 -0
- package/types/lazy.d.ts.map +1 -0
- package/types/location.d.ts +38 -0
- package/types/location.d.ts.map +1 -0
- package/types/modals.d.ts +5 -0
- package/types/modals.d.ts.map +1 -0
- package/types/panelup.d.ts +17 -0
- package/types/panelup.d.ts.map +1 -0
- package/types/plugin.d.ts +135 -0
- package/types/plugin.d.ts.map +1 -0
- package/types/popups.d.ts +65 -0
- package/types/popups.d.ts.map +1 -0
- package/types/resize.d.ts +32 -0
- package/types/resize.d.ts.map +1 -0
- package/types/tooltips.d.ts +8 -0
- package/types/tooltips.d.ts.map +1 -0
- package/types/types.d.ts +373 -0
- package/types/types.d.ts.map +1 -0
- package/types/utils.d.ts +125 -0
- package/types/utils.d.ts.map +1 -0
- package/assets/lux-site-icons/android-chrome-192x192.png +0 -0
- package/assets/lux-site-icons/android-chrome-512x512.png +0 -0
- package/assets/lux-site-icons/apple-touch-icon.png +0 -0
- package/assets/lux-site-icons/favicon-16x16.png +0 -0
- package/assets/lux-site-icons/favicon-32x32.png +0 -0
- package/assets/lux-site-icons/favicon.ico +0 -0
- package/assets/standard-docs/LUX-NFT-Terms-and-Conditions.pdf +0 -0
- package/assets/standard-docs/LUX-Privacy-Policy.pdf +0 -0
- package/blocks/components/accordian-block.tsx +0 -48
- package/blocks/components/block-component-props.ts +0 -11
- package/blocks/components/bullet-cards-block.tsx +0 -45
- package/blocks/components/card-block.tsx +0 -213
- package/blocks/components/carte-blanche-block/index.tsx +0 -127
- package/blocks/components/carte-blanche-block/variant-content-left.tsx +0 -49
- package/blocks/components/content.tsx +0 -70
- package/blocks/components/cta-block.tsx +0 -98
- package/blocks/components/enh-heading-block.tsx +0 -205
- package/blocks/components/grid-block/grid-block-mutator.ts +0 -12
- package/blocks/components/grid-block/index.tsx +0 -83
- package/blocks/components/grid-block/mutator-registry.ts +0 -10
- package/blocks/components/grid-block/table-borders.mutator.ts +0 -47
- package/blocks/components/group-block.tsx +0 -83
- package/blocks/components/heading-block.tsx +0 -88
- package/blocks/components/image-block.tsx +0 -108
- package/blocks/components/index.ts +0 -30
- package/blocks/components/screenful-block/content.tsx +0 -120
- package/blocks/components/screenful-block/index.tsx +0 -79
- package/blocks/components/screenful-block/poster-background.tsx +0 -34
- package/blocks/components/screenful-block/video-background.tsx +0 -45
- package/blocks/components/space-block.tsx +0 -66
- package/blocks/components/video-block.tsx +0 -137
- package/blocks/def/accordian-block.ts +0 -14
- package/blocks/def/block.ts +0 -7
- package/blocks/def/bullet-cards-block.ts +0 -21
- package/blocks/def/card-block.ts +0 -24
- package/blocks/def/carte-blanche-block.ts +0 -21
- package/blocks/def/cta-block.ts +0 -19
- package/blocks/def/element-block.ts +0 -11
- package/blocks/def/enh-heading-block.ts +0 -45
- package/blocks/def/grid-block.ts +0 -16
- package/blocks/def/group-block.ts +0 -11
- package/blocks/def/heading-block.ts +0 -15
- package/blocks/def/image-block.ts +0 -31
- package/blocks/def/index.ts +0 -35
- package/blocks/def/screenful-block.ts +0 -54
- package/blocks/def/space-block.ts +0 -64
- package/blocks/def/video-block.ts +0 -28
- package/blocks/index.ts +0 -2
- package/common/chat-widget.tsx +0 -75
- package/common/contact-dialog/contact-form.tsx +0 -111
- package/common/contact-dialog/disclaimer.tsx +0 -13
- package/common/contact-dialog/index.tsx +0 -48
- package/common/copyright.tsx +0 -21
- package/common/drawer-menu.tsx +0 -51
- package/common/footer.tsx +0 -77
- package/common/head-metadata/from-next/metadata-types.ts +0 -158
- package/common/head-metadata/from-next/opengraph-types.ts +0 -267
- package/common/head-metadata/from-next/twitter-types.ts +0 -92
- package/common/head-metadata/index.tsx +0 -208
- package/common/header/index.tsx +0 -57
- package/common/header/mobile-nav.tsx +0 -72
- package/common/header/theme-toggle.tsx +0 -26
- package/common/icons/github.tsx +0 -14
- package/common/icons/index.tsx +0 -34
- package/common/icons/lux-logo.tsx +0 -10
- package/common/icons/secure-delivery.tsx +0 -13
- package/common/icons/social-icon.tsx +0 -35
- package/common/icons/youtube-logo.tsx +0 -59
- package/common/index.ts +0 -14
- package/common/logo.tsx +0 -71
- package/common/mini-chart/index.tsx +0 -8
- package/common/mini-chart/mini-chart-props.ts +0 -44
- package/common/mini-chart/mini-chart.tsx +0 -76
- package/common/mini-chart/wrapper.tsx +0 -23
- package/context-providers/index.ts +0 -1
- package/context-providers/theme-provider.tsx +0 -20
- package/next/README.md +0 -11
- package/next/analytics/fpixel.ts +0 -16
- package/next/analytics/pixel-analytics.tsx +0 -55
- package/next/determine-device-middleware.ts +0 -16
- package/next/fonts/DrukTextWide-Bold-Trial.otf +0 -0
- package/next/fonts/DrukTextWide-Heavy-Trial.otf +0 -0
- package/next/fonts/DrukTextWide-Medium-Trial.otf +0 -0
- package/next/fonts/DrukWide-Bold-Trial.otf +0 -0
- package/next/fonts/DrukWide-Heavy-Trial.otf +0 -0
- package/next/fonts/DrukWide-Medium-Trial.otf +0 -0
- package/next/get-app-router-font-classes.ts +0 -12
- package/next/load-and-return-lux-next-fonts-on-import.ts +0 -94
- package/next/next-font-desc.ts +0 -28
- package/next/not-found-content.mdx +0 -4
- package/next/not-found.tsx +0 -23
- package/next/pages-router-font-vars.tsx +0 -18
- package/next/root-layout.tsx +0 -60
- package/primitives/accordion.tsx +0 -61
- package/primitives/action-button.tsx +0 -46
- package/primitives/apply-typography.tsx +0 -55
- package/primitives/avatar.tsx +0 -49
- package/primitives/badge.tsx +0 -36
- package/primitives/button.tsx +0 -73
- package/primitives/calendar.tsx +0 -72
- package/primitives/card.tsx +0 -83
- package/primitives/checkbox.tsx +0 -32
- package/primitives/command.tsx +0 -155
- package/primitives/dialog-video-controller.tsx +0 -38
- package/primitives/dialog.tsx +0 -152
- package/primitives/form.tsx +0 -179
- package/primitives/index.ts +0 -144
- package/primitives/inline-icon.tsx +0 -37
- package/primitives/input.tsx +0 -30
- package/primitives/label.tsx +0 -28
- package/primitives/link-element.tsx +0 -104
- package/primitives/main.tsx +0 -17
- package/primitives/mdx-link.tsx +0 -22
- package/primitives/nav-items.tsx +0 -48
- package/primitives/popover.tsx +0 -35
- package/primitives/progress.tsx +0 -27
- package/primitives/scroll-area.tsx +0 -47
- package/primitives/select.tsx +0 -169
- package/primitives/separator.tsx +0 -29
- package/primitives/sheet.tsx +0 -175
- package/primitives/skeleton.tsx +0 -15
- package/primitives/switch.tsx +0 -33
- package/primitives/table.tsx +0 -117
- package/primitives/tabs.tsx +0 -60
- package/primitives/tailwind-indicator.tsx +0 -19
- package/primitives/text-area.tsx +0 -26
- package/primitives/toast.tsx +0 -129
- package/primitives/toaster.tsx +0 -37
- package/primitives/use-toast.ts +0 -192
- package/primitives/video-player.tsx +0 -26
- package/primitives/youtube-embed.tsx +0 -83
- package/siteDef/footer/community.tsx +0 -67
- package/siteDef/footer/company.ts +0 -37
- package/siteDef/footer/ecosystem.ts +0 -37
- package/siteDef/footer/index.tsx +0 -26
- package/siteDef/footer/legal.ts +0 -28
- package/siteDef/footer/network.ts +0 -33
- package/siteDef/footer/svg/warpcast-logo.svg +0 -12
- package/siteDef/main-nav.ts +0 -35
- package/style/globals.css +0 -13
- package/style/hanzo-common.css +0 -32
- package/style/hanzo-default-colors.css +0 -79
- package/style/social-svg.css +0 -3
- package/tailwind/colors.tailwind.js +0 -46
- package/tailwind/fonts.tailwind.ts +0 -31
- package/tailwind/index.ts +0 -18
- package/tailwind/lux-tw-fonts.ts +0 -37
- package/tailwind/safelist.tailwind.js +0 -26
- package/tailwind/screens.tailwind.js +0 -8
- package/tailwind/spacing.tailwind.js +0 -65
- package/tailwind/tailwind.config.base.js +0 -906
- package/tailwind/tw-font-desc.ts +0 -15
- package/tailwind/typo-plugin/get-plugin-styles.js +0 -676
- package/tailwind/typo-plugin/index.d.ts +0 -9
- package/tailwind/typo-plugin/index.js +0 -141
- package/tailwind/typo-plugin/utils.js +0 -60
- package/tailwind/typography-test.mdx +0 -36
- package/types/breakpoints.ts +0 -11
- package/types/bullet-item.ts +0 -10
- package/types/button-def.ts +0 -39
- package/types/contact-info.ts +0 -11
- package/types/dimensions.ts +0 -20
- package/types/grid-def.ts +0 -56
- package/types/icon.ts +0 -10
- package/types/image-def.ts +0 -28
- package/types/index.ts +0 -29
- package/types/link-def.ts +0 -59
- package/types/site-def.ts +0 -34
- package/types/t-shirt-size.ts +0 -5
- package/util/index.ts +0 -81
- package/util/specifier.ts +0 -43
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import type { Metadata } from 'next'
|
|
4
|
-
import Head from "next/head"
|
|
5
|
-
|
|
6
|
-
import type {
|
|
7
|
-
IconDescriptor,
|
|
8
|
-
TemplateString,
|
|
9
|
-
Author,
|
|
10
|
-
ThemeColorDescriptor
|
|
11
|
-
} from './from-next/metadata-types'
|
|
12
|
-
|
|
13
|
-
import type { OpenGraph, OGImage } from './from-next/opengraph-types'
|
|
14
|
-
import type { Twitter, TwitterImage } from './from-next/twitter-types'
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
NOTE: This is ONLY for sites that use the pages router in next.
|
|
18
|
-
The app router does this automatically
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
const getURLasString = (url: string | URL) => {
|
|
22
|
-
return (
|
|
23
|
-
(typeof url === 'string') ? (url as string) : (url.href)
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// https://stackoverflow.com/questions/68746228/next-head-wont-render-meta-tags-inside-of-fragment
|
|
28
|
-
const Icons: React.FC<{icons: IconDescriptor[]}> = ({
|
|
29
|
-
icons
|
|
30
|
-
}) => {
|
|
31
|
-
return <Head>
|
|
32
|
-
{icons.map(({url, ...rest}: IconDescriptor, index) => (
|
|
33
|
-
<link {...rest} href={getURLasString(url)} key={`icons-${index}`}/>
|
|
34
|
-
))}
|
|
35
|
-
</Head>
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export const getTitleFromTemplateString = (title: string | TemplateString | null | undefined): string | null => {
|
|
39
|
-
|
|
40
|
-
if (!title) {
|
|
41
|
-
return null
|
|
42
|
-
}
|
|
43
|
-
if (typeof title === 'object') {
|
|
44
|
-
if ('default' in title) {
|
|
45
|
-
return title.default
|
|
46
|
-
}
|
|
47
|
-
else if ('absolute' in title) {
|
|
48
|
-
return title.absolute
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return title as string
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const Authors: React.FC<{
|
|
55
|
-
authors: null | undefined | Author | Array<Author>
|
|
56
|
-
}> = ({
|
|
57
|
-
authors
|
|
58
|
-
}) => {
|
|
59
|
-
|
|
60
|
-
const Author: React.FC<{author: Author}> = ({author}) => (<>
|
|
61
|
-
{author.name && <meta name="author" content={author.name} />}
|
|
62
|
-
{author.url && <link rel="author" href={getURLasString(author.url)}/>}
|
|
63
|
-
</>)
|
|
64
|
-
|
|
65
|
-
if (!authors) {
|
|
66
|
-
return null
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (Array.isArray(authors)) {
|
|
70
|
-
return (<>
|
|
71
|
-
{authors.map((el: Author, index) => (
|
|
72
|
-
<Author author={el} key={`authors-${index}`} />
|
|
73
|
-
))}
|
|
74
|
-
</>)
|
|
75
|
-
}
|
|
76
|
-
return (<Author author={authors as Author} />)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
const Keywords: React.FC<{keywords: undefined | null | string | Array<string>}> = ({
|
|
80
|
-
keywords
|
|
81
|
-
}) => {
|
|
82
|
-
if (!keywords) return null
|
|
83
|
-
const content = (Array.isArray(keywords) ? keywords.join(', ') : keywords as string)
|
|
84
|
-
return (<meta name="keywords" content={content} />)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const ThemeColor: React.FC<{
|
|
88
|
-
thColors: null | undefined | string | ThemeColorDescriptor | ThemeColorDescriptor[]
|
|
89
|
-
}> = ({
|
|
90
|
-
thColors
|
|
91
|
-
}) => {
|
|
92
|
-
|
|
93
|
-
const ThColor: React.FC<{thColor: ThemeColorDescriptor}> = ({thColor}) => {
|
|
94
|
-
const toSpread: any = {
|
|
95
|
-
content: thColor.color
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if ('media' in thColor) {
|
|
99
|
-
toSpread.media = thColor.media
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return <meta name="theme-color" {...toSpread}/>
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
if (!thColors) {
|
|
106
|
-
return null
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (Array.isArray(thColors)) {
|
|
110
|
-
return (<>
|
|
111
|
-
{thColors.map((el: ThemeColorDescriptor, index) => (
|
|
112
|
-
<ThColor thColor={el} key={`theme-colors-${index}`} />
|
|
113
|
-
))}
|
|
114
|
-
</>)
|
|
115
|
-
}
|
|
116
|
-
else if (typeof thColors === 'string') {
|
|
117
|
-
<meta name="theme-color" content={thColors as string}/>
|
|
118
|
-
}
|
|
119
|
-
return (<ThColor thColor={thColors as ThemeColorDescriptor} />)
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
const Manifest: React.FC<{
|
|
123
|
-
manifest: undefined | null | string | URL
|
|
124
|
-
}> = ({
|
|
125
|
-
manifest
|
|
126
|
-
}) => (
|
|
127
|
-
manifest && (<link rel="manifest" href={getURLasString(manifest)}/>)
|
|
128
|
-
)
|
|
129
|
-
|
|
130
|
-
const getOGImageURL = (img: OGImage | undefined): string | null => {
|
|
131
|
-
|
|
132
|
-
if (!img) {
|
|
133
|
-
return null
|
|
134
|
-
}
|
|
135
|
-
if (typeof img === 'object' && 'url' in img) { // this is a OGImageDescriptor
|
|
136
|
-
return getURLasString(img.url)
|
|
137
|
-
}
|
|
138
|
-
return getURLasString(img) // this is a URL or string
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
const getTwitterImageURL = (img: TwitterImage | undefined): string | null => {
|
|
142
|
-
|
|
143
|
-
if (!img) {
|
|
144
|
-
return null
|
|
145
|
-
}
|
|
146
|
-
if (typeof img === 'object' && 'url' in img) { // this is a TwitterImageDescriptor
|
|
147
|
-
return getURLasString(img.url)
|
|
148
|
-
}
|
|
149
|
-
return getURLasString(img) // this is a URL or string
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// https://stackoverflow.com/questions/68746228/next-head-wont-render-meta-tags-inside-of-fragment
|
|
153
|
-
const OpenGraphComponent: React.FC<{
|
|
154
|
-
og: OpenGraph | undefined | null
|
|
155
|
-
}> = ({
|
|
156
|
-
og
|
|
157
|
-
}) => (og && (<Head>
|
|
158
|
-
{og.url && (<meta property="og:url" content={(typeof og.url === 'string') ? (og.url as string) : (og.url.href)} />)}
|
|
159
|
-
{(og as any).type && (<meta property="og:type" content={(og as any).type} />)}
|
|
160
|
-
{og.title && (<meta property="og:title" content={getTitleFromTemplateString(og.title)!} />)}
|
|
161
|
-
{og.description && (<meta property="og:description" content={og.description} />)}
|
|
162
|
-
{og.images && (<meta property="og:image" content={getOGImageURL(Array.isArray(og.images) ? og.images[0] : og.images)!} />)}
|
|
163
|
-
</Head>))
|
|
164
|
-
|
|
165
|
-
// https://stackoverflow.com/questions/68746228/next-head-wont-render-meta-tags-inside-of-fragment
|
|
166
|
-
export const TwitterComponent: React.FC<{
|
|
167
|
-
tw: Twitter | undefined | null
|
|
168
|
-
}> = ({
|
|
169
|
-
tw
|
|
170
|
-
}) => (tw && (<Head>
|
|
171
|
-
{(tw as any).card && (<meta name="twitter:card" content={(tw as any).card} />)}
|
|
172
|
-
{tw.title && (<meta name="twitter:title" content={getTitleFromTemplateString(tw.title)!} />)}
|
|
173
|
-
{tw.description && (<meta name="twitter:description" content={tw.description} />)}
|
|
174
|
-
{tw.images && (<meta name="twitter:image" content={getTwitterImageURL(Array.isArray(tw.images) ? tw.images[0] : tw.images)!} />)}
|
|
175
|
-
{tw.site && (<meta name="twitter:site" content={tw.site} />)}
|
|
176
|
-
</Head>))
|
|
177
|
-
|
|
178
|
-
/* See NOTE at top of file! */
|
|
179
|
-
// https://stackoverflow.com/questions/68746228/next-head-wont-render-meta-tags-inside-of-fragment
|
|
180
|
-
const HeadMetadataComponent: React.FC<{
|
|
181
|
-
metadata: Metadata
|
|
182
|
-
}> = ({
|
|
183
|
-
metadata
|
|
184
|
-
}) => {
|
|
185
|
-
const mainTitle = getTitleFromTemplateString(metadata.title)
|
|
186
|
-
|
|
187
|
-
return (<>
|
|
188
|
-
<Head>
|
|
189
|
-
{mainTitle && (<title>{mainTitle}</title>) /* must be here, directly under Head component */}
|
|
190
|
-
{metadata.description && (
|
|
191
|
-
<meta name="description" content={metadata.description} />
|
|
192
|
-
)}
|
|
193
|
-
{metadata.applicationName && (
|
|
194
|
-
<meta name="application-name" content={metadata.applicationName} />
|
|
195
|
-
)}
|
|
196
|
-
<Authors authors={metadata.authors} />
|
|
197
|
-
<Keywords keywords={metadata.keywords} />
|
|
198
|
-
<ThemeColor thColors={metadata.themeColor} />
|
|
199
|
-
<Manifest manifest={metadata.manifest} />
|
|
200
|
-
</Head>
|
|
201
|
-
{/* Icons: We only support this format for now */}
|
|
202
|
-
<Icons icons={metadata.icons as IconDescriptor[]} />
|
|
203
|
-
<OpenGraphComponent og={metadata.openGraph} />
|
|
204
|
-
<TwitterComponent tw={metadata.twitter} />
|
|
205
|
-
</>)
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export default HeadMetadataComponent
|
package/common/header/index.tsx
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import type { SiteDef } from '../../types'
|
|
4
|
-
import { NavItems } from '../../primitives'
|
|
5
|
-
import { Icons, DrawerMenu, Logo } from '..'
|
|
6
|
-
import { cn } from '../../util'
|
|
7
|
-
|
|
8
|
-
import MobileNav from './mobile-nav'
|
|
9
|
-
|
|
10
|
-
const Header: React.FC<{
|
|
11
|
-
siteDef: SiteDef
|
|
12
|
-
className?: string
|
|
13
|
-
}> = ({
|
|
14
|
-
siteDef,
|
|
15
|
-
className = ''
|
|
16
|
-
}) => {
|
|
17
|
-
|
|
18
|
-
const { nav: { common, featured }} = siteDef
|
|
19
|
-
const allElements = (featured) ? [...common, ...featured] : common
|
|
20
|
-
// TODO move 13px into a size class and configure twMerge to recognize say, 'text-size-nav'
|
|
21
|
-
// (vs be beat out by 'text-color-nav')
|
|
22
|
-
const navItemClx = 'font-nav h-8 tracking-[-0.3px] !text-[13px]/[13px]'
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<header className={cn('bg-background sticky z-10 top-0 ', className)} >
|
|
26
|
-
{/* md or larger */}
|
|
27
|
-
<div className="hidden md:flex flex-row md:h-[80px] items-center justify-between px-[32px] 2xl:mx-auto max-w-screen-2xl">
|
|
28
|
-
<Logo size='md' className='hidden lg:flex' key='two'/>
|
|
29
|
-
<Logo size='sm' className='hidden md:flex lg:hidden' key='one'/>
|
|
30
|
-
{/* md or larger */}
|
|
31
|
-
<NavItems
|
|
32
|
-
currentAs={siteDef.currentAs}
|
|
33
|
-
items={allElements}
|
|
34
|
-
className='hidden md:flex md:gap-4 lg:justify-between lg:gap-7 '
|
|
35
|
-
itemClx={navItemClx}
|
|
36
|
-
key='three'
|
|
37
|
-
/>
|
|
38
|
-
</div>
|
|
39
|
-
{/* smaller than md: mobile style drawer menu */}
|
|
40
|
-
<div className="flex md:hidden h-[44px] items-center justify-between px-2">
|
|
41
|
-
<Logo size='sm' />
|
|
42
|
-
<DrawerMenu
|
|
43
|
-
className='p-0 text-primary' // ui has 'text-inherit', so need this for close buttons to appear.
|
|
44
|
-
trigger={<Icons.burger className='h-7 w-7'/>}
|
|
45
|
-
>
|
|
46
|
-
<MobileNav
|
|
47
|
-
siteDef={siteDef}
|
|
48
|
-
className='pt-12'
|
|
49
|
-
commonItemClx='px-10 text-l h-10 justify-start border-b rounded-none'
|
|
50
|
-
/>
|
|
51
|
-
</DrawerMenu>
|
|
52
|
-
</div>
|
|
53
|
-
</header>
|
|
54
|
-
)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export default Header
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
|
|
4
|
-
import { type ButtonVariants, LinkElement } from '../../primitives'
|
|
5
|
-
import type { LinkDef, SiteDef } from '../../types'
|
|
6
|
-
import { cn } from '../../util'
|
|
7
|
-
|
|
8
|
-
const MobileNav: React.FC<{
|
|
9
|
-
siteDef: SiteDef
|
|
10
|
-
className?: string
|
|
11
|
-
commonItemClx?: string | ((def: LinkDef) => string),
|
|
12
|
-
/**
|
|
13
|
-
* This is called *in addition* to the link's actual navigation
|
|
14
|
-
* action. eg, I link is clicked, and the modal menu is closes
|
|
15
|
-
*/
|
|
16
|
-
onAction?: () => void
|
|
17
|
-
}> = ({
|
|
18
|
-
siteDef,
|
|
19
|
-
onAction,
|
|
20
|
-
className='',
|
|
21
|
-
commonItemClx,
|
|
22
|
-
}) => {
|
|
23
|
-
|
|
24
|
-
const { nav: { common, featured }} = siteDef
|
|
25
|
-
|
|
26
|
-
return (common.length || featured?.length) ? (
|
|
27
|
-
<nav className={className} >
|
|
28
|
-
{common.map((el, index) => {
|
|
29
|
-
const variant = el.variant ?? 'link'
|
|
30
|
-
let internalClx = ''
|
|
31
|
-
// note that linkFG (or any other variant of 'link')
|
|
32
|
-
// will not get assigned these classes,
|
|
33
|
-
// and will remain styles is 'foreground' (hence the name)
|
|
34
|
-
if (variant === 'link') {
|
|
35
|
-
internalClx+= ' text-nav hover:text-nav-hover active:text-nav-hover '
|
|
36
|
-
if (siteDef.currentAs && siteDef.currentAs === el.href) {
|
|
37
|
-
internalClx += ' text-nav-current'
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
internalClx+= ' min-w-0'
|
|
42
|
-
}
|
|
43
|
-
if (siteDef.currentAs && siteDef.currentAs === el.href) {
|
|
44
|
-
internalClx += ' pointer-events-none'
|
|
45
|
-
}
|
|
46
|
-
const itemClx = (commonItemClx) ? (typeof commonItemClx === 'string' ? commonItemClx : commonItemClx(el)) : ''
|
|
47
|
-
|
|
48
|
-
return (
|
|
49
|
-
<LinkElement
|
|
50
|
-
def={el}
|
|
51
|
-
key={`common-${index}`}
|
|
52
|
-
size='lg'
|
|
53
|
-
className={cn(internalClx, itemClx)}
|
|
54
|
-
onClick = {onAction}
|
|
55
|
-
/>
|
|
56
|
-
)
|
|
57
|
-
})}
|
|
58
|
-
{featured?.length && (featured.map((el, index) => (
|
|
59
|
-
<LinkElement
|
|
60
|
-
def={el}
|
|
61
|
-
key={`featured-${index}`}
|
|
62
|
-
size='lg'
|
|
63
|
-
className='mt-6 w-4/5 mx-auto'
|
|
64
|
-
onClick={onAction}
|
|
65
|
-
/>
|
|
66
|
-
)))}
|
|
67
|
-
</nav>
|
|
68
|
-
)
|
|
69
|
-
: null
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export default MobileNav
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import React from 'react'
|
|
4
|
-
import { Moon, Sun } from 'lucide-react'
|
|
5
|
-
import { useTheme } from 'next-themes'
|
|
6
|
-
|
|
7
|
-
import { Button } from '../../primitives'
|
|
8
|
-
|
|
9
|
-
const ThemeToggle: React.FC = () => {
|
|
10
|
-
|
|
11
|
-
const { setTheme, theme } = useTheme()
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<Button
|
|
15
|
-
variant='ghost'
|
|
16
|
-
size='icon'
|
|
17
|
-
onClick={() => {setTheme(theme === 'light' ? 'dark' : 'light')}}
|
|
18
|
-
>
|
|
19
|
-
<Sun className='h-[1.5rem] w-[1.3rem] dark:hidden' />
|
|
20
|
-
<Moon className='hidden h-5 w-5 dark:block' />
|
|
21
|
-
<span className='sr-only'>Toggle theme</span>
|
|
22
|
-
</Button>
|
|
23
|
-
)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default ThemeToggle
|
package/common/icons/github.tsx
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { type LucideProps } from 'lucide-react'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const GitHub: React.FC<LucideProps> = (props: LucideProps) => (
|
|
6
|
-
<svg viewBox="0 0 438.549 438.549" {...props}>
|
|
7
|
-
<path
|
|
8
|
-
fill="currentColor"
|
|
9
|
-
d="M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
|
10
|
-
></path>
|
|
11
|
-
</svg>
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
export default GitHub
|
package/common/icons/index.tsx
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Moon as moon,
|
|
3
|
-
SunMedium as sun,
|
|
4
|
-
Menu as burger,
|
|
5
|
-
ArrowUpRight as linkOut,
|
|
6
|
-
type XIcon as LucideIcon,
|
|
7
|
-
} from 'lucide-react'
|
|
8
|
-
|
|
9
|
-
import gitHub from './github'
|
|
10
|
-
import logo from './lux-logo'
|
|
11
|
-
import youtube from './youtube-logo'
|
|
12
|
-
import secureDelivery from './secure-delivery'
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
type SocialIconProps,
|
|
16
|
-
default as SocialIcon
|
|
17
|
-
} from './social-icon'
|
|
18
|
-
|
|
19
|
-
export { type LucideIcon as Icon, type SocialIconProps }
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
sun,
|
|
24
|
-
moon,
|
|
25
|
-
logo,
|
|
26
|
-
burger,
|
|
27
|
-
gitHub,
|
|
28
|
-
linkOut,
|
|
29
|
-
youtube,
|
|
30
|
-
secureDelivery,
|
|
31
|
-
SocialIcon,
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { type LucideProps } from 'lucide-react'
|
|
3
|
-
|
|
4
|
-
const LuxLogo: React.FC<LucideProps> = (props: LucideProps) => (
|
|
5
|
-
<svg fill='currentColor' viewBox="0 0 260 260" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
6
|
-
<path d="M5,5H265L135,230"/>
|
|
7
|
-
</svg>
|
|
8
|
-
)
|
|
9
|
-
|
|
10
|
-
export default LuxLogo
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { type LucideProps } from 'lucide-react'
|
|
3
|
-
|
|
4
|
-
// width="52" height="36"
|
|
5
|
-
const SecureDelivery: React.FC<LucideProps> = (props: LucideProps) => (
|
|
6
|
-
<svg fill="currentColor" viewBox="0 0 52 36" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
-
<path d="M47.7611 24.5439H42.822L39.5293 14.9971H12.0732L8.7805 24.5439H2.96342L0 36.0001H51.7127L47.7611 24.5439ZM38.4147 16.9064L41.0488 24.5439H28.0049L25.3708 16.9064H38.4147ZM13.1879 16.9064H23.5976L26.2317 24.5439H10.5528L13.1879 16.9064ZM2.21225 34.0907L4.18786 26.4532H14.4865L16.4621 34.0907H2.21225ZM17.6804 32.1537L16.2061 26.4531H19.646L17.6804 32.1537ZM28.2706 34.0907H18.7854L21.4196 26.4532H31.8293L34.4634 34.0907H28.2706ZM36.2367 34.0907L33.6025 26.4532H46.6473L49.2814 34.0907H36.2367Z" />
|
|
8
|
-
<path d="M10.0843 0.108973C10.1056 -0.0363242 10.2915 -0.0363242 10.3128 0.108973L10.5061 1.43021C10.9095 4.18489 12.8287 6.34425 15.2772 6.79764L16.4515 7.01512C16.5808 7.03912 16.5808 7.24823 16.4515 7.27223L15.2772 7.4897C12.8286 7.94345 10.9091 10.1026 10.5061 12.8571L10.3128 14.1782C10.2915 14.3237 10.1056 14.3237 10.0843 14.1782L9.89096 12.8571C9.48763 10.1025 7.56837 7.9431 5.11989 7.4897L3.94562 7.27223C3.8163 7.24823 3.8163 7.03912 3.94562 7.01512L5.11989 6.79764C7.5685 6.3439 9.48794 4.18475 9.89096 1.43021L10.0843 0.108973Z" />
|
|
9
|
-
<path d="M22.034 0.0726485C22.0473 -0.0242162 22.1635 -0.0242162 22.1768 0.0726485L22.2977 0.953473C22.5497 2.78993 23.7493 4.2295 25.2796 4.53176L26.0135 4.67675C26.0943 4.69275 26.0943 4.83215 26.0135 4.84815L25.2796 4.99314C23.7492 5.29563 22.5495 6.73507 22.2977 8.57142L22.1768 9.45212C22.1635 9.54911 22.0473 9.54911 22.034 9.45212L21.9132 8.57142C21.6611 6.73497 20.4616 5.2954 18.9313 4.99314L18.1973 4.84815C18.1165 4.83215 18.1165 4.69275 18.1973 4.67675L18.9313 4.53176C20.4616 4.22926 21.6613 2.78983 21.9132 0.953473L22.034 0.0726485Z" />
|
|
10
|
-
</svg>
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
export default SecureDelivery
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import { SocialIcon as BaseSocialIcon } from 'react-social-icons'
|
|
4
|
-
|
|
5
|
-
import { cn } from '../../util'
|
|
6
|
-
import '../../style/social-svg.css'
|
|
7
|
-
|
|
8
|
-
interface SocialIconProps {
|
|
9
|
-
// one of these: https://github.com/couetilc/react-social-icons/tree/main/db
|
|
10
|
-
network: string
|
|
11
|
-
size: number
|
|
12
|
-
className?: string
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const SocialIcon: React.FC<SocialIconProps> = ({
|
|
16
|
-
network,
|
|
17
|
-
size,
|
|
18
|
-
className = ''
|
|
19
|
-
}) => (
|
|
20
|
-
<BaseSocialIcon
|
|
21
|
-
network={network}
|
|
22
|
-
as='div'
|
|
23
|
-
// This is set up so the enclosing element sets the color.
|
|
24
|
-
// For example, something like 'color-foreground hover:color-muted-1'
|
|
25
|
-
className={cn('color-inherit', className)}
|
|
26
|
-
bgColor='transparent'
|
|
27
|
-
fgColor='currentColor'
|
|
28
|
-
style={{height: size, width: size}}
|
|
29
|
-
/>
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
type SocialIconProps,
|
|
34
|
-
SocialIcon as default
|
|
35
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { type LucideProps } from 'lucide-react'
|
|
3
|
-
|
|
4
|
-
const YouTubeLogo: React.FC<LucideProps> = (props: LucideProps) => (
|
|
5
|
-
<svg
|
|
6
|
-
viewBox="0 0 256 256"
|
|
7
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
{...props}
|
|
9
|
-
>
|
|
10
|
-
<g
|
|
11
|
-
style={{
|
|
12
|
-
stroke: 'none',
|
|
13
|
-
strokeWidth: 0,
|
|
14
|
-
strokeDasharray: 'none',
|
|
15
|
-
strokeLinecap: 'butt',
|
|
16
|
-
strokeLinejoin: 'miter',
|
|
17
|
-
strokeMiterlimit: 10,
|
|
18
|
-
fill: 'none',
|
|
19
|
-
fillRule: 'nonzero',
|
|
20
|
-
opacity: 1
|
|
21
|
-
}}
|
|
22
|
-
transform="translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)"
|
|
23
|
-
>
|
|
24
|
-
<path
|
|
25
|
-
d="M 88.119 23.338 c -1.035 -3.872 -4.085 -6.922 -7.957 -7.957 C 73.144 13.5 45 13.5 45 13.5 s -28.144 0 -35.162 1.881 c -3.872 1.035 -6.922 4.085 -7.957 7.957 C 0 30.356 0 45 0 45 s 0 14.644 1.881 21.662 c 1.035 3.872 4.085 6.922 7.957 7.957 C 16.856 76.5 45 76.5 45 76.5 s 28.144 0 35.162 -1.881 c 3.872 -1.035 6.922 -4.085 7.957 -7.957 C 90 59.644 90 45 90 45 S 90 30.356 88.119 23.338 z"
|
|
26
|
-
style={{
|
|
27
|
-
stroke: 'none',
|
|
28
|
-
strokeWidth: 1,
|
|
29
|
-
strokeDasharray: 'none',
|
|
30
|
-
strokeLinecap: 'butt',
|
|
31
|
-
strokeLinejoin: 'miter',
|
|
32
|
-
strokeMiterlimit: 10,
|
|
33
|
-
fill: 'red',
|
|
34
|
-
fillRule: 'nonzero',
|
|
35
|
-
opacity: 1
|
|
36
|
-
}}
|
|
37
|
-
transform=" matrix(1 0 0 1 0 0) "
|
|
38
|
-
strokeLinecap="round"
|
|
39
|
-
/>
|
|
40
|
-
<polygon
|
|
41
|
-
points="36,58.5 59.38,45 36,31.5 "
|
|
42
|
-
style={{
|
|
43
|
-
stroke: 'none',
|
|
44
|
-
strokeWidth: 1,
|
|
45
|
-
strokeDasharray: 'none',
|
|
46
|
-
strokeLinecap: 'butt',
|
|
47
|
-
strokeLinejoin: 'miter',
|
|
48
|
-
strokeMiterlimit: 10,
|
|
49
|
-
fill: 'white',
|
|
50
|
-
fillRule: 'nonzero',
|
|
51
|
-
opacity: 1
|
|
52
|
-
}}
|
|
53
|
-
transform="matrix(1 0 0 1 0 0)"
|
|
54
|
-
/>
|
|
55
|
-
</g>
|
|
56
|
-
</svg>
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
export default YouTubeLogo
|
package/common/index.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { default as ChatWidget } from './chat-widget'
|
|
2
|
-
export { default as ContactDialog } from './contact-dialog'
|
|
3
|
-
export { default as Copyright} from './copyright'
|
|
4
|
-
export { default as DrawerMenu } from './drawer-menu'
|
|
5
|
-
export { default as Footer } from './footer'
|
|
6
|
-
export { default as Header } from './header'
|
|
7
|
-
export {
|
|
8
|
-
default as HeadMetadata,
|
|
9
|
-
getTitleFromTemplateString,
|
|
10
|
-
TwitterComponent
|
|
11
|
-
} from './head-metadata'
|
|
12
|
-
export * as Icons from './icons'
|
|
13
|
-
export { default as Logo } from './logo'
|
|
14
|
-
export { default as MiniChart } from './mini-chart'
|
package/common/logo.tsx
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Link from 'next/link'
|
|
3
|
-
|
|
4
|
-
import { type TShirtSize } from '../types'
|
|
5
|
-
import { cn } from '../util'
|
|
6
|
-
import { Icons } from '.'
|
|
7
|
-
|
|
8
|
-
const Logo: React.FC<{
|
|
9
|
-
size?: TShirtSize
|
|
10
|
-
logoOnly?: boolean
|
|
11
|
-
href?: string
|
|
12
|
-
className?: string
|
|
13
|
-
}> = ({
|
|
14
|
-
size,
|
|
15
|
-
href, // no default please!
|
|
16
|
-
className='',
|
|
17
|
-
logoOnly=false
|
|
18
|
-
}) => {
|
|
19
|
-
let classes: any = {}
|
|
20
|
-
const toAdd = (logoOnly) ? {
|
|
21
|
-
span: ' hidden',
|
|
22
|
-
icon: ' mr-r'
|
|
23
|
-
} : {
|
|
24
|
-
span: '',
|
|
25
|
-
icon: ''
|
|
26
|
-
}
|
|
27
|
-
if (size === 'lg' || size === 'xl' ) { // for safety
|
|
28
|
-
classes.icon = 'h-10 w-10 mr-4 color-inherit' + toAdd.icon
|
|
29
|
-
classes.span = 'text-3xl' + toAdd.span
|
|
30
|
-
}
|
|
31
|
-
// match lux.network
|
|
32
|
-
else if (size === 'md') {
|
|
33
|
-
classes.icon = 'h-[32px] w-[32px] mr-[12px] color-inherit' + toAdd.icon
|
|
34
|
-
classes.span = 'text-[26px]/[26px] tracking-tighter' + toAdd.span
|
|
35
|
-
}
|
|
36
|
-
else if (size === 'sm' ) {
|
|
37
|
-
classes.icon = 'h-6 w-6 mr-2 color-inherit' + toAdd.icon
|
|
38
|
-
classes.span = 'text-lg' + toAdd.span
|
|
39
|
-
}
|
|
40
|
-
// xs
|
|
41
|
-
else {
|
|
42
|
-
classes.icon = 'h-4 w-4 mr-1 color-inherit' + toAdd.icon
|
|
43
|
-
classes.span = 'text-base' + toAdd.span
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const outerClasses = 'flex flex-row items-center ' + className
|
|
47
|
-
const spanClasses = 'inline-block font-bold font-heading '
|
|
48
|
-
+ (href ? 'hover:text-accent ' : 'cursor-default ')
|
|
49
|
-
+ classes.span
|
|
50
|
-
|
|
51
|
-
const Inner: React.FC = () => (<>
|
|
52
|
-
<Icons.logo className={classes.icon} />
|
|
53
|
-
<span className={cn(spanClasses, ' text-inherit')}>LUX</span>
|
|
54
|
-
</>)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return (
|
|
58
|
-
href ? (
|
|
59
|
-
<Link href={href} className={outerClasses} >
|
|
60
|
-
<Inner />
|
|
61
|
-
</Link>
|
|
62
|
-
|
|
63
|
-
) : (
|
|
64
|
-
<span className={outerClasses} >
|
|
65
|
-
<Inner />
|
|
66
|
-
</span>
|
|
67
|
-
)
|
|
68
|
-
)
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export default Logo
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react'
|
|
2
|
-
|
|
3
|
-
// https://www.typescriptlang.org/docs/handbook/enums.html#enums-at-runtime
|
|
4
|
-
const enum MiniChartDateRangesValues {
|
|
5
|
-
'1D',
|
|
6
|
-
'1M',
|
|
7
|
-
'3M',
|
|
8
|
-
'12M',
|
|
9
|
-
'60M',
|
|
10
|
-
'ALL',
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type MiniChartDateRanges = keyof typeof MiniChartDateRangesValues
|
|
14
|
-
|
|
15
|
-
interface MiniChartBaseProps {
|
|
16
|
-
symbol: string
|
|
17
|
-
exchange?: string
|
|
18
|
-
dateRange: MiniChartDateRanges
|
|
19
|
-
noTimeScale?: boolean
|
|
20
|
-
width?: number | string
|
|
21
|
-
height?: number | string
|
|
22
|
-
locale?: string
|
|
23
|
-
colorTheme?: "light" | "dark"
|
|
24
|
-
// @ts-ignore // TODO
|
|
25
|
-
lineColor?: CSSProperties["color"]
|
|
26
|
-
// @ts-ignore // TODO
|
|
27
|
-
topGradientColor?: CSSProperties["color"]
|
|
28
|
-
// @ts-ignore // TODO
|
|
29
|
-
bottomGradientColor?: CSSProperties["color"]
|
|
30
|
-
isTransparent?: boolean
|
|
31
|
-
autosize?: boolean
|
|
32
|
-
chartOnly?: boolean
|
|
33
|
-
largeChartUrl?: string
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
type MiniChartProps = {
|
|
37
|
-
widgetProps: MiniChartBaseProps
|
|
38
|
-
containerStyles?: CSSProperties
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export {
|
|
42
|
-
type MiniChartProps,
|
|
43
|
-
type MiniChartDateRanges
|
|
44
|
-
}
|