@hanzo/ui 0.5.24 → 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/src/location.ts
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright © 2020, 2021 Hanzo <dev@hanzo.ai>.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License. You may
|
|
6
|
+
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
//
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
//
|
|
15
|
+
|
|
16
|
+
import { Analytics } from '@hanzo/analytics'
|
|
17
|
+
import { clone, type Ref, type Space } from '@hanzo/core'
|
|
18
|
+
import { type Plugin } from '@hanzo/platform'
|
|
19
|
+
import { derived, get, writable } from 'svelte/store'
|
|
20
|
+
|
|
21
|
+
import { closePopup } from './popups'
|
|
22
|
+
import { type Location as PlatformLocation } from './types'
|
|
23
|
+
|
|
24
|
+
export function locationToUrl (location: PlatformLocation): string {
|
|
25
|
+
let result = '/'
|
|
26
|
+
if (location.path != null) {
|
|
27
|
+
result += location.path.map((p) => encodeURIComponent(p)).join('/')
|
|
28
|
+
}
|
|
29
|
+
if (location.query != null) {
|
|
30
|
+
const queryValue = Object.entries(location.query)
|
|
31
|
+
.map((e) => {
|
|
32
|
+
if (e[1] != null) {
|
|
33
|
+
// Had value
|
|
34
|
+
return e[0] + '=' + e[1]
|
|
35
|
+
} else {
|
|
36
|
+
return e[0]
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
.join('&')
|
|
40
|
+
if (queryValue.length > 0) {
|
|
41
|
+
result += '?' + queryValue
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (location.fragment != null && location.fragment.length > 0) {
|
|
45
|
+
result += '#' + location.fragment
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return result
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function parseLocation (location: Location | URL): PlatformLocation {
|
|
52
|
+
return {
|
|
53
|
+
path: parsePath(location.pathname),
|
|
54
|
+
query: parseQuery(location.search),
|
|
55
|
+
fragment: parseHash(location.hash)
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function parseQuery (query: string): Record<string, string | null> | undefined {
|
|
60
|
+
query = query.trim()
|
|
61
|
+
if (query.length === 0 || !query.startsWith('?')) {
|
|
62
|
+
return
|
|
63
|
+
}
|
|
64
|
+
query = decodeURIComponent(query).substring(1)
|
|
65
|
+
const vars = query.split('&')
|
|
66
|
+
const result: Record<string, string | null> = {}
|
|
67
|
+
for (let i = 0; i < vars.length; i++) {
|
|
68
|
+
const pair = vars[i].split('=')
|
|
69
|
+
const key = pair[0]
|
|
70
|
+
if (key.length > 0) {
|
|
71
|
+
if (pair.length > 1) {
|
|
72
|
+
const value = pair[1]
|
|
73
|
+
result[key] = value
|
|
74
|
+
} else {
|
|
75
|
+
result[key] = null
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return result
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function parsePath (path: string): string[] {
|
|
83
|
+
const split = path.split('/').map((ps) => decodeURIComponent(ps))
|
|
84
|
+
if (split.length >= 1) {
|
|
85
|
+
if (split[0] === '') {
|
|
86
|
+
split.splice(0, 1)
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if (split.length >= 1) {
|
|
90
|
+
if (split[split.length - 1] === '') {
|
|
91
|
+
split.splice(split.length - 1, 1)
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return split
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function parseHash (hash: string): string {
|
|
98
|
+
if (hash.startsWith('#')) {
|
|
99
|
+
return decodeURIComponent(hash.substring(1))
|
|
100
|
+
}
|
|
101
|
+
return decodeURIComponent(hash)
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// ------------------------
|
|
105
|
+
|
|
106
|
+
export function getRawCurrentLocation (): PlatformLocation {
|
|
107
|
+
return parseLocation(window.location)
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function getCurrentResolvedLocation (): PlatformLocation {
|
|
111
|
+
return clone(resolvedLocation)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare global {
|
|
115
|
+
interface Window {
|
|
116
|
+
desktopPlatform?: boolean
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function isRunningInElectron (): boolean {
|
|
121
|
+
// Renderer process
|
|
122
|
+
if (
|
|
123
|
+
typeof window !== 'undefined' &&
|
|
124
|
+
typeof (window as any).process === 'object' &&
|
|
125
|
+
(window as any).process.type === 'renderer'
|
|
126
|
+
) {
|
|
127
|
+
return true
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Detect the user agent when the `nodeIntegration` option is set to true
|
|
131
|
+
if (
|
|
132
|
+
typeof navigator === 'object' &&
|
|
133
|
+
typeof navigator.userAgent === 'string' &&
|
|
134
|
+
navigator.userAgent.includes('Electron')
|
|
135
|
+
) {
|
|
136
|
+
return true
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return false
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export const desktopPlatform = window.desktopPlatform ?? isRunningInElectron()
|
|
143
|
+
const locationWritable = writable(getRawCurrentLocation())
|
|
144
|
+
|
|
145
|
+
console.log('desktopPlatform', window.desktopPlatform)
|
|
146
|
+
|
|
147
|
+
if (!desktopPlatform) {
|
|
148
|
+
window.addEventListener('popstate', () => {
|
|
149
|
+
locationWritable.set(getRawCurrentLocation())
|
|
150
|
+
})
|
|
151
|
+
} else {
|
|
152
|
+
window.addEventListener('popstate', (state) => {
|
|
153
|
+
if (state.state.location !== undefined) {
|
|
154
|
+
locationWritable.set(state.state.location)
|
|
155
|
+
}
|
|
156
|
+
})
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export const location = derived(locationWritable, (loc) => clone(loc))
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Unlike {@link location}, exposes raw browser location as seen in URL
|
|
163
|
+
*/
|
|
164
|
+
export const rawLocation = derived(locationWritable, () => getCurrentLocation())
|
|
165
|
+
|
|
166
|
+
export const workspaceId = derived(location, (loc) => loc.path[1])
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
export function getLocation (): PlatformLocation {
|
|
172
|
+
return clone(get(location))
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export const resolvedLocationStore = writable(getRawCurrentLocation())
|
|
176
|
+
let resolvedLocation = getRawCurrentLocation()
|
|
177
|
+
|
|
178
|
+
export function setResolvedLocation (location: PlatformLocation): void {
|
|
179
|
+
resolvedLocation = location
|
|
180
|
+
resolvedLocationStore.set(clone(location))
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function getCurrentLocation (): PlatformLocation {
|
|
184
|
+
if (desktopPlatform) {
|
|
185
|
+
return clone(get(locationWritable))
|
|
186
|
+
}
|
|
187
|
+
return getRawCurrentLocation()
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @public
|
|
192
|
+
*/
|
|
193
|
+
export let locationStorageKeyId = 'platform_last_loc'
|
|
194
|
+
|
|
195
|
+
export function setLocationStorageKey (storageKey: string): void {
|
|
196
|
+
locationStorageKeyId = storageKey
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export function navigate (location: PlatformLocation, replace = false): boolean {
|
|
200
|
+
closePopup()
|
|
201
|
+
const cur = locationToUrl(getCurrentLocation())
|
|
202
|
+
const url = locationToUrl(location)
|
|
203
|
+
if (cur !== url) {
|
|
204
|
+
const data = !desktopPlatform ? null : { location }
|
|
205
|
+
const _url = !desktopPlatform ? url : undefined
|
|
206
|
+
Analytics.navigate(url)
|
|
207
|
+
if (replace) {
|
|
208
|
+
history.replaceState(data, '', _url)
|
|
209
|
+
} else {
|
|
210
|
+
history.pushState(data, '', _url)
|
|
211
|
+
}
|
|
212
|
+
localStorage.setItem(locationStorageKeyId, JSON.stringify(location))
|
|
213
|
+
if (location.path[1] !== undefined) {
|
|
214
|
+
localStorage.setItem(`${locationStorageKeyId}_${location.path[1]}`, JSON.stringify(location))
|
|
215
|
+
}
|
|
216
|
+
locationWritable.set(location)
|
|
217
|
+
return true
|
|
218
|
+
}
|
|
219
|
+
return false
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
const COLLAPSED = 'COLLAPSED'
|
|
223
|
+
export const getCollapsedKey = (_id: string, prefix?: string): string =>
|
|
224
|
+
`${getCurrentLocation().path[1]}_${prefix !== undefined && prefix !== '' ? prefix + '_###_' + _id : _id}_collapsed`
|
|
225
|
+
|
|
226
|
+
export const getTreeCollapsed = (_id: any, prefix?: string): boolean => {
|
|
227
|
+
if (_id === undefined || _id === 'undefined') return false
|
|
228
|
+
return localStorage.getItem(getCollapsedKey(_id as string, prefix)) === COLLAPSED
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export const setTreeCollapsed = (_id: any, collapsed: boolean, prefix?: string): void => {
|
|
232
|
+
if (_id === undefined || _id === 'undefined') return
|
|
233
|
+
const key = getCollapsedKey(_id, prefix)
|
|
234
|
+
collapsed ? localStorage.setItem(key, COLLAPSED) : localStorage.removeItem(key)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export function isSameSegments (a: PlatformLocation, b: PlatformLocation, len = 2): boolean {
|
|
238
|
+
return a.path.slice(0, len).every((segment, index) => segment === b.path[index])
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function restoreLocation (loc: PlatformLocation, app: Plugin): void {
|
|
242
|
+
const last = localStorage.getItem(`${locationStorageKeyId}_${app}`)
|
|
243
|
+
|
|
244
|
+
if (last !== null) {
|
|
245
|
+
const newLocation: PlatformLocation = JSON.parse(last)
|
|
246
|
+
|
|
247
|
+
if (newLocation.path[1] === loc.path[1] && newLocation.path[3] != null) {
|
|
248
|
+
loc.path[3] = newLocation.path[3] as Ref<Space>
|
|
249
|
+
loc.path[4] = newLocation.path[4]
|
|
250
|
+
if (loc.path[4] == null) {
|
|
251
|
+
loc.path.length = 4
|
|
252
|
+
} else {
|
|
253
|
+
loc.path.length = 5
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
navigate(loc)
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
package/src/modals.ts
ADDED
package/src/panelup.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { writable } from 'svelte/store'
|
|
2
|
+
import { getLocation, navigate } from './location'
|
|
3
|
+
import { type AnyComponent, type PopupAlignment } from './types'
|
|
4
|
+
|
|
5
|
+
export interface PanelProps {
|
|
6
|
+
component: AnyComponent
|
|
7
|
+
_id: string
|
|
8
|
+
_class: string
|
|
9
|
+
element?: PopupAlignment
|
|
10
|
+
rightSection?: AnyComponent
|
|
11
|
+
refit?: () => void
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const panelstore = writable<{
|
|
15
|
+
panel?: PanelProps | undefined
|
|
16
|
+
}>({ panel: undefined })
|
|
17
|
+
let currentLocation: string | undefined
|
|
18
|
+
|
|
19
|
+
export function getPanelURI (component: AnyComponent, _id: string, _class: string, element?: PopupAlignment): string {
|
|
20
|
+
const panelProps = [component, _id, _class]
|
|
21
|
+
if (typeof element === 'string') {
|
|
22
|
+
panelProps.push(element)
|
|
23
|
+
}
|
|
24
|
+
return encodeURIComponent(panelProps.join('|'))
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function showPanel (
|
|
28
|
+
component: AnyComponent,
|
|
29
|
+
_id: string,
|
|
30
|
+
_class: string,
|
|
31
|
+
element?: PopupAlignment,
|
|
32
|
+
rightSection?: AnyComponent,
|
|
33
|
+
doNavigate: boolean = true
|
|
34
|
+
): void {
|
|
35
|
+
openPanel(component, _id, _class, element, rightSection)
|
|
36
|
+
const loc = getLocation()
|
|
37
|
+
if (doNavigate && loc.fragment !== currentLocation) {
|
|
38
|
+
loc.fragment = currentLocation
|
|
39
|
+
navigate(loc)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function openPanel (
|
|
44
|
+
component: AnyComponent,
|
|
45
|
+
_id: string,
|
|
46
|
+
_class: string,
|
|
47
|
+
element?: PopupAlignment,
|
|
48
|
+
rightSection?: AnyComponent
|
|
49
|
+
): void {
|
|
50
|
+
const newLoc = getPanelURI(component, _id, _class, element)
|
|
51
|
+
if (currentLocation === newLoc) {
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
currentLocation = newLoc
|
|
55
|
+
panelstore.update(() => {
|
|
56
|
+
return { panel: { component, _id, _class, element, rightSection } }
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function closePanel (shouldRedirect: boolean = true): void {
|
|
61
|
+
currentLocation = undefined
|
|
62
|
+
panelstore.update(() => {
|
|
63
|
+
return { panel: undefined }
|
|
64
|
+
})
|
|
65
|
+
if (shouldRedirect) {
|
|
66
|
+
const loc = getLocation()
|
|
67
|
+
loc.fragment = undefined
|
|
68
|
+
navigate(loc)
|
|
69
|
+
}
|
|
70
|
+
}
|
package/src/plugin.ts
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright © 2020, 2021 Hanzo <dev@hanzo.ai>.
|
|
3
|
+
// Copyright © 2021 Hardcore Engineering Inc.
|
|
4
|
+
//
|
|
5
|
+
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
|
6
|
+
// you may not use this file except in compliance with the License. You may
|
|
7
|
+
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
//
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
//
|
|
16
|
+
|
|
17
|
+
import type { IntlString, Metadata, Plugin } from '@hanzo/platform'
|
|
18
|
+
import { plugin } from '@hanzo/platform'
|
|
19
|
+
import { type AnyComponent } from './types'
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export const uiId = 'ui' as Plugin
|
|
25
|
+
|
|
26
|
+
export const uis = plugin(uiId, {
|
|
27
|
+
string: {
|
|
28
|
+
EditBoxPlaceholder: '' as IntlString,
|
|
29
|
+
Ok: '' as IntlString,
|
|
30
|
+
Cancel: '' as IntlString,
|
|
31
|
+
Save: '' as IntlString,
|
|
32
|
+
Publish: '' as IntlString,
|
|
33
|
+
SaveDraft: '' as IntlString,
|
|
34
|
+
MinutesAgo: '' as IntlString,
|
|
35
|
+
HoursAgo: '' as IntlString,
|
|
36
|
+
DaysAgo: '' as IntlString,
|
|
37
|
+
MonthsAgo: '' as IntlString,
|
|
38
|
+
YearsAgo: '' as IntlString,
|
|
39
|
+
Minutes: '' as IntlString,
|
|
40
|
+
Hours: '' as IntlString,
|
|
41
|
+
Days: '' as IntlString,
|
|
42
|
+
Weeks: '' as IntlString,
|
|
43
|
+
Months: '' as IntlString,
|
|
44
|
+
Years: '' as IntlString,
|
|
45
|
+
Before: '' as IntlString,
|
|
46
|
+
After: '' as IntlString,
|
|
47
|
+
MinutesShort: '' as IntlString,
|
|
48
|
+
HoursShort: '' as IntlString,
|
|
49
|
+
DaysShort: '' as IntlString,
|
|
50
|
+
ShowMore: '' as IntlString,
|
|
51
|
+
ShowLess: '' as IntlString,
|
|
52
|
+
Search: '' as IntlString,
|
|
53
|
+
SearchDots: '' as IntlString,
|
|
54
|
+
SearchResults: '' as IntlString,
|
|
55
|
+
Suggested: '' as IntlString,
|
|
56
|
+
TimeTooltip: '' as IntlString,
|
|
57
|
+
SelectDate: '' as IntlString,
|
|
58
|
+
None: '' as IntlString,
|
|
59
|
+
NotSelected: '' as IntlString,
|
|
60
|
+
Today: '' as IntlString,
|
|
61
|
+
NoDate: '' as IntlString,
|
|
62
|
+
StartDate: '' as IntlString,
|
|
63
|
+
TargetDate: '' as IntlString,
|
|
64
|
+
Overdue: '' as IntlString,
|
|
65
|
+
DueDate: '' as IntlString,
|
|
66
|
+
AddDueDate: '' as IntlString,
|
|
67
|
+
SetDueDate: '' as IntlString,
|
|
68
|
+
EditDueDate: '' as IntlString,
|
|
69
|
+
SaveDueDate: '' as IntlString,
|
|
70
|
+
NeedsToBeCompletedByThisDate: '' as IntlString,
|
|
71
|
+
English: '' as IntlString,
|
|
72
|
+
Russian: '' as IntlString,
|
|
73
|
+
Spanish: '' as IntlString,
|
|
74
|
+
Portuguese: '' as IntlString,
|
|
75
|
+
Chinese: '' as IntlString,
|
|
76
|
+
French: '' as IntlString,
|
|
77
|
+
Italian: '' as IntlString,
|
|
78
|
+
Czech: '' as IntlString,
|
|
79
|
+
German: '' as IntlString,
|
|
80
|
+
MinutesBefore: '' as IntlString,
|
|
81
|
+
HoursBefore: '' as IntlString,
|
|
82
|
+
DaysBefore: '' as IntlString,
|
|
83
|
+
WeeksBefore: '' as IntlString,
|
|
84
|
+
MonthsBefore: '' as IntlString,
|
|
85
|
+
MinutesAfter: '' as IntlString,
|
|
86
|
+
HoursAfter: '' as IntlString,
|
|
87
|
+
DaysAfter: '' as IntlString,
|
|
88
|
+
WeeksAfter: '' as IntlString,
|
|
89
|
+
MonthsAfter: '' as IntlString,
|
|
90
|
+
NoActionsDefined: '' as IntlString,
|
|
91
|
+
Incoming: '' as IntlString,
|
|
92
|
+
HoursLabel: '' as IntlString,
|
|
93
|
+
Back: '' as IntlString,
|
|
94
|
+
Next: '' as IntlString,
|
|
95
|
+
DropdownDefaultLabel: '' as IntlString,
|
|
96
|
+
DD: '' as IntlString,
|
|
97
|
+
MM: '' as IntlString,
|
|
98
|
+
YYYY: '' as IntlString,
|
|
99
|
+
HH: '' as IntlString,
|
|
100
|
+
DueDatePopupTitle: '' as IntlString,
|
|
101
|
+
DueDatePopupOverdueTitle: '' as IntlString,
|
|
102
|
+
DueDatePopupDescription: '' as IntlString,
|
|
103
|
+
DueDatePopupOverdueDescription: '' as IntlString,
|
|
104
|
+
|
|
105
|
+
SmileysAndPeople: '' as IntlString,
|
|
106
|
+
Components: '' as IntlString,
|
|
107
|
+
AnimalsAndNature: '' as IntlString,
|
|
108
|
+
FoodAndDrink: '' as IntlString,
|
|
109
|
+
TravelAndPlaces: '' as IntlString,
|
|
110
|
+
Activities: '' as IntlString,
|
|
111
|
+
Objects: '' as IntlString,
|
|
112
|
+
Symbols: '' as IntlString,
|
|
113
|
+
Flags: '' as IntlString,
|
|
114
|
+
FrequentlyUsed: '' as IntlString,
|
|
115
|
+
GettingWorkDone: '' as IntlString,
|
|
116
|
+
DefaultSkinTone: '' as IntlString,
|
|
117
|
+
NoTone: '' as IntlString,
|
|
118
|
+
Light: '' as IntlString,
|
|
119
|
+
MediumLight: '' as IntlString,
|
|
120
|
+
Medium: '' as IntlString,
|
|
121
|
+
MediumDark: '' as IntlString,
|
|
122
|
+
Dark: '' as IntlString,
|
|
123
|
+
Remove: '' as IntlString,
|
|
124
|
+
NoResults: '' as IntlString,
|
|
125
|
+
MoreCount: '' as IntlString,
|
|
126
|
+
Spacious: '' as IntlString,
|
|
127
|
+
Compact: '' as IntlString,
|
|
128
|
+
ThemeLight: '' as IntlString,
|
|
129
|
+
ThemeDark: '' as IntlString,
|
|
130
|
+
ThemeSystem: '' as IntlString,
|
|
131
|
+
NoTimeZonesFound: '' as IntlString,
|
|
132
|
+
Selected: '' as IntlString,
|
|
133
|
+
Submit: '' as IntlString,
|
|
134
|
+
NextStep: '' as IntlString,
|
|
135
|
+
TypeHere: '' as IntlString,
|
|
136
|
+
|
|
137
|
+
NormalSize: '' as IntlString,
|
|
138
|
+
FullSize: '' as IntlString,
|
|
139
|
+
UseMaxWidth: '' as IntlString,
|
|
140
|
+
Sidebar: '' as IntlString,
|
|
141
|
+
FontSize: '' as IntlString,
|
|
142
|
+
Language: '' as IntlString,
|
|
143
|
+
DaysWOValue: '' as IntlString,
|
|
144
|
+
WeeksWOValue: '' as IntlString,
|
|
145
|
+
MonthsWOValue: '' as IntlString
|
|
146
|
+
},
|
|
147
|
+
metadata: {
|
|
148
|
+
DefaultApplication: '' as Metadata<AnyComponent>,
|
|
149
|
+
Routes: '' as Metadata<Map<string, AnyComponent>>,
|
|
150
|
+
Languages: '' as Metadata<string[]>,
|
|
151
|
+
PlatformTitle: '' as Metadata<string>,
|
|
152
|
+
SearchPopup: '' as Metadata<AnyComponent>
|
|
153
|
+
}
|
|
154
|
+
})
|
|
155
|
+
|
|
156
|
+
export default uis
|