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
|
@@ -99,31 +99,30 @@
|
|
|
99
99
|
:class="getSwitchThumbClasses(icon)"
|
|
100
100
|
>
|
|
101
101
|
<origam-translate-scale>
|
|
102
|
-
<
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
size="x-small"
|
|
107
|
-
/>
|
|
108
|
-
</template>
|
|
109
|
-
|
|
110
|
-
<template v-if="hasCircularLoading">
|
|
102
|
+
<div
|
|
103
|
+
v-if="hasCircularLoading"
|
|
104
|
+
class="origam-switch__loader"
|
|
105
|
+
>
|
|
111
106
|
<slot name="loader">
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
/>
|
|
124
|
-
</div>
|
|
107
|
+
<origam-progress
|
|
108
|
+
:active="loaderConfig.isActive"
|
|
109
|
+
:color="color"
|
|
110
|
+
:indeterminate="loaderConfig.indeterminate"
|
|
111
|
+
:model-value="loaderConfig.modelValue"
|
|
112
|
+
:size="SIZES.X_SMALL"
|
|
113
|
+
:type="PROGRESS_TYPE.CIRCULAR"
|
|
114
|
+
class="origam-switch__progress origam-switch__progress--circular"
|
|
115
|
+
thickness="2"
|
|
116
|
+
v-bind="loaderConfig.overrides"
|
|
117
|
+
/>
|
|
125
118
|
</slot>
|
|
126
|
-
</
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<origam-icon
|
|
122
|
+
v-else-if="icon"
|
|
123
|
+
:icon="icon"
|
|
124
|
+
size="x-small"
|
|
125
|
+
/>
|
|
127
126
|
</origam-translate-scale>
|
|
128
127
|
</div>
|
|
129
128
|
</template>
|
|
@@ -132,7 +131,7 @@
|
|
|
132
131
|
</origam-input>
|
|
133
132
|
</template>
|
|
134
133
|
|
|
135
|
-
<script setup>
|
|
134
|
+
<script lang="ts" setup>
|
|
136
135
|
import { computed, ref, StyleValue, useAttrs, useSlots } from "vue";
|
|
137
136
|
import {
|
|
138
137
|
OrigamIcon,
|
|
@@ -207,7 +206,7 @@ const props = defineProps({
|
|
|
207
206
|
width: { type: [Number, String], required: false },
|
|
208
207
|
direction: { type: null, required: false },
|
|
209
208
|
disabled: { type: Boolean, required: false },
|
|
210
|
-
error: { type: Boolean, required: false },
|
|
209
|
+
error: { type: [String, Boolean], required: false },
|
|
211
210
|
errorMessages: { type: [Array, String], required: false },
|
|
212
211
|
maxErrors: { type: [Number, String], required: false },
|
|
213
212
|
name: { type: String, required: false },
|
|
@@ -223,10 +222,17 @@ const props = defineProps({
|
|
|
223
222
|
prependAvatar: { type: String, required: false },
|
|
224
223
|
prependIcon: { type: null, required: false },
|
|
225
224
|
size: { type: null, required: false },
|
|
225
|
+
fontFamily: { type: String, required: false },
|
|
226
|
+
fontSize: { type: String, required: false },
|
|
227
|
+
fontWeight: { type: String, required: false },
|
|
228
|
+
lineHeight: { type: String, required: false },
|
|
229
|
+
letterSpacing: { type: String, required: false },
|
|
226
230
|
trueValue: { type: null, required: false },
|
|
227
231
|
falseValue: { type: null, required: false },
|
|
228
232
|
value: { type: null, required: false },
|
|
229
233
|
required: { type: Boolean, required: false },
|
|
234
|
+
activeColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
235
|
+
activeBgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
230
236
|
inline: { type: Boolean, required: false },
|
|
231
237
|
falseIcon: { type: null, required: false },
|
|
232
238
|
trueIcon: { type: null, required: false },
|
|
@@ -262,6 +268,7 @@ const handleChange = () => {
|
|
|
262
268
|
}
|
|
263
269
|
};
|
|
264
270
|
const handleTrackClick = (_e) => {
|
|
271
|
+
;
|
|
265
272
|
origamSelectionControlRef.value?.inputRef?.click();
|
|
266
273
|
};
|
|
267
274
|
const [rootAttrs, controlAttrs] = filterInputAttrs(attrs);
|
|
@@ -271,9 +278,6 @@ const inputProps = computed(() => {
|
|
|
271
278
|
const controlProps = computed(() => {
|
|
272
279
|
return origamSelectionControlRef.value?.filterProps(props, ["modelValue", "type", "disabled", "readonly", "class", "style", "id"]);
|
|
273
280
|
});
|
|
274
|
-
const hasLoading = computed(() => {
|
|
275
|
-
return slots.loader || loaderConfig.value.isActive;
|
|
276
|
-
});
|
|
277
281
|
const isSkeletonLoading = computed(() => {
|
|
278
282
|
return loaderConfig.value.isActive && loaderConfig.value.kind === "skeleton";
|
|
279
283
|
});
|
|
@@ -498,12 +502,12 @@ defineExpose({
|
|
|
498
502
|
background-color: var(--origam-switch__thumb---background-color, rgb(255, 255, 255));
|
|
499
503
|
color: var(--origam-switch__thumb---color, currentColor);
|
|
500
504
|
border: 1px solid var(--origam-switch__thumb---border-color, rgba(0, 0, 0, 0.18));
|
|
501
|
-
border-radius: 50
|
|
505
|
+
border-radius: var(--origam-switch__thumb---border-radius, 50%);
|
|
502
506
|
display: flex;
|
|
503
507
|
font-size: 0.75rem;
|
|
504
|
-
height: 20px;
|
|
508
|
+
height: var(--origam-switch__thumb---size, 20px);
|
|
505
509
|
justify-content: center;
|
|
506
|
-
width: 20px;
|
|
510
|
+
width: var(--origam-switch__thumb---size, 20px);
|
|
507
511
|
pointer-events: none;
|
|
508
512
|
transition: 0.15s 0.05s transform cubic-bezier(0, 0, 0.2, 1), 0.2s color cubic-bezier(0.4, 0, 0.2, 1), 0.2s background-color cubic-bezier(0.4, 0, 0.2, 1), 0.2s border-color cubic-bezier(0.4, 0, 0.2, 1);
|
|
509
513
|
position: relative;
|
|
@@ -613,9 +617,3 @@ defineExpose({
|
|
|
613
617
|
}
|
|
614
618
|
}
|
|
615
619
|
</style>
|
|
616
|
-
|
|
617
|
-
<style>
|
|
618
|
-
:root {
|
|
619
|
-
|
|
620
|
-
}
|
|
621
|
-
</style>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</div>
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
|
-
<script setup>
|
|
36
|
+
<script lang="ts" setup>
|
|
37
37
|
import { computed, StyleValue, useSlots } from "vue";
|
|
38
38
|
import {
|
|
39
39
|
useBackgroundColor,
|
|
@@ -112,17 +112,16 @@ defineExpose({
|
|
|
112
112
|
font-size: 0.5rem;
|
|
113
113
|
padding: 0 5px;
|
|
114
114
|
background-color: var(--origam-switch__track---background-color, rgb(163, 163, 163));
|
|
115
|
-
border-radius: 9999px;
|
|
116
|
-
height: 14px;
|
|
117
|
-
|
|
118
|
-
min-width: 36px;
|
|
115
|
+
border-radius: var(--origam-switch__track---border-radius, 9999px);
|
|
116
|
+
height: var(--origam-switch__track---height, 14px);
|
|
117
|
+
min-width: var(--origam-switch__track---width, 36px);
|
|
119
118
|
cursor: pointer;
|
|
120
119
|
transition: 0.2s background-color cubic-bezier(0.4, 0, 0.2, 1);
|
|
120
|
+
overflow: hidden;
|
|
121
121
|
|
|
122
122
|
@media (prefers-reduced-motion: reduce) {
|
|
123
123
|
transition: none;
|
|
124
124
|
}
|
|
125
|
-
overflow: hidden;
|
|
126
125
|
|
|
127
126
|
@media (forced-colors: active) {
|
|
128
127
|
border: 1px solid;
|
|
@@ -152,6 +151,7 @@ defineExpose({
|
|
|
152
151
|
|
|
153
152
|
&--disabled {
|
|
154
153
|
cursor: default;
|
|
154
|
+
opacity: var(--origam-switch---opacity-disabled, 0.32);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
&--dirty#{$this}--disabled {
|
|
@@ -166,10 +166,10 @@ defineExpose({
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
&--inset {
|
|
169
|
-
border-radius: 9999px;
|
|
169
|
+
border-radius: var(--origam-switch__track---border-radius, 9999px);
|
|
170
170
|
font-size: 0.75rem;
|
|
171
|
-
height: 32px;
|
|
172
|
-
min-width: 52px;
|
|
171
|
+
height: var(--origam-switch__track--inset---height, 32px);
|
|
172
|
+
min-width: var(--origam-switch__track--inset---width, 52px);
|
|
173
173
|
|
|
174
174
|
@media (forced-colors: active) {
|
|
175
175
|
border-width: 2px;
|
|
@@ -184,9 +184,3 @@ defineExpose({
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
</style>
|
|
187
|
-
|
|
188
|
-
<style>
|
|
189
|
-
:root {
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
</style>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
3
|
:is="tag"
|
|
4
|
+
v-contrast
|
|
4
5
|
:class="systemBarClasses"
|
|
5
6
|
:style="systemBarStyles"
|
|
6
7
|
>
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
</component>
|
|
9
10
|
</template>
|
|
10
11
|
|
|
11
|
-
<script setup>
|
|
12
|
+
<script lang="ts" setup>
|
|
12
13
|
import { computed, shallowRef, StyleValue, toRef } from "vue";
|
|
13
14
|
import {
|
|
14
15
|
useBorder,
|
|
@@ -19,8 +20,10 @@ import {
|
|
|
19
20
|
useProps,
|
|
20
21
|
useRounded,
|
|
21
22
|
useSsrBoot,
|
|
22
|
-
useStyle
|
|
23
|
+
useStyle,
|
|
24
|
+
useTypography
|
|
23
25
|
} from "../../composables";
|
|
26
|
+
import { vContrast } from "../../directives";
|
|
24
27
|
const props = defineProps({
|
|
25
28
|
window: { type: Boolean, required: false },
|
|
26
29
|
id: { type: String, required: false },
|
|
@@ -53,19 +56,25 @@ const props = defineProps({
|
|
|
53
56
|
maxWidth: { type: [Number, String], required: false },
|
|
54
57
|
minHeight: { type: [Number, String], required: false },
|
|
55
58
|
minWidth: { type: [Number, String], required: false },
|
|
56
|
-
width: { type: [Number, String], required: false }
|
|
59
|
+
width: { type: [Number, String], required: false },
|
|
60
|
+
fontFamily: { type: String, required: false },
|
|
61
|
+
fontSize: { type: String, required: false },
|
|
62
|
+
fontWeight: { type: String, required: false },
|
|
63
|
+
lineHeight: { type: String, required: false },
|
|
64
|
+
letterSpacing: { type: String, required: false }
|
|
57
65
|
});
|
|
58
66
|
const { filterProps } = useProps(props);
|
|
59
67
|
const { dimensionStyles } = useDimension(props);
|
|
60
68
|
const { borderClasses, borderStyles } = useBorder(props);
|
|
61
69
|
const { roundedStyles, roundedClasses } = useRounded(props);
|
|
62
70
|
const { elevationClasses } = useElevation(props);
|
|
71
|
+
const { typographyStyles } = useTypography(props, "system-bar");
|
|
63
72
|
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
64
73
|
const { ssrBootStyles } = useSsrBoot();
|
|
65
74
|
const height = computed(() => props.height ?? (props.window ? 32 : 24));
|
|
66
75
|
const { layoutItemStyles } = useLayoutItem({
|
|
67
76
|
id: props.name,
|
|
68
|
-
order: computed(() => parseInt(props.order, 10)),
|
|
77
|
+
order: computed(() => parseInt(String(props.order ?? 0), 10)),
|
|
69
78
|
position: shallowRef("top"),
|
|
70
79
|
layoutSize: height,
|
|
71
80
|
elementSize: height,
|
|
@@ -78,6 +87,7 @@ const systemBarStyles = computed(() => {
|
|
|
78
87
|
roundedStyles.value,
|
|
79
88
|
dimensionStyles.value,
|
|
80
89
|
colorStyles.value,
|
|
90
|
+
typographyStyles.value,
|
|
81
91
|
ssrBootStyles.value,
|
|
82
92
|
layoutItemStyles.value,
|
|
83
93
|
props.style
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
<caption
|
|
18
18
|
v-if="caption"
|
|
19
19
|
:class="['origam-table__caption', {'origam-table__caption--visible': captionVisible}]"
|
|
20
|
+
:style="captionTypographyStyles"
|
|
20
21
|
>{{ caption }}</caption>
|
|
21
22
|
<slot name="default"/>
|
|
22
23
|
</table>
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
</component>
|
|
28
29
|
</template>
|
|
29
30
|
|
|
30
|
-
<script setup>
|
|
31
|
+
<script lang="ts" setup>
|
|
31
32
|
import { computed, StyleValue, useSlots } from "vue";
|
|
32
33
|
import {
|
|
33
34
|
useDensity,
|
|
@@ -35,7 +36,8 @@ import {
|
|
|
35
36
|
useHover,
|
|
36
37
|
useProps,
|
|
37
38
|
useStateEffect,
|
|
38
|
-
useStyle
|
|
39
|
+
useStyle,
|
|
40
|
+
useTypography
|
|
39
41
|
} from "../../composables";
|
|
40
42
|
import { DENSITY } from "../../enums";
|
|
41
43
|
const props = defineProps({
|
|
@@ -84,7 +86,12 @@ const props = defineProps({
|
|
|
84
86
|
minWidth: { type: [Number, String], required: false },
|
|
85
87
|
width: { type: [Number, String], required: false },
|
|
86
88
|
density: { type: null, required: false, default: DENSITY.DEFAULT },
|
|
87
|
-
tag: { type: String, required: false, default: "div" }
|
|
89
|
+
tag: { type: String, required: false, default: "div" },
|
|
90
|
+
fontFamily: { type: String, required: false },
|
|
91
|
+
fontSize: { type: String, required: false },
|
|
92
|
+
fontWeight: { type: String, required: false },
|
|
93
|
+
lineHeight: { type: String, required: false },
|
|
94
|
+
letterSpacing: { type: String, required: false }
|
|
88
95
|
});
|
|
89
96
|
const { filterProps } = useProps(props);
|
|
90
97
|
const slots = useSlots();
|
|
@@ -102,12 +109,17 @@ const {
|
|
|
102
109
|
marginClasses,
|
|
103
110
|
marginStyles
|
|
104
111
|
} = useStateEffect(props, isHover, void 0, hoverState);
|
|
112
|
+
const { typographyStyles: tableTypographyStyles } = useTypography(props, "table");
|
|
113
|
+
const { typographyStyles: captionTypographyStyles } = useTypography(props, "table__caption");
|
|
114
|
+
const { typographyStyles: headerCellTypographyStyles } = useTypography(props, "table__header-cell");
|
|
105
115
|
const tableStyles = computed(() => {
|
|
106
116
|
return [
|
|
107
117
|
borderStyles.value,
|
|
108
118
|
roundedStyles.value,
|
|
109
119
|
paddingStyles.value,
|
|
110
120
|
marginStyles.value,
|
|
121
|
+
tableTypographyStyles.value,
|
|
122
|
+
headerCellTypographyStyles.value,
|
|
111
123
|
props.style
|
|
112
124
|
];
|
|
113
125
|
});
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
:is="tag"
|
|
4
4
|
:id="tabDomId"
|
|
5
5
|
ref="rootRef"
|
|
6
|
+
v-contrast
|
|
6
7
|
role="tab"
|
|
7
8
|
type="button"
|
|
8
9
|
:class="tabClasses"
|
|
@@ -46,15 +47,17 @@
|
|
|
46
47
|
</component>
|
|
47
48
|
</template>
|
|
48
49
|
|
|
49
|
-
<script setup>
|
|
50
|
+
<script lang="ts" setup>
|
|
50
51
|
import { computed, inject, ref, StyleValue } from "vue";
|
|
51
52
|
import { OrigamIcon } from "../../components";
|
|
52
53
|
import {
|
|
53
54
|
useDefaults,
|
|
54
55
|
useGroupItem,
|
|
55
56
|
useProps,
|
|
56
|
-
useStyle
|
|
57
|
+
useStyle,
|
|
58
|
+
useTypography
|
|
57
59
|
} from "../../composables";
|
|
60
|
+
import { vContrast } from "../../directives";
|
|
58
61
|
import { ORIGAM_TABS_KEY, ORIGAM_TAB_PANELS_KEY } from "../../consts";
|
|
59
62
|
const _props = defineProps({
|
|
60
63
|
text: { type: String, required: false, default: "" },
|
|
@@ -67,7 +70,12 @@ const _props = defineProps({
|
|
|
67
70
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
68
71
|
value: { type: null, required: false, default: void 0 },
|
|
69
72
|
disabled: { type: Boolean, required: false },
|
|
70
|
-
selectedClass: { type: String, required: false }
|
|
73
|
+
selectedClass: { type: String, required: false },
|
|
74
|
+
fontFamily: { type: String, required: false },
|
|
75
|
+
fontSize: { type: String, required: false },
|
|
76
|
+
fontWeight: { type: String, required: false },
|
|
77
|
+
lineHeight: { type: String, required: false },
|
|
78
|
+
letterSpacing: { type: String, required: false }
|
|
71
79
|
});
|
|
72
80
|
const props = useDefaults(_props);
|
|
73
81
|
const { filterProps } = useProps(props);
|
|
@@ -102,8 +110,10 @@ const handleClick = (event) => {
|
|
|
102
110
|
groupItem.select(true);
|
|
103
111
|
};
|
|
104
112
|
const hasIndicator = computed(() => props.variant === "underline");
|
|
113
|
+
const { typographyStyles } = useTypography(props, "tabs__item");
|
|
105
114
|
const tabStyles = computed(() => {
|
|
106
115
|
return [
|
|
116
|
+
typographyStyles.value,
|
|
107
117
|
props.style
|
|
108
118
|
];
|
|
109
119
|
});
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
</origam-input>
|
|
185
185
|
</template>
|
|
186
186
|
|
|
187
|
-
<script setup>
|
|
187
|
+
<script lang="ts" setup>
|
|
188
188
|
import { computed, nextTick, ref, toRef, StyleValue, useAttrs, useSlots, watch } from "vue";
|
|
189
189
|
import { OrigamCounter, OrigamField, OrigamInput } from "../../components";
|
|
190
190
|
import {
|
|
@@ -231,6 +231,8 @@ const _props = defineProps({
|
|
|
231
231
|
reverse: { type: Boolean, required: false },
|
|
232
232
|
singleLine: { type: Boolean, required: false },
|
|
233
233
|
required: { type: Boolean, required: false },
|
|
234
|
+
activeColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
235
|
+
activeBgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
234
236
|
loading: { type: [Boolean, Number, Object], required: false },
|
|
235
237
|
loadingText: { type: String, required: false },
|
|
236
238
|
tag: { type: String, required: false },
|
|
@@ -273,6 +275,11 @@ const _props = defineProps({
|
|
|
273
275
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
274
276
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
275
277
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
278
|
+
fontFamily: { type: String, required: false },
|
|
279
|
+
fontSize: { type: String, required: false },
|
|
280
|
+
fontWeight: { type: String, required: false },
|
|
281
|
+
lineHeight: { type: String, required: false },
|
|
282
|
+
letterSpacing: { type: String, required: false },
|
|
276
283
|
active: { type: [Boolean, Object], required: false },
|
|
277
284
|
activeClass: { type: String, required: false },
|
|
278
285
|
variant: { type: null, required: false },
|
|
@@ -10,28 +10,29 @@
|
|
|
10
10
|
</component>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
|
-
<script setup>
|
|
13
|
+
<script lang="ts" setup>
|
|
14
14
|
import {
|
|
15
15
|
computed,
|
|
16
16
|
useSlots
|
|
17
17
|
} from "vue";
|
|
18
|
-
import { resolveGradient } from "../../utils/Commons/gradient.util
|
|
18
|
+
import { resolveGradient } from "../../utils/Commons/gradient.util";
|
|
19
|
+
import { useTypography } from "../../composables";
|
|
19
20
|
const props = defineProps({
|
|
20
21
|
text: { type: String, required: false },
|
|
21
22
|
background: { type: [String, Object], required: true },
|
|
22
23
|
animated: { type: Boolean, required: false, default: false },
|
|
23
24
|
animationDuration: { type: String, required: false, default: "3s" },
|
|
24
25
|
animationType: { type: String, required: false, default: "pan" },
|
|
25
|
-
fontSize: { type: [String, Number], required: false, default: "inherit" },
|
|
26
|
-
fontWeight: { type: [String, Number], required: false, default: "inherit" },
|
|
27
|
-
fontFamily: { type: String, required: false, default: "inherit" },
|
|
28
|
-
lineHeight: { type: [String, Number], required: false, default: 1.1 },
|
|
29
|
-
letterSpacing: { type: String, required: false },
|
|
30
26
|
align: { type: String, required: false, default: "left" },
|
|
31
27
|
id: { type: String, required: false },
|
|
32
28
|
class: { type: [String, Array, Object], required: false },
|
|
33
29
|
style: { type: [String, Array, Object, Boolean, null], required: false, skipCheck: true },
|
|
34
|
-
tag: { type: String, required: false, default: "span" }
|
|
30
|
+
tag: { type: String, required: false, default: "span" },
|
|
31
|
+
fontFamily: { type: String, required: false },
|
|
32
|
+
fontSize: { type: String, required: false },
|
|
33
|
+
fontWeight: { type: String, required: false },
|
|
34
|
+
lineHeight: { type: String, required: false },
|
|
35
|
+
letterSpacing: { type: String, required: false }
|
|
35
36
|
});
|
|
36
37
|
const slots = useSlots();
|
|
37
38
|
const resolvedBackground = computed(() => {
|
|
@@ -39,14 +40,7 @@ const resolvedBackground = computed(() => {
|
|
|
39
40
|
if (fromGradient) return fromGradient;
|
|
40
41
|
return typeof props.background === "string" ? props.background : "";
|
|
41
42
|
});
|
|
42
|
-
const
|
|
43
|
-
if (v === void 0 || v === null || v === "") return fallback;
|
|
44
|
-
return typeof v === "number" ? `${v}px` : v;
|
|
45
|
-
};
|
|
46
|
-
const cssUnitless = (v, fallback) => {
|
|
47
|
-
if (v === void 0 || v === null || v === "") return fallback;
|
|
48
|
-
return String(v);
|
|
49
|
-
};
|
|
43
|
+
const { typographyStyles } = useTypography(props, "text-mask");
|
|
50
44
|
const hasSlot = computed(() => Boolean(slots.default));
|
|
51
45
|
const textMaskClasses = computed(() => {
|
|
52
46
|
return [
|
|
@@ -63,13 +57,9 @@ const textMaskStyles = computed(() => {
|
|
|
63
57
|
return [
|
|
64
58
|
{
|
|
65
59
|
"--origam-text-mask---bg": resolvedBackground.value,
|
|
66
|
-
"--origam-text-mask---duration": props.animationDuration
|
|
67
|
-
"--origam-text-mask---font-size": cssDimension(props.fontSize, "inherit"),
|
|
68
|
-
"--origam-text-mask---font-weight": cssUnitless(props.fontWeight, "inherit"),
|
|
69
|
-
"--origam-text-mask---font-family": props.fontFamily ?? "inherit",
|
|
70
|
-
"--origam-text-mask---line-height": cssUnitless(props.lineHeight, "1.1"),
|
|
71
|
-
"--origam-text-mask---letter-spacing": props.letterSpacing ?? "normal"
|
|
60
|
+
"--origam-text-mask---duration": props.animationDuration
|
|
72
61
|
},
|
|
62
|
+
typographyStyles.value,
|
|
73
63
|
props.style
|
|
74
64
|
];
|
|
75
65
|
});
|
|
@@ -90,11 +80,11 @@ defineExpose({
|
|
|
90
80
|
background-clip: text;
|
|
91
81
|
-webkit-text-fill-color: transparent;
|
|
92
82
|
color: transparent;
|
|
93
|
-
font-size: var(--origam-text-mask---font-size);
|
|
94
|
-
font-weight: var(--origam-text-mask---font-weight);
|
|
95
|
-
font-family:
|
|
96
|
-
line-height: var(--origam-text-mask---line-height);
|
|
97
|
-
letter-spacing: var(--origam-text-mask---letter-spacing);
|
|
83
|
+
font-size: var(--origam-text-mask---font-size, var(--origam-text-mask---font-size-default));
|
|
84
|
+
font-weight: var(--origam-text-mask---font-weight, var(--origam-text-mask---font-weight-default));
|
|
85
|
+
font-family: var(--origam-text-mask---font-family, inherit);
|
|
86
|
+
line-height: var(--origam-text-mask---line-height, var(--origam-text-mask---line-height-default));
|
|
87
|
+
letter-spacing: var(--origam-text-mask---letter-spacing, normal);
|
|
98
88
|
}
|
|
99
89
|
|
|
100
90
|
.origam-text-mask--align-left {
|
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
v-for="item in items"
|
|
11
11
|
:key="item"
|
|
12
12
|
>
|
|
13
|
-
<
|
|
13
|
+
<origam-btn
|
|
14
14
|
v-if="!isLink(item)"
|
|
15
|
-
|
|
15
|
+
variant="text"
|
|
16
|
+
:icon="true"
|
|
16
17
|
class="origam-rich-toolbar__btn"
|
|
17
18
|
:class="btnClassFor(item)"
|
|
18
19
|
:disabled="disabled || undefined"
|
|
20
|
+
:active="isActive(item)"
|
|
19
21
|
:aria-label="labelFor(item)"
|
|
20
22
|
:aria-pressed="isActive(item) ? 'true' : 'false'"
|
|
21
23
|
:data-command="item"
|
|
@@ -24,16 +26,18 @@
|
|
|
24
26
|
@click="emit('format', item)"
|
|
25
27
|
>
|
|
26
28
|
<origam-icon :name="iconFor(item)"/>
|
|
27
|
-
</
|
|
29
|
+
</origam-btn>
|
|
28
30
|
<div
|
|
29
31
|
v-else
|
|
30
32
|
class="origam-rich-toolbar__link-host"
|
|
31
33
|
>
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
+
<origam-btn
|
|
35
|
+
variant="text"
|
|
36
|
+
:icon="true"
|
|
34
37
|
class="origam-rich-toolbar__btn"
|
|
35
38
|
:class="btnClassFor(item)"
|
|
36
39
|
:disabled="disabled || undefined"
|
|
40
|
+
:active="isActive(item)"
|
|
37
41
|
:aria-label="labelFor(item)"
|
|
38
42
|
:aria-pressed="isActive(item) ? 'true' : 'false'"
|
|
39
43
|
:aria-expanded="linkPopoverOpen ? 'true' : 'false'"
|
|
@@ -43,7 +47,7 @@
|
|
|
43
47
|
@click="openLinkPopover"
|
|
44
48
|
>
|
|
45
49
|
<origam-icon :name="iconFor(item)"/>
|
|
46
|
-
</
|
|
50
|
+
</origam-btn>
|
|
47
51
|
<div
|
|
48
52
|
v-if="linkPopoverOpen"
|
|
49
53
|
class="origam-rich-toolbar__link-popover"
|
|
@@ -60,8 +64,8 @@
|
|
|
60
64
|
@keydown.enter.prevent="applyLink"
|
|
61
65
|
@keydown.escape.prevent="closeLinkPopover"
|
|
62
66
|
>
|
|
63
|
-
<
|
|
64
|
-
|
|
67
|
+
<origam-btn
|
|
68
|
+
variant="text"
|
|
65
69
|
class="origam-rich-toolbar__btn origam-rich-toolbar__link-apply"
|
|
66
70
|
:aria-label="linkApplyLabel"
|
|
67
71
|
data-cy="origam-rich-toolbar-link-apply"
|
|
@@ -69,16 +73,16 @@
|
|
|
69
73
|
@click="applyLink"
|
|
70
74
|
>
|
|
71
75
|
{{ linkApplyLabel }}
|
|
72
|
-
</
|
|
76
|
+
</origam-btn>
|
|
73
77
|
</div>
|
|
74
78
|
</div>
|
|
75
79
|
</template>
|
|
76
80
|
</div>
|
|
77
81
|
</template>
|
|
78
82
|
|
|
79
|
-
<script setup>
|
|
83
|
+
<script lang="ts" setup>
|
|
80
84
|
import { computed, nextTick, ref } from "vue";
|
|
81
|
-
import { OrigamIcon } from "../../components";
|
|
85
|
+
import { OrigamBtn, OrigamIcon } from "../../components";
|
|
82
86
|
import { useLocale } from "../../composables";
|
|
83
87
|
import { MDI_ICONS, TEXTAREA_TOOLBAR_COMMAND, TEXTAREA_TOOLBAR_POSITION } from "../../enums";
|
|
84
88
|
const props = defineProps({
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
<div
|
|
98
98
|
ref="richHostRef"
|
|
99
99
|
class="origam-textarea-field__rich"
|
|
100
|
+
:style="typographyStyles"
|
|
100
101
|
role="textbox"
|
|
101
102
|
aria-multiline="true"
|
|
102
103
|
:aria-disabled="isDisabled || undefined"
|
|
@@ -248,7 +249,7 @@
|
|
|
248
249
|
</origam-input>
|
|
249
250
|
</template>
|
|
250
251
|
|
|
251
|
-
<script setup>
|
|
252
|
+
<script lang="ts" setup>
|
|
252
253
|
import {
|
|
253
254
|
computed,
|
|
254
255
|
nextTick,
|
|
@@ -274,6 +275,7 @@ import {
|
|
|
274
275
|
useProps,
|
|
275
276
|
useStyle,
|
|
276
277
|
useTextareaRich,
|
|
278
|
+
useTypography,
|
|
277
279
|
useVModel
|
|
278
280
|
} from "../../composables";
|
|
279
281
|
import { DEFAULT_TOOLBAR } from "../../consts";
|
|
@@ -321,6 +323,8 @@ const _props = defineProps({
|
|
|
321
323
|
reverse: { type: Boolean, required: false },
|
|
322
324
|
singleLine: { type: Boolean, required: false },
|
|
323
325
|
required: { type: Boolean, required: false },
|
|
326
|
+
activeColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
327
|
+
activeBgColor: { type: [String, Object, Boolean, null], required: false, skipCheck: true },
|
|
324
328
|
loading: { type: [Boolean, Number, Object], required: false },
|
|
325
329
|
loadingText: { type: String, required: false },
|
|
326
330
|
tag: { type: String, required: false },
|
|
@@ -363,6 +367,11 @@ const _props = defineProps({
|
|
|
363
367
|
roundedTopLeft: { type: [Boolean, Number, String], required: false },
|
|
364
368
|
roundedBottomLeft: { type: [Boolean, Number, String], required: false },
|
|
365
369
|
roundedBottomRight: { type: [Boolean, Number, String], required: false },
|
|
370
|
+
fontFamily: { type: String, required: false },
|
|
371
|
+
fontSize: { type: String, required: false },
|
|
372
|
+
fontWeight: { type: String, required: false },
|
|
373
|
+
lineHeight: { type: String, required: false },
|
|
374
|
+
letterSpacing: { type: String, required: false },
|
|
366
375
|
active: { type: [Boolean, Object], required: false },
|
|
367
376
|
activeClass: { type: String, required: false },
|
|
368
377
|
variant: { type: null, required: false },
|
|
@@ -657,6 +666,7 @@ const textareaFieldFieldStyles = computed(() => {
|
|
|
657
666
|
"--origam-textarea-field__control---height": convertToUnit(controlHeight.value)
|
|
658
667
|
};
|
|
659
668
|
});
|
|
669
|
+
const { typographyStyles } = useTypography(props, "textarea-field__rich-content");
|
|
660
670
|
const { filterProps } = useProps(props);
|
|
661
671
|
const { id, css, load, isLoaded, unload } = useStyle(textareaFieldStyles);
|
|
662
672
|
defineExpose(forwardRefs({
|
|
@@ -3,20 +3,23 @@
|
|
|
3
3
|
:is="tag"
|
|
4
4
|
:class="themeProviderClasses"
|
|
5
5
|
:data-theme="dataTheme"
|
|
6
|
+
:data-mode="dataMode"
|
|
6
7
|
>
|
|
7
8
|
<slot/>
|
|
8
9
|
</component>
|
|
9
10
|
</template>
|
|
10
11
|
|
|
11
|
-
<script setup>
|
|
12
|
+
<script lang="ts" setup>
|
|
12
13
|
import { computed, useAttrs } from "vue";
|
|
13
14
|
defineOptions({ inheritAttrs: false });
|
|
14
15
|
const props = defineProps({
|
|
15
16
|
theme: { type: [String, Object], required: false, default: "auto" },
|
|
17
|
+
mode: { type: String, required: false, default: "auto" },
|
|
16
18
|
tag: { type: String, required: false, default: "div" }
|
|
17
19
|
});
|
|
18
20
|
const attrs = useAttrs();
|
|
19
21
|
const dataTheme = computed(() => props.theme === "auto" ? void 0 : props.theme);
|
|
22
|
+
const dataMode = computed(() => props.mode === "auto" ? void 0 : props.mode);
|
|
20
23
|
const themeProviderClasses = computed(() => {
|
|
21
24
|
return ["origam-theme-provider", attrs.class];
|
|
22
25
|
});
|