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
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
xmlns="http://www.w3.org/2000/svg"
|
|
13
13
|
>
|
|
14
14
|
<template v-if="!isArray(icon)">
|
|
15
|
-
<path :d="icon"></path>
|
|
15
|
+
<path :d="(icon as string)"></path>
|
|
16
16
|
</template>
|
|
17
17
|
<template v-else>
|
|
18
18
|
<template
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</component>
|
|
35
35
|
</template>
|
|
36
36
|
|
|
37
|
-
<script setup>
|
|
37
|
+
<script lang="ts" setup>
|
|
38
38
|
import { computed, StyleValue } from "vue";
|
|
39
39
|
import { useProps, useStyle } from "../../composables";
|
|
40
40
|
import { SIZES_ARRAY } from "../../consts";
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<origam-responsive
|
|
3
3
|
v-intersect="intersect"
|
|
4
4
|
:aria-label="alt"
|
|
5
|
-
:aspect-ratio="aspectRatio"
|
|
6
5
|
:class="imgClasses"
|
|
7
6
|
:role="alt ? 'img' : undefined"
|
|
8
7
|
:style="imgStyles"
|
|
@@ -79,7 +78,7 @@
|
|
|
79
78
|
</origam-responsive>
|
|
80
79
|
</template>
|
|
81
80
|
|
|
82
|
-
<script setup>
|
|
81
|
+
<script lang="ts" setup>
|
|
83
82
|
import {
|
|
84
83
|
computed,
|
|
85
84
|
nextTick,
|
|
@@ -102,7 +101,7 @@ import {
|
|
|
102
101
|
useRounded,
|
|
103
102
|
useStyle
|
|
104
103
|
} from "../../composables";
|
|
105
|
-
import { SUPPORTS_INTERSECTION } from "../../consts";
|
|
104
|
+
import { IN_BROWSER, SUPPORTS_INTERSECTION } from "../../consts";
|
|
106
105
|
import { vIntersect } from "../../directives";
|
|
107
106
|
import { IMG_STATE } from "../../enums";
|
|
108
107
|
import { convertToUnit, getCurrentInstance, pick } from "../../utils";
|
|
@@ -216,7 +215,7 @@ const init = (isIntersecting) => {
|
|
|
216
215
|
}
|
|
217
216
|
if (!normalisedSrc.value.src) return;
|
|
218
217
|
nextTick(() => {
|
|
219
|
-
emits("loadstart", image.value?.currentSrc || normalisedSrc.value.src);
|
|
218
|
+
emits("loadstart", { src: image.value?.currentSrc || normalisedSrc.value.src || "" });
|
|
220
219
|
setTimeout(() => {
|
|
221
220
|
if (vm.isUnmounted) return;
|
|
222
221
|
if (image.value?.complete) {
|
|
@@ -238,7 +237,7 @@ const onLoad = () => {
|
|
|
238
237
|
getSrc();
|
|
239
238
|
pollForSize(image.value);
|
|
240
239
|
state.value = "loaded";
|
|
241
|
-
emits("load", image.value?.currentSrc || normalisedSrc.value.src);
|
|
240
|
+
emits("load", { src: image.value?.currentSrc || normalisedSrc.value.src || "" });
|
|
242
241
|
};
|
|
243
242
|
const handleLoad = () => {
|
|
244
243
|
onLoad();
|
|
@@ -246,7 +245,7 @@ const handleLoad = () => {
|
|
|
246
245
|
const onError = () => {
|
|
247
246
|
if (vm.isUnmounted) return;
|
|
248
247
|
state.value = "error";
|
|
249
|
-
emits("error", image.value?.currentSrc || normalisedSrc.value.src);
|
|
248
|
+
emits("error", { src: image.value?.currentSrc || normalisedSrc.value.src || "" });
|
|
250
249
|
};
|
|
251
250
|
const handleError = () => {
|
|
252
251
|
onError();
|
|
@@ -280,11 +279,13 @@ const isBooted = shallowRef(false);
|
|
|
280
279
|
let stop = null;
|
|
281
280
|
const markBooted = (val) => {
|
|
282
281
|
if (val) {
|
|
283
|
-
|
|
282
|
+
if (IN_BROWSER) {
|
|
284
283
|
requestAnimationFrame(() => {
|
|
285
|
-
|
|
284
|
+
requestAnimationFrame(() => {
|
|
285
|
+
isBooted.value = true;
|
|
286
|
+
});
|
|
286
287
|
});
|
|
287
|
-
}
|
|
288
|
+
}
|
|
288
289
|
stop?.();
|
|
289
290
|
}
|
|
290
291
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:class="infiniteScrollClasses"
|
|
6
6
|
:style="infiniteScrollStyles"
|
|
7
7
|
>
|
|
8
|
-
<div class="origam-infinite-scroll__side" role="status" aria-live="polite">
|
|
8
|
+
<div class="origam-infinite-scroll__side" role="status" aria-live="polite" :style="typographyStyles">
|
|
9
9
|
<template v-if="hasStartIntersect">
|
|
10
10
|
<slot
|
|
11
11
|
name="error"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
name="empty"
|
|
17
17
|
v-bind="{side: INFINITE_SCROLL_SIDE.START, props: { onClick: () => intersecting(INFINITE_SCROLL_SIDE.START), color }}"
|
|
18
18
|
>
|
|
19
|
-
<span>
|
|
19
|
+
<span>{{ t(emptyText) }}</span>
|
|
20
20
|
</slot>
|
|
21
21
|
|
|
22
22
|
<template v-if="isManualMode">
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
/>
|
|
70
70
|
</template>
|
|
71
71
|
|
|
72
|
-
<div class="origam-infinite-scroll__side" role="status" aria-live="polite">
|
|
72
|
+
<div class="origam-infinite-scroll__side" role="status" aria-live="polite" :style="typographyStyles">
|
|
73
73
|
<template v-if="hasStartIntersect">
|
|
74
74
|
<slot
|
|
75
75
|
name="error"
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
</component>
|
|
114
114
|
</template>
|
|
115
115
|
|
|
116
|
-
<script setup>
|
|
116
|
+
<script lang="ts" setup>
|
|
117
117
|
import { computed, nextTick, onMounted, ref, shallowRef, StyleValue, toRef } from "vue";
|
|
118
118
|
import { OrigamBtn, OrigamInfiniteScrollIntersect, OrigamProgress } from "../../components";
|
|
119
119
|
import {
|
|
@@ -121,7 +121,8 @@ import {
|
|
|
121
121
|
useDimension,
|
|
122
122
|
useLocale,
|
|
123
123
|
useProps,
|
|
124
|
-
useStyle
|
|
124
|
+
useStyle,
|
|
125
|
+
useTypography
|
|
125
126
|
} from "../../composables";
|
|
126
127
|
import {
|
|
127
128
|
DIRECTION,
|
|
@@ -148,12 +149,18 @@ const props = defineProps({
|
|
|
148
149
|
minWidth: { type: [Number, String], required: false },
|
|
149
150
|
width: { type: [Number, String], required: false },
|
|
150
151
|
tag: { type: String, required: false, default: "div" },
|
|
151
|
-
direction: { type: null, required: false, default: DIRECTION.VERTICAL }
|
|
152
|
+
direction: { type: null, required: false, default: DIRECTION.VERTICAL },
|
|
153
|
+
fontFamily: { type: String, required: false },
|
|
154
|
+
fontSize: { type: String, required: false },
|
|
155
|
+
fontWeight: { type: String, required: false },
|
|
156
|
+
lineHeight: { type: String, required: false },
|
|
157
|
+
letterSpacing: { type: String, required: false }
|
|
152
158
|
});
|
|
153
159
|
const emits = defineEmits(["load"]);
|
|
154
160
|
const { filterProps } = useProps(props);
|
|
155
161
|
const { t } = useLocale();
|
|
156
162
|
const { dimensionStyles } = useDimension(props);
|
|
163
|
+
const { typographyStyles } = useTypography(props, "infinite-scroll__loader");
|
|
157
164
|
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
158
165
|
const rootEl = ref();
|
|
159
166
|
const isIntersecting = shallowRef(false);
|
|
@@ -206,7 +213,7 @@ const status = computed({
|
|
|
206
213
|
}
|
|
207
214
|
});
|
|
208
215
|
let previousScrollSize = 0;
|
|
209
|
-
const handleIntersect = (side, _isIntersecting) => {
|
|
216
|
+
const handleIntersect = ({ side, isIntersecting: _isIntersecting }) => {
|
|
210
217
|
isIntersecting.value = _isIntersecting;
|
|
211
218
|
if (isIntersecting.value) {
|
|
212
219
|
intersecting(side);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
|
-
<script setup>
|
|
9
|
+
<script lang="ts" setup>
|
|
10
10
|
import { watch } from "vue";
|
|
11
11
|
import { useIntersectionObserver, useProps } from "../../composables";
|
|
12
12
|
const props = defineProps({
|
|
@@ -22,7 +22,8 @@ const { filterProps } = useProps(props);
|
|
|
22
22
|
const { intersectionRef, isIntersecting } = useIntersectionObserver(() => {
|
|
23
23
|
}, props.margin ? { rootMargin: props.margin } : void 0);
|
|
24
24
|
watch(isIntersecting, async (val) => {
|
|
25
|
-
|
|
25
|
+
if (!props.side) return;
|
|
26
|
+
emits("intersect", { isIntersecting: val, side: props.side });
|
|
26
27
|
});
|
|
27
28
|
defineExpose({
|
|
28
29
|
filterProps
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
</component>
|
|
188
188
|
</template>
|
|
189
189
|
|
|
190
|
-
<script setup>
|
|
190
|
+
<script lang="ts" setup>
|
|
191
191
|
import {
|
|
192
192
|
computed,
|
|
193
193
|
nextTick,
|
|
@@ -196,11 +196,12 @@ import {
|
|
|
196
196
|
watch
|
|
197
197
|
} from "vue";
|
|
198
198
|
import { OrigamBtn, OrigamTextField, OrigamTextareaField } from "../../components";
|
|
199
|
-
import { useInlineEdit } from "../../composables";
|
|
199
|
+
import { useInlineEdit, useTypography } from "../../composables";
|
|
200
200
|
import { INLINE_EDIT_ACTION, MDI_ICONS } from "../../enums";
|
|
201
201
|
const props = defineProps({
|
|
202
202
|
modelValue: { type: [String, Number], required: true },
|
|
203
203
|
placeholder: { type: String, required: false, default: "Click to edit" },
|
|
204
|
+
rules: { type: Array, required: false, default: void 0 },
|
|
204
205
|
validate: { type: Function, required: false, default: void 0 },
|
|
205
206
|
autoFocus: { type: Boolean, required: false, default: true },
|
|
206
207
|
selectOnFocus: { type: Boolean, required: false, default: true },
|
|
@@ -216,7 +217,12 @@ const props = defineProps({
|
|
|
216
217
|
id: { type: String, required: false },
|
|
217
218
|
class: { type: [String, Array, Object], required: false },
|
|
218
219
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
219
|
-
tag: { type: String, required: false, default: "span" }
|
|
220
|
+
tag: { type: String, required: false, default: "span" },
|
|
221
|
+
fontFamily: { type: String, required: false },
|
|
222
|
+
fontSize: { type: String, required: false },
|
|
223
|
+
fontWeight: { type: String, required: false },
|
|
224
|
+
lineHeight: { type: String, required: false },
|
|
225
|
+
letterSpacing: { type: String, required: false }
|
|
220
226
|
});
|
|
221
227
|
const emit = defineEmits(["update:modelValue", "edit", "cancel", "confirm", "validate-error"]);
|
|
222
228
|
const modelRef = computed(() => props.modelValue);
|
|
@@ -230,6 +236,7 @@ const {
|
|
|
230
236
|
cancel,
|
|
231
237
|
setValue
|
|
232
238
|
} = useInlineEdit(modelRef, {
|
|
239
|
+
rules: props.rules,
|
|
233
240
|
validate: props.validate,
|
|
234
241
|
trim: props.trim,
|
|
235
242
|
onConfirm: (value) => {
|
|
@@ -315,7 +322,9 @@ const rootClasses = computed(() => [
|
|
|
315
322
|
},
|
|
316
323
|
props.class
|
|
317
324
|
]);
|
|
318
|
-
const
|
|
325
|
+
const { typographyStyles: errorTypoStyles } = useTypography(props, "inline-edit__error");
|
|
326
|
+
const { typographyStyles: actionBtnTypoStyles } = useTypography(props, "inline-edit__action-btn");
|
|
327
|
+
const rootStyles = computed(() => [props.style, errorTypoStyles.value, actionBtnTypoStyles.value]);
|
|
319
328
|
defineExpose({
|
|
320
329
|
edit: handleEnterEdit,
|
|
321
330
|
confirm: handleConfirm,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
+
v-contrast
|
|
3
4
|
:class="inputClasses"
|
|
4
5
|
:style="inputStyles"
|
|
5
6
|
>
|
|
@@ -90,10 +91,11 @@
|
|
|
90
91
|
</div>
|
|
91
92
|
</template>
|
|
92
93
|
|
|
93
|
-
<script setup>
|
|
94
|
+
<script lang="ts" setup>
|
|
94
95
|
import { computed, StyleValue, toRef, useSlots } from "vue";
|
|
95
96
|
import { OrigamAvatar, OrigamIcon } from "../../components";
|
|
96
97
|
import { OrigamMessages } from "../../components/Messages";
|
|
98
|
+
import { vContrast } from "../../directives";
|
|
97
99
|
import {
|
|
98
100
|
useAdjacent,
|
|
99
101
|
useBothColor,
|
|
@@ -104,6 +106,7 @@ import {
|
|
|
104
106
|
useRtl,
|
|
105
107
|
useSize,
|
|
106
108
|
useStyle,
|
|
109
|
+
useTypography,
|
|
107
110
|
useValidation
|
|
108
111
|
} from "../../composables";
|
|
109
112
|
import { DENSITY, DIRECTION } from "../../enums";
|
|
@@ -158,7 +161,7 @@ const _props = defineProps({
|
|
|
158
161
|
width: { type: [Number, String], required: false },
|
|
159
162
|
direction: { type: null, required: false, default: DIRECTION.HORIZONTAL },
|
|
160
163
|
disabled: { type: Boolean, required: false },
|
|
161
|
-
error: { type: Boolean, required: false },
|
|
164
|
+
error: { type: [String, Boolean], required: false },
|
|
162
165
|
errorMessages: { type: [Array, String], required: false },
|
|
163
166
|
maxErrors: { type: [Number, String], required: false },
|
|
164
167
|
name: { type: String, required: false },
|
|
@@ -173,7 +176,12 @@ const _props = defineProps({
|
|
|
173
176
|
appendIcon: { type: null, required: false },
|
|
174
177
|
prependAvatar: { type: String, required: false },
|
|
175
178
|
prependIcon: { type: null, required: false },
|
|
176
|
-
size: { type: null, required: false }
|
|
179
|
+
size: { type: null, required: false },
|
|
180
|
+
fontFamily: { type: String, required: false },
|
|
181
|
+
fontSize: { type: String, required: false },
|
|
182
|
+
fontWeight: { type: String, required: false },
|
|
183
|
+
lineHeight: { type: String, required: false },
|
|
184
|
+
letterSpacing: { type: String, required: false }
|
|
177
185
|
});
|
|
178
186
|
const props = useDefaults(_props);
|
|
179
187
|
defineEmits(["update:modelValue", "click:append", "click:prepend", "update:focused"]);
|
|
@@ -239,10 +247,12 @@ const { dimensionStyles } = useDimension(props);
|
|
|
239
247
|
const { colorClasses, colorStyles } = useBothColor(toRef(props.bgColor), toRef(props.color));
|
|
240
248
|
const { rtlClasses } = useRtl();
|
|
241
249
|
const { sizeClasses } = useSize(props, "origam-input");
|
|
250
|
+
const { typographyStyles } = useTypography(props, "input");
|
|
242
251
|
const inputStyles = computed(() => {
|
|
243
252
|
return [
|
|
244
253
|
dimensionStyles.value,
|
|
245
254
|
colorStyles.value,
|
|
255
|
+
typographyStyles.value,
|
|
246
256
|
props.style
|
|
247
257
|
];
|
|
248
258
|
});
|
|
@@ -347,6 +357,10 @@ defineExpose({
|
|
|
347
357
|
--origam-input---density: -8px;
|
|
348
358
|
}
|
|
349
359
|
|
|
360
|
+
&--density-comfortable {
|
|
361
|
+
--origam-input---density: 8px;
|
|
362
|
+
}
|
|
363
|
+
|
|
350
364
|
&--size-small {
|
|
351
365
|
--origam-input__control---height: var(--origam-input__control---height-sm, 28px);
|
|
352
366
|
--origam-field__input---padding-top: var(--origam-field__input---padding-block-sm, 2px);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<kbd
|
|
3
|
+
v-contrast
|
|
3
4
|
:class="kbdClasses"
|
|
4
5
|
:style="kbdStyles"
|
|
5
6
|
>
|
|
@@ -25,14 +26,16 @@
|
|
|
25
26
|
</kbd>
|
|
26
27
|
</template>
|
|
27
28
|
|
|
28
|
-
<script setup>
|
|
29
|
+
<script lang="ts" setup>
|
|
30
|
+
import { vContrast } from "../../directives";
|
|
29
31
|
import {
|
|
30
32
|
useBorder,
|
|
31
33
|
useBothColor,
|
|
32
34
|
useProps,
|
|
33
35
|
useRounded,
|
|
34
36
|
useSize,
|
|
35
|
-
useStyle
|
|
37
|
+
useStyle,
|
|
38
|
+
useTypography
|
|
36
39
|
} from "../../composables";
|
|
37
40
|
import { computed, StyleValue, toRef } from "vue";
|
|
38
41
|
const _props = defineProps({
|
|
@@ -59,13 +62,19 @@ const _props = defineProps({
|
|
|
59
62
|
roundedTopRight: { type: [Boolean, Number, String], required: false },
|
|
60
63
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
61
64
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
62
|
-
roundedBottomRight: { type: [Boolean, Number, String], required: false }
|
|
65
|
+
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
66
|
+
fontFamily: { type: String, required: false },
|
|
67
|
+
fontSize: { type: String, required: false },
|
|
68
|
+
fontWeight: { type: String, required: false },
|
|
69
|
+
lineHeight: { type: String, required: false },
|
|
70
|
+
letterSpacing: { type: String, required: false }
|
|
63
71
|
});
|
|
64
72
|
const props = _props;
|
|
65
73
|
const { filterProps } = useProps(props);
|
|
66
74
|
const { sizeClasses, sizeStyles } = useSize(props);
|
|
67
75
|
const { roundedClasses, roundedStyles } = useRounded(props);
|
|
68
76
|
const { borderClasses, borderStyles } = useBorder(props);
|
|
77
|
+
const { typographyStyles } = useTypography(props, "kbd");
|
|
69
78
|
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
70
79
|
const kbdClasses = computed(() => {
|
|
71
80
|
return [
|
|
@@ -87,6 +96,7 @@ const kbdStyles = computed(() => {
|
|
|
87
96
|
roundedStyles.value,
|
|
88
97
|
borderStyles.value,
|
|
89
98
|
colorStyles.value,
|
|
99
|
+
typographyStyles.value,
|
|
90
100
|
props.style
|
|
91
101
|
];
|
|
92
102
|
});
|
|
@@ -190,11 +200,11 @@ defineExpose({
|
|
|
190
200
|
box-shadow: none;
|
|
191
201
|
}
|
|
192
202
|
|
|
193
|
-
&--size-x-small { font-size: var(--origam-kbd---font-size-xs, 0.625rem); }
|
|
194
|
-
&--size-small { font-size: var(--origam-kbd---font-size-sm, 0.75rem); }
|
|
195
|
-
&--size-default { font-size: var(--origam-kbd---font-size-md, 0.875rem); }
|
|
196
|
-
&--size-large { font-size: var(--origam-kbd---font-size-lg, 1rem); }
|
|
197
|
-
&--size-x-large { font-size: var(--origam-kbd---font-size-xl, 1.125rem); }
|
|
203
|
+
&--size-x-small { font-size: var(--origam-kbd---font-size, var(--origam-kbd---font-size-xs, 0.625rem)); }
|
|
204
|
+
&--size-small { font-size: var(--origam-kbd---font-size, var(--origam-kbd---font-size-sm, 0.75rem)); }
|
|
205
|
+
&--size-default { font-size: var(--origam-kbd---font-size, var(--origam-kbd---font-size-md, 0.875rem)); }
|
|
206
|
+
&--size-large { font-size: var(--origam-kbd---font-size, var(--origam-kbd---font-size-lg, 1rem)); }
|
|
207
|
+
&--size-x-large { font-size: var(--origam-kbd---font-size, var(--origam-kbd---font-size-xl, 1.125rem)); }
|
|
198
208
|
|
|
199
209
|
&--rounded { --origam-kbd---border-radius: var(--origam-radius---sm, 4px); }
|
|
200
210
|
&--rounded-x-small { --origam-kbd---border-radius: var(--origam-radius---xs, 2px); }
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<component
|
|
3
3
|
:is="tag"
|
|
4
4
|
:id="id"
|
|
5
|
+
v-contrast
|
|
5
6
|
:class="labelClasses"
|
|
6
7
|
:style="labelStyles"
|
|
7
8
|
:name="name"
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
</component>
|
|
14
15
|
</template>
|
|
15
16
|
|
|
16
|
-
<script setup>
|
|
17
|
+
<script lang="ts" setup>
|
|
17
18
|
import { computed, StyleValue, toRef } from "vue";
|
|
18
19
|
import {
|
|
19
20
|
useBorder,
|
|
@@ -23,8 +24,10 @@ import {
|
|
|
23
24
|
usePadding,
|
|
24
25
|
useProps,
|
|
25
26
|
useRounded,
|
|
26
|
-
useStyle
|
|
27
|
+
useStyle,
|
|
28
|
+
useTypography
|
|
27
29
|
} from "../../composables";
|
|
30
|
+
import { vContrast } from "../../directives";
|
|
28
31
|
const _props = defineProps({
|
|
29
32
|
text: { type: String, required: false },
|
|
30
33
|
floating: { type: Boolean, required: false },
|
|
@@ -63,7 +66,12 @@ const _props = defineProps({
|
|
|
63
66
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
64
67
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
65
68
|
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
66
|
-
tag: { type: String, required: false, default: "label" }
|
|
69
|
+
tag: { type: String, required: false, default: "label" },
|
|
70
|
+
fontFamily: { type: String, required: false },
|
|
71
|
+
fontSize: { type: String, required: false },
|
|
72
|
+
fontWeight: { type: String, required: false },
|
|
73
|
+
lineHeight: { type: String, required: false },
|
|
74
|
+
letterSpacing: { type: String, required: false }
|
|
67
75
|
});
|
|
68
76
|
const props = useDefaults(_props);
|
|
69
77
|
const emits = defineEmits(["click"]);
|
|
@@ -76,6 +84,7 @@ const { borderClasses, borderStyles } = useBorder(props);
|
|
|
76
84
|
const { paddingClasses, paddingStyles } = usePadding(props);
|
|
77
85
|
const { marginClasses, marginStyles } = useMargin(props);
|
|
78
86
|
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
87
|
+
const { typographyStyles } = useTypography(props, "label");
|
|
79
88
|
const labelStyles = computed(() => {
|
|
80
89
|
return [
|
|
81
90
|
roundedStyles.value,
|
|
@@ -83,6 +92,7 @@ const labelStyles = computed(() => {
|
|
|
83
92
|
paddingStyles.value,
|
|
84
93
|
marginStyles.value,
|
|
85
94
|
colorStyles.value,
|
|
95
|
+
typographyStyles.value,
|
|
86
96
|
props.style
|
|
87
97
|
];
|
|
88
98
|
});
|
|
@@ -120,6 +130,7 @@ defineExpose({
|
|
|
120
130
|
line-height: var(--origam-label---line-height);
|
|
121
131
|
letter-spacing: var(--origam-label---letter-spacing);
|
|
122
132
|
pointer-events: var(--origam-label---pointer-events);
|
|
133
|
+
transition-property: var(--origam-label---transition-property, color);
|
|
123
134
|
transition-duration: var(--origam-label---transition-duration);
|
|
124
135
|
transition-timing-function: var(--origam-label---transition-easing);
|
|
125
136
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
</div>
|
|
76
76
|
</template>
|
|
77
77
|
|
|
78
|
-
<script setup>
|
|
78
|
+
<script lang="ts" setup>
|
|
79
79
|
import { computed, useSlots } from "vue";
|
|
80
80
|
import { OrigamDivider, OrigamListGroup, OrigamListItem, OrigamListSubheader } from "../../components";
|
|
81
81
|
import { useCreateList, useProps } from "../../composables";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
3
|
:is="tag"
|
|
4
|
+
v-contrast
|
|
4
5
|
:class="listGroupClasses"
|
|
5
6
|
:style="listGroupStyles"
|
|
6
7
|
>
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
</component>
|
|
42
43
|
</template>
|
|
43
44
|
|
|
44
|
-
<script setup>
|
|
45
|
+
<script lang="ts" setup>
|
|
45
46
|
import { computed, ref, StyleValue, toRef } from "vue";
|
|
46
47
|
import { OrigamDefaultsProvider, OrigamExpandY, OrigamListGroupActivator, OrigamListItem, OrigamTransition } from "../../components";
|
|
47
48
|
import {
|
|
@@ -54,6 +55,7 @@ import {
|
|
|
54
55
|
useStateEffect,
|
|
55
56
|
useStyle
|
|
56
57
|
} from "../../composables";
|
|
58
|
+
import { vContrast } from "../../directives";
|
|
57
59
|
import { MDI_ICONS } from "../../enums";
|
|
58
60
|
const props = defineProps({
|
|
59
61
|
collapseIcon: { type: null, required: false, default: MDI_ICONS.CHEVRON_UP },
|
|
@@ -141,6 +143,7 @@ const activatorProps = computed(() => {
|
|
|
141
143
|
"onClick": handleClick
|
|
142
144
|
};
|
|
143
145
|
});
|
|
146
|
+
const activatorEvents = computed(() => ({}));
|
|
144
147
|
const prependActivatorIcon = computed(() => {
|
|
145
148
|
return props.prependIcon;
|
|
146
149
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
3
|
:is="link.tag"
|
|
4
|
-
v-ripple="isClickable && ripple"
|
|
5
4
|
:id="props.id"
|
|
5
|
+
v-ripple="isClickable && ripple"
|
|
6
6
|
:class="listItemClasses"
|
|
7
7
|
:href="link.href.value"
|
|
8
8
|
:style="listItemStyles"
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
v-if="hasTitle"
|
|
55
55
|
key="title"
|
|
56
56
|
class="origam-list-item__title"
|
|
57
|
+
:style="titleTypographyStyles"
|
|
57
58
|
>
|
|
58
59
|
<slot
|
|
59
60
|
name="title"
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
v-if="hasSubtitle"
|
|
67
68
|
key="subtitle"
|
|
68
69
|
class="origam-list-item__subtitle"
|
|
70
|
+
:style="subtitleTypographyStyles"
|
|
69
71
|
>
|
|
70
72
|
<slot
|
|
71
73
|
name="subtitle"
|
|
@@ -108,7 +110,7 @@
|
|
|
108
110
|
</component>
|
|
109
111
|
</template>
|
|
110
112
|
|
|
111
|
-
<script setup>
|
|
113
|
+
<script lang="ts" setup>
|
|
112
114
|
import { computed, onBeforeMount, StyleValue, toRef, useAttrs, useSlots, watch } from "vue";
|
|
113
115
|
import { OrigamAvatar, OrigamIcon } from "../../components";
|
|
114
116
|
import {
|
|
@@ -123,7 +125,8 @@ import {
|
|
|
123
125
|
useNestedItem,
|
|
124
126
|
useProps,
|
|
125
127
|
useStateEffect,
|
|
126
|
-
useStyle
|
|
128
|
+
useStyle,
|
|
129
|
+
useTypography
|
|
127
130
|
} from "../../composables";
|
|
128
131
|
import { vRipple } from "../../directives";
|
|
129
132
|
import { KEYBOARD_VALUES } from "../../enums";
|
|
@@ -190,7 +193,12 @@ const _props = defineProps({
|
|
|
190
193
|
appendIcon: { type: null, required: false },
|
|
191
194
|
prependAvatar: { type: String, required: false },
|
|
192
195
|
prependIcon: { type: null, required: false },
|
|
193
|
-
hover: { type: [Boolean, Object], required: false }
|
|
196
|
+
hover: { type: [Boolean, Object], required: false },
|
|
197
|
+
fontFamily: { type: String, required: false },
|
|
198
|
+
fontSize: { type: String, required: false },
|
|
199
|
+
fontWeight: { type: String, required: false },
|
|
200
|
+
lineHeight: { type: String, required: false },
|
|
201
|
+
letterSpacing: { type: String, required: false }
|
|
194
202
|
});
|
|
195
203
|
const props = useDefaults(_props);
|
|
196
204
|
const emits = defineEmits(["click", "click:append", "click:prepend"]);
|
|
@@ -223,6 +231,8 @@ const {
|
|
|
223
231
|
marginStyles
|
|
224
232
|
} = useStateEffect(props, isHover, void 0, hoverState, void 0);
|
|
225
233
|
const { dimensionStyles } = useDimension(props);
|
|
234
|
+
const { typographyStyles: titleTypographyStyles } = useTypography(props, "list-item__title");
|
|
235
|
+
const { typographyStyles: subtitleTypographyStyles } = useTypography(props, "list-item__subtitle");
|
|
226
236
|
const {
|
|
227
237
|
onClickPrepend: handleClickPrepend,
|
|
228
238
|
onClickAppend: handleClickAppend,
|