origam 2.5.0 → 2.6.2
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 +97 -31
- 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/size.composable.d.ts +1 -1
- 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/Parallax/transform.composable.d.ts +1 -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/services/Commons/date-adapter.service.d.ts +1 -1
- 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/border.util.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/src/utils/Commons/commons.util.js +3 -2
- package/dist/src/utils/Commons/date.util.d.ts +1 -1
- 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/margin.util.d.ts +1 -1
- package/dist/src/utils/Commons/padding.util.d.ts +1 -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 +10 -1
- 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/Transition/transition.util.d.ts +1 -1
- 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 +22 -63
- 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
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
<h3
|
|
11
11
|
v-if="showRoundTitle"
|
|
12
12
|
:id="titleId"
|
|
13
|
+
:style="typographyStyles"
|
|
13
14
|
class="origam-bracket-round__title"
|
|
14
15
|
>
|
|
15
16
|
<slot
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
:key="match.id"
|
|
34
35
|
:color="color"
|
|
35
36
|
:data-cy="`origam-bracket-match-${match.id}`"
|
|
37
|
+
:data-match-id="match.id"
|
|
36
38
|
:interactive="interactive"
|
|
37
39
|
:is-final="isFinalRound && matchIndex === 0 && round.matches.length === 1"
|
|
38
40
|
:match="match"
|
|
@@ -48,10 +50,10 @@
|
|
|
48
50
|
</component>
|
|
49
51
|
</template>
|
|
50
52
|
|
|
51
|
-
<script setup>
|
|
53
|
+
<script lang="ts" setup>
|
|
52
54
|
import { computed, StyleValue } from "vue";
|
|
53
55
|
import OrigamBracketMatch from "./OrigamBracketMatch.vue";
|
|
54
|
-
import { useProps } from "../../composables";
|
|
56
|
+
import { useProps, useTypography } from "../../composables";
|
|
55
57
|
import { DIRECTION } from "../../enums";
|
|
56
58
|
const props = defineProps({
|
|
57
59
|
round: { type: Object, required: true },
|
|
@@ -66,10 +68,16 @@ const props = defineProps({
|
|
|
66
68
|
class: { type: [String, Array, Object], required: false },
|
|
67
69
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
68
70
|
tag: { type: String, required: false, default: "div" },
|
|
69
|
-
direction: { type: null, required: false, default: DIRECTION.HORIZONTAL }
|
|
71
|
+
direction: { type: null, required: false, default: DIRECTION.HORIZONTAL },
|
|
72
|
+
fontFamily: { type: String, required: false },
|
|
73
|
+
fontSize: { type: String, required: false },
|
|
74
|
+
fontWeight: { type: String, required: false },
|
|
75
|
+
lineHeight: { type: String, required: false },
|
|
76
|
+
letterSpacing: { type: String, required: false }
|
|
70
77
|
});
|
|
71
78
|
const emit = defineEmits(["match-click", "competitor-click", "winner-click"]);
|
|
72
79
|
const { filterProps } = useProps(props);
|
|
80
|
+
const { typographyStyles } = useTypography(props, "bracket-round-title");
|
|
73
81
|
const resolvedId = computed(() => props.id ?? `origam-bracket-round-${props.round.id}`);
|
|
74
82
|
const titleId = computed(() => `${resolvedId.value}-title`);
|
|
75
83
|
const isFinalRound = computed(() => props.index === props.totalRounds - 1);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<component
|
|
3
3
|
:is="tag"
|
|
4
4
|
:id="id"
|
|
5
|
+
v-contrast
|
|
5
6
|
:aria-label="t('origam.breadcrumb.ariaLabel', 'Breadcrumb')"
|
|
6
7
|
:class="breadcrumbClasses"
|
|
7
8
|
>
|
|
@@ -10,7 +11,7 @@
|
|
|
10
11
|
<template v-if="hasItems">
|
|
11
12
|
<ol class="origam-breadcrumb__items">
|
|
12
13
|
<template
|
|
13
|
-
v-for="(item, index) in
|
|
14
|
+
v-for="(item, index) in normalizedItems"
|
|
14
15
|
:key="index"
|
|
15
16
|
>
|
|
16
17
|
<li class="origam-breadcrumb__item">
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
</component>
|
|
51
52
|
</template>
|
|
52
53
|
|
|
53
|
-
<script setup>
|
|
54
|
+
<script lang="ts" setup>
|
|
54
55
|
import { OrigamBreadcrumbDivider, OrigamBreadcrumbItem, OrigamDefaultsProvider } from "../../components";
|
|
55
56
|
import {
|
|
56
57
|
useDensity,
|
|
@@ -59,10 +60,10 @@ import {
|
|
|
59
60
|
useStateEffect,
|
|
60
61
|
useStyle
|
|
61
62
|
} from "../../composables";
|
|
63
|
+
import { vContrast } from "../../directives";
|
|
62
64
|
import { DENSITY } from "../../enums";
|
|
63
65
|
import { computed, StyleValue, useSlots } from "vue";
|
|
64
66
|
const props = defineProps({
|
|
65
|
-
activeClass: { type: String, required: false },
|
|
66
67
|
disabled: { type: Boolean, required: false },
|
|
67
68
|
divider: { type: null, required: false, default: "/" },
|
|
68
69
|
items: { type: Array, required: false, default: () => [] },
|
|
@@ -101,7 +102,10 @@ const props = defineProps({
|
|
|
101
102
|
borderInline: { type: [Boolean, Number, String], required: false },
|
|
102
103
|
borderColor: { type: String, required: false },
|
|
103
104
|
borderStyle: { type: String, required: false },
|
|
104
|
-
elevation: { type: [Number, String], required: false }
|
|
105
|
+
elevation: { type: [Number, String], required: false },
|
|
106
|
+
hover: { type: [Boolean, Object], required: false },
|
|
107
|
+
active: { type: [Boolean, Object], required: false },
|
|
108
|
+
activeClass: { type: String, required: false }
|
|
105
109
|
});
|
|
106
110
|
const { filterProps } = useProps(props);
|
|
107
111
|
const { t } = useLocale();
|
|
@@ -110,20 +114,18 @@ const slotDefaults = computed(() => ({
|
|
|
110
114
|
density: props.density,
|
|
111
115
|
color: props.color,
|
|
112
116
|
bgColor: props.bgColor,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
activeColor: props.activeColor,
|
|
116
|
-
activeBgColor: props.activeBgColor,
|
|
117
|
+
hover: props.hover,
|
|
118
|
+
active: props.active,
|
|
117
119
|
disabled: props.disabled
|
|
118
120
|
}
|
|
119
121
|
}));
|
|
120
122
|
const { colorClasses, colorStyles, borderClasses, borderStyles, roundedClasses, roundedStyles, elevationClasses, elevationStyles, paddingClasses, paddingStyles, marginClasses, marginStyles } = useStateEffect(props, void 0, void 0, void 0, void 0, computed(() => !!props.disabled));
|
|
121
|
-
const
|
|
123
|
+
const normalizedItems = computed(() => {
|
|
122
124
|
return props.items.map((item, index) => {
|
|
123
|
-
return typeof item === "string" ? { title: item, disabled: isLastItem(index) } : {
|
|
125
|
+
return typeof item === "string" ? { title: item, disabled: isLastItem(index), active: isLastItem(index) } : {
|
|
124
126
|
...item,
|
|
125
127
|
disabled: isLastItem(index) || item.disabled,
|
|
126
|
-
|
|
128
|
+
active: isLastItem(index)
|
|
127
129
|
};
|
|
128
130
|
});
|
|
129
131
|
});
|
|
@@ -132,7 +134,7 @@ const isLastItem = (index) => {
|
|
|
132
134
|
};
|
|
133
135
|
const slots = useSlots();
|
|
134
136
|
const hasItems = computed(() => {
|
|
135
|
-
return slots.default ||
|
|
137
|
+
return slots.default || normalizedItems.value;
|
|
136
138
|
});
|
|
137
139
|
const { densityClasses } = useDensity(props);
|
|
138
140
|
const breadcrumbStyles = computed(() => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
3
|
:is="tag"
|
|
4
|
+
v-contrast
|
|
4
5
|
:class="breadcrumbDividerClasses"
|
|
5
6
|
:style="breadcrumbDividerStyles"
|
|
6
7
|
>
|
|
@@ -15,9 +16,10 @@
|
|
|
15
16
|
</component>
|
|
16
17
|
</template>
|
|
17
18
|
|
|
18
|
-
<script setup>
|
|
19
|
+
<script lang="ts" setup>
|
|
19
20
|
import { OrigamIcon } from "../../components";
|
|
20
21
|
import { useBothColor, useDensity, useMargin, usePadding, useProps, useSize, useStyle } from "../../composables";
|
|
22
|
+
import { vContrast } from "../../directives";
|
|
21
23
|
import { MDI_ICONS } from "../../enums";
|
|
22
24
|
import { computed, StyleValue, toRef } from "vue";
|
|
23
25
|
const props = defineProps({
|
|
@@ -42,6 +44,7 @@ const props = defineProps({
|
|
|
42
44
|
marginInline: { type: [Boolean, Number, String], required: false },
|
|
43
45
|
density: { type: null, required: false },
|
|
44
46
|
color: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
47
|
+
bgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
45
48
|
size: { type: null, required: false }
|
|
46
49
|
});
|
|
47
50
|
const { filterProps } = useProps(props);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
3
|
:is="link.tag"
|
|
4
|
+
v-contrast
|
|
4
5
|
:aria-current="isActive ? 'page' : undefined"
|
|
5
6
|
:class="breadcrumbItemClasses"
|
|
6
7
|
:href="link.href"
|
|
@@ -61,8 +62,9 @@
|
|
|
61
62
|
</component>
|
|
62
63
|
</template>
|
|
63
64
|
|
|
64
|
-
<script setup>
|
|
65
|
+
<script lang="ts" setup>
|
|
65
66
|
import { OrigamAvatar, OrigamIcon } from "../../components";
|
|
67
|
+
import { vContrast } from "../../directives";
|
|
66
68
|
import {
|
|
67
69
|
useActive,
|
|
68
70
|
useAdjacent,
|
|
@@ -244,10 +246,6 @@ defineExpose({
|
|
|
244
246
|
pointer-events: none;
|
|
245
247
|
}
|
|
246
248
|
|
|
247
|
-
&--link {
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
|
|
251
249
|
&--density-comfortable {
|
|
252
250
|
--origam-breadcrumb-item---density: -8px;
|
|
253
251
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
:is="link.tag"
|
|
4
4
|
:id="id"
|
|
5
5
|
v-ripple="isRipple"
|
|
6
|
+
v-contrast
|
|
7
|
+
:data-origam-color-locked="colorLocked"
|
|
6
8
|
:class="btnClasses"
|
|
7
9
|
:disabled="isDisabled || undefined"
|
|
8
10
|
:aria-disabled="link.tag === 'a' && isDisabled ? 'true' : undefined"
|
|
@@ -22,13 +24,6 @@
|
|
|
22
24
|
class="origam-btn__underlay"
|
|
23
25
|
/>
|
|
24
26
|
|
|
25
|
-
<!--
|
|
26
|
-
Overlay loaders (line / circular) — rendered as direct children
|
|
27
|
-
of the btn root so they can be absolutely positioned relative
|
|
28
|
-
to the btn box. Putting them INSIDE the OrigamLoader's
|
|
29
|
-
default-slot grid would make them claim a `prepend`-slot cell
|
|
30
|
-
and shove the label off-centre.
|
|
31
|
-
-->
|
|
32
27
|
<origam-progress
|
|
33
28
|
v-if="isOverlayLoading"
|
|
34
29
|
ref="origamProgressRef"
|
|
@@ -128,7 +123,7 @@
|
|
|
128
123
|
</component>
|
|
129
124
|
</template>
|
|
130
125
|
|
|
131
|
-
<script setup>
|
|
126
|
+
<script lang="ts" setup>
|
|
132
127
|
import { computed, ref, StyleValue, toRef, useAttrs, useSlots } from "vue";
|
|
133
128
|
import { OrigamAvatar, OrigamIcon, OrigamLoader, OrigamProgress, OrigamSkeleton } from "../../components";
|
|
134
129
|
import {
|
|
@@ -149,20 +144,23 @@ import {
|
|
|
149
144
|
useStateEffect,
|
|
150
145
|
useStatus,
|
|
151
146
|
useStyle,
|
|
147
|
+
useTypography,
|
|
152
148
|
useVariant
|
|
153
149
|
} from "../../composables";
|
|
154
150
|
import { ORIGAM_BTN_TOGGLE_KEY } from "../../consts";
|
|
155
|
-
import { vRipple } from "../../directives";
|
|
151
|
+
import { vContrast, vRipple } from "../../directives";
|
|
156
152
|
import { DENSITY, PROGRESS_TYPE, SIZES } from "../../enums";
|
|
157
153
|
const attrs = useAttrs();
|
|
158
154
|
const _props = defineProps({
|
|
159
|
-
active: { type: Boolean, required: false, default: void 0 },
|
|
155
|
+
active: { type: [Boolean, Object], required: false, default: void 0 },
|
|
160
156
|
flat: { type: Boolean, required: false },
|
|
161
157
|
icon: { type: [Boolean, String, Array], required: false, skipCheck: true },
|
|
162
158
|
block: { type: Boolean, required: false },
|
|
163
159
|
slim: { type: Boolean, required: false },
|
|
164
160
|
stacked: { type: Boolean, required: false },
|
|
165
161
|
text: { type: String, required: false },
|
|
162
|
+
status: { type: null, required: false },
|
|
163
|
+
statusIconPosition: { type: null, required: false },
|
|
166
164
|
id: { type: String, required: false },
|
|
167
165
|
class: { type: [String, Array, Object], required: false },
|
|
168
166
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
@@ -226,12 +224,16 @@ const _props = defineProps({
|
|
|
226
224
|
appendIcon: { type: null, required: false },
|
|
227
225
|
prependAvatar: { type: String, required: false },
|
|
228
226
|
prependIcon: { type: null, required: false },
|
|
229
|
-
status: { type: null, required: false },
|
|
230
|
-
statusIconPosition: { type: null, required: false },
|
|
231
227
|
hover: { type: [Boolean, Object], required: false },
|
|
232
|
-
variant: { type: null, required: false }
|
|
228
|
+
variant: { type: null, required: false },
|
|
229
|
+
fontFamily: { type: String, required: false },
|
|
230
|
+
fontSize: { type: String, required: false },
|
|
231
|
+
fontWeight: { type: String, required: false },
|
|
232
|
+
lineHeight: { type: String, required: false },
|
|
233
|
+
letterSpacing: { type: String, required: false }
|
|
233
234
|
});
|
|
234
235
|
const props = useDefaults(_props);
|
|
236
|
+
const colorLocked = computed(() => props.color ? "true" : void 0);
|
|
235
237
|
defineEmits(["click:append", "click:prepend", "group:selected"]);
|
|
236
238
|
const { filterProps } = useProps(props);
|
|
237
239
|
const origamProgressRef = ref();
|
|
@@ -242,13 +244,18 @@ useSelectLink(link, group?.select);
|
|
|
242
244
|
const { isHover, hoverState, onMouseenter: handleMouseenter, onMouseleave: handleMouseleave } = useHover(props);
|
|
243
245
|
const { isActive: active, activeState } = useActive(props);
|
|
244
246
|
const isActive = computed(() => {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
const a = props.active;
|
|
248
|
+
const forcedActive = a === true || !!a && typeof a === "object" && a.enabled === true;
|
|
249
|
+
if (forcedActive) {
|
|
250
|
+
return true;
|
|
251
|
+
}
|
|
252
|
+
if (group) {
|
|
253
|
+
return group.isSelected.value;
|
|
247
254
|
}
|
|
248
255
|
if (link.isLink.value) {
|
|
249
256
|
return link.isActive?.value;
|
|
250
257
|
}
|
|
251
|
-
return
|
|
258
|
+
return active.value;
|
|
252
259
|
});
|
|
253
260
|
const isDisabled = computed(() => group?.disabled.value || props.disabled);
|
|
254
261
|
const valueAttr = computed(() => {
|
|
@@ -268,6 +275,7 @@ const { loaderClasses, loaderConfig } = useLoader(props, "circular");
|
|
|
268
275
|
const { locationStyles } = useLocation(props);
|
|
269
276
|
const { positionClasses } = usePosition(props);
|
|
270
277
|
const { sizeClasses, sizeStyles } = useSize(props);
|
|
278
|
+
const { typographyStyles } = useTypography(props, "btn");
|
|
271
279
|
const { icon, prependIcon, appendIcon, statusClasses } = useStatus(props);
|
|
272
280
|
const {
|
|
273
281
|
colorClasses,
|
|
@@ -316,7 +324,7 @@ const progressProps = computed(() => {
|
|
|
316
324
|
modelValue: cfg.modelValue,
|
|
317
325
|
type: cfg.kind === "line" ? PROGRESS_TYPE.LINEAR : PROGRESS_TYPE.CIRCULAR
|
|
318
326
|
},
|
|
319
|
-
origamProgressRef.value?.filterProps(props, ["class", "style", "id", "tag", "size", "type"]),
|
|
327
|
+
origamProgressRef.value?.filterProps(props, ["class", "style", "id", "tag", "size", "type"]) ?? {},
|
|
320
328
|
cfg.overrides
|
|
321
329
|
);
|
|
322
330
|
});
|
|
@@ -331,6 +339,7 @@ const btnStyles = computed(() => {
|
|
|
331
339
|
roundedStyles.value,
|
|
332
340
|
sizeStyles.value,
|
|
333
341
|
elevationStyles.value,
|
|
342
|
+
typographyStyles.value,
|
|
334
343
|
props.style
|
|
335
344
|
];
|
|
336
345
|
});
|
|
@@ -404,10 +413,6 @@ defineExpose({
|
|
|
404
413
|
transition-duration: var(--origam-btn---transition-duration, 0.28s);
|
|
405
414
|
transition-timing-function: var(--origam-btn---transition-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
406
415
|
|
|
407
|
-
@media (prefers-reduced-motion: reduce) {
|
|
408
|
-
transition: none;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
416
|
padding: 0 calc(16px + var(--origam-btn---density-padding-x, 0px));
|
|
412
417
|
|
|
413
418
|
width: var(--origam-btn---width, auto);
|
|
@@ -423,10 +428,6 @@ defineExpose({
|
|
|
423
428
|
outline: none;
|
|
424
429
|
cursor: pointer;
|
|
425
430
|
|
|
426
|
-
&:focus-visible {
|
|
427
|
-
outline: var(--origam-border__width---2, 2px) solid var(--origam-color__border---focus, currentColor);
|
|
428
|
-
outline-offset: var(--origam-space---1, 2px);
|
|
429
|
-
}
|
|
430
431
|
user-select: none;
|
|
431
432
|
opacity: var(--origam-btn---opacity, 1);
|
|
432
433
|
|
|
@@ -438,6 +439,15 @@ defineExpose({
|
|
|
438
439
|
var(--origam-btn-group---border-radius, 4px)
|
|
439
440
|
);
|
|
440
441
|
|
|
442
|
+
@media (prefers-reduced-motion: reduce) {
|
|
443
|
+
transition: none;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
&:focus-visible {
|
|
447
|
+
outline: var(--origam-border__width---2, 2px) solid var(--origam-color__border---focus, currentColor);
|
|
448
|
+
outline-offset: var(--origam-space---1, 2px);
|
|
449
|
+
}
|
|
450
|
+
|
|
441
451
|
#{$this}__loader {
|
|
442
452
|
align-items: center;
|
|
443
453
|
justify-content: center;
|
|
@@ -536,8 +546,7 @@ defineExpose({
|
|
|
536
546
|
}
|
|
537
547
|
|
|
538
548
|
&:hover,
|
|
539
|
-
&:focus-visible
|
|
540
|
-
&:focus {
|
|
549
|
+
&:focus-visible {
|
|
541
550
|
> #{$this}__overlay {
|
|
542
551
|
--origam-btn__overlay---opacity: var(--origam-btn---overlay-opacity-hover, 0.12);
|
|
543
552
|
}
|
|
@@ -550,8 +559,7 @@ defineExpose({
|
|
|
550
559
|
}
|
|
551
560
|
|
|
552
561
|
&:hover,
|
|
553
|
-
&:focus-visible
|
|
554
|
-
&:focus {
|
|
562
|
+
&:focus-visible {
|
|
555
563
|
> #{$this}__overlay {
|
|
556
564
|
--origam-btn__overlay---opacity: var(--origam-btn---overlay-opacity-active-hover, 0.28);
|
|
557
565
|
}
|
|
@@ -603,14 +611,45 @@ defineExpose({
|
|
|
603
611
|
var(--origam-color__surface---overlay)
|
|
604
612
|
) !important;
|
|
605
613
|
box-shadow: none;
|
|
614
|
+
|
|
615
|
+
// Active / selected state (e.g. inside an OrigamBtnToggle):
|
|
616
|
+
// lift the surface to the "raised" rung so the selected
|
|
617
|
+
// button is clearly distinct from the resting siblings.
|
|
618
|
+
// Three axes change on selection:
|
|
619
|
+
// 1. background → raised surface (white in light / elevated in dark)
|
|
620
|
+
// 2. box-shadow → xs shadow (segmented-control "pill" lift)
|
|
621
|
+
// 3. font-weight → semibold (label emphasis)
|
|
622
|
+
// All three are driven by theme-overridable tokens.
|
|
623
|
+
&#{$this}--active {
|
|
624
|
+
background-color: var(
|
|
625
|
+
--origam-btn---background-color-tonal-active,
|
|
626
|
+
var(--origam-color__surface---raised, var(--origam-color__surface---overlay))
|
|
627
|
+
) !important;
|
|
628
|
+
box-shadow: var(
|
|
629
|
+
--origam-btn---box-shadow-tonal-active,
|
|
630
|
+
var(--origam-shadow---xs)
|
|
631
|
+
);
|
|
632
|
+
font-weight: 600;
|
|
633
|
+
}
|
|
606
634
|
}
|
|
607
635
|
|
|
608
636
|
&--variant-outlined {
|
|
609
637
|
background-color: transparent !important;
|
|
610
638
|
border-width: var(--origam-btn---border-width-outlined, var(--origam-border__width---thin));
|
|
611
639
|
border-style: solid;
|
|
612
|
-
border-color: currentColor;
|
|
640
|
+
border-color: var(--origam-btn---border-color, currentColor);
|
|
613
641
|
box-shadow: none;
|
|
642
|
+
|
|
643
|
+
// Selected state inside an OrigamBtnToggle: the active option
|
|
644
|
+
// FILLS like a real default button (using the btn's own bg/fg
|
|
645
|
+
// tokens, so it follows color/intent and theme), while the resting
|
|
646
|
+
// siblings stay outlined. This is what makes a btn-toggle read as
|
|
647
|
+
// a row of real buttons rather than a flat segmented strip.
|
|
648
|
+
&#{$this}--active {
|
|
649
|
+
background-color: var(--origam-btn---background-color) !important;
|
|
650
|
+
color: var(--origam-btn---color);
|
|
651
|
+
border-color: var(--origam-btn---background-color);
|
|
652
|
+
}
|
|
614
653
|
}
|
|
615
654
|
|
|
616
655
|
&--variant-plain {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</component>
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
|
-
<script setup>
|
|
28
|
+
<script lang="ts" setup>
|
|
29
29
|
import { OrigamBtn, OrigamDefaultsProvider } from "../../components";
|
|
30
30
|
import {
|
|
31
31
|
useDensity,
|
|
@@ -73,7 +73,10 @@ const props = defineProps({
|
|
|
73
73
|
paddingBottom: { type: [Boolean, Number, String], required: false },
|
|
74
74
|
paddingRight: { type: [Boolean, Number, String], required: false },
|
|
75
75
|
paddingBlock: { type: [Boolean, Number, String], required: false },
|
|
76
|
-
paddingInline: { type: [Boolean, Number, String], required: false }
|
|
76
|
+
paddingInline: { type: [Boolean, Number, String], required: false },
|
|
77
|
+
hover: { type: [Boolean, Object], required: false },
|
|
78
|
+
active: { type: [Boolean, Object], required: false },
|
|
79
|
+
activeClass: { type: String, required: false }
|
|
77
80
|
});
|
|
78
81
|
const { filterProps } = useProps(props);
|
|
79
82
|
const slotDefaults = computed(() => ({
|
|
@@ -148,6 +151,7 @@ defineExpose({
|
|
|
148
151
|
.origam-btn-group {
|
|
149
152
|
display: inline-flex;
|
|
150
153
|
flex-wrap: nowrap;
|
|
154
|
+
align-items: center;
|
|
151
155
|
overflow: hidden;
|
|
152
156
|
vertical-align: middle;
|
|
153
157
|
|
|
@@ -208,7 +212,6 @@ defineExpose({
|
|
|
208
212
|
}
|
|
209
213
|
|
|
210
214
|
:deep(.origam-btn) {
|
|
211
|
-
border-radius: 0;
|
|
212
215
|
border-color: inherit;
|
|
213
216
|
|
|
214
217
|
&:not(:last-child) {
|
|
@@ -220,6 +223,18 @@ defineExpose({
|
|
|
220
223
|
}
|
|
221
224
|
}
|
|
222
225
|
|
|
226
|
+
// The GROUP owns the rounding (outer corners, via its own
|
|
227
|
+
// border-radius + overflow:hidden) and the elevation (a single
|
|
228
|
+
// shadow around the whole group). Child buttons are forced flat
|
|
229
|
+
// and shadowless so a per-child `rounded` / `elevation` (own prop
|
|
230
|
+
// or active/hover state) can't break the unified segmented look —
|
|
231
|
+
// e.g. rounded pills with the group surface bleeding through the
|
|
232
|
+
// gaps. `!important` is intentional: the group's design wins.
|
|
233
|
+
:deep(.origam-btn) {
|
|
234
|
+
border-radius: 0 !important;
|
|
235
|
+
box-shadow: none !important;
|
|
236
|
+
}
|
|
237
|
+
|
|
223
238
|
&--divided {
|
|
224
239
|
:deep(.origam-btn) {
|
|
225
240
|
&:not(:last-child) {
|
|
@@ -236,10 +251,21 @@ defineExpose({
|
|
|
236
251
|
:root {
|
|
237
252
|
--origam-btn-group---density: 0;
|
|
238
253
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
254
|
+
/*
|
|
255
|
+
* Border-radius, border-width and border-color deliberately fall back to
|
|
256
|
+
* the matching --origam-btn---* variables so that any theme that overrides
|
|
257
|
+
* the btn tokens (radius, border) is automatically reflected on the group
|
|
258
|
+
* container — no per-theme duplication required.
|
|
259
|
+
*
|
|
260
|
+
* Token resolution chain:
|
|
261
|
+
* theme override of --origam-btn---border-radius
|
|
262
|
+
* → picked up here as --origam-btn-group---border-radius
|
|
263
|
+
* → used in .origam-btn-group { border-radius: … }
|
|
264
|
+
*/
|
|
265
|
+
--origam-btn-group---border-radius: var(--origam-btn---border-radius, 4px);
|
|
266
|
+
--origam-btn-group---border-width: var(--origam-btn---border-width, 0);
|
|
267
|
+
--origam-btn-group---border-style: var(--origam-btn---border-style, solid);
|
|
268
|
+
--origam-btn-group---border-color: var(--origam-btn---border-color, currentColor);
|
|
243
269
|
|
|
244
270
|
}
|
|
245
271
|
</style>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</origam-btn-group>
|
|
28
28
|
</template>
|
|
29
29
|
|
|
30
|
-
<script setup>
|
|
30
|
+
<script lang="ts" setup>
|
|
31
31
|
import { OrigamBtnGroup } from "../../components";
|
|
32
32
|
import {
|
|
33
33
|
useGroup,
|
|
@@ -76,6 +76,9 @@ const props = defineProps({
|
|
|
76
76
|
paddingRight: { type: [Boolean, Number, String], required: false },
|
|
77
77
|
paddingBlock: { type: [Boolean, Number, String], required: false },
|
|
78
78
|
paddingInline: { type: [Boolean, Number, String], required: false },
|
|
79
|
+
hover: { type: [Boolean, Object], required: false },
|
|
80
|
+
active: { type: [Boolean, Object], required: false },
|
|
81
|
+
activeClass: { type: String, required: false },
|
|
79
82
|
disabled: { type: Boolean, required: false },
|
|
80
83
|
modelValue: { type: null, required: false },
|
|
81
84
|
multiple: { type: Boolean, required: false },
|
|
@@ -115,9 +118,3 @@ defineExpose({
|
|
|
115
118
|
isLoaded
|
|
116
119
|
});
|
|
117
120
|
</script>
|
|
118
|
-
|
|
119
|
-
<style>
|
|
120
|
-
:root {
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
</style>
|