@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/primitives/avatar.tsx
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import * as AvatarPrimitive from '@radix-ui/react-avatar'
|
|
4
|
-
|
|
5
|
-
import { cn } from '../util'
|
|
6
|
-
|
|
7
|
-
const Avatar = React.forwardRef<
|
|
8
|
-
React.ElementRef<typeof AvatarPrimitive.Root>,
|
|
9
|
-
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
|
|
10
|
-
>(({ className, ...props }, ref) => (
|
|
11
|
-
<AvatarPrimitive.Root
|
|
12
|
-
ref={ref}
|
|
13
|
-
className={cn(
|
|
14
|
-
'relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full',
|
|
15
|
-
className
|
|
16
|
-
)}
|
|
17
|
-
{...props}
|
|
18
|
-
/>
|
|
19
|
-
))
|
|
20
|
-
Avatar.displayName = AvatarPrimitive.Root.displayName
|
|
21
|
-
|
|
22
|
-
const AvatarImage = React.forwardRef<
|
|
23
|
-
React.ElementRef<typeof AvatarPrimitive.Image>,
|
|
24
|
-
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
|
|
25
|
-
>(({ className, ...props }, ref) => (
|
|
26
|
-
<AvatarPrimitive.Image
|
|
27
|
-
ref={ref}
|
|
28
|
-
className={cn('aspect-square h-full w-full', className)}
|
|
29
|
-
{...props}
|
|
30
|
-
/>
|
|
31
|
-
))
|
|
32
|
-
AvatarImage.displayName = AvatarPrimitive.Image.displayName
|
|
33
|
-
|
|
34
|
-
const AvatarFallback = React.forwardRef<
|
|
35
|
-
React.ElementRef<typeof AvatarPrimitive.Fallback>,
|
|
36
|
-
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
|
|
37
|
-
>(({ className, ...props }, ref) => (
|
|
38
|
-
<AvatarPrimitive.Fallback
|
|
39
|
-
ref={ref}
|
|
40
|
-
className={cn(
|
|
41
|
-
'flex h-full w-full items-center justify-center rounded-full bg-muted',
|
|
42
|
-
className
|
|
43
|
-
)}
|
|
44
|
-
{...props}
|
|
45
|
-
/>
|
|
46
|
-
))
|
|
47
|
-
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName
|
|
48
|
-
|
|
49
|
-
export { Avatar, AvatarImage, AvatarFallback }
|
package/primitives/badge.tsx
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import { cva, type VariantProps } from "class-variance-authority"
|
|
3
|
-
|
|
4
|
-
import { cn } from "../util"
|
|
5
|
-
|
|
6
|
-
const badgeVariants = cva(
|
|
7
|
-
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-ring ",
|
|
8
|
-
{
|
|
9
|
-
variants: {
|
|
10
|
-
variant: {
|
|
11
|
-
default:
|
|
12
|
-
"border-transparent bg-primary text-primary-fg shadow hover:bg-primary/80",
|
|
13
|
-
secondary:
|
|
14
|
-
"border-transparent bg-secondary text-secondary-fg hover:bg-secondary/80",
|
|
15
|
-
destructive:
|
|
16
|
-
"border-transparent bg-destructive text-destructive-fg shadow hover:bg-destructive/80",
|
|
17
|
-
outline: "text-foreground",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
defaultVariants: {
|
|
21
|
-
variant: "default",
|
|
22
|
-
},
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
interface BadgeProps
|
|
27
|
-
extends React.HTMLAttributes<HTMLDivElement>,
|
|
28
|
-
VariantProps<typeof badgeVariants> {}
|
|
29
|
-
|
|
30
|
-
const Badge: React.FC<BadgeProps> = ({
|
|
31
|
-
className, variant, ...props
|
|
32
|
-
}) => (
|
|
33
|
-
<div className={cn(badgeVariants({ variant }), className)} {...props} />
|
|
34
|
-
)
|
|
35
|
-
|
|
36
|
-
export { Badge as default, badgeVariants, type BadgeProps }
|
package/primitives/button.tsx
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import { Slot } from "@radix-ui/react-slot"
|
|
3
|
-
import { cva, type VariantProps } from "class-variance-authority"
|
|
4
|
-
|
|
5
|
-
import { cn } from "../util"
|
|
6
|
-
|
|
7
|
-
const variant = {
|
|
8
|
-
primary: "bg-primary text-primary-fg hover:bg-primary-hover font-nav whitespace-nowrap not-typography",
|
|
9
|
-
secondary: "bg-secondary text-secondary-fg hover:bg-secondary/80 font-nav whitespace-nowrap not-typography",
|
|
10
|
-
outline: "text-foreground bg-background border border-muted-4 hover:bg-level-1 hover:text-accent hover:border-accent font-nav whitespace-nowrap not-typography",
|
|
11
|
-
destructive: "bg-destructive text-destructive-fg font-sans whitespace-nowrap hover:bg-destructive-hover",
|
|
12
|
-
ghost: "text-foreground hover:bg-level-1 hover:text-accent whitespace-nowrap font-sans ",
|
|
13
|
-
link: "text-foreground hover:text-muted-1 font-sans ",
|
|
14
|
-
linkFG: "text-foreground hover:text-muted-1 font-sans ", // marker to style nav as regular link
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const size = {
|
|
18
|
-
link: '',
|
|
19
|
-
sm: "h-9 px-3 text-xs ",
|
|
20
|
-
square: 'h-10 py-2 px-2 text-sm aspect-square',
|
|
21
|
-
default: "h-10 py-2 px-4 text-sm lg:min-w-[220px]",
|
|
22
|
-
lg: "h-10 px-8 rounded-lg text-sm md:text-base min-w-0 md:min-w-[260px] lg:min-w-[300px]",
|
|
23
|
-
icon: "h-10 w-10",
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const buttonVariants = cva(
|
|
27
|
-
"flex items-center justify-center rounded-md font-medium transition-colors " +
|
|
28
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 " +
|
|
29
|
-
"disabled:opacity-50 disabled:pointer-events-none ring-offset-background",
|
|
30
|
-
{
|
|
31
|
-
variants: {
|
|
32
|
-
variant,
|
|
33
|
-
size
|
|
34
|
-
},
|
|
35
|
-
defaultVariants: {
|
|
36
|
-
variant: "primary",
|
|
37
|
-
size: "default",
|
|
38
|
-
},
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
type ButtonVariants = keyof typeof variant
|
|
43
|
-
type ButtonSizes = keyof typeof size
|
|
44
|
-
|
|
45
|
-
interface ButtonProps extends
|
|
46
|
-
React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
47
|
-
VariantProps<typeof buttonVariants>
|
|
48
|
-
{
|
|
49
|
-
asChild?: boolean
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
53
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
54
|
-
const Comp = asChild ? Slot : "button"
|
|
55
|
-
return (
|
|
56
|
-
<Comp
|
|
57
|
-
className={cn(buttonVariants({ variant, size, className }))}
|
|
58
|
-
ref={ref}
|
|
59
|
-
{...props}
|
|
60
|
-
/>
|
|
61
|
-
)
|
|
62
|
-
}
|
|
63
|
-
)
|
|
64
|
-
|
|
65
|
-
Button.displayName = "Button"
|
|
66
|
-
|
|
67
|
-
export {
|
|
68
|
-
Button as default,
|
|
69
|
-
type ButtonProps,
|
|
70
|
-
type ButtonVariants,
|
|
71
|
-
type ButtonSizes,
|
|
72
|
-
buttonVariants,
|
|
73
|
-
}
|
package/primitives/calendar.tsx
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import React from "react"
|
|
3
|
-
|
|
4
|
-
import { ChevronLeftIcon, ChevronRightIcon } from "@radix-ui/react-icons"
|
|
5
|
-
import { DayPicker } from "react-day-picker"
|
|
6
|
-
|
|
7
|
-
import { cn } from "../util"
|
|
8
|
-
import { buttonVariants } from "./button"
|
|
9
|
-
|
|
10
|
-
export type CalendarProps = React.ComponentProps<typeof DayPicker>
|
|
11
|
-
|
|
12
|
-
function Calendar({
|
|
13
|
-
className,
|
|
14
|
-
classNames,
|
|
15
|
-
showOutsideDays = true,
|
|
16
|
-
...props
|
|
17
|
-
}: CalendarProps) {
|
|
18
|
-
return (
|
|
19
|
-
<DayPicker
|
|
20
|
-
showOutsideDays={showOutsideDays}
|
|
21
|
-
className={cn("p-3", className)}
|
|
22
|
-
classNames={{
|
|
23
|
-
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
24
|
-
month: "space-y-4",
|
|
25
|
-
caption: "flex justify-center pt-1 relative items-center",
|
|
26
|
-
caption_label: "text-sm font-medium",
|
|
27
|
-
nav: "space-x-1 flex items-center",
|
|
28
|
-
nav_button: cn(
|
|
29
|
-
buttonVariants({ variant: "outline" }),
|
|
30
|
-
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
31
|
-
),
|
|
32
|
-
nav_button_previous: "absolute left-1",
|
|
33
|
-
nav_button_next: "absolute right-1",
|
|
34
|
-
table: "w-full border-collapse space-y-1",
|
|
35
|
-
head_row: "flex",
|
|
36
|
-
head_cell:
|
|
37
|
-
"text-muted-1 rounded-md w-8 font-normal text-[0.8rem]",
|
|
38
|
-
row: "flex w-full mt-2",
|
|
39
|
-
cell: cn(
|
|
40
|
-
"relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-level-1 [&:has([aria-selected].day-outside)]:bg-level-1/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",
|
|
41
|
-
props.mode === "range"
|
|
42
|
-
? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md"
|
|
43
|
-
: "[&:has([aria-selected])]:rounded-md"
|
|
44
|
-
),
|
|
45
|
-
day: cn(
|
|
46
|
-
buttonVariants({ variant: "ghost" }),
|
|
47
|
-
"h-8 w-8 p-0 font-normal aria-selected:opacity-100"
|
|
48
|
-
),
|
|
49
|
-
day_range_start: "day-range-start",
|
|
50
|
-
day_range_end: "day-range-end",
|
|
51
|
-
day_selected:
|
|
52
|
-
"bg-primary text-primary-fg hover:bg-primary hover:text-primary-fg focus:bg-primary focus:text-primary-fg",
|
|
53
|
-
day_today: "bg-accent text-primary-fg",
|
|
54
|
-
day_outside:
|
|
55
|
-
"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-1 aria-selected:opacity-30",
|
|
56
|
-
day_disabled: "text-muted-foreground opacity-50",
|
|
57
|
-
day_range_middle:
|
|
58
|
-
"aria-selected:bg-accent aria-selected:text-primary-fg",
|
|
59
|
-
day_hidden: "invisible",
|
|
60
|
-
...classNames,
|
|
61
|
-
}}
|
|
62
|
-
components={{
|
|
63
|
-
IconLeft: ({ ...props }) => <ChevronLeftIcon className="h-4 w-4" />,
|
|
64
|
-
IconRight: ({ ...props }) => <ChevronRightIcon className="h-4 w-4" />,
|
|
65
|
-
}}
|
|
66
|
-
{...props}
|
|
67
|
-
/>
|
|
68
|
-
)
|
|
69
|
-
}
|
|
70
|
-
Calendar.displayName = "Calendar"
|
|
71
|
-
|
|
72
|
-
export default Calendar
|
package/primitives/card.tsx
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import * as React from "react"
|
|
3
|
-
|
|
4
|
-
import { cn } from "../util"
|
|
5
|
-
|
|
6
|
-
const Card = React.forwardRef<
|
|
7
|
-
HTMLDivElement,
|
|
8
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
9
|
-
>(({ className, ...props }, ref) => {
|
|
10
|
-
return(
|
|
11
|
-
<div
|
|
12
|
-
ref={ref}
|
|
13
|
-
className={cn(
|
|
14
|
-
"rounded-lg border overflow-hidden shadow-sm",
|
|
15
|
-
className
|
|
16
|
-
)}
|
|
17
|
-
{...props}
|
|
18
|
-
/>
|
|
19
|
-
)
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
Card.displayName = "Card"
|
|
23
|
-
|
|
24
|
-
const CardHeader = React.forwardRef<
|
|
25
|
-
HTMLDivElement,
|
|
26
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
27
|
-
>(({ className, ...props }, ref) => (
|
|
28
|
-
<div
|
|
29
|
-
ref={ref}
|
|
30
|
-
className={cn("flex flex-col p-4 lg:p-6 xl:p-8 border-b", className)}
|
|
31
|
-
{...props}
|
|
32
|
-
/>
|
|
33
|
-
))
|
|
34
|
-
CardHeader.displayName = "CardHeader"
|
|
35
|
-
|
|
36
|
-
const CardTitle = React.forwardRef<
|
|
37
|
-
HTMLParagraphElement,
|
|
38
|
-
React.HTMLAttributes<HTMLHeadingElement>
|
|
39
|
-
>(({ className, ...props }, ref) => (
|
|
40
|
-
<h5
|
|
41
|
-
ref={ref}
|
|
42
|
-
className={cn(
|
|
43
|
-
"leading-none tracking-tight",
|
|
44
|
-
className
|
|
45
|
-
)}
|
|
46
|
-
{...props}
|
|
47
|
-
/>
|
|
48
|
-
))
|
|
49
|
-
CardTitle.displayName = "CardTitle"
|
|
50
|
-
|
|
51
|
-
const CardDescription = React.forwardRef<
|
|
52
|
-
HTMLParagraphElement,
|
|
53
|
-
React.HTMLAttributes<HTMLParagraphElement>
|
|
54
|
-
>(({ className, ...props }, ref) => (
|
|
55
|
-
<h6
|
|
56
|
-
ref={ref}
|
|
57
|
-
className={className}
|
|
58
|
-
{...props}
|
|
59
|
-
/>
|
|
60
|
-
))
|
|
61
|
-
CardDescription.displayName = "CardDescription"
|
|
62
|
-
|
|
63
|
-
const CardContent = React.forwardRef<
|
|
64
|
-
HTMLDivElement,
|
|
65
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
66
|
-
>(({ className, ...props }, ref) => (
|
|
67
|
-
<div ref={ref} className={cn("p-6", className)} {...props} />
|
|
68
|
-
))
|
|
69
|
-
CardContent.displayName = "CardContent"
|
|
70
|
-
|
|
71
|
-
const CardFooter = React.forwardRef<
|
|
72
|
-
HTMLDivElement,
|
|
73
|
-
React.HTMLAttributes<HTMLDivElement>
|
|
74
|
-
>(({ className, ...props }, ref) => (
|
|
75
|
-
<div
|
|
76
|
-
ref={ref}
|
|
77
|
-
className={cn("flex items-center px-6 py-3 border-t", className)}
|
|
78
|
-
{...props}
|
|
79
|
-
/>
|
|
80
|
-
))
|
|
81
|
-
CardFooter.displayName = "CardFooter"
|
|
82
|
-
|
|
83
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
|
package/primitives/checkbox.tsx
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox'
|
|
4
|
-
import { Check } from 'lucide-react'
|
|
5
|
-
|
|
6
|
-
import { cn } from '../util'
|
|
7
|
-
|
|
8
|
-
const Checkbox = React.forwardRef<
|
|
9
|
-
React.ElementRef<typeof CheckboxPrimitive.Root>,
|
|
10
|
-
React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
|
|
11
|
-
>(({ className, ...props }, ref) => (
|
|
12
|
-
<CheckboxPrimitive.Root
|
|
13
|
-
ref={ref}
|
|
14
|
-
className={cn(
|
|
15
|
-
'peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background ' +
|
|
16
|
-
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ' +
|
|
17
|
-
'focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 ' +
|
|
18
|
-
'data-[state=checked]:bg-primary data-[state=checked]:text-primary-fg',
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
21
|
-
{...props}
|
|
22
|
-
>
|
|
23
|
-
<CheckboxPrimitive.Indicator
|
|
24
|
-
className={cn('flex items-center justify-center text-current')}
|
|
25
|
-
>
|
|
26
|
-
<Check className='h-4 w-4' />
|
|
27
|
-
</CheckboxPrimitive.Indicator>
|
|
28
|
-
</CheckboxPrimitive.Root>
|
|
29
|
-
))
|
|
30
|
-
Checkbox.displayName = CheckboxPrimitive.Root.displayName
|
|
31
|
-
|
|
32
|
-
export default Checkbox
|
package/primitives/command.tsx
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import React from "react"
|
|
3
|
-
|
|
4
|
-
import { type DialogProps } from "@radix-ui/react-dialog"
|
|
5
|
-
import { Command as CommandPrimitive } from "cmdk"
|
|
6
|
-
import { Search } from "lucide-react"
|
|
7
|
-
|
|
8
|
-
import { cn } from "../util"
|
|
9
|
-
import { Dialog, DialogContent } from "./dialog"
|
|
10
|
-
|
|
11
|
-
const Command = React.forwardRef<
|
|
12
|
-
React.ElementRef<typeof CommandPrimitive>,
|
|
13
|
-
React.ComponentPropsWithoutRef<typeof CommandPrimitive>
|
|
14
|
-
>(({ className, ...props }, ref) => (
|
|
15
|
-
<CommandPrimitive
|
|
16
|
-
ref={ref}
|
|
17
|
-
className={cn(
|
|
18
|
-
"flex h-full w-full flex-col overflow-hidden rounded-md bg-level-1 text-foreground",
|
|
19
|
-
className
|
|
20
|
-
)}
|
|
21
|
-
{...props}
|
|
22
|
-
/>
|
|
23
|
-
))
|
|
24
|
-
Command.displayName = CommandPrimitive.displayName
|
|
25
|
-
|
|
26
|
-
interface CommandDialogProps extends DialogProps {}
|
|
27
|
-
|
|
28
|
-
const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
|
|
29
|
-
return (
|
|
30
|
-
<Dialog {...props}>
|
|
31
|
-
<DialogContent className="overflow-hidden p-0 shadow-lg">
|
|
32
|
-
<Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-1 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
|
|
33
|
-
{children}
|
|
34
|
-
</Command>
|
|
35
|
-
</DialogContent>
|
|
36
|
-
</Dialog>
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const CommandInput = React.forwardRef<
|
|
41
|
-
React.ElementRef<typeof CommandPrimitive.Input>,
|
|
42
|
-
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
|
|
43
|
-
>(({ className, ...props }, ref) => (
|
|
44
|
-
<div className="flex items-center border-b px-3" cmdk-input-wrapper="">
|
|
45
|
-
<Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
|
|
46
|
-
<CommandPrimitive.Input
|
|
47
|
-
ref={ref}
|
|
48
|
-
className={cn(
|
|
49
|
-
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
50
|
-
className
|
|
51
|
-
)}
|
|
52
|
-
{...props}
|
|
53
|
-
/>
|
|
54
|
-
</div>
|
|
55
|
-
))
|
|
56
|
-
|
|
57
|
-
CommandInput.displayName = CommandPrimitive.Input.displayName
|
|
58
|
-
|
|
59
|
-
const CommandList = React.forwardRef<
|
|
60
|
-
React.ElementRef<typeof CommandPrimitive.List>,
|
|
61
|
-
React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>
|
|
62
|
-
>(({ className, ...props }, ref) => (
|
|
63
|
-
<CommandPrimitive.List
|
|
64
|
-
ref={ref}
|
|
65
|
-
className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
|
|
66
|
-
{...props}
|
|
67
|
-
/>
|
|
68
|
-
))
|
|
69
|
-
|
|
70
|
-
CommandList.displayName = CommandPrimitive.List.displayName
|
|
71
|
-
|
|
72
|
-
const CommandEmpty = React.forwardRef<
|
|
73
|
-
React.ElementRef<typeof CommandPrimitive.Empty>,
|
|
74
|
-
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>
|
|
75
|
-
>((props, ref) => (
|
|
76
|
-
<CommandPrimitive.Empty
|
|
77
|
-
ref={ref}
|
|
78
|
-
className="py-6 text-center text-sm"
|
|
79
|
-
{...props}
|
|
80
|
-
/>
|
|
81
|
-
))
|
|
82
|
-
|
|
83
|
-
CommandEmpty.displayName = CommandPrimitive.Empty.displayName
|
|
84
|
-
|
|
85
|
-
const CommandGroup = React.forwardRef<
|
|
86
|
-
React.ElementRef<typeof CommandPrimitive.Group>,
|
|
87
|
-
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>
|
|
88
|
-
>(({ className, ...props }, ref) => (
|
|
89
|
-
<CommandPrimitive.Group
|
|
90
|
-
ref={ref}
|
|
91
|
-
className={cn(
|
|
92
|
-
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
93
|
-
className
|
|
94
|
-
)}
|
|
95
|
-
{...props}
|
|
96
|
-
/>
|
|
97
|
-
))
|
|
98
|
-
|
|
99
|
-
CommandGroup.displayName = CommandPrimitive.Group.displayName
|
|
100
|
-
|
|
101
|
-
const CommandSeparator = React.forwardRef<
|
|
102
|
-
React.ElementRef<typeof CommandPrimitive.Separator>,
|
|
103
|
-
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>
|
|
104
|
-
>(({ className, ...props }, ref) => (
|
|
105
|
-
<CommandPrimitive.Separator
|
|
106
|
-
ref={ref}
|
|
107
|
-
className={cn("-mx-1 h-px bg-border", className)}
|
|
108
|
-
{...props}
|
|
109
|
-
/>
|
|
110
|
-
))
|
|
111
|
-
CommandSeparator.displayName = CommandPrimitive.Separator.displayName
|
|
112
|
-
|
|
113
|
-
const CommandItem = React.forwardRef<
|
|
114
|
-
React.ElementRef<typeof CommandPrimitive.Item>,
|
|
115
|
-
React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
|
|
116
|
-
>(({ className, ...props }, ref) => (
|
|
117
|
-
<CommandPrimitive.Item
|
|
118
|
-
ref={ref}
|
|
119
|
-
className={cn(
|
|
120
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
121
|
-
className
|
|
122
|
-
)}
|
|
123
|
-
{...props}
|
|
124
|
-
/>
|
|
125
|
-
))
|
|
126
|
-
|
|
127
|
-
CommandItem.displayName = CommandPrimitive.Item.displayName
|
|
128
|
-
|
|
129
|
-
const CommandShortcut = ({
|
|
130
|
-
className,
|
|
131
|
-
...props
|
|
132
|
-
}: React.HTMLAttributes<HTMLSpanElement>) => {
|
|
133
|
-
return (
|
|
134
|
-
<span
|
|
135
|
-
className={cn(
|
|
136
|
-
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
137
|
-
className
|
|
138
|
-
)}
|
|
139
|
-
{...props}
|
|
140
|
-
/>
|
|
141
|
-
)
|
|
142
|
-
}
|
|
143
|
-
CommandShortcut.displayName = "CommandShortcut"
|
|
144
|
-
|
|
145
|
-
export {
|
|
146
|
-
Command,
|
|
147
|
-
CommandDialog,
|
|
148
|
-
CommandInput,
|
|
149
|
-
CommandList,
|
|
150
|
-
CommandEmpty,
|
|
151
|
-
CommandGroup,
|
|
152
|
-
CommandItem,
|
|
153
|
-
CommandShortcut,
|
|
154
|
-
CommandSeparator,
|
|
155
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
|
|
3
|
-
import React, { type PropsWithChildren, useState } from 'react'
|
|
4
|
-
|
|
5
|
-
const DialogVideoController: React.FC<PropsWithChildren> = ({
|
|
6
|
-
children,
|
|
7
|
-
}) => {
|
|
8
|
-
|
|
9
|
-
const [open, setOpen] = useState<boolean>(false)
|
|
10
|
-
|
|
11
|
-
const onOpenChange = (b: boolean) => {
|
|
12
|
-
setOpen(b)
|
|
13
|
-
const videos = document.getElementsByTagName('video')
|
|
14
|
-
const videoArray = Array.from(videos)
|
|
15
|
-
videoArray.forEach((v) => {
|
|
16
|
-
if (b) {
|
|
17
|
-
v.pause()
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
v.play()
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// https://stackoverflow.com/a/49052730/11645689
|
|
26
|
-
const updatedChildren = React.Children.map(
|
|
27
|
-
children,
|
|
28
|
-
(child) => (React.cloneElement(
|
|
29
|
-
child as any, { open, onOpenChange }
|
|
30
|
-
))
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
return (<>
|
|
34
|
-
{updatedChildren}
|
|
35
|
-
</>)
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default DialogVideoController
|
package/primitives/dialog.tsx
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import * as React from "react"
|
|
3
|
-
import * as DialogPrimitive from "@radix-ui/react-dialog"
|
|
4
|
-
import { X } from "lucide-react"
|
|
5
|
-
import { cn } from "../util"
|
|
6
|
-
|
|
7
|
-
const Dialog = DialogPrimitive.Root
|
|
8
|
-
|
|
9
|
-
const DialogTrigger = DialogPrimitive.Trigger
|
|
10
|
-
|
|
11
|
-
interface DialogPortalProps extends React.PropsWithChildren<React.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>> {
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const DialogPortal = React.forwardRef<
|
|
16
|
-
React.ElementRef<typeof DialogPrimitive.Portal>,
|
|
17
|
-
DialogPortalProps
|
|
18
|
-
>(({ className, children, ...props }, ref) => (
|
|
19
|
-
<DialogPrimitive.Portal {...props}>
|
|
20
|
-
<div className={cn("fixed inset-0 z-50 flex items-end justify-center sm:items-center", className)}>
|
|
21
|
-
{children}
|
|
22
|
-
</div>
|
|
23
|
-
</DialogPrimitive.Portal>
|
|
24
|
-
))
|
|
25
|
-
DialogPortal.displayName = 'DialogPortal'
|
|
26
|
-
|
|
27
|
-
interface DialogOverlayProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay> {
|
|
28
|
-
className?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const DialogOverlay = React.forwardRef<
|
|
32
|
-
React.ElementRef<typeof DialogPrimitive.Overlay>,
|
|
33
|
-
DialogOverlayProps
|
|
34
|
-
>(({ className, ...props }, ref) => (
|
|
35
|
-
<div className={cn("fixed inset-0 z-50 flex items-end justify-center sm:items-center", className)}>
|
|
36
|
-
<DialogPrimitive.Overlay ref={ref} {...props} />
|
|
37
|
-
</div>
|
|
38
|
-
))
|
|
39
|
-
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
interface DialogCloseProps extends React.PropsWithChildren<React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>> {
|
|
43
|
-
className?: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const DialogClose = React.forwardRef<
|
|
47
|
-
React.ElementRef<typeof DialogPrimitive.Close>,
|
|
48
|
-
DialogCloseProps
|
|
49
|
-
>(({ className, ...props }, ref) => (
|
|
50
|
-
<DialogPrimitive.Close
|
|
51
|
-
ref={ref}
|
|
52
|
-
className={cn(
|
|
53
|
-
"absolute right-4 top-3 p-1 justify-self-start hover:brightness-105 hover:scale-110 duration-100 ring-1 ring-muted transition bg-secondary-500 hover:text-primary-text focus:outline-none rounded-full items-center",
|
|
54
|
-
className
|
|
55
|
-
)}
|
|
56
|
-
{...props}
|
|
57
|
-
>
|
|
58
|
-
<X className="h-4 w-4" />
|
|
59
|
-
<span className="sr-only">Close</span>
|
|
60
|
-
</DialogPrimitive.Close>
|
|
61
|
-
))
|
|
62
|
-
|
|
63
|
-
DialogClose.displayName = DialogPrimitive.Close.displayName
|
|
64
|
-
|
|
65
|
-
const DialogContent = React.forwardRef<
|
|
66
|
-
React.ElementRef<typeof DialogPrimitive.Content>,
|
|
67
|
-
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
|
|
68
|
-
>(({ className, children, ...props }, ref) => (
|
|
69
|
-
<DialogPortal>
|
|
70
|
-
<DialogOverlay />
|
|
71
|
-
<DialogPrimitive.Content
|
|
72
|
-
ref={ref}
|
|
73
|
-
className={cn(
|
|
74
|
-
"fixed z-50 grid w-full gap-4 rounded-t-lg bg-secondary-800 p-4 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-sm sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",
|
|
75
|
-
className
|
|
76
|
-
)}
|
|
77
|
-
{...props}
|
|
78
|
-
>
|
|
79
|
-
{children}
|
|
80
|
-
<DialogClose />
|
|
81
|
-
</DialogPrimitive.Content>
|
|
82
|
-
</DialogPortal>
|
|
83
|
-
))
|
|
84
|
-
DialogContent.displayName = DialogPrimitive.Content.displayName
|
|
85
|
-
|
|
86
|
-
const DialogHeader = ({
|
|
87
|
-
className,
|
|
88
|
-
...props
|
|
89
|
-
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
90
|
-
<div
|
|
91
|
-
className={cn(
|
|
92
|
-
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
93
|
-
className
|
|
94
|
-
)}
|
|
95
|
-
{...props}
|
|
96
|
-
/>
|
|
97
|
-
)
|
|
98
|
-
DialogHeader.displayName = "DialogHeader"
|
|
99
|
-
|
|
100
|
-
const DialogFooter = ({
|
|
101
|
-
className,
|
|
102
|
-
...props
|
|
103
|
-
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
104
|
-
<div
|
|
105
|
-
className={cn(
|
|
106
|
-
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
107
|
-
className
|
|
108
|
-
)}
|
|
109
|
-
{...props}
|
|
110
|
-
/>
|
|
111
|
-
)
|
|
112
|
-
DialogFooter.displayName = "DialogFooter"
|
|
113
|
-
|
|
114
|
-
const DialogTitle = React.forwardRef<
|
|
115
|
-
React.ElementRef<typeof DialogPrimitive.Title>,
|
|
116
|
-
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
|
|
117
|
-
>(({ className, ...props }, ref) => (
|
|
118
|
-
<DialogPrimitive.Title
|
|
119
|
-
ref={ref}
|
|
120
|
-
className={cn(
|
|
121
|
-
"text-lg font-semibold leading-none tracking-tight text-primary-text",
|
|
122
|
-
className
|
|
123
|
-
)}
|
|
124
|
-
{...props}
|
|
125
|
-
/>
|
|
126
|
-
))
|
|
127
|
-
DialogTitle.displayName = DialogPrimitive.Title.displayName
|
|
128
|
-
|
|
129
|
-
const DialogDescription = React.forwardRef<
|
|
130
|
-
React.ElementRef<typeof DialogPrimitive.Description>,
|
|
131
|
-
React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
|
|
132
|
-
>(({ className, ...props }, ref) => (
|
|
133
|
-
<DialogPrimitive.Description
|
|
134
|
-
ref={ref}
|
|
135
|
-
className={cn("text-sm text-secondary-text", className)}
|
|
136
|
-
{...props}
|
|
137
|
-
/>
|
|
138
|
-
))
|
|
139
|
-
DialogDescription.displayName = DialogPrimitive.Description.displayName
|
|
140
|
-
|
|
141
|
-
export {
|
|
142
|
-
Dialog,
|
|
143
|
-
DialogTrigger,
|
|
144
|
-
DialogOverlay,
|
|
145
|
-
DialogClose,
|
|
146
|
-
DialogPortal,
|
|
147
|
-
DialogContent,
|
|
148
|
-
DialogHeader,
|
|
149
|
-
DialogFooter,
|
|
150
|
-
DialogTitle,
|
|
151
|
-
DialogDescription,
|
|
152
|
-
}
|