origam 2.5.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/assets/css/tokens/dark.css +3788 -3768
- package/dist/src/assets/css/tokens/light.css +1894 -1884
- package/dist/src/assets/css/tokens/primitive.css +2 -0
- package/dist/src/assets/css/tokens/themes-all.css +44226 -0
- package/dist/src/assets/locales/en.json +34 -2
- package/dist/src/assets/locales/fr.json +34 -2
- package/dist/src/assets/scss/tokens/_dark.scss +1894 -1884
- package/dist/src/assets/scss/tokens/_light.scss +1894 -1884
- package/dist/src/assets/scss/tokens/_primitive.scss +2 -0
- package/dist/src/assets/scss/tokens/_themes-all.scss +44241 -0
- package/dist/src/components/Alert/OrigamAlert.vue +16 -21
- package/dist/src/components/App/OrigamApp.vue +7 -38
- package/dist/src/components/App/OrigamAppBar.vue +35 -17
- package/dist/src/components/Audio/OrigamAudio.vue +77 -6
- package/dist/src/components/Avatar/OrigamAvatar.vue +11 -9
- package/dist/src/components/Avatar/OrigamAvatarGroup.vue +26 -8
- package/dist/src/components/Badge/OrigamBadge.vue +13 -3
- package/dist/src/components/Blockquote/OrigamBlockquote.vue +137 -13
- package/dist/src/components/BottomNav/OrigamBottomNav.vue +34 -4
- package/dist/src/components/Bracket/OrigamBracket.vue +386 -64
- package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +190 -13
- package/dist/src/components/Bracket/OrigamBracketMatch.vue +197 -42
- package/dist/src/components/Bracket/OrigamBracketRound.vue +11 -3
- package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +14 -12
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +4 -1
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +3 -5
- package/dist/src/components/Btn/OrigamBtn.vue +69 -30
- package/dist/src/components/Btn/OrigamBtnGroup.vue +33 -7
- package/dist/src/components/Btn/OrigamBtnToggle.vue +4 -7
- package/dist/src/components/Calendar/OrigamCalendar.vue +785 -658
- package/dist/src/components/Card/OrigamCard.vue +24 -3
- package/dist/src/components/Card/OrigamCardHeader.vue +17 -3
- package/dist/src/components/Card/OrigamCardText.vue +29 -7
- package/dist/src/components/Carousel/OrigamCarousel.vue +29 -9
- package/dist/src/components/Carousel/OrigamCarouselItem.vue +2 -2
- package/dist/src/components/Chart/OrigamChart.vue +3 -1
- package/dist/src/components/Chart/OrigamChartAxis.vue +1 -1
- package/dist/src/components/Chart/OrigamChartBoxPlot.vue +7 -3
- package/dist/src/components/Chart/OrigamChartBullet.vue +7 -3
- package/dist/src/components/Chart/OrigamChartCandlestick.vue +7 -3
- package/dist/src/components/Chart/OrigamChartCartesian.vue +14 -10
- package/dist/src/components/Chart/OrigamChartGauge.vue +7 -3
- package/dist/src/components/Chart/OrigamChartHeatmap.vue +7 -3
- package/dist/src/components/Chart/OrigamChartHoneycomb.vue +7 -3
- package/dist/src/components/Chart/OrigamChartLegend.vue +1 -2
- package/dist/src/components/Chart/OrigamChartMap.vue +7 -3
- package/dist/src/components/Chart/OrigamChartPareto.vue +7 -3
- package/dist/src/components/Chart/OrigamChartPictorial.vue +9 -6
- package/dist/src/components/Chart/OrigamChartPolar.vue +13 -6
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +7 -3
- package/dist/src/components/Chart/OrigamChartPyramid.vue +7 -3
- package/dist/src/components/Chart/OrigamChartRadar.vue +7 -5
- package/dist/src/components/Chart/OrigamChartRangeSelector.vue +3 -4
- package/dist/src/components/Chart/OrigamChartSankey.vue +7 -3
- package/dist/src/components/Chart/OrigamChartSparkline.vue +5 -3
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +9 -5
- package/dist/src/components/Chart/OrigamChartSunburst.vue +7 -3
- package/dist/src/components/Chart/OrigamChartTooltip.vue +1 -1
- package/dist/src/components/Chart/OrigamChartTreemap.vue +7 -3
- package/dist/src/components/Chart/OrigamChartVariwide.vue +7 -3
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +3 -2
- package/dist/src/components/Checkbox/OrigamCheckbox.vue +18 -3
- package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +4 -2
- package/dist/src/components/Chip/OrigamChip.vue +25 -12
- package/dist/src/components/Chip/OrigamChipGroup.vue +5 -5
- package/dist/src/components/ClientOnly/OrigamClientOnly.vue +1 -1
- package/dist/src/components/Clipboard/OrigamClipboard.vue +12 -4
- package/dist/src/components/Code/OrigamCode.vue +144 -39
- package/dist/src/components/ColorPicker/OrigamColorPicker.vue +7 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +3 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerEdit.vue +2 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerPreview.vue +1 -1
- package/dist/src/components/ColorPicker/OrigamColorPickerSwatches.vue +1 -1
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +15 -5
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +13 -3
- package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +1 -1
- package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +7 -2
- package/dist/src/components/Counter/OrigamCounter.vue +2 -1
- package/dist/src/components/DataList/OrigamDataList.vue +21 -5
- package/dist/src/components/DataList/OrigamDataText.vue +5 -1
- package/dist/src/components/DataList/OrigamDataTitle.vue +5 -1
- package/dist/src/components/DataTable/OrigamDataTable.vue +15 -7
- package/dist/src/components/DataTable/OrigamDataTableColumnCell.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableFooter.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableGroupHeaderRow.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableHeaderCell.vue +3 -2
- package/dist/src/components/DataTable/OrigamDataTableHeaders.vue +2 -1
- package/dist/src/components/DataTable/OrigamDataTableHeadersCell.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +1 -1
- package/dist/src/components/DataTable/OrigamDataTableRow.vue +5 -3
- package/dist/src/components/DataTable/OrigamDataTableRows.vue +3 -3
- package/dist/src/components/DatePicker/OrigamDatePicker.vue +21 -30
- package/dist/src/components/DatePicker/OrigamDatePickerControls.vue +2 -2
- package/dist/src/components/DatePicker/OrigamDatePickerHeader.vue +1 -1
- package/dist/src/components/DatePicker/OrigamDatePickerMonth.vue +16 -28
- package/dist/src/components/DatePicker/OrigamDatePickerMonths.vue +3 -3
- package/dist/src/components/DatePicker/OrigamDatePickerYears.vue +3 -3
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +27 -16
- package/dist/src/components/DefaultsProvider/OrigamDefaultsProvider.vue +1 -1
- package/dist/src/components/Dialog/OrigamDialog.vue +1 -1
- package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +1 -1
- package/dist/src/components/Divider/OrigamDivider.vue +2 -2
- package/dist/src/components/Drawer/OrigamDrawer.vue +5 -11
- package/dist/src/components/EmptyState/OrigamEmptyState.vue +14 -4
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +12 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +4 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +14 -5
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +2 -1
- package/dist/src/components/Field/OrigamField.vue +26 -9
- package/dist/src/components/FileField/OrigamFileField.vue +8 -3
- package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +14 -4
- package/dist/src/components/FileField/OrigamFileFieldListItem.vue +14 -4
- package/dist/src/components/Form/OrigamForm.vue +10 -2
- package/dist/src/components/Grid/OrigamGrid.vue +1 -1
- package/dist/src/components/Grid/OrigamGridItem.vue +1 -1
- package/dist/src/components/Grids/OrigamCol.vue +1 -1
- package/dist/src/components/Grids/OrigamContainer.vue +1 -1
- package/dist/src/components/Grids/OrigamRow.vue +6 -2
- package/dist/src/components/Grids/OrigamSpacer.vue +1 -1
- package/dist/src/components/Icon/OrigamClassIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamComponentIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamLigatureIcon.vue +1 -1
- package/dist/src/components/Icon/OrigamSvgIcon.vue +2 -2
- package/dist/src/components/Img/OrigamImg.vue +10 -9
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +14 -7
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScrollIntersect.vue +3 -2
- package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +13 -4
- package/dist/src/components/Input/OrigamInput.vue +17 -3
- package/dist/src/components/ItemGroup/OrigamItem.vue +1 -1
- package/dist/src/components/ItemGroup/OrigamItemGroup.vue +1 -1
- package/dist/src/components/Kbd/OrigamKbd.vue +18 -8
- package/dist/src/components/Label/OrigamLabel.vue +14 -3
- package/dist/src/components/Layout/OrigamLayout.vue +1 -1
- package/dist/src/components/Lazy/OrigamLazy.vue +1 -1
- package/dist/src/components/List/OrigamList.vue +1 -1
- package/dist/src/components/List/OrigamListChildren.vue +1 -1
- package/dist/src/components/List/OrigamListGroup.vue +4 -1
- package/dist/src/components/List/OrigamListGroupActivator.vue +1 -1
- package/dist/src/components/List/OrigamListItem.vue +14 -4
- package/dist/src/components/List/OrigamListSubheader.vue +13 -3
- package/dist/src/components/Loader/OrigamLoader.vue +1 -1
- package/dist/src/components/Main/OrigamMain.vue +1 -1
- package/dist/src/components/Masonry/OrigamMasonry.vue +2 -2
- package/dist/src/components/Media/OrigamMediaController.vue +1 -1
- package/dist/src/components/Media/OrigamMediaScrubber.vue +3 -2
- package/dist/src/components/Media/OrigamMediaVolumeControl.vue +3 -2
- package/dist/src/components/Menu/OrigamMenu.vue +9 -2
- package/dist/src/components/Messages/OrigamMessages.vue +13 -4
- package/dist/src/components/NumberField/OrigamNumberField.vue +80 -40
- package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +1 -1
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +107 -11
- package/dist/src/components/Overlay/OrigamOverlay.vue +1 -1
- package/dist/src/components/Overlay/OrigamOverlayScrim.vue +1 -1
- package/dist/src/components/Pagination/OrigamPagination.vue +16 -4
- package/dist/src/components/Parallax/OrigamParallax.vue +9 -2
- package/dist/src/components/Parallax/OrigamParallaxElement.vue +1 -1
- package/dist/src/components/Parallax/OrigamParallaxLayer.vue +2 -2
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +9 -2
- package/dist/src/components/Picker/OrigamPicker.vue +8 -3
- package/dist/src/components/Picker/OrigamPickerTitle.vue +10 -3
- package/dist/src/components/Progress/OrigamProgress.vue +6 -3
- package/dist/src/components/Progress/OrigamProgressCircular.vue +3 -1
- package/dist/src/components/Progress/OrigamProgressLinear.vue +5 -6
- package/dist/src/components/{QRCode → QrCode}/OrigamQrCode.vue +1 -1
- package/dist/src/components/QrCode/index.d.ts +1 -0
- package/dist/src/components/Radio/OrigamRadio.vue +20 -11
- package/dist/src/components/Radio/OrigamRadioBtn.vue +4 -2
- package/dist/src/components/Radio/OrigamRadioGroup.vue +48 -41
- package/dist/src/components/RatingField/OrigamRatingField.vue +9 -13
- package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +3 -6
- package/dist/src/components/Responsive/OrigamResponsive.vue +1 -1
- package/dist/src/components/Section/OrigamSection.vue +1 -1
- package/dist/src/components/Select/OrigamSelect.vue +19 -10
- package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +12 -6
- package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +2 -2
- package/dist/src/components/Sheet/OrigamSheet.vue +11 -3
- package/dist/src/components/Skeleton/OrigamSkeleton.vue +2 -4
- package/dist/src/components/Slide/OrigamSlideGroup.vue +1 -1
- package/dist/src/components/SliderField/OrigamSliderField.vue +7 -6
- package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +1 -1
- package/dist/src/components/Snackbar/OrigamSnackbar.vue +5 -4
- package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +1 -1
- package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +27 -26
- package/dist/src/components/Stepper/OrigamStepper.vue +6 -2
- package/dist/src/components/Stepper/OrigamStepperItem.vue +10 -3
- package/dist/src/components/Switch/OrigamSwitch.vue +35 -37
- package/dist/src/components/Switch/OrigamSwitchTrack.vue +9 -15
- package/dist/src/components/SystemBar/OrigamSystemBar.vue +14 -4
- package/dist/src/components/Table/OrigamTable.vue +15 -3
- package/dist/src/components/Tabs/OrigamTab.vue +13 -3
- package/dist/src/components/Tabs/OrigamTabPanel.vue +1 -1
- package/dist/src/components/Tabs/OrigamTabPanels.vue +1 -1
- package/dist/src/components/Tabs/OrigamTabs.vue +1 -1
- package/dist/src/components/TextField/OrigamTextField.vue +8 -1
- package/dist/src/components/TextMask/OrigamTextMask.vue +17 -27
- package/dist/src/components/TextareaField/OrigamRichToolbar.vue +15 -11
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +11 -1
- package/dist/src/components/ThemeProvider/OrigamThemeProvider.vue +4 -1
- package/dist/src/components/Timeline/OrigamTimeline.vue +3 -3
- package/dist/src/components/Timeline/OrigamTimelineItem.vue +3 -1
- package/dist/src/components/Title/OrigamTitle.vue +20 -8
- package/dist/src/components/Toolbar/OrigamToolbar.vue +17 -5
- package/dist/src/components/Tooltip/OrigamTooltip.vue +12 -3
- package/dist/src/components/Transition/OrigamExpandX.vue +1 -1
- package/dist/src/components/Transition/OrigamExpandY.vue +1 -1
- package/dist/src/components/Transition/OrigamFade.vue +1 -1
- package/dist/src/components/Transition/OrigamReverseTranslatePicker.vue +1 -1
- package/dist/src/components/Transition/OrigamScaleRotate.vue +1 -1
- package/dist/src/components/Transition/OrigamSlideX.vue +1 -1
- package/dist/src/components/Transition/OrigamSlideY.vue +1 -1
- package/dist/src/components/Transition/OrigamSnack.vue +1 -1
- package/dist/src/components/Transition/OrigamTransition.vue +1 -1
- package/dist/src/components/Transition/OrigamTranslateBottom.vue +1 -1
- package/dist/src/components/Transition/OrigamTranslatePicker.vue +1 -1
- package/dist/src/components/Transition/OrigamTranslateScale.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowXReverseTranslate.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowXTranslate.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowYReverseTranslate.vue +1 -1
- package/dist/src/components/Transition/OrigamWindowYTranslate.vue +1 -1
- package/dist/src/components/Treeview/OrigamTreeview.vue +1 -1
- package/dist/src/components/Treeview/OrigamTreeviewNode.vue +7 -5
- package/dist/src/components/Video/OrigamVideo.vue +56 -63
- package/dist/src/components/VirtualScroll/OrigamVirtualScroll.vue +1 -1
- package/dist/src/components/VirtualScroll/OrigamVirtualScrollItem.vue +1 -6
- package/dist/src/components/Watermark/OrigamWatermark.vue +1 -1
- package/dist/src/components/Window/OrigamWindow.vue +32 -2
- package/dist/src/components/Window/OrigamWindowItem.vue +1 -1
- package/dist/src/components/index.cjs +1 -1
- package/dist/src/components/index.js +1 -1
- package/dist/src/composables/Chart/chart-gauge.composable.cjs +1 -1
- package/dist/src/composables/Chart/chart-gauge.composable.js +1 -1
- package/dist/src/composables/Chart/chart-header-typography.composable.cjs +20 -0
- package/dist/src/composables/Chart/chart-header-typography.composable.d.ts +27 -0
- package/dist/src/composables/Chart/chart-header-typography.composable.js +11 -0
- package/dist/src/composables/Chart/chart-zoom.composable.cjs +0 -1
- package/dist/src/composables/Chart/chart-zoom.composable.js +0 -1
- package/dist/src/composables/Chart/chart.composable.cjs +0 -11
- package/dist/src/composables/Chart/chart.composable.js +0 -11
- package/dist/src/composables/Code/code.composable.js +4 -1
- package/dist/src/composables/Commons/audio.composable.d.ts +9 -9
- package/dist/src/composables/Commons/border.composable.cjs +10 -0
- package/dist/src/composables/Commons/border.composable.js +7 -0
- package/dist/src/composables/Commons/color.composable.cjs +42 -42
- package/dist/src/composables/Commons/color.composable.d.ts +8 -3
- package/dist/src/composables/Commons/color.composable.js +2 -2
- package/dist/src/composables/Commons/date-picker-calendar.composable.cjs +1 -1
- package/dist/src/composables/Commons/date-picker-calendar.composable.d.ts +1 -1
- package/dist/src/composables/Commons/date-picker-calendar.composable.js +1 -1
- package/dist/src/composables/Commons/defaults.composable.cjs +10 -9
- package/dist/src/composables/Commons/defaults.composable.js +10 -9
- package/dist/src/composables/Commons/delay.composable.cjs +8 -3
- package/dist/src/composables/Commons/delay.composable.js +7 -4
- package/dist/src/composables/Commons/density.composable.cjs +1 -1
- package/dist/src/composables/Commons/density.composable.js +2 -2
- package/dist/src/composables/Commons/dragResizer.composable.cjs +7 -9
- package/dist/src/composables/Commons/dragResizer.composable.js +8 -9
- package/dist/src/composables/Commons/focus.composable.cjs +1 -1
- package/dist/src/composables/Commons/focus.composable.js +1 -1
- package/dist/src/composables/Commons/layout.composable.cjs +12 -0
- package/dist/src/composables/Commons/layout.composable.js +14 -0
- package/dist/src/composables/Commons/message.composable.cjs +1 -1
- package/dist/src/composables/Commons/message.composable.d.ts +1 -1
- package/dist/src/composables/Commons/message.composable.js +1 -1
- package/dist/src/composables/Commons/rounded.composable.cjs +15 -4
- package/dist/src/composables/Commons/rounded.composable.d.ts +1 -1
- package/dist/src/composables/Commons/rounded.composable.js +17 -6
- package/dist/src/composables/Commons/scroll.composable.cjs +2 -2
- package/dist/src/composables/Commons/scroll.composable.js +2 -2
- package/dist/src/composables/Commons/stateEffect.composable.cjs +36 -14
- package/dist/src/composables/Commons/stateEffect.composable.js +38 -14
- package/dist/src/composables/Commons/status.composable.cjs +11 -1
- package/dist/src/composables/Commons/status.composable.d.ts +2 -0
- package/dist/src/composables/Commons/status.composable.js +10 -1
- package/dist/src/composables/Commons/sticky.composable.d.ts +2 -14
- package/dist/src/composables/Commons/style.composable.cjs +5 -3
- package/dist/src/composables/Commons/style.composable.js +5 -3
- package/dist/src/composables/Commons/typography.composable.cjs +23 -0
- package/dist/src/composables/Commons/typography.composable.d.ts +7 -0
- package/dist/src/composables/Commons/typography.composable.js +21 -0
- package/dist/src/composables/DataTable/headers.composable.d.ts +4 -364
- package/dist/src/composables/Icon/icon.composable.cjs +6 -1
- package/dist/src/composables/Icon/icon.composable.js +4 -1
- package/dist/src/composables/InlineEdit/inline-edit.composable.cjs +16 -2
- package/dist/src/composables/InlineEdit/inline-edit.composable.js +16 -2
- package/dist/src/composables/Masonry/masonry.composable.d.ts +2 -1
- package/dist/src/composables/Responsive/aspect.composable.cjs +9 -1
- package/dist/src/composables/Responsive/aspect.composable.d.ts +1 -1
- package/dist/src/composables/Responsive/aspect.composable.js +9 -1
- package/dist/src/composables/Theme/installed-themes.composable.cjs +11 -0
- package/dist/src/composables/Theme/installed-themes.composable.d.ts +19 -0
- package/dist/src/composables/Theme/installed-themes.composable.js +5 -0
- package/dist/src/composables/Theme/theme.composable.cjs +86 -15
- package/dist/src/composables/Theme/theme.composable.d.ts +55 -10
- package/dist/src/composables/Theme/theme.composable.js +88 -17
- package/dist/src/composables/index.cjs +36 -0
- package/dist/src/composables/index.d.ts +3 -0
- package/dist/src/composables/index.js +3 -0
- package/dist/src/consts/Bracket/bracket.const.cjs +4 -2
- package/dist/src/consts/Bracket/bracket.const.d.ts +12 -0
- package/dist/src/consts/Bracket/bracket.const.js +2 -0
- package/dist/src/consts/Commons/density.const.cjs +2 -2
- package/dist/src/consts/Commons/density.const.d.ts +1 -1
- package/dist/src/consts/Commons/density.const.js +1 -1
- package/dist/src/consts/Commons/rounded.const.cjs +4 -2
- package/dist/src/consts/Commons/rounded.const.d.ts +22 -2
- package/dist/src/consts/Commons/rounded.const.js +3 -1
- package/dist/src/consts/DataTable/select.const.cjs +1 -1
- package/dist/src/consts/DataTable/select.const.js +1 -1
- package/dist/src/consts/Icon/mdi.const.cjs +6 -1
- package/dist/src/consts/Icon/mdi.const.js +10 -2
- package/dist/src/consts/Theme/theme.const.cjs +11 -1
- package/dist/src/consts/Theme/theme.const.d.ts +16 -0
- package/dist/src/consts/Theme/theme.const.js +10 -0
- package/dist/src/directives/Contrast/contrast.directive.cjs +150 -0
- package/dist/src/directives/Contrast/contrast.directive.d.ts +5 -0
- package/dist/src/directives/Contrast/contrast.directive.js +131 -0
- package/dist/src/directives/index.cjs +7 -0
- package/dist/src/directives/index.d.ts +1 -0
- package/dist/src/directives/index.js +1 -0
- package/dist/src/enums/BottomNav/bottom-nav-position.enum.cjs +12 -0
- package/dist/src/enums/BottomNav/bottom-nav-position.enum.d.ts +10 -0
- package/dist/src/enums/BottomNav/bottom-nav-position.enum.js +6 -0
- package/dist/src/enums/Toolbar/toolbar.enum.cjs +1 -0
- package/dist/src/enums/Toolbar/toolbar.enum.d.ts +2 -1
- package/dist/src/enums/Toolbar/toolbar.enum.js +1 -0
- package/dist/src/enums/index.cjs +22 -0
- package/dist/src/enums/index.d.ts +2 -0
- package/dist/src/enums/index.js +2 -0
- package/dist/src/interfaces/Alert/alert.interface.d.ts +2 -3
- package/dist/src/interfaces/App/app-bar.interface.d.ts +19 -1
- package/dist/src/interfaces/App/app.interface.cjs +1 -0
- package/dist/src/interfaces/App/app.interface.d.ts +24 -0
- package/dist/src/interfaces/Audio/audio-player.interface.d.ts +23 -2
- package/dist/src/interfaces/Avatar/avatar.interface.d.ts +2 -4
- package/dist/src/interfaces/Badge/badge.interface.d.ts +2 -2
- package/dist/src/interfaces/Blockquote/blockquote.interface.d.ts +23 -21
- package/dist/src/interfaces/BottomNav/bottom-nav.interface.d.ts +12 -4
- package/dist/src/interfaces/Bracket/bracket-competitor-component.interface.d.ts +17 -6
- package/dist/src/interfaces/Bracket/bracket-match-component.interface.d.ts +13 -6
- package/dist/src/interfaces/Bracket/bracket-match.interface.d.ts +22 -0
- package/dist/src/interfaces/Bracket/bracket-round-component.interface.d.ts +2 -2
- package/dist/src/interfaces/Bracket/bracket.interface.d.ts +17 -2
- package/dist/src/interfaces/Breadcrumb/breadcrumb-divider.interface.d.ts +2 -2
- package/dist/src/interfaces/Breadcrumb/breadcrumb.interface.d.ts +2 -3
- package/dist/src/interfaces/Btn/btn-group.interface.d.ts +2 -2
- package/dist/src/interfaces/Btn/btn.interface.d.ts +11 -3
- package/dist/src/interfaces/Calendar/calendar.interface.d.ts +7 -2
- package/dist/src/interfaces/Card/card-header.interface.d.ts +2 -2
- package/dist/src/interfaces/Card/card-text.interface.d.ts +2 -2
- package/dist/src/interfaces/Carousel/carousel.interface.d.ts +2 -2
- package/dist/src/interfaces/Chart/chart-base.interface.d.ts +9 -8
- package/dist/src/interfaces/Chart/chart-word-cloud.interface.d.ts +1 -1
- package/dist/src/interfaces/Chart/chart.interface.d.ts +12 -1
- package/dist/src/interfaces/Checkbox/checkbox-btn.interface.d.ts +3 -3
- package/dist/src/interfaces/Checkbox/checkbox.interface.d.ts +10 -9
- package/dist/src/interfaces/Chip/chip-group.interface.d.ts +3 -1
- package/dist/src/interfaces/Chip/chip.interface.d.ts +2 -2
- package/dist/src/interfaces/Clipboard/clipboard.interface.d.ts +2 -2
- package/dist/src/interfaces/Code/code.interface.d.ts +19 -2
- package/dist/src/interfaces/ColorPickerField/color-picker-field.interface.d.ts +2 -2
- package/dist/src/interfaces/CommandPalette/command-palette.interface.d.ts +2 -1
- package/dist/src/interfaces/Commons/calendar.interface.d.ts +3 -3
- package/dist/src/interfaces/Commons/commons.interface.d.ts +34 -1
- package/dist/src/interfaces/Commons/filters.interface.d.ts +2 -2
- package/dist/src/interfaces/Commons/hover.interface.d.ts +18 -3
- package/dist/src/interfaces/Commons/scroll.interface.d.ts +8 -1
- package/dist/src/interfaces/Commons/typography.interface.cjs +1 -0
- package/dist/src/interfaces/Commons/typography.interface.d.ts +52 -0
- package/dist/src/interfaces/Commons/typography.interface.js +0 -0
- package/dist/src/interfaces/Commons/validation.interface.d.ts +3 -1
- package/dist/src/interfaces/Counter/counter.interface.d.ts +2 -2
- package/dist/src/interfaces/DataList/data-list.interface.d.ts +2 -2
- package/dist/src/interfaces/DataList/data-text.interface.d.ts +5 -0
- package/dist/src/interfaces/DataList/data-title.interface.d.ts +5 -0
- package/dist/src/interfaces/DataTable/headers.interface.d.ts +5 -5
- package/dist/src/interfaces/DataTable/row.interface.d.ts +2 -2
- package/dist/src/interfaces/DatePicker/date-picker-controls.interface.d.ts +16 -8
- package/dist/src/interfaces/DatePicker/date-picker-header.interface.d.ts +6 -3
- package/dist/src/interfaces/DatePicker/date-picker-months.interface.d.ts +2 -2
- package/dist/src/interfaces/DatePicker/date-picker-years.interface.d.ts +1 -1
- package/dist/src/interfaces/DatePicker/date-picker.interface.d.ts +1 -1
- package/dist/src/interfaces/Dialog/dialog-confirmation.interface.d.ts +2 -2
- package/dist/src/interfaces/EmptyState/empty-state.interface.d.ts +9 -2
- package/dist/src/interfaces/ExpensionPanel/expansion-panel-header.interface.d.ts +2 -2
- package/dist/src/interfaces/Field/field.interface.d.ts +7 -2
- package/dist/src/interfaces/FileField/file-field-dragndrop-item.interface.d.ts +2 -2
- package/dist/src/interfaces/FileField/file-field-list-item.interface.d.ts +2 -2
- package/dist/src/interfaces/FileField/file-field.interface.d.ts +1 -1
- package/dist/src/interfaces/Form/form.interface.d.ts +2 -2
- package/dist/src/interfaces/Grids/row.interface.d.ts +2 -2
- package/dist/src/interfaces/InfiniteScroll/infinite-scroll.interface.d.ts +2 -2
- package/dist/src/interfaces/InlineEdit/inline-edit.interface.d.ts +31 -2
- package/dist/src/interfaces/Input/input.interface.d.ts +4 -3
- package/dist/src/interfaces/Kbd/kbd.interface.d.ts +2 -2
- package/dist/src/interfaces/Label/label.interface.d.ts +2 -2
- package/dist/src/interfaces/List/list-group.interface.d.ts +4 -1
- package/dist/src/interfaces/List/list-item.interface.d.ts +2 -2
- package/dist/src/interfaces/List/list-subheader.interface.d.ts +2 -2
- package/dist/src/interfaces/Media/media-scrubber.interface.d.ts +10 -2
- package/dist/src/interfaces/Messages/messages.interface.d.ts +2 -2
- package/dist/src/interfaces/NumberField/number-field.interface.d.ts +1 -1
- package/dist/src/interfaces/Nuxt/nuxt-module.interface.d.ts +55 -15
- package/dist/src/interfaces/OtpInputField/otp-input-field.interface.d.ts +4 -2
- package/dist/src/interfaces/Pagination/pagination.interface.d.ts +18 -3
- package/dist/src/interfaces/Parallax/parallax.interface.d.ts +2 -2
- package/dist/src/interfaces/PasswordField/password-field.interface.d.ts +1 -1
- package/dist/src/interfaces/Picker/picker-title.interface.d.ts +2 -2
- package/dist/src/interfaces/Progress/progress.interface.d.ts +8 -2
- package/dist/src/interfaces/RatingField/rating-field-item.interface.d.ts +2 -1
- package/dist/src/interfaces/SelectionControl/selection-control-group.interface.d.ts +2 -1
- package/dist/src/interfaces/SelectionControl/selection-control.interface.d.ts +23 -5
- package/dist/src/interfaces/Sheet/sheet.interface.d.ts +2 -2
- package/dist/src/interfaces/Snackbar/snackbar-item.interface.d.ts +2 -2
- package/dist/src/interfaces/SystemBar/system-bar.interface.d.ts +2 -2
- package/dist/src/interfaces/Table/table.interface.d.ts +2 -2
- package/dist/src/interfaces/Tabs/tab.interface.d.ts +7 -2
- package/dist/src/interfaces/TextField/text-field.interface.d.ts +1 -1
- package/dist/src/interfaces/TextMask/text-mask.interface.d.ts +7 -33
- package/dist/src/interfaces/TextareaField/textarea-field.interface.d.ts +3 -3
- package/dist/src/interfaces/Theme/origam-theme.interface.cjs +1 -0
- package/dist/src/interfaces/Theme/origam-theme.interface.d.ts +114 -0
- package/dist/src/interfaces/Theme/origam-theme.interface.js +0 -0
- package/dist/src/interfaces/Timeline/timeline.interface.d.ts +1 -1
- package/dist/src/interfaces/Title/title.interface.d.ts +2 -2
- package/dist/src/interfaces/Toolbar/toolbar.interface.d.ts +2 -2
- package/dist/src/interfaces/Tooltip/tooltip.interface.d.ts +2 -2
- package/dist/src/interfaces/Video/video.interface.d.ts +2 -2
- package/dist/src/interfaces/Window/window.interface.d.ts +2 -2
- package/dist/src/interfaces/index.cjs +33 -0
- package/dist/src/interfaces/index.d.ts +3 -0
- package/dist/src/interfaces/index.js +3 -0
- package/dist/src/nuxt/module.cjs +78 -8
- package/dist/src/nuxt/module.js +81 -9
- package/dist/src/nuxt/plugin.client.cjs +28 -10
- package/dist/src/nuxt/plugin.client.js +28 -10
- package/dist/src/nuxt/plugin.server.cjs +52 -12
- package/dist/src/nuxt/plugin.server.js +55 -13
- package/dist/src/origam.cjs +39 -2
- package/dist/src/origam.d.ts +19 -1
- package/dist/src/origam.js +46 -5
- package/dist/src/themes/index.cjs +24 -0
- package/dist/src/themes/index.d.ts +1 -0
- package/dist/src/themes/index.js +1 -0
- package/dist/src/themes/origam.theme.cjs +906 -0
- package/dist/src/themes/origam.theme.d.ts +4 -0
- package/dist/src/themes/origam.theme.js +379 -0
- package/dist/src/types/BottomNav/bottom-nav.type.d.ts +2 -0
- package/dist/src/types/Commons/font-family.type.cjs +1 -0
- package/dist/src/types/Commons/font-family.type.d.ts +5 -0
- package/dist/src/types/Commons/font-family.type.js +0 -0
- package/dist/src/types/Commons/font-size.type.cjs +1 -0
- package/dist/src/types/Commons/font-size.type.d.ts +6 -0
- package/dist/src/types/Commons/font-size.type.js +0 -0
- package/dist/src/types/Commons/font-weight.type.cjs +1 -0
- package/dist/src/types/Commons/font-weight.type.d.ts +5 -0
- package/dist/src/types/Commons/font-weight.type.js +0 -0
- package/dist/src/types/Commons/letter-spacing.type.cjs +1 -0
- package/dist/src/types/Commons/letter-spacing.type.d.ts +5 -0
- package/dist/src/types/Commons/letter-spacing.type.js +0 -0
- package/dist/src/types/Commons/line-height.type.cjs +1 -0
- package/dist/src/types/Commons/line-height.type.d.ts +5 -0
- package/dist/src/types/Commons/line-height.type.js +0 -0
- package/dist/src/types/Commons/mode.type.d.ts +1 -1
- package/dist/src/types/Theme/installed-theme.type.cjs +1 -0
- package/dist/src/types/Theme/installed-theme.type.d.ts +31 -0
- package/dist/src/types/Theme/installed-theme.type.js +0 -0
- package/dist/src/types/Theme/semantic-tree.type.cjs +1 -0
- package/dist/src/types/Theme/semantic-tree.type.d.ts +48 -0
- package/dist/src/types/Theme/semantic-tree.type.js +0 -0
- package/dist/src/types/Theme/theme.type.d.ts +27 -6
- package/dist/src/types/Theme/token-tree.type.cjs +1 -0
- package/dist/src/types/Theme/token-tree.type.d.ts +10 -0
- package/dist/src/types/Theme/token-tree.type.js +0 -0
- package/dist/src/types/index.cjs +88 -0
- package/dist/src/types/index.d.ts +8 -0
- package/dist/src/types/index.js +8 -0
- package/dist/src/types/tokens.type.d.ts +1 -1
- package/dist/src/utils/Bracket/bracket-surface.util.cjs +106 -0
- package/dist/src/utils/Bracket/bracket-surface.util.d.ts +47 -0
- package/dist/src/utils/Bracket/bracket-surface.util.js +88 -0
- package/dist/src/utils/Commons/color.util.cjs +4 -2
- package/dist/src/utils/Commons/color.util.js +4 -2
- package/dist/src/utils/Commons/commons.util.cjs +3 -2
- package/dist/src/utils/Commons/commons.util.js +3 -2
- package/dist/src/utils/Commons/dom.util.d.ts +1 -1
- package/dist/src/utils/Commons/elevation.util.cjs +1 -1
- package/dist/src/utils/Commons/elevation.util.js +1 -1
- package/dist/src/utils/Commons/forwardRefs.util.cjs +1 -1
- package/dist/src/utils/Commons/forwardRefs.util.js +1 -1
- package/dist/src/utils/Commons/gradient.util.cjs +3 -3
- package/dist/src/utils/Commons/gradient.util.js +1 -1
- package/dist/src/utils/Commons/hover.util.cjs +5 -1
- package/dist/src/utils/Commons/hover.util.js +5 -1
- package/dist/src/utils/Commons/ripple.util.cjs +1 -2
- package/dist/src/utils/Commons/ripple.util.js +2 -3
- package/dist/src/utils/Commons/rounded.util.cjs +5 -0
- package/dist/src/utils/Commons/rounded.util.d.ts +9 -0
- package/dist/src/utils/Commons/rounded.util.js +4 -0
- package/dist/src/utils/DataTable/headers.util.cjs +1 -1
- package/dist/src/utils/DataTable/headers.util.js +1 -1
- package/dist/src/utils/DataTable/sort.util.cjs +2 -2
- package/dist/src/utils/DataTable/sort.util.js +2 -2
- package/dist/src/utils/List/list-item.util.d.ts +7 -0
- package/dist/src/utils/Theme/apply-theme.util.cjs +148 -0
- package/dist/src/utils/Theme/apply-theme.util.d.ts +65 -0
- package/dist/src/utils/Theme/apply-theme.util.js +125 -0
- package/dist/src/utils/Theme/token-name.util.cjs +47 -0
- package/dist/src/utils/Theme/token-name.util.d.ts +54 -0
- package/dist/src/utils/Theme/token-name.util.js +55 -0
- package/dist/src/utils/index.cjs +22 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.js +2 -0
- package/package.json +17 -58
- package/CHANGELOG.md +0 -807
- package/README.md +0 -275
- package/dist/src/App.vue +0 -25
- package/dist/src/main.cjs +0 -7
- package/dist/src/main.d.ts +0 -1
- package/dist/src/main.js +0 -4
- /package/dist/src/components/{QRCode → QrCode}/index.cjs +0 -0
- /package/dist/src/components/{QRCode → QrCode}/index.js +0 -0
- /package/dist/src/{components/QRCode/index.d.ts → interfaces/App/app.interface.js} +0 -0
|
@@ -2,8 +2,16 @@ import { h } from "vue";
|
|
|
2
2
|
import { OrigamClassIcon } from "../../components/index.js";
|
|
3
3
|
import { MDI_ICONS } from "../../enums/index.js";
|
|
4
4
|
export const MDI = {
|
|
5
|
-
//
|
|
6
|
-
|
|
5
|
+
// The MDI font CSS exposes each glyph as `.mdi-<name>` (e.g. `.mdi-magnify`).
|
|
6
|
+
// Consumers may pass either the bare name (`magnify`) — as is the case when
|
|
7
|
+
// an `mdi:` prefix has been stripped by the icon resolver — or the already-
|
|
8
|
+
// prefixed form (`mdi-magnify`, as found in MDI_ALIASES below). We
|
|
9
|
+
// normalise to always emit the `mdi-` class so the font renders.
|
|
10
|
+
component: (props) => h(OrigamClassIcon, {
|
|
11
|
+
...props,
|
|
12
|
+
icon: typeof props.icon === "string" && !props.icon.startsWith("mdi-") ? `mdi-${props.icon}` : props.icon,
|
|
13
|
+
class: "mdi"
|
|
14
|
+
})
|
|
7
15
|
};
|
|
8
16
|
export const MDI_ALIASES = {
|
|
9
17
|
...MDI_ICONS,
|
|
@@ -3,13 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ORIGAM_THEME_STORAGE_KEY = exports.ORIGAM_THEME_LIGHT = exports.ORIGAM_THEME_DARK = exports.ORIGAM_THEME_AUTO = exports.ORIGAM_THEME_ATTR = exports.ORIGAM_NUXT_DEFAULT_THEMES = exports.ORIGAM_NUXT_DEFAULT_PREFIX = exports.ORIGAM_NUXT_DEFAULT_COOKIE_NAME = exports.ORIGAM_NUXT_DEFAULT_COOKIE_MAX_AGE = void 0;
|
|
6
|
+
exports.ORIGAM_THEME_STORAGE_KEY = exports.ORIGAM_THEME_LIGHT = exports.ORIGAM_THEME_DARK = exports.ORIGAM_THEME_AUTO = exports.ORIGAM_THEME_ATTR = exports.ORIGAM_THEMES_KEY = exports.ORIGAM_NUXT_DEFAULT_THEMES = exports.ORIGAM_NUXT_DEFAULT_THEME = exports.ORIGAM_NUXT_DEFAULT_PREFIX = exports.ORIGAM_NUXT_DEFAULT_MODE_COOKIE_NAME = exports.ORIGAM_NUXT_DEFAULT_MODES = exports.ORIGAM_NUXT_DEFAULT_MODE = exports.ORIGAM_NUXT_DEFAULT_COOKIE_NAME = exports.ORIGAM_NUXT_DEFAULT_COOKIE_MAX_AGE = exports.ORIGAM_MODE_STORAGE_KEY = exports.ORIGAM_MODE_LIGHT = exports.ORIGAM_MODE_DARK = exports.ORIGAM_MODE_AUTO = exports.ORIGAM_MODE_ATTR = void 0;
|
|
7
7
|
const ORIGAM_THEME_AUTO = exports.ORIGAM_THEME_AUTO = "auto";
|
|
8
8
|
const ORIGAM_THEME_LIGHT = exports.ORIGAM_THEME_LIGHT = "light";
|
|
9
9
|
const ORIGAM_THEME_DARK = exports.ORIGAM_THEME_DARK = "dark";
|
|
10
|
+
const ORIGAM_THEMES_KEY = exports.ORIGAM_THEMES_KEY = Symbol.for("origam:themes");
|
|
10
11
|
const ORIGAM_THEME_STORAGE_KEY = exports.ORIGAM_THEME_STORAGE_KEY = "origam-theme";
|
|
11
12
|
const ORIGAM_THEME_ATTR = exports.ORIGAM_THEME_ATTR = "data-theme";
|
|
13
|
+
const ORIGAM_MODE_AUTO = exports.ORIGAM_MODE_AUTO = "auto";
|
|
14
|
+
const ORIGAM_MODE_LIGHT = exports.ORIGAM_MODE_LIGHT = "light";
|
|
15
|
+
const ORIGAM_MODE_DARK = exports.ORIGAM_MODE_DARK = "dark";
|
|
16
|
+
const ORIGAM_MODE_STORAGE_KEY = exports.ORIGAM_MODE_STORAGE_KEY = "origam-mode";
|
|
17
|
+
const ORIGAM_MODE_ATTR = exports.ORIGAM_MODE_ATTR = "data-mode";
|
|
12
18
|
const ORIGAM_NUXT_DEFAULT_COOKIE_NAME = exports.ORIGAM_NUXT_DEFAULT_COOKIE_NAME = "origam-theme";
|
|
19
|
+
const ORIGAM_NUXT_DEFAULT_MODE_COOKIE_NAME = exports.ORIGAM_NUXT_DEFAULT_MODE_COOKIE_NAME = "origam-mode";
|
|
13
20
|
const ORIGAM_NUXT_DEFAULT_COOKIE_MAX_AGE = exports.ORIGAM_NUXT_DEFAULT_COOKIE_MAX_AGE = 60 * 60 * 24 * 365;
|
|
14
21
|
const ORIGAM_NUXT_DEFAULT_THEMES = exports.ORIGAM_NUXT_DEFAULT_THEMES = ["light", "dark"];
|
|
22
|
+
const ORIGAM_NUXT_DEFAULT_MODES = exports.ORIGAM_NUXT_DEFAULT_MODES = ["light", "dark"];
|
|
23
|
+
const ORIGAM_NUXT_DEFAULT_THEME = exports.ORIGAM_NUXT_DEFAULT_THEME = "auto";
|
|
24
|
+
const ORIGAM_NUXT_DEFAULT_MODE = exports.ORIGAM_NUXT_DEFAULT_MODE = "auto";
|
|
15
25
|
const ORIGAM_NUXT_DEFAULT_PREFIX = exports.ORIGAM_NUXT_DEFAULT_PREFIX = "Origam";
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
|
2
|
+
import type { TInstalledThemes } from '../../types';
|
|
1
3
|
export declare const ORIGAM_THEME_AUTO = "auto";
|
|
2
4
|
export declare const ORIGAM_THEME_LIGHT = "light";
|
|
3
5
|
export declare const ORIGAM_THEME_DARK = "dark";
|
|
6
|
+
/**
|
|
7
|
+
* App-level provide key carrying the list of brand themes installed via
|
|
8
|
+
* `createOrigam({ themes })`. Read it through `useInstalledThemes()`.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ORIGAM_THEMES_KEY: InjectionKey<TInstalledThemes>;
|
|
4
11
|
export declare const ORIGAM_THEME_STORAGE_KEY = "origam-theme";
|
|
5
12
|
export declare const ORIGAM_THEME_ATTR = "data-theme";
|
|
13
|
+
export declare const ORIGAM_MODE_AUTO = "auto";
|
|
14
|
+
export declare const ORIGAM_MODE_LIGHT = "light";
|
|
15
|
+
export declare const ORIGAM_MODE_DARK = "dark";
|
|
16
|
+
export declare const ORIGAM_MODE_STORAGE_KEY = "origam-mode";
|
|
17
|
+
export declare const ORIGAM_MODE_ATTR = "data-mode";
|
|
6
18
|
export declare const ORIGAM_NUXT_DEFAULT_COOKIE_NAME = "origam-theme";
|
|
19
|
+
export declare const ORIGAM_NUXT_DEFAULT_MODE_COOKIE_NAME = "origam-mode";
|
|
7
20
|
export declare const ORIGAM_NUXT_DEFAULT_COOKIE_MAX_AGE: number;
|
|
8
21
|
export declare const ORIGAM_NUXT_DEFAULT_THEMES: readonly ["light", "dark"];
|
|
22
|
+
export declare const ORIGAM_NUXT_DEFAULT_MODES: readonly ["light", "dark"];
|
|
23
|
+
export declare const ORIGAM_NUXT_DEFAULT_THEME = "auto";
|
|
24
|
+
export declare const ORIGAM_NUXT_DEFAULT_MODE = "auto";
|
|
9
25
|
export declare const ORIGAM_NUXT_DEFAULT_PREFIX = "Origam";
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
export const ORIGAM_THEME_AUTO = "auto";
|
|
2
2
|
export const ORIGAM_THEME_LIGHT = "light";
|
|
3
3
|
export const ORIGAM_THEME_DARK = "dark";
|
|
4
|
+
export const ORIGAM_THEMES_KEY = Symbol.for("origam:themes");
|
|
4
5
|
export const ORIGAM_THEME_STORAGE_KEY = "origam-theme";
|
|
5
6
|
export const ORIGAM_THEME_ATTR = "data-theme";
|
|
7
|
+
export const ORIGAM_MODE_AUTO = "auto";
|
|
8
|
+
export const ORIGAM_MODE_LIGHT = "light";
|
|
9
|
+
export const ORIGAM_MODE_DARK = "dark";
|
|
10
|
+
export const ORIGAM_MODE_STORAGE_KEY = "origam-mode";
|
|
11
|
+
export const ORIGAM_MODE_ATTR = "data-mode";
|
|
6
12
|
export const ORIGAM_NUXT_DEFAULT_COOKIE_NAME = "origam-theme";
|
|
13
|
+
export const ORIGAM_NUXT_DEFAULT_MODE_COOKIE_NAME = "origam-mode";
|
|
7
14
|
export const ORIGAM_NUXT_DEFAULT_COOKIE_MAX_AGE = 60 * 60 * 24 * 365;
|
|
8
15
|
export const ORIGAM_NUXT_DEFAULT_THEMES = ["light", "dark"];
|
|
16
|
+
export const ORIGAM_NUXT_DEFAULT_MODES = ["light", "dark"];
|
|
17
|
+
export const ORIGAM_NUXT_DEFAULT_THEME = "auto";
|
|
18
|
+
export const ORIGAM_NUXT_DEFAULT_MODE = "auto";
|
|
9
19
|
export const ORIGAM_NUXT_DEFAULT_PREFIX = "Origam";
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
exports.setContrastConfig = setContrastConfig;
|
|
8
|
+
let config = {
|
|
9
|
+
enabled: true,
|
|
10
|
+
threshold: 4.5
|
|
11
|
+
};
|
|
12
|
+
function setContrastConfig(value) {
|
|
13
|
+
if (value === void 0) return;
|
|
14
|
+
if (typeof value === "boolean") {
|
|
15
|
+
config = {
|
|
16
|
+
enabled: value,
|
|
17
|
+
threshold: config.threshold
|
|
18
|
+
};
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
config = {
|
|
22
|
+
enabled: value.enabled ?? true,
|
|
23
|
+
threshold: value.threshold ?? 4.5
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
let normCtx;
|
|
27
|
+
function srgbToRgb(color) {
|
|
28
|
+
const m = color.match(/color\(\s*srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+))?\s*\)/i);
|
|
29
|
+
if (!m) return null;
|
|
30
|
+
const ch = v => Math.round(Math.min(1, Math.max(0, parseFloat(v))) * 255);
|
|
31
|
+
const r = ch(m[1]),
|
|
32
|
+
g = ch(m[2]),
|
|
33
|
+
b = ch(m[3]);
|
|
34
|
+
const a = m[4] !== void 0 ? parseFloat(m[4]) : 1;
|
|
35
|
+
return a < 1 ? `rgba(${r}, ${g}, ${b}, ${a})` : `rgb(${r}, ${g}, ${b})`;
|
|
36
|
+
}
|
|
37
|
+
function toRgb(color) {
|
|
38
|
+
if (!color) return null;
|
|
39
|
+
const direct = srgbToRgb(color);
|
|
40
|
+
if (direct) return direct;
|
|
41
|
+
if (typeof document === "undefined") return color;
|
|
42
|
+
if (normCtx === void 0) normCtx = document.createElement("canvas").getContext("2d");
|
|
43
|
+
if (!normCtx) return color;
|
|
44
|
+
normCtx.fillStyle = "#000";
|
|
45
|
+
normCtx.fillStyle = color;
|
|
46
|
+
const onBlack = normCtx.fillStyle;
|
|
47
|
+
normCtx.fillStyle = "#fff";
|
|
48
|
+
normCtx.fillStyle = color;
|
|
49
|
+
const onWhite = normCtx.fillStyle;
|
|
50
|
+
if (onBlack !== onWhite) return null;
|
|
51
|
+
return srgbToRgb(onBlack) ?? onBlack;
|
|
52
|
+
}
|
|
53
|
+
function rgbaParts(rgb) {
|
|
54
|
+
if (!rgb) return null;
|
|
55
|
+
const m = rgb.match(/rgba?\(([^)]+)\)/i);
|
|
56
|
+
if (!m) return null;
|
|
57
|
+
const p = m[1].split(",").map(s => parseFloat(s.trim()));
|
|
58
|
+
if (p.length < 3 || p.slice(0, 3).some(Number.isNaN)) return null;
|
|
59
|
+
return {
|
|
60
|
+
r: p[0],
|
|
61
|
+
g: p[1],
|
|
62
|
+
b: p[2],
|
|
63
|
+
a: p[3] == null || Number.isNaN(p[3]) ? 1 : p[3]
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function over(top, bottom) {
|
|
67
|
+
const a = top.a;
|
|
68
|
+
return {
|
|
69
|
+
r: top.r * a + bottom.r * (1 - a),
|
|
70
|
+
g: top.g * a + bottom.g * (1 - a),
|
|
71
|
+
b: top.b * a + bottom.b * (1 - a),
|
|
72
|
+
a: 1
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function resolvePaintedBackground(el) {
|
|
76
|
+
const layers = [];
|
|
77
|
+
let node = el;
|
|
78
|
+
while (node) {
|
|
79
|
+
const parts = rgbaParts(toRgb(getComputedStyle(node).backgroundColor));
|
|
80
|
+
if (parts && parts.a > 0) {
|
|
81
|
+
layers.push(parts);
|
|
82
|
+
if (parts.a >= 1) break;
|
|
83
|
+
}
|
|
84
|
+
node = node.parentElement;
|
|
85
|
+
}
|
|
86
|
+
if (!layers.length) return null;
|
|
87
|
+
const deepest = layers[layers.length - 1];
|
|
88
|
+
let acc = deepest.a >= 1 ? layers.pop() : {
|
|
89
|
+
r: 255,
|
|
90
|
+
g: 255,
|
|
91
|
+
b: 255,
|
|
92
|
+
a: 1
|
|
93
|
+
};
|
|
94
|
+
for (let i = layers.length - 1; i >= 0; i -= 1) {
|
|
95
|
+
acc = over(layers[i], acc);
|
|
96
|
+
}
|
|
97
|
+
return `rgb(${Math.round(acc.r)}, ${Math.round(acc.g)}, ${Math.round(acc.b)})`;
|
|
98
|
+
}
|
|
99
|
+
function channelsOf(rgb) {
|
|
100
|
+
if (!rgb) return null;
|
|
101
|
+
const p = (rgb.match(/[\d.]+/g) ?? []).map(Number);
|
|
102
|
+
return p.length >= 3 && p.slice(0, 3).every(n => !Number.isNaN(n)) ? [p[0], p[1], p[2]] : null;
|
|
103
|
+
}
|
|
104
|
+
function relativeLuminance([r, g, b]) {
|
|
105
|
+
const channel = c => {
|
|
106
|
+
const s = c / 255;
|
|
107
|
+
return s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;
|
|
108
|
+
};
|
|
109
|
+
return 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);
|
|
110
|
+
}
|
|
111
|
+
function wcagRatio(a, b) {
|
|
112
|
+
const la = relativeLuminance(a);
|
|
113
|
+
const lb = relativeLuminance(b);
|
|
114
|
+
return (Math.max(la, lb) + 0.05) / (Math.min(la, lb) + 0.05);
|
|
115
|
+
}
|
|
116
|
+
const WHITE = [255, 255, 255];
|
|
117
|
+
const BLACK = [0, 0, 0];
|
|
118
|
+
function enforceContrast(el, enabled) {
|
|
119
|
+
delete el.dataset.origamContrastFixed;
|
|
120
|
+
if (!enabled || typeof window === "undefined") return;
|
|
121
|
+
if (el.dataset.origamColorLocked === "true") return;
|
|
122
|
+
const bg = channelsOf(resolvePaintedBackground(el));
|
|
123
|
+
if (!bg) return;
|
|
124
|
+
const fg = channelsOf(toRgb(getComputedStyle(el).color));
|
|
125
|
+
if (!fg) return;
|
|
126
|
+
const ratio = wcagRatio(fg, bg);
|
|
127
|
+
if (ratio >= config.threshold) return;
|
|
128
|
+
const better = wcagRatio(WHITE, bg) >= wcagRatio(BLACK, bg) ? "#fff" : "#000";
|
|
129
|
+
el.style.setProperty("color", better, "important");
|
|
130
|
+
el.dataset.origamContrastFixed = "true";
|
|
131
|
+
console.warn(`[origam] Low text contrast (${ratio.toFixed(2)}:1 < ${config.threshold}:1): text rgb(${fg.join(", ")}) on background rgb(${bg.join(", ")}). Overriding text colour to ${better} for legibility. Disable with createOrigam({ contrast: false }).`, el);
|
|
132
|
+
}
|
|
133
|
+
const SETTLE_MS = 250;
|
|
134
|
+
function schedule(el, enabled) {
|
|
135
|
+
if (typeof requestAnimationFrame !== "undefined") {
|
|
136
|
+
requestAnimationFrame(() => enforceContrast(el, enabled));
|
|
137
|
+
}
|
|
138
|
+
if (typeof setTimeout !== "undefined") {
|
|
139
|
+
setTimeout(() => enforceContrast(el, enabled), SETTLE_MS);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const vContrast = {
|
|
143
|
+
mounted(el, binding) {
|
|
144
|
+
schedule(el, config.enabled && binding.value !== false);
|
|
145
|
+
},
|
|
146
|
+
updated(el, binding) {
|
|
147
|
+
schedule(el, config.enabled && binding.value !== false);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
module.exports = vContrast;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Directive } from 'vue';
|
|
2
|
+
import type { IContrastOptions } from '../../interfaces';
|
|
3
|
+
export declare function setContrastConfig(value: boolean | IContrastOptions | undefined): void;
|
|
4
|
+
declare const vContrast: Directive<HTMLElement, boolean | undefined>;
|
|
5
|
+
export default vContrast;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
let config = {
|
|
2
|
+
enabled: true,
|
|
3
|
+
threshold: 4.5
|
|
4
|
+
};
|
|
5
|
+
export function setContrastConfig(value) {
|
|
6
|
+
if (value === void 0) return;
|
|
7
|
+
if (typeof value === "boolean") {
|
|
8
|
+
config = { enabled: value, threshold: config.threshold };
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
config = {
|
|
12
|
+
enabled: value.enabled ?? true,
|
|
13
|
+
threshold: value.threshold ?? 4.5
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
let normCtx;
|
|
17
|
+
function srgbToRgb(color) {
|
|
18
|
+
const m = color.match(/color\(\s*srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s*\/\s*([\d.]+))?\s*\)/i);
|
|
19
|
+
if (!m) return null;
|
|
20
|
+
const ch = (v) => Math.round(Math.min(1, Math.max(0, parseFloat(v))) * 255);
|
|
21
|
+
const r = ch(m[1]), g = ch(m[2]), b = ch(m[3]);
|
|
22
|
+
const a = m[4] !== void 0 ? parseFloat(m[4]) : 1;
|
|
23
|
+
return a < 1 ? `rgba(${r}, ${g}, ${b}, ${a})` : `rgb(${r}, ${g}, ${b})`;
|
|
24
|
+
}
|
|
25
|
+
function toRgb(color) {
|
|
26
|
+
if (!color) return null;
|
|
27
|
+
const direct = srgbToRgb(color);
|
|
28
|
+
if (direct) return direct;
|
|
29
|
+
if (typeof document === "undefined") return color;
|
|
30
|
+
if (normCtx === void 0) normCtx = document.createElement("canvas").getContext("2d");
|
|
31
|
+
if (!normCtx) return color;
|
|
32
|
+
normCtx.fillStyle = "#000";
|
|
33
|
+
normCtx.fillStyle = color;
|
|
34
|
+
const onBlack = normCtx.fillStyle;
|
|
35
|
+
normCtx.fillStyle = "#fff";
|
|
36
|
+
normCtx.fillStyle = color;
|
|
37
|
+
const onWhite = normCtx.fillStyle;
|
|
38
|
+
if (onBlack !== onWhite) return null;
|
|
39
|
+
return srgbToRgb(onBlack) ?? onBlack;
|
|
40
|
+
}
|
|
41
|
+
function rgbaParts(rgb) {
|
|
42
|
+
if (!rgb) return null;
|
|
43
|
+
const m = rgb.match(/rgba?\(([^)]+)\)/i);
|
|
44
|
+
if (!m) return null;
|
|
45
|
+
const p = m[1].split(",").map((s) => parseFloat(s.trim()));
|
|
46
|
+
if (p.length < 3 || p.slice(0, 3).some(Number.isNaN)) return null;
|
|
47
|
+
return { r: p[0], g: p[1], b: p[2], a: p[3] == null || Number.isNaN(p[3]) ? 1 : p[3] };
|
|
48
|
+
}
|
|
49
|
+
function over(top, bottom) {
|
|
50
|
+
const a = top.a;
|
|
51
|
+
return {
|
|
52
|
+
r: top.r * a + bottom.r * (1 - a),
|
|
53
|
+
g: top.g * a + bottom.g * (1 - a),
|
|
54
|
+
b: top.b * a + bottom.b * (1 - a),
|
|
55
|
+
a: 1
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function resolvePaintedBackground(el) {
|
|
59
|
+
const layers = [];
|
|
60
|
+
let node = el;
|
|
61
|
+
while (node) {
|
|
62
|
+
const parts = rgbaParts(toRgb(getComputedStyle(node).backgroundColor));
|
|
63
|
+
if (parts && parts.a > 0) {
|
|
64
|
+
layers.push(parts);
|
|
65
|
+
if (parts.a >= 1) break;
|
|
66
|
+
}
|
|
67
|
+
node = node.parentElement;
|
|
68
|
+
}
|
|
69
|
+
if (!layers.length) return null;
|
|
70
|
+
const deepest = layers[layers.length - 1];
|
|
71
|
+
let acc = deepest.a >= 1 ? layers.pop() : { r: 255, g: 255, b: 255, a: 1 };
|
|
72
|
+
for (let i = layers.length - 1; i >= 0; i -= 1) {
|
|
73
|
+
acc = over(layers[i], acc);
|
|
74
|
+
}
|
|
75
|
+
return `rgb(${Math.round(acc.r)}, ${Math.round(acc.g)}, ${Math.round(acc.b)})`;
|
|
76
|
+
}
|
|
77
|
+
function channelsOf(rgb) {
|
|
78
|
+
if (!rgb) return null;
|
|
79
|
+
const p = (rgb.match(/[\d.]+/g) ?? []).map(Number);
|
|
80
|
+
return p.length >= 3 && p.slice(0, 3).every((n) => !Number.isNaN(n)) ? [p[0], p[1], p[2]] : null;
|
|
81
|
+
}
|
|
82
|
+
function relativeLuminance([r, g, b]) {
|
|
83
|
+
const channel = (c) => {
|
|
84
|
+
const s = c / 255;
|
|
85
|
+
return s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;
|
|
86
|
+
};
|
|
87
|
+
return 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);
|
|
88
|
+
}
|
|
89
|
+
function wcagRatio(a, b) {
|
|
90
|
+
const la = relativeLuminance(a);
|
|
91
|
+
const lb = relativeLuminance(b);
|
|
92
|
+
return (Math.max(la, lb) + 0.05) / (Math.min(la, lb) + 0.05);
|
|
93
|
+
}
|
|
94
|
+
const WHITE = [255, 255, 255];
|
|
95
|
+
const BLACK = [0, 0, 0];
|
|
96
|
+
function enforceContrast(el, enabled) {
|
|
97
|
+
delete el.dataset.origamContrastFixed;
|
|
98
|
+
if (!enabled || typeof window === "undefined") return;
|
|
99
|
+
if (el.dataset.origamColorLocked === "true") return;
|
|
100
|
+
const bg = channelsOf(resolvePaintedBackground(el));
|
|
101
|
+
if (!bg) return;
|
|
102
|
+
const fg = channelsOf(toRgb(getComputedStyle(el).color));
|
|
103
|
+
if (!fg) return;
|
|
104
|
+
const ratio = wcagRatio(fg, bg);
|
|
105
|
+
if (ratio >= config.threshold) return;
|
|
106
|
+
const better = wcagRatio(WHITE, bg) >= wcagRatio(BLACK, bg) ? "#fff" : "#000";
|
|
107
|
+
el.style.setProperty("color", better, "important");
|
|
108
|
+
el.dataset.origamContrastFixed = "true";
|
|
109
|
+
console.warn(
|
|
110
|
+
`[origam] Low text contrast (${ratio.toFixed(2)}:1 < ${config.threshold}:1): text rgb(${fg.join(", ")}) on background rgb(${bg.join(", ")}). Overriding text colour to ${better} for legibility. Disable with createOrigam({ contrast: false }).`,
|
|
111
|
+
el
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
const SETTLE_MS = 250;
|
|
115
|
+
function schedule(el, enabled) {
|
|
116
|
+
if (typeof requestAnimationFrame !== "undefined") {
|
|
117
|
+
requestAnimationFrame(() => enforceContrast(el, enabled));
|
|
118
|
+
}
|
|
119
|
+
if (typeof setTimeout !== "undefined") {
|
|
120
|
+
setTimeout(() => enforceContrast(el, enabled), SETTLE_MS);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
const vContrast = {
|
|
124
|
+
mounted(el, binding) {
|
|
125
|
+
schedule(el, config.enabled && binding.value !== false);
|
|
126
|
+
},
|
|
127
|
+
updated(el, binding) {
|
|
128
|
+
schedule(el, config.enabled && binding.value !== false);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
export default vContrast;
|
|
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "vClickOutside", {
|
|
|
9
9
|
return _clickOutside.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "vContrast", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _contrast.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
12
18
|
Object.defineProperty(exports, "vHover", {
|
|
13
19
|
enumerable: true,
|
|
14
20
|
get: function () {
|
|
@@ -38,4 +44,5 @@ var _clickOutside = _interopRequireDefault(require("./ClickOutside/clickOutside.
|
|
|
38
44
|
var _intersect = _interopRequireDefault(require("./Intersect/intersect.directive.cjs"));
|
|
39
45
|
var _touch = _interopRequireDefault(require("./Touch/touch.directive.cjs"));
|
|
40
46
|
var _hover = _interopRequireDefault(require("./Hover/hover.directive.cjs"));
|
|
47
|
+
var _contrast = _interopRequireDefault(require("./Contrast/contrast.directive.cjs"));
|
|
41
48
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -3,3 +3,4 @@ export { default as vClickOutside } from './ClickOutside/clickOutside.directive'
|
|
|
3
3
|
export { default as vIntersect } from './Intersect/intersect.directive';
|
|
4
4
|
export { default as vTouch } from './Touch/touch.directive';
|
|
5
5
|
export { default as vHover } from './Hover/hover.directive';
|
|
6
|
+
export { default as vContrast } from './Contrast/contrast.directive';
|
|
@@ -3,3 +3,4 @@ export { default as vClickOutside } from "./ClickOutside/clickOutside.directive.
|
|
|
3
3
|
export { default as vIntersect } from "./Intersect/intersect.directive.js";
|
|
4
4
|
export { default as vTouch } from "./Touch/touch.directive.js";
|
|
5
5
|
export { default as vHover } from "./Hover/hover.directive.js";
|
|
6
|
+
export { default as vContrast } from "./Contrast/contrast.directive.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BOTTOM_NAV_POSITION = void 0;
|
|
7
|
+
var BOTTOM_NAV_POSITION = exports.BOTTOM_NAV_POSITION = /* @__PURE__ */(BOTTOM_NAV_POSITION2 => {
|
|
8
|
+
BOTTOM_NAV_POSITION2["START"] = "start";
|
|
9
|
+
BOTTOM_NAV_POSITION2["CENTER"] = "center";
|
|
10
|
+
BOTTOM_NAV_POSITION2["END"] = "end";
|
|
11
|
+
return BOTTOM_NAV_POSITION2;
|
|
12
|
+
})(BOTTOM_NAV_POSITION || {});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Horizontal placement of the bottom navigation bar when it does not span
|
|
3
|
+
* the full width (e.g. a custom `width`). Maps to inline-start / centred /
|
|
4
|
+
* inline-end alignment within the layout region.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum BOTTOM_NAV_POSITION {
|
|
7
|
+
START = "start",
|
|
8
|
+
CENTER = "center",
|
|
9
|
+
END = "end"
|
|
10
|
+
}
|
|
@@ -9,5 +9,6 @@ var SCROLL_BEHAVIOR = exports.SCROLL_BEHAVIOR = /* @__PURE__ */(SCROLL_BEHAVIOR2
|
|
|
9
9
|
SCROLL_BEHAVIOR2["INVERTED"] = "inverted";
|
|
10
10
|
SCROLL_BEHAVIOR2["COLLAPSE"] = "collapse";
|
|
11
11
|
SCROLL_BEHAVIOR2["ELEVATED"] = "elevate";
|
|
12
|
+
SCROLL_BEHAVIOR2["ACTIVE"] = "active";
|
|
12
13
|
return SCROLL_BEHAVIOR2;
|
|
13
14
|
})(SCROLL_BEHAVIOR || {});
|
|
@@ -3,5 +3,6 @@ export var SCROLL_BEHAVIOR = /* @__PURE__ */ ((SCROLL_BEHAVIOR2) => {
|
|
|
3
3
|
SCROLL_BEHAVIOR2["INVERTED"] = "inverted";
|
|
4
4
|
SCROLL_BEHAVIOR2["COLLAPSE"] = "collapse";
|
|
5
5
|
SCROLL_BEHAVIOR2["ELEVATED"] = "elevate";
|
|
6
|
+
SCROLL_BEHAVIOR2["ACTIVE"] = "active";
|
|
6
7
|
return SCROLL_BEHAVIOR2;
|
|
7
8
|
})(SCROLL_BEHAVIOR || {});
|
package/dist/src/enums/index.cjs
CHANGED
|
@@ -234,6 +234,17 @@ Object.keys(_codeLang).forEach(function (key) {
|
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
|
+
var _codeTheme = require("./Code/code-theme.enum.cjs");
|
|
238
|
+
Object.keys(_codeTheme).forEach(function (key) {
|
|
239
|
+
if (key === "default" || key === "__esModule") return;
|
|
240
|
+
if (key in exports && exports[key] === _codeTheme[key]) return;
|
|
241
|
+
Object.defineProperty(exports, key, {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function () {
|
|
244
|
+
return _codeTheme[key];
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
});
|
|
237
248
|
var _colorPicker = require("./ColorPicker/color-picker.enum.cjs");
|
|
238
249
|
Object.keys(_colorPicker).forEach(function (key) {
|
|
239
250
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -652,6 +663,17 @@ Object.keys(_bracketVariant).forEach(function (key) {
|
|
|
652
663
|
}
|
|
653
664
|
});
|
|
654
665
|
});
|
|
666
|
+
var _bottomNavPosition = require("./BottomNav/bottom-nav-position.enum.cjs");
|
|
667
|
+
Object.keys(_bottomNavPosition).forEach(function (key) {
|
|
668
|
+
if (key === "default" || key === "__esModule") return;
|
|
669
|
+
if (key in exports && exports[key] === _bottomNavPosition[key]) return;
|
|
670
|
+
Object.defineProperty(exports, key, {
|
|
671
|
+
enumerable: true,
|
|
672
|
+
get: function () {
|
|
673
|
+
return _bottomNavPosition[key];
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
});
|
|
655
677
|
var _bracketMatchStatus = require("./Bracket/bracket-match-status.enum.cjs");
|
|
656
678
|
Object.keys(_bracketMatchStatus).forEach(function (key) {
|
|
657
679
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -19,6 +19,7 @@ export * from './Chart/chart-map-mode.enum';
|
|
|
19
19
|
export * from './Chart/chart-sparkline-kind.enum';
|
|
20
20
|
export * from './Chart/chart-stacking.enum';
|
|
21
21
|
export * from './Code/code-lang.enum';
|
|
22
|
+
export * from './Code/code-theme.enum';
|
|
22
23
|
export * from './ColorPicker/color-picker.enum';
|
|
23
24
|
export * from './Commons/commons.enum';
|
|
24
25
|
export * from './Commons/align.enum';
|
|
@@ -57,6 +58,7 @@ export * from './Transition/transition.enum';
|
|
|
57
58
|
export * from './Blockquote/blockquote-variant.enum';
|
|
58
59
|
export * from './Blockquote/blockquote-lang.enum';
|
|
59
60
|
export * from './Bracket/bracket-variant.enum';
|
|
61
|
+
export * from './BottomNav/bottom-nav-position.enum';
|
|
60
62
|
export * from './Bracket/bracket-match-status.enum';
|
|
61
63
|
export * from './Card/card.enum';
|
|
62
64
|
export * from './InfiniteScroll/infinite-scroll.enum';
|
package/dist/src/enums/index.js
CHANGED
|
@@ -19,6 +19,7 @@ export * from "./Chart/chart-map-mode.enum.js";
|
|
|
19
19
|
export * from "./Chart/chart-sparkline-kind.enum.js";
|
|
20
20
|
export * from "./Chart/chart-stacking.enum.js";
|
|
21
21
|
export * from "./Code/code-lang.enum.js";
|
|
22
|
+
export * from "./Code/code-theme.enum.js";
|
|
22
23
|
export * from "./ColorPicker/color-picker.enum.js";
|
|
23
24
|
export * from "./Commons/commons.enum.js";
|
|
24
25
|
export * from "./Commons/align.enum.js";
|
|
@@ -57,6 +58,7 @@ export * from "./Transition/transition.enum.js";
|
|
|
57
58
|
export * from "./Blockquote/blockquote-variant.enum.js";
|
|
58
59
|
export * from "./Blockquote/blockquote-lang.enum.js";
|
|
59
60
|
export * from "./Bracket/bracket-variant.enum.js";
|
|
61
|
+
export * from "./BottomNav/bottom-nav-position.enum.js";
|
|
60
62
|
export * from "./Bracket/bracket-match-status.enum.js";
|
|
61
63
|
export * from "./Card/card.enum.js";
|
|
62
64
|
export * from "./InfiniteScroll/infinite-scroll.enum.js";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { IAdjacentProps, IBorderProps, IBgColorProps, IClickCloseEmits, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IHoverEmits, IHoverProps, ILocationProps, IMarginProps, IPaddingProps, IPositionProps, IRoundedProps, IStatusProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { IAdjacentProps, IBorderProps, IBgColorProps, IClickCloseEmits, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IHoverEmits, IHoverProps, ILocationProps, IMarginProps, IPaddingProps, IPositionProps, IRoundedProps, IStatusProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TIcon } from '../../types';
|
|
3
|
-
export interface IAlertProps extends ICommonsComponentProps, ITagProps, IColorProps, IBgColorProps, IBorderProps, IDimensionProps, IPaddingProps, IMarginProps, IDensityProps, IElevationProps, ILocationProps, IPositionProps, IRoundedProps, IStatusProps, IHoverProps, IAdjacentProps {
|
|
3
|
+
export interface IAlertProps extends ICommonsComponentProps, ITagProps, IColorProps, IBgColorProps, IBorderProps, IDimensionProps, IPaddingProps, IMarginProps, IDensityProps, IElevationProps, ILocationProps, IPositionProps, IRoundedProps, IStatusProps, IHoverProps, IAdjacentProps, ITypographyProps {
|
|
4
4
|
closable?: boolean;
|
|
5
5
|
closeIcon?: TIcon;
|
|
6
6
|
closeLabel?: string;
|
|
7
7
|
modelValue?: boolean;
|
|
8
|
-
prominent?: boolean;
|
|
9
8
|
title?: string;
|
|
10
9
|
text?: string;
|
|
11
10
|
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import type { ICommonsComponentEmits, IImgProps, ILayoutItemProps, IScrollProps, IToolbarProps } from '../../interfaces';
|
|
2
2
|
import type { TBlock } from "../../types";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A docked AppBar's cross-axis size (`width` for a top/bottom bar) is owned by
|
|
5
|
+
* the layout engine — it always spans `calc(100% - reservedLeft - reservedRight)`
|
|
6
|
+
* so `main` / drawers offset correctly. Exposing `width` / `minWidth` /
|
|
7
|
+
* `maxWidth` would be a lie (the layout overrides them), so they're omitted
|
|
8
|
+
* from the surface. `height` stays: it defines the bar's reserved thickness.
|
|
9
|
+
*
|
|
10
|
+
* `floating` is also omitted: it sets `display: inline-flex` on the Toolbar to
|
|
11
|
+
* shrink-wrap its content, but the layout forces the docked bar to full width
|
|
12
|
+
* (`calc(100% - …)`), neutralising it. It only makes sense on a standalone
|
|
13
|
+
* `OrigamToolbar`.
|
|
14
|
+
*
|
|
15
|
+
* `absolute` is omitted too: it only toggles `position: absolute` ↔ `fixed`
|
|
16
|
+
* (both keep the bar pinned at `top: 0`; it does NOT make the bar scroll away —
|
|
17
|
+
* that's `scroll-behavior="hide"`). The difference only shows in a contained /
|
|
18
|
+
* non-full-viewport layout, which is a niche the `OrigamLayout` primitive still
|
|
19
|
+
* covers. `height` stays — it defines the bar's reserved thickness.
|
|
20
|
+
*/
|
|
21
|
+
export interface IAppBarProps extends Omit<IToolbarProps, 'width' | 'minWidth' | 'maxWidth' | 'floating'>, Omit<ILayoutItemProps, 'absolute'>, IScrollProps {
|
|
4
22
|
location?: TBlock;
|
|
5
23
|
image?: IImgProps;
|
|
6
24
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps } from '../../interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the `<OrigamApp>` application shell.
|
|
4
|
+
*
|
|
5
|
+
* App is a thin wrapper over `<OrigamLayout>` whose only surface concern is
|
|
6
|
+
* the page background / default text colour — it intentionally does NOT
|
|
7
|
+
* expose the full layout design surface (border / rounded / elevation /
|
|
8
|
+
* dimension / spacing): an application root has no business carrying a
|
|
9
|
+
* corner radius, a shadow or margins. Those remain available on
|
|
10
|
+
* `<OrigamLayout>` directly for embedded / sized layouts.
|
|
11
|
+
*
|
|
12
|
+
* `color` / `bgColor` are forwarded to the underlying layout: `bgColor`
|
|
13
|
+
* paints the app surface, and `color` sets the root text colour which
|
|
14
|
+
* cascades to descendants through normal CSS inheritance.
|
|
15
|
+
*/
|
|
16
|
+
export interface IAppProps extends ICommonsComponentProps, IColorProps, IBgColorProps {
|
|
17
|
+
/** Stretch the layout to the full viewport (`100vw` / `100vh`). Default `true`. */
|
|
18
|
+
fullHeight?: boolean;
|
|
19
|
+
/** IDs of layout items allowed to overlap each other (forwarded to the layout). */
|
|
20
|
+
overlaps?: Array<string>;
|
|
21
|
+
}
|
|
22
|
+
/** Emits fired by `<OrigamApp>` — none beyond the shared component contract. */
|
|
23
|
+
export interface IAppEmits extends ICommonsComponentEmits {
|
|
24
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
|
-
import type { IBgColorProps, IBorderProps, IColorProps, ICommonsComponentProps, IElevationProps, IMarginProps, IMediaPlayerEmits, IMediaPlayerMethods, IMediaPlayerState, IPaddingProps, IPositionProps, IRoundedProps, ISrcObject, ITagProps, IVideoTrack } from '../../interfaces';
|
|
2
|
+
import type { IBgColorProps, IBorderProps, IColorProps, ICommonsComponentProps, IDimensionProps, IElevationProps, IMarginProps, IMediaPlayerEmits, IMediaPlayerMethods, IMediaPlayerState, IPaddingProps, IPositionProps, IRoundedProps, ISrcObject, ITagProps, ITypographyProps, IVideoTrack } from '../../interfaces';
|
|
3
3
|
import type { TAudioControls, TAudioLoopMode, TAudioVariant, TCoverPosition } from '../../types';
|
|
4
4
|
/**
|
|
5
5
|
* Descriptor for a single track in an `<OrigamAudio>` playlist.
|
|
@@ -103,7 +103,7 @@ export interface IAudioSlots {
|
|
|
103
103
|
* (cover + title/artist + transport bar). Designed to drop into a
|
|
104
104
|
* page without surrounding chrome.
|
|
105
105
|
*/
|
|
106
|
-
export interface IAudioProps extends ICommonsComponentProps, ITagProps, IRoundedProps, IBorderProps, IMarginProps, IPaddingProps, IElevationProps, IPositionProps, IColorProps, IBgColorProps {
|
|
106
|
+
export interface IAudioProps extends ICommonsComponentProps, ITagProps, IRoundedProps, IBorderProps, IDimensionProps, IMarginProps, IPaddingProps, IElevationProps, IPositionProps, IColorProps, IBgColorProps, ITypographyProps {
|
|
107
107
|
/**
|
|
108
108
|
* Visual variant of the audio surface.
|
|
109
109
|
*
|
|
@@ -355,6 +355,27 @@ export interface IAudioEmits {
|
|
|
355
355
|
* next, auto-advance). Payload is the new track descriptor. */
|
|
356
356
|
(e: 'track-change', track: IAudioTrack, index: number): void;
|
|
357
357
|
}
|
|
358
|
+
/**
|
|
359
|
+
* Options accepted by `useWaveform()` to configure how the audio file
|
|
360
|
+
* is fetched and decoded into waveform peak data.
|
|
361
|
+
*/
|
|
362
|
+
export interface IUseWaveformOptions {
|
|
363
|
+
/**
|
|
364
|
+
* Number of amplitude buckets (bars) to downsample the decoded
|
|
365
|
+
* audio into. A higher value produces a finer-grained waveform but
|
|
366
|
+
* costs more processing time.
|
|
367
|
+
*
|
|
368
|
+
* @default 200
|
|
369
|
+
*/
|
|
370
|
+
bins?: number;
|
|
371
|
+
/**
|
|
372
|
+
* CORS credentials mode forwarded to `fetch()`.
|
|
373
|
+
*
|
|
374
|
+
* - `'use-credentials'` — include cookies / auth headers.
|
|
375
|
+
* - any other value (or `undefined`) — `'same-origin'` semantics.
|
|
376
|
+
*/
|
|
377
|
+
crossOrigin?: string;
|
|
378
|
+
}
|
|
358
379
|
/**
|
|
359
380
|
* Reactive state surface returned by `useAudioPlayer` (Audio
|
|
360
381
|
* namespace). For the moment audio does not expose any state beyond
|