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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICommonsComponentProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { ICommonsComponentProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TInlineEditInputType } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Signature of a validator passed to `<OrigamInlineEdit>` (and to the
|
|
@@ -11,6 +11,14 @@ import type { TInlineEditInputType } from '../../types';
|
|
|
11
11
|
* resolves.
|
|
12
12
|
*/
|
|
13
13
|
export type TInlineEditValidator = (value: string) => true | string | Promise<true | string>;
|
|
14
|
+
/**
|
|
15
|
+
* A single validation rule for `<OrigamInlineEdit>`. Matches the
|
|
16
|
+
* contract shared by all DS form fields (`IValidationProps.rules`):
|
|
17
|
+
* a function that receives the current string value and returns
|
|
18
|
+
* `true` when it passes, or an error message string when it fails.
|
|
19
|
+
* Async rules (returning a `Promise`) are supported.
|
|
20
|
+
*/
|
|
21
|
+
export type TInlineEditRule = (value: string) => true | string | Promise<true | string>;
|
|
14
22
|
/**
|
|
15
23
|
* Props for `<OrigamInlineEdit>` — edit-in-place pattern.
|
|
16
24
|
*
|
|
@@ -22,7 +30,7 @@ export type TInlineEditValidator = (value: string) => true | string | Promise<tr
|
|
|
22
30
|
* is true) — wrapping a heavier component (TextField, …) is not
|
|
23
31
|
* needed and would defeat the keyboard-driven UX.
|
|
24
32
|
*/
|
|
25
|
-
export interface IInlineEditProps extends ICommonsComponentProps, ITagProps {
|
|
33
|
+
export interface IInlineEditProps extends ICommonsComponentProps, ITagProps, ITypographyProps {
|
|
26
34
|
/**
|
|
27
35
|
* Current value (v-model target). Accepts both `string` and
|
|
28
36
|
* `number` for ergonomics — the internal draft is normalised to a
|
|
@@ -36,6 +44,19 @@ export interface IInlineEditProps extends ICommonsComponentProps, ITagProps {
|
|
|
36
44
|
* `t()` if they need i18n.
|
|
37
45
|
*/
|
|
38
46
|
placeholder?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Array of validation rules using the standard DS contract
|
|
49
|
+
* (same as `OrigamTextField` / `OrigamInput` rules). Each rule
|
|
50
|
+
* is a function receiving the current string value and returning
|
|
51
|
+
* `true` (pass) or an error message string (fail). Rules are
|
|
52
|
+
* evaluated sequentially on confirm; the first failure surfaces
|
|
53
|
+
* as the inline error and blocks the commit.
|
|
54
|
+
*
|
|
55
|
+
* When both `rules` and `validate` are provided, `rules` are
|
|
56
|
+
* evaluated first. If any rule fails, `validate` is skipped.
|
|
57
|
+
* Only the first error message is displayed.
|
|
58
|
+
*/
|
|
59
|
+
rules?: Array<TInlineEditRule>;
|
|
39
60
|
/**
|
|
40
61
|
* Validation callback. Returns `true` (or `Promise<true>`) when
|
|
41
62
|
* the draft is acceptable, or an error message string that will
|
|
@@ -43,6 +64,9 @@ export interface IInlineEditProps extends ICommonsComponentProps, ITagProps {
|
|
|
43
64
|
*
|
|
44
65
|
* Sync validators run on every Enter / blur. Async validators
|
|
45
66
|
* keep the editor open until the returned Promise settles.
|
|
67
|
+
*
|
|
68
|
+
* When both `rules` and `validate` are provided, `rules` are
|
|
69
|
+
* evaluated first. `validate` only runs if all rules pass.
|
|
46
70
|
*/
|
|
47
71
|
validate?: TInlineEditValidator;
|
|
48
72
|
/**
|
|
@@ -219,6 +243,11 @@ export interface IInlineEditSlots {
|
|
|
219
243
|
* Options for the `useInlineEdit` composable.
|
|
220
244
|
*/
|
|
221
245
|
export interface IUseInlineEditOptions {
|
|
246
|
+
/**
|
|
247
|
+
* Array of validation rules — evaluated in order before `validate`.
|
|
248
|
+
* First failure blocks the commit and surfaces the error message.
|
|
249
|
+
*/
|
|
250
|
+
rules?: Array<TInlineEditRule>;
|
|
222
251
|
/** Sync or async validator — see `TInlineEditValidator`. */
|
|
223
252
|
validate?: TInlineEditValidator;
|
|
224
253
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IAdjacentEmits, IAdjacentProps, IAdjacentSlots, IBorderProps, IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, IDimensionProps, IDirectionProps, IElevationProps, IFocusEmits, IMarginProps, IPaddingProps, IRoundedProps, ISizeProps, IValidationProps } from '../../interfaces';
|
|
2
|
-
export interface IInputProps extends ICommonsComponentProps, IDensityProps, IPaddingProps, IMarginProps, IRoundedProps, IColorProps, IBgColorProps, IBorderProps, IElevationProps, IDimensionProps, IDirectionProps, IValidationProps, IAdjacentProps, ISizeProps {
|
|
1
|
+
import type { IAdjacentEmits, IAdjacentProps, IAdjacentSlots, IBorderProps, IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, IDimensionProps, IDirectionProps, IElevationProps, IFocusEmits, IMarginProps, IPaddingProps, IRoundedProps, ISizeProps, ITypographyProps, IValidationProps } from '../../interfaces';
|
|
2
|
+
export interface IInputProps extends ICommonsComponentProps, IDensityProps, IPaddingProps, IMarginProps, IRoundedProps, IColorProps, IBgColorProps, IBorderProps, IElevationProps, IDimensionProps, IDirectionProps, IValidationProps, IAdjacentProps, ISizeProps, ITypographyProps {
|
|
3
3
|
centerAffix?: boolean;
|
|
4
4
|
hideDetails?: boolean | string;
|
|
5
5
|
hideSpinButtons?: boolean;
|
|
@@ -23,9 +23,10 @@ export interface IInputEmits extends ICommonsComponentEmits, IAdjacentEmits, IFo
|
|
|
23
23
|
export interface IInputSlots extends IAdjacentSlots {
|
|
24
24
|
default?: (data: {
|
|
25
25
|
id: string;
|
|
26
|
+
messagesId: string;
|
|
26
27
|
isDisabled: boolean;
|
|
27
28
|
isDirty: boolean;
|
|
28
|
-
isValid: boolean;
|
|
29
|
+
isValid: boolean | undefined;
|
|
29
30
|
isReadonly: boolean;
|
|
30
31
|
}) => any;
|
|
31
32
|
messages?: (data: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IRoundedProps, ISizeProps } from '../../interfaces';
|
|
1
|
+
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IRoundedProps, ISizeProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TKbdVariant } from '../../types';
|
|
3
|
-
export interface IKbdProps extends ICommonsComponentProps, IColorProps, IBgColorProps, ISizeProps, IBorderProps, IRoundedProps {
|
|
3
|
+
export interface IKbdProps extends ICommonsComponentProps, IColorProps, IBgColorProps, ISizeProps, IBorderProps, IRoundedProps, ITypographyProps {
|
|
4
4
|
/** Single key label (e.g. "⌘", "Ctrl", "A"). Overridden by the default slot. */
|
|
5
5
|
text?: string;
|
|
6
6
|
/** Composed shortcut rendered as individual nested `<kbd>` elements (e.g. ['Ctrl', 'Shift', 'Z']). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, ICommonsComponentSlots, IMarginProps, IPaddingProps, IRoundedProps, ITagProps } from '../../interfaces';
|
|
2
|
-
export interface ILabelProps extends ICommonsComponentProps, IMarginProps, IPaddingProps, IBorderProps, IRoundedProps, IColorProps, IBgColorProps, ITagProps {
|
|
1
|
+
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, ICommonsComponentSlots, IMarginProps, IPaddingProps, IRoundedProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
|
+
export interface ILabelProps extends ICommonsComponentProps, IMarginProps, IPaddingProps, IBorderProps, IRoundedProps, IColorProps, IBgColorProps, ITagProps, ITypographyProps {
|
|
3
3
|
text?: string;
|
|
4
4
|
floating?: boolean;
|
|
5
5
|
required?: boolean;
|
|
@@ -12,5 +12,8 @@ export interface IListActivatorProps extends ICommonsComponentProps, ITagProps {
|
|
|
12
12
|
/** Emits fired by `<OrigamListGroup>` — click on the activator chrome
|
|
13
13
|
* (used by parents to toggle the open state). */
|
|
14
14
|
export interface IListGroupEmits {
|
|
15
|
-
(e: 'click:activator',
|
|
15
|
+
(e: 'click:activator', payload: {
|
|
16
|
+
open: boolean;
|
|
17
|
+
event: Event;
|
|
18
|
+
}): void;
|
|
16
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IActiveProps, IAdjacentEmits, IAdjacentProps, IBgColorProps, IBorderProps, IClickEmits, IColorProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IHoverProps, ILinkProps, IMarginProps, IPaddingProps, IRippleProps, IRoundedProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { IActiveProps, IAdjacentEmits, IAdjacentProps, IBgColorProps, IBorderProps, IClickEmits, IColorProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IHoverProps, ILinkProps, IMarginProps, IPaddingProps, IRippleProps, IRoundedProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TLines } from '../../types';
|
|
3
|
-
export interface IListItemProps extends IBorderProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IRoundedProps, ITagProps, ILinkProps, IColorProps, IBgColorProps, IRippleProps, IPaddingProps, IMarginProps, IAdjacentProps, IActiveProps, IHoverProps {
|
|
3
|
+
export interface IListItemProps extends IBorderProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IRoundedProps, ITagProps, ILinkProps, IColorProps, IBgColorProps, IRippleProps, IPaddingProps, IMarginProps, IAdjacentProps, IActiveProps, IHoverProps, ITypographyProps {
|
|
4
4
|
active?: boolean;
|
|
5
5
|
activeClass?: string;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps } from '../../interfaces';
|
|
2
|
-
export interface IListSubheader extends ICommonsComponentProps, ITagProps, IColorProps, IBgColorProps, IPaddingProps, IMarginProps, IBorderProps, IRoundedProps {
|
|
1
|
+
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
|
+
export interface IListSubheader extends ICommonsComponentProps, ITagProps, IColorProps, IBgColorProps, IPaddingProps, IMarginProps, IBorderProps, IRoundedProps, ITypographyProps {
|
|
3
3
|
inset?: boolean;
|
|
4
4
|
sticky?: boolean;
|
|
5
5
|
title?: string;
|
|
@@ -87,16 +87,24 @@ export interface IMediaScrubberProps extends ICommonsComponentProps, IColorProps
|
|
|
87
87
|
*/
|
|
88
88
|
formatHoverTooltip?: (value: number) => string;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Accessibility label — read by screen readers when the
|
|
91
91
|
* scrubber gains focus. Always pass a translated string here.
|
|
92
|
+
* Declared optional to allow Volar to map the kebab-case `:aria-label`
|
|
93
|
+
* attribute from parent templates without a required-prop error.
|
|
92
94
|
*/
|
|
93
|
-
ariaLabel
|
|
95
|
+
ariaLabel?: string;
|
|
94
96
|
/**
|
|
95
97
|
* Optional human-readable representation of the current value
|
|
96
98
|
* (e.g. `"1:23"` for a timestamp, `"45 %"` for a volume).
|
|
97
99
|
* Mapped to `aria-valuetext`.
|
|
98
100
|
*/
|
|
99
101
|
ariaValueText?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Optional `data-cy` test selector forwarded by the parent
|
|
104
|
+
* (`OrigamMediaController`, `OrigamMediaVolumeControl`) as a
|
|
105
|
+
* camelCase Vue prop. Passed through `$attrs` to the host element.
|
|
106
|
+
*/
|
|
107
|
+
dataCy?: string;
|
|
100
108
|
}
|
|
101
109
|
/**
|
|
102
110
|
* Emits for `<OrigamMediaScrubber>`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBorderProps, IColorProps, ICommonsComponentProps, IDensityProps, IElevationProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps, ITransitionComponentProps } from '../../interfaces';
|
|
2
|
-
export interface IMessagesProps extends ICommonsComponentProps, ITagProps, ITransitionComponentProps, IColorProps, IBorderProps, IPaddingProps, IMarginProps, IRoundedProps, IDensityProps, IElevationProps {
|
|
1
|
+
import type { IBorderProps, IColorProps, ICommonsComponentProps, IDensityProps, IElevationProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps, ITransitionComponentProps, ITypographyProps } from '../../interfaces';
|
|
2
|
+
export interface IMessagesProps extends ICommonsComponentProps, ITagProps, ITransitionComponentProps, IColorProps, IBorderProps, IPaddingProps, IMarginProps, IRoundedProps, IDensityProps, IElevationProps, ITypographyProps {
|
|
3
3
|
active?: boolean;
|
|
4
4
|
messages?: Array<string> | string;
|
|
5
5
|
}
|
|
@@ -1,37 +1,68 @@
|
|
|
1
|
+
import type { IOrigamTheme } from '../Theme/origam-theme.interface';
|
|
1
2
|
/**
|
|
2
3
|
* Options passed by a consumer in `nuxt.config.ts` under the `origam` key.
|
|
3
4
|
*
|
|
4
5
|
* All fields are optional — the module applies sensible defaults (see
|
|
5
|
-
* `DEFAULTS` in `src/nuxt/module.ts`). Themes are
|
|
6
|
-
*
|
|
7
|
-
* `
|
|
8
|
-
*
|
|
6
|
+
* `DEFAULTS` in `src/nuxt/module.ts`). Themes are installed as runtime OBJECTS
|
|
7
|
+
* (ADR-004): the module passes the `themes` array straight through to the
|
|
8
|
+
* runtime config and on to `createOrigam` in the plugins, which inject each as
|
|
9
|
+
* a name×mode scoped `--origam-*` block. The theme-invariant `primitive` +
|
|
10
|
+
* `utilities` sheets are still loaded as CSS. Two orthogonal axes are resolved
|
|
11
|
+
* SSR-side to avoid FOUC: the brand `theme` (cookie) and the color `mode`
|
|
12
|
+
* (cookie + `Sec-CH-Prefers-Color-Scheme` hint).
|
|
13
|
+
*
|
|
14
|
+
* ADR-004 (Implemented): the DS ships exactly ONE neutral identity (the origam
|
|
15
|
+
* baseline). Brand themes live in the consuming app (e.g. the marketing
|
|
16
|
+
* package) and are passed here as `IOrigamTheme[]` objects authored in
|
|
17
|
+
* semantic JSON — the DS no longer resolves preset names or ships brand
|
|
18
|
+
* token sheets.
|
|
9
19
|
*/
|
|
10
20
|
export interface IOrigamNuxtModuleOptions {
|
|
11
21
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
22
|
+
* Themes to install, as `IOrigamTheme` objects (one per brand×mode). The
|
|
23
|
+
* objects are passed verbatim to `createOrigam`, which injects each as a
|
|
24
|
+
* scoped CSS-var block — no pre-generated per-theme CSS file is loaded.
|
|
25
|
+
* When omitted, `createOrigam` installs the DS built-in baseline (neutral identity).
|
|
26
|
+
*/
|
|
27
|
+
themes?: IOrigamTheme[];
|
|
28
|
+
/**
|
|
29
|
+
* Theme (brand) applied when no cookie is set. Use `'auto'` to render no
|
|
30
|
+
* `data-theme` attribute (the default brand).
|
|
31
|
+
*
|
|
32
|
+
* @default 'auto'
|
|
33
|
+
*/
|
|
34
|
+
defaultTheme?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Color modes supported by the loaded token sheets. Used to validate the
|
|
37
|
+
* resolved mode before applying it.
|
|
15
38
|
*
|
|
16
39
|
* @default ['light', 'dark']
|
|
17
40
|
*/
|
|
18
|
-
|
|
41
|
+
modes?: string[];
|
|
19
42
|
/**
|
|
20
|
-
*
|
|
43
|
+
* Color mode applied when no cookie is set and no usable
|
|
21
44
|
* `Sec-CH-Prefers-Color-Scheme` hint is sent. Use `'auto'` to let the
|
|
22
45
|
* server fall back to the client hint (or `'light'` if absent).
|
|
23
46
|
*
|
|
24
47
|
* @default 'auto'
|
|
25
48
|
*/
|
|
26
|
-
|
|
49
|
+
defaultMode?: string;
|
|
27
50
|
/**
|
|
28
|
-
* Cookie name used to persist the user's chosen theme across
|
|
51
|
+
* Cookie name used to persist the user's chosen theme (brand) across
|
|
52
|
+
* sessions.
|
|
29
53
|
*
|
|
30
54
|
* @default 'origam-theme'
|
|
31
55
|
*/
|
|
32
56
|
cookieName?: string;
|
|
33
57
|
/**
|
|
34
|
-
* Cookie
|
|
58
|
+
* Cookie name used to persist the user's chosen color mode across
|
|
59
|
+
* sessions.
|
|
60
|
+
*
|
|
61
|
+
* @default 'origam-mode'
|
|
62
|
+
*/
|
|
63
|
+
modeCookieName?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Cookie `max-age` in seconds (shared by the theme and mode cookies).
|
|
35
66
|
*
|
|
36
67
|
* @default 31_536_000 (1 year)
|
|
37
68
|
*/
|
|
@@ -62,12 +93,21 @@ export interface IOrigamNuxtModuleOptions {
|
|
|
62
93
|
}
|
|
63
94
|
/**
|
|
64
95
|
* Shape of the public runtime config exposed by the module on
|
|
65
|
-
* `useRuntimeConfig().public.origam`. The plugins read this at boot to
|
|
66
|
-
* resolve the active theme and configure the
|
|
96
|
+
* `useRuntimeConfig().public.origam`. The plugins read this at boot to install
|
|
97
|
+
* the theme objects, resolve the active theme/mode, and configure the cookies.
|
|
67
98
|
*/
|
|
68
99
|
export interface IOrigamNuxtRuntimeConfig {
|
|
69
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Installed `IOrigamTheme` objects, in install order. The plugins pass
|
|
102
|
+
* these straight to `createOrigam` (no preset-name resolution — ADR-004).
|
|
103
|
+
* A switcher derives its brand list from `useInstalledThemes()` rather than
|
|
104
|
+
* from this payload.
|
|
105
|
+
*/
|
|
106
|
+
themes: IOrigamTheme[];
|
|
70
107
|
defaultTheme: string;
|
|
108
|
+
modes: string[];
|
|
109
|
+
defaultMode: string;
|
|
71
110
|
cookieName: string;
|
|
111
|
+
modeCookieName: string;
|
|
72
112
|
cookieMaxAge: number;
|
|
73
113
|
}
|
|
@@ -17,12 +17,14 @@ export interface IOtpInputFieldEmits extends IFieldEmits, IInputEmits {
|
|
|
17
17
|
(e: 'mousedown:control', event: MouseEvent): void;
|
|
18
18
|
(e: 'click:clear', event: MouseEvent): void;
|
|
19
19
|
}
|
|
20
|
-
export interface IOtpInputFieldSlots extends IFieldSlots, Omit<IInputSlots, 'default'> {
|
|
20
|
+
export interface IOtpInputFieldSlots extends Omit<IFieldSlots, 'default'>, Omit<IInputSlots, 'default'> {
|
|
21
|
+
/** Generic slot — no slot props. */
|
|
22
|
+
default?: () => any;
|
|
21
23
|
field?: (data: {
|
|
22
24
|
id: string;
|
|
23
25
|
isDisabled: boolean;
|
|
24
26
|
isDirty: boolean;
|
|
25
|
-
isValid: boolean;
|
|
27
|
+
isValid: boolean | undefined;
|
|
26
28
|
isReadonly: boolean;
|
|
27
29
|
}) => any;
|
|
28
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, IElevationProps, IMarginProps, IPaddingProps, ISizeProps, ITagProps } from "../../interfaces";
|
|
2
|
-
import type { TIcon } from "../../types";
|
|
3
|
-
export interface IPaginationProps extends ICommonsComponentProps, ITagProps, IColorProps, IBgColorProps, IBorderProps, IPaddingProps, IMarginProps, IElevationProps, ISizeProps, IDensityProps {
|
|
1
|
+
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, IElevationProps, IMarginProps, IPaddingProps, ISizeProps, ITagProps, ITypographyProps } from "../../interfaces";
|
|
2
|
+
import type { TColor, TIcon } from "../../types";
|
|
3
|
+
export interface IPaginationProps extends ICommonsComponentProps, ITagProps, IColorProps, IBgColorProps, IBorderProps, IPaddingProps, IMarginProps, IElevationProps, ISizeProps, IDensityProps, ITypographyProps {
|
|
4
4
|
start?: number;
|
|
5
5
|
modelValue?: number;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -56,6 +56,21 @@ export interface IPaginationProps extends ICommonsComponentProps, ITagProps, ICo
|
|
|
56
56
|
* (`"Next"` in English).
|
|
57
57
|
*/
|
|
58
58
|
nextText?: string;
|
|
59
|
+
/**
|
|
60
|
+
* aria-label for the compact mode page number `<input>`. Falls back to
|
|
61
|
+
* the `origam.pagination.ariaLabel.pageNumber` i18n key.
|
|
62
|
+
*
|
|
63
|
+
* @default 'origam.pagination.ariaLabel.pageNumber'
|
|
64
|
+
*/
|
|
65
|
+
pageNumberAriaLabel?: string;
|
|
66
|
+
/** @deprecated Use the `hover` object prop instead. Kept for back-compat. */
|
|
67
|
+
hoverColor?: TColor;
|
|
68
|
+
/** @deprecated Use the `hover` object prop instead. Kept for back-compat. */
|
|
69
|
+
hoverBgColor?: TColor;
|
|
70
|
+
/** @deprecated Use the `active` object prop instead. Kept for back-compat. */
|
|
71
|
+
activeColor?: TColor;
|
|
72
|
+
/** @deprecated Use the `active` object prop instead. Kept for back-compat. */
|
|
73
|
+
activeBgColor?: TColor;
|
|
59
74
|
}
|
|
60
75
|
/** Emits fired by `<OrigamPagination>` — current page v-model + the four
|
|
61
76
|
* navigation shortcuts (first / prev / next / last). */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IAudioProps, IBorderProps, IBox, IBgColorProps, IColorProps, ICommonsComponentProps, IDimensionProps, IElevationProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps, IParallaxLayerRegistry } from '../../interfaces';
|
|
1
|
+
import type { IAudioProps, IBorderProps, IBox, IBgColorProps, IColorProps, ICommonsComponentProps, IDimensionProps, IElevationProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps, IParallaxLayerRegistry, IUseAudioProps } from '../../interfaces';
|
|
2
2
|
import type { TParallaxDirection, TParallaxEasing, TParallaxEvent, TPoint } from '../../types';
|
|
3
3
|
import type { Ref } from 'vue';
|
|
4
|
-
export interface IParallaxProps extends ICommonsComponentProps, ITagProps, IColorProps, IBgColorProps, IPaddingProps, IMarginProps, IBorderProps, IRoundedProps, IElevationProps, IDimensionProps, IAudioProps {
|
|
4
|
+
export interface IParallaxProps extends ICommonsComponentProps, ITagProps, IColorProps, IBgColorProps, IPaddingProps, IMarginProps, IBorderProps, IRoundedProps, IElevationProps, IDimensionProps, IAudioProps, IUseAudioProps {
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use `duration` instead. `animationDuration` is kept as a
|
|
7
7
|
* silent alias for backwards-compat and will be removed in v3.0.0.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IBgColorProps, IColorProps, ICommonsComponentProps, ITagProps } from "../../interfaces";
|
|
2
|
-
export interface IPickerTitleProps extends ICommonsComponentProps, ITagProps, IColorProps, IBgColorProps {
|
|
1
|
+
import type { IBgColorProps, IColorProps, ICommonsComponentProps, ITagProps, ITypographyProps } from "../../interfaces";
|
|
2
|
+
export interface IPickerTitleProps extends ICommonsComponentProps, ITagProps, IColorProps, IBgColorProps, ITypographyProps {
|
|
3
3
|
title?: string;
|
|
4
4
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { IColorProps, ICommonsComponentProps, IMarginProps, IPaddingProps, IProgressCircularProps, IProgressLinearProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { IBgColorProps, IColorProps, ICommonsComponentProps, IMarginProps, IPaddingProps, IProgressCircularProps, IProgressLinearProps, ITagProps } from '../../interfaces';
|
|
2
2
|
import type { TProgressType } from '../../types';
|
|
3
3
|
export interface IProgressProps extends IProgressLinearProps, IProgressCircularProps {
|
|
4
4
|
type?: TProgressType;
|
|
5
5
|
}
|
|
6
|
-
export interface IProgressTypeProps extends ITagProps, ICommonsComponentProps, IColorProps, IPaddingProps, IMarginProps {
|
|
6
|
+
export interface IProgressTypeProps extends ITagProps, ICommonsComponentProps, IColorProps, IBgColorProps, IPaddingProps, IMarginProps {
|
|
7
7
|
indeterminate?: boolean;
|
|
8
8
|
modelValue?: string | number;
|
|
9
9
|
thickness?: string | number;
|
|
@@ -11,4 +11,10 @@ export interface IProgressTypeProps extends ITagProps, ICommonsComponentProps, I
|
|
|
11
11
|
absolute?: boolean;
|
|
12
12
|
max?: number | string;
|
|
13
13
|
striped?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Accessible label for the progress bar (aria-label). When omitted,
|
|
16
|
+
* defaults to `'Loading'`. Pass a localised string via your i18n
|
|
17
|
+
* provider or the parent component's `labels` mechanism.
|
|
18
|
+
*/
|
|
19
|
+
label?: string;
|
|
14
20
|
}
|
|
@@ -5,6 +5,7 @@ export interface IRatingFieldItemProps extends ICommonsComponentProps, ITagProps
|
|
|
5
5
|
index?: number;
|
|
6
6
|
value: number;
|
|
7
7
|
label?: string;
|
|
8
|
+
itemAriaLabel?: string;
|
|
8
9
|
showStar?: boolean;
|
|
9
10
|
isFilled?: boolean;
|
|
10
11
|
isHovered?: boolean;
|
|
@@ -15,7 +16,7 @@ export interface IRatingFieldItemProps extends ICommonsComponentProps, ITagProps
|
|
|
15
16
|
emptyIcon?: TIcon;
|
|
16
17
|
halfIncrements?: boolean;
|
|
17
18
|
checked?: boolean;
|
|
18
|
-
length?: number;
|
|
19
|
+
length?: number | string;
|
|
19
20
|
}
|
|
20
21
|
/** Emits fired by `<OrigamRatingFieldItem>` — click + hover surface
|
|
21
22
|
* (pointer enter / leave drive the half-rating preview). */
|
|
@@ -3,7 +3,8 @@ import type { TIcon } from '../../types';
|
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
export interface ISelectionControlGroupProps extends ICommonsComponentProps, IColorProps, IDensityProps, IRippleProps {
|
|
5
5
|
disabled?: boolean;
|
|
6
|
-
error
|
|
6
|
+
/** Error state. Accepts `boolean` or a `string` error message (same contract as `IValidationProps`). */
|
|
7
|
+
error?: string | boolean;
|
|
7
8
|
inline?: boolean;
|
|
8
9
|
falseIcon?: TIcon;
|
|
9
10
|
trueIcon?: TIcon;
|
|
@@ -1,17 +1,35 @@
|
|
|
1
|
-
import type { IActiveProps, IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, ISelectionControlGroupProps, IHoverProps } from '../../interfaces';
|
|
2
|
-
import type { TIcon } from '../../types';
|
|
3
|
-
export interface ISelectionControlProps extends ICommonsComponentProps, Partial<Omit<ISelectionControlGroupProps, 'items'>>, IColorProps, IBgColorProps, IActiveProps, IHoverProps {
|
|
1
|
+
import type { IActiveProps, IBgColorProps, IColorProps, ICommonsComponentEmits, ICommonsComponentProps, IDensityProps, ISelectionControlGroupProps, IHoverProps } from '../../interfaces';
|
|
2
|
+
import type { TColor, TIcon } from '../../types';
|
|
3
|
+
export interface ISelectionControlProps extends ICommonsComponentProps, Partial<Omit<ISelectionControlGroupProps, 'items'>>, IColorProps, IBgColorProps, IActiveProps, IHoverProps, IDensityProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
trueValue?: any;
|
|
6
6
|
falseValue?: any;
|
|
7
7
|
value?: any;
|
|
8
8
|
required?: boolean;
|
|
9
|
+
/** @deprecated Use the `active` object prop instead. Kept for back-compat. */
|
|
10
|
+
activeColor?: TColor;
|
|
11
|
+
/** @deprecated Use the `active` object prop instead. Kept for back-compat. */
|
|
12
|
+
activeBgColor?: TColor;
|
|
9
13
|
}
|
|
10
14
|
export interface ISelectionControlEmits extends ICommonsComponentEmits {
|
|
11
15
|
(e: 'click:label', event: MouseEvent): void;
|
|
12
16
|
}
|
|
13
17
|
export interface ISelectionControlSlots {
|
|
14
|
-
default?: (
|
|
18
|
+
default?: (data: {
|
|
19
|
+
model: any;
|
|
20
|
+
color?: TColor;
|
|
21
|
+
bgColor?: TColor;
|
|
22
|
+
icon?: TIcon;
|
|
23
|
+
props: any;
|
|
24
|
+
}) => any;
|
|
15
25
|
label?: () => any;
|
|
16
|
-
input?: (
|
|
26
|
+
input?: (data: {
|
|
27
|
+
model: any;
|
|
28
|
+
color?: TColor;
|
|
29
|
+
bgColor?: TColor;
|
|
30
|
+
icon?: TIcon;
|
|
31
|
+
props: any;
|
|
32
|
+
textColorStyles?: any;
|
|
33
|
+
backgroundColorStyles?: any;
|
|
34
|
+
}) => any;
|
|
17
35
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IActiveProps, IBorderProps, IColorProps, ICommonsComponentProps, IDimensionProps, IElevationProps, IHoverProps, ILocationProps, IMarginProps, IPaddingProps, IPositionProps, IRoundedProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { IActiveProps, IBgColorProps, IBorderProps, IColorProps, ICommonsComponentProps, IDimensionProps, IElevationProps, IHoverProps, ILocationProps, IMarginProps, IPaddingProps, IPositionProps, IRoundedProps, ITagProps } from '../../interfaces';
|
|
2
2
|
import type { TDirectionBoth, TSheetSnapId, TSheetSnapPoint } from '../../types';
|
|
3
|
-
export interface ISheetProps extends ITagProps, ICommonsComponentProps, IPaddingProps, IMarginProps, IColorProps, IBorderProps, IRoundedProps, IElevationProps, IDimensionProps, ILocationProps, IPositionProps, IActiveProps, IHoverProps {
|
|
3
|
+
export interface ISheetProps extends ITagProps, ICommonsComponentProps, IPaddingProps, IMarginProps, IColorProps, IBgColorProps, IBorderProps, IRoundedProps, IElevationProps, IDimensionProps, ILocationProps, IPositionProps, IActiveProps, IHoverProps {
|
|
4
4
|
/**
|
|
5
5
|
* Edge the sheet is anchored to. Drives the bottom-swipe gesture
|
|
6
6
|
* (only `'bottom'` activates the touch-drag handle today; the other
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICommonsComponentProps } from '../../interfaces';
|
|
1
|
+
import type { ICommonsComponentProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TIcon, TIntent } from '../../types';
|
|
3
3
|
import type { ISnackbarGroupItemAction } from '../../interfaces';
|
|
4
4
|
/**
|
|
@@ -17,7 +17,7 @@ import type { ISnackbarGroupItemAction } from '../../interfaces';
|
|
|
17
17
|
* Both `OrigamSnackbar` and `OrigamSnackbarGroup` consume this component
|
|
18
18
|
* so all visual intent / layout logic lives in one place only.
|
|
19
19
|
*/
|
|
20
|
-
export interface ISnackbarItemProps extends ICommonsComponentProps {
|
|
20
|
+
export interface ISnackbarItemProps extends ICommonsComponentProps, ITypographyProps {
|
|
21
21
|
/**
|
|
22
22
|
* Semantic intent — drives icon defaults and surface colouring via
|
|
23
23
|
* `--origam-color__feedback--{intent}---*` tokens.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IDimensionProps, IElevationProps, ILayoutItemProps, IRoundedProps, ITagProps } from "../../interfaces";
|
|
2
|
-
export interface ISystemBarProps extends ICommonsComponentProps, ITagProps, IElevationProps, IColorProps, IBgColorProps, ILayoutItemProps, IRoundedProps, IBorderProps, IDimensionProps {
|
|
1
|
+
import type { IBorderProps, IBgColorProps, IColorProps, ICommonsComponentProps, IDimensionProps, IElevationProps, ILayoutItemProps, IRoundedProps, ITagProps, ITypographyProps } from "../../interfaces";
|
|
2
|
+
export interface ISystemBarProps extends ICommonsComponentProps, ITagProps, IElevationProps, IColorProps, IBgColorProps, ILayoutItemProps, IRoundedProps, IBorderProps, IDimensionProps, ITypographyProps {
|
|
3
3
|
window?: boolean;
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBorderProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IHoverProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps } from '../../interfaces';
|
|
2
|
-
export interface ITableProps extends ICommonsComponentProps, IBorderProps, IRoundedProps, IElevationProps, IPaddingProps, IMarginProps, IHoverProps, IDimensionProps, IDensityProps, ITagProps {
|
|
1
|
+
import type { IBorderProps, ICommonsComponentProps, IDensityProps, IDimensionProps, IElevationProps, IHoverProps, IMarginProps, IPaddingProps, IRoundedProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
|
+
export interface ITableProps extends ICommonsComponentProps, IBorderProps, IRoundedProps, IElevationProps, IPaddingProps, IMarginProps, IHoverProps, IDimensionProps, IDensityProps, ITagProps, ITypographyProps {
|
|
3
3
|
fixedHeader?: boolean;
|
|
4
4
|
fixedFooter?: boolean;
|
|
5
5
|
caption?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICommonsComponentProps, IGroupItemProps, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { ICommonsComponentProps, IGroupItemProps, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TIcon } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Props for `<OrigamTab>` — a single registered tab inside an
|
|
@@ -10,8 +10,13 @@ import type { TIcon } from '../../types';
|
|
|
10
10
|
* ARIA wiring (`role="tab"`, `aria-selected`, `aria-controls`, `id`,
|
|
11
11
|
* `tabindex`) is computed inside the component — consumers only
|
|
12
12
|
* provide `value` (the canonical identifier) and `disabled`.
|
|
13
|
+
*
|
|
14
|
+
* Typography props (`fontSize`, `fontWeight`, `letterSpacing`) override
|
|
15
|
+
* the matching `--origam-tabs__item---*` variables on the tab element.
|
|
16
|
+
* `lineHeight` is intentionally excluded — the SCSS hard-codes `line-height: 1`
|
|
17
|
+
* with no CSS-var hook.
|
|
13
18
|
*/
|
|
14
|
-
export interface ITabProps extends ICommonsComponentProps, ITagProps, IGroupItemProps {
|
|
19
|
+
export interface ITabProps extends ICommonsComponentProps, ITagProps, IGroupItemProps, ITypographyProps {
|
|
15
20
|
tag?: string;
|
|
16
21
|
icon?: TIcon;
|
|
17
22
|
appendIcon?: TIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICommonsComponentProps, IGradient, ITagProps } from '../../interfaces';
|
|
1
|
+
import type { ICommonsComponentProps, IGradient, ITagProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TBlockquoteAlign, TTextMaskAnimation } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Props for `<OrigamTextMask>` — typographic "window" component.
|
|
@@ -16,8 +16,13 @@ import type { TBlockquoteAlign, TTextMaskAnimation } from '../../types';
|
|
|
16
16
|
*
|
|
17
17
|
* The text content is preserved in the DOM (visible to screen readers
|
|
18
18
|
* and search engines) — the visual transform is purely CSS.
|
|
19
|
+
*
|
|
20
|
+
* Typography is handled via the shared {@link ITypographyProps} surface:
|
|
21
|
+
* pass token keys (`fontSize="5xl"`, `fontWeight="black"`, …) to override
|
|
22
|
+
* the component's default values; when a prop is unset the SCSS fallback
|
|
23
|
+
* token (`--origam-text-mask---font-size-default`, …) stays in control.
|
|
19
24
|
*/
|
|
20
|
-
export interface ITextMaskProps extends ICommonsComponentProps, ITagProps {
|
|
25
|
+
export interface ITextMaskProps extends ICommonsComponentProps, ITagProps, ITypographyProps {
|
|
21
26
|
/**
|
|
22
27
|
* Text to mask. Ignored when the `default` slot is provided.
|
|
23
28
|
*
|
|
@@ -64,37 +69,6 @@ export interface ITextMaskProps extends ICommonsComponentProps, ITagProps {
|
|
|
64
69
|
* @default 'pan'
|
|
65
70
|
*/
|
|
66
71
|
animationType?: TTextMaskAnimation;
|
|
67
|
-
/**
|
|
68
|
-
* `font-size` of the masked text. Numbers are interpreted as `px`.
|
|
69
|
-
*
|
|
70
|
-
* @default 'inherit'
|
|
71
|
-
*/
|
|
72
|
-
fontSize?: string | number;
|
|
73
|
-
/**
|
|
74
|
-
* `font-weight` of the masked text. Accepts numeric weights (100–900)
|
|
75
|
-
* or keywords (`'bold'`, `'normal'`, …).
|
|
76
|
-
*
|
|
77
|
-
* @default 'inherit'
|
|
78
|
-
*/
|
|
79
|
-
fontWeight?: string | number;
|
|
80
|
-
/**
|
|
81
|
-
* `font-family` stack applied to the masked text.
|
|
82
|
-
*
|
|
83
|
-
* @default 'inherit'
|
|
84
|
-
*/
|
|
85
|
-
fontFamily?: string;
|
|
86
|
-
/**
|
|
87
|
-
* `line-height` applied to the masked text. Tight by default so the
|
|
88
|
-
* glyph baseline aligns nicely on large display text.
|
|
89
|
-
*
|
|
90
|
-
* @default 1.1
|
|
91
|
-
*/
|
|
92
|
-
lineHeight?: string | number;
|
|
93
|
-
/**
|
|
94
|
-
* `letter-spacing` applied to the masked text. Optional — defaults to
|
|
95
|
-
* the CSS initial value (i.e. inherits from the document).
|
|
96
|
-
*/
|
|
97
|
-
letterSpacing?: string;
|
|
98
72
|
/**
|
|
99
73
|
* `text-align` of the masked content.
|
|
100
74
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IAdjacentInnerProps, IBorderProps, IColorProps, ICommonsComponentProps, IDensityProps, IElevationProps, IFieldEmits, IFieldProps, IFieldSlots, IInputEmits, IInputProps, IInputSlots, IMarginProps, IPaddingProps, IRoundedProps, ITextareaToolbarSlotProps } from '../../interfaces';
|
|
1
|
+
import type { IAdjacentInnerProps, IBorderProps, IColorProps, ICommonsComponentProps, IDensityProps, IElevationProps, IFieldEmits, IFieldProps, IFieldSlots, IInputEmits, IInputProps, IInputSlots, IMarginProps, IPaddingProps, IRoundedProps, ITextareaToolbarSlotProps, ITypographyProps } from '../../interfaces';
|
|
2
2
|
import type { TTextareaMode, TTextareaOutput, TTextareaToolbarCommand, TTextareaToolbarPosition } from '../../types';
|
|
3
|
-
export interface ITextareaFieldProps extends ICommonsComponentProps, IColorProps, IDensityProps, IFieldProps, IInputProps, IPaddingProps, IMarginProps, IBorderProps, IRoundedProps, IElevationProps, IAdjacentInnerProps {
|
|
3
|
+
export interface ITextareaFieldProps extends ICommonsComponentProps, IColorProps, IDensityProps, IFieldProps, IInputProps, IPaddingProps, IMarginProps, IBorderProps, IRoundedProps, IElevationProps, IAdjacentInnerProps, ITypographyProps {
|
|
4
4
|
autoGrow?: boolean;
|
|
5
5
|
autofocus?: boolean;
|
|
6
6
|
counter?: boolean | number | string;
|
|
@@ -65,7 +65,7 @@ export interface ITextareaFieldSlots extends IFieldSlots, Omit<IInputSlots, 'def
|
|
|
65
65
|
id: string;
|
|
66
66
|
isDisabled: boolean;
|
|
67
67
|
isDirty: boolean;
|
|
68
|
-
isValid: boolean;
|
|
68
|
+
isValid: boolean | undefined;
|
|
69
69
|
isReadonly: boolean;
|
|
70
70
|
}) => any;
|
|
71
71
|
/** Replace the rich-text toolbar entirely (rich mode only). */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|