@hanzo/ui 0.5.23 → 0.6.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/.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
package/primitives/toast.tsx
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
'use client'
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as ToastPrimitives from "@radix-ui/react-toast"
|
|
5
|
-
import { cva, type VariantProps } from "class-variance-authority"
|
|
6
|
-
import { X } from "lucide-react"
|
|
7
|
-
|
|
8
|
-
import { cn } from "../util"
|
|
9
|
-
|
|
10
|
-
const ToastProvider = ToastPrimitives.Provider
|
|
11
|
-
|
|
12
|
-
const ToastViewport = React.forwardRef<
|
|
13
|
-
React.ElementRef<typeof ToastPrimitives.Viewport>,
|
|
14
|
-
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>
|
|
15
|
-
>(({ className, ...props }, ref) => (
|
|
16
|
-
<ToastPrimitives.Viewport
|
|
17
|
-
ref={ref}
|
|
18
|
-
className={cn(
|
|
19
|
-
"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
|
|
20
|
-
className
|
|
21
|
-
)}
|
|
22
|
-
{...props}
|
|
23
|
-
/>
|
|
24
|
-
))
|
|
25
|
-
ToastViewport.displayName = ToastPrimitives.Viewport.displayName
|
|
26
|
-
|
|
27
|
-
const toastVariants = cva(
|
|
28
|
-
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
29
|
-
{
|
|
30
|
-
variants: {
|
|
31
|
-
variant: {
|
|
32
|
-
default: "border bg-background text-foreground",
|
|
33
|
-
destructive:
|
|
34
|
-
"destructive group border-destructive bg-destructive text-destructive-fg",
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
defaultVariants: {
|
|
38
|
-
variant: "default",
|
|
39
|
-
},
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
const Toast = React.forwardRef<
|
|
44
|
-
React.ElementRef<typeof ToastPrimitives.Root>,
|
|
45
|
-
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &
|
|
46
|
-
VariantProps<typeof toastVariants>
|
|
47
|
-
>(({ className, variant, ...props }, ref) => {
|
|
48
|
-
return (
|
|
49
|
-
<ToastPrimitives.Root
|
|
50
|
-
ref={ref}
|
|
51
|
-
className={cn(toastVariants({ variant }), className)}
|
|
52
|
-
{...props}
|
|
53
|
-
/>
|
|
54
|
-
)
|
|
55
|
-
})
|
|
56
|
-
Toast.displayName = ToastPrimitives.Root.displayName
|
|
57
|
-
|
|
58
|
-
const ToastAction = React.forwardRef<
|
|
59
|
-
React.ElementRef<typeof ToastPrimitives.Action>,
|
|
60
|
-
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>
|
|
61
|
-
>(({ className, ...props }, ref) => (
|
|
62
|
-
<ToastPrimitives.Action
|
|
63
|
-
ref={ref}
|
|
64
|
-
className={cn(
|
|
65
|
-
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted-1/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-fg group-[.destructive]:focus:ring-destructive",
|
|
66
|
-
className
|
|
67
|
-
)}
|
|
68
|
-
{...props}
|
|
69
|
-
/>
|
|
70
|
-
))
|
|
71
|
-
ToastAction.displayName = ToastPrimitives.Action.displayName
|
|
72
|
-
|
|
73
|
-
const ToastClose = React.forwardRef<
|
|
74
|
-
React.ElementRef<typeof ToastPrimitives.Close>,
|
|
75
|
-
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>
|
|
76
|
-
>(({ className, ...props }, ref) => (
|
|
77
|
-
<ToastPrimitives.Close
|
|
78
|
-
ref={ref}
|
|
79
|
-
className={cn(
|
|
80
|
-
"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
|
|
81
|
-
className
|
|
82
|
-
)}
|
|
83
|
-
toast-close=""
|
|
84
|
-
{...props}
|
|
85
|
-
>
|
|
86
|
-
<X className="h-4 w-4" />
|
|
87
|
-
</ToastPrimitives.Close>
|
|
88
|
-
))
|
|
89
|
-
ToastClose.displayName = ToastPrimitives.Close.displayName
|
|
90
|
-
|
|
91
|
-
const ToastTitle = React.forwardRef<
|
|
92
|
-
React.ElementRef<typeof ToastPrimitives.Title>,
|
|
93
|
-
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>
|
|
94
|
-
>(({ className, ...props }, ref) => (
|
|
95
|
-
<ToastPrimitives.Title
|
|
96
|
-
ref={ref}
|
|
97
|
-
className={cn("text-sm font-semibold", className)}
|
|
98
|
-
{...props}
|
|
99
|
-
/>
|
|
100
|
-
))
|
|
101
|
-
ToastTitle.displayName = ToastPrimitives.Title.displayName
|
|
102
|
-
|
|
103
|
-
const ToastDescription = React.forwardRef<
|
|
104
|
-
React.ElementRef<typeof ToastPrimitives.Description>,
|
|
105
|
-
React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>
|
|
106
|
-
>(({ className, ...props }, ref) => (
|
|
107
|
-
<ToastPrimitives.Description
|
|
108
|
-
ref={ref}
|
|
109
|
-
className={cn("text-sm opacity-90", className)}
|
|
110
|
-
{...props}
|
|
111
|
-
/>
|
|
112
|
-
))
|
|
113
|
-
ToastDescription.displayName = ToastPrimitives.Description.displayName
|
|
114
|
-
|
|
115
|
-
type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>
|
|
116
|
-
|
|
117
|
-
type ToastActionElement = React.ReactElement<typeof ToastAction>
|
|
118
|
-
|
|
119
|
-
export {
|
|
120
|
-
type ToastProps,
|
|
121
|
-
type ToastActionElement,
|
|
122
|
-
ToastProvider,
|
|
123
|
-
ToastViewport,
|
|
124
|
-
Toast,
|
|
125
|
-
ToastTitle,
|
|
126
|
-
ToastDescription,
|
|
127
|
-
ToastClose,
|
|
128
|
-
ToastAction,
|
|
129
|
-
}
|
package/primitives/toaster.tsx
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
"use client"
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
Toast,
|
|
6
|
-
ToastClose,
|
|
7
|
-
ToastDescription,
|
|
8
|
-
ToastProvider,
|
|
9
|
-
ToastTitle,
|
|
10
|
-
ToastViewport,
|
|
11
|
-
} from "./toast"
|
|
12
|
-
|
|
13
|
-
import { useToast } from "./use-toast"
|
|
14
|
-
|
|
15
|
-
export const Toaster: React.FC = () => {
|
|
16
|
-
const { toasts } = useToast()
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<ToastProvider>
|
|
20
|
-
{toasts.map(function ({ id, title, description, action, ...props }) {
|
|
21
|
-
return (
|
|
22
|
-
<Toast key={id} {...props}>
|
|
23
|
-
<div className="grid gap-1">
|
|
24
|
-
{title && <ToastTitle>{title}</ToastTitle>}
|
|
25
|
-
{description && (
|
|
26
|
-
<ToastDescription>{description}</ToastDescription>
|
|
27
|
-
)}
|
|
28
|
-
</div>
|
|
29
|
-
{action}
|
|
30
|
-
<ToastClose />
|
|
31
|
-
</Toast>
|
|
32
|
-
)
|
|
33
|
-
})}
|
|
34
|
-
<ToastViewport />
|
|
35
|
-
</ToastProvider>
|
|
36
|
-
)
|
|
37
|
-
}
|
package/primitives/use-toast.ts
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
// Inspired by react-hot-toast library
|
|
2
|
-
import * as React from "react"
|
|
3
|
-
|
|
4
|
-
import type {
|
|
5
|
-
ToastActionElement,
|
|
6
|
-
ToastProps,
|
|
7
|
-
} from "./toast"
|
|
8
|
-
|
|
9
|
-
const TOAST_LIMIT = 1
|
|
10
|
-
const TOAST_REMOVE_DELAY = 1000000
|
|
11
|
-
|
|
12
|
-
type ToasterToast = ToastProps & {
|
|
13
|
-
id: string
|
|
14
|
-
title?: React.ReactNode
|
|
15
|
-
description?: React.ReactNode
|
|
16
|
-
action?: ToastActionElement
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const actionTypes = {
|
|
20
|
-
ADD_TOAST: "ADD_TOAST",
|
|
21
|
-
UPDATE_TOAST: "UPDATE_TOAST",
|
|
22
|
-
DISMISS_TOAST: "DISMISS_TOAST",
|
|
23
|
-
REMOVE_TOAST: "REMOVE_TOAST",
|
|
24
|
-
} as const
|
|
25
|
-
|
|
26
|
-
let count = 0
|
|
27
|
-
|
|
28
|
-
function genId() {
|
|
29
|
-
count = (count + 1) % Number.MAX_VALUE
|
|
30
|
-
return count.toString()
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
type ActionType = typeof actionTypes
|
|
34
|
-
|
|
35
|
-
type Action =
|
|
36
|
-
| {
|
|
37
|
-
type: ActionType["ADD_TOAST"]
|
|
38
|
-
toast: ToasterToast
|
|
39
|
-
}
|
|
40
|
-
| {
|
|
41
|
-
type: ActionType["UPDATE_TOAST"]
|
|
42
|
-
toast: Partial<ToasterToast>
|
|
43
|
-
}
|
|
44
|
-
| {
|
|
45
|
-
type: ActionType["DISMISS_TOAST"]
|
|
46
|
-
toastId?: ToasterToast["id"]
|
|
47
|
-
}
|
|
48
|
-
| {
|
|
49
|
-
type: ActionType["REMOVE_TOAST"]
|
|
50
|
-
toastId?: ToasterToast["id"]
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface State {
|
|
54
|
-
toasts: ToasterToast[]
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()
|
|
58
|
-
|
|
59
|
-
const addToRemoveQueue = (toastId: string) => {
|
|
60
|
-
if (toastTimeouts.has(toastId)) {
|
|
61
|
-
return
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
const timeout = setTimeout(() => {
|
|
65
|
-
toastTimeouts.delete(toastId)
|
|
66
|
-
dispatch({
|
|
67
|
-
type: "REMOVE_TOAST",
|
|
68
|
-
toastId: toastId,
|
|
69
|
-
})
|
|
70
|
-
}, TOAST_REMOVE_DELAY)
|
|
71
|
-
|
|
72
|
-
toastTimeouts.set(toastId, timeout)
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const reducer = (state: State, action: Action): State => {
|
|
76
|
-
switch (action.type) {
|
|
77
|
-
case "ADD_TOAST":
|
|
78
|
-
return {
|
|
79
|
-
...state,
|
|
80
|
-
toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
case "UPDATE_TOAST":
|
|
84
|
-
return {
|
|
85
|
-
...state,
|
|
86
|
-
toasts: state.toasts.map((t) =>
|
|
87
|
-
t.id === action.toast.id ? { ...t, ...action.toast } : t
|
|
88
|
-
),
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
case "DISMISS_TOAST": {
|
|
92
|
-
const { toastId } = action
|
|
93
|
-
|
|
94
|
-
// ! Side effects ! - This could be extracted into a dismissToast() action,
|
|
95
|
-
// but I'll keep it here for simplicity
|
|
96
|
-
if (toastId) {
|
|
97
|
-
addToRemoveQueue(toastId)
|
|
98
|
-
} else {
|
|
99
|
-
state.toasts.forEach((toast) => {
|
|
100
|
-
addToRemoveQueue(toast.id)
|
|
101
|
-
})
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
return {
|
|
105
|
-
...state,
|
|
106
|
-
toasts: state.toasts.map((t) =>
|
|
107
|
-
t.id === toastId || toastId === undefined
|
|
108
|
-
? {
|
|
109
|
-
...t,
|
|
110
|
-
open: false,
|
|
111
|
-
}
|
|
112
|
-
: t
|
|
113
|
-
),
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
case "REMOVE_TOAST":
|
|
117
|
-
if (action.toastId === undefined) {
|
|
118
|
-
return {
|
|
119
|
-
...state,
|
|
120
|
-
toasts: [],
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return {
|
|
124
|
-
...state,
|
|
125
|
-
toasts: state.toasts.filter((t) => t.id !== action.toastId),
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
const listeners: Array<(state: State) => void> = []
|
|
131
|
-
|
|
132
|
-
let memoryState: State = { toasts: [] }
|
|
133
|
-
|
|
134
|
-
function dispatch(action: Action) {
|
|
135
|
-
memoryState = reducer(memoryState, action)
|
|
136
|
-
listeners.forEach((listener) => {
|
|
137
|
-
listener(memoryState)
|
|
138
|
-
})
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
type Toast = Omit<ToasterToast, "id">
|
|
142
|
-
|
|
143
|
-
function toast({ ...props }: Toast) {
|
|
144
|
-
const id = genId()
|
|
145
|
-
|
|
146
|
-
const update = (props: ToasterToast) =>
|
|
147
|
-
dispatch({
|
|
148
|
-
type: "UPDATE_TOAST",
|
|
149
|
-
toast: { ...props, id },
|
|
150
|
-
})
|
|
151
|
-
const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })
|
|
152
|
-
|
|
153
|
-
dispatch({
|
|
154
|
-
type: "ADD_TOAST",
|
|
155
|
-
toast: {
|
|
156
|
-
...props,
|
|
157
|
-
id,
|
|
158
|
-
open: true,
|
|
159
|
-
onOpenChange: (open: any) => {
|
|
160
|
-
if (!open) dismiss()
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
})
|
|
164
|
-
|
|
165
|
-
return {
|
|
166
|
-
id: id,
|
|
167
|
-
dismiss,
|
|
168
|
-
update,
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function useToast() {
|
|
173
|
-
const [state, setState] = React.useState<State>(memoryState)
|
|
174
|
-
|
|
175
|
-
React.useEffect(() => {
|
|
176
|
-
listeners.push(setState)
|
|
177
|
-
return () => {
|
|
178
|
-
const index = listeners.indexOf(setState)
|
|
179
|
-
if (index > -1) {
|
|
180
|
-
listeners.splice(index, 1)
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}, [state])
|
|
184
|
-
|
|
185
|
-
return {
|
|
186
|
-
...state,
|
|
187
|
-
toast,
|
|
188
|
-
dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export { useToast, toast }
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
|
|
4
|
-
interface VideoProps extends React.ComponentPropsWithoutRef<"video"> {
|
|
5
|
-
sources: string[]
|
|
6
|
-
className?: string
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const VideoPlayer = React.forwardRef<HTMLVideoElement, VideoProps>(
|
|
10
|
-
({
|
|
11
|
-
sources,
|
|
12
|
-
className='',
|
|
13
|
-
...rest
|
|
14
|
-
}, ref) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<video ref={ref} {...rest} className={className}>
|
|
19
|
-
{sources.map((source, index) => (
|
|
20
|
-
<source key={index} src={source} />
|
|
21
|
-
))}
|
|
22
|
-
</video>
|
|
23
|
-
)
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
export default VideoPlayer
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import { useState } from 'react'
|
|
4
|
-
import Image from 'next/image'
|
|
5
|
-
|
|
6
|
-
import * as Icons from '../common/icons'
|
|
7
|
-
|
|
8
|
-
// Concept based on https://www.youtube.com/watch?v=lLqRchtjN00
|
|
9
|
-
// (https://github.com/a-trost/fableton)
|
|
10
|
-
|
|
11
|
-
const YouTubeEmbed: React.FC<{
|
|
12
|
-
youtubeID: string
|
|
13
|
-
width: number
|
|
14
|
-
height: number
|
|
15
|
-
buttonSize?: number
|
|
16
|
-
timeAt?: string // '5s'
|
|
17
|
-
title?: string
|
|
18
|
-
caption?: string
|
|
19
|
-
className?: string
|
|
20
|
-
}> = ({
|
|
21
|
-
youtubeID,
|
|
22
|
-
width,
|
|
23
|
-
height,
|
|
24
|
-
buttonSize=100,
|
|
25
|
-
timeAt,
|
|
26
|
-
title,
|
|
27
|
-
caption,
|
|
28
|
-
className=''
|
|
29
|
-
}) => {
|
|
30
|
-
|
|
31
|
-
const [showVideo, setShowVideo] = useState(false)
|
|
32
|
-
|
|
33
|
-
// re autoplay: https://stackoverflow.com/a/45610557/11645689
|
|
34
|
-
return (
|
|
35
|
-
<div className={className}>
|
|
36
|
-
{showVideo ? (
|
|
37
|
-
<iframe
|
|
38
|
-
width={width}
|
|
39
|
-
height={height}
|
|
40
|
-
src={`https://www.youtube-nocookie.com/embed/${youtubeID + ((timeAt) ? `?t=${timeAt}&` : '?')}rel=0&autoplay=1`}
|
|
41
|
-
allow='accelerometer ; autoplay *; clipboard-write *; encrypted-media *; gyroscope *; picture-in-picture *;'
|
|
42
|
-
allowFullScreen
|
|
43
|
-
title={title || 'Youtube video'}
|
|
44
|
-
className='aspect-[16/9] h-full w-full p-0 border-0 '
|
|
45
|
-
/>
|
|
46
|
-
) : (
|
|
47
|
-
<button
|
|
48
|
-
type='button'
|
|
49
|
-
onClick={() => setShowVideo(true)}
|
|
50
|
-
className='relative aspect-[16/9] w-full'
|
|
51
|
-
aria-label={`Play video ${title}`}
|
|
52
|
-
>
|
|
53
|
-
<Image
|
|
54
|
-
src={`https://img.youtube.com/vi/${youtubeID}/maxresdefault.jpg`}
|
|
55
|
-
alt=''
|
|
56
|
-
className='h-full w-full'
|
|
57
|
-
width={width}
|
|
58
|
-
height={height}
|
|
59
|
-
loading='lazy'
|
|
60
|
-
/>
|
|
61
|
-
<div
|
|
62
|
-
className={ //https://stackoverflow.com/a/23384995/11645689
|
|
63
|
-
'absolute z-50 left-[50%] top-[50%] -translate-y-2/4 -translate-x-2/4 ' +
|
|
64
|
-
'grid place-items-center ' +
|
|
65
|
-
'text-xl text-white opacity-90'
|
|
66
|
-
}
|
|
67
|
-
>
|
|
68
|
-
<Icons.youtube
|
|
69
|
-
width={buttonSize}
|
|
70
|
-
height={buttonSize}
|
|
71
|
-
role='img'
|
|
72
|
-
className='transform transition hover:scale-110'
|
|
73
|
-
{...{'aria-hidden': true}}
|
|
74
|
-
/>
|
|
75
|
-
</div>
|
|
76
|
-
{caption && <p className='hidden md:block whitespace-nowrap typography absolute z-50 left-[50%] top-[20px] -translate-x-2/4 '>{caption}</p>}
|
|
77
|
-
</button>
|
|
78
|
-
)}
|
|
79
|
-
</div>
|
|
80
|
-
)
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export default YouTubeEmbed
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { LinkDef } from '../../types'
|
|
2
|
-
import { Icons } from '../../common'
|
|
3
|
-
|
|
4
|
-
// @ts-ignore (will build in project that has @svgr support)
|
|
5
|
-
import SVG_warp_logo from './svg/warpcast-logo.svg'
|
|
6
|
-
|
|
7
|
-
const SOC_ICON_SIZE = 18
|
|
8
|
-
|
|
9
|
-
export default [
|
|
10
|
-
{
|
|
11
|
-
title: 'Community',
|
|
12
|
-
href: '',
|
|
13
|
-
variant: 'linkFG',
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
{
|
|
17
|
-
title: 'Lux Channel',
|
|
18
|
-
href: 'https://warpcast.com/~/channel/lux',
|
|
19
|
-
icon: <SVG_warp_logo width={SOC_ICON_SIZE} height={SOC_ICON_SIZE} /> //<Icons.SocialIcon network='warpcast' size={SOC_ICON_SIZE} />
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
title: 'Lux Discussion',
|
|
23
|
-
href: 'https://github.com/orgs/luxdefi/discussions',
|
|
24
|
-
icon: <Icons.SocialIcon network='github' size={SOC_ICON_SIZE} />
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
/*
|
|
28
|
-
{
|
|
29
|
-
title: 'Discord',
|
|
30
|
-
href: 'https://discord.gg/luxdefi',
|
|
31
|
-
external: true,
|
|
32
|
-
icon: <Icons.SocialIcon network='discord' size={SOC_ICON_SIZE} />
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
title: 'Telegram',
|
|
36
|
-
href: 'https://t.me/luxdefi',
|
|
37
|
-
external: true,
|
|
38
|
-
icon: <Icons.SocialIcon network='telegram' size={SOC_ICON_SIZE} />
|
|
39
|
-
},
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
title: '@luxdefi',
|
|
44
|
-
href: 'https://twitter.com/luxdefi',
|
|
45
|
-
icon: <Icons.SocialIcon network='x' size={SOC_ICON_SIZE} />
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
title: '@luxdefi',
|
|
49
|
-
href: 'https://facebook.com/luxdefi',
|
|
50
|
-
icon: <Icons.SocialIcon network='facebook' size={SOC_ICON_SIZE + 2} />
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
title: '@luxdefi',
|
|
54
|
-
href: 'https://www.instagram.com/luxdefi',
|
|
55
|
-
icon: <Icons.SocialIcon network='instagram' size={SOC_ICON_SIZE + 2} />
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
title: '@luxdefi',
|
|
59
|
-
href: 'https://linkedin.com/company/luxdefi',
|
|
60
|
-
icon: <Icons.SocialIcon network='linkedin' size={SOC_ICON_SIZE + 2} />
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
title: '@luxdefi',
|
|
64
|
-
href: 'https://www.youtube.com/@luxdefi',
|
|
65
|
-
icon: <Icons.SocialIcon network='youtube' size={SOC_ICON_SIZE + 2} />
|
|
66
|
-
},
|
|
67
|
-
] satisfies LinkDef[]
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { LinkDef } from '../../types'
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
{
|
|
5
|
-
title: 'Company',
|
|
6
|
-
href: "https://lux.partners/",
|
|
7
|
-
variant: 'linkFG',
|
|
8
|
-
newTab: false,
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
title: 'About',
|
|
12
|
-
href: 'https://lux.partners',
|
|
13
|
-
newTab: false,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
title: 'Brand',
|
|
17
|
-
href: 'https://drive.google.com/drive/folders/14OJtKLVakGY6883XO9yGbiHtlFxQUUm5?usp=share_link',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
title: 'Careers',
|
|
21
|
-
href: 'https://docs.google.com/document/d/1SCt0Hg7EIs06TootKCA1am1xo4mcXoKF/edit#heading=h.30j0zll',
|
|
22
|
-
newTab: true,
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
title: 'Partnerships',
|
|
26
|
-
href: 'https://apply.lux.partners/',
|
|
27
|
-
newTab: false,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: 'Press',
|
|
31
|
-
href: 'mailto:ai@lux.partners?subject=%E2%96%BC%20Press',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
title: 'Help',
|
|
35
|
-
href: 'mailto:ai@lux.partners?subject=%E2%96%BC%20Help',
|
|
36
|
-
},
|
|
37
|
-
] satisfies LinkDef[]
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { LinkDef } from '../../types'
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
{
|
|
5
|
-
title: 'Ecosystem',
|
|
6
|
-
href: '',
|
|
7
|
-
variant: 'linkFG'
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
title: 'Lux Silver',
|
|
11
|
-
href: 'https://lux.market/silver',
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
title: 'Lux Gold',
|
|
15
|
-
href: 'https://lux.market/gold',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
title: 'Lux Credit Card',
|
|
19
|
-
href: 'https://lux.credit',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
title: 'Lux Exchange',
|
|
23
|
-
href: 'https://lux.exchange',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
title: 'Lux Finance',
|
|
27
|
-
href: 'https://lux.finance',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: 'Lux Market',
|
|
31
|
-
href: 'https://lux.market',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
title: 'Lux Network',
|
|
35
|
-
href: 'https://lux.network',
|
|
36
|
-
},
|
|
37
|
-
] satisfies LinkDef[]
|
package/siteDef/footer/index.tsx
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { LinkDef } from '../../types'
|
|
2
|
-
|
|
3
|
-
import ecosystem from './ecosystem'
|
|
4
|
-
import network from './network'
|
|
5
|
-
import company from './company'
|
|
6
|
-
import community from './community'
|
|
7
|
-
import { legal, legalColumn } from './legal'
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const common = [
|
|
11
|
-
ecosystem,
|
|
12
|
-
network,
|
|
13
|
-
company,
|
|
14
|
-
community,
|
|
15
|
-
] satisfies LinkDef[][]
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
ecosystem,
|
|
19
|
-
network,
|
|
20
|
-
company,
|
|
21
|
-
community,
|
|
22
|
-
legal,
|
|
23
|
-
legalColumn,
|
|
24
|
-
common as default
|
|
25
|
-
}
|
|
26
|
-
|
package/siteDef/footer/legal.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { LinkDef } from '../../types'
|
|
2
|
-
|
|
3
|
-
const legal: LinkDef[] = [
|
|
4
|
-
{
|
|
5
|
-
title: 'Terms and Conditions',
|
|
6
|
-
href: '/terms',
|
|
7
|
-
newTab: true,
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
title: 'Privacy Policy',
|
|
11
|
-
href: '/privacy',
|
|
12
|
-
newTab: true,
|
|
13
|
-
},
|
|
14
|
-
]
|
|
15
|
-
|
|
16
|
-
const title: LinkDef =
|
|
17
|
-
{
|
|
18
|
-
title: 'Legal',
|
|
19
|
-
href: '',
|
|
20
|
-
variant: 'linkFG',
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const legalColumn: LinkDef[] = [title, ...legal]
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
legal,
|
|
27
|
-
legalColumn
|
|
28
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { LinkDef } from '../../types'
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
{
|
|
5
|
-
title: 'Network',
|
|
6
|
-
href: "https://lux.network/",
|
|
7
|
-
variant: 'linkFG'
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
title: 'Lux Bridge',
|
|
11
|
-
href: "https://bridge.lux.network/",
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
title: 'Lux Explorer',
|
|
15
|
-
href: "https://explore.lux.network/",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
title: 'Lux Wallet',
|
|
19
|
-
href: "https://wallet.lux.network/",
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
title: 'Lux Safe',
|
|
23
|
-
href: "https://safe.lux.network/",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
title: 'Lux Validator',
|
|
27
|
-
href: "https://lux.market/validator/",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: 'Open Source',
|
|
31
|
-
href: 'https://github.com/luxdefi',
|
|
32
|
-
},
|
|
33
|
-
] satisfies LinkDef[]
|